diff --git a/deploy/logging/sanitize.vrl b/deploy/logging/sanitize.vrl index 870582d..779d84a 100644 --- a/deploy/logging/sanitize.vrl +++ b/deploy/logging/sanitize.vrl @@ -42,7 +42,7 @@ if service == "mongodb" { if includes(["quota_denied", "deployment", "account_removed", "application_log", "billing_maintenance_failed", "billing_reconciliation_deferred", "billing_requires_attention", "billing_worker_failed", "blob_api_failed_falling_back_to_raw_url", "branch_not_found", "cache_removal_failed", "cache_removed", "checking_repository_status_and_unused_repositories", "cleared_lock_for_active_job", "conference_expire_failed", "content_expiration_failed", "daily_stats_snapshot_failed", "daily_stats_snapshot_stored", "download_completed", "download_start", "downloaded", "downloadfile_failed", "downloading_file", "downloading_gist", "downloading_pull_request", "downloading_via_raw_url_lfs", "duplicate_stripe_customer_requires_review", "ensuretodaysnapshot_failed", "error_log_redis_connect_failed", "expired_repository_cleanup_failed", "failed_removal_recovery_failed", "failed_to_persist_error_status", "failed_to_record_repository_removal_error", "gettoken", "github_primary_rate_limit_hit", "github_secondary_rate_limit_hit", "grant_revocation_failed", "initial_repository_status_check_failed", "job_completed", "job_failed", "job_stalled", "job_started", "lastusedat_update_failed", "login_token_failed", "login_token_req_login_failed", "logout_after_account_removal_failed", "logout_failed", "lookup_failed", "markerrorifinflight_failed", "markerrorifremoving_failed", "metadata_cleanup_complete", "metadata_cleanup_deferred", "owner_access_alert_reset_unavailable", "owner_access_email_accepted", "owner_access_email_audit_unavailable", "owner_access_email_claim_cleanup_unavailable", "owner_access_email_deferred_recovery_unavailable", "owner_access_email_delivery_failed", "owner_access_email_preparation_cleanup_unavailable", "owner_access_email_recovery_recorded", "owner_access_email_recovery_unavailable", "owner_access_email_result_reconciliation_required", "owner_access_email_unavailable", "pr_comments_404_continuing_without_them", "process_fatal_error", "process_heartbeat", "process_started", "progress", "queue_heartbeat", "queued_for_download", "rate_limit_gate_active_delaying_job_before_work", "rate_limit_gate_set", "rate_limited_delaying_job", "recover_failed", "recovered_expired_repository_cleanup", "recovered_file_from_truncated_tree", "recovered_file_invalidation_failed", "recovered_stuck_repo", "recoverstuckpreparing_failed", "recoverstuckremoving_failed", "redis_client_error", "redis_rate_limit_gate_written", "rejected_upstream_download_destination", "removal_failed", "removal_recovery_failed", "removecache_save_failed", "removed_cache_for_unused_repository", "removing_cache", "removing_repository", "repo_claimed", "repository_cache_removal_failed", "repository_expiration_failed", "repository_expired", "repository_removal_failed", "repository_removed", "request_cancelled", "request_completed", "request_slow", "requeued_failed_removal", "requeued_interrupted_removal", "reset", "retired_tree_cleanup_deferred", "retired_tree_cleanup_failed", "running_daily_stats_snapshot", "s3_body_stream_error", "send_failed", "server_started", "source_stream_failed_cache_write_discarded", "staged_tree_cleanup_failed", "staged_tree_completion_deferred", "streamer_fetch_failed", "streamer_started", "streamer_startup_failed", "streamer_zip_fetch_failed", "temporary_storage_cleanup_deferred", "token_refresh_failed_backing_off", "up_to_date", "update_queued", "verify_failed", "waiting_for_rate_limit_gate", "webhook_log", "webhook_processing_failed", "write_failed", "zip_stream_failed"], record.event) { out.event = record.event } if is_string(record.release) && match(string!(record.release), r'^[a-f0-9]{7,40}$') { out.release = record.release } if is_string(record.instance) && match(string!(record.instance), r'^[a-f0-9-]{36}$') { out.instance = record.instance } - if includes(["repo_renamed", "preparation_interrupted", "commit_not_found", "zip_not_available", "ABORT_ERR", "ECONNREFUSED", "ECONNRESET", "ENOTFOUND", "EPIPE", "ETIMEDOUT", "billing_address_missing", "billing_city_missing", "billing_country_missing", "billing_email_missing", "billing_missing", "billing_name_missing", "billing_zip_missing", "branch_not_found", "branch_not_specified", "cache_busy", "cache_miss", "cannot_coauthor_self", "commit_not_specified", "conf_end_date_invalid", "conf_end_date_missing", "conf_id_missing", "conf_id_used", "conf_name_missing", "conf_not_activated", "conf_not_found", "conf_start_date_invalid", "conf_start_date_missing", "conference_not_found", "connection_changed", "download_not_enabled", "expiration_limit_reached", "file_listing_too_large", "file_not_accessible", "file_not_found", "file_not_supported", "file_too_big", "folder_not_supported", "gistId_already_used", "gistId_not_specified", "gist_expired", "gist_not_found", "gist_not_ready", "github_app_access_required", "github_app_reconnect_required", "github_identity_mismatch", "github_rate_limit_exceeded", "github_token_invalid", "github_user_not_found", "invalid_commit_format", "invalid_cursor", "invalid_file_path", "invalid_gistId", "invalid_path", "invalid_plan", "invalid_preserve_files_format", "invalid_project_name", "invalid_pullRequestId", "invalid_repo", "invalid_repoId", "invalid_request", "invalid_settings", "invalid_signature", "invalid_sort", "invalid_status", "invalid_terms_format", "invalid_token_id", "invalid_token_options", "is_removed", "not_authorized", "not_connected", "options_not_provided", "page_not_activated", "page_not_supported_on_different_branch", "path_not_defined", "path_not_specified", "pullRequestId_already_used", "pullRequestId_is_not_a_number", "pullRequestId_not_specified", "pull_request_expired", "pull_request_not_found", "pull_request_not_ready", "token_refresh_failed", "anonymized_output_too_large", "anonymization_memory_budget_exceeded", "anonymization_queue_full", "anonymization_queue_timeout", "anonymization_cancelled", "anonymization_worker_exited", "anonymization_deadline_exceeded", "anonymization_spool_budget_exceeded", "anonymization_worker_failed", "anonymization_storage_full", "anonymization_io_failed", "zip_unsafe_entry_path", "quota_exceeded", "quota_repository_limit", "quota_storage_limit", "rate_limited", "readme_not_available", "repoId_already_used", "repoId_not_defined", "repoUrl_not_defined", "repo_access_limited", "repo_empty", "repo_not_accessible", "repo_not_found", "repo_saml_enforcement", "repository_archived", "repository_changed", "repository_expired", "repository_job_cancelled", "repository_not_found", "repository_not_ready", "repository_not_specified", "repository_tree_incomplete", "repository_tree_too_large", "s3_config_not_provided", "source_not_provided", "storage_delete_failed", "storage_write_size_mismatch", "submodule_not_available", "terms_not_specified", "token_expired", "token_limit_reached", "unable_to_connect_user", "unable_to_download", "upstream_error", "upstream_timeout", "user_not_found", "username_not_defined", "webhook_processing_failed"], record.errorCode) { out.errorCode = record.errorCode } + if includes(["repo_renamed", "preparation_interrupted", "commit_not_found", "zip_not_available", "ABORT_ERR", "ECONNREFUSED", "ECONNRESET", "ENOTFOUND", "EPIPE", "ETIMEDOUT", "billing_address_missing", "billing_city_missing", "billing_country_missing", "billing_email_missing", "billing_missing", "billing_name_missing", "billing_zip_missing", "branch_not_found", "branch_not_specified", "cache_busy", "cache_miss", "cannot_coauthor_self", "commit_not_specified", "conf_end_date_invalid", "conf_end_date_missing", "conf_id_missing", "conf_id_used", "conf_name_missing", "conf_not_activated", "conf_not_found", "conf_start_date_invalid", "conf_start_date_missing", "conference_not_found", "connection_changed", "download_not_enabled", "expiration_limit_reached", "file_listing_too_large", "file_not_accessible", "file_not_found", "file_not_supported", "file_too_big", "folder_not_supported", "gistId_already_used", "gistId_not_specified", "gist_expired", "gist_not_found", "gist_not_ready", "github_app_access_required", "github_app_reconnect_required", "github_identity_mismatch", "github_rate_limit_exceeded", "github_token_invalid", "github_user_not_found", "invalid_commit_format", "invalid_cursor", "invalid_file_path", "invalid_gistId", "invalid_path", "invalid_plan", "invalid_preserve_files_format", "invalid_project_name", "invalid_pullRequestId", "invalid_repo", "invalid_repoId", "invalid_request", "invalid_settings", "invalid_signature", "invalid_sort", "invalid_status", "invalid_terms_format", "invalid_token_id", "invalid_token_options", "is_removed", "not_authorized", "not_connected", "options_not_provided", "page_not_activated", "page_not_supported_on_different_branch", "path_not_defined", "path_not_specified", "pullRequestId_already_used", "pullRequestId_is_not_a_number", "pullRequestId_not_specified", "pull_request_expired", "pull_request_not_found", "pull_request_not_ready", "token_refresh_failed", "anonymized_output_too_large", "anonymization_memory_budget_exceeded", "anonymization_queue_full", "anonymization_queue_timeout", "anonymization_cancelled", "anonymization_worker_exited", "anonymization_deadline_exceeded", "anonymization_spool_budget_exceeded", "anonymization_worker_failed", "anonymization_storage_full", "anonymization_io_failed", "zip_unsafe_entry_path", "quota_exceeded", "quota_repository_limit", "quota_storage_limit", "rate_limited", "readme_not_available", "repoId_already_used", "repoId_not_defined", "repoUrl_not_defined", "repo_access_limited", "repo_empty", "repo_not_accessible", "repo_not_found", "repo_saml_enforcement", "repository_archived", "repository_changed", "repository_expired", "repository_job_cancelled", "repository_not_found", "repository_not_ready", "repository_not_specified", "repository_tree_incomplete", "repository_tree_too_large", "s3_config_not_provided", "source_not_provided", "storage_delete_failed", "storage_write_size_mismatch", "submodule_not_available", "terms_not_specified", "token_expired", "token_limit_reached", "unable_to_connect_user", "unable_to_download", "upstream_error", "upstream_timeout", "user_not_found", "username_not_defined", "webhook_processing_failed", "another_login_required", "billing_already_paid", "billing_busy", "billing_checkout_disabled", "billing_checkout_in_progress", "billing_customer_mismatch", "billing_draft_not_found", "billing_invalid_conference", "billing_invalid_draft", "billing_invalid_purchase", "billing_invalid_repository_size", "billing_invalid_review_window", "billing_plan_change_not_supported", "billing_plan_unavailable", "billing_price_misconfigured", "billing_recovery_required", "billing_review_window_locked", "billing_subscription_exists", "billing_unavailable", "conference_payment_required", "gist_not_available", "github_app_authorization_cancelled", "github_app_disabled", "github_app_permissions_invalid", "github_app_refresh_busy", "github_grant_revocation_failed", "github_oauth_required", "github_unavailable", "invalid_auth_state", "invalid_billing_expiration", "invalid_connection", "invalid_github_path", "not_owner", "oauth_resources_remaining", "pull_request_not_available", "repository_busy", "repository_not_accessible", "streamer_unreachable", "streamer_upstream_error", "subscription_required_for_never_expiration", "user_banned", "sync_failed"], record.errorCode) { out.errorCode = record.errorCode } if includes(["admin", "anonymized-file", "auth", "billing", "dailyStats", "file-tree", "fs", "gh-stream", "gist", "github", "github-app-webhook", "owner-notifications", "process", "pull-request", "queue", "queue:cache", "queue:download", "queue:remove", "repository", "repository-public", "requests", "route", "route:repo", "s3", "schedule", "server", "streamer", "temporary-storage", "token-auth", "user", "zip-stream"], record.module) { out.module = record.module } if includes(["protocol", "credentials", "port", "host"], record.reason) { out.reason = record.reason } if includes(["parse", "find_grant_owners", "reconcile_grant", "persist_installation_block", "reconcile_installation"], record.phase) { out.phase = record.phase } @@ -81,7 +81,7 @@ if includes(["/", "other", "/dashboard", "/anonymize", "/healthcheck", "/api/hea } } # BEGIN GENERATED DIAGNOSTICS -source_functions = {"src/cli/index.ts":["","generateRandomFileName","main"],"build/cli/index.js":["","generateRandomFileName","main"],"src/config.ts":[""],"build/config.js":[""],"src/core/AnonymizedFile.ts":["","anonymizedContent","assertContentFile","cancel","content","defaultMaskCandidateRegex","escapeRegex","extension","forwardHeaders","getFileInfo","handleStreamError","isFileSupported","isImage","originalPath","probe","recoverTruncatedFile","send","sha","size","streamerErrorToAnonymous","visibleFile"],"build/core/AnonymizedFile.js":["","anonymizedContent","assertContentFile","cancel","content","defaultMaskCandidateRegex","escapeRegex","extension","forwardHeaders","getFileInfo","handleStreamError","isFileSupported","isImage","originalPath","probe","recoverTruncatedFile","send","sha","size","streamerErrorToAnonymous","visibleFile"],"src/core/AnonymousError.ts":["","detail","toString","url"],"build/core/AnonymousError.js":["","detail","toString","url"],"src/core/Conference.ts":["","expire","isExpired","remove","repositories","toJSON","updateStatus"],"build/core/Conference.js":["","expire","isExpired","remove","repositories","toJSON","updateStatus"],"src/core/Gist.ts":["","anonymize","check","conference","content","countView","download","downloadContent","downloadWithAccess","expire","getAccess","getToken","markExpired","remove","resetSate","toJSON","updateIfNeeded","updateStatus"],"build/core/Gist.js":["","anonymize","check","conference","content","countView","download","downloadContent","downloadWithAccess","expire","getAccess","getToken","markExpired","remove","resetSate","toJSON","updateIfNeeded","updateStatus"],"src/core/GitHubUtils.ts":["","abortableGateLookup","cancelled","checkToken","ensureRedisGateClient","getRedisGateResetAt","getToken","getTokenGateResetAt","octokit","ownerGitHubAccessRequired","rateLimitDetail","resolveRepositoryToken","run","setRedisGate","setRedisGateFromWorker","setTokenGate","waitForTokenGate"],"build/core/GitHubUtils.js":["","abortableGateLookup","cancelled","checkToken","ensureRedisGateClient","getRedisGateResetAt","getToken","getTokenGateResetAt","octokit","ownerGitHubAccessRequired","rateLimitDetail","resolveRepositoryToken","run","setRedisGate","setRedisGateFromWorker","setTokenGate","waitForTokenGate"],"src/core/PullRequest.ts":["","anonymize","check","conference","content","countView","download","downloadContent","expire","getToken","markExpired","remove","resetSate","toJSON","updateIfNeeded","updateStatus"],"build/core/PullRequest.js":["","anonymize","check","conference","content","countView","download","downloadContent","expire","getToken","markExpired","remove","resetSate","toJSON","updateIfNeeded","updateStatus"],"src/core/Repository.ts":["","anonymize","anonymizeTreeRecursive","anonymizedFiles","assertNotArchived","buildPathIndex","check","checkRefreshWrite","cleanupRetiredFileTrees","cleanupStagedFileTree","clearRows","completeRecoveredFileMetadata","computeSize","conference","countView","current","ensureFileTree","expire","fileSnapshotFilter","files","findAnonymizedPath","generateAnonymizeTransformer","getToken","hasEmptyTree","indexPaths","insertBatch","invalidateFileMetadata","isReady","markCachePresent","markExpired","pathKey","readFiles","refresh","refreshFilter","refreshIfNeeded","remove","removeCache","resetSate","searchFiles","snapshotValue","submoduleMounts","toJSON","updateIfNeeded","updateProgressMessage","updateRetiringPathIndex","updateStatus","zip"],"build/core/Repository.js":["","anonymize","anonymizeTreeRecursive","anonymizedFiles","assertNotArchived","buildPathIndex","check","checkRefreshWrite","cleanupRetiredFileTrees","cleanupStagedFileTree","clearRows","completeRecoveredFileMetadata","computeSize","conference","countView","current","ensureFileTree","expire","fileSnapshotFilter","files","findAnonymizedPath","generateAnonymizeTransformer","getToken","hasEmptyTree","indexPaths","insertBatch","invalidateFileMetadata","isReady","markCachePresent","markExpired","pathKey","readFiles","refresh","refreshFilter","refreshIfNeeded","remove","removeCache","resetSate","searchFiles","snapshotValue","submoduleMounts","toJSON","updateIfNeeded","updateProgressMessage","updateRetiringPathIndex","updateStatus","zip"],"src/core/User.ts":["","getAccessToken","getGists","getGitHubRepositories","getPullRequests","getRepositories","markListExpired","quotaRepositories","repositoryMembership","toJSON"],"build/core/User.js":["","getAccessToken","getGists","getGitHubRepositories","getPullRequests","getRepositories","markListExpired","quotaRepositories","repositoryMembership","toJSON"],"src/core/anonymization-errors.ts":["","anonymizationErrorCode","data"],"build/core/anonymization-errors.js":["","anonymizationErrorCode","data"],"src/core/anonymization-pool.ts":["","anonymizeOnWorker","cancel","exited","failed","finish","getAnonymizationPoolStats","message","pump","release","releaseSpool","removeWaiting","reserveSpool"],"build/core/anonymization-pool.js":["","anonymizeOnWorker","cancel","exited","failed","finish","getAnonymizationPoolStats","message","pump","release","releaseSpool","removeWaiting","reserveSpool"],"src/core/anonymization.worker.ts":[""],"build/core/anonymization.worker.js":[""],"src/core/anonymize-utils.ts":["","_destroy","_flush","_read","_transform","anonymize","anonymizePath","anonymizePathCompiled","asciiWordAt","cb","classifyByName","compileTerms","compiledTermPlan","escapeRegex","hasCatastrophicBacktracking","hasCustomTermReplacement","isTextFile","isTextualMime","produce","removeImage","removeLink","replace","replaceGitHubSelfLinks","replaceTerm","replaceTerms","requiredPrefix","runWithAnonymizationDeadline","spoolChunk","streamToString"],"build/core/anonymize-utils.js":["","_destroy","_flush","_read","_transform","anonymize","anonymizePath","anonymizePathCompiled","asciiWordAt","cb","classifyByName","compileTerms","compiledTermPlan","escapeRegex","hasCatastrophicBacktracking","hasCustomTermReplacement","isTextFile","isTextualMime","produce","removeImage","removeLink","replace","replaceGitHubSelfLinks","replaceTerm","replaceTerms","requiredPrefix","runWithAnonymizationDeadline","spoolChunk","streamToString"],"src/core/archive-entry.ts":["","appendArchiveEntry","cleanup","closed","done","fail","zipEntryOptions"],"build/core/archive-entry.js":["","appendArchiveEntry","cleanup","closed","done","fail","zipEntryOptions"],"src/core/async-cache.ts":["","clear","get","prune"],"build/core/async-cache.js":["","clear","get","prune"],"src/core/billing/config.ts":["","billingError","billingOrigin","billingPlans","isConferencePlan","legacyPricePlans","requireBilling"],"build/core/billing/config.js":["","billingError","billingOrigin","billingPlans","isConferencePlan","legacyPricePlans","requireBilling"],"src/core/billing/drafts.ts":["","getBillingDraft","saveBillingDraft","validDraftPath"],"build/core/billing/drafts.js":["","getBillingDraft","saveBillingDraft","validDraftPath"],"src/core/billing/events.ts":["","billingFailure","billingHealth","processBillingInbox","receiveBillingEvent","ref"],"build/core/billing/events.js":["","billingFailure","billingHealth","processBillingInbox","receiveBillingEvent","ref"],"src/core/billing/expiration.ts":["","addMonths","authorGrants","freeExpirationLimit","hasAutomaticUpdates","hasRepositoryGrant","maximumExpiration","neverExpirationDeadline","reconcileNeverExpiration","validateBillingExpiration"],"build/core/billing/expiration.js":["","addMonths","authorGrants","freeExpirationLimit","hasAutomaticUpdates","hasRepositoryGrant","maximumExpiration","neverExpirationDeadline","reconcileNeverExpiration","validateBillingExpiration"],"src/core/billing/maintenance.ts":["","events","reconcile","startBillingMaintenance"],"build/core/billing/maintenance.js":["","events","reconcile","startBillingMaintenance"],"src/core/billing/models.ts":[""],"build/core/billing/models.js":[""],"src/core/billing/quotas.ts":["","allocationExpression","allowance","assertConferenceAdmission","reserveFileExpansion","reserveRepository","sumExpansions","usableGrant"],"build/core/billing/quotas.js":["","allocationExpression","allowance","assertConferenceAdmission","reserveFileExpansion","reserveRepository","sumExpansions","usableGrant"],"src/core/billing/reconciliation.ts":["","discoverBillingCustomers","reconcileBillingAccount","reconcileBillingAccounts"],"build/core/billing/reconciliation.js":["","discoverBillingCustomers","reconcileBillingAccount","reconcileBillingAccounts"],"src/core/billing/report.ts":["","add","billingGrants","billingSummary","billingWebhookHealth","bucketFor","clearPriceCache","count","ends","fillSeries","grantFilter","missing","money","monthlyAmount","nextBucket","of","periodStart","planFamily","planRows","resolvePrices","revenueAvailable","roundMoney","rows","saleStages","sum","truncate","word"],"build/core/billing/report.js":["","add","billingGrants","billingSummary","billingWebhookHealth","bucketFor","clearPriceCache","count","ends","fillSeries","grantFilter","missing","money","monthlyAmount","nextBucket","of","periodStart","planFamily","planRows","resolvePrices","revenueAvailable","roundMoney","rows","saleStages","sum","truncate","word"],"src/core/billing/stripe.ts":["","cancelAccountBilling","createCheckout","fulfillCheckout","objectId","outcomeUrl","planForPrice","processBillingEvent","rememberConfiguredPrices","stripeClient","syncSubscription","untilFor","withBillingLock"],"build/core/billing/stripe.js":["","cancelAccountBilling","createCheckout","fulfillCheckout","objectId","outcomeUrl","planForPrice","processBillingEvent","rememberConfiguredPrices","stripeClient","syncSubscription","untilFor","withBillingLock"],"src/core/blob-cache.ts":["","accessed","cacheError","changes","close","closeBlobCaches","decision","evictTo","expire","fill","getOrFill","isCacheContention","lookup","loseLease","maintain","metric","open","openReader","path","release","releaseDisk","releaseFill","reservations","reserveDisk","resultBlobCache","saveDecision","sharedBlobCache","stats","transaction","trim","usage","validDigest","walk"],"build/core/blob-cache.js":["","accessed","cacheError","changes","close","closeBlobCaches","decision","evictTo","expire","fill","getOrFill","isCacheContention","lookup","loseLease","maintain","metric","open","openReader","path","release","releaseDisk","releaseFill","reservations","reserveDisk","resultBlobCache","saveDecision","sharedBlobCache","stats","transaction","trim","usage","validDigest","walk"],"src/core/bounded-zip.ts":["","boundedZip","cleanup","push","stop"],"build/core/bounded-zip.js":["","boundedZip","cleanup","push","stop"],"src/core/cache-coordination.ts":["","cacheCommand","cacheRedis","closeCacheRedis","coordinatedFill"],"build/core/cache-coordination.js":["","cacheCommand","cacheRedis","closeCacheRedis","coordinatedFill"],"src/core/cache-observability.ts":["","cacheMetricsReport","closeCacheMetrics","connection","flushCacheMetrics","observeCache"],"build/core/cache-observability.js":["","cacheMetricsReport","closeCacheMetrics","connection","flushCacheMetrics","observeCache"],"src/core/cached-repository-access.ts":["","canReadCachedRepository"],"build/core/cached-repository-access.js":["","canReadCachedRepository"],"src/core/cached-response.ts":["","abort","assertActive","decisionKey","localFailure","send","sendCached","sendSharedContent"],"build/core/cached-response.js":["","abort","assertActive","decisionKey","localFailure","send","sendCached","sendSharedContent"],"src/core/content-expiration.ts":["","expireEmbeddedContent"],"build/core/content-expiration.js":["","expireEmbeddedContent"],"src/core/content-generation.ts":["","contentGenerationPrefix","contentRetirementMarker"],"build/core/content-generation.js":["","contentGenerationPrefix","contentRetirementMarker"],"src/core/credential-crypto.ts":["","aad","createTokenCipher","decode","decrypt","encrypt"],"build/core/credential-crypto.js":["","aad","createTokenCipher","decode","decrypt","encrypt"],"src/core/credential-validation.ts":["","check","validate"],"build/core/credential-validation.js":["","check","validate"],"src/core/credentials.ts":["","credentialCipher","getCredential","getCredentialToken","replaceCredential","setCredential"],"build/core/credentials.js":["","credentialCipher","getCredential","getCredentialToken","replaceCredential","setCredential"],"src/core/database-timing.ts":["","installDatabaseTiming"],"build/core/database-timing.js":["","installDatabaseTiming"],"src/core/email-history.ts":["","complete","emailHistoryCollection","ensureEmailHistoryIndexes","sendTrackedEmail"],"build/core/email-history.js":["","complete","emailHistoryCollection","ensureEmailHistoryIndexes","sendTrackedEmail"],"src/core/expiring-map.ts":["","get","set"],"build/core/expiring-map.js":["","get","set"],"src/core/file-submodules.ts":["","hasVisibleSubmodules"],"build/core/file-submodules.js":["","hasVisibleSubmodules"],"src/core/file-tree.ts":["","clearStagedRowsInBatches","deleteRowsInBatches"],"build/core/file-tree.js":["","clearStagedRowsInBatches","deleteRowsInBatches"],"src/core/folder-counts.ts":["","aggregate","folderCounts"],"build/core/folder-counts.js":["","aggregate","folderCounts"],"src/core/github-app.ts":["","appError","appJWT","appRepositories","appUserToken","boundAppToken","clearAppTokenCache","encode","exchangeAppToken","githubRequest","installationToken","installationURL","reconcileAppGrant","reconcileInstallation","renew","saveAppGrant","selectRepositoryAccess","tokenFields","userInstallations"],"build/core/github-app.js":["","appError","appJWT","appRepositories","appUserToken","boundAppToken","clearAppTokenCache","encode","exchangeAppToken","githubRequest","installationToken","installationURL","reconcileAppGrant","reconcileInstallation","renew","saveAppGrant","selectRepositoryAccess","tokenFields","userInstallations"],"src/core/github-rate-limit.ts":["","isGitHubRateLimitError"],"build/core/github-rate-limit.js":["","isGitHubRateLimitError"],"src/core/github-token-context.ts":["","githubQuotaKey","githubTokenContext","githubTokenForStreamer","registerGitHubToken"],"build/core/github-token-context.js":["","githubQuotaKey","githubTokenContext","githubTokenForStreamer","registerGitHubToken"],"src/core/invalid-credential-backoff.ts":["","run"],"build/core/invalid-credential-backoff.js":["","run"],"src/core/legacy-token-refresh.ts":["","refresh","refreshLegacyToken"],"build/core/legacy-token-refresh.js":["","refresh","refreshLegacyToken"],"src/core/log-context.ts":["","jobTrace","validTraceId"],"build/core/log-context.js":["","jobTrace","validTraceId"],"src/core/log-diagnostics.ts":["","data","errorDiagnostics","frame","safeDiagnosticFields"],"build/core/log-diagnostics.js":["","data","errorDiagnostics","frame","safeDiagnosticFields"],"src/core/log-memory.ts":["","logMemory","memoryBreakdown"],"build/core/log-memory.js":["","logMemory","memoryBreakdown"],"src/core/log-record.ts":["","allowed","logRecord"],"build/core/log-record.js":["","allowed","logRecord"],"src/core/log-reproduction.ts":["","requestReproduction","safeReproductionPath"],"build/core/log-reproduction.js":["","requestReproduction","safeReproductionPath"],"src/core/log-schema.ts":[""],"build/core/log-schema.js":[""],"src/core/logger.ts":["","bucketFor","clampPayload","createLogger","emit","getDroppedOutput","getInProcessDropped","getRedis","hourKey","persistError","reportOutputDrops","resolveThreshold","serializeError","trimErrorLike","trimRawArg","trimStack"],"build/core/logger.js":["","bucketFor","clampPayload","createLogger","emit","getDroppedOutput","getInProcessDropped","getRedis","hourKey","persistError","reportOutputDrops","resolveThreshold","serializeError","trimErrorLike","trimRawArg","trimStack"],"src/core/migrate-credentials.ts":["","enforceCredentialStorage","inspect","issue","migrateCredentials","processOwner","verifyCredentials"],"build/core/migrate-credentials.js":["","enforceCredentialStorage","inspect","issue","migrateCredentials","processOwner","verifyCredentials"],"src/core/model/anonymized-path.ts":[""],"build/core/model/anonymized-path.js":[""],"src/core/model/anonymizedGists/anonymizedGists.model.ts":[""],"build/core/model/anonymizedGists/anonymizedGists.model.js":[""],"src/core/model/anonymizedGists/anonymizedGists.schema.ts":[""],"build/core/model/anonymizedGists/anonymizedGists.schema.js":[""],"src/core/model/anonymizedGists/anonymizedGists.types.ts":[""],"build/core/model/anonymizedGists/anonymizedGists.types.js":[""],"src/core/model/anonymizedPullRequests/anonymizedPullRequests.model.ts":[""],"build/core/model/anonymizedPullRequests/anonymizedPullRequests.model.js":[""],"src/core/model/anonymizedPullRequests/anonymizedPullRequests.schema.ts":[""],"build/core/model/anonymizedPullRequests/anonymizedPullRequests.schema.js":[""],"src/core/model/anonymizedPullRequests/anonymizedPullRequests.types.ts":[""],"build/core/model/anonymizedPullRequests/anonymizedPullRequests.types.js":[""],"src/core/model/anonymizedRepositories/anonymizedRepositories.model.ts":[""],"build/core/model/anonymizedRepositories/anonymizedRepositories.model.js":[""],"src/core/model/anonymizedRepositories/anonymizedRepositories.schema.ts":[""],"build/core/model/anonymizedRepositories/anonymizedRepositories.schema.js":[""],"src/core/model/anonymizedRepositories/anonymizedRepositories.types.ts":[""],"build/core/model/anonymizedRepositories/anonymizedRepositories.types.js":[""],"src/core/model/conference/conferences.model.ts":[""],"build/core/model/conference/conferences.model.js":[""],"src/core/model/conference/conferences.schema.ts":[""],"build/core/model/conference/conferences.schema.js":[""],"src/core/model/conference/conferences.types.ts":[""],"build/core/model/conference/conferences.types.js":[""],"src/core/model/credentials/credentials.model.ts":[""],"build/core/model/credentials/credentials.model.js":[""],"src/core/model/dailyStats/dailyStats.model.ts":[""],"build/core/model/dailyStats/dailyStats.model.js":[""],"src/core/model/dailyStats/dailyStats.schema.ts":[""],"build/core/model/dailyStats/dailyStats.schema.js":[""],"src/core/model/dailyStats/dailyStats.types.ts":[""],"build/core/model/dailyStats/dailyStats.types.js":[""],"src/core/model/dashboard-name.ts":[""],"build/core/model/dashboard-name.js":[""],"src/core/model/files/files.model.ts":[""],"build/core/model/files/files.model.js":[""],"src/core/model/files/files.schema.ts":[""],"build/core/model/files/files.schema.js":[""],"src/core/model/files/files.types.ts":[""],"build/core/model/files/files.types.js":[""],"src/core/model/github-installation.ts":[""],"build/core/model/github-installation.js":[""],"src/core/model/owner-alert-lifecycle.schema.ts":["","begin","finish","ownerAlertLifecycle"],"build/core/model/owner-alert-lifecycle.schema.js":["","begin","finish","ownerAlertLifecycle"],"src/core/model/repositories/repositories.model.ts":[""],"build/core/model/repositories/repositories.model.js":[""],"src/core/model/repositories/repositories.schema.ts":[""],"build/core/model/repositories/repositories.schema.js":[""],"src/core/model/repositories/repositories.types.ts":[""],"build/core/model/repositories/repositories.types.js":[""],"src/core/model/repository-access.schema.ts":[""],"build/core/model/repository-access.schema.js":[""],"src/core/model/user-repositories.ts":[""],"build/core/model/user-repositories.js":[""],"src/core/model/users/users.model.ts":[""],"build/core/model/users/users.model.js":[""],"src/core/model/users/users.schema.ts":[""],"build/core/model/users/users.schema.js":[""],"src/core/model/users/users.types.ts":[""],"build/core/model/users/users.types.js":[""],"src/core/owner-notifications.ts":["","alertCollection","applyDeferredRecoveries","bindingHash","clearOwnerDispatch","commitOwnerRevision","completeRecovery","deferRecoveryUntil","expiredPending","expiredPreparation","generationFilter","initializeOwnerAccessAlerts","isAccessFailure","normalizeEmail","notificationEmail","notifyOwnerAccessProblem","prepareLegacyOwnerAlertMigration","prepareOwnerDispatch","recipientAlertKey","reconcileCompletedSend","reconcileCompletedSends","reconcileUnsentAlerts","releaseUnsentAlert","resetOwnerAccessAlerts","retryAlertWrite","revisionFilter","saveDeliveries","saveProgress","withOwnerAccessRecovery"],"build/core/owner-notifications.js":["","alertCollection","applyDeferredRecoveries","bindingHash","clearOwnerDispatch","commitOwnerRevision","completeRecovery","deferRecoveryUntil","expiredPending","expiredPreparation","generationFilter","initializeOwnerAccessAlerts","isAccessFailure","normalizeEmail","notificationEmail","notifyOwnerAccessProblem","prepareLegacyOwnerAlertMigration","prepareOwnerDispatch","recipientAlertKey","reconcileCompletedSend","reconcileCompletedSends","reconcileUnsentAlerts","releaseUnsentAlert","resetOwnerAccessAlerts","retryAlertWrite","revisionFilter","saveDeliveries","saveProgress","withOwnerAccessRecovery"],"src/core/performance-monitoring.ts":["","containerMemoryLimit","emptyMetric","flush","flushPerformanceMetrics","percentileUpperBound","performanceReport","redisDeadline","socketSnapshot","startPerformanceMonitoring"],"build/core/performance-monitoring.js":["","containerMemoryLimit","emptyMetric","flush","flushPerformanceMetrics","percentileUpperBound","performanceReport","redisDeadline","socketSnapshot","startPerformanceMonitoring"],"src/core/preserve-files.ts":["","compilePreserveMatcher","dedupePreservePatterns","isPreservedPath","normalizePreserveFiles","parsePattern"],"build/core/preserve-files.js":["","compilePreserveMatcher","dedupePreservePatterns","isPreservedPath","normalizePreserveFiles","parsePattern"],"src/core/process-monitoring.ts":["","installFatalErrorLogging","report"],"build/core/process-monitoring.js":["","installFatalErrorLogging","report"],"src/core/recover-owner-credential.ts":["","createOwnerCredentialRecovery","lookup"],"build/core/recover-owner-credential.js":["","createOwnerCredentialRecovery","lookup"],"src/core/recover-repository-owners.ts":["","archive","cleanup","fail","identifyGitHubToken","lookup","processRow","recoverRepositoryOwners","safeRepoId","unchanged"],"build/core/recover-repository-owners.js":["","archive","cleanup","fail","identifyGitHubToken","lookup","processRow","recoverRepositoryOwners","safeRepoId","unchanged"],"src/core/redact-secrets.ts":["","redactSecrets"],"build/core/redact-secrets.js":["","redactSecrets"],"src/core/registration-email.ts":["","saveRegistrationEmail","usableEmail"],"build/core/registration-email.js":["","saveRegistrationEmail","usableEmail"],"src/core/repository-access.types.ts":[""],"build/core/repository-access.types.js":[""],"src/core/repository-expiration-email.ts":["","notifyRepositoryExpired"],"build/core/repository-expiration-email.js":["","notifyRepositoryExpired"],"src/core/repository-failure-status.ts":["","isQuotaFailure","repositoryFailureStatus"],"build/core/repository-failure-status.js":["","isQuotaFailure","repositoryFailureStatus"],"src/core/repository-id.ts":[""],"build/core/repository-id.js":[""],"src/core/request-evidence.ts":["","expectedResponseBytes","recordResponseFailure","recordUpstreamFailure","responseEvidence"],"build/core/request-evidence.js":["","expectedResponseBytes","recordResponseFailure","recordUpstreamFailure","responseEvidence"],"src/core/request-monitoring.ts":["","activeRequestCount","advance","cacheTraffic","count","done","drain","finish","measureStage","monitorRequests","observe","recordCacheHit","requestHeaders","requestRoute","start","startStage"],"build/core/request-monitoring.js":["","activeRequestCount","advance","cacheTraffic","count","done","drain","finish","measureStage","monitorRequests","observe","recordCacheHit","requestHeaders","requestRoute","start","startStage"],"src/core/response-cancellation.ts":["","isResponseCancellation"],"build/core/response-cancellation.js":["","isResponseCancellation"],"src/core/response-stream.ts":["","cleanup","done","failed","streamResponse","upstreamFailed"],"build/core/response-stream.js":["","cleanup","done","failed","streamResponse","upstreamFailed"],"src/core/source/GitHubBase.ts":["","classifyGitHubMissError","getFileContent","getFiles"],"build/core/source/GitHubBase.js":["","classifyGitHubMissError","getFileContent","getFiles"],"src/core/source/GitHubDownload.ts":["","download","getFileContent","getFiles","getZipUrl","humanFileSize","isCacheComplete"],"build/core/source/GitHubDownload.js":["","download","getFileContent","getFiles","getZipUrl","humanFileSize","isCacheComplete"],"src/core/source/GitHubRepository.ts":["","branches","getCommitInfo","getRepositoryFromGitHub","readme","toJSON"],"build/core/source/GitHubRepository.js":["","branches","getCommitInfo","getRepositoryFromGitHub","readme","toJSON"],"src/core/source/GitHubStream.ts":["","admitResolvedBytes","assertActive","assertDownloadUrl","assertHost","cached","confirmOwnerAccess","deferredRawDownload","download","downloadError","downloadFile","downloadFileViaRaw","downloadRaw","downloadViaJsDelivr","downloadWithFallback","fallbackToRaw","fetchContent","fetchFileInfoFromPath","fetchFileMetadata","getFileContent","getFileContentCache","getFiles","getGHTree","githubRawFileUrl","iterateFiles","iterateTreeBatches","jsDelivrFileUrl","lfsPointerGuard","normalize","pMap","produce","rejectLfsPointer","resolve","resolveLfsPointer","stopSourceOnDestroy","transform","tree2Tree","verify","worker"],"build/core/source/GitHubStream.js":["","admitResolvedBytes","assertActive","assertDownloadUrl","assertHost","cached","confirmOwnerAccess","deferredRawDownload","download","downloadError","downloadFile","downloadFileViaRaw","downloadRaw","downloadViaJsDelivr","downloadWithFallback","fallbackToRaw","fetchContent","fetchFileInfoFromPath","fetchFileMetadata","getFileContent","getFileContentCache","getFiles","getGHTree","githubRawFileUrl","iterateFiles","iterateTreeBatches","jsDelivrFileUrl","lfsPointerGuard","normalize","pMap","produce","rejectLfsPointer","resolve","resolveLfsPointer","stopSourceOnDestroy","transform","tree2Tree","verify","worker"],"src/core/source/Source.ts":["","sourceStorageSize"],"build/core/source/Source.js":["","sourceStorageSize"],"src/core/source/Zip.ts":["","getFileContent","getFiles","toJSON"],"build/core/source/Zip.js":["","getFileContent","getFiles","toJSON"],"src/core/source/github-content-miss.ts":["","cachedContentMiss","classifyContentMiss","missKey","probeError"],"build/core/source/github-content-miss.js":["","cachedContentMiss","classifyContentMiss","missKey","probeError"],"src/core/source/github-submodules.ts":["","expandSubmodules","safeRepositoryPath","submoduleRepository","validUpstream","validateMounts"],"build/core/source/github-submodules.js":["","expandSubmodules","safeRepositoryPath","submoduleRepository","validUpstream","validateMounts"],"src/core/source-file-list.ts":["","isSafeSourcePath","sourceFileContent","sourceFileList"],"build/core/source-file-list.js":["","isSafeSourcePath","sourceFileContent","sourceFileList"],"src/core/storage/FileSystem.ts":["","archive","exists","extractZip","fileInfo","finish","listFiles","mk","read","removeLegacyContent","rm","send","write"],"build/core/storage/FileSystem.js":["","archive","exists","extractZip","fileInfo","finish","listFiles","mk","read","removeLegacyContent","rm","send","write"],"src/core/storage/S3.ts":["","archive","client","exists","extractZip","fileInfo","flush","listFiles","mk","read","removeLegacyContent","removeMatching","rm","send","transform","write"],"build/core/storage/S3.js":["","archive","client","exists","extractZip","fileInfo","flush","listFiles","mk","read","removeLegacyContent","removeMatching","rm","send","transform","write"],"src/core/storage/Storage.ts":["","archive","assertSafePath","exists","extractZip","fileInfo","listFiles","mk","read","removeLegacyContent","repoPath","rm","sanitizeZipEntryName","send","write"],"build/core/storage/Storage.js":["","archive","assertSafePath","exists","extractZip","fileInfo","listFiles","mk","read","removeLegacyContent","repoPath","rm","sanitizeZipEntryName","send","write"],"src/core/storage.ts":[""],"build/core/storage.js":[""],"src/core/streamer-cache-probe.ts":["","abort","probeStreamerCache"],"build/core/streamer-cache-probe.js":["","abort","probeStreamerCache"],"src/core/streamer-response.ts":["","rejectStreamerRedirects"],"build/core/streamer-response.js":["","rejectStreamerRedirects"],"src/core/temporary-storage.ts":["","maintainTextSpools","removeStaleTextSpools","run","startTemporaryStorageMaintenance"],"build/core/temporary-storage.js":["","maintainTextSpools","removeStaleTextSpools","run","startTemporaryStorageMaintenance"],"src/core/term-hints.ts":["","escapeTermLine","termHints"],"build/core/term-hints.js":["","escapeTermLine","termHints"],"src/core/term-matching.ts":["","diacriticInsensitive","isWord","parseTermSpec","stripDiacritics","termVariants","withWordBoundaries"],"build/core/term-matching.js":["","diacriticInsensitive","isWord","parseTermSpec","stripDiacritics","termVariants","withWordBoundaries"],"src/core/term-presence.ts":["","candidates","firstCharacters","overlap"],"build/core/term-presence.js":["","candidates","firstCharacters","overlap"],"src/core/transformed-cache.ts":["","assertActive","assertTransformScopeActive","copyCached","produceActive","pruneTransformedCache","read","removeEntry","removeTransformedRepositoryCache","scopeActive","transformedFile"],"build/core/transformed-cache.js":["","assertActive","assertTransformScopeActive","copyCached","produceActive","pruneTransformedCache","read","removeEntry","removeTransformedRepositoryCache","scopeActive","transformedFile"],"src/core/types.ts":[""],"build/core/types.js":[""],"src/core/url-utils.ts":["","joinUrl"],"build/core/url-utils.js":["","joinUrl"],"src/core/user-repository-list.ts":["","acquireLock","appUsers","applyRepositoryWebhook","clearRepositoryList","date","escapeRegex","hasApp","installationOwners","markRepositoryListStale","pickerConnection","repositoryListPage","retryDelay","runSync","settleRepositorySyncs","startRepositorySync","toRow","upsertRows","upstreamPages"],"build/core/user-repository-list.js":["","acquireLock","appUsers","applyRepositoryWebhook","clearRepositoryList","date","escapeRegex","hasApp","installationOwners","markRepositoryListStale","pickerConnection","repositoryListPage","retryDelay","runSync","settleRepositorySyncs","startRepositorySync","toRow","upsertRows","upstreamPages"],"src/core/zipStream.ts":["","fail","final","isEntryAllowed","onArchived","resumeParser","startArchive","stop","streamAnonymizedZip","transform","write","written"],"build/core/zipStream.js":["","fail","final","isEntryAllowed","onArchived","resumeParser","startArchive","stop","streamAnonymizedZip","transform","write","written"],"src/markdown-diagrams.ts":["","arcs","array","geometry","inspect","object","orientPolygons","position","positions","renderDiagram","stlPaths","validateMap"],"build/markdown-diagrams.js":["","arcs","array","geometry","inspect","object","orientPolygons","position","positions","renderDiagram","stlPaths","validateMap"],"src/markdown.ts":["","code","escapeHtml","link","math","processAllTokens","renderMarkdown","resolveUrl","sanitizeMarkdownHtml","tokenizer","trusted","url"],"build/markdown.js":["","code","escapeHtml","link","math","processAllTokens","renderMarkdown","resolveUrl","sanitizeMarkdownHtml","tokenizer","trusted","url"],"src/queue/index.ts":["","addRemovalJob","markErrorIfInFlight","markErrorIfRemoving","recoverStuckPreparing","recoverStuckRemoving","startWorker"],"build/queue/index.js":["","addRemovalJob","markErrorIfInFlight","markErrorIfRemoving","recoverStuckPreparing","recoverStuckRemoving","startWorker"],"src/queue/log-job.ts":["","loggedJob"],"build/queue/log-job.js":["","loggedJob"],"src/queue/processes/downloadRepository.ts":["","updateProgress"],"build/queue/processes/downloadRepository.js":["","updateProgress"],"src/queue/processes/removeCache.ts":["","createRemoveCacheProcessor","processRemoveCache"],"build/queue/processes/removeCache.js":["","createRemoveCacheProcessor","processRemoveCache"],"src/queue/processes/removeRepository.ts":["","createRemoveRepositoryProcessor","processRemoveRepository"],"build/queue/processes/removeRepository.js":["","createRemoveRepositoryProcessor","processRemoveRepository"],"src/queue/queueMetrics.ts":["","getClient","key","minuteTs","queryMetrics","recordMetric"],"build/queue/queueMetrics.js":["","getClient","key","minuteTs","queryMetrics","recordMetric"],"src/queue/worker-path.ts":["","resolveWorkerProcessorPath"],"build/queue/worker-path.js":["","resolveWorkerProcessorPath"],"src/scripts/billing-operations.ts":["","main"],"build/scripts/billing-operations.js":["","main"],"src/scripts/check-github-app-key.ts":["","checkGitHubAppKey"],"build/scripts/check-github-app-key.js":["","checkGitHubAppKey"],"src/scripts/create-performance-indexes.ts":["","main"],"build/scripts/create-performance-indexes.js":["","main"],"src/scripts/migrate-credentials.ts":["","main"],"build/scripts/migrate-credentials.js":["","main"],"src/scripts/purge-legacy-sessions.ts":["","main"],"build/scripts/purge-legacy-sessions.js":["","main"],"src/scripts/reconcile-legacy-owner-alerts.ts":["","main"],"build/scripts/reconcile-legacy-owner-alerts.js":["","main"],"src/scripts/recover-repository-owners.ts":["","main"],"build/scripts/recover-repository-owners.js":["","main"],"src/scripts/retire-file-indexes.ts":["","main","retireFileIndexes"],"build/scripts/retire-file-indexes.js":["","main","retireFileIndexes"],"src/server/admin-log-investigation.ts":["","collector","endpoint","grafana","incidentGroups","investigateLogs","logOptions","range","read","rows","safeRedisLog","safeRow","signature","timestampKey"],"build/server/admin-log-investigation.js":["","collector","endpoint","grafana","incidentGroups","investigateLogs","logOptions","range","read","rows","safeRedisLog","safeRow","signature","timestampKey"],"src/server/dailyStatsSnapshot.ts":["","clearStatsCache","computeAndStoreDailyStats","computeStats","ensureTodaySnapshot","getCurrentStats","getStatsHistory","mergeCurrentStatsIntoHistory","read","utcMidnight"],"build/server/dailyStatsSnapshot.js":["","clearStatsCache","computeAndStoreDailyStats","computeStats","ensureTodaySnapshot","getCurrentStats","getStatsHistory","mergeCurrentStatsIntoHistory","read","utcMidnight"],"src/server/database.ts":["","connect","getGist","getMongoUrl","getPullRequest","getRepository"],"build/server/database.js":["","connect","getGist","getMongoUrl","getPullRequest","getRepository"],"src/server/index.ts":["","apiRateKey","asset","getIndexHtml","indexResponse","setHeaders","start"],"build/server/index.js":["","apiRateKey","asset","getIndexHtml","indexResponse","setHeaders","start"],"src/server/rate-limit-key.ts":["","requestRateLimitKey"],"build/server/rate-limit-key.js":["","requestRateLimitKey"],"src/server/request-rate-limit.ts":["","sendRequestRateLimit"],"build/server/request-rate-limit.js":["","sendRequestRateLimit"],"src/server/review-consent-page.ts":["","asset","createReviewConsentPage","isReviewConsentPagePath"],"build/server/review-consent-page.js":["","asset","createReviewConsentPage","isReviewConsentPagePath"],"src/server/routes/admin-billing.ts":["","usernames"],"build/server/routes/admin-billing.js":["","usernames"],"src/server/routes/admin-emails.ts":["","emailHistoryPeriod","emailHistoryQuery","emailHistorySummary","emptyCounts"],"build/server/routes/admin-emails.js":["","emailHistoryPeriod","emailHistoryQuery","emailHistorySummary","emptyCounts"],"src/server/routes/admin-tokens.ts":[""],"build/server/routes/admin-tokens.js":[""],"src/server/routes/admin.ts":["","csvEscape","dashboardCache","escapeRegex","getErrorLogClient","hourKey","isSafeSortField","matches","parseDateRange","parseSort","pickQueue","queueStats","sendCsv"],"build/server/routes/admin.js":["","csvEscape","dashboardCache","escapeRegex","getErrorLogClient","hourKey","isSafeSortField","matches","parseDateRange","parseSort","pickQueue","queueStats","sendCsv"],"src/server/routes/anonymize-preview.ts":[""],"build/server/routes/anonymize-preview.js":[""],"src/server/routes/auth-utils.ts":["","getLoginToken","isDisabledAccount","safeAuthReturnTo"],"build/server/routes/auth-utils.js":["","getLoginToken","isDisabledAccount","safeAuthReturnTo"],"src/server/routes/billing.ts":["","displayedPrice","purchaseHistory","state","until"],"build/server/routes/billing.js":["","displayedPrice","purchaseHistory","state","until"],"src/server/routes/conference.ts":["","applyConferenceForm","conferencePlans","offeredConferencePlans","validateConferenceForm"],"build/server/routes/conference.js":["","applyConferenceForm","conferencePlans","offeredConferencePlans","validateConferenceForm"],"src/server/routes/connection.ts":["","ensureAuthenticated","initSession","verify"],"build/server/routes/connection.js":["","ensureAuthenticated","initSession","verify"],"src/server/routes/dashboard-names.ts":["","ensureDashboardNames","invalidateDashboardNames"],"build/server/routes/dashboard-names.js":["","ensureDashboardNames","invalidateDashboardNames"],"src/server/routes/dashboard-summary.ts":["","dashboardPipeline","dashboardSummary","project"],"build/server/routes/dashboard-summary.js":["","dashboardPipeline","dashboardSummary","project"],"src/server/routes/file-etag.ts":["","fileETag"],"build/server/routes/file-etag.js":["","fileETag"],"src/server/routes/file.ts":["","decodePathSegment","filePathFromRequestUrl","isScriptableDocument"],"build/server/routes/file.js":["","decodePathSegment","filePathFromRequestUrl","isScriptableDocument"],"src/server/routes/gist-private.ts":["","updateGistModel","validateNewGist"],"build/server/routes/gist-private.js":["","updateGistModel","validateNewGist"],"src/server/routes/gist-public.ts":[""],"build/server/routes/gist-public.js":[""],"src/server/routes/github-app.ts":["","connectionCSRF","consumeFlow","enabled","newFlow","revokeGrant","safeReturnTo","saveSession","validWebhookSignature"],"build/server/routes/github-app.js":["","connectionCSRF","consumeFlow","enabled","newFlow","revokeGrant","safeReturnTo","saveSession","validWebhookSignature"],"src/server/routes/index.ts":[""],"build/server/routes/index.js":[""],"src/server/routes/maintenance-limits.ts":[""],"build/server/routes/maintenance-limits.js":[""],"src/server/routes/maintenance-tokens.ts":[""],"build/server/routes/maintenance-tokens.js":[""],"src/server/routes/maintenance.ts":["","invalid","maintenanceSettings"],"build/server/routes/maintenance.js":["","invalid","maintenanceSettings"],"src/server/routes/option.ts":[""],"build/server/routes/option.js":[""],"src/server/routes/project-names.ts":["","projectNameKey","saveProjectName"],"build/server/routes/project-names.js":["","projectNameKey","saveProjectName"],"src/server/routes/pullRequest-private.ts":["","updatePullRequestModel","validateNewPullRequest"],"build/server/routes/pullRequest-private.js":["","updatePullRequestModel","validateNewPullRequest"],"src/server/routes/pullRequest-public.ts":[""],"build/server/routes/pullRequest-public.js":[""],"src/server/routes/repository-private.ts":["","enqueueSavedSnapshot","hasRepositorySourceChanged","previewToken","removeRepoFromConference","shouldReactivateInactiveRepository","updateRepoModel","validateNewRepo"],"build/server/routes/repository-private.js":["","enqueueSavedSnapshot","hasRepositorySourceChanged","previewToken","removeRepoFromConference","shouldReactivateInactiveRepository","updateRepoModel","validateNewRepo"],"src/server/routes/repository-public.ts":["","addCount"],"build/server/routes/repository-public.js":["","addCount"],"src/server/routes/route-utils.ts":["","ensureUrl","explicitErrorStatus","extendExpirationDate","getGist","getPullRequest","getRepo","getUser","handleError","isCoauthor","isOwnerCoauthorOrAdmin","isOwnerOrAdmin","notConnected","originFromStack","printError"],"build/server/routes/route-utils.js":["","ensureUrl","explicitErrorStatus","extendExpirationDate","getGist","getPullRequest","getRepo","getUser","handleError","isCoauthor","isOwnerCoauthorOrAdmin","isOwnerOrAdmin","notConnected","originFromStack","printError"],"src/server/routes/token-auth.ts":["","bearerTokenAuth","generateToken","hashToken","maintenanceTokenAllows"],"build/server/routes/token-auth.js":["","bearerTokenAuth","generateToken","hashToken","maintenanceTokenAllows"],"src/server/routes/user.ts":["","getAllRepositories"],"build/server/routes/user.js":["","getAllRepositories"],"src/server/routes/webview.ts":["","escapeHtml","webView"],"build/server/routes/webview.js":["","escapeHtml","webView"],"src/server/schedule.ts":["","conferenceStatusCheck","contentMaintenanceQuery","dailyStatsSnapshot","expireContent","flushBatch","repositoryMaintenanceQuery","repositoryStatusCheck","runRepositoryStatusCheck"],"build/server/schedule.js":["","conferenceStatusCheck","contentMaintenanceQuery","dailyStatsSnapshot","expireContent","flushBatch","repositoryMaintenanceQuery","repositoryStatusCheck","runRepositoryStatusCheck"],"src/server/server-options.ts":["","serverOptions"],"build/server/server-options.js":["","serverOptions"],"src/server/service/review-callbacks.ts":["","createReviewCallbacks","invalid","resolve"],"build/server/service/review-callbacks.js":["","createReviewCallbacks","invalid","resolve"],"src/server/service/review-capabilities.ts":["","createReviewCapabilities","fail","invalid","one","record","registry","timestamp"],"build/server/service/review-capabilities.js":["","createReviewCapabilities","fail","invalid","one","record","registry","timestamp"],"src/server/service/review-completion-http.ts":["","abort","cleanup","close","createReviewCompletionService","data","end","exact","fail","receipt"],"build/server/service/review-completion-http.js":["","abort","cleanup","close","createReviewCompletionService","data","end","exact","fail","receipt"],"src/server/service/review-consent-http.ts":["","createReviewConsentRouter","csrf","current","done","fields","reject"],"build/server/service/review-consent-http.js":["","createReviewConsentRouter","csrf","current","done","fields","reject"],"src/server/service/review-intent-client.ts":["","abort","consume","createReviewIntentConsumer","decode","fail","finish","id","instant","intent","object"],"build/server/service/review-intent-client.js":["","abort","consume","createReviewIntentConsumer","decode","fail","finish","id","instant","intent","object"],"src/server/service/review-json.ts":["","decodeReviewJSON","invalid","space","string","walk"],"build/server/service/review-json.js":["","decodeReviewJSON","invalid","space","string","walk"],"src/server/service/review-owner-consent.ts":["","completion","completionCode","confirm","createReviewOwnerConsent","decode","deny","exchange","handoff","hash","objectId","preview","principal","read","receipt","signature","transaction"],"build/server/service/review-owner-consent.js":["","completion","completionCode","confirm","createReviewOwnerConsent","decode","deny","exchange","handoff","hash","objectId","preview","principal","read","receipt","signature","transaction"],"src/server/service/review-service-auth.ts":["","authenticate","createReviewServiceAuth","date","fields","invalid","singleReviewHeader","valid"],"build/server/service/review-service-auth.js":["","authenticate","createReviewServiceAuth","date","fields","invalid","singleReviewHeader","valid"],"src/server/trustProxy.ts":["","isCloudflareIP","resolveTrustProxy"],"build/server/trustProxy.js":["","isCloudflareIP","resolveTrustProxy"],"src/server/website-rate-limit.ts":["","createWebsiteRateLimiter"],"build/server/website-rate-limit.js":["","createWebsiteRateLimiter"],"src/streamer/index.ts":["","start"],"build/streamer/index.js":["","start"],"src/streamer/route.ts":["","handleStreamError"],"build/streamer/route.js":["","handleStreamError"]} +source_functions = {"src/cli/index.ts":["","generateRandomFileName","main"],"build/cli/index.js":["","generateRandomFileName","main"],"src/config.ts":[""],"build/config.js":[""],"src/core/AnonymizedFile.ts":["","anonymizedContent","assertContentFile","cancel","content","defaultMaskCandidateRegex","escapeRegex","extension","forwardHeaders","getFileInfo","handleStreamError","isFileSupported","isImage","originalPath","probe","recoverTruncatedFile","send","sha","size","streamerErrorToAnonymous","visibleFile"],"build/core/AnonymizedFile.js":["","anonymizedContent","assertContentFile","cancel","content","defaultMaskCandidateRegex","escapeRegex","extension","forwardHeaders","getFileInfo","handleStreamError","isFileSupported","isImage","originalPath","probe","recoverTruncatedFile","send","sha","size","streamerErrorToAnonymous","visibleFile"],"src/core/AnonymousError.ts":["","detail","toString","url"],"build/core/AnonymousError.js":["","detail","toString","url"],"src/core/Conference.ts":["","expire","isExpired","remove","repositories","toJSON","updateStatus"],"build/core/Conference.js":["","expire","isExpired","remove","repositories","toJSON","updateStatus"],"src/core/Gist.ts":["","anonymize","check","conference","content","countView","download","downloadContent","downloadWithAccess","expire","getAccess","getToken","markExpired","remove","resetSate","toJSON","updateIfNeeded","updateStatus"],"build/core/Gist.js":["","anonymize","check","conference","content","countView","download","downloadContent","downloadWithAccess","expire","getAccess","getToken","markExpired","remove","resetSate","toJSON","updateIfNeeded","updateStatus"],"src/core/GitHubUtils.ts":["","abortableGateLookup","cancelled","checkToken","ensureRedisGateClient","getRedisGateResetAt","getToken","getTokenGateResetAt","octokit","ownerGitHubAccessRequired","rateLimitDetail","resolveRepositoryToken","run","setRedisGate","setRedisGateFromWorker","setTokenGate","waitForTokenGate"],"build/core/GitHubUtils.js":["","abortableGateLookup","cancelled","checkToken","ensureRedisGateClient","getRedisGateResetAt","getToken","getTokenGateResetAt","octokit","ownerGitHubAccessRequired","rateLimitDetail","resolveRepositoryToken","run","setRedisGate","setRedisGateFromWorker","setTokenGate","waitForTokenGate"],"src/core/PullRequest.ts":["","anonymize","check","conference","content","countView","download","downloadContent","expire","getToken","markExpired","remove","resetSate","toJSON","updateIfNeeded","updateStatus"],"build/core/PullRequest.js":["","anonymize","check","conference","content","countView","download","downloadContent","expire","getToken","markExpired","remove","resetSate","toJSON","updateIfNeeded","updateStatus"],"src/core/Repository.ts":["","anonymize","anonymizeTreeRecursive","anonymizedFiles","assertNotArchived","buildPathIndex","check","checkRefreshWrite","cleanupRetiredFileTrees","cleanupStagedFileTree","clearRows","completeRecoveredFileMetadata","computeSize","conference","countView","current","ensureFileTree","expire","fileSnapshotFilter","files","findAnonymizedPath","generateAnonymizeTransformer","getToken","hasEmptyTree","indexPaths","insertBatch","invalidateFileMetadata","isReady","markCachePresent","markExpired","pathKey","readFiles","refresh","refreshFilter","refreshIfNeeded","remove","removeCache","resetSate","searchFiles","snapshotValue","submoduleMounts","toJSON","updateIfNeeded","updateProgressMessage","updateRetiringPathIndex","updateStatus","zip"],"build/core/Repository.js":["","anonymize","anonymizeTreeRecursive","anonymizedFiles","assertNotArchived","buildPathIndex","check","checkRefreshWrite","cleanupRetiredFileTrees","cleanupStagedFileTree","clearRows","completeRecoveredFileMetadata","computeSize","conference","countView","current","ensureFileTree","expire","fileSnapshotFilter","files","findAnonymizedPath","generateAnonymizeTransformer","getToken","hasEmptyTree","indexPaths","insertBatch","invalidateFileMetadata","isReady","markCachePresent","markExpired","pathKey","readFiles","refresh","refreshFilter","refreshIfNeeded","remove","removeCache","resetSate","searchFiles","snapshotValue","submoduleMounts","toJSON","updateIfNeeded","updateProgressMessage","updateRetiringPathIndex","updateStatus","zip"],"src/core/User.ts":["","getAccessToken","getGists","getGitHubRepositories","getPullRequests","getRepositories","markListExpired","quotaRepositories","repositoryMembership","toJSON"],"build/core/User.js":["","getAccessToken","getGists","getGitHubRepositories","getPullRequests","getRepositories","markListExpired","quotaRepositories","repositoryMembership","toJSON"],"src/core/anonymization-errors.ts":["","anonymizationErrorCode","data"],"build/core/anonymization-errors.js":["","anonymizationErrorCode","data"],"src/core/anonymization-pool.ts":["","anonymizeOnWorker","cancel","exited","failed","finish","getAnonymizationPoolStats","message","pump","release","releaseSpool","removeWaiting","reserveSpool"],"build/core/anonymization-pool.js":["","anonymizeOnWorker","cancel","exited","failed","finish","getAnonymizationPoolStats","message","pump","release","releaseSpool","removeWaiting","reserveSpool"],"src/core/anonymization.worker.ts":[""],"build/core/anonymization.worker.js":[""],"src/core/anonymize-utils.ts":["","_destroy","_flush","_read","_transform","anonymize","anonymizePath","anonymizePathCompiled","asciiWordAt","cb","classifyByName","compileTerms","compiledTermPlan","escapeRegex","hasCatastrophicBacktracking","hasCustomTermReplacement","isTextFile","isTextualMime","produce","removeImage","removeLink","replace","replaceGitHubSelfLinks","replaceTerm","replaceTerms","requiredPrefix","runWithAnonymizationDeadline","spoolChunk","streamToString"],"build/core/anonymize-utils.js":["","_destroy","_flush","_read","_transform","anonymize","anonymizePath","anonymizePathCompiled","asciiWordAt","cb","classifyByName","compileTerms","compiledTermPlan","escapeRegex","hasCatastrophicBacktracking","hasCustomTermReplacement","isTextFile","isTextualMime","produce","removeImage","removeLink","replace","replaceGitHubSelfLinks","replaceTerm","replaceTerms","requiredPrefix","runWithAnonymizationDeadline","spoolChunk","streamToString"],"src/core/archive-entry.ts":["","appendArchiveEntry","cleanup","closed","done","fail","zipEntryOptions"],"build/core/archive-entry.js":["","appendArchiveEntry","cleanup","closed","done","fail","zipEntryOptions"],"src/core/async-cache.ts":["","clear","get","prune"],"build/core/async-cache.js":["","clear","get","prune"],"src/core/billing/config.ts":["","billingError","billingOrigin","billingPlans","isConferencePlan","legacyPricePlans","requireBilling"],"build/core/billing/config.js":["","billingError","billingOrigin","billingPlans","isConferencePlan","legacyPricePlans","requireBilling"],"src/core/billing/drafts.ts":["","getBillingDraft","saveBillingDraft","validDraftPath"],"build/core/billing/drafts.js":["","getBillingDraft","saveBillingDraft","validDraftPath"],"src/core/billing/events.ts":["","billingFailure","billingHealth","processBillingInbox","receiveBillingEvent","ref"],"build/core/billing/events.js":["","billingFailure","billingHealth","processBillingInbox","receiveBillingEvent","ref"],"src/core/billing/expiration.ts":["","addMonths","authorGrants","freeExpirationLimit","hasAutomaticUpdates","hasRepositoryGrant","maximumExpiration","neverExpirationDeadline","reconcileNeverExpiration","validateBillingExpiration"],"build/core/billing/expiration.js":["","addMonths","authorGrants","freeExpirationLimit","hasAutomaticUpdates","hasRepositoryGrant","maximumExpiration","neverExpirationDeadline","reconcileNeverExpiration","validateBillingExpiration"],"src/core/billing/maintenance.ts":["","events","reconcile","startBillingMaintenance"],"build/core/billing/maintenance.js":["","events","reconcile","startBillingMaintenance"],"src/core/billing/models.ts":[""],"build/core/billing/models.js":[""],"src/core/billing/quotas.ts":["","allocationExpression","allowance","assertConferenceAdmission","reserveFileExpansion","reserveRepository","sumExpansions","usableGrant"],"build/core/billing/quotas.js":["","allocationExpression","allowance","assertConferenceAdmission","reserveFileExpansion","reserveRepository","sumExpansions","usableGrant"],"src/core/billing/reconciliation.ts":["","discoverBillingCustomers","reconcileBillingAccount","reconcileBillingAccounts"],"build/core/billing/reconciliation.js":["","discoverBillingCustomers","reconcileBillingAccount","reconcileBillingAccounts"],"src/core/billing/report.ts":["","add","billingGrants","billingSummary","billingWebhookHealth","bucketFor","clearPriceCache","count","ends","fillSeries","grantFilter","missing","money","monthlyAmount","nextBucket","of","periodStart","planFamily","planRows","resolvePrices","revenueAvailable","roundMoney","rows","saleStages","sum","truncate","word"],"build/core/billing/report.js":["","add","billingGrants","billingSummary","billingWebhookHealth","bucketFor","clearPriceCache","count","ends","fillSeries","grantFilter","missing","money","monthlyAmount","nextBucket","of","periodStart","planFamily","planRows","resolvePrices","revenueAvailable","roundMoney","rows","saleStages","sum","truncate","word"],"src/core/billing/stripe.ts":["","cancelAccountBilling","createCheckout","fulfillCheckout","objectId","outcomeUrl","planForPrice","processBillingEvent","rememberConfiguredPrices","stripeClient","syncSubscription","untilFor","withBillingLock"],"build/core/billing/stripe.js":["","cancelAccountBilling","createCheckout","fulfillCheckout","objectId","outcomeUrl","planForPrice","processBillingEvent","rememberConfiguredPrices","stripeClient","syncSubscription","untilFor","withBillingLock"],"src/core/blob-cache.ts":["","accessed","cacheError","changes","close","closeBlobCaches","decision","evictTo","expire","fill","getOrFill","isCacheContention","lookup","loseLease","maintain","metric","open","openReader","path","release","releaseDisk","releaseFill","reservations","reserveDisk","resultBlobCache","saveDecision","sharedBlobCache","stats","transaction","trim","usage","validDigest","walk"],"build/core/blob-cache.js":["","accessed","cacheError","changes","close","closeBlobCaches","decision","evictTo","expire","fill","getOrFill","isCacheContention","lookup","loseLease","maintain","metric","open","openReader","path","release","releaseDisk","releaseFill","reservations","reserveDisk","resultBlobCache","saveDecision","sharedBlobCache","stats","transaction","trim","usage","validDigest","walk"],"src/core/bounded-zip.ts":["","boundedZip","cleanup","push","stop"],"build/core/bounded-zip.js":["","boundedZip","cleanup","push","stop"],"src/core/cache-coordination.ts":["","cacheCommand","cacheRedis","closeCacheRedis","coordinatedFill"],"build/core/cache-coordination.js":["","cacheCommand","cacheRedis","closeCacheRedis","coordinatedFill"],"src/core/cache-observability.ts":["","cacheMetricsReport","closeCacheMetrics","connection","flushCacheMetrics","observeCache"],"build/core/cache-observability.js":["","cacheMetricsReport","closeCacheMetrics","connection","flushCacheMetrics","observeCache"],"src/core/cached-repository-access.ts":["","canReadCachedRepository"],"build/core/cached-repository-access.js":["","canReadCachedRepository"],"src/core/cached-response.ts":["","abort","assertActive","decisionKey","localFailure","send","sendCached","sendSharedContent"],"build/core/cached-response.js":["","abort","assertActive","decisionKey","localFailure","send","sendCached","sendSharedContent"],"src/core/content-expiration.ts":["","expireEmbeddedContent"],"build/core/content-expiration.js":["","expireEmbeddedContent"],"src/core/content-generation.ts":["","contentGenerationPrefix","contentRetirementMarker"],"build/core/content-generation.js":["","contentGenerationPrefix","contentRetirementMarker"],"src/core/credential-crypto.ts":["","aad","createTokenCipher","decode","decrypt","encrypt"],"build/core/credential-crypto.js":["","aad","createTokenCipher","decode","decrypt","encrypt"],"src/core/credential-validation.ts":["","check","validate"],"build/core/credential-validation.js":["","check","validate"],"src/core/credentials.ts":["","credentialCipher","getCredential","getCredentialToken","replaceCredential","setCredential"],"build/core/credentials.js":["","credentialCipher","getCredential","getCredentialToken","replaceCredential","setCredential"],"src/core/database-timing.ts":["","installDatabaseTiming"],"build/core/database-timing.js":["","installDatabaseTiming"],"src/core/email-history.ts":["","complete","emailHistoryCollection","ensureEmailHistoryIndexes","sendTrackedEmail"],"build/core/email-history.js":["","complete","emailHistoryCollection","ensureEmailHistoryIndexes","sendTrackedEmail"],"src/core/expiring-map.ts":["","get","set"],"build/core/expiring-map.js":["","get","set"],"src/core/file-submodules.ts":["","hasVisibleSubmodules"],"build/core/file-submodules.js":["","hasVisibleSubmodules"],"src/core/file-tree.ts":["","clearStagedRowsInBatches","deleteRowsInBatches"],"build/core/file-tree.js":["","clearStagedRowsInBatches","deleteRowsInBatches"],"src/core/folder-counts.ts":["","aggregate","folderCounts"],"build/core/folder-counts.js":["","aggregate","folderCounts"],"src/core/github-app.ts":["","appError","appJWT","appRepositories","appUserToken","boundAppToken","clearAppTokenCache","encode","exchangeAppToken","githubRequest","installationToken","installationURL","reconcileAppGrant","reconcileInstallation","renew","saveAppGrant","selectRepositoryAccess","tokenFields","userInstallations"],"build/core/github-app.js":["","appError","appJWT","appRepositories","appUserToken","boundAppToken","clearAppTokenCache","encode","exchangeAppToken","githubRequest","installationToken","installationURL","reconcileAppGrant","reconcileInstallation","renew","saveAppGrant","selectRepositoryAccess","tokenFields","userInstallations"],"src/core/github-rate-limit.ts":["","isGitHubRateLimitError"],"build/core/github-rate-limit.js":["","isGitHubRateLimitError"],"src/core/github-token-context.ts":["","githubQuotaKey","githubTokenContext","githubTokenForStreamer","registerGitHubToken"],"build/core/github-token-context.js":["","githubQuotaKey","githubTokenContext","githubTokenForStreamer","registerGitHubToken"],"src/core/invalid-credential-backoff.ts":["","run"],"build/core/invalid-credential-backoff.js":["","run"],"src/core/legacy-token-refresh.ts":["","refresh","refreshLegacyToken"],"build/core/legacy-token-refresh.js":["","refresh","refreshLegacyToken"],"src/core/log-context.ts":["","jobTrace","validTraceId"],"build/core/log-context.js":["","jobTrace","validTraceId"],"src/core/log-diagnostics.ts":["","data","errorDiagnostics","frame","safeDiagnosticFields"],"build/core/log-diagnostics.js":["","data","errorDiagnostics","frame","safeDiagnosticFields"],"src/core/log-memory.ts":["","logMemory","memoryBreakdown"],"build/core/log-memory.js":["","logMemory","memoryBreakdown"],"src/core/log-record.ts":["","allowed","logRecord"],"build/core/log-record.js":["","allowed","logRecord"],"src/core/log-reproduction.ts":["","requestReproduction","safeReproductionPath"],"build/core/log-reproduction.js":["","requestReproduction","safeReproductionPath"],"src/core/log-schema.ts":[""],"build/core/log-schema.js":[""],"src/core/logger.ts":["","bucketFor","clampPayload","createLogger","emit","getDroppedOutput","getInProcessDropped","getRedis","hourKey","persistError","reportOutputDrops","resolveThreshold","serializeError","trimErrorLike","trimRawArg","trimStack"],"build/core/logger.js":["","bucketFor","clampPayload","createLogger","emit","getDroppedOutput","getInProcessDropped","getRedis","hourKey","persistError","reportOutputDrops","resolveThreshold","serializeError","trimErrorLike","trimRawArg","trimStack"],"src/core/migrate-credentials.ts":["","enforceCredentialStorage","inspect","issue","migrateCredentials","processOwner","verifyCredentials"],"build/core/migrate-credentials.js":["","enforceCredentialStorage","inspect","issue","migrateCredentials","processOwner","verifyCredentials"],"src/core/model/anonymized-path.ts":[""],"build/core/model/anonymized-path.js":[""],"src/core/model/anonymizedGists/anonymizedGists.model.ts":[""],"build/core/model/anonymizedGists/anonymizedGists.model.js":[""],"src/core/model/anonymizedGists/anonymizedGists.schema.ts":[""],"build/core/model/anonymizedGists/anonymizedGists.schema.js":[""],"src/core/model/anonymizedGists/anonymizedGists.types.ts":[""],"build/core/model/anonymizedGists/anonymizedGists.types.js":[""],"src/core/model/anonymizedPullRequests/anonymizedPullRequests.model.ts":[""],"build/core/model/anonymizedPullRequests/anonymizedPullRequests.model.js":[""],"src/core/model/anonymizedPullRequests/anonymizedPullRequests.schema.ts":[""],"build/core/model/anonymizedPullRequests/anonymizedPullRequests.schema.js":[""],"src/core/model/anonymizedPullRequests/anonymizedPullRequests.types.ts":[""],"build/core/model/anonymizedPullRequests/anonymizedPullRequests.types.js":[""],"src/core/model/anonymizedRepositories/anonymizedRepositories.model.ts":[""],"build/core/model/anonymizedRepositories/anonymizedRepositories.model.js":[""],"src/core/model/anonymizedRepositories/anonymizedRepositories.schema.ts":[""],"build/core/model/anonymizedRepositories/anonymizedRepositories.schema.js":[""],"src/core/model/anonymizedRepositories/anonymizedRepositories.types.ts":[""],"build/core/model/anonymizedRepositories/anonymizedRepositories.types.js":[""],"src/core/model/conference/conferences.model.ts":[""],"build/core/model/conference/conferences.model.js":[""],"src/core/model/conference/conferences.schema.ts":[""],"build/core/model/conference/conferences.schema.js":[""],"src/core/model/conference/conferences.types.ts":[""],"build/core/model/conference/conferences.types.js":[""],"src/core/model/credentials/credentials.model.ts":[""],"build/core/model/credentials/credentials.model.js":[""],"src/core/model/dailyStats/dailyStats.model.ts":[""],"build/core/model/dailyStats/dailyStats.model.js":[""],"src/core/model/dailyStats/dailyStats.schema.ts":[""],"build/core/model/dailyStats/dailyStats.schema.js":[""],"src/core/model/dailyStats/dailyStats.types.ts":[""],"build/core/model/dailyStats/dailyStats.types.js":[""],"src/core/model/dashboard-name.ts":[""],"build/core/model/dashboard-name.js":[""],"src/core/model/files/files.model.ts":[""],"build/core/model/files/files.model.js":[""],"src/core/model/files/files.schema.ts":[""],"build/core/model/files/files.schema.js":[""],"src/core/model/files/files.types.ts":[""],"build/core/model/files/files.types.js":[""],"src/core/model/github-installation.ts":[""],"build/core/model/github-installation.js":[""],"src/core/model/owner-alert-lifecycle.schema.ts":["","begin","finish","ownerAlertLifecycle"],"build/core/model/owner-alert-lifecycle.schema.js":["","begin","finish","ownerAlertLifecycle"],"src/core/model/repositories/repositories.model.ts":[""],"build/core/model/repositories/repositories.model.js":[""],"src/core/model/repositories/repositories.schema.ts":[""],"build/core/model/repositories/repositories.schema.js":[""],"src/core/model/repositories/repositories.types.ts":[""],"build/core/model/repositories/repositories.types.js":[""],"src/core/model/repository-access.schema.ts":[""],"build/core/model/repository-access.schema.js":[""],"src/core/model/user-repositories.ts":[""],"build/core/model/user-repositories.js":[""],"src/core/model/users/users.model.ts":[""],"build/core/model/users/users.model.js":[""],"src/core/model/users/users.schema.ts":[""],"build/core/model/users/users.schema.js":[""],"src/core/model/users/users.types.ts":[""],"build/core/model/users/users.types.js":[""],"src/core/owner-notifications.ts":["","alertCollection","applyDeferredRecoveries","bindingHash","clearOwnerDispatch","commitOwnerRevision","completeRecovery","deferRecoveryUntil","expiredPending","expiredPreparation","generationFilter","initializeOwnerAccessAlerts","isAccessFailure","normalizeEmail","notificationEmail","notifyOwnerAccessProblem","prepareLegacyOwnerAlertMigration","prepareOwnerDispatch","recipientAlertKey","reconcileCompletedSend","reconcileCompletedSends","reconcileUnsentAlerts","releaseUnsentAlert","resetOwnerAccessAlerts","retryAlertWrite","revisionFilter","saveDeliveries","saveProgress","withOwnerAccessRecovery"],"build/core/owner-notifications.js":["","alertCollection","applyDeferredRecoveries","bindingHash","clearOwnerDispatch","commitOwnerRevision","completeRecovery","deferRecoveryUntil","expiredPending","expiredPreparation","generationFilter","initializeOwnerAccessAlerts","isAccessFailure","normalizeEmail","notificationEmail","notifyOwnerAccessProblem","prepareLegacyOwnerAlertMigration","prepareOwnerDispatch","recipientAlertKey","reconcileCompletedSend","reconcileCompletedSends","reconcileUnsentAlerts","releaseUnsentAlert","resetOwnerAccessAlerts","retryAlertWrite","revisionFilter","saveDeliveries","saveProgress","withOwnerAccessRecovery"],"src/core/performance-monitoring.ts":["","containerMemoryLimit","emptyMetric","flush","flushPerformanceMetrics","percentileUpperBound","performanceReport","redisDeadline","socketSnapshot","startPerformanceMonitoring"],"build/core/performance-monitoring.js":["","containerMemoryLimit","emptyMetric","flush","flushPerformanceMetrics","percentileUpperBound","performanceReport","redisDeadline","socketSnapshot","startPerformanceMonitoring"],"src/core/preserve-files.ts":["","compilePreserveMatcher","dedupePreservePatterns","isPreservedPath","normalizePreserveFiles","parsePattern"],"build/core/preserve-files.js":["","compilePreserveMatcher","dedupePreservePatterns","isPreservedPath","normalizePreserveFiles","parsePattern"],"src/core/process-monitoring.ts":["","installFatalErrorLogging","report"],"build/core/process-monitoring.js":["","installFatalErrorLogging","report"],"src/core/recover-owner-credential.ts":["","createOwnerCredentialRecovery","lookup"],"build/core/recover-owner-credential.js":["","createOwnerCredentialRecovery","lookup"],"src/core/recover-repository-owners.ts":["","archive","cleanup","fail","identifyGitHubToken","lookup","processRow","recoverRepositoryOwners","safeRepoId","unchanged"],"build/core/recover-repository-owners.js":["","archive","cleanup","fail","identifyGitHubToken","lookup","processRow","recoverRepositoryOwners","safeRepoId","unchanged"],"src/core/redact-secrets.ts":["","redactSecrets"],"build/core/redact-secrets.js":["","redactSecrets"],"src/core/registration-email.ts":["","saveRegistrationEmail","usableEmail"],"build/core/registration-email.js":["","saveRegistrationEmail","usableEmail"],"src/core/repository-access.types.ts":[""],"build/core/repository-access.types.js":[""],"src/core/repository-expiration-email.ts":["","notifyRepositoryExpired"],"build/core/repository-expiration-email.js":["","notifyRepositoryExpired"],"src/core/repository-failure-status.ts":["","isQuotaFailure","repositoryFailureStatus"],"build/core/repository-failure-status.js":["","isQuotaFailure","repositoryFailureStatus"],"src/core/repository-id.ts":[""],"build/core/repository-id.js":[""],"src/core/request-evidence.ts":["","expectedResponseBytes","recordResponseFailure","recordUpstreamFailure","responseEvidence"],"build/core/request-evidence.js":["","expectedResponseBytes","recordResponseFailure","recordUpstreamFailure","responseEvidence"],"src/core/request-monitoring.ts":["","activeRequestCount","advance","cacheTraffic","count","done","drain","finish","measureStage","monitorRequests","observe","recordCacheHit","requestHeaders","requestRoute","start","startStage"],"build/core/request-monitoring.js":["","activeRequestCount","advance","cacheTraffic","count","done","drain","finish","measureStage","monitorRequests","observe","recordCacheHit","requestHeaders","requestRoute","start","startStage"],"src/core/response-cancellation.ts":["","isResponseCancellation","watchClientClose"],"build/core/response-cancellation.js":["","isResponseCancellation","watchClientClose"],"src/core/response-stream.ts":["","cleanup","done","failed","streamResponse","upstreamFailed"],"build/core/response-stream.js":["","cleanup","done","failed","streamResponse","upstreamFailed"],"src/core/source/GitHubBase.ts":["","classifyGitHubMissError","getFileContent","getFiles"],"build/core/source/GitHubBase.js":["","classifyGitHubMissError","getFileContent","getFiles"],"src/core/source/GitHubDownload.ts":["","download","getFileContent","getFiles","getZipUrl","humanFileSize","isCacheComplete"],"build/core/source/GitHubDownload.js":["","download","getFileContent","getFiles","getZipUrl","humanFileSize","isCacheComplete"],"src/core/source/GitHubRepository.ts":["","branches","getCommitInfo","getRepositoryFromGitHub","readme","toJSON"],"build/core/source/GitHubRepository.js":["","branches","getCommitInfo","getRepositoryFromGitHub","readme","toJSON"],"src/core/source/GitHubStream.ts":["","admitResolvedBytes","assertActive","assertDownloadUrl","assertHost","cached","confirmOwnerAccess","deferredRawDownload","download","downloadError","downloadFile","downloadFileViaRaw","downloadRaw","downloadViaJsDelivr","downloadWithFallback","fallbackToRaw","fetchContent","fetchFileInfoFromPath","fetchFileMetadata","getFileContent","getFileContentCache","getFiles","getGHTree","githubRawFileUrl","iterateFiles","iterateTreeBatches","jsDelivrFileUrl","lfsPointerGuard","normalize","pMap","produce","rejectLfsPointer","resolve","resolveLfsPointer","stopSourceOnDestroy","transform","tree2Tree","verify","worker"],"build/core/source/GitHubStream.js":["","admitResolvedBytes","assertActive","assertDownloadUrl","assertHost","cached","confirmOwnerAccess","deferredRawDownload","download","downloadError","downloadFile","downloadFileViaRaw","downloadRaw","downloadViaJsDelivr","downloadWithFallback","fallbackToRaw","fetchContent","fetchFileInfoFromPath","fetchFileMetadata","getFileContent","getFileContentCache","getFiles","getGHTree","githubRawFileUrl","iterateFiles","iterateTreeBatches","jsDelivrFileUrl","lfsPointerGuard","normalize","pMap","produce","rejectLfsPointer","resolve","resolveLfsPointer","stopSourceOnDestroy","transform","tree2Tree","verify","worker"],"src/core/source/Source.ts":["","sourceStorageSize"],"build/core/source/Source.js":["","sourceStorageSize"],"src/core/source/Zip.ts":["","getFileContent","getFiles","toJSON"],"build/core/source/Zip.js":["","getFileContent","getFiles","toJSON"],"src/core/source/github-content-miss.ts":["","cachedContentMiss","classifyContentMiss","missKey","probeError"],"build/core/source/github-content-miss.js":["","cachedContentMiss","classifyContentMiss","missKey","probeError"],"src/core/source/github-submodules.ts":["","expandSubmodules","safeRepositoryPath","submoduleRepository","validUpstream","validateMounts"],"build/core/source/github-submodules.js":["","expandSubmodules","safeRepositoryPath","submoduleRepository","validUpstream","validateMounts"],"src/core/source-file-list.ts":["","isSafeSourcePath","sourceFileContent","sourceFileList"],"build/core/source-file-list.js":["","isSafeSourcePath","sourceFileContent","sourceFileList"],"src/core/storage/FileSystem.ts":["","archive","exists","extractZip","fileInfo","finish","listFiles","mk","read","removeLegacyContent","rm","send","write"],"build/core/storage/FileSystem.js":["","archive","exists","extractZip","fileInfo","finish","listFiles","mk","read","removeLegacyContent","rm","send","write"],"src/core/storage/S3.ts":["","archive","client","exists","extractZip","fileInfo","flush","listFiles","mk","read","removeLegacyContent","removeMatching","rm","send","transform","write"],"build/core/storage/S3.js":["","archive","client","exists","extractZip","fileInfo","flush","listFiles","mk","read","removeLegacyContent","removeMatching","rm","send","transform","write"],"src/core/storage/Storage.ts":["","archive","assertSafePath","exists","extractZip","fileInfo","listFiles","mk","read","removeLegacyContent","repoPath","rm","sanitizeZipEntryName","send","write"],"build/core/storage/Storage.js":["","archive","assertSafePath","exists","extractZip","fileInfo","listFiles","mk","read","removeLegacyContent","repoPath","rm","sanitizeZipEntryName","send","write"],"src/core/storage.ts":[""],"build/core/storage.js":[""],"src/core/streamer-cache-probe.ts":["","abort","probeStreamerCache"],"build/core/streamer-cache-probe.js":["","abort","probeStreamerCache"],"src/core/streamer-response.ts":["","rejectStreamerRedirects"],"build/core/streamer-response.js":["","rejectStreamerRedirects"],"src/core/temporary-storage.ts":["","maintainTextSpools","removeStaleTextSpools","run","startTemporaryStorageMaintenance"],"build/core/temporary-storage.js":["","maintainTextSpools","removeStaleTextSpools","run","startTemporaryStorageMaintenance"],"src/core/term-hints.ts":["","escapeTermLine","termHints"],"build/core/term-hints.js":["","escapeTermLine","termHints"],"src/core/term-matching.ts":["","diacriticInsensitive","isWord","parseTermSpec","stripDiacritics","termVariants","withWordBoundaries"],"build/core/term-matching.js":["","diacriticInsensitive","isWord","parseTermSpec","stripDiacritics","termVariants","withWordBoundaries"],"src/core/term-presence.ts":["","candidates","firstCharacters","overlap"],"build/core/term-presence.js":["","candidates","firstCharacters","overlap"],"src/core/transformed-cache.ts":["","assertActive","assertTransformScopeActive","copyCached","produceActive","pruneTransformedCache","read","removeEntry","removeTransformedRepositoryCache","scopeActive","transformedFile"],"build/core/transformed-cache.js":["","assertActive","assertTransformScopeActive","copyCached","produceActive","pruneTransformedCache","read","removeEntry","removeTransformedRepositoryCache","scopeActive","transformedFile"],"src/core/types.ts":[""],"build/core/types.js":[""],"src/core/url-utils.ts":["","joinUrl"],"build/core/url-utils.js":["","joinUrl"],"src/core/user-repository-list.ts":["","acquireLock","appUsers","applyRepositoryWebhook","clearRepositoryList","date","escapeRegex","hasApp","installationOwners","markRepositoryListStale","pickerConnection","repositoryListPage","retryDelay","runSync","settleRepositorySyncs","startRepositorySync","toRow","upsertRows","upstreamPages"],"build/core/user-repository-list.js":["","acquireLock","appUsers","applyRepositoryWebhook","clearRepositoryList","date","escapeRegex","hasApp","installationOwners","markRepositoryListStale","pickerConnection","repositoryListPage","retryDelay","runSync","settleRepositorySyncs","startRepositorySync","toRow","upsertRows","upstreamPages"],"src/core/zipStream.ts":["","fail","final","isEntryAllowed","onArchived","resumeParser","startArchive","stop","streamAnonymizedZip","transform","write","written"],"build/core/zipStream.js":["","fail","final","isEntryAllowed","onArchived","resumeParser","startArchive","stop","streamAnonymizedZip","transform","write","written"],"src/markdown-diagrams.ts":["","arcs","array","geometry","inspect","object","orientPolygons","position","positions","renderDiagram","stlPaths","validateMap"],"build/markdown-diagrams.js":["","arcs","array","geometry","inspect","object","orientPolygons","position","positions","renderDiagram","stlPaths","validateMap"],"src/markdown.ts":["","code","escapeHtml","link","math","processAllTokens","renderMarkdown","resolveUrl","sanitizeMarkdownHtml","tokenizer","trusted","url"],"build/markdown.js":["","code","escapeHtml","link","math","processAllTokens","renderMarkdown","resolveUrl","sanitizeMarkdownHtml","tokenizer","trusted","url"],"src/queue/index.ts":["","addRemovalJob","markErrorIfInFlight","markErrorIfRemoving","recoverStuckPreparing","recoverStuckRemoving","startWorker"],"build/queue/index.js":["","addRemovalJob","markErrorIfInFlight","markErrorIfRemoving","recoverStuckPreparing","recoverStuckRemoving","startWorker"],"src/queue/log-job.ts":["","loggedJob"],"build/queue/log-job.js":["","loggedJob"],"src/queue/processes/downloadRepository.ts":["","updateProgress"],"build/queue/processes/downloadRepository.js":["","updateProgress"],"src/queue/processes/removeCache.ts":["","createRemoveCacheProcessor","processRemoveCache"],"build/queue/processes/removeCache.js":["","createRemoveCacheProcessor","processRemoveCache"],"src/queue/processes/removeRepository.ts":["","createRemoveRepositoryProcessor","processRemoveRepository"],"build/queue/processes/removeRepository.js":["","createRemoveRepositoryProcessor","processRemoveRepository"],"src/queue/queueMetrics.ts":["","getClient","key","minuteTs","queryMetrics","recordMetric"],"build/queue/queueMetrics.js":["","getClient","key","minuteTs","queryMetrics","recordMetric"],"src/queue/worker-path.ts":["","resolveWorkerProcessorPath"],"build/queue/worker-path.js":["","resolveWorkerProcessorPath"],"src/scripts/billing-operations.ts":["","main"],"build/scripts/billing-operations.js":["","main"],"src/scripts/check-github-app-key.ts":["","checkGitHubAppKey"],"build/scripts/check-github-app-key.js":["","checkGitHubAppKey"],"src/scripts/create-performance-indexes.ts":["","main"],"build/scripts/create-performance-indexes.js":["","main"],"src/scripts/migrate-credentials.ts":["","main"],"build/scripts/migrate-credentials.js":["","main"],"src/scripts/purge-legacy-sessions.ts":["","main"],"build/scripts/purge-legacy-sessions.js":["","main"],"src/scripts/reconcile-legacy-owner-alerts.ts":["","main"],"build/scripts/reconcile-legacy-owner-alerts.js":["","main"],"src/scripts/recover-repository-owners.ts":["","main"],"build/scripts/recover-repository-owners.js":["","main"],"src/scripts/retire-file-indexes.ts":["","main","retireFileIndexes"],"build/scripts/retire-file-indexes.js":["","main","retireFileIndexes"],"src/server/admin-log-investigation.ts":["","collector","endpoint","grafana","incidentGroups","investigateLogs","logOptions","range","read","rows","safeRedisLog","safeRow","signature","timestampKey"],"build/server/admin-log-investigation.js":["","collector","endpoint","grafana","incidentGroups","investigateLogs","logOptions","range","read","rows","safeRedisLog","safeRow","signature","timestampKey"],"src/server/dailyStatsSnapshot.ts":["","clearStatsCache","computeAndStoreDailyStats","computeStats","ensureTodaySnapshot","getCurrentStats","getStatsHistory","mergeCurrentStatsIntoHistory","read","utcMidnight"],"build/server/dailyStatsSnapshot.js":["","clearStatsCache","computeAndStoreDailyStats","computeStats","ensureTodaySnapshot","getCurrentStats","getStatsHistory","mergeCurrentStatsIntoHistory","read","utcMidnight"],"src/server/database.ts":["","connect","getGist","getMongoUrl","getPullRequest","getRepository"],"build/server/database.js":["","connect","getGist","getMongoUrl","getPullRequest","getRepository"],"src/server/index.ts":["","apiRateKey","asset","getIndexHtml","indexResponse","setHeaders","start"],"build/server/index.js":["","apiRateKey","asset","getIndexHtml","indexResponse","setHeaders","start"],"src/server/rate-limit-key.ts":["","requestRateLimitKey"],"build/server/rate-limit-key.js":["","requestRateLimitKey"],"src/server/request-rate-limit.ts":["","sendRequestRateLimit"],"build/server/request-rate-limit.js":["","sendRequestRateLimit"],"src/server/review-consent-page.ts":["","asset","createReviewConsentPage","isReviewConsentPagePath"],"build/server/review-consent-page.js":["","asset","createReviewConsentPage","isReviewConsentPagePath"],"src/server/routes/admin-billing.ts":["","usernames"],"build/server/routes/admin-billing.js":["","usernames"],"src/server/routes/admin-emails.ts":["","emailHistoryPeriod","emailHistoryQuery","emailHistorySummary","emptyCounts"],"build/server/routes/admin-emails.js":["","emailHistoryPeriod","emailHistoryQuery","emailHistorySummary","emptyCounts"],"src/server/routes/admin-tokens.ts":[""],"build/server/routes/admin-tokens.js":[""],"src/server/routes/admin.ts":["","csvEscape","dashboardCache","escapeRegex","getErrorLogClient","hourKey","isSafeSortField","matches","parseDateRange","parseSort","pickQueue","queueStats","sendCsv"],"build/server/routes/admin.js":["","csvEscape","dashboardCache","escapeRegex","getErrorLogClient","hourKey","isSafeSortField","matches","parseDateRange","parseSort","pickQueue","queueStats","sendCsv"],"src/server/routes/anonymize-preview.ts":[""],"build/server/routes/anonymize-preview.js":[""],"src/server/routes/auth-utils.ts":["","getLoginToken","isDisabledAccount","safeAuthReturnTo"],"build/server/routes/auth-utils.js":["","getLoginToken","isDisabledAccount","safeAuthReturnTo"],"src/server/routes/billing.ts":["","displayedPrice","purchaseHistory","state","until"],"build/server/routes/billing.js":["","displayedPrice","purchaseHistory","state","until"],"src/server/routes/conference.ts":["","applyConferenceForm","conferencePlans","offeredConferencePlans","validateConferenceForm"],"build/server/routes/conference.js":["","applyConferenceForm","conferencePlans","offeredConferencePlans","validateConferenceForm"],"src/server/routes/connection.ts":["","ensureAuthenticated","initSession","verify"],"build/server/routes/connection.js":["","ensureAuthenticated","initSession","verify"],"src/server/routes/dashboard-names.ts":["","ensureDashboardNames","invalidateDashboardNames"],"build/server/routes/dashboard-names.js":["","ensureDashboardNames","invalidateDashboardNames"],"src/server/routes/dashboard-summary.ts":["","dashboardPipeline","dashboardSummary","project"],"build/server/routes/dashboard-summary.js":["","dashboardPipeline","dashboardSummary","project"],"src/server/routes/file-etag.ts":["","fileETag"],"build/server/routes/file-etag.js":["","fileETag"],"src/server/routes/file.ts":["","decodePathSegment","filePathFromRequestUrl","isScriptableDocument"],"build/server/routes/file.js":["","decodePathSegment","filePathFromRequestUrl","isScriptableDocument"],"src/server/routes/gist-private.ts":["","updateGistModel","validateNewGist"],"build/server/routes/gist-private.js":["","updateGistModel","validateNewGist"],"src/server/routes/gist-public.ts":[""],"build/server/routes/gist-public.js":[""],"src/server/routes/github-app.ts":["","connectionCSRF","consumeFlow","enabled","newFlow","revokeGrant","safeReturnTo","saveSession","validWebhookSignature"],"build/server/routes/github-app.js":["","connectionCSRF","consumeFlow","enabled","newFlow","revokeGrant","safeReturnTo","saveSession","validWebhookSignature"],"src/server/routes/index.ts":[""],"build/server/routes/index.js":[""],"src/server/routes/maintenance-limits.ts":[""],"build/server/routes/maintenance-limits.js":[""],"src/server/routes/maintenance-tokens.ts":[""],"build/server/routes/maintenance-tokens.js":[""],"src/server/routes/maintenance.ts":["","invalid","maintenanceSettings"],"build/server/routes/maintenance.js":["","invalid","maintenanceSettings"],"src/server/routes/option.ts":[""],"build/server/routes/option.js":[""],"src/server/routes/project-names.ts":["","projectNameKey","saveProjectName"],"build/server/routes/project-names.js":["","projectNameKey","saveProjectName"],"src/server/routes/pullRequest-private.ts":["","updatePullRequestModel","validateNewPullRequest"],"build/server/routes/pullRequest-private.js":["","updatePullRequestModel","validateNewPullRequest"],"src/server/routes/pullRequest-public.ts":[""],"build/server/routes/pullRequest-public.js":[""],"src/server/routes/repository-private.ts":["","enqueueSavedSnapshot","hasRepositorySourceChanged","previewToken","removeRepoFromConference","shouldReactivateInactiveRepository","updateRepoModel","validateNewRepo"],"build/server/routes/repository-private.js":["","enqueueSavedSnapshot","hasRepositorySourceChanged","previewToken","removeRepoFromConference","shouldReactivateInactiveRepository","updateRepoModel","validateNewRepo"],"src/server/routes/repository-public.ts":["","addCount"],"build/server/routes/repository-public.js":["","addCount"],"src/server/routes/route-utils.ts":["","ensureUrl","explicitErrorStatus","extendExpirationDate","getGist","getPullRequest","getRepo","getUser","handleError","isCoauthor","isOwnerCoauthorOrAdmin","isOwnerOrAdmin","notConnected","originFromStack","printError"],"build/server/routes/route-utils.js":["","ensureUrl","explicitErrorStatus","extendExpirationDate","getGist","getPullRequest","getRepo","getUser","handleError","isCoauthor","isOwnerCoauthorOrAdmin","isOwnerOrAdmin","notConnected","originFromStack","printError"],"src/server/routes/token-auth.ts":["","bearerTokenAuth","generateToken","hashToken","maintenanceTokenAllows"],"build/server/routes/token-auth.js":["","bearerTokenAuth","generateToken","hashToken","maintenanceTokenAllows"],"src/server/routes/user.ts":["","getAllRepositories"],"build/server/routes/user.js":["","getAllRepositories"],"src/server/routes/webview.ts":["","escapeHtml","webView"],"build/server/routes/webview.js":["","escapeHtml","webView"],"src/server/schedule.ts":["","conferenceStatusCheck","contentMaintenanceQuery","dailyStatsSnapshot","expireContent","flushBatch","repositoryMaintenanceQuery","repositoryStatusCheck","runRepositoryStatusCheck"],"build/server/schedule.js":["","conferenceStatusCheck","contentMaintenanceQuery","dailyStatsSnapshot","expireContent","flushBatch","repositoryMaintenanceQuery","repositoryStatusCheck","runRepositoryStatusCheck"],"src/server/server-options.ts":["","serverOptions"],"build/server/server-options.js":["","serverOptions"],"src/server/service/review-callbacks.ts":["","createReviewCallbacks","invalid","resolve"],"build/server/service/review-callbacks.js":["","createReviewCallbacks","invalid","resolve"],"src/server/service/review-capabilities.ts":["","createReviewCapabilities","fail","invalid","one","record","registry","timestamp"],"build/server/service/review-capabilities.js":["","createReviewCapabilities","fail","invalid","one","record","registry","timestamp"],"src/server/service/review-completion-http.ts":["","abort","cleanup","close","createReviewCompletionService","data","end","exact","fail","receipt"],"build/server/service/review-completion-http.js":["","abort","cleanup","close","createReviewCompletionService","data","end","exact","fail","receipt"],"src/server/service/review-consent-http.ts":["","createReviewConsentRouter","csrf","current","done","fields","reject"],"build/server/service/review-consent-http.js":["","createReviewConsentRouter","csrf","current","done","fields","reject"],"src/server/service/review-intent-client.ts":["","abort","consume","createReviewIntentConsumer","decode","fail","finish","id","instant","intent","object"],"build/server/service/review-intent-client.js":["","abort","consume","createReviewIntentConsumer","decode","fail","finish","id","instant","intent","object"],"src/server/service/review-json.ts":["","decodeReviewJSON","invalid","space","string","walk"],"build/server/service/review-json.js":["","decodeReviewJSON","invalid","space","string","walk"],"src/server/service/review-owner-consent.ts":["","completion","completionCode","confirm","createReviewOwnerConsent","decode","deny","exchange","handoff","hash","objectId","preview","principal","read","receipt","signature","transaction"],"build/server/service/review-owner-consent.js":["","completion","completionCode","confirm","createReviewOwnerConsent","decode","deny","exchange","handoff","hash","objectId","preview","principal","read","receipt","signature","transaction"],"src/server/service/review-service-auth.ts":["","authenticate","createReviewServiceAuth","date","fields","invalid","singleReviewHeader","valid"],"build/server/service/review-service-auth.js":["","authenticate","createReviewServiceAuth","date","fields","invalid","singleReviewHeader","valid"],"src/server/trustProxy.ts":["","isCloudflareIP","resolveTrustProxy"],"build/server/trustProxy.js":["","isCloudflareIP","resolveTrustProxy"],"src/server/website-rate-limit.ts":["","createWebsiteRateLimiter"],"build/server/website-rate-limit.js":["","createWebsiteRateLimiter"],"src/streamer/index.ts":["","start"],"build/streamer/index.js":["","start"],"src/streamer/route.ts":["","handleStreamError"],"build/streamer/route.js":["","handleStreamError"]} for_each(["errorType", "causeType"]) -> |_index, key| { value = get(record, [key]) ?? null if includes(["Error","TypeError","RangeError","ReferenceError","SyntaxError","URIError","EvalError","AggregateError","AnonymousError","HTTPError","RequestError","MongoServerError","MongoNetworkError","MongoServerSelectionError","ValidationError","TimeoutError","AbortError","UnknownError"], value) { out = set!(out, [key], value) } diff --git a/public/asset-manifest.json b/public/asset-manifest.json index 18b68cd..22c05a6 100644 --- a/public/asset-manifest.json +++ b/public/asset-manifest.json @@ -1,6 +1,6 @@ { "core.min.js": "core.d23af1c652.min.js", - "vendor.min.js": "vendor.ccf042dc99.min.js", + "vendor.min.js": "vendor.4d47803213.min.js", "mermaid.min.js": "mermaid.a7356d5ed1.min.js", "all.min.css": "all.c92171e8b3.min.css", "markdown.min.js": "markdown.6c8dfb7b1d.min.js", diff --git a/public/i18n/locale-en.json b/public/i18n/locale-en.json index a7f0666..88c13fc 100644 --- a/public/i18n/locale-en.json +++ b/public/i18n/locale-en.json @@ -9,6 +9,7 @@ }, "ERRORS": { "cache_busy": "Downloads are busy. Please try again shortly.", + "cache_miss": "This file is not cached yet. Please try again.", "invalid_sort": "The selected sort order is invalid.", "invalid_cursor": "This project page is no longer valid. Reload the list.", "repository_changed": "The repository changed while processing. Please retry.", @@ -143,6 +144,8 @@ "storage_write_size_mismatch": "The downloaded file was smaller than expected. The upstream source may have returned an incomplete response — please try again.", "storage_read_error": "An error occurred while reading the file from storage — please try again.", "upstream_error": "A temporary error occurred while fetching from GitHub — please try again.", + "streamer_upstream_error": "The file server received an unexpected response — please try again.", + "streamer_unreachable": "The file server is temporarily unreachable — please try again.", "token_expired": "The repository owner needs to renew their GitHub connection before this content can be loaded.", "job_is_active": "This job is currently running — wait for it to finish or remove it first.", "github_app_access_required": "Allow this repository on GitHub using the read-only access button, then retry. Organization access may require administrator approval.", diff --git a/public/script/app.js b/public/script/app.js index 26302da..558bce5 100644 --- a/public/script/app.js +++ b/public/script/app.js @@ -2261,6 +2261,13 @@ export const anonymizeController = function (state, http, html, params, location state.source.branch = ""; state.readme = ""; state.branches = []; + // The old source's preview must not cover a failed reconnection. + scheduleRepoPreview.cancel(); + refreshPrPreview.cancel(); + refreshGistPreview.cancel(); + state.previewStatus = "idle"; + state.anonymize_readme = ""; + resetPreviewFile(); try { await getRepoDetails(); } catch (_) { /* getRepoDetails displays the access error. */ } }; diff --git a/public/script/vendor.min.js b/public/script/vendor.min.js index 7333ce4..bf2cb0c 100644 --- a/public/script/vendor.min.js +++ b/public/script/vendor.min.js @@ -1,53 +1,53 @@ -"use strict";(()=>{var cl=Object.defineProperty;var pl=e=>{throw TypeError(e)};var yf=(e,t,s)=>t in e?cl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var bf=(e,t)=>{for(var s in t)cl(e,s,{get:t[s],enumerable:!0})};var tt=(e,t,s)=>yf(e,typeof t!="symbol"?t+"":t,s),Rr=(e,t,s)=>t.has(e)||pl("Cannot "+s);var ae=(e,t,s)=>(Rr(e,t,"read from private field"),s?s.call(e):t.get(e)),Le=(e,t,s)=>t.has(e)?pl("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),Be=(e,t,s,i)=>(Rr(e,t,"write to private field"),i?i.call(e,s):t.set(e,s),s),_e=(e,t,s)=>(Rr(e,t,"access private method"),s);var fl=(e,t,s,i)=>({set _(o){Be(e,t,o,s)},get _(){return ae(e,t,i)}});var ve=["abap","abc","actionscript","ada","alda","apache_conf","apex","applescript","aql","asciidoc","asl","assembly_x86","autohotkey","batchfile","c9search","c_cpp","cirru","clojure","cobol","coffee","coldfusion","crystal","csharp","csound_document","csound_orchestra","csound_score","csp","css","curly","d","dart","diff","django","dockerfile","dot","drools","edifact","eiffel","ejs","elixir","elm","erlang","forth","fortran","fsharp","fsl","ftl","gcode","gherkin","gitignore","glsl","gobstones","golang","graphqlschema","groovy","haml","handlebars","haskell","haskell_cabal","haxe","hjson","html","html_elixir","html_ruby","ini","io","jack","jade","java","javascript","json","json5","jsoniq","jsp","jssm","jsx","julia","kotlin","latex","less","liquid","lisp","livescript","logiql","logtalk","lsl","lua","luapage","lucene","makefile","markdown","mask","matlab","maze","mediawiki","mel","mixal","mushcode","mysql","nginx","nim","nix","nsis","nunjucks","objectivec","ocaml","pascal","perl","perl6","pgsql","php","php_laravel_blade","pig","plain_text","powershell","praat","prisma","prolog","properties","protobuf","puppet","python","qml","r","razor","rdoc","red","redshift","rhtml","rst","ruby","rust","sass","scad","scala","scheme","scss","sh","sjs","slim","smarty","snippets","soy_template","space","sparql","sql","sqlserver","stylus","svg","swift","tcl","terraform","tex","text","textile","toml","tsx","turtle","twig","typescript","vala","vbscript","velocity","verilog","vhdl","visualforce","wollok","xml","xquery","yaml","zeek"];var ye={markdown:"/script/markdown.6c8dfb7b1d.min.js",notebook:"/script/notebook.c3144c18ae.min.js",org:"/script/org.f61f262915.min.js",pdf:"/script/pdf.4d9cc6ff49.min.js",editor:"/script/editor.4f142d3adc.min.js"};function ml(e){let t=e.location.hash.slice(1);if(e.history.replaceState(null,"","/review-link"),t.length>2048)return null;let s=new URLSearchParams(t);if([...s.keys()].length!==3||[...s.keys()].some(u=>!["clientId","intentId","token"].includes(u)))return null;let i=s.get("clientId"),o=s.get("intentId"),r=s.get("token");return!/^[a-f0-9]{32}$/.test(i||"")||!/^[a-f0-9]{32}$/.test(o||"")||!/^[a-f0-9]{64}$/.test(r||"")?null:{contract:"4open.artifacts/1",clientId:i,intentId:o,token:r}}function hl(e,t){let{http:s,promises:i,window:o}=t,r=t.takeReviewHandoff(),u=r?{clientId:r.clientId,intentId:r.intentId}:null,p,c,v,h,y,g=!0,k,w=i.defer(),S=()=>[...o.crypto.getRandomValues(new Uint8Array(16))].map(F=>F.toString(16).padStart(2,"0")).join("");Object.assign(e,{repositoryId:"",handoffEnabled:!1,busy:!1,preview:null,acceptAccess:!1,acceptRetention:!1,uncertain:!1,saved:!1,expired:!1,error:r?"":"Open a new artifact link from your submission. This link is missing or invalid."});let N=()=>g&&e.user?.username===y;function b(){g=!1,r=p=c=void 0,w.resolve(),o.clearTimeout(k)}e.on("dispose",b),e.on("routeLeave",b),e.watch(()=>e.user?.username,F=>{!y&&F?y=F:y&&F!==y&&(b(),e.preview=null,e.repositoryId="",e.busy=!1,e.saved=!1,e.handoffEnabled=!1,e.error="Your account changed. Open a new artifact link from your submission.")});let T=()=>({timeout:w.promise,headers:{"Content-Type":"application/json","X-Review-CSRF":c}}),O=F=>F?.status===404?"Artifact linking is not available on this server.":F?.status===401?"Sign in, then open a new artifact link from your submission.":F?.status===403?"This account cannot approve this repository or this link.":"The request could not be completed. You can retry from this page.";e.loadPreview=async()=>{if(!g||!r||e.busy||e.uncertain||e.saved||!e.user?.username)return;y=e.user.username;let F=e.repositoryId.trim();if(!/^[A-Za-z0-9_-]{3,128}$/.test(F)){e.error="Enter the anonymous repository ID from its URL.";return}e.busy=!0,e.error="",e.preview=null,p=void 0,e.acceptAccess=e.acceptRetention=!1,e.expired=!1,o.clearTimeout(k),h||(h=S());try{let H=(await s.get("/api/review-consent/csrf",{timeout:w.promise})).data;if(!N())return;if(c=H.csrf,e.handoffEnabled=H.handoffEnabled===!0,!/^[a-f0-9]{64}$/.test(c||""))throw new Error("invalid_csrf");let se=(await s.post("/api/review-consent/preview",{repositoryId:F,intent:{...r,requestId:h}},T())).data;if(!N())return;if(!se||typeof se.ticket!="string"||!se.ticket||se.ticket.length>8192||typeof se.repositoryName!="string"||!["restricted-review","anonymous-link"].includes(se.policy?.access)||!Number.isSafeInteger(se.policy.version)||!Number.isFinite(Date.parse(se.policy.retainUntil))||!Number.isFinite(Date.parse(se.expiresAt))||Date.parse(se.expiresAt)<=Date.now()||Date.parse(se.expiresAt)>Date.now()+6e5)throw new Error("invalid_preview");p=se.ticket,v=S(),e.preview={repositoryName:se.repositoryName,policy:{...se.policy},expiresAt:se.expiresAt},k=o.setTimeout(()=>{g&&(e.expired=!0)},Math.max(0,Date.parse(se.expiresAt)-Date.now()))}catch(H){N()&&(e.error=O(H))}finally{N()&&(e.busy=!1)}},e.confirmConsent=async()=>{if(!(!N()||e.busy||e.saved||!p||!e.acceptAccess||!e.acceptRetention)){if(Date.parse(e.preview.expiresAt)<=Date.now()){e.expired=!0;return}e.busy=!0,e.error="";try{let F=(await s.post("/api/review-consent/confirm",{ticket:p,requestId:v,acceptAccess:!0,acceptRetention:!0},T())).data;if(!N())return;if(F?.requestId!==v||!Number.isFinite(Date.parse(F.confirmedAt)))throw new Error("invalid_receipt");e.saved=!0,e.uncertain=!1,r=void 0,e.handoffEnabled||(p=void 0)}catch{N()&&(e.uncertain=!0,e.error="The confirmation was not verified. Retry with the same approval, or return to your submission to check its status.")}finally{N()&&(e.busy=!1)}}},e.continueReview=async()=>{if(!N()||e.busy||!e.saved||!e.handoffEnabled||!p||!u)return;e.busy=!0,e.error="";let F,H=()=>{F?.remove(),o.removeEventListener("securitypolicyviolation",se)},se=_=>{_.violatedDirective?.startsWith("form-action")&&(H(),N()&&(e.busy=!1,e.error="The return address was blocked. Return to your submission to check the artifact status."))};try{let _=(await s.post("/api/review-consent/handoff",{ticket:p},T())).data;if(!N())return;let z=_?.completion,I=new URL(_?.callbackUrl);if(!z||Object.keys(z).sort().join(",")!=="clientId,code,contract,expiresAt,intentId"||z.contract!=="4open.artifacts/1"||z.clientId!==u.clientId||z.intentId!==u.intentId||!/^[a-f0-9]{64}$/.test(z.code||"")||!Number.isFinite(Date.parse(z.expiresAt))||Date.parse(z.expiresAt)<=Date.now()||Date.parse(z.expiresAt)>Date.now()+3e5||I.protocol!=="https:"||I.href!==_.callbackUrl||I.username||I.password||_.callbackUrl.includes("?")||_.callbackUrl.includes("#"))throw new Error("invalid_handoff");F=o.document.createElement("form"),F.method="POST",F.action=I.href;let q=o.document.createElement("input");q.type="hidden",q.name="completion",q.value=JSON.stringify(z),F.appendChild(q),o.document.body.appendChild(F),o.addEventListener("securitypolicyviolation",se),e.on("dispose",H),F.submit()}catch{H(),N()&&(e.busy=!1,e.error="The return to review could not be prepared. Retry from this page, or return to your submission to check its status.")}}}var li=new Map,Cf=ye;function Zn(e){if(!li.has(e)){let t=document.createElement("script");t.src=Cf[e];let s=new Promise((i,o)=>{t.onload=i,t.onerror=()=>{li.delete(e),t.remove(),o(new Error(`Unable to load ${e}. Please retry.`))}});li.set(e,s),document.head.appendChild(t)}return li.get(e)}async function di(){await Zn("editor"),ace.config.set("basePath","/script/external/ace/")}function Do(e){let t=Object.create(null);for(let s of e.split(","))t[s]=1;return s=>s in t}var xe={},Ln=[],Mt=()=>{},Pr=()=>!1,Ao=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Io=e=>e.startsWith("onUpdate:"),ct=Object.assign,is=(e,t)=>{let s=e.indexOf(t);s>-1&&e.splice(s,1)},Sf=Object.prototype.hasOwnProperty,Ke=(e,t)=>Sf.call(e,t),Ne=Array.isArray,Cn=e=>rs(e)==="[object Map]",Zt=e=>rs(e)==="[object Set]",gl=e=>rs(e)==="[object Date]";var Ie=e=>typeof e=="function",at=e=>typeof e=="string",Ft=e=>typeof e=="symbol",Je=e=>e!==null&&typeof e=="object",Dr=e=>(Je(e)||Ie(e))&&Ie(e.then)&&Ie(e.catch),wl=Object.prototype.toString,rs=e=>wl.call(e),Ar=e=>rs(e).slice(8,-1),ui=e=>rs(e)==="[object Object]",ci=e=>at(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Oo=Do(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted");var pi=e=>{let t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Ef=/-\w/g,ht=pi(e=>e.replace(Ef,t=>t.slice(1).toUpperCase())),Nf=/\B([A-Z])/g,dn=pi(e=>e.replace(Nf,"-$1").toLowerCase()),xn=pi(e=>e.charAt(0).toUpperCase()+e.slice(1)),as=pi(e=>e?`on${xn(e)}`:""),Wt=(e,t)=>!Object.is(e,t),Mo=(e,...t)=>{for(let s=0;s{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:s})},Vo=e=>{let t=parseFloat(e);return isNaN(t)?e:t};var vl,ls=()=>vl||(vl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ae(e){if(Ne(e)){let t={};for(let s=0;ss.startsWith("/*")?"":s).split(Rf).forEach(s=>{if(s){let i=s.split(Tf);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function R(e){let t="";if(at(e))t=e;else if(Ne(e))for(let s=0;sxt(s,t))}var Sl=e=>!!(e&&e.__v_isRef===!0),d=e=>at(e)?e:e==null?"":Ne(e)||Je(e)&&(e.toString===wl||!Ie(e.toString))?Sl(e)?d(e.value):JSON.stringify(e,El,2):String(e),El=(e,t)=>Sl(t)?El(e,t.value):Cn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[i,o],r)=>(s[Tr(i,r)+" =>"]=o,s),{})}:Zt(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Tr(s))}:Ft(t)?Tr(t):Je(t)&&!Ne(t)&&!ui(t)?String(t):t,Tr=(e,t="")=>{var s;return Ft(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};function Mf(e,...t){console.warn(`[Vue warn] ${e}`,...t)}var gt,ps=class{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&>&&(gt.active?(this.parent=gt,this.index=(gt.scopes||(gt.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes){let i=this.scopes.slice();for(t=0,s=i.length;t0&&--this._on===0){if(gt===this)gt=this.prevScope;else{let t=gt;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,i;for(s=0,i=this.effects.length;s0)return;if(cs){let t=cs;for(cs=void 0;t;){let s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;us;){let t=us;for(us=void 0;t;){let s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=s}}if(e)throw e}function Il(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ol(e){let t,s=e.depsTail,i=s;for(;i;){let o=i.prevDep;i.version===-1?(i===s&&(s=o),jr(i),Vf(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=o}e.deps=t,e.depsTail=s}function Vr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ml(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ml(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===fs)||(e.globalVersion=fs,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Vr(e))))return;e.flags|=2;let t=e.dep,s=ot,i=en;ot=e,en=!0;try{Il(e);let o=e.fn(e._value);(t.version===0||Wt(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{ot=s,en=i,Ol(e),e.flags&=-3}}function jr(e,t=!1){let{dep:s,prevSub:i,nextSub:o}=e;if(i&&(i.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=i,e.nextSub=void 0),s.subs===e&&(s.subs=i,!i&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)jr(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Vf(e){let{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}var en=!0,Vl=[];function tn(){Vl.push(en),en=!1}function nn(){let e=Vl.pop();en=e===void 0?!0:e}function Nl(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let s=ot;ot=void 0;try{t()}finally{ot=s}}}var fs=0,qr=class{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},ms=class{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!ot||!en||ot===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==ot)s=this.activeLink=new qr(ot,this),ot.deps?(s.prevDep=ot.depsTail,ot.depsTail.nextDep=s,ot.depsTail=s):ot.deps=ot.depsTail=s,ql(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){let i=s.nextDep;i.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=i),s.prevDep=ot.depsTail,s.nextDep=void 0,ot.depsTail.nextDep=s,ot.depsTail=s,ot.deps===s&&(ot.deps=i)}return s}trigger(t){this.version++,fs++,this.notify(t)}notify(t){zr();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Hr()}}};function ql(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)ql(i)}let s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}var Lr=new WeakMap,to=Symbol(""),_r=Symbol(""),hs=Symbol("");function kt(e,t,s){if(en&&ot){let i=Lr.get(e);i||Lr.set(e,i=new Map);let o=i.get(s);o||(i.set(s,o=new ms),o.map=i,o.key=s),o.track()}}function cn(e,t,s,i,o,r){let u=Lr.get(e);if(!u){fs++;return}let p=c=>{c&&c.trigger()};if(zr(),t==="clear")u.forEach(p);else{let c=Ne(e),v=c&&ci(s);if(c&&s==="length"){let h=Number(i);u.forEach((y,g)=>{(g==="length"||g===hs||!Ft(g)&&g>=h)&&p(y)})}else switch((s!==void 0||u.has(void 0))&&p(u.get(s)),v&&p(u.get(hs)),t){case"add":c?v&&p(u.get("length")):(p(u.get(to)),Cn(e)&&p(u.get(_r)));break;case"delete":c||(p(u.get(to)),Cn(e)&&p(u.get(_r)));break;case"set":Cn(e)&&p(u.get(to));break}}Hr()}function qo(e){let t=Ye(e);return t===e||(kt(t,"iterate",hs),Vt(e))?t:Kt(e)?fn(e)?t.map(s=>En(Ut(s))):t.map(En):t.map(Ut)}function gs(e){return kt(e=Ye(e),"iterate",hs),e}function un(e,t){return Kt(e)?En(fn(e)?Ut(t):t):Ut(t)}var qf={__proto__:null,[Symbol.iterator](){return Or(this,Symbol.iterator,e=>un(this,e))},concat(...e){return qo(this).concat(...e.map(t=>Ne(t)?qo(t):t))},entries(){return Or(this,"entries",e=>(e[1]=un(this,e[1]),e))},every(e,t){return Sn(this,"every",e,t,void 0,arguments)},filter(e,t){return Sn(this,"filter",e,t,s=>s.map(i=>un(this,i)),arguments)},find(e,t){return Sn(this,"find",e,t,s=>un(this,s),arguments)},findIndex(e,t){return Sn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Sn(this,"findLast",e,t,s=>un(this,s),arguments)},findLastIndex(e,t){return Sn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Sn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Mr(this,"includes",e)},indexOf(...e){return Mr(this,"indexOf",e)},join(e){return qo(this).join(e)},lastIndexOf(...e){return Mr(this,"lastIndexOf",e)},map(e,t){return Sn(this,"map",e,t,void 0,arguments)},pop(){return ds(this,"pop")},push(...e){return ds(this,"push",e)},reduce(e,...t){return Tl(this,"reduce",e,t)},reduceRight(e,...t){return Tl(this,"reduceRight",e,t)},shift(){return ds(this,"shift")},some(e,t){return Sn(this,"some",e,t,void 0,arguments)},splice(...e){return ds(this,"splice",e)},toReversed(){return qo(this).toReversed()},toSorted(e){return qo(this).toSorted(e)},toSpliced(...e){return qo(this).toSpliced(...e)},unshift(...e){return ds(this,"unshift",e)},values(){return Or(this,"values",e=>un(this,e))}};function Or(e,t,s){let i=gs(e),o=i[t],r=o.call(i);if(i!==e&&!Vt(e)){if(r[Symbol.toStringTag]==="Array Iterator"){let u=Object.create(Object.getPrototypeOf(r));return u.next=()=>Rl(r.next(),s),o!==Ll[t]&&Object.defineProperties(u,{return:{get(){let p=r.return;return typeof p=="function"?p.bind(r):p}},throw:{get(){let p=r.throw;return typeof p=="function"?p.bind(r):p}}}),u}r._next=r.next,r.next=()=>Rl(r._next(),s)}return r}function Rl(e,t){return e.done||(e.value=t(e.value)),e}var Ll=Array.prototype;function Sn(e,t,s,i,o,r){let u=gs(e),p=u!==e&&!Vt(e),c=u[t];if(c!==Ll[t]){let y=c.apply(e,r);return p?Ut(y):y}let v=s;u!==e&&(p?v=function(y,g){return s.call(this,un(e,y),g,e)}:s.length>2&&(v=function(y,g){return s.call(this,y,g,e)}));let h=c.call(u,v,i);return p&&o?o(h):h}function Tl(e,t,s,i){let o=gs(e),r=o!==e&&!Vt(e),u=s,p=!1;o!==e&&(r?(p=i.length===0,u=function(v,h,y){return p&&(p=!1,v=un(e,v)),s.call(this,v,un(e,h),y,e)}):s.length>3&&(u=function(v,h,y){return s.call(this,v,h,y,e)}));let c=o[t](u,...i);return p?un(e,c):c}function Mr(e,t,s){let i=Ye(e);kt(i,"iterate",hs);let o=i[t](...s);return(o===-1||o===!1)&&ys(s[0])?(s[0]=Ye(s[0]),i[t](...s)):o}function ds(e,t,s=[]){tn(),zr();let i=Ye(e)[t].apply(e,s);return Hr(),nn(),i}var Lf=Do("__proto__,__v_isRef,__isVue"),_l=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ft));function _f(e){Ft(e)||(e=String(e));let t=Ye(this);return kt(t,"has",e),t.hasOwnProperty(e)}var bi=class{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,i){if(s==="__v_skip")return t.__v_skip;let o=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!o;if(s==="__v_isReadonly")return o;if(s==="__v_isShallow")return r;if(s==="__v_raw")return i===(o?r?Wf:Ul:r?Fl:$l).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;let u=Ne(t);if(!o){let c;if(u&&(c=qf[s]))return c;if(s==="hasOwnProperty")return _f}let p=Reflect.get(t,s,wt(t)?t:i);if((Ft(s)?_l.has(s):Lf(s))||(o||kt(t,"get",s),r))return p;if(wt(p)){let c=u&&ci(s)?p:p.value;return o&&Je(c)?ki(c):c}return Je(p)?o?ki(p):rt(p):p}},wi=class extends bi{constructor(t=!1){super(!1,t)}set(t,s,i,o){let r=t[s],u=Ne(t)&&ci(s);if(!this._isShallow){let v=Kt(r);if(!Vt(i)&&!Kt(i)&&(r=Ye(r),i=Ye(i)),!u&&wt(r)&&!wt(i))return v||(r.value=i),!0}let p=u?Number(s)e,gi=e=>Reflect.getPrototypeOf(e);function Bf(e,t,s){return function(...i){let o=this.__v_raw,r=Ye(o),u=Cn(r),p=e==="entries"||e===Symbol.iterator&&u,c=e==="keys"&&u,v=o[e](...i),h=s?Fr:t?En:Ut;return!t&&kt(r,"iterate",c?_r:to),ct(Object.create(v),{next(){let{value:y,done:g}=v.next();return g?{value:y,done:g}:{value:p?[h(y[0]),h(y[1])]:h(y),done:g}}})}}function vi(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function zf(e,t){let s={get(o){let r=this.__v_raw,u=Ye(r),p=Ye(o);e||(Wt(o,p)&&kt(u,"get",o),kt(u,"get",p));let{has:c}=gi(u),v=t?Fr:e?En:Ut;if(c.call(u,o))return v(r.get(o));if(c.call(u,p))return v(r.get(p));r!==u&&r.get(o)},get size(){let o=this.__v_raw;return!e&&kt(Ye(o),"iterate",to),o.size},has(o){let r=this.__v_raw,u=Ye(r),p=Ye(o);return e||(Wt(o,p)&&kt(u,"has",o),kt(u,"has",p)),o===p?r.has(o):r.has(o)||r.has(p)},forEach(o,r){let u=this,p=u.__v_raw,c=Ye(p),v=t?Fr:e?En:Ut;return!e&&kt(c,"iterate",to),p.forEach((h,y)=>o.call(r,v(h),v(y),u))}};return ct(s,e?{add:vi("add"),set:vi("set"),delete:vi("delete"),clear:vi("clear")}:{add(o){let r=Ye(this),u=gi(r),p=Ye(o),c=!t&&!Vt(o)&&!Kt(o)?p:o;return u.has.call(r,c)||Wt(o,c)&&u.has.call(r,o)||Wt(p,c)&&u.has.call(r,p)||(r.add(c),cn(r,"add",c,c)),this},set(o,r){!t&&!Vt(r)&&!Kt(r)&&(r=Ye(r));let u=Ye(this),{has:p,get:c}=gi(u),v=p.call(u,o);v||(o=Ye(o),v=p.call(u,o));let h=c.call(u,o);return u.set(o,r),v?Wt(r,h)&&cn(u,"set",o,r,h):cn(u,"add",o,r),this},delete(o){let r=Ye(this),{has:u,get:p}=gi(r),c=u.call(r,o);c||(o=Ye(o),c=u.call(r,o));let v=p?p.call(r,o):void 0,h=r.delete(o);return c&&cn(r,"delete",o,void 0,v),h},clear(){let o=Ye(this),r=o.size!==0,u=void 0,p=o.clear();return r&&cn(o,"clear",void 0,void 0,u),p}}),["keys","values","entries",Symbol.iterator].forEach(o=>{s[o]=Bf(o,e,t)}),s}function Gr(e,t){let s=zf(e,t);return(i,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_isShallow"?t:o==="__v_raw"?i:Reflect.get(Ke(s,o)&&o in i?s:i,o,r)}var Hf={get:Gr(!1,!1)},jf={get:Gr(!1,!0)},Gf={get:Gr(!0,!1)};var $l=new WeakMap,Fl=new WeakMap,Ul=new WeakMap,Wf=new WeakMap;function Kf(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function rt(e){return Kt(e)?e:Wr(e,!1,$f,Hf,$l)}function vs(e){return Wr(e,!1,Uf,jf,Fl)}function ki(e){return Wr(e,!0,Ff,Gf,Ul)}function Wr(e,t,s,i,o){if(!Je(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let r=o.get(e);if(r)return r;let u=Kf(Ar(e));if(u===0)return e;let p=new Proxy(e,u===2?i:s);return o.set(e,p),p}function fn(e){return Kt(e)?fn(e.__v_raw):!!(e&&e.__v_isReactive)}function Kt(e){return!!(e&&e.__v_isReadonly)}function Vt(e){return!!(e&&e.__v_isShallow)}function ys(e){return e?!!e.__v_raw:!1}function Ye(e){let t=e&&e.__v_raw;return t?Ye(t):e}function mn(e){return!Ke(e,"__v_skip")&&Object.isExtensible(e)&&fi(e,"__v_skip",!0),e}var Ut=e=>Je(e)?rt(e):e,En=e=>Je(e)?ki(e):e;function wt(e){return e?e.__v_isRef===!0:!1}function Ct(e){return Bl(e,!1)}function Si(e){return Bl(e,!0)}function Bl(e,t){return wt(e)?e:new Ur(e,t)}var Ur=class{constructor(t,s){this.dep=new ms,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:Ye(t),this._value=s?t:Ut(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){let s=this._rawValue,i=this.__v_isShallow||Vt(t)||Kt(t);t=i?t:Ye(t),Wt(t,s)&&(this._rawValue=t,this._value=i?t:Ut(t),this.dep.trigger())}};function Nn(e){return wt(e)?e.value:e}var Yf={get:(e,t,s)=>t==="__v_raw"?e:Nn(Reflect.get(e,t,s)),set:(e,t,s,i)=>{let o=e[t];return wt(o)&&!wt(s)?(o.value=s,!0):Reflect.set(e,t,s,i)}};function Ei(e){return fn(e)?e:new Proxy(e,Yf)}var Br=class{constructor(t,s,i){this.fn=t,this.setter=s,this._value=void 0,this.dep=new ms(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=fs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&ot!==this)return Al(this,!0),!0}get value(){let t=this.dep.track();return Ml(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}};function zl(e,t,s=!1){let i,o;return Ie(e)?i=e:(i=e.get,o=e.set),new Br(i,o,s)}var yi={},Ci=new WeakMap,eo;function Hl(e,t=!1,s=eo){if(s){let i=Ci.get(s);i||Ci.set(s,i=[]),i.push(e)}}function jl(e,t,s=xe){let{immediate:i,deep:o,once:r,scheduler:u,augmentJob:p,call:c}=s,v=H=>{(s.onWarn||Mf)("Invalid watch source: ",H,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},h=H=>o?H:Vt(H)||o===!1||o===0?pn(H,1):pn(H),y,g,k,w,S=!1,N=!1;if(wt(e)?(g=()=>e.value,S=Vt(e)):fn(e)?(g=()=>h(e),S=!0):Ne(e)?(N=!0,S=e.some(H=>fn(H)||Vt(H)),g=()=>e.map(H=>{if(wt(H))return H.value;if(fn(H))return h(H);if(Ie(H))return c?c(H,2):H()})):Ie(e)?t?g=c?()=>c(e,2):e:g=()=>{if(k){tn();try{k()}finally{nn()}}let H=eo;eo=y;try{return c?c(e,3,[w]):e(w)}finally{eo=H}}:g=Mt,t&&o){let H=g,se=o===!0?1/0:o;g=()=>pn(H(),se)}let b=Pl(),T=()=>{y.stop(),b&&b.active&&is(b.effects,y)};if(r&&t){let H=t;t=(...se)=>{try{return H(...se)}finally{T()}}}let O=N?new Array(e.length).fill(yi):yi,F=H=>{if(!(!(y.flags&1)||!y.dirty&&!H))if(t){let se=y.run();if(H||o||S||(N?se.some((_,z)=>Wt(_,O[z])):Wt(se,O))){let _=eo;tn();try{k&&k(),eo=y;let z=[se,O===yi?void 0:N&&O[0]===yi?[]:O,w];O=se,c?c(t,3,z):t(...z)}finally{eo=_,nn()}}}else y.run()};return p&&p(F),y=new Lo(g),y.scheduler=u?()=>u(F,!1):F,w=H=>Hl(H,!1,y),k=y.onStop=()=>{let H=Ci.get(y);if(H){if(c)c(H,4);else for(let se of H)se();Ci.delete(y)}},t?i?F(!0):O=y.run():u?u(F.bind(null,!0),!0):y.run(),T.pause=y.pause.bind(y),T.resume=y.resume.bind(y),T.stop=T,T}function pn(e,t=1/0,s){if(t<=0||!Je(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,wt(e))pn(e.value,t,s);else if(Ne(e))for(let i=0;i{pn(i,t,s)});else if(ui(e)){for(let i in e)pn(e[i],t,s);for(let i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&pn(e[i],t,s)}return e}function As(e,t,s,i){try{return i?e(...i):e()}catch(o){Is(o,t,s)}}function Yt(e,t,s,i){if(Ie(e)){let o=As(e,t,s,i);return o&&Dr(o)&&o.catch(r=>{Is(r,t,s)}),o}if(Ne(e)){let o=[];for(let r=0;r>>1,o=At[i],r=Ns(o);r=Ns(s)?At.push(e):At.splice(xf(t),0,e),e.flags|=1,ad()}}function ad(){Ti||(Ti=rd.then(cd))}function ld(e){if(!Ne(e))_n&&e.id===-1?_n.splice(_o+1,0,e):e.flags&1||(gn.push(e),e.flags|=1);else for(let t=0;t=t))continue;At.splice(i,1),i=e?i-1:on,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function ud(e,t,s=0){if(gn.length){let i=gn,o=0;if(t){i=[];for(let u=0;uNs(u)-Ns(p));if(gn.length=o,_n){for(let u=0;ue.id==null?e.flags&2?-1:1/0:e.id;function cd(e){let t=Mt;try{for(on=0;on{i._d&&Ii(-1);let r=Pi(t),u=io.length,p;try{p=e(...o)}finally{for(let c=io.length;c>u;c--)Bd();Pi(r),i._d&&Ii(1)}return p};return i._n=!0,i._c=!0,i._d=!0,i}function P(e,t){if(Bt===null)return e;let s=Fi(Bt),i=e.dirs||(e.dirs=[]);for(let o=0;o1)return s&&Ie(t)?t.call(i&&i.proxy):t}}var nm=Symbol.for("v-scx"),om=()=>{{let e=Lt(nm);return e}};function dt(e,t,s){return fd(e,t,s)}function fd(e,t,s=xe){let{immediate:i,deep:o,flush:r,once:u}=s,p=ct({},s),c=t&&i||!t&&r!=="post",v;if(Uo){if(r==="sync"){let k=om();v=k.__watcherHandles||(k.__watcherHandles=[])}else if(!c){let k=()=>{};return k.stop=Mt,k.resume=Mt,k.pause=Mt,k}}let h=St;p.call=(k,w,S)=>Yt(k,h,w,S);let y=!1;r==="post"?p.scheduler=k=>{k.i=h,qt(k,h&&h.suspense)}:r!=="sync"&&(y=!0,p.scheduler=(k,w)=>{w?k():sa(k)}),p.augmentJob=k=>{t&&(k.flags|=4),y&&(k.flags|=2,h&&(k.id=h.uid,k.i=h))};let g=jl(e,t,p);return Uo&&(v?v.push(g):c&&g()),g}function sm(e,t,s){let i=this.proxy,o=at(e)?e.includes(".")?md(i,e):()=>i[e]:e.bind(i,i),r;Ie(t)?r=t:(r=t.handler,s=t);let u=Vs(this),p=fd(o,r.bind(i),s);return u(),p}function md(e,t){let s=t.split(".");return()=>{let i=e;for(let o=0;oe.__isTeleport;var Yr=Symbol("_leaveCb");function rm(e){let t=e[0];if(e.length>1){let s=!1;for(let i of e)if(i.type!==sn){t=i,s=!0;break}}return t}function hd(e){if(!qi(e))return Vi(e.type)&&e.children?rm(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&Ie(s.default))return s.default()}}function Rs(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let s=e.component.subTree;Rs(Vi(s.type)&&hd(s)||s,t)}else if(e.shapeFlag&128)e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback);else if(e.transition=t,e.type===V&&Ne(e.children)){let s=Td(e.children,!1);s&&Rs(s,t)}}function Zr(e){if(e.component)return Zr(e.component.subTree);if(e.type===V){let t=Ne(e.children)&&Td(e.children,!1);return t?Zr(t):void 0}if(e.type!==sn)return e}function Os(e,t){return Ie(e)?ct({name:e.name},t,{setup:e}):e}function ia(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Gl(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}var Di=new WeakMap;function ks(e,t,s,i,o=!1){if(Ne(e)){e.forEach((S,N)=>ks(S,t&&(Ne(t)?t[N]:t),s,i,o));return}if(Cs(i)&&!o){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&ks(e,t,s,i.component.subTree);return}let r=i.shapeFlag&4?Fi(i.component):i.el,u=o?null:r,{i:p,r:c}=e,v=t&&t.r,h=p.refs===xe?p.refs={}:p.refs,y=p.setupState,g=Ye(y),k=y===xe?Pr:S=>Gl(h,S)?!1:Ke(g,S),w=(S,N)=>!(N&&Gl(h,N));if(v!=null&&v!==c){if(Wl(t),at(v))h[v]=null,k(v)&&(y[v]=null);else if(wt(v)){let S=t;w(v,S.k)&&(v.value=null),S.k&&(h[S.k]=null)}}if(Ie(c))As(c,p,12,[u,h]);else{let S=at(c),N=wt(c);if(S||N){let b=()=>{if(e.f){let T=S?k(c)?y[c]:h[c]:w(c)||!e.k?c.value:h[e.k];if(o)Ne(T)&&is(T,r);else if(Ne(T))T.includes(r)||T.push(r);else if(S)h[c]=[r],k(c)&&(y[c]=h[c]);else{let O=[r];w(c,e.k)&&(c.value=O),e.k&&(h[e.k]=O)}}else S?(h[c]=u,k(c)&&(y[c]=u)):N&&(w(c,e.k)&&(c.value=u),e.k&&(h[e.k]=u))};if(u){let T=()=>{b(),Di.delete(e)};T.id=-1,Di.set(e,T),qt(T,s)}else Wl(e),b()}}}function Wl(e){let t=Di.get(e);t&&(t.flags|=8,Di.delete(e))}var Kl=e=>e.nodeType===8;var ane=ls().requestIdleCallback||(e=>setTimeout(e,1)),lne=ls().cancelIdleCallback||(e=>clearTimeout(e));function am(e,t){if(Kl(e)&&e.data==="["){let s=1,i=e.nextSibling;for(;i;){if(i.nodeType===1){if(t(i)===!1)break}else if(Kl(i))if(i.data==="]"){if(--s===0)break}else i.data==="["&&s++;i=i.nextSibling}}else t(e)}var Cs=e=>!!e.type.__asyncLoader;function gd(e){Ie(e)&&(e={loader:e});let{loader:t,loadingComponent:s,errorComponent:i,delay:o=200,hydrate:r,timeout:u,suspensible:p=!0,onError:c}=e,v=null,h,y=0,g=()=>(y++,v=null,k()),k=()=>{let w;return v||(w=v=t().catch(S=>{if(S=S instanceof Error?S:new Error(String(S)),c)return new Promise((N,b)=>{c(S,()=>N(g()),()=>b(S),y+1)});throw S}).then(S=>w!==v&&v?v:(S&&(S.__esModule||S[Symbol.toStringTag]==="Module")&&(S=S.default),h=S,S)))};return Os({name:"AsyncComponentWrapper",__asyncLoader:k,__asyncHydrate(w,S,N){let b=w.isConnected,T=!1;(S.bu||(S.bu=[])).push(()=>T=!0);let O=()=>{T||!w.parentNode||b&&!w.isConnected||N()},F=r?()=>{let H=r(O,se=>am(w,se));H&&(S.bum||(S.bum=[])).push(H)}:O;h?F():k().then(()=>!S.isUnmounted&&F())},get __asyncResolved(){return h},setup(){let w=St;if(ia(w),h)return()=>Ni(h,w);let S=H=>{v=null,Is(H,w,13,!i)};if(p&&w.suspense||Uo)return k().then(H=>()=>Ni(H,w)).catch(H=>(S(H),()=>i?Me(i,{error:H}):null));let N=Ct(!1),b=Ct(),T=Ct(!!o),O,F;return Ms(()=>{O!=null&&clearTimeout(O),F!=null&&clearTimeout(F)}),o&&(F=setTimeout(()=>{w.isUnmounted||(T.value=!1)},o)),u!=null&&(O=setTimeout(()=>{if(!w.isUnmounted&&!N.value&&!b.value){let H=new Error(`Async component timed out after ${u}ms.`);S(H),b.value=H}},u)),k().then(()=>{w.isUnmounted||(N.value=!0,w.parent&&qi(w.parent.vnode)&&w.parent.update())}).catch(H=>{if(w.isUnmounted){v=null;return}S(H),b.value=H}),()=>{if(N.value&&h)return Ni(h,w);if(b.value&&i)return Me(i,{error:b.value});if(s&&!T.value)return Ni(s,w)}}})}function Ni(e,t){let{ref:s,props:i,children:o,ce:r}=t.vnode,u=Me(e,i,o);return u.ref=s,u.ce=r,delete t.vnode.ce,u}var qi=e=>e.type.__isKeepAlive;function vd(e,t){bd(e,"a",t)}function yd(e,t){bd(e,"da",t)}function bd(e,t,s=St){let i=e.__wdc||(e.__wdc=()=>{let o=s;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Li(t,i,s),s){let o=s.parent;for(;o&&o.parent;)qi(o.parent.vnode)&&lm(i,t,s,o),o=o.parent}}function lm(e,t,s,i){let o=Li(t,e,i,!0);Ms(()=>{is(i[t],o)},s)}function Li(e,t,s=St,i=!1){if(s){let o=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...u)=>{tn();let p=Vs(s),c=Yt(t,s,e,u);return p(),nn(),c});return i?o.unshift(r):o.push(r),r}}var Tn=e=>(t,s=St)=>{(!Uo||e==="sp")&&Li(e,(...i)=>t(...i),s)},dm=Tn("bm"),yn=Tn("m"),wd=Tn("bu"),kd=Tn("u"),ao=Tn("bum"),Ms=Tn("um"),um=Tn("sp"),cm=Tn("rtg"),pm=Tn("rtc");function fm(e,t=St){Li("ec",e,t)}var Cd="components",mm="directives";function Qe(e,t){return Sd(Cd,e,!0,t)||e}var hm=Symbol.for("v-ndc");function Pe(e){return Sd(mm,e)}function Sd(e,t,s=!0,i=!1){let o=Bt||St;if(o){let r=o.type;if(e===Cd){let p=Zm(r,!1);if(p&&(p===t||p===ht(t)||p===xn(ht(t))))return r}let u=Yl(o[e]||r[e],t)||Yl(o.appContext[e],t);return!u&&i?r:u}}function Yl(e,t){return e&&(e[t]||e[ht(t)]||e[xn(ht(t))])}function X(e,t,s,i){let o,r=s&&s[i],u=Ne(e);if(u||at(e)){let p=u&&fn(e),c=!1,v=!1;p&&(c=!Vt(e),v=Kt(e),e=gs(e)),o=new Array(e.length);for(let h=0,y=e.length;ht(p,c,void 0,r&&r[c]));else{let p=Object.keys(e);o=new Array(p.length);for(let c=0,v=p.length;ce?Gd(e)?Fi(e):xr(e.parent):null;var Ss=ct(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>xr(e.parent),$root:e=>xr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ra(e),$forceUpdate:e=>e.f||(e.f=()=>{sa(e.update)}),$nextTick:e=>e.n||(e.n=Ge.bind(e.proxy)),$watch:e=>sm.bind(e)});var Jr=(e,t)=>e!==xe&&!e.__isScriptSetup&&Ke(e,t),gm={get({_:e},t){if(t==="__v_skip")return!0;let{ctx:s,setupState:i,data:o,props:r,accessCache:u,type:p,appContext:c}=e;if(t[0]!=="$"){let g=u[t];if(g!==void 0)switch(g){case 1:return i[t];case 2:return o[t];case 4:return s[t];case 3:return r[t]}else{if(Jr(i,t))return u[t]=1,i[t];if(o!==xe&&Ke(o,t))return u[t]=2,o[t];if(Ke(r,t))return u[t]=3,r[t];if(s!==xe&&Ke(s,t))return u[t]=4,s[t];ea&&(u[t]=0)}}let v=Ss[t],h,y;if(v)return t==="$attrs"&&kt(e.attrs,"get",""),v(e);if((h=p.__cssModules)&&(h=h[t]))return h;if(s!==xe&&Ke(s,t))return u[t]=4,s[t];if(y=c.config.globalProperties,Ke(y,t))return y[t]},set({_:e},t,s){let{data:i,setupState:o,ctx:r}=e;return Jr(o,t)?(o[t]=s,!0):i!==xe&&Ke(i,t)?(i[t]=s,!0):Ke(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:i,appContext:o,props:r,type:u}},p){let c;return!!(s[p]||e!==xe&&p[0]!=="$"&&Ke(e,p)||Jr(t,p)||Ke(r,p)||Ke(i,p)||Ke(Ss,p)||Ke(o.config.globalProperties,p)||(c=u.__cssModules)&&c[p])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Ke(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Jl(e){return Ne(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}var ea=!0;function vm(e){let t=ra(e),s=e.proxy,i=e.ctx;ea=!1,t.beforeCreate&&Xl(t.beforeCreate,e,"bc");let{data:o,computed:r,methods:u,watch:p,provide:c,inject:v,created:h,beforeMount:y,mounted:g,beforeUpdate:k,updated:w,activated:S,deactivated:N,beforeDestroy:b,beforeUnmount:T,destroyed:O,unmounted:F,render:H,renderTracked:se,renderTriggered:_,errorCaptured:z,serverPrefetch:I,expose:q,inheritAttrs:E,components:L,directives:G,filters:j}=t;if(v&&ym(v,i,null),u)for(let x in u){let fe=u[x];Ie(fe)&&(i[x]=fe.bind(s))}if(o){let x=o.call(s,s);Je(x)&&(e.data=rt(x))}if(ea=!0,r)for(let x in r){let fe=r[x],me=Ie(fe)?fe.bind(s,s):Ie(fe.get)?fe.get.bind(s,s):Mt,qe=!Ie(fe)&&Ie(fe.set)?fe.set.bind(s):Mt,Ue=Et({get:me,set:qe});Object.defineProperty(i,x,{enumerable:!0,configurable:!0,get:()=>Ue.value,set:Xe=>Ue.value=Xe})}if(p)for(let x in p)Ed(p[x],i,s,x);if(c){let x=Ie(c)?c.call(s):c;Reflect.ownKeys(x).forEach(fe=>{ro(fe,x[fe])})}h&&Xl(h,e,"c");function ne(x,fe){Ne(fe)?fe.forEach(me=>x(me.bind(s))):fe&&x(fe.bind(s))}if(ne(dm,y),ne(yn,g),ne(wd,k),ne(kd,w),ne(vd,S),ne(yd,N),ne(fm,z),ne(pm,se),ne(cm,_),ne(ao,T),ne(Ms,F),ne(um,I),Ne(q))if(q.length){let x=e.exposed||(e.exposed={});q.forEach(fe=>{Object.defineProperty(x,fe,{get:()=>s[fe],set:me=>s[fe]=me,enumerable:!0})})}else e.exposed||(e.exposed={});H&&e.render===Mt&&(e.render=H),E!=null&&(e.inheritAttrs=E),L&&(e.components=L),G&&(e.directives=G),I&&ia(e)}function ym(e,t,s=Mt){Ne(e)&&(e=ta(e));for(let i in e){let o=e[i],r;Je(o)?"default"in o?r=Lt(o.from||i,o.default,!0):r=Lt(o.from||i):r=Lt(o),wt(r)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>r.value,set:u=>r.value=u}):t[i]=r}}function Xl(e,t,s){Yt(Ne(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,s)}function Ed(e,t,s,i){let o=i.includes(".")?md(s,i):()=>s[i];if(at(e)){let r=t[e];Ie(r)&&dt(o,r)}else if(Ie(e))dt(o,e.bind(s));else if(Je(e))if(Ne(e))e.forEach(r=>Ed(r,t,s,i));else{let r=Ie(e.handler)?e.handler.bind(s):t[e.handler];Ie(r)&&dt(o,r,e)}}function ra(e){let t=e.type,{mixins:s,extends:i}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:u}}=e.appContext,p=r.get(t),c;return p?c=p:!o.length&&!s&&!i?c=t:(c={},o.length&&o.forEach(v=>Ai(c,v,u,!0)),Ai(c,t,u)),Je(t)&&r.set(t,c),c}function Ai(e,t,s,i=!1){let{mixins:o,extends:r}=t;r&&Ai(e,r,s,!0),o&&o.forEach(u=>Ai(e,u,s,!0));for(let u in t)if(!(i&&u==="expose")){let p=bm[u]||s&&s[u];e[u]=p?p(e[u],t[u]):t[u]}return e}var bm={data:Ql,props:Zl,emits:Zl,methods:ws,computed:ws,beforeCreate:Dt,created:Dt,beforeMount:Dt,mounted:Dt,beforeUpdate:Dt,updated:Dt,beforeDestroy:Dt,beforeUnmount:Dt,destroyed:Dt,unmounted:Dt,activated:Dt,deactivated:Dt,errorCaptured:Dt,serverPrefetch:Dt,components:ws,directives:ws,watch:km,provide:Ql,inject:wm};function Ql(e,t){return t?e?function(){return ct(Ie(e)?e.call(this,this):e,Ie(t)?t.call(this,this):t)}:t:e}function wm(e,t){return ws(ta(e),ta(t))}function ta(e){if(Ne(e)){let t={};for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ht(t)}Modifiers`]||e[`${dn(t)}Modifiers`];function Nm(e,t,...s){if(e.isUnmounted)return;let i=e.vnode.props||xe,o=s,r=t.startsWith("update:"),u=r&&Em(i,t.slice(7));u&&(u.trim&&(o=s.map(h=>at(h)?h.trim():h)),u.number&&(o=o.map(Vo)));let p,c=i[p=as(t)]||i[p=as(ht(t))];!c&&r&&(c=i[p=as(dn(t))]),c&&Yt(c,e,6,o);let v=i[p+"Once"];if(v){if(!e.emitted)e.emitted={};else if(e.emitted[p])return;e.emitted[p]=!0,Yt(v,e,6,o)}}var Rm=new WeakMap;function Rd(e,t,s=!1){let i=s?Rm:t.emitsCache,o=i.get(e);if(o!==void 0)return o;let r=e.emits,u={},p=!1;if(!Ie(e)){let c=v=>{let h=Rd(v,t,!0);h&&(p=!0,ct(u,h))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!r&&!p?(Je(e)&&i.set(e,null),null):(Ne(r)?r.forEach(c=>u[c]=null):ct(u,r),Je(e)&&i.set(e,u),u)}function _i(e,t){return!e||!Ao(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Ke(e,t[0].toLowerCase()+t.slice(1))||Ke(e,dn(t))||Ke(e,t))}function Xr(e){let{type:t,vnode:s,proxy:i,withProxy:o,propsOptions:[r],slots:u,attrs:p,emit:c,render:v,renderCache:h,props:y,data:g,setupState:k,ctx:w,inheritAttrs:S}=e,N=Pi(e),b,T;try{if(s.shapeFlag&4){let H=o||i,se=H;b=vn(v.call(se,H,h,y,k,g,w)),T=p}else{let H=t;b=vn(H.length>1?H(y,{attrs:p,slots:u,emit:c}):H(y,null)),T=t.props?p:Tm(p)}}catch(H){io.length=0,Is(H,e,1),b=Me(sn)}let O=b,F;if(T&&S!==!1){let H=Object.keys(T),{shapeFlag:se}=O;H.length&&se&7&&(r&&H.some(Io)&&(T=Pm(T,r)),O=Fo(O,T,!1,!0))}if(s.dirs&&(O=Fo(O,null,!1,!0),O.dirs=O.dirs?O.dirs.concat(s.dirs):s.dirs),s.transition){let H=Vi(O.type)&&hd(O)||O;Rs(H,s.transition)}return b=O,Pi(N),b}function Td(e,t=!0){let s;for(let i=0;i{let t;for(let s in e)(s==="class"||s==="style"||Ao(s))&&((t||(t={}))[s]=e[s]);return t},Pm=(e,t)=>{let s={};for(let i in e)(!Io(i)||!(i.slice(9)in t))&&(s[i]=e[i]);return s};function Dm(e,t,s){let{props:i,children:o,component:r}=e,{props:u,children:p,patchFlag:c}=t,v=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return i?xl(i,u,v):!!u;if(c&8){let h=t.dynamicProps;for(let y=0;yObject.create(Dd),Id=e=>Object.getPrototypeOf(e)===Dd;function Im(e,t,s,i=!1){let o={},r=Ad();e.propsDefaults=Object.create(null),Od(e,t,o,r);for(let u in e.propsOptions[0])u in o||(o[u]=void 0);s?e.props=i?o:vs(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function Om(e,t,s,i){let{props:o,attrs:r,vnode:{patchFlag:u}}=e,p=Ye(o),[c]=e.propsOptions,v=!1;if((i||u>0)&&!(u&16)){if(u&8){let h=e.vnode.dynamicProps;for(let y=0;y{c=!0;let[g,k]=Md(y,t,!0);ct(u,g),k&&p.push(...k)};!s&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}if(!r&&!c)return Je(e)&&i.set(e,Ln),Ln;if(Ne(r))for(let h=0;he==="_"||e==="_ctx"||e==="$stable",la=e=>Ne(e)?e.map(vn):[vn(e)],Vm=(e,t,s)=>{if(t._n)return t;let i=tm((...o)=>la(t(...o)),s);return i._c=!1,i},Vd=(e,t,s)=>{let i=e._ctx;for(let o in e){if(aa(o))continue;let r=e[o];if(Ie(r))t[o]=Vm(o,r,i);else if(r!=null){let u=la(r);t[o]=()=>u}}},qd=(e,t)=>{let s=la(t);e.slots.default=()=>s},Ld=(e,t,s)=>{for(let i in t)(s||!aa(i))&&(e[i]=t[i])},qm=(e,t,s)=>{let i=e.slots=Ad();if(e.vnode.shapeFlag&32){let o=t._;o?(Ld(i,t,s),s&&fi(i,"_",o,!0)):Vd(t,i)}else t&&qd(e,t)},Lm=(e,t,s)=>{let{vnode:i,slots:o}=e,r=!0,u=xe;if(i.shapeFlag&32){let p=t._;p?s&&p===1?r=!1:Ld(o,t,s):(r=!t.$stable,Vd(t,o)),u=t}else t&&(qd(e,t),u={default:1});if(r)for(let p in o)!aa(p)&&u[p]==null&&delete o[p]};function _m(){let e=[]}var qt=Bm;function _d(e){return $m(e)}function $m(e,t){_m();let s=ls();s.__VUE__=!0;let{insert:i,remove:o,patchProp:r,createElement:u,createText:p,createComment:c,setText:v,setElementText:h,parentNode:y,nextSibling:g,setScopeId:k=Mt,insertStaticContent:w}=e,S=(D,A,U,Z=null,W=null,ee=null,re=void 0,oe=null,ie=!!A.dynamicChildren)=>{if(D===A)return;D&&!bs(D,A)&&(Z=ce(D),ze(D,W,ee,!0),D=null),A.patchFlag===-2&&(ie=!1,A.dynamicChildren=null),A.dynamicChildren&&D&&D.dynamicChildren&&D.dynamicChildren.hasOnce&&(A.dynamicChildren===Ln&&(A.dynamicChildren=[]),A.dynamicChildren.hasOnce=!0);let{type:te,ref:we,shapeFlag:pe}=A;switch(te){case $i:N(D,A,U,Z);break;case sn:b(D,A,U,Z);break;case Es:D==null&&T(A,U,Z,re);break;case V:G(D,A,U,Z,W,ee,re,oe,ie);break;default:pe&1?se(D,A,U,Z,W,ee,re,oe,ie):pe&6?j(D,A,U,Z,W,ee,re,oe,ie):(pe&64||pe&128)&&te.process(D,A,U,Z,W,ee,re,oe,ie,he)}we!=null&&W?ks(we,D&&D.ref,ee,A||D,!A):we==null&&D&&D.ref!=null&&ks(D.ref,null,ee,D,!0)},N=(D,A,U,Z)=>{if(D==null)i(A.el=p(A.children),U,Z);else{let W=A.el=D.el;A.children!==D.children&&v(W,A.children)}},b=(D,A,U,Z)=>{D==null?i(A.el=c(A.children||""),U,Z):A.el=D.el},T=(D,A,U,Z)=>{[D.el,D.anchor]=w(D.children,A,U,Z,D.el,D.anchor)},O=(D,A,U,Z)=>{if(A.children!==D.children){let W=g(D.anchor);H(D),[A.el,A.anchor]=w(A.children,U,W,Z)}else A.el=D.el,A.anchor=D.anchor},F=({el:D,anchor:A},U,Z)=>{let W;for(;D&&D!==A;)W=g(D),i(D,U,Z),D=W;i(A,U,Z)},H=({el:D,anchor:A})=>{let U;for(;D&&D!==A;)U=g(D),o(D),D=U;o(A)},se=(D,A,U,Z,W,ee,re,oe,ie)=>{if(A.type==="svg"?re="svg":A.type==="math"&&(re="mathml"),D==null)_(A,U,Z,W,ee,re,oe,ie);else{let te=D.el&&D.el._isVueCE?D.el:null;try{te&&te._beginPatch(),q(D,A,W,ee,re,oe,ie)}finally{te&&te._endPatch()}}},_=(D,A,U,Z,W,ee,re,oe)=>{let ie,te,{props:we,shapeFlag:pe,transition:Ee,dirs:Te}=D;if(ie=D.el=u(D.type,ee,we&&we.is,we),pe&8?h(ie,D.children):pe&16&&I(D.children,ie,null,Z,W,Qr(D,ee),re,oe),Te&&oo(D,null,Z,"created"),z(ie,D,D.scopeId,re,Z),we){for(let We in we)We!=="value"&&!Oo(We)&&r(ie,We,null,we[We],ee,Z);"value"in we&&r(ie,"value",null,we.value,ee),(te=we.onVnodeBeforeMount)&&hn(te,Z,D)}Te&&oo(D,null,Z,"beforeMount");let Ve=Fm(W,Ee);Ve&&Ee.beforeEnter(ie),i(ie,A,U),((te=we&&we.onVnodeMounted)||Ve||Te)&&qt(()=>{let je;te&&hn(te,Z,D),Ve&&Ee.enter(ie),Te&&oo(D,null,Z,"mounted")},W)},z=(D,A,U,Z,W)=>{if(U&&k(D,U),Z)for(let ee=0;ee{for(let te=ie;te{let oe=A.el=D.el,{patchFlag:ie,dynamicChildren:te,dirs:we}=A;ie|=D.patchFlag&16;let pe=D.props||xe,Ee=A.props||xe,Te;if(U&&so(U,!1),(Te=Ee.onVnodeBeforeUpdate)&&hn(Te,U,A,D),we&&oo(A,D,U,"beforeUpdate"),U&&so(U,!0),te&&(!D.dynamicChildren||D.dynamicChildren.length!==te.length)&&(ie=0,re=!1,te=null),(pe.innerHTML&&Ee.innerHTML==null||pe.textContent&&Ee.textContent==null)&&h(oe,""),te?E(D.dynamicChildren,te,oe,U,Z,Qr(A,W),ee):re||me(D,A,oe,null,U,Z,Qr(A,W),ee,!1),ie>0){if(ie&16)L(oe,pe,Ee,U,W);else if(ie&2&&pe.class!==Ee.class&&r(oe,"class",null,Ee.class,W),ie&4&&r(oe,"style",pe.style,Ee.style,W),ie&8){let Ve=A.dynamicProps;for(let We=0;We{Te&&hn(Te,U,A,D),we&&oo(A,D,U,"updated")},Z)},E=(D,A,U,Z,W,ee,re)=>{for(let oe=0;oe{if(A!==U){if(A!==xe)for(let ee in A)!Oo(ee)&&!(ee in U)&&r(D,ee,A[ee],null,W,Z);for(let ee in U){if(Oo(ee))continue;let re=U[ee],oe=A[ee];re!==oe&&ee!=="value"&&r(D,ee,oe,re,W,Z)}"value"in U&&r(D,"value",A.value,U.value,W)}},G=(D,A,U,Z,W,ee,re,oe,ie)=>{let te=A.el=D?D.el:p(""),we=A.anchor=D?D.anchor:p(""),{patchFlag:pe,dynamicChildren:Ee,slotScopeIds:Te}=A;Te&&(oe=oe?oe.concat(Te):Te),D==null?(i(te,U,Z),i(we,U,Z),I(A.children||[],U,we,W,ee,re,oe,ie)):pe>0&&pe&64&&Ee&&D.dynamicChildren&&D.dynamicChildren.length===Ee.length?(E(D.dynamicChildren,Ee,U,W,ee,re,oe),(A.key!=null||W&&A===W.subTree)&&$d(D,A,!0)):me(D,A,U,we,W,ee,re,oe,ie)},j=(D,A,U,Z,W,ee,re,oe,ie)=>{A.slotScopeIds=oe,D==null?A.shapeFlag&512?W.ctx.activate(A,U,Z,re,ie):Y(A,U,Z,W,ee,re,ie):ne(D,A,ie)},Y=(D,A,U,Z,W,ee,re)=>{let oe=D.component=Km(D,Z,W);if(qi(D)&&(oe.ctx.renderer=he),Ym(oe,!1,re),oe.asyncDep){if(W&&W.registerDep(oe,x,re,ee),!D.el){let ie=oe.subTree=Me(sn);b(null,ie,A,U),D.placeholder=ie.el}}else x(oe,D,A,U,W,ee,re)},ne=(D,A,U)=>{let Z=A.component=D.component;if(Dm(D,A,U))if(Z.asyncDep&&!Z.asyncResolved){A.el=D.el,A.placeholder=D.placeholder,fe(Z,A,U);return}else Z.next=A,Z.update();else A.el=D.el,A.placeholder=D.placeholder,Z.vnode=A},x=(D,A,U,Z,W,ee,re)=>{let oe=()=>{if(D.isMounted){let{next:pe,bu:Ee,u:Te,parent:Ve,vnode:We}=D;{let pt=Fd(D);if(pt){pe&&(pe.el=We.el,fe(D,pe,re)),pt.asyncDep.then(()=>{qt(()=>{D.isUnmounted||te()},W)});return}}let je=pe,ke;so(D,!1),pe?(pe.el=We.el,fe(D,pe,re)):pe=We,Ee&&Mo(Ee),(ke=pe.props&&pe.props.onVnodeBeforeUpdate)&&hn(ke,Ve,pe,We),so(D,!0);let Fe=Xr(D),st=D.subTree;D.subTree=Fe,S(st,Fe,y(st.el),ce(st),D,W,ee),pe.el=Fe.el,je===null&&Am(D,Fe.el),Te&&qt(Te,W),(ke=pe.props&&pe.props.onVnodeUpdated)&&qt(()=>hn(ke,Ve,pe,We),W)}else{let pe,{el:Ee,props:Te}=A,{bm:Ve,m:We,parent:je,root:ke,type:Fe}=D,st=Cs(A);if(so(D,!1),Ve&&Mo(Ve),!st&&(pe=Te&&Te.onVnodeBeforeMount)&&hn(pe,je,A),so(D,!0),Ee&&Oe){let pt=()=>{D.subTree=Xr(D),Oe(Ee,D.subTree,D,W,null)};st&&Fe.__asyncHydrate?Fe.__asyncHydrate(Ee,D,pt):pt()}else{ke.ce&&ke.ce._hasShadowRoot()&&ke.ce._injectChildStyle(Fe,D.parent?D.parent.type:void 0);let pt=D.subTree=Xr(D);S(null,pt,U,Z,D,W,ee),A.el=pt.el}if(We&&qt(We,W),!st&&(pe=Te&&Te.onVnodeMounted)){let pt=A;qt(()=>hn(pe,je,pt),W)}(A.shapeFlag&256||je&&Cs(je.vnode)&&je.vnode.shapeFlag&256)&&D.a&&qt(D.a,W),D.isMounted=!0,A=U=Z=null}};D.scope.on();let ie=D.effect=new Lo(oe);D.scope.off();let te=D.update=ie.run.bind(ie),we=D.job=ie.runIfDirty.bind(ie);we.i=D,we.id=D.uid,ie.scheduler=()=>sa(we),so(D,!0),te()},fe=(D,A,U)=>{A.component=D;let Z=D.vnode.props;D.vnode=A,D.next=null,Om(D,A.props,Z,U),Lm(D,A.children,U),tn(),dd(D),nn()},me=(D,A,U,Z,W,ee,re,oe,ie=!1)=>{let te=D&&D.children,we=D?D.shapeFlag:0,pe=A.children,{patchFlag:Ee,shapeFlag:Te}=A;if(Ee>0){if(Ee&128){Ue(te,pe,U,Z,W,ee,re,oe,ie);return}else if(Ee&256){qe(te,pe,U,Z,W,ee,re,oe,ie);return}}Te&8?(we&16&&J(te,W,ee),pe!==te&&h(U,pe)):we&16?Te&16?Ue(te,pe,U,Z,W,ee,re,oe,ie):J(te,W,ee,!0):(we&8&&h(U,""),Te&16&&I(pe,U,Z,W,ee,re,oe,ie))},qe=(D,A,U,Z,W,ee,re,oe,ie)=>{D=D||Ln,A=A||Ln;let te=D.length,we=A.length,pe=Math.min(te,we),Ee;for(Ee=0;Eewe?J(D,W,ee,!0,!1,pe):I(A,U,Z,W,ee,re,oe,ie,pe)},Ue=(D,A,U,Z,W,ee,re,oe,ie)=>{let te=0,we=A.length,pe=D.length-1,Ee=we-1;for(;te<=pe&&te<=Ee;){let Te=D[te],Ve=A[te]=ie?Rn(A[te]):vn(A[te]);if(bs(Te,Ve))S(Te,Ve,U,null,W,ee,re,oe,ie);else break;te++}for(;te<=pe&&te<=Ee;){let Te=D[pe],Ve=A[Ee]=ie?Rn(A[Ee]):vn(A[Ee]);if(bs(Te,Ve))S(Te,Ve,U,null,W,ee,re,oe,ie);else break;pe--,Ee--}if(te>pe){if(te<=Ee){let Te=Ee+1,Ve=TeEe)for(;te<=pe;)ze(D[te],W,ee,!0),te++;else{let Te=te,Ve=te,We=new Map;for(te=Ve;te<=Ee;te++){let it=A[te]=ie?Rn(A[te]):vn(A[te]);it.key!=null&&We.set(it.key,te)}let je,ke=0,Fe=Ee-Ve+1,st=!1,pt=0,Tt=new Array(Fe);for(te=0;te=Fe){ze(it,W,ee,!0);continue}let ft;if(it.key!=null)ft=We.get(it.key);else for(je=Ve;je<=Ee;je++)if(Tt[je-Ve]===0&&bs(it,A[je])){ft=je;break}ft===void 0?ze(it,W,ee,!0):(Tt[ft-Ve]=te+1,ft>=pt?pt=ft:st=!0,S(it,A[ft],U,null,W,ee,re,oe,ie),ke++)}let Pt=st?Um(Tt):Ln;for(je=Pt.length-1,te=Fe-1;te>=0;te--){let it=Ve+te,ft=A[it],$t=A[it+1],So=it+1{let{el:ee,type:re,transition:oe,children:ie,shapeFlag:te}=D;if(te&6){Xe(D.component.subTree,A,U,Z);return}if(te&128){D.suspense.move(A,U,Z);return}if(te&64){re.move(D,A,U,he);return}if(re===V){i(ee,A,U);for(let pe=0;peoe.enter(ee),W));else{let{leave:pe,delayLeave:Ee,afterLeave:Te}=oe,Ve=()=>{D.ctx.isUnmounted?o(ee):i(ee,A,U)},We=()=>{let je=ee._isLeaving||!!ee[Yr];ee._isLeaving&&ee[Yr](!0),oe.persisted&&!je?Ve():pe(ee,()=>{Ve(),Te&&Te()})};Ee?Ee(ee,Ve,We):We()}else i(ee,A,U)},ze=(D,A,U,Z=!1,W=!1)=>{let{type:ee,props:re,ref:oe,children:ie,dynamicChildren:te,shapeFlag:we,patchFlag:pe,dirs:Ee,cacheIndex:Te,memo:Ve}=D;if((pe===-2||te&&te.hasOnce)&&(W=!1),oe!=null&&(tn(),ks(oe,null,U,D,!0),nn()),Te!=null&&(!D.ctx||D.ctx===A)&&(A.renderCache[Te]=void 0),we&256){A.ctx.deactivate(D);return}let We=we&1&&Ee,je=!Cs(D),ke;if(je&&(ke=re&&re.onVnodeBeforeUnmount)&&hn(ke,A,D),we&6)Se(D.component,U,Z);else{if(we&128){D.suspense.unmount(U,Z);return}We&&oo(D,null,A,"beforeUnmount"),we&64?D.type.remove(D,A,U,he,Z):te&&!te.hasOnce&&(ee!==V||pe>0&&pe&64)?J(te,A,U,!1,!0):(ee===V&&pe&384||!W&&we&16)&&J(ie,A,U),Z&<(D)}let Fe=Ve!=null&&Te==null;(je&&(ke=re&&re.onVnodeUnmounted)||We||Fe)&&qt(()=>{ke&&hn(ke,A,D),We&&oo(D,null,A,"unmounted"),Fe&&(D.el=null)},U)},lt=D=>{let{type:A,el:U,anchor:Z,transition:W}=D,ee=A===V;if(ee&&!W){Re(U,Z);return}if(A===Es){H(D),W&&!W.persisted&&W.afterLeave&&W.afterLeave();return}let re=ee?Zr(D):D,oe=()=>{ee?y(U)&&Re(U,Z):o(U),W&&!W.persisted&&W.afterLeave&&W.afterLeave()};if(re&&re.shapeFlag&1&&W&&!W.persisted){let{leave:ie,delayLeave:te}=W,we=re.el,pe=()=>ie(we,oe);te?te(we,oe,pe):pe()}else oe()},Re=(D,A)=>{let U;for(;D!==A;)U=g(D),o(D),D=U;o(A)},Se=(D,A,U)=>{let{bum:Z,scope:W,job:ee,subTree:re,um:oe,m:ie,a:te}=D;td(ie),td(te),Z&&Mo(Z),W.stop(),ee?(ee.flags|=8,ze(re,D,A,U)):D.vnode.el&&re&&(re.transition=D.vnode.transition,ze(re,D,A,U)),oe&&qt(oe,A),qt(()=>{D.isUnmounted=!0},A)},J=(D,A,U,Z=!1,W=!1,ee=0)=>{for(let re=ee;re{if(D.shapeFlag&6)return ce(D.component.subTree);if(D.shapeFlag&128)return D.suspense.next();let A=g(D.anchor||D.el),U=A&&A[im];return U?g(U):A},ue=(D,A,U)=>{let Z=D&&A._vnode?void 0:D&&D.component?D.component.uid:Wm();em(()=>{D==null?A._vnode&&ze(A._vnode,null,null,!0):S(A._vnode||null,D,A,null,null,null,U),A._vnode=D},Z)},he={p:S,um:ze,m:Xe,r:lt,mt:Y,mc:I,pc:me,pbc:E,n:ce,o:e},be,Oe;return t&&([be,Oe]=t(he)),{render:ue,hydrate:be,createApp:Sm(ue,be)}}function Qr({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function so({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Fm(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function $d(e,t,s=!1){let i=e.children,o=t.children;if(Ne(i)&&Ne(o))for(let r=0;r>1,e[s[p]]0&&(t[i]=s[r-1]),s[r]=i)}}for(r=s.length,u=s[r-1];r-- >0;)s[r]=u,u=t[u];return s}function Fd(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Fd(t)}function td(e){if(e)for(let t=0;te.__isSuspense;function Bm(e,t){t&&t.pendingBranch?Ne(e)?t.effects.push(...e):t.effects.push(e):ld(e)}var V=Symbol.for("v-fgt"),$i=Symbol.for("v-txt"),sn=Symbol.for("v-cmt"),Es=Symbol.for("v-stc"),io=[],zt=null;function a(e=!1){io.push(zt=e?null:[])}function Bd(){io.pop(),zt=io[io.length-1]||null}var Ts=1;function Ii(e,t=!1){Ts+=e,e<0&&zt&&t&&(zt.hasOnce=!0)}function zd(e){return e.dynamicChildren=Ts>0?zt||Ln:null,Bd(),Ts>0&&zt&&zt.push(e),e}function l(e,t,s,i,o,r){return zd(n(e,t,s,i,o,r,!0))}function Jt(e,t,s,i,o){return zd(Me(e,t,s,i,o,!0))}function Ps(e){return e?e.__v_isVNode===!0:!1}function bs(e,t){return e.type===t.type&&e.key===t.key}var Hd=({key:e})=>e??null,Ri=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?at(e)||wt(e)||Ie(e)?{i:Bt,r:e,k:t,f:!!s}:e:null);function n(e,t=null,s=null,i=0,o=null,r=e===V?0:1,u=!1,p=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Hd(t),ref:t&&Ri(t),scopeId:pd,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:i,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Bt};return p?(Oi(c,s),r&128&&e.normalize(c)):s&&(c.shapeFlag|=at(s)?8:16),Ts>0&&!u&&zt&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&zt.push(c),c}var Me=zm;function zm(e,t=null,s=null,i=0,o=null,r=!1){if((!e||e===hm)&&(e=sn),Ps(e)){let p=Fo(e,t,!0);return s&&Oi(p,s),Ts>0&&!r&&zt&&(p.shapeFlag&6?zt[zt.indexOf(e)]=p:zt.push(p)),p.patchFlag=-2,p}if(xm(e)&&(e=e.__vccOpts),t){t=Hm(t);let{class:p,style:c}=t;p&&!at(p)&&(t.class=R(p)),Je(c)&&(ys(c)&&!Ne(c)&&(c=ct({},c)),t.style=Ae(c))}let u=at(e)?1:Ud(e)?128:Vi(e)?64:Je(e)?4:Ie(e)?2:0;return n(e,t,s,i,o,u,r,!0)}function Hm(e){return e?ys(e)||Id(e)?ct({},e):e:null}function Fo(e,t,s=!1,i=!1){let{props:o,ref:r,patchFlag:u,children:p,transition:c}=e,v=t?jm(o||{},t):o,h={__v_isVNode:!0,__v_skip:!0,type:e.type,props:v,key:v&&Hd(v),ref:t&&t.ref?s&&r?Ne(r)?r.concat(Ri(t)):[r,Ri(t)]:Ri(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:p,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==V?u===-1?16:u|16:u,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Fo(e.ssContent),ssFallback:e.ssFallback&&Fo(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return c&&i&&Rs(h,c.clone(h)),h}function m(e=" ",t=0){return Me($i,null,e,t)}function Ce(e,t){let s=Me(Es,null,e);return s.staticCount=t,s}function f(e="",t=!1){return t?(a(),Jt(sn,null,e)):Me(sn,null,e)}function vn(e){return e==null||typeof e=="boolean"?Me(sn):Ne(e)?Me(V,null,e.slice()):Ps(e)?Rn(e):Me($i,null,String(e))}function Rn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Fo(e)}function Oi(e,t){let s=0,{shapeFlag:i}=e;if(t==null)t=null;else if(Ne(t))s=16;else if(typeof t=="object")if(i&65){let o=t.default;o&&(o._c&&(o._d=!1),Oi(e,o()),o._c&&(o._d=!0));return}else{s=32;let o=t._;!o&&!Id(t)?t._ctx=Bt:o===3&&Bt&&(Bt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(Ie(t)){if(i&65){Oi(e,{default:t});return}t={default:t,_ctx:Bt},s=32}else t=String(t),i&64?(s=16,t=[m(t)]):s=8;e.children=t,e.shapeFlag|=s}function jm(...e){let t={};for(let s=0;sSt||Bt,Mi,Ds;{let e=ls(),t=(s,i)=>{let o;return(o=e[s])||(o=e[s]=[]),o.push(i),r=>{o.length>1?o.forEach(u=>u(r)):o[0](r)}};Mi=t("__VUE_INSTANCE_SETTERS__",s=>St=s),Ds=t("__VUE_SSR_SETTERS__",s=>Uo=s)}var Vs=e=>{let t=St;return Mi(e),e.scope.on(),()=>{e.scope.off(),Mi(t)}},nd=()=>{St&&St.scope.off(),Mi(null)};function Gd(e){return e.vnode.shapeFlag&4}var Uo=!1;function Ym(e,t=!1,s=!1){t&&Ds(t);let{props:i,children:o}=e.vnode,r=Gd(e);Im(e,i,r,t),qm(e,o,s||t);let u=r?Jm(e,t):void 0;return t&&Ds(!1),u}function Jm(e,t){let s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,gm);let{setup:i}=s;if(i){tn();let o=e.setupContext=i.length>1?Qm(e):null,r=Vs(e),u=As(i,e,0,[e.props,o]),p=Dr(u);if(nn(),r(),(p||e.sp)&&!Cs(e)&&ia(e),p){if(u.then(nd,nd),t)return u.then(c=>{Ds(!0);try{od(e,c,t)}finally{Ds(!1)}}).catch(c=>{Is(c,e,0)});e.asyncDep=u}else od(e,u,t)}else Wd(e,t)}function od(e,t,s){Ie(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Je(t)&&(e.setupState=Ei(t)),Wd(e,s)}var sd,id;function Wd(e,t,s){let i=e.type;if(!e.render){if(!t&&sd&&!i.render){let o=i.template||ra(e).template;if(o){let{isCustomElement:r,compilerOptions:u}=e.appContext.config,{delimiters:p,compilerOptions:c}=i,v=ct(ct({isCustomElement:r,delimiters:p},u),c);i.render=sd(o,v)}}e.render=i.render||Mt,id&&id(e)}{let o=Vs(e);tn();try{vm(e)}finally{nn(),o()}}}var Xm={get(e,t){return kt(e,"get",""),e[t]}};function Qm(e){let t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Xm),slots:e.slots,emit:e.emit,expose:t}}function Fi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ei(mn(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Ss)return Ss[s](e)},has(t,s){return s in t||s in Ss}})):e.proxy}function Zm(e,t=!0){return Ie(e)?e.displayName||e.name:e.name||t&&e.__name}function xm(e){return Ie(e)&&"__vccOpts"in e}var Et=(e,t)=>zl(e,t,Uo);function De(e,t,s){try{Ii(-1);let i=arguments.length;return i===2?Je(t)&&!Ne(t)?Ps(t)?Me(e,null,[t]):Me(e,t):Me(e,null,t):(i>3?s=Array.prototype.slice.call(arguments,2):i===3&&Ps(s)&&(s=[s]),Me(e,t,s))}finally{Ii(1)}}var eh="3.5.44";var fa,Kd=typeof window<"u"&&window.trustedTypes;if(Kd)try{fa=Kd.createPolicy("vue",{createHTML:e=>e})}catch{}var iu=fa?e=>fa.createHTML(e):e=>e,th="http://www.w3.org/2000/svg",nh="http://www.w3.org/1998/Math/MathML",Pn=typeof document<"u"?document:null,Yd=Pn&&Pn.createElement("template"),oh={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,i)=>{let o=t==="svg"?Pn.createElementNS(th,e):t==="mathml"?Pn.createElementNS(nh,e):s?Pn.createElement(e,{is:s}):Pn.createElement(e);return e==="select"&&i&&i.multiple!=null&&o.setAttribute("multiple",i.multiple),o},createText:e=>Pn.createTextNode(e),createComment:e=>Pn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Pn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,i,o,r){let u=s?s.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),s),!(o===r||!(o=o.nextSibling)););else{Yd.innerHTML=iu(i==="svg"?`${e}`:i==="mathml"?`${e}`:e);let p=Yd.content;if(i==="svg"||i==="mathml"){let c=p.firstChild;for(;c.firstChild;)p.appendChild(c.firstChild);p.removeChild(c)}t.insertBefore(p,s)}return[u?u.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}};var sh=Symbol("_vtc");function ih(e,t,s){let i=e[sh];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}var zi=Symbol("_vod"),ru=Symbol("_vsh"),Q={name:"show",beforeMount(e,{value:t},{transition:s}){e[zi]=e.style.display==="none"?"":e.style.display,s&&t?s.beforeEnter(e):qs(e,t)},mounted(e,{value:t},{transition:s}){s&&t&&s.enter(e)},updated(e,{value:t,oldValue:s},{transition:i}){!t!=!s&&(i?t?(i.beforeEnter(e),qs(e,!0),i.enter(e)):i.leave(e,()=>{qs(e,!1)}):qs(e,t))},beforeUnmount(e,{value:t}){qs(e,t)}};function qs(e,t){e.style.display=t?e[zi]:"none",e[ru]=!t}var rh=Symbol("");var ah=/(?:^|;)\s*display\s*:/;function lh(e,t,s){let i=e.style,o=at(s),r=!1;if(s&&!o){if(t)if(at(t))for(let u of t.split(";")){let p=u.slice(0,u.indexOf(":")).trim();s[p]==null&&Ls(i,p,"")}else for(let u in t)s[u]==null&&Ls(i,u,"");for(let u in s){u==="display"&&(r=!0);let p=s[u];p!=null?uh(e,u,!at(t)&&t?t[u]:void 0,p)||Ls(i,u,p):Ls(i,u,"")}}else if(o){if(t!==s){let u=i[rh];u&&(s+=";"+u),i.cssText=s,r=ah.test(s)}}else t&&e.removeAttribute("style");zi in e&&((!o||t!==s)&&(e[zi]=r?i.display:""),e[ru]&&(i.display="none"))}var Ui=/\s*!important$/;function Ls(e,t,s){if(Ne(s))s.forEach(i=>Ls(e,t,i));else if(s==null&&(s=""),t.startsWith("--"))Ui.test(s)?e.setProperty(t,s.replace(Ui,""),"important"):e.setProperty(t,s);else{let i=dh(e,t);Ui.test(s)?e.setProperty(dn(i),s.replace(Ui,""),"important"):e[i]=s}}var Jd=["Webkit","Moz","ms"],ua={};function dh(e,t){let s=ua[t];if(s)return s;let i=ht(t);if(i!=="filter"&&i in e)return ua[t]=i;i=xn(i);for(let o=0;oca||(gh.then(()=>ca=0),ca=Date.now());function yh(e,t){let s=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=s.attached)return;let o=s.value;if(Ne(o)){let r=i.stopImmediatePropagation;i.stopImmediatePropagation=()=>{r.call(i),i._stopped=!0};let u=o.slice(),p=[i];for(let c=0;ce.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,bh=(e,t,s,i,o,r)=>{let u=o==="svg";t==="class"?ih(e,i,u):t==="style"?lh(e,s,i):Ao(t)?Io(t)||ph(e,t,s,i,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):wh(e,t,i,u))?(Zd(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Qd(e,t,i,u,r,t!=="value")):e._isVueCE&&(kh(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!at(i)))?Zd(e,ht(t),i,r,t):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Qd(e,t,i,u))};function wh(e,t,s,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&eu(t)&&Ie(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){let o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return eu(t)&&at(s)?!1:t in e}function kh(e,t){let s=e._def.props;if(!s)return!1;let i=ht(t);return Array.isArray(s)?s.some(o=>ht(o)===i):Object.keys(s).some(o=>ht(o)===i)}var Bo=e=>{let t=e.props["onUpdate:modelValue"]||!1;return Ne(t)?s=>Mo(t,s):t};function Ch(e){e.target.composing=!0}function tu(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}var bn=Symbol("_assign"),Bi=Symbol("_initialValue");function pa(e,t,s){return t&&(e=e.trim()),s&&(e=Vo(e)),e}var nt={created(e,{modifiers:{lazy:t,trim:s,number:i}},o){e.parentNode&&(e.type==="text"?e[Bi]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Bi]=e.defaultValue.replace(/\r\n?/g,` -`))),e[bn]=Bo(o);let r=i||o.props&&o.props.type==="number";$n(e,t?"change":"input",u=>{u.target.composing||e[bn](pa(e.value,s,r))}),(s||r)&&$n(e,"change",()=>{e.value=pa(e.value,s,r)}),t||($n(e,"compositionstart",Ch),$n(e,"compositionend",tu),$n(e,"change",tu))},mounted(e,{value:t,modifiers:{trim:s,number:i}}){let o=t??"",r=e[Bi];delete e[Bi],r!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==r?e[bn](pa(e.value,s,i)):e.value=o},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:i,trim:o,number:r}},u){if(e[bn]=Bo(u),e.composing)return;let p=(r||e.type==="number")&&!/^0\d/.test(e.value)?Vo(e.value):e.value,c=t??"";if(p===c)return;let v=e.getRootNode();(v instanceof Document||v instanceof ShadowRoot)&&v.activeElement===e&&e.type!=="range"&&(i&&t===s||o&&e.value.trim()===c)||(e.value=c)}},ma={deep:!0,created(e,t,s){e[bn]=Bo(s),$n(e,"change",()=>{let i=e._modelValue,o=_s(e),r=e.checked,u=e[bn];if(Ne(i)){let p=hi(i,o),c=p!==-1;if(r&&!c)u(i.concat(o));else if(!r&&c){let v=[...i];v.splice(p,1),u(v)}}else if(Zt(i)){let p=new Set(i);r?p.add(o):p.delete(o),u(p)}else u(au(e,r))})},mounted:nu,beforeUpdate(e,t,s){e[bn]=Bo(s),nu(e,t,s)}};function nu(e,{value:t,oldValue:s},i){e._modelValue=t;let o;if(Ne(t))o=hi(t,i.props.value)>-1;else if(Zt(t))o=t.has(i.props.value);else{if(t===s)return;o=xt(t,au(e,!0))}e.checked!==o&&(e.checked=o)}var Nt={deep:!0,created(e,{value:t,modifiers:{number:s}},i){e._modelValue=t,$n(e,"change",()=>{let o=Array.prototype.filter.call(e.options,c=>c.selected).map(c=>s?Vo(_s(c)):_s(c)),r=e.multiple,u=r?Zt(e._modelValue)?new Set(o):o:o[0],p=e._pendingValue=[r,r?Ne(u)?o.slice():o:u];try{e[bn](u)}finally{Ge(()=>{e._pendingValue===p&&(e._pendingValue=void 0)})}}),e[bn]=Bo(i)},mounted(e,{value:t}){ou(e,t)},beforeUpdate(e,{value:t},s){e._modelValue=t,e[bn]=Bo(s)},updated(e,{value:t}){let s=e._pendingValue;e._pendingValue=void 0,(!s||s[0]!==e.multiple||!Sh(t,s[1],s[0]))&&ou(e,t)}};function Sh(e,t,s){if(!s)return xt(e,t);if(Ne(e))return xt(e,t);if(Zt(e)){if(e.size!==t.length)return!1;for(let i of t)if(!e.has(i))return!1;return!0}return!1}function ou(e,t){let s=e.multiple,i=Ne(t);if(!(s&&!i&&!Zt(t))){for(let o=0,r=e.options.length;oString(v)===String(p)):u.selected=hi(t,p)>-1}else u.selected=t.has(p);else if(xt(_s(u),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function _s(e){return"_value"in e?e._value:e.value}function au(e,t){let s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}var Eh=["ctrl","shift","alt","meta"],Nh={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Eh.some(s=>e[`${s}Key`]&&!t.includes(s))},de=(e,t)=>{if(!e)return e;let s=e._withMods||(e._withMods={}),i=t.join(".");return s[i]||(s[i]=((o,...r)=>{for(let u=0;u{let s=e._withKeys||(e._withKeys={}),i=t.join(".");return s[i]||(s[i]=(o=>{if(!("key"in o))return;let r=dn(o.key);if(t.some(u=>u===r||Rh[u]===r))return e(o)}))},Th=ct({patchProp:bh},oh),su;function Ph(){return su||(su=_d(Th))}var lu=((...e)=>{let t=Ph().createApp(...e),{mount:s}=t;return t.mount=i=>{let o=Ah(i);if(!o)return;let r=t._component;!Ie(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");let u=s(o,!1,Dh(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),u},t});function Dh(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ah(e){return at(e)?document.querySelector(e):e}var co=typeof document<"u";function uu(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ih(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&uu(e.default)}var Ze=Object.assign;function Hi(e,t){let s={};for(let i in t){let o=t[i];s[i]=Xt(o)?o.map(e):e(o)}return s}var Ho=()=>{},Xt=Array.isArray;function va(e,t){let s={};for(let i in e)s[i]=i in t?t[i]:e[i];return s}var cu=/#/g,Oh=/&/g,Mh=/\//g,Vh=/=/g,qh=/\?/g,pu=/\+/g,Lh=/%5B/g,_h=/%5D/g,fu=/%5E/g,$h=/%60/g,mu=/%7B/g,Fh=/%7C/g,hu=/%7D/g,Uh=/%20/g;function ya(e){return e==null?"":encodeURI(""+e).replace(Fh,"|").replace(Lh,"[").replace(_h,"]")}function gu(e){return ya(e).replace(mu,"{").replace(hu,"}").replace(fu,"^")}function ha(e){return ya(e).replace(pu,"%2B").replace(Uh,"+").replace(cu,"%23").replace(Oh,"%26").replace($h,"`").replace(mu,"{").replace(hu,"}").replace(fu,"^")}function Bh(e){return ha(e).replace(Vh,"%3D")}function zh(e){return ya(e).replace(cu,"%23").replace(qh,"%3F")}function vu(e){return zh(e).replace(Mh,"%2F")}function zo(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}var Hh=/\/$/,jh=e=>e.replace(Hh,"");function ji(e,t,s="/"){let i,o={},r="",u="",p=t.indexOf("#"),c=t.indexOf("?");return c=p>=0&&c>p?-1:c,c>=0&&(i=t.slice(0,c),r=t.slice(c,p>0?p:t.length),o=e(r.slice(1))),p>=0&&(i=i||t.slice(0,p),u=t.slice(p,t.length)),i=Wh(i??t,s),{fullPath:i+r+u,path:i,query:o,hash:zo(u)}}function yu(e,t){let s=t.query?e(t.query):"";return t.path+(s&&"?")+s+(t.hash||"")}function ba(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function bu(e,t,s){let i=t.matched.length-1,o=s.matched.length-1;return i>-1&&i===o&&lo(t.matched[i],s.matched[o])&&wa(t.params,s.params)&&e(t.query)===e(s.query)&&t.hash===s.hash}function lo(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function wa(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var s in e)if(!Gh(e[s],t[s]))return!1;return!0}function Gh(e,t){return Xt(e)?du(e,t):Xt(t)?du(t,e):e?.valueOf()===t?.valueOf()}function du(e,t){return Xt(t)?e.length===t.length&&e.every((s,i)=>s===t[i]):e.length===1&&e[0]===t}function Wh(e,t){if(e.startsWith("/"))return e;if(!e)return t;let s=t.split("/"),i=e.split("/"),o=i[i.length-1];(o===".."||o===".")&&i.push("");let r=s.length-1,u,p;for(u=0;u1&&r--;else break;return s.slice(0,r).join("/")+"/"+i.slice(u).join("/")}var An={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Gi=(function(e){return e.pop="pop",e.push="push",e})({}),Wi=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function wu(e){if(!e)if(co){let t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),jh(e)}var Kh=/^[^#]+#/;function ku(e,t){return e.replace(Kh,"#")+t}function Yh(e,t){let s=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-s.left-(t.left||0),top:i.top-s.top-(t.top||0)}}var $s=()=>({left:window.scrollX,top:window.scrollY});function Cu(e){let t;if("el"in e){let s=e.el,i=typeof s=="string"&&s.startsWith("#"),o=typeof s=="string"?i?document.getElementById(s.slice(1)):document.querySelector(s):s;if(!o)return;t=Yh(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function ka(e,t){return(history.state?history.state.position-t:-1)+e}var ga=new Map;function Su(e,t){ga.set(e,t)}function Eu(e){let t=ga.get(e);return ga.delete(e),t}function Jh(e){return typeof e=="string"||e&&typeof e=="object"}function Ca(e){return typeof e=="string"||typeof e=="symbol"}var ut=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({}),Nu=Symbol("");var Fne={[ut.MATCHER_NOT_FOUND]({location:e,currentLocation:t}){return`No match for +"use strict";(()=>{var pl=Object.defineProperty;var fl=e=>{throw TypeError(e)};var yf=(e,t,s)=>t in e?pl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var bf=(e,t)=>{for(var s in t)pl(e,s,{get:t[s],enumerable:!0})};var tt=(e,t,s)=>yf(e,typeof t!="symbol"?t+"":t,s),Rr=(e,t,s)=>t.has(e)||fl("Cannot "+s);var ae=(e,t,s)=>(Rr(e,t,"read from private field"),s?s.call(e):t.get(e)),Le=(e,t,s)=>t.has(e)?fl("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),Be=(e,t,s,i)=>(Rr(e,t,"write to private field"),i?i.call(e,s):t.set(e,s),s),_e=(e,t,s)=>(Rr(e,t,"access private method"),s);var ml=(e,t,s,i)=>({set _(o){Be(e,t,o,s)},get _(){return ae(e,t,i)}});var ve=["abap","abc","actionscript","ada","alda","apache_conf","apex","applescript","aql","asciidoc","asl","assembly_x86","autohotkey","batchfile","c9search","c_cpp","cirru","clojure","cobol","coffee","coldfusion","crystal","csharp","csound_document","csound_orchestra","csound_score","csp","css","curly","d","dart","diff","django","dockerfile","dot","drools","edifact","eiffel","ejs","elixir","elm","erlang","forth","fortran","fsharp","fsl","ftl","gcode","gherkin","gitignore","glsl","gobstones","golang","graphqlschema","groovy","haml","handlebars","haskell","haskell_cabal","haxe","hjson","html","html_elixir","html_ruby","ini","io","jack","jade","java","javascript","json","json5","jsoniq","jsp","jssm","jsx","julia","kotlin","latex","less","liquid","lisp","livescript","logiql","logtalk","lsl","lua","luapage","lucene","makefile","markdown","mask","matlab","maze","mediawiki","mel","mixal","mushcode","mysql","nginx","nim","nix","nsis","nunjucks","objectivec","ocaml","pascal","perl","perl6","pgsql","php","php_laravel_blade","pig","plain_text","powershell","praat","prisma","prolog","properties","protobuf","puppet","python","qml","r","razor","rdoc","red","redshift","rhtml","rst","ruby","rust","sass","scad","scala","scheme","scss","sh","sjs","slim","smarty","snippets","soy_template","space","sparql","sql","sqlserver","stylus","svg","swift","tcl","terraform","tex","text","textile","toml","tsx","turtle","twig","typescript","vala","vbscript","velocity","verilog","vhdl","visualforce","wollok","xml","xquery","yaml","zeek"];var ye={markdown:"/script/markdown.6c8dfb7b1d.min.js",notebook:"/script/notebook.c3144c18ae.min.js",org:"/script/org.f61f262915.min.js",editor:"/script/editor.4f142d3adc.min.js",pdf:"/script/pdf.4d9cc6ff49.min.js"};function hl(e){let t=e.location.hash.slice(1);if(e.history.replaceState(null,"","/review-link"),t.length>2048)return null;let s=new URLSearchParams(t);if([...s.keys()].length!==3||[...s.keys()].some(u=>!["clientId","intentId","token"].includes(u)))return null;let i=s.get("clientId"),o=s.get("intentId"),r=s.get("token");return!/^[a-f0-9]{32}$/.test(i||"")||!/^[a-f0-9]{32}$/.test(o||"")||!/^[a-f0-9]{64}$/.test(r||"")?null:{contract:"4open.artifacts/1",clientId:i,intentId:o,token:r}}function gl(e,t){let{http:s,promises:i,window:o}=t,r=t.takeReviewHandoff(),u=r?{clientId:r.clientId,intentId:r.intentId}:null,p,c,v,h,y,g=!0,k,w=i.defer(),S=()=>[...o.crypto.getRandomValues(new Uint8Array(16))].map(F=>F.toString(16).padStart(2,"0")).join("");Object.assign(e,{repositoryId:"",handoffEnabled:!1,busy:!1,preview:null,acceptAccess:!1,acceptRetention:!1,uncertain:!1,saved:!1,expired:!1,error:r?"":"Open a new artifact link from your submission. This link is missing or invalid."});let N=()=>g&&e.user?.username===y;function b(){g=!1,r=p=c=void 0,w.resolve(),o.clearTimeout(k)}e.on("dispose",b),e.on("routeLeave",b),e.watch(()=>e.user?.username,F=>{!y&&F?y=F:y&&F!==y&&(b(),e.preview=null,e.repositoryId="",e.busy=!1,e.saved=!1,e.handoffEnabled=!1,e.error="Your account changed. Open a new artifact link from your submission.")});let T=()=>({timeout:w.promise,headers:{"Content-Type":"application/json","X-Review-CSRF":c}}),O=F=>F?.status===404?"Artifact linking is not available on this server.":F?.status===401?"Sign in, then open a new artifact link from your submission.":F?.status===403?"This account cannot approve this repository or this link.":"The request could not be completed. You can retry from this page.";e.loadPreview=async()=>{if(!g||!r||e.busy||e.uncertain||e.saved||!e.user?.username)return;y=e.user.username;let F=e.repositoryId.trim();if(!/^[A-Za-z0-9_-]{3,128}$/.test(F)){e.error="Enter the anonymous repository ID from its URL.";return}e.busy=!0,e.error="",e.preview=null,p=void 0,e.acceptAccess=e.acceptRetention=!1,e.expired=!1,o.clearTimeout(k),h||(h=S());try{let H=(await s.get("/api/review-consent/csrf",{timeout:w.promise})).data;if(!N())return;if(c=H.csrf,e.handoffEnabled=H.handoffEnabled===!0,!/^[a-f0-9]{64}$/.test(c||""))throw new Error("invalid_csrf");let se=(await s.post("/api/review-consent/preview",{repositoryId:F,intent:{...r,requestId:h}},T())).data;if(!N())return;if(!se||typeof se.ticket!="string"||!se.ticket||se.ticket.length>8192||typeof se.repositoryName!="string"||!["restricted-review","anonymous-link"].includes(se.policy?.access)||!Number.isSafeInteger(se.policy.version)||!Number.isFinite(Date.parse(se.policy.retainUntil))||!Number.isFinite(Date.parse(se.expiresAt))||Date.parse(se.expiresAt)<=Date.now()||Date.parse(se.expiresAt)>Date.now()+6e5)throw new Error("invalid_preview");p=se.ticket,v=S(),e.preview={repositoryName:se.repositoryName,policy:{...se.policy},expiresAt:se.expiresAt},k=o.setTimeout(()=>{g&&(e.expired=!0)},Math.max(0,Date.parse(se.expiresAt)-Date.now()))}catch(H){N()&&(e.error=O(H))}finally{N()&&(e.busy=!1)}},e.confirmConsent=async()=>{if(!(!N()||e.busy||e.saved||!p||!e.acceptAccess||!e.acceptRetention)){if(Date.parse(e.preview.expiresAt)<=Date.now()){e.expired=!0;return}e.busy=!0,e.error="";try{let F=(await s.post("/api/review-consent/confirm",{ticket:p,requestId:v,acceptAccess:!0,acceptRetention:!0},T())).data;if(!N())return;if(F?.requestId!==v||!Number.isFinite(Date.parse(F.confirmedAt)))throw new Error("invalid_receipt");e.saved=!0,e.uncertain=!1,r=void 0,e.handoffEnabled||(p=void 0)}catch{N()&&(e.uncertain=!0,e.error="The confirmation was not verified. Retry with the same approval, or return to your submission to check its status.")}finally{N()&&(e.busy=!1)}}},e.continueReview=async()=>{if(!N()||e.busy||!e.saved||!e.handoffEnabled||!p||!u)return;e.busy=!0,e.error="";let F,H=()=>{F?.remove(),o.removeEventListener("securitypolicyviolation",se)},se=_=>{_.violatedDirective?.startsWith("form-action")&&(H(),N()&&(e.busy=!1,e.error="The return address was blocked. Return to your submission to check the artifact status."))};try{let _=(await s.post("/api/review-consent/handoff",{ticket:p},T())).data;if(!N())return;let z=_?.completion,I=new URL(_?.callbackUrl);if(!z||Object.keys(z).sort().join(",")!=="clientId,code,contract,expiresAt,intentId"||z.contract!=="4open.artifacts/1"||z.clientId!==u.clientId||z.intentId!==u.intentId||!/^[a-f0-9]{64}$/.test(z.code||"")||!Number.isFinite(Date.parse(z.expiresAt))||Date.parse(z.expiresAt)<=Date.now()||Date.parse(z.expiresAt)>Date.now()+3e5||I.protocol!=="https:"||I.href!==_.callbackUrl||I.username||I.password||_.callbackUrl.includes("?")||_.callbackUrl.includes("#"))throw new Error("invalid_handoff");F=o.document.createElement("form"),F.method="POST",F.action=I.href;let q=o.document.createElement("input");q.type="hidden",q.name="completion",q.value=JSON.stringify(z),F.appendChild(q),o.document.body.appendChild(F),o.addEventListener("securitypolicyviolation",se),e.on("dispose",H),F.submit()}catch{H(),N()&&(e.busy=!1,e.error="The return to review could not be prepared. Retry from this page, or return to your submission to check its status.")}}}var li=new Map,Cf=ye;function Zn(e){if(!li.has(e)){let t=document.createElement("script");t.src=Cf[e];let s=new Promise((i,o)=>{t.onload=i,t.onerror=()=>{li.delete(e),t.remove(),o(new Error(`Unable to load ${e}. Please retry.`))}});li.set(e,s),document.head.appendChild(t)}return li.get(e)}async function di(){await Zn("editor"),ace.config.set("basePath","/script/external/ace/")}function Do(e){let t=Object.create(null);for(let s of e.split(","))t[s]=1;return s=>s in t}var xe={},Ln=[],Mt=()=>{},Pr=()=>!1,Ao=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Io=e=>e.startsWith("onUpdate:"),ct=Object.assign,is=(e,t)=>{let s=e.indexOf(t);s>-1&&e.splice(s,1)},Sf=Object.prototype.hasOwnProperty,Ke=(e,t)=>Sf.call(e,t),Ne=Array.isArray,En=e=>rs(e)==="[object Map]",Zt=e=>rs(e)==="[object Set]",vl=e=>rs(e)==="[object Date]";var Ie=e=>typeof e=="function",at=e=>typeof e=="string",Ft=e=>typeof e=="symbol",Je=e=>e!==null&&typeof e=="object",Dr=e=>(Je(e)||Ie(e))&&Ie(e.then)&&Ie(e.catch),kl=Object.prototype.toString,rs=e=>kl.call(e),Ar=e=>rs(e).slice(8,-1),ui=e=>rs(e)==="[object Object]",ci=e=>at(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Oo=Do(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted");var pi=e=>{let t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Ef=/-\w/g,ht=pi(e=>e.replace(Ef,t=>t.slice(1).toUpperCase())),Nf=/\B([A-Z])/g,dn=pi(e=>e.replace(Nf,"-$1").toLowerCase()),xn=pi(e=>e.charAt(0).toUpperCase()+e.slice(1)),as=pi(e=>e?`on${xn(e)}`:""),Kt=(e,t)=>!Object.is(e,t),Mo=(e,...t)=>{for(let s=0;s{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:s})},Vo=e=>{let t=parseFloat(e);return isNaN(t)?e:t};var yl,ls=()=>yl||(yl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ae(e){if(Ne(e)){let t={};for(let s=0;ss.startsWith("/*")?"":s).split(Rf).forEach(s=>{if(s){let i=s.split(Tf);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function R(e){let t="";if(at(e))t=e;else if(Ne(e))for(let s=0;sxt(s,t))}var El=e=>!!(e&&e.__v_isRef===!0),d=e=>at(e)?e:e==null?"":Ne(e)||Je(e)&&(e.toString===kl||!Ie(e.toString))?El(e)?d(e.value):JSON.stringify(e,Nl,2):String(e),Nl=(e,t)=>El(t)?Nl(e,t.value):En(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[i,o],r)=>(s[Tr(i,r)+" =>"]=o,s),{})}:Zt(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Tr(s))}:Ft(t)?Tr(t):Je(t)&&!Ne(t)&&!ui(t)?String(t):t,Tr=(e,t="")=>{var s;return Ft(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};function Mf(e,...t){console.warn(`[Vue warn] ${e}`,...t)}var gt,ps=class{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&>&&(gt.active?(this.parent=gt,this.index=(gt.scopes||(gt.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes){let i=this.scopes.slice();for(t=0,s=i.length;t0&&--this._on===0){if(gt===this)gt=this.prevScope;else{let t=gt;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,i;for(s=0,i=this.effects.length;s0)return;if(cs){let t=cs;for(cs=void 0;t;){let s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;us;){let t=us;for(us=void 0;t;){let s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=s}}if(e)throw e}function Ol(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ml(e){let t,s=e.depsTail,i=s;for(;i;){let o=i.prevDep;i.version===-1?(i===s&&(s=o),jr(i),Vf(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=o}e.deps=t,e.depsTail=s}function Vr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Vl(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Vl(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===fs)||(e.globalVersion=fs,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Vr(e))))return;e.flags|=2;let t=e.dep,s=ot,i=en;ot=e,en=!0;try{Ol(e);let o=e.fn(e._value);(t.version===0||Kt(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{ot=s,en=i,Ml(e),e.flags&=-3}}function jr(e,t=!1){let{dep:s,prevSub:i,nextSub:o}=e;if(i&&(i.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=i,e.nextSub=void 0),s.subs===e&&(s.subs=i,!i&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)jr(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Vf(e){let{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}var en=!0,ql=[];function tn(){ql.push(en),en=!1}function nn(){let e=ql.pop();en=e===void 0?!0:e}function Rl(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let s=ot;ot=void 0;try{t()}finally{ot=s}}}var fs=0,qr=class{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},ms=class{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!ot||!en||ot===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==ot)s=this.activeLink=new qr(ot,this),ot.deps?(s.prevDep=ot.depsTail,ot.depsTail.nextDep=s,ot.depsTail=s):ot.deps=ot.depsTail=s,Ll(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){let i=s.nextDep;i.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=i),s.prevDep=ot.depsTail,s.nextDep=void 0,ot.depsTail.nextDep=s,ot.depsTail=s,ot.deps===s&&(ot.deps=i)}return s}trigger(t){this.version++,fs++,this.notify(t)}notify(t){zr();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Hr()}}};function Ll(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)Ll(i)}let s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}var Lr=new WeakMap,to=Symbol(""),_r=Symbol(""),hs=Symbol("");function kt(e,t,s){if(en&&ot){let i=Lr.get(e);i||Lr.set(e,i=new Map);let o=i.get(s);o||(i.set(s,o=new ms),o.map=i,o.key=s),o.track()}}function cn(e,t,s,i,o,r){let u=Lr.get(e);if(!u){fs++;return}let p=c=>{c&&c.trigger()};if(zr(),t==="clear")u.forEach(p);else{let c=Ne(e),v=c&&ci(s);if(c&&s==="length"){let h=Number(i);u.forEach((y,g)=>{(g==="length"||g===hs||!Ft(g)&&g>=h)&&p(y)})}else switch((s!==void 0||u.has(void 0))&&p(u.get(s)),v&&p(u.get(hs)),t){case"add":c?v&&p(u.get("length")):(p(u.get(to)),En(e)&&p(u.get(_r)));break;case"delete":c||(p(u.get(to)),En(e)&&p(u.get(_r)));break;case"set":En(e)&&p(u.get(to));break}}Hr()}function qo(e){let t=Ye(e);return t===e||(kt(t,"iterate",hs),Vt(e))?t:Yt(e)?fn(e)?t.map(s=>Rn(Ut(s))):t.map(Rn):t.map(Ut)}function gs(e){return kt(e=Ye(e),"iterate",hs),e}function un(e,t){return Yt(e)?Rn(fn(e)?Ut(t):t):Ut(t)}var qf={__proto__:null,[Symbol.iterator](){return Or(this,Symbol.iterator,e=>un(this,e))},concat(...e){return qo(this).concat(...e.map(t=>Ne(t)?qo(t):t))},entries(){return Or(this,"entries",e=>(e[1]=un(this,e[1]),e))},every(e,t){return Nn(this,"every",e,t,void 0,arguments)},filter(e,t){return Nn(this,"filter",e,t,s=>s.map(i=>un(this,i)),arguments)},find(e,t){return Nn(this,"find",e,t,s=>un(this,s),arguments)},findIndex(e,t){return Nn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Nn(this,"findLast",e,t,s=>un(this,s),arguments)},findLastIndex(e,t){return Nn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Nn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Mr(this,"includes",e)},indexOf(...e){return Mr(this,"indexOf",e)},join(e){return qo(this).join(e)},lastIndexOf(...e){return Mr(this,"lastIndexOf",e)},map(e,t){return Nn(this,"map",e,t,void 0,arguments)},pop(){return ds(this,"pop")},push(...e){return ds(this,"push",e)},reduce(e,...t){return Pl(this,"reduce",e,t)},reduceRight(e,...t){return Pl(this,"reduceRight",e,t)},shift(){return ds(this,"shift")},some(e,t){return Nn(this,"some",e,t,void 0,arguments)},splice(...e){return ds(this,"splice",e)},toReversed(){return qo(this).toReversed()},toSorted(e){return qo(this).toSorted(e)},toSpliced(...e){return qo(this).toSpliced(...e)},unshift(...e){return ds(this,"unshift",e)},values(){return Or(this,"values",e=>un(this,e))}};function Or(e,t,s){let i=gs(e),o=i[t],r=o.call(i);if(i!==e&&!Vt(e)){if(r[Symbol.toStringTag]==="Array Iterator"){let u=Object.create(Object.getPrototypeOf(r));return u.next=()=>Tl(r.next(),s),o!==_l[t]&&Object.defineProperties(u,{return:{get(){let p=r.return;return typeof p=="function"?p.bind(r):p}},throw:{get(){let p=r.throw;return typeof p=="function"?p.bind(r):p}}}),u}r._next=r.next,r.next=()=>Tl(r._next(),s)}return r}function Tl(e,t){return e.done||(e.value=t(e.value)),e}var _l=Array.prototype;function Nn(e,t,s,i,o,r){let u=gs(e),p=u!==e&&!Vt(e),c=u[t];if(c!==_l[t]){let y=c.apply(e,r);return p?Ut(y):y}let v=s;u!==e&&(p?v=function(y,g){return s.call(this,un(e,y),g,e)}:s.length>2&&(v=function(y,g){return s.call(this,y,g,e)}));let h=c.call(u,v,i);return p&&o?o(h):h}function Pl(e,t,s,i){let o=gs(e),r=o!==e&&!Vt(e),u=s,p=!1;o!==e&&(r?(p=i.length===0,u=function(v,h,y){return p&&(p=!1,v=un(e,v)),s.call(this,v,un(e,h),y,e)}):s.length>3&&(u=function(v,h,y){return s.call(this,v,h,y,e)}));let c=o[t](u,...i);return p?un(e,c):c}function Mr(e,t,s){let i=Ye(e);kt(i,"iterate",hs);let o=i[t](...s);return(o===-1||o===!1)&&ys(s[0])?(s[0]=Ye(s[0]),i[t](...s)):o}function ds(e,t,s=[]){tn(),zr();let i=Ye(e)[t].apply(e,s);return Hr(),nn(),i}var Lf=Do("__proto__,__v_isRef,__isVue"),$l=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ft));function _f(e){Ft(e)||(e=String(e));let t=Ye(this);return kt(t,"has",e),t.hasOwnProperty(e)}var bi=class{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,i){if(s==="__v_skip")return t.__v_skip;let o=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!o;if(s==="__v_isReadonly")return o;if(s==="__v_isShallow")return r;if(s==="__v_raw")return i===(o?r?Wf:Bl:r?Ul:Fl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;let u=Ne(t);if(!o){let c;if(u&&(c=qf[s]))return c;if(s==="hasOwnProperty")return _f}let p=Reflect.get(t,s,wt(t)?t:i);if((Ft(s)?$l.has(s):Lf(s))||(o||kt(t,"get",s),r))return p;if(wt(p)){let c=u&&ci(s)?p:p.value;return o&&Je(c)?ki(c):c}return Je(p)?o?ki(p):rt(p):p}},wi=class extends bi{constructor(t=!1){super(!1,t)}set(t,s,i,o){let r=t[s],u=Ne(t)&&ci(s);if(!this._isShallow){let v=Yt(r);if(!Vt(i)&&!Yt(i)&&(r=Ye(r),i=Ye(i)),!u&&wt(r)&&!wt(i))return v||(r.value=i),!0}let p=u?Number(s)e,gi=e=>Reflect.getPrototypeOf(e);function Bf(e,t,s){return function(...i){let o=this.__v_raw,r=Ye(o),u=En(r),p=e==="entries"||e===Symbol.iterator&&u,c=e==="keys"&&u,v=o[e](...i),h=s?Fr:t?Rn:Ut;return!t&&kt(r,"iterate",c?_r:to),ct(Object.create(v),{next(){let{value:y,done:g}=v.next();return g?{value:y,done:g}:{value:p?[h(y[0]),h(y[1])]:h(y),done:g}}})}}function vi(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function zf(e,t){let s={get(o){let r=this.__v_raw,u=Ye(r),p=Ye(o);e||(Kt(o,p)&&kt(u,"get",o),kt(u,"get",p));let{has:c}=gi(u),v=t?Fr:e?Rn:Ut;if(c.call(u,o))return v(r.get(o));if(c.call(u,p))return v(r.get(p));r!==u&&r.get(o)},get size(){let o=this.__v_raw;return!e&&kt(Ye(o),"iterate",to),o.size},has(o){let r=this.__v_raw,u=Ye(r),p=Ye(o);return e||(Kt(o,p)&&kt(u,"has",o),kt(u,"has",p)),o===p?r.has(o):r.has(o)||r.has(p)},forEach(o,r){let u=this,p=u.__v_raw,c=Ye(p),v=t?Fr:e?Rn:Ut;return!e&&kt(c,"iterate",to),p.forEach((h,y)=>o.call(r,v(h),v(y),u))}};return ct(s,e?{add:vi("add"),set:vi("set"),delete:vi("delete"),clear:vi("clear")}:{add(o){let r=Ye(this),u=gi(r),p=Ye(o),c=!t&&!Vt(o)&&!Yt(o)?p:o;return u.has.call(r,c)||Kt(o,c)&&u.has.call(r,o)||Kt(p,c)&&u.has.call(r,p)||(r.add(c),cn(r,"add",c,c)),this},set(o,r){!t&&!Vt(r)&&!Yt(r)&&(r=Ye(r));let u=Ye(this),{has:p,get:c}=gi(u),v=p.call(u,o);v||(o=Ye(o),v=p.call(u,o));let h=c.call(u,o);return u.set(o,r),v?Kt(r,h)&&cn(u,"set",o,r,h):cn(u,"add",o,r),this},delete(o){let r=Ye(this),{has:u,get:p}=gi(r),c=u.call(r,o);c||(o=Ye(o),c=u.call(r,o));let v=p?p.call(r,o):void 0,h=r.delete(o);return c&&cn(r,"delete",o,void 0,v),h},clear(){let o=Ye(this),r=o.size!==0,u=void 0,p=o.clear();return r&&cn(o,"clear",void 0,void 0,u),p}}),["keys","values","entries",Symbol.iterator].forEach(o=>{s[o]=Bf(o,e,t)}),s}function Gr(e,t){let s=zf(e,t);return(i,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_isShallow"?t:o==="__v_raw"?i:Reflect.get(Ke(s,o)&&o in i?s:i,o,r)}var Hf={get:Gr(!1,!1)},jf={get:Gr(!1,!0)},Gf={get:Gr(!0,!1)};var Fl=new WeakMap,Ul=new WeakMap,Bl=new WeakMap,Wf=new WeakMap;function Kf(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function rt(e){return Yt(e)?e:Wr(e,!1,$f,Hf,Fl)}function vs(e){return Wr(e,!1,Uf,jf,Ul)}function ki(e){return Wr(e,!0,Ff,Gf,Bl)}function Wr(e,t,s,i,o){if(!Je(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let r=o.get(e);if(r)return r;let u=Kf(Ar(e));if(u===0)return e;let p=new Proxy(e,u===2?i:s);return o.set(e,p),p}function fn(e){return Yt(e)?fn(e.__v_raw):!!(e&&e.__v_isReactive)}function Yt(e){return!!(e&&e.__v_isReadonly)}function Vt(e){return!!(e&&e.__v_isShallow)}function ys(e){return e?!!e.__v_raw:!1}function Ye(e){let t=e&&e.__v_raw;return t?Ye(t):e}function mn(e){return!Ke(e,"__v_skip")&&Object.isExtensible(e)&&fi(e,"__v_skip",!0),e}var Ut=e=>Je(e)?rt(e):e,Rn=e=>Je(e)?ki(e):e;function wt(e){return e?e.__v_isRef===!0:!1}function Ct(e){return zl(e,!1)}function Si(e){return zl(e,!0)}function zl(e,t){return wt(e)?e:new Ur(e,t)}var Ur=class{constructor(t,s){this.dep=new ms,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:Ye(t),this._value=s?t:Ut(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){let s=this._rawValue,i=this.__v_isShallow||Vt(t)||Yt(t);t=i?t:Ye(t),Kt(t,s)&&(this._rawValue=t,this._value=i?t:Ut(t),this.dep.trigger())}};function Tn(e){return wt(e)?e.value:e}var Yf={get:(e,t,s)=>t==="__v_raw"?e:Tn(Reflect.get(e,t,s)),set:(e,t,s,i)=>{let o=e[t];return wt(o)&&!wt(s)?(o.value=s,!0):Reflect.set(e,t,s,i)}};function Ei(e){return fn(e)?e:new Proxy(e,Yf)}var Br=class{constructor(t,s,i){this.fn=t,this.setter=s,this._value=void 0,this.dep=new ms(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=fs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&ot!==this)return Il(this,!0),!0}get value(){let t=this.dep.track();return Vl(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}};function Hl(e,t,s=!1){let i,o;return Ie(e)?i=e:(i=e.get,o=e.set),new Br(i,o,s)}var yi={},Ci=new WeakMap,eo;function jl(e,t=!1,s=eo){if(s){let i=Ci.get(s);i||Ci.set(s,i=[]),i.push(e)}}function Gl(e,t,s=xe){let{immediate:i,deep:o,once:r,scheduler:u,augmentJob:p,call:c}=s,v=H=>{(s.onWarn||Mf)("Invalid watch source: ",H,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},h=H=>o?H:Vt(H)||o===!1||o===0?pn(H,1):pn(H),y,g,k,w,S=!1,N=!1;if(wt(e)?(g=()=>e.value,S=Vt(e)):fn(e)?(g=()=>h(e),S=!0):Ne(e)?(N=!0,S=e.some(H=>fn(H)||Vt(H)),g=()=>e.map(H=>{if(wt(H))return H.value;if(fn(H))return h(H);if(Ie(H))return c?c(H,2):H()})):Ie(e)?t?g=c?()=>c(e,2):e:g=()=>{if(k){tn();try{k()}finally{nn()}}let H=eo;eo=y;try{return c?c(e,3,[w]):e(w)}finally{eo=H}}:g=Mt,t&&o){let H=g,se=o===!0?1/0:o;g=()=>pn(H(),se)}let b=Dl(),T=()=>{y.stop(),b&&b.active&&is(b.effects,y)};if(r&&t){let H=t;t=(...se)=>{try{return H(...se)}finally{T()}}}let O=N?new Array(e.length).fill(yi):yi,F=H=>{if(!(!(y.flags&1)||!y.dirty&&!H))if(t){let se=y.run();if(H||o||S||(N?se.some((_,z)=>Kt(_,O[z])):Kt(se,O))){let _=eo;tn();try{k&&k(),eo=y;let z=[se,O===yi?void 0:N&&O[0]===yi?[]:O,w];O=se,c?c(t,3,z):t(...z)}finally{eo=_,nn()}}}else y.run()};return p&&p(F),y=new Lo(g),y.scheduler=u?()=>u(F,!1):F,w=H=>jl(H,!1,y),k=y.onStop=()=>{let H=Ci.get(y);if(H){if(c)c(H,4);else for(let se of H)se();Ci.delete(y)}},t?i?F(!0):O=y.run():u?u(F.bind(null,!0),!0):y.run(),T.pause=y.pause.bind(y),T.resume=y.resume.bind(y),T.stop=T,T}function pn(e,t=1/0,s){if(t<=0||!Je(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,wt(e))pn(e.value,t,s);else if(Ne(e))for(let i=0;i{pn(i,t,s)});else if(ui(e)){for(let i in e)pn(e[i],t,s);for(let i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&pn(e[i],t,s)}return e}function As(e,t,s,i){try{return i?e(...i):e()}catch(o){Is(o,t,s)}}function Jt(e,t,s,i){if(Ie(e)){let o=As(e,t,s,i);return o&&Dr(o)&&o.catch(r=>{Is(r,t,s)}),o}if(Ne(e)){let o=[];for(let r=0;r>>1,o=At[i],r=Ns(o);r=Ns(s)?At.push(e):At.splice(xf(t),0,e),e.flags|=1,ld()}}function ld(){Ti||(Ti=ad.then(pd))}function dd(e){if(!Ne(e))_n&&e.id===-1?_n.splice(_o+1,0,e):e.flags&1||(gn.push(e),e.flags|=1);else for(let t=0;t=t))continue;At.splice(i,1),i=e?i-1:on,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function cd(e,t,s=0){if(gn.length){let i=gn,o=0;if(t){i=[];for(let u=0;uNs(u)-Ns(p));if(gn.length=o,_n){for(let u=0;ue.id==null?e.flags&2?-1:1/0:e.id;function pd(e){let t=Mt;try{for(on=0;on{i._d&&Ii(-1);let r=Pi(t),u=io.length,p;try{p=e(...o)}finally{for(let c=io.length;c>u;c--)zd();Pi(r),i._d&&Ii(1)}return p};return i._n=!0,i._c=!0,i._d=!0,i}function P(e,t){if(Bt===null)return e;let s=Fi(Bt),i=e.dirs||(e.dirs=[]);for(let o=0;o1)return s&&Ie(t)?t.call(i&&i.proxy):t}}var nm=Symbol.for("v-scx"),om=()=>{{let e=Lt(nm);return e}};function dt(e,t,s){return md(e,t,s)}function md(e,t,s=xe){let{immediate:i,deep:o,flush:r,once:u}=s,p=ct({},s),c=t&&i||!t&&r!=="post",v;if(Uo){if(r==="sync"){let k=om();v=k.__watcherHandles||(k.__watcherHandles=[])}else if(!c){let k=()=>{};return k.stop=Mt,k.resume=Mt,k.pause=Mt,k}}let h=St;p.call=(k,w,S)=>Jt(k,h,w,S);let y=!1;r==="post"?p.scheduler=k=>{k.i=h,qt(k,h&&h.suspense)}:r!=="sync"&&(y=!0,p.scheduler=(k,w)=>{w?k():sa(k)}),p.augmentJob=k=>{t&&(k.flags|=4),y&&(k.flags|=2,h&&(k.id=h.uid,k.i=h))};let g=Gl(e,t,p);return Uo&&(v?v.push(g):c&&g()),g}function sm(e,t,s){let i=this.proxy,o=at(e)?e.includes(".")?hd(i,e):()=>i[e]:e.bind(i,i),r;Ie(t)?r=t:(r=t.handler,s=t);let u=Vs(this),p=md(o,r.bind(i),s);return u(),p}function hd(e,t){let s=t.split(".");return()=>{let i=e;for(let o=0;oe.__isTeleport;var Yr=Symbol("_leaveCb");function rm(e){let t=e[0];if(e.length>1){let s=!1;for(let i of e)if(i.type!==sn){t=i,s=!0;break}}return t}function gd(e){if(!qi(e))return Vi(e.type)&&e.children?rm(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&Ie(s.default))return s.default()}}function Rs(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let s=e.component.subTree;Rs(Vi(s.type)&&gd(s)||s,t)}else if(e.shapeFlag&128)e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback);else if(e.transition=t,e.type===V&&Ne(e.children)){let s=Pd(e.children,!1);s&&Rs(s,t)}}function Zr(e){if(e.component)return Zr(e.component.subTree);if(e.type===V){let t=Ne(e.children)&&Pd(e.children,!1);return t?Zr(t):void 0}if(e.type!==sn)return e}function Os(e,t){return Ie(e)?ct({name:e.name},t,{setup:e}):e}function ia(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Wl(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}var Di=new WeakMap;function ks(e,t,s,i,o=!1){if(Ne(e)){e.forEach((S,N)=>ks(S,t&&(Ne(t)?t[N]:t),s,i,o));return}if(Cs(i)&&!o){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&ks(e,t,s,i.component.subTree);return}let r=i.shapeFlag&4?Fi(i.component):i.el,u=o?null:r,{i:p,r:c}=e,v=t&&t.r,h=p.refs===xe?p.refs={}:p.refs,y=p.setupState,g=Ye(y),k=y===xe?Pr:S=>Wl(h,S)?!1:Ke(g,S),w=(S,N)=>!(N&&Wl(h,N));if(v!=null&&v!==c){if(Kl(t),at(v))h[v]=null,k(v)&&(y[v]=null);else if(wt(v)){let S=t;w(v,S.k)&&(v.value=null),S.k&&(h[S.k]=null)}}if(Ie(c))As(c,p,12,[u,h]);else{let S=at(c),N=wt(c);if(S||N){let b=()=>{if(e.f){let T=S?k(c)?y[c]:h[c]:w(c)||!e.k?c.value:h[e.k];if(o)Ne(T)&&is(T,r);else if(Ne(T))T.includes(r)||T.push(r);else if(S)h[c]=[r],k(c)&&(y[c]=h[c]);else{let O=[r];w(c,e.k)&&(c.value=O),e.k&&(h[e.k]=O)}}else S?(h[c]=u,k(c)&&(y[c]=u)):N&&(w(c,e.k)&&(c.value=u),e.k&&(h[e.k]=u))};if(u){let T=()=>{b(),Di.delete(e)};T.id=-1,Di.set(e,T),qt(T,s)}else Kl(e),b()}}}function Kl(e){let t=Di.get(e);t&&(t.flags|=8,Di.delete(e))}var Yl=e=>e.nodeType===8;var ane=ls().requestIdleCallback||(e=>setTimeout(e,1)),lne=ls().cancelIdleCallback||(e=>clearTimeout(e));function am(e,t){if(Yl(e)&&e.data==="["){let s=1,i=e.nextSibling;for(;i;){if(i.nodeType===1){if(t(i)===!1)break}else if(Yl(i))if(i.data==="]"){if(--s===0)break}else i.data==="["&&s++;i=i.nextSibling}}else t(e)}var Cs=e=>!!e.type.__asyncLoader;function vd(e){Ie(e)&&(e={loader:e});let{loader:t,loadingComponent:s,errorComponent:i,delay:o=200,hydrate:r,timeout:u,suspensible:p=!0,onError:c}=e,v=null,h,y=0,g=()=>(y++,v=null,k()),k=()=>{let w;return v||(w=v=t().catch(S=>{if(S=S instanceof Error?S:new Error(String(S)),c)return new Promise((N,b)=>{c(S,()=>N(g()),()=>b(S),y+1)});throw S}).then(S=>w!==v&&v?v:(S&&(S.__esModule||S[Symbol.toStringTag]==="Module")&&(S=S.default),h=S,S)))};return Os({name:"AsyncComponentWrapper",__asyncLoader:k,__asyncHydrate(w,S,N){let b=w.isConnected,T=!1;(S.bu||(S.bu=[])).push(()=>T=!0);let O=()=>{T||!w.parentNode||b&&!w.isConnected||N()},F=r?()=>{let H=r(O,se=>am(w,se));H&&(S.bum||(S.bum=[])).push(H)}:O;h?F():k().then(()=>!S.isUnmounted&&F())},get __asyncResolved(){return h},setup(){let w=St;if(ia(w),h)return()=>Ni(h,w);let S=H=>{v=null,Is(H,w,13,!i)};if(p&&w.suspense||Uo)return k().then(H=>()=>Ni(H,w)).catch(H=>(S(H),()=>i?Me(i,{error:H}):null));let N=Ct(!1),b=Ct(),T=Ct(!!o),O,F;return Ms(()=>{O!=null&&clearTimeout(O),F!=null&&clearTimeout(F)}),o&&(F=setTimeout(()=>{w.isUnmounted||(T.value=!1)},o)),u!=null&&(O=setTimeout(()=>{if(!w.isUnmounted&&!N.value&&!b.value){let H=new Error(`Async component timed out after ${u}ms.`);S(H),b.value=H}},u)),k().then(()=>{w.isUnmounted||(N.value=!0,w.parent&&qi(w.parent.vnode)&&w.parent.update())}).catch(H=>{if(w.isUnmounted){v=null;return}S(H),b.value=H}),()=>{if(N.value&&h)return Ni(h,w);if(b.value&&i)return Me(i,{error:b.value});if(s&&!T.value)return Ni(s,w)}}})}function Ni(e,t){let{ref:s,props:i,children:o,ce:r}=t.vnode,u=Me(e,i,o);return u.ref=s,u.ce=r,delete t.vnode.ce,u}var qi=e=>e.type.__isKeepAlive;function yd(e,t){wd(e,"a",t)}function bd(e,t){wd(e,"da",t)}function wd(e,t,s=St){let i=e.__wdc||(e.__wdc=()=>{let o=s;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Li(t,i,s),s){let o=s.parent;for(;o&&o.parent;)qi(o.parent.vnode)&&lm(i,t,s,o),o=o.parent}}function lm(e,t,s,i){let o=Li(t,e,i,!0);Ms(()=>{is(i[t],o)},s)}function Li(e,t,s=St,i=!1){if(s){let o=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...u)=>{tn();let p=Vs(s),c=Jt(t,s,e,u);return p(),nn(),c});return i?o.unshift(r):o.push(r),r}}var Dn=e=>(t,s=St)=>{(!Uo||e==="sp")&&Li(e,(...i)=>t(...i),s)},dm=Dn("bm"),yn=Dn("m"),kd=Dn("bu"),Cd=Dn("u"),ao=Dn("bum"),Ms=Dn("um"),um=Dn("sp"),cm=Dn("rtg"),pm=Dn("rtc");function fm(e,t=St){Li("ec",e,t)}var Sd="components",mm="directives";function Qe(e,t){return Ed(Sd,e,!0,t)||e}var hm=Symbol.for("v-ndc");function Pe(e){return Ed(mm,e)}function Ed(e,t,s=!0,i=!1){let o=Bt||St;if(o){let r=o.type;if(e===Sd){let p=Zm(r,!1);if(p&&(p===t||p===ht(t)||p===xn(ht(t))))return r}let u=Jl(o[e]||r[e],t)||Jl(o.appContext[e],t);return!u&&i?r:u}}function Jl(e,t){return e&&(e[t]||e[ht(t)]||e[xn(ht(t))])}function X(e,t,s,i){let o,r=s&&s[i],u=Ne(e);if(u||at(e)){let p=u&&fn(e),c=!1,v=!1;p&&(c=!Vt(e),v=Yt(e),e=gs(e)),o=new Array(e.length);for(let h=0,y=e.length;ht(p,c,void 0,r&&r[c]));else{let p=Object.keys(e);o=new Array(p.length);for(let c=0,v=p.length;ce?Wd(e)?Fi(e):xr(e.parent):null;var Ss=ct(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>xr(e.parent),$root:e=>xr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ra(e),$forceUpdate:e=>e.f||(e.f=()=>{sa(e.update)}),$nextTick:e=>e.n||(e.n=Ge.bind(e.proxy)),$watch:e=>sm.bind(e)});var Jr=(e,t)=>e!==xe&&!e.__isScriptSetup&&Ke(e,t),gm={get({_:e},t){if(t==="__v_skip")return!0;let{ctx:s,setupState:i,data:o,props:r,accessCache:u,type:p,appContext:c}=e;if(t[0]!=="$"){let g=u[t];if(g!==void 0)switch(g){case 1:return i[t];case 2:return o[t];case 4:return s[t];case 3:return r[t]}else{if(Jr(i,t))return u[t]=1,i[t];if(o!==xe&&Ke(o,t))return u[t]=2,o[t];if(Ke(r,t))return u[t]=3,r[t];if(s!==xe&&Ke(s,t))return u[t]=4,s[t];ea&&(u[t]=0)}}let v=Ss[t],h,y;if(v)return t==="$attrs"&&kt(e.attrs,"get",""),v(e);if((h=p.__cssModules)&&(h=h[t]))return h;if(s!==xe&&Ke(s,t))return u[t]=4,s[t];if(y=c.config.globalProperties,Ke(y,t))return y[t]},set({_:e},t,s){let{data:i,setupState:o,ctx:r}=e;return Jr(o,t)?(o[t]=s,!0):i!==xe&&Ke(i,t)?(i[t]=s,!0):Ke(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:i,appContext:o,props:r,type:u}},p){let c;return!!(s[p]||e!==xe&&p[0]!=="$"&&Ke(e,p)||Jr(t,p)||Ke(r,p)||Ke(i,p)||Ke(Ss,p)||Ke(o.config.globalProperties,p)||(c=u.__cssModules)&&c[p])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Ke(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Xl(e){return Ne(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}var ea=!0;function vm(e){let t=ra(e),s=e.proxy,i=e.ctx;ea=!1,t.beforeCreate&&Ql(t.beforeCreate,e,"bc");let{data:o,computed:r,methods:u,watch:p,provide:c,inject:v,created:h,beforeMount:y,mounted:g,beforeUpdate:k,updated:w,activated:S,deactivated:N,beforeDestroy:b,beforeUnmount:T,destroyed:O,unmounted:F,render:H,renderTracked:se,renderTriggered:_,errorCaptured:z,serverPrefetch:I,expose:q,inheritAttrs:E,components:L,directives:G,filters:j}=t;if(v&&ym(v,i,null),u)for(let x in u){let fe=u[x];Ie(fe)&&(i[x]=fe.bind(s))}if(o){let x=o.call(s,s);Je(x)&&(e.data=rt(x))}if(ea=!0,r)for(let x in r){let fe=r[x],me=Ie(fe)?fe.bind(s,s):Ie(fe.get)?fe.get.bind(s,s):Mt,qe=!Ie(fe)&&Ie(fe.set)?fe.set.bind(s):Mt,Ue=Et({get:me,set:qe});Object.defineProperty(i,x,{enumerable:!0,configurable:!0,get:()=>Ue.value,set:Xe=>Ue.value=Xe})}if(p)for(let x in p)Nd(p[x],i,s,x);if(c){let x=Ie(c)?c.call(s):c;Reflect.ownKeys(x).forEach(fe=>{ro(fe,x[fe])})}h&&Ql(h,e,"c");function ne(x,fe){Ne(fe)?fe.forEach(me=>x(me.bind(s))):fe&&x(fe.bind(s))}if(ne(dm,y),ne(yn,g),ne(kd,k),ne(Cd,w),ne(yd,S),ne(bd,N),ne(fm,z),ne(pm,se),ne(cm,_),ne(ao,T),ne(Ms,F),ne(um,I),Ne(q))if(q.length){let x=e.exposed||(e.exposed={});q.forEach(fe=>{Object.defineProperty(x,fe,{get:()=>s[fe],set:me=>s[fe]=me,enumerable:!0})})}else e.exposed||(e.exposed={});H&&e.render===Mt&&(e.render=H),E!=null&&(e.inheritAttrs=E),L&&(e.components=L),G&&(e.directives=G),I&&ia(e)}function ym(e,t,s=Mt){Ne(e)&&(e=ta(e));for(let i in e){let o=e[i],r;Je(o)?"default"in o?r=Lt(o.from||i,o.default,!0):r=Lt(o.from||i):r=Lt(o),wt(r)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>r.value,set:u=>r.value=u}):t[i]=r}}function Ql(e,t,s){Jt(Ne(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,s)}function Nd(e,t,s,i){let o=i.includes(".")?hd(s,i):()=>s[i];if(at(e)){let r=t[e];Ie(r)&&dt(o,r)}else if(Ie(e))dt(o,e.bind(s));else if(Je(e))if(Ne(e))e.forEach(r=>Nd(r,t,s,i));else{let r=Ie(e.handler)?e.handler.bind(s):t[e.handler];Ie(r)&&dt(o,r,e)}}function ra(e){let t=e.type,{mixins:s,extends:i}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:u}}=e.appContext,p=r.get(t),c;return p?c=p:!o.length&&!s&&!i?c=t:(c={},o.length&&o.forEach(v=>Ai(c,v,u,!0)),Ai(c,t,u)),Je(t)&&r.set(t,c),c}function Ai(e,t,s,i=!1){let{mixins:o,extends:r}=t;r&&Ai(e,r,s,!0),o&&o.forEach(u=>Ai(e,u,s,!0));for(let u in t)if(!(i&&u==="expose")){let p=bm[u]||s&&s[u];e[u]=p?p(e[u],t[u]):t[u]}return e}var bm={data:Zl,props:xl,emits:xl,methods:ws,computed:ws,beforeCreate:Dt,created:Dt,beforeMount:Dt,mounted:Dt,beforeUpdate:Dt,updated:Dt,beforeDestroy:Dt,beforeUnmount:Dt,destroyed:Dt,unmounted:Dt,activated:Dt,deactivated:Dt,errorCaptured:Dt,serverPrefetch:Dt,components:ws,directives:ws,watch:km,provide:Zl,inject:wm};function Zl(e,t){return t?e?function(){return ct(Ie(e)?e.call(this,this):e,Ie(t)?t.call(this,this):t)}:t:e}function wm(e,t){return ws(ta(e),ta(t))}function ta(e){if(Ne(e)){let t={};for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ht(t)}Modifiers`]||e[`${dn(t)}Modifiers`];function Nm(e,t,...s){if(e.isUnmounted)return;let i=e.vnode.props||xe,o=s,r=t.startsWith("update:"),u=r&&Em(i,t.slice(7));u&&(u.trim&&(o=s.map(h=>at(h)?h.trim():h)),u.number&&(o=o.map(Vo)));let p,c=i[p=as(t)]||i[p=as(ht(t))];!c&&r&&(c=i[p=as(dn(t))]),c&&Jt(c,e,6,o);let v=i[p+"Once"];if(v){if(!e.emitted)e.emitted={};else if(e.emitted[p])return;e.emitted[p]=!0,Jt(v,e,6,o)}}var Rm=new WeakMap;function Td(e,t,s=!1){let i=s?Rm:t.emitsCache,o=i.get(e);if(o!==void 0)return o;let r=e.emits,u={},p=!1;if(!Ie(e)){let c=v=>{let h=Td(v,t,!0);h&&(p=!0,ct(u,h))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!r&&!p?(Je(e)&&i.set(e,null),null):(Ne(r)?r.forEach(c=>u[c]=null):ct(u,r),Je(e)&&i.set(e,u),u)}function _i(e,t){return!e||!Ao(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Ke(e,t[0].toLowerCase()+t.slice(1))||Ke(e,dn(t))||Ke(e,t))}function Xr(e){let{type:t,vnode:s,proxy:i,withProxy:o,propsOptions:[r],slots:u,attrs:p,emit:c,render:v,renderCache:h,props:y,data:g,setupState:k,ctx:w,inheritAttrs:S}=e,N=Pi(e),b,T;try{if(s.shapeFlag&4){let H=o||i,se=H;b=vn(v.call(se,H,h,y,k,g,w)),T=p}else{let H=t;b=vn(H.length>1?H(y,{attrs:p,slots:u,emit:c}):H(y,null)),T=t.props?p:Tm(p)}}catch(H){io.length=0,Is(H,e,1),b=Me(sn)}let O=b,F;if(T&&S!==!1){let H=Object.keys(T),{shapeFlag:se}=O;H.length&&se&7&&(r&&H.some(Io)&&(T=Pm(T,r)),O=Fo(O,T,!1,!0))}if(s.dirs&&(O=Fo(O,null,!1,!0),O.dirs=O.dirs?O.dirs.concat(s.dirs):s.dirs),s.transition){let H=Vi(O.type)&&gd(O)||O;Rs(H,s.transition)}return b=O,Pi(N),b}function Pd(e,t=!0){let s;for(let i=0;i{let t;for(let s in e)(s==="class"||s==="style"||Ao(s))&&((t||(t={}))[s]=e[s]);return t},Pm=(e,t)=>{let s={};for(let i in e)(!Io(i)||!(i.slice(9)in t))&&(s[i]=e[i]);return s};function Dm(e,t,s){let{props:i,children:o,component:r}=e,{props:u,children:p,patchFlag:c}=t,v=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return i?ed(i,u,v):!!u;if(c&8){let h=t.dynamicProps;for(let y=0;yObject.create(Ad),Od=e=>Object.getPrototypeOf(e)===Ad;function Im(e,t,s,i=!1){let o={},r=Id();e.propsDefaults=Object.create(null),Md(e,t,o,r);for(let u in e.propsOptions[0])u in o||(o[u]=void 0);s?e.props=i?o:vs(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function Om(e,t,s,i){let{props:o,attrs:r,vnode:{patchFlag:u}}=e,p=Ye(o),[c]=e.propsOptions,v=!1;if((i||u>0)&&!(u&16)){if(u&8){let h=e.vnode.dynamicProps;for(let y=0;y{c=!0;let[g,k]=Vd(y,t,!0);ct(u,g),k&&p.push(...k)};!s&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}if(!r&&!c)return Je(e)&&i.set(e,Ln),Ln;if(Ne(r))for(let h=0;he==="_"||e==="_ctx"||e==="$stable",la=e=>Ne(e)?e.map(vn):[vn(e)],Vm=(e,t,s)=>{if(t._n)return t;let i=tm((...o)=>la(t(...o)),s);return i._c=!1,i},qd=(e,t,s)=>{let i=e._ctx;for(let o in e){if(aa(o))continue;let r=e[o];if(Ie(r))t[o]=Vm(o,r,i);else if(r!=null){let u=la(r);t[o]=()=>u}}},Ld=(e,t)=>{let s=la(t);e.slots.default=()=>s},_d=(e,t,s)=>{for(let i in t)(s||!aa(i))&&(e[i]=t[i])},qm=(e,t,s)=>{let i=e.slots=Id();if(e.vnode.shapeFlag&32){let o=t._;o?(_d(i,t,s),s&&fi(i,"_",o,!0)):qd(t,i)}else t&&Ld(e,t)},Lm=(e,t,s)=>{let{vnode:i,slots:o}=e,r=!0,u=xe;if(i.shapeFlag&32){let p=t._;p?s&&p===1?r=!1:_d(o,t,s):(r=!t.$stable,qd(t,o)),u=t}else t&&(Ld(e,t),u={default:1});if(r)for(let p in o)!aa(p)&&u[p]==null&&delete o[p]};function _m(){let e=[]}var qt=Bm;function $d(e){return $m(e)}function $m(e,t){_m();let s=ls();s.__VUE__=!0;let{insert:i,remove:o,patchProp:r,createElement:u,createText:p,createComment:c,setText:v,setElementText:h,parentNode:y,nextSibling:g,setScopeId:k=Mt,insertStaticContent:w}=e,S=(D,A,U,Z=null,W=null,ee=null,re=void 0,oe=null,ie=!!A.dynamicChildren)=>{if(D===A)return;D&&!bs(D,A)&&(Z=ce(D),ze(D,W,ee,!0),D=null),A.patchFlag===-2&&(ie=!1,A.dynamicChildren=null),A.dynamicChildren&&D&&D.dynamicChildren&&D.dynamicChildren.hasOnce&&(A.dynamicChildren===Ln&&(A.dynamicChildren=[]),A.dynamicChildren.hasOnce=!0);let{type:te,ref:we,shapeFlag:pe}=A;switch(te){case $i:N(D,A,U,Z);break;case sn:b(D,A,U,Z);break;case Es:D==null&&T(A,U,Z,re);break;case V:G(D,A,U,Z,W,ee,re,oe,ie);break;default:pe&1?se(D,A,U,Z,W,ee,re,oe,ie):pe&6?j(D,A,U,Z,W,ee,re,oe,ie):(pe&64||pe&128)&&te.process(D,A,U,Z,W,ee,re,oe,ie,he)}we!=null&&W?ks(we,D&&D.ref,ee,A||D,!A):we==null&&D&&D.ref!=null&&ks(D.ref,null,ee,D,!0)},N=(D,A,U,Z)=>{if(D==null)i(A.el=p(A.children),U,Z);else{let W=A.el=D.el;A.children!==D.children&&v(W,A.children)}},b=(D,A,U,Z)=>{D==null?i(A.el=c(A.children||""),U,Z):A.el=D.el},T=(D,A,U,Z)=>{[D.el,D.anchor]=w(D.children,A,U,Z,D.el,D.anchor)},O=(D,A,U,Z)=>{if(A.children!==D.children){let W=g(D.anchor);H(D),[A.el,A.anchor]=w(A.children,U,W,Z)}else A.el=D.el,A.anchor=D.anchor},F=({el:D,anchor:A},U,Z)=>{let W;for(;D&&D!==A;)W=g(D),i(D,U,Z),D=W;i(A,U,Z)},H=({el:D,anchor:A})=>{let U;for(;D&&D!==A;)U=g(D),o(D),D=U;o(A)},se=(D,A,U,Z,W,ee,re,oe,ie)=>{if(A.type==="svg"?re="svg":A.type==="math"&&(re="mathml"),D==null)_(A,U,Z,W,ee,re,oe,ie);else{let te=D.el&&D.el._isVueCE?D.el:null;try{te&&te._beginPatch(),q(D,A,W,ee,re,oe,ie)}finally{te&&te._endPatch()}}},_=(D,A,U,Z,W,ee,re,oe)=>{let ie,te,{props:we,shapeFlag:pe,transition:Ee,dirs:Te}=D;if(ie=D.el=u(D.type,ee,we&&we.is,we),pe&8?h(ie,D.children):pe&16&&I(D.children,ie,null,Z,W,Qr(D,ee),re,oe),Te&&oo(D,null,Z,"created"),z(ie,D,D.scopeId,re,Z),we){for(let We in we)We!=="value"&&!Oo(We)&&r(ie,We,null,we[We],ee,Z);"value"in we&&r(ie,"value",null,we.value,ee),(te=we.onVnodeBeforeMount)&&hn(te,Z,D)}Te&&oo(D,null,Z,"beforeMount");let Ve=Fm(W,Ee);Ve&&Ee.beforeEnter(ie),i(ie,A,U),((te=we&&we.onVnodeMounted)||Ve||Te)&&qt(()=>{let je;te&&hn(te,Z,D),Ve&&Ee.enter(ie),Te&&oo(D,null,Z,"mounted")},W)},z=(D,A,U,Z,W)=>{if(U&&k(D,U),Z)for(let ee=0;ee{for(let te=ie;te{let oe=A.el=D.el,{patchFlag:ie,dynamicChildren:te,dirs:we}=A;ie|=D.patchFlag&16;let pe=D.props||xe,Ee=A.props||xe,Te;if(U&&so(U,!1),(Te=Ee.onVnodeBeforeUpdate)&&hn(Te,U,A,D),we&&oo(A,D,U,"beforeUpdate"),U&&so(U,!0),te&&(!D.dynamicChildren||D.dynamicChildren.length!==te.length)&&(ie=0,re=!1,te=null),(pe.innerHTML&&Ee.innerHTML==null||pe.textContent&&Ee.textContent==null)&&h(oe,""),te?E(D.dynamicChildren,te,oe,U,Z,Qr(A,W),ee):re||me(D,A,oe,null,U,Z,Qr(A,W),ee,!1),ie>0){if(ie&16)L(oe,pe,Ee,U,W);else if(ie&2&&pe.class!==Ee.class&&r(oe,"class",null,Ee.class,W),ie&4&&r(oe,"style",pe.style,Ee.style,W),ie&8){let Ve=A.dynamicProps;for(let We=0;We{Te&&hn(Te,U,A,D),we&&oo(A,D,U,"updated")},Z)},E=(D,A,U,Z,W,ee,re)=>{for(let oe=0;oe{if(A!==U){if(A!==xe)for(let ee in A)!Oo(ee)&&!(ee in U)&&r(D,ee,A[ee],null,W,Z);for(let ee in U){if(Oo(ee))continue;let re=U[ee],oe=A[ee];re!==oe&&ee!=="value"&&r(D,ee,oe,re,W,Z)}"value"in U&&r(D,"value",A.value,U.value,W)}},G=(D,A,U,Z,W,ee,re,oe,ie)=>{let te=A.el=D?D.el:p(""),we=A.anchor=D?D.anchor:p(""),{patchFlag:pe,dynamicChildren:Ee,slotScopeIds:Te}=A;Te&&(oe=oe?oe.concat(Te):Te),D==null?(i(te,U,Z),i(we,U,Z),I(A.children||[],U,we,W,ee,re,oe,ie)):pe>0&&pe&64&&Ee&&D.dynamicChildren&&D.dynamicChildren.length===Ee.length?(E(D.dynamicChildren,Ee,U,W,ee,re,oe),(A.key!=null||W&&A===W.subTree)&&Fd(D,A,!0)):me(D,A,U,we,W,ee,re,oe,ie)},j=(D,A,U,Z,W,ee,re,oe,ie)=>{A.slotScopeIds=oe,D==null?A.shapeFlag&512?W.ctx.activate(A,U,Z,re,ie):Y(A,U,Z,W,ee,re,ie):ne(D,A,ie)},Y=(D,A,U,Z,W,ee,re)=>{let oe=D.component=Km(D,Z,W);if(qi(D)&&(oe.ctx.renderer=he),Ym(oe,!1,re),oe.asyncDep){if(W&&W.registerDep(oe,x,re,ee),!D.el){let ie=oe.subTree=Me(sn);b(null,ie,A,U),D.placeholder=ie.el}}else x(oe,D,A,U,W,ee,re)},ne=(D,A,U)=>{let Z=A.component=D.component;if(Dm(D,A,U))if(Z.asyncDep&&!Z.asyncResolved){A.el=D.el,A.placeholder=D.placeholder,fe(Z,A,U);return}else Z.next=A,Z.update();else A.el=D.el,A.placeholder=D.placeholder,Z.vnode=A},x=(D,A,U,Z,W,ee,re)=>{let oe=()=>{if(D.isMounted){let{next:pe,bu:Ee,u:Te,parent:Ve,vnode:We}=D;{let pt=Ud(D);if(pt){pe&&(pe.el=We.el,fe(D,pe,re)),pt.asyncDep.then(()=>{qt(()=>{D.isUnmounted||te()},W)});return}}let je=pe,ke;so(D,!1),pe?(pe.el=We.el,fe(D,pe,re)):pe=We,Ee&&Mo(Ee),(ke=pe.props&&pe.props.onVnodeBeforeUpdate)&&hn(ke,Ve,pe,We),so(D,!0);let Fe=Xr(D),st=D.subTree;D.subTree=Fe,S(st,Fe,y(st.el),ce(st),D,W,ee),pe.el=Fe.el,je===null&&Am(D,Fe.el),Te&&qt(Te,W),(ke=pe.props&&pe.props.onVnodeUpdated)&&qt(()=>hn(ke,Ve,pe,We),W)}else{let pe,{el:Ee,props:Te}=A,{bm:Ve,m:We,parent:je,root:ke,type:Fe}=D,st=Cs(A);if(so(D,!1),Ve&&Mo(Ve),!st&&(pe=Te&&Te.onVnodeBeforeMount)&&hn(pe,je,A),so(D,!0),Ee&&Oe){let pt=()=>{D.subTree=Xr(D),Oe(Ee,D.subTree,D,W,null)};st&&Fe.__asyncHydrate?Fe.__asyncHydrate(Ee,D,pt):pt()}else{ke.ce&&ke.ce._hasShadowRoot()&&ke.ce._injectChildStyle(Fe,D.parent?D.parent.type:void 0);let pt=D.subTree=Xr(D);S(null,pt,U,Z,D,W,ee),A.el=pt.el}if(We&&qt(We,W),!st&&(pe=Te&&Te.onVnodeMounted)){let pt=A;qt(()=>hn(pe,je,pt),W)}(A.shapeFlag&256||je&&Cs(je.vnode)&&je.vnode.shapeFlag&256)&&D.a&&qt(D.a,W),D.isMounted=!0,A=U=Z=null}};D.scope.on();let ie=D.effect=new Lo(oe);D.scope.off();let te=D.update=ie.run.bind(ie),we=D.job=ie.runIfDirty.bind(ie);we.i=D,we.id=D.uid,ie.scheduler=()=>sa(we),so(D,!0),te()},fe=(D,A,U)=>{A.component=D;let Z=D.vnode.props;D.vnode=A,D.next=null,Om(D,A.props,Z,U),Lm(D,A.children,U),tn(),ud(D),nn()},me=(D,A,U,Z,W,ee,re,oe,ie=!1)=>{let te=D&&D.children,we=D?D.shapeFlag:0,pe=A.children,{patchFlag:Ee,shapeFlag:Te}=A;if(Ee>0){if(Ee&128){Ue(te,pe,U,Z,W,ee,re,oe,ie);return}else if(Ee&256){qe(te,pe,U,Z,W,ee,re,oe,ie);return}}Te&8?(we&16&&J(te,W,ee),pe!==te&&h(U,pe)):we&16?Te&16?Ue(te,pe,U,Z,W,ee,re,oe,ie):J(te,W,ee,!0):(we&8&&h(U,""),Te&16&&I(pe,U,Z,W,ee,re,oe,ie))},qe=(D,A,U,Z,W,ee,re,oe,ie)=>{D=D||Ln,A=A||Ln;let te=D.length,we=A.length,pe=Math.min(te,we),Ee;for(Ee=0;Eewe?J(D,W,ee,!0,!1,pe):I(A,U,Z,W,ee,re,oe,ie,pe)},Ue=(D,A,U,Z,W,ee,re,oe,ie)=>{let te=0,we=A.length,pe=D.length-1,Ee=we-1;for(;te<=pe&&te<=Ee;){let Te=D[te],Ve=A[te]=ie?Pn(A[te]):vn(A[te]);if(bs(Te,Ve))S(Te,Ve,U,null,W,ee,re,oe,ie);else break;te++}for(;te<=pe&&te<=Ee;){let Te=D[pe],Ve=A[Ee]=ie?Pn(A[Ee]):vn(A[Ee]);if(bs(Te,Ve))S(Te,Ve,U,null,W,ee,re,oe,ie);else break;pe--,Ee--}if(te>pe){if(te<=Ee){let Te=Ee+1,Ve=TeEe)for(;te<=pe;)ze(D[te],W,ee,!0),te++;else{let Te=te,Ve=te,We=new Map;for(te=Ve;te<=Ee;te++){let it=A[te]=ie?Pn(A[te]):vn(A[te]);it.key!=null&&We.set(it.key,te)}let je,ke=0,Fe=Ee-Ve+1,st=!1,pt=0,Tt=new Array(Fe);for(te=0;te=Fe){ze(it,W,ee,!0);continue}let ft;if(it.key!=null)ft=We.get(it.key);else for(je=Ve;je<=Ee;je++)if(Tt[je-Ve]===0&&bs(it,A[je])){ft=je;break}ft===void 0?ze(it,W,ee,!0):(Tt[ft-Ve]=te+1,ft>=pt?pt=ft:st=!0,S(it,A[ft],U,null,W,ee,re,oe,ie),ke++)}let Pt=st?Um(Tt):Ln;for(je=Pt.length-1,te=Fe-1;te>=0;te--){let it=Ve+te,ft=A[it],$t=A[it+1],So=it+1{let{el:ee,type:re,transition:oe,children:ie,shapeFlag:te}=D;if(te&6){Xe(D.component.subTree,A,U,Z);return}if(te&128){D.suspense.move(A,U,Z);return}if(te&64){re.move(D,A,U,he);return}if(re===V){i(ee,A,U);for(let pe=0;peoe.enter(ee),W));else{let{leave:pe,delayLeave:Ee,afterLeave:Te}=oe,Ve=()=>{D.ctx.isUnmounted?o(ee):i(ee,A,U)},We=()=>{let je=ee._isLeaving||!!ee[Yr];ee._isLeaving&&ee[Yr](!0),oe.persisted&&!je?Ve():pe(ee,()=>{Ve(),Te&&Te()})};Ee?Ee(ee,Ve,We):We()}else i(ee,A,U)},ze=(D,A,U,Z=!1,W=!1)=>{let{type:ee,props:re,ref:oe,children:ie,dynamicChildren:te,shapeFlag:we,patchFlag:pe,dirs:Ee,cacheIndex:Te,memo:Ve}=D;if((pe===-2||te&&te.hasOnce)&&(W=!1),oe!=null&&(tn(),ks(oe,null,U,D,!0),nn()),Te!=null&&(!D.ctx||D.ctx===A)&&(A.renderCache[Te]=void 0),we&256){A.ctx.deactivate(D);return}let We=we&1&&Ee,je=!Cs(D),ke;if(je&&(ke=re&&re.onVnodeBeforeUnmount)&&hn(ke,A,D),we&6)Se(D.component,U,Z);else{if(we&128){D.suspense.unmount(U,Z);return}We&&oo(D,null,A,"beforeUnmount"),we&64?D.type.remove(D,A,U,he,Z):te&&!te.hasOnce&&(ee!==V||pe>0&&pe&64)?J(te,A,U,!1,!0):(ee===V&&pe&384||!W&&we&16)&&J(ie,A,U),Z&<(D)}let Fe=Ve!=null&&Te==null;(je&&(ke=re&&re.onVnodeUnmounted)||We||Fe)&&qt(()=>{ke&&hn(ke,A,D),We&&oo(D,null,A,"unmounted"),Fe&&(D.el=null)},U)},lt=D=>{let{type:A,el:U,anchor:Z,transition:W}=D,ee=A===V;if(ee&&!W){Re(U,Z);return}if(A===Es){H(D),W&&!W.persisted&&W.afterLeave&&W.afterLeave();return}let re=ee?Zr(D):D,oe=()=>{ee?y(U)&&Re(U,Z):o(U),W&&!W.persisted&&W.afterLeave&&W.afterLeave()};if(re&&re.shapeFlag&1&&W&&!W.persisted){let{leave:ie,delayLeave:te}=W,we=re.el,pe=()=>ie(we,oe);te?te(we,oe,pe):pe()}else oe()},Re=(D,A)=>{let U;for(;D!==A;)U=g(D),o(D),D=U;o(A)},Se=(D,A,U)=>{let{bum:Z,scope:W,job:ee,subTree:re,um:oe,m:ie,a:te}=D;nd(ie),nd(te),Z&&Mo(Z),W.stop(),ee?(ee.flags|=8,ze(re,D,A,U)):D.vnode.el&&re&&(re.transition=D.vnode.transition,ze(re,D,A,U)),oe&&qt(oe,A),qt(()=>{D.isUnmounted=!0},A)},J=(D,A,U,Z=!1,W=!1,ee=0)=>{for(let re=ee;re{if(D.shapeFlag&6)return ce(D.component.subTree);if(D.shapeFlag&128)return D.suspense.next();let A=g(D.anchor||D.el),U=A&&A[im];return U?g(U):A},ue=(D,A,U)=>{let Z=D&&A._vnode?void 0:D&&D.component?D.component.uid:Wm();em(()=>{D==null?A._vnode&&ze(A._vnode,null,null,!0):S(A._vnode||null,D,A,null,null,null,U),A._vnode=D},Z)},he={p:S,um:ze,m:Xe,r:lt,mt:Y,mc:I,pc:me,pbc:E,n:ce,o:e},be,Oe;return t&&([be,Oe]=t(he)),{render:ue,hydrate:be,createApp:Sm(ue,be)}}function Qr({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function so({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Fm(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Fd(e,t,s=!1){let i=e.children,o=t.children;if(Ne(i)&&Ne(o))for(let r=0;r>1,e[s[p]]0&&(t[i]=s[r-1]),s[r]=i)}}for(r=s.length,u=s[r-1];r-- >0;)s[r]=u,u=t[u];return s}function Ud(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ud(t)}function nd(e){if(e)for(let t=0;te.__isSuspense;function Bm(e,t){t&&t.pendingBranch?Ne(e)?t.effects.push(...e):t.effects.push(e):dd(e)}var V=Symbol.for("v-fgt"),$i=Symbol.for("v-txt"),sn=Symbol.for("v-cmt"),Es=Symbol.for("v-stc"),io=[],zt=null;function a(e=!1){io.push(zt=e?null:[])}function zd(){io.pop(),zt=io[io.length-1]||null}var Ts=1;function Ii(e,t=!1){Ts+=e,e<0&&zt&&t&&(zt.hasOnce=!0)}function Hd(e){return e.dynamicChildren=Ts>0?zt||Ln:null,zd(),Ts>0&&zt&&zt.push(e),e}function l(e,t,s,i,o,r){return Hd(n(e,t,s,i,o,r,!0))}function Xt(e,t,s,i,o){return Hd(Me(e,t,s,i,o,!0))}function Ps(e){return e?e.__v_isVNode===!0:!1}function bs(e,t){return e.type===t.type&&e.key===t.key}var jd=({key:e})=>e??null,Ri=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?at(e)||wt(e)||Ie(e)?{i:Bt,r:e,k:t,f:!!s}:e:null);function n(e,t=null,s=null,i=0,o=null,r=e===V?0:1,u=!1,p=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&jd(t),ref:t&&Ri(t),scopeId:fd,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:i,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Bt};return p?(Oi(c,s),r&128&&e.normalize(c)):s&&(c.shapeFlag|=at(s)?8:16),Ts>0&&!u&&zt&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&zt.push(c),c}var Me=zm;function zm(e,t=null,s=null,i=0,o=null,r=!1){if((!e||e===hm)&&(e=sn),Ps(e)){let p=Fo(e,t,!0);return s&&Oi(p,s),Ts>0&&!r&&zt&&(p.shapeFlag&6?zt[zt.indexOf(e)]=p:zt.push(p)),p.patchFlag=-2,p}if(xm(e)&&(e=e.__vccOpts),t){t=Hm(t);let{class:p,style:c}=t;p&&!at(p)&&(t.class=R(p)),Je(c)&&(ys(c)&&!Ne(c)&&(c=ct({},c)),t.style=Ae(c))}let u=at(e)?1:Bd(e)?128:Vi(e)?64:Je(e)?4:Ie(e)?2:0;return n(e,t,s,i,o,u,r,!0)}function Hm(e){return e?ys(e)||Od(e)?ct({},e):e:null}function Fo(e,t,s=!1,i=!1){let{props:o,ref:r,patchFlag:u,children:p,transition:c}=e,v=t?jm(o||{},t):o,h={__v_isVNode:!0,__v_skip:!0,type:e.type,props:v,key:v&&jd(v),ref:t&&t.ref?s&&r?Ne(r)?r.concat(Ri(t)):[r,Ri(t)]:Ri(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:p,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==V?u===-1?16:u|16:u,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Fo(e.ssContent),ssFallback:e.ssFallback&&Fo(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return c&&i&&Rs(h,c.clone(h)),h}function m(e=" ",t=0){return Me($i,null,e,t)}function Ce(e,t){let s=Me(Es,null,e);return s.staticCount=t,s}function f(e="",t=!1){return t?(a(),Xt(sn,null,e)):Me(sn,null,e)}function vn(e){return e==null||typeof e=="boolean"?Me(sn):Ne(e)?Me(V,null,e.slice()):Ps(e)?Pn(e):Me($i,null,String(e))}function Pn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Fo(e)}function Oi(e,t){let s=0,{shapeFlag:i}=e;if(t==null)t=null;else if(Ne(t))s=16;else if(typeof t=="object")if(i&65){let o=t.default;o&&(o._c&&(o._d=!1),Oi(e,o()),o._c&&(o._d=!0));return}else{s=32;let o=t._;!o&&!Od(t)?t._ctx=Bt:o===3&&Bt&&(Bt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(Ie(t)){if(i&65){Oi(e,{default:t});return}t={default:t,_ctx:Bt},s=32}else t=String(t),i&64?(s=16,t=[m(t)]):s=8;e.children=t,e.shapeFlag|=s}function jm(...e){let t={};for(let s=0;sSt||Bt,Mi,Ds;{let e=ls(),t=(s,i)=>{let o;return(o=e[s])||(o=e[s]=[]),o.push(i),r=>{o.length>1?o.forEach(u=>u(r)):o[0](r)}};Mi=t("__VUE_INSTANCE_SETTERS__",s=>St=s),Ds=t("__VUE_SSR_SETTERS__",s=>Uo=s)}var Vs=e=>{let t=St;return Mi(e),e.scope.on(),()=>{e.scope.off(),Mi(t)}},od=()=>{St&&St.scope.off(),Mi(null)};function Wd(e){return e.vnode.shapeFlag&4}var Uo=!1;function Ym(e,t=!1,s=!1){t&&Ds(t);let{props:i,children:o}=e.vnode,r=Wd(e);Im(e,i,r,t),qm(e,o,s||t);let u=r?Jm(e,t):void 0;return t&&Ds(!1),u}function Jm(e,t){let s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,gm);let{setup:i}=s;if(i){tn();let o=e.setupContext=i.length>1?Qm(e):null,r=Vs(e),u=As(i,e,0,[e.props,o]),p=Dr(u);if(nn(),r(),(p||e.sp)&&!Cs(e)&&ia(e),p){if(u.then(od,od),t)return u.then(c=>{Ds(!0);try{sd(e,c,t)}finally{Ds(!1)}}).catch(c=>{Is(c,e,0)});e.asyncDep=u}else sd(e,u,t)}else Kd(e,t)}function sd(e,t,s){Ie(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Je(t)&&(e.setupState=Ei(t)),Kd(e,s)}var id,rd;function Kd(e,t,s){let i=e.type;if(!e.render){if(!t&&id&&!i.render){let o=i.template||ra(e).template;if(o){let{isCustomElement:r,compilerOptions:u}=e.appContext.config,{delimiters:p,compilerOptions:c}=i,v=ct(ct({isCustomElement:r,delimiters:p},u),c);i.render=id(o,v)}}e.render=i.render||Mt,rd&&rd(e)}{let o=Vs(e);tn();try{vm(e)}finally{nn(),o()}}}var Xm={get(e,t){return kt(e,"get",""),e[t]}};function Qm(e){let t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Xm),slots:e.slots,emit:e.emit,expose:t}}function Fi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ei(mn(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Ss)return Ss[s](e)},has(t,s){return s in t||s in Ss}})):e.proxy}function Zm(e,t=!0){return Ie(e)?e.displayName||e.name:e.name||t&&e.__name}function xm(e){return Ie(e)&&"__vccOpts"in e}var Et=(e,t)=>Hl(e,t,Uo);function De(e,t,s){try{Ii(-1);let i=arguments.length;return i===2?Je(t)&&!Ne(t)?Ps(t)?Me(e,null,[t]):Me(e,t):Me(e,null,t):(i>3?s=Array.prototype.slice.call(arguments,2):i===3&&Ps(s)&&(s=[s]),Me(e,t,s))}finally{Ii(1)}}var eh="3.5.44";var fa,Yd=typeof window<"u"&&window.trustedTypes;if(Yd)try{fa=Yd.createPolicy("vue",{createHTML:e=>e})}catch{}var ru=fa?e=>fa.createHTML(e):e=>e,th="http://www.w3.org/2000/svg",nh="http://www.w3.org/1998/Math/MathML",An=typeof document<"u"?document:null,Jd=An&&An.createElement("template"),oh={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,i)=>{let o=t==="svg"?An.createElementNS(th,e):t==="mathml"?An.createElementNS(nh,e):s?An.createElement(e,{is:s}):An.createElement(e);return e==="select"&&i&&i.multiple!=null&&o.setAttribute("multiple",i.multiple),o},createText:e=>An.createTextNode(e),createComment:e=>An.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>An.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,i,o,r){let u=s?s.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),s),!(o===r||!(o=o.nextSibling)););else{Jd.innerHTML=ru(i==="svg"?`${e}`:i==="mathml"?`${e}`:e);let p=Jd.content;if(i==="svg"||i==="mathml"){let c=p.firstChild;for(;c.firstChild;)p.appendChild(c.firstChild);p.removeChild(c)}t.insertBefore(p,s)}return[u?u.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}};var sh=Symbol("_vtc");function ih(e,t,s){let i=e[sh];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}var zi=Symbol("_vod"),au=Symbol("_vsh"),Q={name:"show",beforeMount(e,{value:t},{transition:s}){e[zi]=e.style.display==="none"?"":e.style.display,s&&t?s.beforeEnter(e):qs(e,t)},mounted(e,{value:t},{transition:s}){s&&t&&s.enter(e)},updated(e,{value:t,oldValue:s},{transition:i}){!t!=!s&&(i?t?(i.beforeEnter(e),qs(e,!0),i.enter(e)):i.leave(e,()=>{qs(e,!1)}):qs(e,t))},beforeUnmount(e,{value:t}){qs(e,t)}};function qs(e,t){e.style.display=t?e[zi]:"none",e[au]=!t}var rh=Symbol("");var ah=/(?:^|;)\s*display\s*:/;function lh(e,t,s){let i=e.style,o=at(s),r=!1;if(s&&!o){if(t)if(at(t))for(let u of t.split(";")){let p=u.slice(0,u.indexOf(":")).trim();s[p]==null&&Ls(i,p,"")}else for(let u in t)s[u]==null&&Ls(i,u,"");for(let u in s){u==="display"&&(r=!0);let p=s[u];p!=null?uh(e,u,!at(t)&&t?t[u]:void 0,p)||Ls(i,u,p):Ls(i,u,"")}}else if(o){if(t!==s){let u=i[rh];u&&(s+=";"+u),i.cssText=s,r=ah.test(s)}}else t&&e.removeAttribute("style");zi in e&&((!o||t!==s)&&(e[zi]=r?i.display:""),e[au]&&(i.display="none"))}var Ui=/\s*!important$/;function Ls(e,t,s){if(Ne(s))s.forEach(i=>Ls(e,t,i));else if(s==null&&(s=""),t.startsWith("--"))Ui.test(s)?e.setProperty(t,s.replace(Ui,""),"important"):e.setProperty(t,s);else{let i=dh(e,t);Ui.test(s)?e.setProperty(dn(i),s.replace(Ui,""),"important"):e[i]=s}}var Xd=["Webkit","Moz","ms"],ua={};function dh(e,t){let s=ua[t];if(s)return s;let i=ht(t);if(i!=="filter"&&i in e)return ua[t]=i;i=xn(i);for(let o=0;oca||(gh.then(()=>ca=0),ca=Date.now());function yh(e,t){let s=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=s.attached)return;let o=s.value;if(Ne(o)){let r=i.stopImmediatePropagation;i.stopImmediatePropagation=()=>{r.call(i),i._stopped=!0};let u=o.slice(),p=[i];for(let c=0;ce.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,bh=(e,t,s,i,o,r)=>{let u=o==="svg";t==="class"?ih(e,i,u):t==="style"?lh(e,s,i):Ao(t)?Io(t)||ph(e,t,s,i,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):wh(e,t,i,u))?(xd(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Zd(e,t,i,u,r,t!=="value")):e._isVueCE&&(kh(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!at(i)))?xd(e,ht(t),i,r,t):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Zd(e,t,i,u))};function wh(e,t,s,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&tu(t)&&Ie(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){let o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return tu(t)&&at(s)?!1:t in e}function kh(e,t){let s=e._def.props;if(!s)return!1;let i=ht(t);return Array.isArray(s)?s.some(o=>ht(o)===i):Object.keys(s).some(o=>ht(o)===i)}var Bo=e=>{let t=e.props["onUpdate:modelValue"]||!1;return Ne(t)?s=>Mo(t,s):t};function Ch(e){e.target.composing=!0}function nu(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}var bn=Symbol("_assign"),Bi=Symbol("_initialValue");function pa(e,t,s){return t&&(e=e.trim()),s&&(e=Vo(e)),e}var nt={created(e,{modifiers:{lazy:t,trim:s,number:i}},o){e.parentNode&&(e.type==="text"?e[Bi]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Bi]=e.defaultValue.replace(/\r\n?/g,` +`))),e[bn]=Bo(o);let r=i||o.props&&o.props.type==="number";$n(e,t?"change":"input",u=>{u.target.composing||e[bn](pa(e.value,s,r))}),(s||r)&&$n(e,"change",()=>{e.value=pa(e.value,s,r)}),t||($n(e,"compositionstart",Ch),$n(e,"compositionend",nu),$n(e,"change",nu))},mounted(e,{value:t,modifiers:{trim:s,number:i}}){let o=t??"",r=e[Bi];delete e[Bi],r!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==r?e[bn](pa(e.value,s,i)):e.value=o},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:i,trim:o,number:r}},u){if(e[bn]=Bo(u),e.composing)return;let p=(r||e.type==="number")&&!/^0\d/.test(e.value)?Vo(e.value):e.value,c=t??"";if(p===c)return;let v=e.getRootNode();(v instanceof Document||v instanceof ShadowRoot)&&v.activeElement===e&&e.type!=="range"&&(i&&t===s||o&&e.value.trim()===c)||(e.value=c)}},ma={deep:!0,created(e,t,s){e[bn]=Bo(s),$n(e,"change",()=>{let i=e._modelValue,o=_s(e),r=e.checked,u=e[bn];if(Ne(i)){let p=hi(i,o),c=p!==-1;if(r&&!c)u(i.concat(o));else if(!r&&c){let v=[...i];v.splice(p,1),u(v)}}else if(Zt(i)){let p=new Set(i);r?p.add(o):p.delete(o),u(p)}else u(lu(e,r))})},mounted:ou,beforeUpdate(e,t,s){e[bn]=Bo(s),ou(e,t,s)}};function ou(e,{value:t,oldValue:s},i){e._modelValue=t;let o;if(Ne(t))o=hi(t,i.props.value)>-1;else if(Zt(t))o=t.has(i.props.value);else{if(t===s)return;o=xt(t,lu(e,!0))}e.checked!==o&&(e.checked=o)}var Nt={deep:!0,created(e,{value:t,modifiers:{number:s}},i){e._modelValue=t,$n(e,"change",()=>{let o=Array.prototype.filter.call(e.options,c=>c.selected).map(c=>s?Vo(_s(c)):_s(c)),r=e.multiple,u=r?Zt(e._modelValue)?new Set(o):o:o[0],p=e._pendingValue=[r,r?Ne(u)?o.slice():o:u];try{e[bn](u)}finally{Ge(()=>{e._pendingValue===p&&(e._pendingValue=void 0)})}}),e[bn]=Bo(i)},mounted(e,{value:t}){su(e,t)},beforeUpdate(e,{value:t},s){e._modelValue=t,e[bn]=Bo(s)},updated(e,{value:t}){let s=e._pendingValue;e._pendingValue=void 0,(!s||s[0]!==e.multiple||!Sh(t,s[1],s[0]))&&su(e,t)}};function Sh(e,t,s){if(!s)return xt(e,t);if(Ne(e))return xt(e,t);if(Zt(e)){if(e.size!==t.length)return!1;for(let i of t)if(!e.has(i))return!1;return!0}return!1}function su(e,t){let s=e.multiple,i=Ne(t);if(!(s&&!i&&!Zt(t))){for(let o=0,r=e.options.length;oString(v)===String(p)):u.selected=hi(t,p)>-1}else u.selected=t.has(p);else if(xt(_s(u),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function _s(e){return"_value"in e?e._value:e.value}function lu(e,t){let s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}var Eh=["ctrl","shift","alt","meta"],Nh={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Eh.some(s=>e[`${s}Key`]&&!t.includes(s))},de=(e,t)=>{if(!e)return e;let s=e._withMods||(e._withMods={}),i=t.join(".");return s[i]||(s[i]=((o,...r)=>{for(let u=0;u{let s=e._withKeys||(e._withKeys={}),i=t.join(".");return s[i]||(s[i]=(o=>{if(!("key"in o))return;let r=dn(o.key);if(t.some(u=>u===r||Rh[u]===r))return e(o)}))},Th=ct({patchProp:bh},oh),iu;function Ph(){return iu||(iu=$d(Th))}var du=((...e)=>{let t=Ph().createApp(...e),{mount:s}=t;return t.mount=i=>{let o=Ah(i);if(!o)return;let r=t._component;!Ie(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");let u=s(o,!1,Dh(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),u},t});function Dh(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ah(e){return at(e)?document.querySelector(e):e}var co=typeof document<"u";function cu(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ih(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&cu(e.default)}var Ze=Object.assign;function Hi(e,t){let s={};for(let i in t){let o=t[i];s[i]=Qt(o)?o.map(e):e(o)}return s}var Ho=()=>{},Qt=Array.isArray;function va(e,t){let s={};for(let i in e)s[i]=i in t?t[i]:e[i];return s}var pu=/#/g,Oh=/&/g,Mh=/\//g,Vh=/=/g,qh=/\?/g,fu=/\+/g,Lh=/%5B/g,_h=/%5D/g,mu=/%5E/g,$h=/%60/g,hu=/%7B/g,Fh=/%7C/g,gu=/%7D/g,Uh=/%20/g;function ya(e){return e==null?"":encodeURI(""+e).replace(Fh,"|").replace(Lh,"[").replace(_h,"]")}function vu(e){return ya(e).replace(hu,"{").replace(gu,"}").replace(mu,"^")}function ha(e){return ya(e).replace(fu,"%2B").replace(Uh,"+").replace(pu,"%23").replace(Oh,"%26").replace($h,"`").replace(hu,"{").replace(gu,"}").replace(mu,"^")}function Bh(e){return ha(e).replace(Vh,"%3D")}function zh(e){return ya(e).replace(pu,"%23").replace(qh,"%3F")}function yu(e){return zh(e).replace(Mh,"%2F")}function zo(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}var Hh=/\/$/,jh=e=>e.replace(Hh,"");function ji(e,t,s="/"){let i,o={},r="",u="",p=t.indexOf("#"),c=t.indexOf("?");return c=p>=0&&c>p?-1:c,c>=0&&(i=t.slice(0,c),r=t.slice(c,p>0?p:t.length),o=e(r.slice(1))),p>=0&&(i=i||t.slice(0,p),u=t.slice(p,t.length)),i=Wh(i??t,s),{fullPath:i+r+u,path:i,query:o,hash:zo(u)}}function bu(e,t){let s=t.query?e(t.query):"";return t.path+(s&&"?")+s+(t.hash||"")}function ba(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function wu(e,t,s){let i=t.matched.length-1,o=s.matched.length-1;return i>-1&&i===o&&lo(t.matched[i],s.matched[o])&&wa(t.params,s.params)&&e(t.query)===e(s.query)&&t.hash===s.hash}function lo(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function wa(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var s in e)if(!Gh(e[s],t[s]))return!1;return!0}function Gh(e,t){return Qt(e)?uu(e,t):Qt(t)?uu(t,e):e?.valueOf()===t?.valueOf()}function uu(e,t){return Qt(t)?e.length===t.length&&e.every((s,i)=>s===t[i]):e.length===1&&e[0]===t}function Wh(e,t){if(e.startsWith("/"))return e;if(!e)return t;let s=t.split("/"),i=e.split("/"),o=i[i.length-1];(o===".."||o===".")&&i.push("");let r=s.length-1,u,p;for(u=0;u1&&r--;else break;return s.slice(0,r).join("/")+"/"+i.slice(u).join("/")}var On={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Gi=(function(e){return e.pop="pop",e.push="push",e})({}),Wi=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function ku(e){if(!e)if(co){let t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),jh(e)}var Kh=/^[^#]+#/;function Cu(e,t){return e.replace(Kh,"#")+t}function Yh(e,t){let s=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-s.left-(t.left||0),top:i.top-s.top-(t.top||0)}}var $s=()=>({left:window.scrollX,top:window.scrollY});function Su(e){let t;if("el"in e){let s=e.el,i=typeof s=="string"&&s.startsWith("#"),o=typeof s=="string"?i?document.getElementById(s.slice(1)):document.querySelector(s):s;if(!o)return;t=Yh(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function ka(e,t){return(history.state?history.state.position-t:-1)+e}var ga=new Map;function Eu(e,t){ga.set(e,t)}function Nu(e){let t=ga.get(e);return ga.delete(e),t}function Jh(e){return typeof e=="string"||e&&typeof e=="object"}function Ca(e){return typeof e=="string"||typeof e=="symbol"}var ut=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({}),Ru=Symbol("");var Fne={[ut.MATCHER_NOT_FOUND]({location:e,currentLocation:t}){return`No match for ${JSON.stringify(e)}${t?` while being at -`+JSON.stringify(t):""}`},[ut.NAVIGATION_GUARD_REDIRECT]({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${Qh(t)}" via a navigation guard.`},[ut.NAVIGATION_ABORTED]({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},[ut.NAVIGATION_CANCELLED]({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},[ut.NAVIGATION_DUPLICATED]({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function uo(e,t){return Ze(new Error,{type:e,[Nu]:!0},t)}function wn(e,t){return e instanceof Error&&Nu in e&&(t==null||!!(e.type&t))}var Xh=["params","query","hash"];function Qh(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;let t={};for(let s of Xh)s in e&&(t[s]=e[s]);return JSON.stringify(t,null,2)}function Ru(e){let t={};if(e===""||e==="?")return t;let s=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;io&&ha(o)):[i&&ha(i)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+s,o!=null&&(t+="="+o))})}return t}function Tu(e){let t={};for(let s in e){let i=e[s];i!==void 0&&(t[s]=Xt(i)?i.map(o=>o==null?null:""+o):i==null?i:""+i)}return t}var Pu=Symbol(""),Ea=Symbol(""),Ki=Symbol(""),Yi=Symbol(""),Ji=Symbol("");function jo(){let e=[];function t(i){return e.push(i),()=>{let o=e.indexOf(i);o>-1&&e.splice(o,1)}}function s(){e=[]}return{add:t,list:()=>e.slice(),reset:s}}function Dn(e,t,s,i,o,r=u=>u()){let u=i&&(i.enterCallbacks[o]=i.enterCallbacks[o]||[]);return()=>new Promise((p,c)=>{let v=g=>{g===!1?c(uo(ut.NAVIGATION_ABORTED,{from:s,to:t})):g instanceof Error?c(g):Jh(g)?c(uo(ut.NAVIGATION_GUARD_REDIRECT,{from:t,to:g})):(u&&i.enterCallbacks[o]===u&&typeof g=="function"&&u.push(g),p())},h=r(()=>e.call(i&&i.instances[o],t,s,v)),y=Promise.resolve(h);e.length<3&&(y=y.then(v)),y.catch(g=>c(g))})}function Xi(e,t,s,i,o=r=>r()){let r=[];for(let u of e)for(let p in u.components){let c=u.components[p];if(!(t!=="beforeRouteEnter"&&!u.instances[p]))if(uu(c)){let v=(c.__vccOpts||c)[t];v&&r.push(Dn(v,s,i,u,p,o))}else{let v=c();r.push(()=>v.then(h=>{if(!h)throw new Error(`Couldn't resolve component "${p}" at "${u.path}"`);let y=Ih(h)?h.default:h;u.mods[p]=h,u.components[p]=y;let g=(y.__vccOpts||y)[t];return g&&Dn(g,s,i,u,p,o)()}))}}return r}function Du(e,t){let s=[],i=[],o=[],r=Math.max(t.matched.length,e.matched.length);for(let u=0;ulo(v,p))?i.push(p):s.push(p));let c=e.matched[u];c&&(t.matched.find(v=>lo(v,c))||o.push(c))}return[s,i,o]}var Zh=()=>location.protocol+"//"+location.host;function Uu(e,t){let{pathname:s,search:i,hash:o}=t,r=e.indexOf("#");if(r>-1){let u=o.includes(e.slice(r))?e.slice(r).length:1,p=o.slice(u);return p[0]!=="/"&&(p="/"+p),ba(p,"")}return ba(s,e)+i+o}function xh(e,t,s,i){let o=[],r=[],u=null,p=({state:g})=>{let k=Uu(e,location),w=s.value,S=t.value,N=0;if(g){if(s.value=k,t.value=g,u&&u===w){u=null;return}N=S?g.position-S.position:0}else i(k);o.forEach(b=>{b(s.value,w,{delta:N,type:Gi.pop,direction:N?N>0?Wi.forward:Wi.back:Wi.unknown})})};function c(){u=s.value}function v(g){o.push(g);let k=()=>{let w=o.indexOf(g);w>-1&&o.splice(w,1)};return r.push(k),k}function h(){if(document.visibilityState==="hidden"){let{history:g}=window;if(!g.state)return;g.replaceState(Ze({},g.state,{scroll:$s()}),"")}}function y(){for(let g of r)g();r=[],window.removeEventListener("popstate",p),window.removeEventListener("pagehide",h),document.removeEventListener("visibilitychange",h)}return window.addEventListener("popstate",p),window.addEventListener("pagehide",h),document.addEventListener("visibilitychange",h),{pauseListeners:c,listen:v,destroy:y}}function Au(e,t,s,i=!1,o=!1){return{back:e,current:t,forward:s,replaced:i,position:window.history.length,scroll:o?$s():null}}function eg(e){let{history:t,location:s}=window,i={value:Uu(e,s)},o={value:t.state};o.value||r(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(c,v,h){let y=e.indexOf("#"),g=y>-1?(s.host&&document.querySelector("base")?e:e.slice(y))+c:Zh()+e+c;try{t[h?"replaceState":"pushState"](v,"",g),o.value=v}catch(k){console.error(k),s[h?"replace":"assign"](g)}}function u(c,v){r(c,Ze({},t.state,Au(o.value.back,c,o.value.forward,!0),v,{position:o.value.position}),!0),i.value=c}function p(c,v){let h=Ze({},o.value,t.state,{forward:c,scroll:$s()});r(h.current,h,!0),r(c,Ze({},Au(i.value,c,null),{position:h.position+1},v),!1),i.value=c}return{location:i,state:o,push:p,replace:u}}function Bu(e){e=wu(e);let t=eg(e),s=xh(e,t.state,t.location,t.replace);function i(r,u=!0){u||s.pauseListeners(),history.go(r)}let o=Ze({location:"",base:e,go:i,createHref:ku.bind(null,e)},t,s);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}var po=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({}),vt=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(vt||{}),tg={type:po.Static,value:""},ng=/[a-zA-Z0-9_]/;function og(e){if(!e)return[[]];if(e==="/")return[[tg]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(k){throw new Error(`ERR (${s})/"${v}": ${k}`)}let s=vt.Static,i=s,o=[],r;function u(){r&&o.push(r),r=[]}let p=0,c,v="",h="";function y(){v&&(s===vt.Static?r.push({type:po.Static,value:v}):s===vt.Param||s===vt.ParamRegExp||s===vt.ParamRegExpEnd?(r.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${v}) must be alone in its segment. eg: '/:ids+.`),r.push({type:po.Param,value:v,regexp:h,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),v="")}function g(){v+=c}for(;pt.length?t.length===1&&t[0]===It.Static+It.Segment?1:-1:0}function zu(e,t){let s=0,i=e.score,o=t.score;for(;s0&&t[t.length-1]<0}var lg={strict:!1,end:!0,sensitive:!1};function dg(e,t,s){let i=rg(og(e.path),s),o=Ze(i,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function ug(e,t){let s=[],i=new Map;t=va(lg,t);function o(y){return i.get(y)}function r(y,g,k){let w=!k,S=Vu(y);S.aliasOf=k&&k.record;let N=va(t,y),b=[S];if("alias"in y){let F=typeof y.alias=="string"?[y.alias]:y.alias;for(let H of F)b.push(Vu(Ze({},S,{components:k?k.record.components:S.components,path:H,aliasOf:k?k.record:S})))}let T,O;for(let F of b){let{path:H}=F;if(g&&H[0]!=="/"){let se=g.record.path,_=se[se.length-1]==="/"?"":"/";F.path=g.record.path+(H&&_+H)}if(T=dg(F,g,N),k?k.alias.push(T):(O=O||T,O!==T&&O.alias.push(T),w&&y.name&&!qu(T)&&u(y.name)),Hu(T)&&c(T),S.children){let se=S.children;for(let _=0;_{u(O)}:Ho}function u(y){if(Ca(y)){let g=i.get(y);g&&(i.delete(y),s.splice(s.indexOf(g),1),g.children.forEach(u),g.alias.forEach(u))}else{let g=s.indexOf(y);g>-1&&(s.splice(g,1),y.record.name&&i.delete(y.record.name),y.children.forEach(u),y.alias.forEach(u))}}function p(){return s}function c(y){let g=fg(y,s);s.splice(g,0,y),y.record.name&&!qu(y)&&i.set(y.record.name,y)}function v(y,g){let k,w={},S,N;if("name"in y&&y.name){if(k=i.get(y.name),!k)throw uo(ut.MATCHER_NOT_FOUND,{location:y});N=k.record.name,w=Ze(Mu(g.params,k.keys.filter(O=>!O.optional).concat(k.parent?k.parent.keys.filter(O=>O.optional):[]).map(O=>O.name)),y.params&&Mu(y.params,k.keys.map(O=>O.name))),S=k.stringify(w)}else if(y.path!=null)S=y.path,k=s.find(O=>O.re.test(S)),k&&(w=k.parse(S),N=k.record.name);else{if(k=g.name?i.get(g.name):s.find(O=>O.re.test(g.path)),!k)throw uo(ut.MATCHER_NOT_FOUND,{location:y,currentLocation:g});N=k.record.name,w=Ze({},g.params,y.params),S=k.stringify(w)}let b=[],T=k;for(;T;)b.unshift(T.record),T=T.parent;return{name:N,path:S,params:w,matched:b,meta:pg(b)}}e.forEach(y=>r(y));function h(){s.length=0,i.clear()}return{addRoute:r,resolve:v,removeRoute:u,clearRoutes:h,getRoutes:p,getRecordMatcher:o}}function Mu(e,t){let s={};for(let i of t)i in e&&(s[i]=e[i]);return s}function Vu(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:cg(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function cg(e){let t={},s=e.props||!1;if("component"in e)t.default=s;else for(let i in e.components)t[i]=typeof s=="object"?s[i]:s;return t}function qu(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function pg(e){return e.reduce((t,s)=>Ze(t,s.meta),{})}function fg(e,t){let s=0,i=t.length;for(;s!==i;){let r=s+i>>1;zu(e,t[r])<0?i=r:s=r+1}let o=mg(e);return o&&(i=t.lastIndexOf(o,i-1)),i}function mg(e){let t=e;for(;t=t.parent;)if(Hu(t)&&zu(e,t)===0)return t}function Hu({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Lu(e){let t=Lt(Ki),s=Lt(Yi),i=!1,o=null,r=Et(()=>{let h=Nn(e.to);return t.resolve(h)}),u=Et(()=>{let{matched:h}=r.value,{length:y}=h,g=h[y-1],k=s.matched;if(!g||!k.length)return-1;let w=k.findIndex(lo.bind(null,g));if(w>-1)return w;let S=_u(h[y-2]);return y>1&&_u(g)===S&&k[k.length-1].path!==S?k.findIndex(lo.bind(null,h[y-2])):w}),p=Et(()=>u.value>-1&&bg(s.params,r.value.params)),c=Et(()=>u.value>-1&&u.value===s.matched.length-1&&wa(s.params,r.value.params));function v(h={}){if(yg(h)){let y=t[Nn(e.replace)?"replace":"push"](Nn(e.to)).catch(Ho);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>y),y}return Promise.resolve()}return{route:r,href:Et(()=>r.value.href),isActive:p,isExactActive:c,navigate:v}}function hg(e){return e.length===1?e[0]:e}var gg=Os({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Lu,setup(e,{slots:t}){let s=rt(Lu(e)),{options:i}=Lt(Ki),o=Et(()=>({[$u(e.activeClass,i.linkActiveClass,"router-link-active")]:s.isActive,[$u(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:s.isExactActive}));return()=>{let r=t.default&&hg(t.default(s));return e.custom?r:De("a",{"aria-current":s.isExactActive?e.ariaCurrentValue:null,href:s.href,onClick:s.navigate,class:o.value},r)}}}),vg=gg;function yg(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function bg(e,t){for(let s in t){let i=t[s],o=e[s];if(typeof i=="string"){if(i!==o)return!1}else if(!Xt(o)||o.length!==i.length||i.some((r,u)=>r.valueOf()!==o[u].valueOf()))return!1}return!0}function _u(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}var $u=(e,t,s)=>e??t??s,wg=Os({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:s}){let i=Lt(Ji),o=Et(()=>e.route||i.value),r=Lt(Ea,0),u=Et(()=>{let v=Nn(r),{matched:h}=o.value,y;for(;(y=h[v])&&!y.components;)v++;return v}),p=Et(()=>o.value.matched[u.value]);ro(Ea,Et(()=>u.value+1)),ro(Pu,p),ro(Ji,o);let c=Ct();return dt(()=>[c.value,p.value,e.name],([v,h,y],[g,k,w])=>{h&&(h.instances[y]=v,k&&k!==h&&v&&v===g&&(h.leaveGuards.size||(h.leaveGuards=k.leaveGuards),h.updateGuards.size||(h.updateGuards=k.updateGuards))),v&&h&&(!k||!lo(h,k)||!g)&&(h.enterCallbacks[y]||[]).forEach(S=>S(v))},{flush:"post"}),()=>{let v=o.value,h=e.name,y=p.value,g=y&&y.components[h];if(!g)return Fu(s.default,{Component:g,route:v});let k=y.props[h],w=k?k===!0?v.params:typeof k=="function"?k(v):k:null,N=De(g,Ze({},w,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(y.instances[h]=null)},ref:c}));return Fu(s.default,{Component:N,route:v})||N}}});function Fu(e,t){if(!e)return null;let s=e(t);return s.length===1?s[0]:s}var Na=wg;function ju(e){let t=ug(e.routes,e),s=e.parseQuery||Ru,i=e.stringifyQuery||Sa,o=e.history,r=jo(),u=jo(),p=jo(),c=Si(An),v=An;co&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");let h=Hi.bind(null,J=>""+J),y=Hi.bind(null,vu),g=Hi.bind(null,zo);function k(J,ce){let ue,he;return Ca(J)?(ue=t.getRecordMatcher(J),he=ce):he=J,t.addRoute(he,ue)}function w(J){let ce=t.getRecordMatcher(J);ce&&t.removeRoute(ce)}function S(){return t.getRoutes().map(J=>J.record)}function N(J){return!!t.getRecordMatcher(J)}function b(J,ce){if(ce=Ze({},ce||c.value),typeof J=="string"){let A=ji(s,J,ce.path),U=t.resolve({path:A.path},ce),Z=o.createHref(A.fullPath);return Ze(A,U,{params:g(U.params),hash:zo(A.hash),redirectedFrom:void 0,href:Z})}let ue;if(J.path!=null)ue=Ze({},J,{path:ji(s,J.path,ce.path).path});else{let A=Ze({},J.params);for(let U in A)A[U]==null&&delete A[U];ue=Ze({},J,{params:y(A)}),ce.params=y(ce.params)}let he=t.resolve(ue,ce),be=J.hash||"";he.params=h(g(he.params));let Oe=yu(i,Ze({},J,{hash:gu(be),path:he.path})),D=o.createHref(Oe);return Ze({fullPath:Oe,hash:be,query:i===Sa?Tu(J.query):J.query||{}},he,{redirectedFrom:void 0,href:D})}function T(J){return typeof J=="string"?ji(s,J,c.value.path):Ze({},J)}function O(J,ce){if(v!==J)return uo(ut.NAVIGATION_CANCELLED,{from:ce,to:J})}function F(J){return _(J)}function H(J){return F(Ze(T(J),{replace:!0}))}function se(J,ce){let ue=J.matched[J.matched.length-1];if(ue&&ue.redirect){let{redirect:he}=ue,be=typeof he=="function"?he(J,ce):he;return typeof be=="string"&&(be=be.includes("?")||be.includes("#")?be=T(be):{path:be},be.params={}),Ze({query:J.query,hash:J.hash,params:be.path!=null?{}:J.params},be)}}function _(J,ce){let ue=v=b(J),he=c.value,be=J.state,Oe=J.force,D=J.replace===!0,A=se(ue,he);if(A)return _(Ze(T(A),{state:typeof A=="object"?Ze({},be,A.state):be,force:Oe,replace:D}),ce||ue);let U=ue;U.redirectedFrom=ce;let Z;return!Oe&&bu(i,he,ue)&&(Z=uo(ut.NAVIGATION_DUPLICATED,{to:U,from:he}),Ue(he,he,!0,!1)),(Z?Promise.resolve(Z):q(U,he)).catch(W=>wn(W)?wn(W,ut.NAVIGATION_GUARD_REDIRECT)?W:qe(W):fe(W,U,he)).then(W=>{if(W){if(wn(W,ut.NAVIGATION_GUARD_REDIRECT))return _(Ze({replace:D},T(W.to),{state:typeof W.to=="object"?Ze({},be,W.to.state):be,force:Oe}),ce||U)}else W=L(U,he,!0,D,be);return E(U,he,W),W})}function z(J,ce){let ue=O(J,ce);return ue?Promise.reject(ue):Promise.resolve()}function I(J){let ce=lt.values().next().value;return ce&&typeof ce.runWithContext=="function"?ce.runWithContext(J):J()}function q(J,ce){let ue,[he,be,Oe]=Du(J,ce);ue=Xi(he.reverse(),"beforeRouteLeave",J,ce);for(let A of he)A.leaveGuards.forEach(U=>{ue.push(Dn(U,J,ce))});let D=z.bind(null,J,ce);return ue.push(D),Se(ue).then(()=>{ue=[];for(let A of r.list())ue.push(Dn(A,J,ce));return ue.push(D),Se(ue)}).then(()=>{ue=Xi(be,"beforeRouteUpdate",J,ce);for(let A of be)A.updateGuards.forEach(U=>{ue.push(Dn(U,J,ce))});return ue.push(D),Se(ue)}).then(()=>{ue=[];for(let A of Oe)if(A.beforeEnter)if(Xt(A.beforeEnter))for(let U of A.beforeEnter)ue.push(Dn(U,J,ce));else ue.push(Dn(A.beforeEnter,J,ce));return ue.push(D),Se(ue)}).then(()=>(J.matched.forEach(A=>A.enterCallbacks={}),ue=Xi(Oe,"beforeRouteEnter",J,ce,I),ue.push(D),Se(ue))).then(()=>{ue=[];for(let A of u.list())ue.push(Dn(A,J,ce));return ue.push(D),Se(ue)}).catch(A=>wn(A,ut.NAVIGATION_CANCELLED)?A:Promise.reject(A))}function E(J,ce,ue){p.list().forEach(he=>I(()=>he(J,ce,ue)))}function L(J,ce,ue,he,be){let Oe=O(J,ce);if(Oe)return Oe;let D=ce===An,A=co?history.state:{};ue&&(he||D?o.replace(J.fullPath,Ze({scroll:D&&A&&A.scroll},be)):o.push(J.fullPath,be)),c.value=J,Ue(J,ce,ue,D),qe()}let G;function j(){G||(G=o.listen((J,ce,ue)=>{if(!Re.listening)return;let he=b(J),be=se(he,Re.currentRoute.value);if(be){_(Ze(be,{replace:!0,force:!0}),he).catch(Ho);return}v=he;let Oe=c.value;co&&Su(ka(Oe.fullPath,ue.delta),$s()),q(he,Oe).catch(D=>wn(D,ut.NAVIGATION_ABORTED|ut.NAVIGATION_CANCELLED)?D:wn(D,ut.NAVIGATION_GUARD_REDIRECT)?(_(Ze(T(D.to),{force:!0}),he).then(A=>{wn(A,ut.NAVIGATION_ABORTED|ut.NAVIGATION_DUPLICATED)&&!ue.delta&&ue.type===Gi.pop&&o.go(-1,!1)}).catch(Ho),Promise.reject()):(ue.delta&&o.go(-ue.delta,!1),fe(D,he,Oe))).then(D=>{D=D||L(he,Oe,!1),D&&(ue.delta&&!wn(D,ut.NAVIGATION_CANCELLED)?o.go(-ue.delta,!1):ue.type===Gi.pop&&wn(D,ut.NAVIGATION_ABORTED|ut.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),E(he,Oe,D)}).catch(Ho)}))}let Y=jo(),ne=jo(),x;function fe(J,ce,ue){qe(J);let he=ne.list();return he.length?he.forEach(be=>be(J,ce,ue)):console.error(J),Promise.reject(J)}function me(){return x&&c.value!==An?Promise.resolve():new Promise((J,ce)=>{Y.add([J,ce])})}function qe(J){return x||(x=!J,j(),Y.list().forEach(([ce,ue])=>J?ue(J):ce()),Y.reset()),J}function Ue(J,ce,ue,he){let{scrollBehavior:be}=e;if(!co||!be)return Promise.resolve();let Oe=!ue&&Eu(ka(J.fullPath,0))||(he||!ue)&&history.state&&history.state.scroll||null;return Ge().then(()=>be(J,ce,Oe)).then(D=>D&&Cu(D)).catch(D=>fe(D,J,ce))}let Xe=J=>o.go(J),ze,lt=new Set,Re={currentRoute:c,listening:!0,addRoute:k,removeRoute:w,clearRoutes:t.clearRoutes,hasRoute:N,getRoutes:S,resolve:b,options:e,push:F,replace:H,go:Xe,back:()=>Xe(-1),forward:()=>Xe(1),beforeEach:r.add,beforeResolve:u.add,afterEach:p.add,onError:ne.add,isReady:me,install(J){J.component("RouterLink",vg),J.component("RouterView",Na),J.config.globalProperties.$router=Re,Object.defineProperty(J.config.globalProperties,"$route",{enumerable:!0,get:()=>Nn(c)}),co&&!ze&&c.value===An&&(ze=!0,F(o.location).catch(he=>{}));let ce={};for(let he in An)Object.defineProperty(ce,he,{get:()=>c.value[he],enumerable:!0});J.provide(Ki,Re),J.provide(Yi,vs(ce)),J.provide(Ji,c);let ue=J.unmount;lt.add(J),J.unmount=function(){lt.delete(J),lt.size<1&&(v=An,G&&G(),G=null,c.value=An,ze=!1,x=!1),ue()}}};function Se(J){return J.reduce((ce,ue)=>ce.then(()=>I(ue)),Promise.resolve())}return Re}function Gu(e){return Lt(Yi)}function Zi(e){return["author_pass","repo_extend","repo_never","repo_slot","repo_pack"].includes(e)}var Qi=new WeakMap;function xi(e){if(!Qi.has(e)){let t=e.get("/api/billing/").finally(()=>Qi.delete(e));Qi.set(e,t)}return Qi.get(e)}function er(e,t,s=()=>{},i={}){let o=new URLSearchParams(window.location.search).get("billing");e.billing=null,e.billingLoading=!0,e.billingBusy=!1,e.billingError="",e.billingNotice="",e.billingPending=o==="success",e.billingRepository="";let r={billing_invalid_draft:"This draft could not be saved. Your form is unchanged. Try again.",billing_draft_not_found:"This checkout draft is unavailable or expired. Your local form is unchanged.",billing_recovery_required:"Your earlier payment needs verification. Please contact support before paying again.",billing_checkout_disabled:"New purchases are temporarily unavailable. You can still manage existing billing.",billing_unavailable:"Payments are not available yet. Please try again later.",billing_subscription_exists:"You already have a subscription. Use Manage billing to change or cancel it.",billing_checkout_in_progress:"You have another checkout open. Complete it, or wait up to 30 minutes for it to expire, before choosing a different option.",billing_busy:"Another billing request is processing. Please try again shortly.",billing_already_paid:"This repository or conference already has this paid option.",billing_invalid_review_window:"Conference packages cover up to 180 days. Check the review dates.",billing_invalid_conference:"Only a conference owner can pay for a conference awaiting payment.",repo_not_found:"Enter the ID of an existing repository that you own."};e.billingAmount=c=>c?.amount==null?"":new Intl.NumberFormat(void 0,{style:"currency",currency:c.currency,minimumFractionDigits:c.amount%100?2:0,maximumFractionDigits:2}).format(c.amount/100),e.billingPrice=c=>c.amount==null?"Price shown at checkout":e.billingAmount(c)+(c.interval?` / ${c.intervalCount>1?c.intervalCount+" ":""}${c.interval}`:" once"),e.billingPerMonth=c=>c?.amount==null?"":new Intl.NumberFormat(void 0,{style:"currency",currency:c.currency}).format(c.amount/1200),e.billingBytes=c=>{let v=Number(c)||0;if(v<1024)return`${v} B`;let h=Math.min(4,Math.floor(Math.log2(v)/10));return`${new Intl.NumberFormat(void 0,{maximumFractionDigits:1}).format(v/1024**h)} ${["B","KB","MB","GB","TB"][h]}`},e.billingDate=c=>c?new Date(c).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"}):"",e.loadBilling=()=>(e.billingError="",e.billingLoading=!0,xi(t).then(c=>{e.billing=c.data,e.emit?.("billing:updated",c.data)}).catch(()=>{e.billingError="Billing could not be loaded. Try again."}).finally(()=>{e.billingLoading=!1}));async function u(c,v,h=!0){if(!(e.billingBusy||!e.billing?.csrf)){e.billingBusy=!0,e.billingError="";try{let y=await t.post(`/api/billing/${c}`,v,{headers:{"x-csrf-token":e.billing.csrf}});if(h)window.location.assign(y.data.url);else return await e.loadBilling(),await s(),e.billingPending=!!y.data.pending,e.emit?.("billing:pending",e.billingPending),e.billingNotice=y.data.pending?"Your payment is still pending. Please do not pay again.":i.confirmedMessage||"Billing status refreshed. Your confirmed access appears below.",y.data}catch(y){e.billingError=r[y.data?.error]||"The billing request failed. Please try again."}finally{e.billingBusy=!1}}}e.checkout=(c,v="",h={})=>u("checkout",{planId:c,target:v,...h}),e.billingPortal=()=>u("portal",{}),e.refreshBilling=()=>u("refresh",{},!1);async function p(){for(let c=0;c<5;c++){let v=await e.refreshBilling();if(!v||!v.pending)return;await new Promise(h=>window.setTimeout(h,3e3))}e.billingNotice="Confirmation is taking longer than usual. You can refresh payment status later. Please do not pay again."}e.loadBilling().then(()=>{o==="success"?(e.billingNotice="Checking your payment. Paid access starts after confirmation.",p()):o==="portal"?e.refreshBilling().then(()=>{e.billingPending=!1,e.emit?.("billing:pending",!1),e.billingNotice=i.portalMessage?.(e.billing)||"Your billing details are up to date."}):o==="cancelled"&&(e.billingNotice="Checkout was closed. No new paid access has been activated.")})}function Wu(e,t){return t?.split(".").reduce((s,i)=>s?.[i],e)}function Fs(e=null,t=new Map){let s=rt({}),i=[],o=!1,r=new Proxy(s,{get(u,p){return typeof p=="string"&&p.startsWith("__v_")||Reflect.has(u,p)?Reflect.get(u,p):e?.[p]}});return Object.defineProperty(s,"parent",{value:e,configurable:!0}),Object.defineProperty(s,"viewState",{get:()=>r}),r.watch=(u,p,c=!1,v=!0)=>{let h=typeof u=="function"?()=>u(r):()=>Wu(r,u),y=dt(h,p,{deep:c,flush:"post"});return i.push(y),v&&Ge(()=>{o||p(h(),h())}),y},r.watchGroup=(u,p,c=!0)=>r.watch(()=>u.map(v=>Wu(r,v)),p,!0,c),r.on=(u,p)=>{if(u==="dispose")return i.push(p),()=>{};t.has(u)||t.set(u,new Set),t.get(u).add(p);let c=()=>t.get(u)?.delete(p);return i.push(c),c},r.emit=(u,...p)=>{for(let c of[...t.get(u)||[]])c({},...p)},r.dispose=()=>{o=!0,i.splice(0).reverse().forEach(u=>u())},no(r.dispose),r}function yt(){let e=new Set,t=new Set,s=!1,i=(r,u=0)=>{if(s)return;let p=setTimeout(()=>{e.delete(p),r()},u);return e.add(p),p};i.cancel=r=>{clearTimeout(r),e.delete(r)};let o=(r,u)=>{if(s)return;let p=setInterval(r,u);return t.add(p),p};return o.cancel=r=>{clearInterval(r),t.delete(r)},no(()=>{s=!0,e.forEach(clearTimeout),t.forEach(clearInterval)}),{timeout:i,interval:o}}function Ht(){let e=new Set;return no(()=>{e.forEach(t=>t()),e.clear()}),(t,s,i,o)=>{t.addEventListener(s,i,o);let r=()=>{t.removeEventListener(s,i,o),e.delete(r)};return e.add(r),r}}var Ra=function(e,t=e){let s=/\bXXXX-\d+\b/g;t.on("dark-mode",(I,q)=>{e.aceOption&&(e.aceOption.theme=q?"nord_dark":"chrome")});let i=yt(),o=Ht();e.isMac=/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent);let r={yml:"yaml",txt:"text",py:"python",js:"javascript",ts:"typescript"},u=["license","txt"],p=["png","jpg","jpeg","gif","svg","ico","bmp","tiff","tif","webp","avif","heif","heic"],c=["wav","mp3","ogg","wma","flac","aac","m4a"],v=["mp4","avi","webm","mov","mpg","mpeg","mkv","flv","wmv","3gp","3g2","m4v","f4v","f4p","f4a","f4b"];e.toggleSource=function(){e.showSource=!e.showSource},e.toggleAllowScripts=function(){e.allowScripts=!e.allowScripts};let h=(()=>{try{return window.localStorage?.getItem("wrapLines")}catch{return null}})();e.wrapLines=(h??(window.matchMedia?.("(max-width: 767px)").matches?"false":"true"))!=="false",e.toggleWrap=function(){e.wrapLines=!e.wrapLines;try{window.localStorage?.setItem("wrapLines",String(e.wrapLines))}catch{}e.codeEditor?.session.setUseWrapMode(e.wrapLines)};function y(){return window.document.querySelector(".reading-layout .markdown-body")}function g(){let I=y();I&&(I.querySelectorAll("mark.md-find").forEach(q=>{q.replaceWith(window.document.createTextNode(q.textContent))}),I.normalize())}e.runMdFind=function(){g(),e.mdFindTotal=0,e.mdFindIndex=0;let I=(e.mdFindQuery||"").trim(),q=y();if(!I||!q)return;let E=!!e.mdFindCase,L=E?I:I.toLowerCase(),G=window.document.createTreeWalker(q,4),j=[];for(;G.nextNode();)(E?G.currentNode.nodeValue:G.currentNode.nodeValue.toLowerCase()).includes(L)&&j.push(G.currentNode);let Y=0;for(let ne of j){let x=ne.nodeValue,fe=E?x:x.toLowerCase(),me=window.document.createDocumentFragment(),qe=0,Ue;for(;(Ue=fe.indexOf(L,qe))!==-1;){me.appendChild(window.document.createTextNode(x.slice(qe,Ue)));let Xe=window.document.createElement("mark");Xe.className="md-find",Xe.textContent=x.slice(Ue,Ue+I.length),me.appendChild(Xe),Y++,qe=Ue+I.length}me.appendChild(window.document.createTextNode(x.slice(qe))),ne.parentNode.replaceChild(me,ne)}e.mdFindTotal=Y,Y&&e.stepMdFind(0)},e.stepMdFind=function(I){let q=y();if(!q||!e.mdFindTotal)return;let E=q.querySelectorAll("mark.md-find");e.mdFindIndex=(e.mdFindIndex+I+E.length)%E.length,E.forEach((L,G)=>L.classList.toggle("is-current",G===e.mdFindIndex)),E[e.mdFindIndex]?.scrollIntoView({block:"center",behavior:"smooth"})},e.toggleMdFind=function(I){if(e.mdFindOpen=I===void 0?!e.mdFindOpen:I,!e.mdFindOpen){g(),e.mdFindTotal=0;return}Ge(()=>window.document.querySelector(".md-find-input")?.focus())},e.findInFile=function(){let I=e.codeEditor;if(!I)return;I.focus(),I.execCommand("find");let q=()=>{let E=I.searchBox?.element;E&&(I.renderer.setScrollMargin(52,12,0,0),!E._dockObserver&&(E._dockObserver=new MutationObserver(()=>{I.renderer.setScrollMargin(E.style.display!=="none"?52:12,12,0,0)}),E._dockObserver.observe(E,{attributes:!0,attributeFilter:["style"]})))};q(),setTimeout(q,150)};let k=[[/^\s*(?:export\s+)?(?:default\s+)?(?:abstract\s+)?class\s+([A-Za-z_$][\w$]*)/,"class"],[/^\s*(?:export\s+)?(?:default\s+)?(?:async\s+)?function\s*\*?\s*([A-Za-z_$][\w$]*)/,"function"],[/^\s*(?:export\s+)?(?:const|let|var)\s+([A-Za-z_$][\w$]*)\s*=\s*(?:async\s*)?(?:function|\([^)]*\)\s*=>|[A-Za-z_$][\w$]*\s*=>)/,"function"],[/^\s*(?:async\s+)?def\s+([A-Za-z_]\w*)/,"function"],[/^\s*class\s+([A-Za-z_]\w*)/,"class"],[/^\s*func\s+(?:\([^)]*\)\s*)?([A-Za-z_]\w*)/,"function"],[/^\s*(?:pub\s+)?fn\s+([A-Za-z_]\w*)/,"function"],[/^\s*(?:public|private|protected|static|\s)+[\w<>\[\],\s]+\s+([A-Za-z_]\w*)\s*\([^;]*\)\s*\{?\s*$/,"function"]],w={content:null,list:[]};e.symbolsOpen=!1,e.symbols=function(){if(typeof e.content!="string"||e.content.length>2e6)return[];if(w.content===e.content)return w.list;let I=[];return e.content.split(` +`+JSON.stringify(t):""}`},[ut.NAVIGATION_GUARD_REDIRECT]({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${Qh(t)}" via a navigation guard.`},[ut.NAVIGATION_ABORTED]({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},[ut.NAVIGATION_CANCELLED]({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},[ut.NAVIGATION_DUPLICATED]({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function uo(e,t){return Ze(new Error,{type:e,[Ru]:!0},t)}function wn(e,t){return e instanceof Error&&Ru in e&&(t==null||!!(e.type&t))}var Xh=["params","query","hash"];function Qh(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;let t={};for(let s of Xh)s in e&&(t[s]=e[s]);return JSON.stringify(t,null,2)}function Tu(e){let t={};if(e===""||e==="?")return t;let s=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;io&&ha(o)):[i&&ha(i)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+s,o!=null&&(t+="="+o))})}return t}function Pu(e){let t={};for(let s in e){let i=e[s];i!==void 0&&(t[s]=Qt(i)?i.map(o=>o==null?null:""+o):i==null?i:""+i)}return t}var Du=Symbol(""),Ea=Symbol(""),Ki=Symbol(""),Yi=Symbol(""),Ji=Symbol("");function jo(){let e=[];function t(i){return e.push(i),()=>{let o=e.indexOf(i);o>-1&&e.splice(o,1)}}function s(){e=[]}return{add:t,list:()=>e.slice(),reset:s}}function In(e,t,s,i,o,r=u=>u()){let u=i&&(i.enterCallbacks[o]=i.enterCallbacks[o]||[]);return()=>new Promise((p,c)=>{let v=g=>{g===!1?c(uo(ut.NAVIGATION_ABORTED,{from:s,to:t})):g instanceof Error?c(g):Jh(g)?c(uo(ut.NAVIGATION_GUARD_REDIRECT,{from:t,to:g})):(u&&i.enterCallbacks[o]===u&&typeof g=="function"&&u.push(g),p())},h=r(()=>e.call(i&&i.instances[o],t,s,v)),y=Promise.resolve(h);e.length<3&&(y=y.then(v)),y.catch(g=>c(g))})}function Xi(e,t,s,i,o=r=>r()){let r=[];for(let u of e)for(let p in u.components){let c=u.components[p];if(!(t!=="beforeRouteEnter"&&!u.instances[p]))if(cu(c)){let v=(c.__vccOpts||c)[t];v&&r.push(In(v,s,i,u,p,o))}else{let v=c();r.push(()=>v.then(h=>{if(!h)throw new Error(`Couldn't resolve component "${p}" at "${u.path}"`);let y=Ih(h)?h.default:h;u.mods[p]=h,u.components[p]=y;let g=(y.__vccOpts||y)[t];return g&&In(g,s,i,u,p,o)()}))}}return r}function Au(e,t){let s=[],i=[],o=[],r=Math.max(t.matched.length,e.matched.length);for(let u=0;ulo(v,p))?i.push(p):s.push(p));let c=e.matched[u];c&&(t.matched.find(v=>lo(v,c))||o.push(c))}return[s,i,o]}var Zh=()=>location.protocol+"//"+location.host;function Bu(e,t){let{pathname:s,search:i,hash:o}=t,r=e.indexOf("#");if(r>-1){let u=o.includes(e.slice(r))?e.slice(r).length:1,p=o.slice(u);return p[0]!=="/"&&(p="/"+p),ba(p,"")}return ba(s,e)+i+o}function xh(e,t,s,i){let o=[],r=[],u=null,p=({state:g})=>{let k=Bu(e,location),w=s.value,S=t.value,N=0;if(g){if(s.value=k,t.value=g,u&&u===w){u=null;return}N=S?g.position-S.position:0}else i(k);o.forEach(b=>{b(s.value,w,{delta:N,type:Gi.pop,direction:N?N>0?Wi.forward:Wi.back:Wi.unknown})})};function c(){u=s.value}function v(g){o.push(g);let k=()=>{let w=o.indexOf(g);w>-1&&o.splice(w,1)};return r.push(k),k}function h(){if(document.visibilityState==="hidden"){let{history:g}=window;if(!g.state)return;g.replaceState(Ze({},g.state,{scroll:$s()}),"")}}function y(){for(let g of r)g();r=[],window.removeEventListener("popstate",p),window.removeEventListener("pagehide",h),document.removeEventListener("visibilitychange",h)}return window.addEventListener("popstate",p),window.addEventListener("pagehide",h),document.addEventListener("visibilitychange",h),{pauseListeners:c,listen:v,destroy:y}}function Iu(e,t,s,i=!1,o=!1){return{back:e,current:t,forward:s,replaced:i,position:window.history.length,scroll:o?$s():null}}function eg(e){let{history:t,location:s}=window,i={value:Bu(e,s)},o={value:t.state};o.value||r(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(c,v,h){let y=e.indexOf("#"),g=y>-1?(s.host&&document.querySelector("base")?e:e.slice(y))+c:Zh()+e+c;try{t[h?"replaceState":"pushState"](v,"",g),o.value=v}catch(k){console.error(k),s[h?"replace":"assign"](g)}}function u(c,v){r(c,Ze({},t.state,Iu(o.value.back,c,o.value.forward,!0),v,{position:o.value.position}),!0),i.value=c}function p(c,v){let h=Ze({},o.value,t.state,{forward:c,scroll:$s()});r(h.current,h,!0),r(c,Ze({},Iu(i.value,c,null),{position:h.position+1},v),!1),i.value=c}return{location:i,state:o,push:p,replace:u}}function zu(e){e=ku(e);let t=eg(e),s=xh(e,t.state,t.location,t.replace);function i(r,u=!0){u||s.pauseListeners(),history.go(r)}let o=Ze({location:"",base:e,go:i,createHref:Cu.bind(null,e)},t,s);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}var po=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({}),vt=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(vt||{}),tg={type:po.Static,value:""},ng=/[a-zA-Z0-9_]/;function og(e){if(!e)return[[]];if(e==="/")return[[tg]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(k){throw new Error(`ERR (${s})/"${v}": ${k}`)}let s=vt.Static,i=s,o=[],r;function u(){r&&o.push(r),r=[]}let p=0,c,v="",h="";function y(){v&&(s===vt.Static?r.push({type:po.Static,value:v}):s===vt.Param||s===vt.ParamRegExp||s===vt.ParamRegExpEnd?(r.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${v}) must be alone in its segment. eg: '/:ids+.`),r.push({type:po.Param,value:v,regexp:h,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),v="")}function g(){v+=c}for(;pt.length?t.length===1&&t[0]===It.Static+It.Segment?1:-1:0}function Hu(e,t){let s=0,i=e.score,o=t.score;for(;s0&&t[t.length-1]<0}var lg={strict:!1,end:!0,sensitive:!1};function dg(e,t,s){let i=rg(og(e.path),s),o=Ze(i,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function ug(e,t){let s=[],i=new Map;t=va(lg,t);function o(y){return i.get(y)}function r(y,g,k){let w=!k,S=qu(y);S.aliasOf=k&&k.record;let N=va(t,y),b=[S];if("alias"in y){let F=typeof y.alias=="string"?[y.alias]:y.alias;for(let H of F)b.push(qu(Ze({},S,{components:k?k.record.components:S.components,path:H,aliasOf:k?k.record:S})))}let T,O;for(let F of b){let{path:H}=F;if(g&&H[0]!=="/"){let se=g.record.path,_=se[se.length-1]==="/"?"":"/";F.path=g.record.path+(H&&_+H)}if(T=dg(F,g,N),k?k.alias.push(T):(O=O||T,O!==T&&O.alias.push(T),w&&y.name&&!Lu(T)&&u(y.name)),ju(T)&&c(T),S.children){let se=S.children;for(let _=0;_{u(O)}:Ho}function u(y){if(Ca(y)){let g=i.get(y);g&&(i.delete(y),s.splice(s.indexOf(g),1),g.children.forEach(u),g.alias.forEach(u))}else{let g=s.indexOf(y);g>-1&&(s.splice(g,1),y.record.name&&i.delete(y.record.name),y.children.forEach(u),y.alias.forEach(u))}}function p(){return s}function c(y){let g=fg(y,s);s.splice(g,0,y),y.record.name&&!Lu(y)&&i.set(y.record.name,y)}function v(y,g){let k,w={},S,N;if("name"in y&&y.name){if(k=i.get(y.name),!k)throw uo(ut.MATCHER_NOT_FOUND,{location:y});N=k.record.name,w=Ze(Vu(g.params,k.keys.filter(O=>!O.optional).concat(k.parent?k.parent.keys.filter(O=>O.optional):[]).map(O=>O.name)),y.params&&Vu(y.params,k.keys.map(O=>O.name))),S=k.stringify(w)}else if(y.path!=null)S=y.path,k=s.find(O=>O.re.test(S)),k&&(w=k.parse(S),N=k.record.name);else{if(k=g.name?i.get(g.name):s.find(O=>O.re.test(g.path)),!k)throw uo(ut.MATCHER_NOT_FOUND,{location:y,currentLocation:g});N=k.record.name,w=Ze({},g.params,y.params),S=k.stringify(w)}let b=[],T=k;for(;T;)b.unshift(T.record),T=T.parent;return{name:N,path:S,params:w,matched:b,meta:pg(b)}}e.forEach(y=>r(y));function h(){s.length=0,i.clear()}return{addRoute:r,resolve:v,removeRoute:u,clearRoutes:h,getRoutes:p,getRecordMatcher:o}}function Vu(e,t){let s={};for(let i of t)i in e&&(s[i]=e[i]);return s}function qu(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:cg(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function cg(e){let t={},s=e.props||!1;if("component"in e)t.default=s;else for(let i in e.components)t[i]=typeof s=="object"?s[i]:s;return t}function Lu(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function pg(e){return e.reduce((t,s)=>Ze(t,s.meta),{})}function fg(e,t){let s=0,i=t.length;for(;s!==i;){let r=s+i>>1;Hu(e,t[r])<0?i=r:s=r+1}let o=mg(e);return o&&(i=t.lastIndexOf(o,i-1)),i}function mg(e){let t=e;for(;t=t.parent;)if(ju(t)&&Hu(e,t)===0)return t}function ju({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function _u(e){let t=Lt(Ki),s=Lt(Yi),i=!1,o=null,r=Et(()=>{let h=Tn(e.to);return t.resolve(h)}),u=Et(()=>{let{matched:h}=r.value,{length:y}=h,g=h[y-1],k=s.matched;if(!g||!k.length)return-1;let w=k.findIndex(lo.bind(null,g));if(w>-1)return w;let S=$u(h[y-2]);return y>1&&$u(g)===S&&k[k.length-1].path!==S?k.findIndex(lo.bind(null,h[y-2])):w}),p=Et(()=>u.value>-1&&bg(s.params,r.value.params)),c=Et(()=>u.value>-1&&u.value===s.matched.length-1&&wa(s.params,r.value.params));function v(h={}){if(yg(h)){let y=t[Tn(e.replace)?"replace":"push"](Tn(e.to)).catch(Ho);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>y),y}return Promise.resolve()}return{route:r,href:Et(()=>r.value.href),isActive:p,isExactActive:c,navigate:v}}function hg(e){return e.length===1?e[0]:e}var gg=Os({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:_u,setup(e,{slots:t}){let s=rt(_u(e)),{options:i}=Lt(Ki),o=Et(()=>({[Fu(e.activeClass,i.linkActiveClass,"router-link-active")]:s.isActive,[Fu(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:s.isExactActive}));return()=>{let r=t.default&&hg(t.default(s));return e.custom?r:De("a",{"aria-current":s.isExactActive?e.ariaCurrentValue:null,href:s.href,onClick:s.navigate,class:o.value},r)}}}),vg=gg;function yg(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function bg(e,t){for(let s in t){let i=t[s],o=e[s];if(typeof i=="string"){if(i!==o)return!1}else if(!Qt(o)||o.length!==i.length||i.some((r,u)=>r.valueOf()!==o[u].valueOf()))return!1}return!0}function $u(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}var Fu=(e,t,s)=>e??t??s,wg=Os({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:s}){let i=Lt(Ji),o=Et(()=>e.route||i.value),r=Lt(Ea,0),u=Et(()=>{let v=Tn(r),{matched:h}=o.value,y;for(;(y=h[v])&&!y.components;)v++;return v}),p=Et(()=>o.value.matched[u.value]);ro(Ea,Et(()=>u.value+1)),ro(Du,p),ro(Ji,o);let c=Ct();return dt(()=>[c.value,p.value,e.name],([v,h,y],[g,k,w])=>{h&&(h.instances[y]=v,k&&k!==h&&v&&v===g&&(h.leaveGuards.size||(h.leaveGuards=k.leaveGuards),h.updateGuards.size||(h.updateGuards=k.updateGuards))),v&&h&&(!k||!lo(h,k)||!g)&&(h.enterCallbacks[y]||[]).forEach(S=>S(v))},{flush:"post"}),()=>{let v=o.value,h=e.name,y=p.value,g=y&&y.components[h];if(!g)return Uu(s.default,{Component:g,route:v});let k=y.props[h],w=k?k===!0?v.params:typeof k=="function"?k(v):k:null,N=De(g,Ze({},w,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(y.instances[h]=null)},ref:c}));return Uu(s.default,{Component:N,route:v})||N}}});function Uu(e,t){if(!e)return null;let s=e(t);return s.length===1?s[0]:s}var Na=wg;function Gu(e){let t=ug(e.routes,e),s=e.parseQuery||Tu,i=e.stringifyQuery||Sa,o=e.history,r=jo(),u=jo(),p=jo(),c=Si(On),v=On;co&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");let h=Hi.bind(null,J=>""+J),y=Hi.bind(null,yu),g=Hi.bind(null,zo);function k(J,ce){let ue,he;return Ca(J)?(ue=t.getRecordMatcher(J),he=ce):he=J,t.addRoute(he,ue)}function w(J){let ce=t.getRecordMatcher(J);ce&&t.removeRoute(ce)}function S(){return t.getRoutes().map(J=>J.record)}function N(J){return!!t.getRecordMatcher(J)}function b(J,ce){if(ce=Ze({},ce||c.value),typeof J=="string"){let A=ji(s,J,ce.path),U=t.resolve({path:A.path},ce),Z=o.createHref(A.fullPath);return Ze(A,U,{params:g(U.params),hash:zo(A.hash),redirectedFrom:void 0,href:Z})}let ue;if(J.path!=null)ue=Ze({},J,{path:ji(s,J.path,ce.path).path});else{let A=Ze({},J.params);for(let U in A)A[U]==null&&delete A[U];ue=Ze({},J,{params:y(A)}),ce.params=y(ce.params)}let he=t.resolve(ue,ce),be=J.hash||"";he.params=h(g(he.params));let Oe=bu(i,Ze({},J,{hash:vu(be),path:he.path})),D=o.createHref(Oe);return Ze({fullPath:Oe,hash:be,query:i===Sa?Pu(J.query):J.query||{}},he,{redirectedFrom:void 0,href:D})}function T(J){return typeof J=="string"?ji(s,J,c.value.path):Ze({},J)}function O(J,ce){if(v!==J)return uo(ut.NAVIGATION_CANCELLED,{from:ce,to:J})}function F(J){return _(J)}function H(J){return F(Ze(T(J),{replace:!0}))}function se(J,ce){let ue=J.matched[J.matched.length-1];if(ue&&ue.redirect){let{redirect:he}=ue,be=typeof he=="function"?he(J,ce):he;return typeof be=="string"&&(be=be.includes("?")||be.includes("#")?be=T(be):{path:be},be.params={}),Ze({query:J.query,hash:J.hash,params:be.path!=null?{}:J.params},be)}}function _(J,ce){let ue=v=b(J),he=c.value,be=J.state,Oe=J.force,D=J.replace===!0,A=se(ue,he);if(A)return _(Ze(T(A),{state:typeof A=="object"?Ze({},be,A.state):be,force:Oe,replace:D}),ce||ue);let U=ue;U.redirectedFrom=ce;let Z;return!Oe&&wu(i,he,ue)&&(Z=uo(ut.NAVIGATION_DUPLICATED,{to:U,from:he}),Ue(he,he,!0,!1)),(Z?Promise.resolve(Z):q(U,he)).catch(W=>wn(W)?wn(W,ut.NAVIGATION_GUARD_REDIRECT)?W:qe(W):fe(W,U,he)).then(W=>{if(W){if(wn(W,ut.NAVIGATION_GUARD_REDIRECT))return _(Ze({replace:D},T(W.to),{state:typeof W.to=="object"?Ze({},be,W.to.state):be,force:Oe}),ce||U)}else W=L(U,he,!0,D,be);return E(U,he,W),W})}function z(J,ce){let ue=O(J,ce);return ue?Promise.reject(ue):Promise.resolve()}function I(J){let ce=lt.values().next().value;return ce&&typeof ce.runWithContext=="function"?ce.runWithContext(J):J()}function q(J,ce){let ue,[he,be,Oe]=Au(J,ce);ue=Xi(he.reverse(),"beforeRouteLeave",J,ce);for(let A of he)A.leaveGuards.forEach(U=>{ue.push(In(U,J,ce))});let D=z.bind(null,J,ce);return ue.push(D),Se(ue).then(()=>{ue=[];for(let A of r.list())ue.push(In(A,J,ce));return ue.push(D),Se(ue)}).then(()=>{ue=Xi(be,"beforeRouteUpdate",J,ce);for(let A of be)A.updateGuards.forEach(U=>{ue.push(In(U,J,ce))});return ue.push(D),Se(ue)}).then(()=>{ue=[];for(let A of Oe)if(A.beforeEnter)if(Qt(A.beforeEnter))for(let U of A.beforeEnter)ue.push(In(U,J,ce));else ue.push(In(A.beforeEnter,J,ce));return ue.push(D),Se(ue)}).then(()=>(J.matched.forEach(A=>A.enterCallbacks={}),ue=Xi(Oe,"beforeRouteEnter",J,ce,I),ue.push(D),Se(ue))).then(()=>{ue=[];for(let A of u.list())ue.push(In(A,J,ce));return ue.push(D),Se(ue)}).catch(A=>wn(A,ut.NAVIGATION_CANCELLED)?A:Promise.reject(A))}function E(J,ce,ue){p.list().forEach(he=>I(()=>he(J,ce,ue)))}function L(J,ce,ue,he,be){let Oe=O(J,ce);if(Oe)return Oe;let D=ce===On,A=co?history.state:{};ue&&(he||D?o.replace(J.fullPath,Ze({scroll:D&&A&&A.scroll},be)):o.push(J.fullPath,be)),c.value=J,Ue(J,ce,ue,D),qe()}let G;function j(){G||(G=o.listen((J,ce,ue)=>{if(!Re.listening)return;let he=b(J),be=se(he,Re.currentRoute.value);if(be){_(Ze(be,{replace:!0,force:!0}),he).catch(Ho);return}v=he;let Oe=c.value;co&&Eu(ka(Oe.fullPath,ue.delta),$s()),q(he,Oe).catch(D=>wn(D,ut.NAVIGATION_ABORTED|ut.NAVIGATION_CANCELLED)?D:wn(D,ut.NAVIGATION_GUARD_REDIRECT)?(_(Ze(T(D.to),{force:!0}),he).then(A=>{wn(A,ut.NAVIGATION_ABORTED|ut.NAVIGATION_DUPLICATED)&&!ue.delta&&ue.type===Gi.pop&&o.go(-1,!1)}).catch(Ho),Promise.reject()):(ue.delta&&o.go(-ue.delta,!1),fe(D,he,Oe))).then(D=>{D=D||L(he,Oe,!1),D&&(ue.delta&&!wn(D,ut.NAVIGATION_CANCELLED)?o.go(-ue.delta,!1):ue.type===Gi.pop&&wn(D,ut.NAVIGATION_ABORTED|ut.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),E(he,Oe,D)}).catch(Ho)}))}let Y=jo(),ne=jo(),x;function fe(J,ce,ue){qe(J);let he=ne.list();return he.length?he.forEach(be=>be(J,ce,ue)):console.error(J),Promise.reject(J)}function me(){return x&&c.value!==On?Promise.resolve():new Promise((J,ce)=>{Y.add([J,ce])})}function qe(J){return x||(x=!J,j(),Y.list().forEach(([ce,ue])=>J?ue(J):ce()),Y.reset()),J}function Ue(J,ce,ue,he){let{scrollBehavior:be}=e;if(!co||!be)return Promise.resolve();let Oe=!ue&&Nu(ka(J.fullPath,0))||(he||!ue)&&history.state&&history.state.scroll||null;return Ge().then(()=>be(J,ce,Oe)).then(D=>D&&Su(D)).catch(D=>fe(D,J,ce))}let Xe=J=>o.go(J),ze,lt=new Set,Re={currentRoute:c,listening:!0,addRoute:k,removeRoute:w,clearRoutes:t.clearRoutes,hasRoute:N,getRoutes:S,resolve:b,options:e,push:F,replace:H,go:Xe,back:()=>Xe(-1),forward:()=>Xe(1),beforeEach:r.add,beforeResolve:u.add,afterEach:p.add,onError:ne.add,isReady:me,install(J){J.component("RouterLink",vg),J.component("RouterView",Na),J.config.globalProperties.$router=Re,Object.defineProperty(J.config.globalProperties,"$route",{enumerable:!0,get:()=>Tn(c)}),co&&!ze&&c.value===On&&(ze=!0,F(o.location).catch(he=>{}));let ce={};for(let he in On)Object.defineProperty(ce,he,{get:()=>c.value[he],enumerable:!0});J.provide(Ki,Re),J.provide(Yi,vs(ce)),J.provide(Ji,c);let ue=J.unmount;lt.add(J),J.unmount=function(){lt.delete(J),lt.size<1&&(v=On,G&&G(),G=null,c.value=On,ze=!1,x=!1),ue()}}};function Se(J){return J.reduce((ce,ue)=>ce.then(()=>I(ue)),Promise.resolve())}return Re}function Wu(e){return Lt(Yi)}function Zi(e){return["author_pass","repo_extend","repo_never","repo_slot","repo_pack"].includes(e)}var Qi=new WeakMap;function xi(e){if(!Qi.has(e)){let t=e.get("/api/billing/").finally(()=>Qi.delete(e));Qi.set(e,t)}return Qi.get(e)}function er(e,t,s=()=>{},i={}){let o=new URLSearchParams(window.location.search).get("billing");e.billing=null,e.billingLoading=!0,e.billingBusy=!1,e.billingError="",e.billingNotice="",e.billingPending=o==="success",e.billingRepository="";let r={billing_invalid_draft:"This draft could not be saved. Your form is unchanged. Try again.",billing_draft_not_found:"This checkout draft is unavailable or expired. Your local form is unchanged.",billing_recovery_required:"Your earlier payment needs verification. Please contact support before paying again.",billing_checkout_disabled:"New purchases are temporarily unavailable. You can still manage existing billing.",billing_unavailable:"Payments are not available yet. Please try again later.",billing_subscription_exists:"You already have a subscription. Use Manage billing to change or cancel it.",billing_checkout_in_progress:"You have another checkout open. Complete it, or wait up to 30 minutes for it to expire, before choosing a different option.",billing_busy:"Another billing request is processing. Please try again shortly.",billing_already_paid:"This repository or conference already has this paid option.",billing_invalid_review_window:"Conference packages cover up to 180 days. Check the review dates.",billing_invalid_conference:"Only a conference owner can pay for a conference awaiting payment.",repo_not_found:"Enter the ID of an existing repository that you own."};e.billingAmount=c=>c?.amount==null?"":new Intl.NumberFormat(void 0,{style:"currency",currency:c.currency,minimumFractionDigits:c.amount%100?2:0,maximumFractionDigits:2}).format(c.amount/100),e.billingPrice=c=>c.amount==null?"Price shown at checkout":e.billingAmount(c)+(c.interval?` / ${c.intervalCount>1?c.intervalCount+" ":""}${c.interval}`:" once"),e.billingPerMonth=c=>c?.amount==null?"":new Intl.NumberFormat(void 0,{style:"currency",currency:c.currency}).format(c.amount/1200),e.billingBytes=c=>{let v=Number(c)||0;if(v<1024)return`${v} B`;let h=Math.min(4,Math.floor(Math.log2(v)/10));return`${new Intl.NumberFormat(void 0,{maximumFractionDigits:1}).format(v/1024**h)} ${["B","KB","MB","GB","TB"][h]}`},e.billingDate=c=>c?new Date(c).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"}):"",e.loadBilling=()=>(e.billingError="",e.billingLoading=!0,xi(t).then(c=>{e.billing=c.data,e.emit?.("billing:updated",c.data)}).catch(()=>{e.billingError="Billing could not be loaded. Try again."}).finally(()=>{e.billingLoading=!1}));async function u(c,v,h=!0){if(!(e.billingBusy||!e.billing?.csrf)){e.billingBusy=!0,e.billingError="";try{let y=await t.post(`/api/billing/${c}`,v,{headers:{"x-csrf-token":e.billing.csrf}});if(h)window.location.assign(y.data.url);else return await e.loadBilling(),await s(),e.billingPending=!!y.data.pending,e.emit?.("billing:pending",e.billingPending),e.billingNotice=y.data.pending?"Your payment is still pending. Please do not pay again.":i.confirmedMessage||"Billing status refreshed. Your confirmed access appears below.",y.data}catch(y){e.billingError=r[y.data?.error]||"The billing request failed. Please try again."}finally{e.billingBusy=!1}}}e.checkout=(c,v="",h={})=>u("checkout",{planId:c,target:v,...h}),e.billingPortal=()=>u("portal",{}),e.refreshBilling=()=>u("refresh",{},!1);async function p(){for(let c=0;c<5;c++){let v=await e.refreshBilling();if(!v||!v.pending)return;await new Promise(h=>window.setTimeout(h,3e3))}e.billingNotice="Confirmation is taking longer than usual. You can refresh payment status later. Please do not pay again."}e.loadBilling().then(()=>{o==="success"?(e.billingNotice="Checking your payment. Paid access starts after confirmation.",p()):o==="portal"?e.refreshBilling().then(()=>{e.billingPending=!1,e.emit?.("billing:pending",!1),e.billingNotice=i.portalMessage?.(e.billing)||"Your billing details are up to date."}):o==="cancelled"&&(e.billingNotice="Checkout was closed. No new paid access has been activated.")})}function Ku(e,t){return t?.split(".").reduce((s,i)=>s?.[i],e)}function Fs(e=null,t=new Map){let s=rt({}),i=[],o=!1,r=new Proxy(s,{get(u,p){return typeof p=="string"&&p.startsWith("__v_")||Reflect.has(u,p)?Reflect.get(u,p):e?.[p]}});return Object.defineProperty(s,"parent",{value:e,configurable:!0}),Object.defineProperty(s,"viewState",{get:()=>r}),r.watch=(u,p,c=!1,v=!0)=>{let h=typeof u=="function"?()=>u(r):()=>Ku(r,u),y=dt(h,p,{deep:c,flush:"post"});return i.push(y),v&&Ge(()=>{o||p(h(),h())}),y},r.watchGroup=(u,p,c=!0)=>r.watch(()=>u.map(v=>Ku(r,v)),p,!0,c),r.on=(u,p)=>{if(u==="dispose")return i.push(p),()=>{};t.has(u)||t.set(u,new Set),t.get(u).add(p);let c=()=>t.get(u)?.delete(p);return i.push(c),c},r.emit=(u,...p)=>{for(let c of[...t.get(u)||[]])c({},...p)},r.dispose=()=>{o=!0,i.splice(0).reverse().forEach(u=>u())},no(r.dispose),r}function yt(){let e=new Set,t=new Set,s=!1,i=(r,u=0)=>{if(s)return;let p=setTimeout(()=>{e.delete(p),r()},u);return e.add(p),p};i.cancel=r=>{clearTimeout(r),e.delete(r)};let o=(r,u)=>{if(s)return;let p=setInterval(r,u);return t.add(p),p};return o.cancel=r=>{clearInterval(r),t.delete(r)},no(()=>{s=!0,e.forEach(clearTimeout),t.forEach(clearInterval)}),{timeout:i,interval:o}}function Ht(){let e=new Set;return no(()=>{e.forEach(t=>t()),e.clear()}),(t,s,i,o)=>{t.addEventListener(s,i,o);let r=()=>{t.removeEventListener(s,i,o),e.delete(r)};return e.add(r),r}}var Ra=function(e,t=e){let s=/\bXXXX-\d+\b/g;t.on("dark-mode",(I,q)=>{e.aceOption&&(e.aceOption.theme=q?"nord_dark":"chrome")});let i=yt(),o=Ht();e.isMac=/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent);let r={yml:"yaml",txt:"text",py:"python",js:"javascript",ts:"typescript"},u=["license","txt"],p=["png","jpg","jpeg","gif","svg","ico","bmp","tiff","tif","webp","avif","heif","heic"],c=["wav","mp3","ogg","wma","flac","aac","m4a"],v=["mp4","avi","webm","mov","mpg","mpeg","mkv","flv","wmv","3gp","3g2","m4v","f4v","f4p","f4a","f4b"];e.toggleSource=function(){e.showSource=!e.showSource},e.toggleAllowScripts=function(){e.allowScripts=!e.allowScripts};let h=(()=>{try{return window.localStorage?.getItem("wrapLines")}catch{return null}})();e.wrapLines=(h??(window.matchMedia?.("(max-width: 767px)").matches?"false":"true"))!=="false",e.toggleWrap=function(){e.wrapLines=!e.wrapLines;try{window.localStorage?.setItem("wrapLines",String(e.wrapLines))}catch{}e.codeEditor?.session.setUseWrapMode(e.wrapLines)};function y(){return window.document.querySelector(".reading-layout .markdown-body")}function g(){let I=y();I&&(I.querySelectorAll("mark.md-find").forEach(q=>{q.replaceWith(window.document.createTextNode(q.textContent))}),I.normalize())}e.runMdFind=function(){g(),e.mdFindTotal=0,e.mdFindIndex=0;let I=(e.mdFindQuery||"").trim(),q=y();if(!I||!q)return;let E=!!e.mdFindCase,L=E?I:I.toLowerCase(),G=window.document.createTreeWalker(q,4),j=[];for(;G.nextNode();)(E?G.currentNode.nodeValue:G.currentNode.nodeValue.toLowerCase()).includes(L)&&j.push(G.currentNode);let Y=0;for(let ne of j){let x=ne.nodeValue,fe=E?x:x.toLowerCase(),me=window.document.createDocumentFragment(),qe=0,Ue;for(;(Ue=fe.indexOf(L,qe))!==-1;){me.appendChild(window.document.createTextNode(x.slice(qe,Ue)));let Xe=window.document.createElement("mark");Xe.className="md-find",Xe.textContent=x.slice(Ue,Ue+I.length),me.appendChild(Xe),Y++,qe=Ue+I.length}me.appendChild(window.document.createTextNode(x.slice(qe))),ne.parentNode.replaceChild(me,ne)}e.mdFindTotal=Y,Y&&e.stepMdFind(0)},e.stepMdFind=function(I){let q=y();if(!q||!e.mdFindTotal)return;let E=q.querySelectorAll("mark.md-find");e.mdFindIndex=(e.mdFindIndex+I+E.length)%E.length,E.forEach((L,G)=>L.classList.toggle("is-current",G===e.mdFindIndex)),E[e.mdFindIndex]?.scrollIntoView({block:"center",behavior:"smooth"})},e.toggleMdFind=function(I){if(e.mdFindOpen=I===void 0?!e.mdFindOpen:I,!e.mdFindOpen){g(),e.mdFindTotal=0;return}Ge(()=>window.document.querySelector(".md-find-input")?.focus())},e.findInFile=function(){let I=e.codeEditor;if(!I)return;I.focus(),I.execCommand("find");let q=()=>{let E=I.searchBox?.element;E&&(I.renderer.setScrollMargin(52,12,0,0),!E._dockObserver&&(E._dockObserver=new MutationObserver(()=>{I.renderer.setScrollMargin(E.style.display!=="none"?52:12,12,0,0)}),E._dockObserver.observe(E,{attributes:!0,attributeFilter:["style"]})))};q(),setTimeout(q,150)};let k=[[/^\s*(?:export\s+)?(?:default\s+)?(?:abstract\s+)?class\s+([A-Za-z_$][\w$]*)/,"class"],[/^\s*(?:export\s+)?(?:default\s+)?(?:async\s+)?function\s*\*?\s*([A-Za-z_$][\w$]*)/,"function"],[/^\s*(?:export\s+)?(?:const|let|var)\s+([A-Za-z_$][\w$]*)\s*=\s*(?:async\s*)?(?:function|\([^)]*\)\s*=>|[A-Za-z_$][\w$]*\s*=>)/,"function"],[/^\s*(?:async\s+)?def\s+([A-Za-z_]\w*)/,"function"],[/^\s*class\s+([A-Za-z_]\w*)/,"class"],[/^\s*func\s+(?:\([^)]*\)\s*)?([A-Za-z_]\w*)/,"function"],[/^\s*(?:pub\s+)?fn\s+([A-Za-z_]\w*)/,"function"],[/^\s*(?:public|private|protected|static|\s)+[\w<>\[\],\s]+\s+([A-Za-z_]\w*)\s*\([^;]*\)\s*\{?\s*$/,"function"]],w={content:null,list:[]};e.symbolsOpen=!1,e.symbols=function(){if(typeof e.content!="string"||e.content.length>2e6)return[];if(w.content===e.content)return w.list;let I=[];return e.content.split(` `).forEach((q,E)=>{for(let[L,G]of k){let j=L.exec(q);if(j&&!/^(if|for|while|switch|return|catch)$/.test(j[1])){I.push({name:j[1],kind:G,line:E+1});break}}}),w={content:e.content,list:I.slice(0,300)},w.list},e.goToSymbol=function(I){e.symbolsOpen=!1;let q=e.codeEditor;q&&(q.scrollToLine(I-1,!0,!0,()=>{}),q.gotoLine(I,0,!0),window.history.replaceState(null,"",window.location.pathname+window.location.search+"#L"+I),window.dispatchEvent(new HashChangeEvent("hashchange")))},e.gotoLine=function(){e.codeEditor&&(e.moreOpen=!1,e.gotoError="",e.gotoValue=String(e.codeEditor.getCursorPosition().row+1),e.gotoOpen=!0,setTimeout(()=>{let I=window.document.getElementById("goto-input");I&&(I.focus(),I.select())},0))},e.closeGoto=function(){e.gotoOpen=!1,e.gotoError="",e.codeEditor?.focus()},e.submitGoto=function(){let I=e.codeEditor;if(!I)return;let q=/^\s*:?\s*(\d+)\s*(?:[:,]\s*(\d+))?\s*$/.exec(e.gotoValue||""),E=I.session.getLength();if(!q||+q[1]<1||+q[1]>E){e.gotoError="Enter a line from 1 to "+E;return}I.gotoLine(+q[1],q[2]?Math.max(0,+q[2]-1):0,!0),e.gotoOpen=!1,e.gotoError="",I.focus()},e.rootEntries=function(){return[...e.files||[]].sort((I,q)=>{let E=I.size==null,L=q.size==null;return E!==L?E?-1:1:I.name.localeCompare(q.name)})},e.formatSize=function(I){if(I==null)return"";if(I<1024)return I+" B";let q=I/1024,E=L=>L.toFixed(1).replace(/\.0$/,"");return q<1024?E(q)+" KB":q<1024*1024?E(q/1024)+" MB":E(q/1024/1024)+" GB"},e.fileSize=function(I){if(!I)return null;let q=I.replace(/^\/+/,""),E=(e.files||[]).find(L=>(L.path?L.path+"/":"")+L.name===q);return E&&E.size!=null?E.size:null},e.revealFolder=function(I){e.sidebarHidden=!1,e.sidebarCollapsed=!1,Ge(()=>{let q=window.document.querySelector('.files a[data-path="/'+(window.CSS?.escape?window.CSS.escape(I):I)+'"]');q&&(q.closest("li")?.classList.contains("open")||q.click(),q.scrollIntoView({block:"nearest"}),q.focus())})};let S={content:null,n:0},N=I=>{if(S.content===I)return S.n;let q=I;if(typeof q=="string")try{q=JSON.parse(q)}catch{q=null}let E=[],L=j=>{Array.isArray(j)?E.push(j.join("")):typeof j=="string"&&E.push(j)};(q&&(q.cells||(q.worksheets||[]).flatMap(j=>j.cells||[]))||[]).forEach(j=>{L(j?.source??j?.input),(j?.outputs||[]).forEach(Y=>{L(Y?.text),Y?.data&&(L(Y.data["text/plain"]),L(Y.data["text/markdown"]),L(Y.data["text/html"])),L(Y?.traceback)})});let G=E.reduce((j,Y)=>j+(Y.match(s)||[]).length,0);return S={content:I,n:G},G};e.redactionCount=function(){return e.type==="IPython"?N(e.content):typeof e.content!="string"?0:((e.type==="html"?e.content.replace(/<[^>]*>/g," "):e.content).match(s)||[]).length},e.renderRedacted=Us;let b=I=>I.toLowerCase().trim().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").slice(0,60)||"section";e.renderReadme=function(I){let q=e.renderRedacted(I);if(!q||typeof window.DOMParser!="function")return q;let E=new window.DOMParser().parseFromString("
"+q+"
","text/html"),L={};return E.querySelectorAll("h1, h2, h3").forEach(G=>{let j=G.id||b(G.textContent);L[j]?j+="-"+ ++L[j]:L[j]=1,G.id=j}),E.body.firstChild.innerHTML};let T={content:null,list:[]};e.readmeToc=function(){if(e.type!=="html"||typeof e.content!="string")return[];if(T.content===e.content)return T.list;let q=[...new window.DOMParser().parseFromString("
"+e.renderReadme(e.sanitize?e.sanitize(e.content):e.content)+"
","text/html").querySelectorAll("h2, h3")].map(E=>({id:E.id,text:E.textContent.trim(),level:E.tagName==="H3"?3:2})).slice(0,40);return T={content:e.content,list:q},q},e.activeHeading=null,o(window,"scroll",()=>{let I=e.readmeToc?e.readmeToc():[];if(!I.length)return;let q=150,E="",L="";for(let G of I){let j=window.document.getElementById(G.id);if(!j)continue;let Y=j.getBoundingClientRect().top;Y{let E=[],L=[],G="",j=!1;for(let Y=0;YY.length>1||Y[0]!=="")};e.isCsv=()=>typeof e.content=="string"&&e.type!=="html"&&/\.(csv|tsv)$/i.test(e.filePath||"")&&e.content.length<=1024*1024,e.csvRows=()=>{if(O.content!==e.content){let I=/\.tsv$/i.test(e.filePath||"")?" ":",";O={content:e.content,rows:F(e.content,I)}}return O.rows},e.csvNumCol=I=>{let q=e.csvRows().slice(1).map(E=>E[I]).filter(E=>E!=null&&String(E).trim()!=="");return q.length>0&&q.every(E=>e.csvNumeric(E))},e.csvNumeric=I=>/^\s*[-+]?(\d[\d,]*)?(\.\d+)?(e[-+]?\d+)?%?\s*$/i.test(I)&&/\d/.test(I),e.redactParts=function(I){let q=[],E=0,L,G=/\bXXXX-(\d+)\b/g;for(I=String(I||"");L=G.exec(I);)L.index>E&&q.push({t:I.slice(E,L.index)}),q.push({n:L[1]}),E=L.index+L[0].length;return E{e.pathCopied=!1},1600))},e.contentCopied=!1,e.copyContent=async function(){if(typeof e.content!="string"||!window.navigator.clipboard?.writeText)return;let I=e.content;if(e.type==="html"&&e.url)if(e.preview)I=e.sourceContent;else try{I=await(await window.fetch(e.url,{credentials:"same-origin"})).text()}catch{return}await window.navigator.clipboard.writeText(I),e.contentCopied=!0,setTimeout(()=>{e.contentCopied=!1},1600)};function H(I){return r[I]?r[I]:I}function se(I){return I=="pdf"?"pdf":I=="html"||I=="htm"?"html-doc":["md","markdown","mdown","mkdn","mdx"].includes(I)?"md":I=="org"?"org":I=="ipynb"?"IPython":u.indexOf(I)>-1?"text":p.indexOf(I)>-1?"image":v.indexOf(I)>-1?"media":c.indexOf(I)>-1?"audio":"code"}e.downloadUrl=()=>e.preview?e.url:e.url+"&download=true",e.prepareFile=function(I){e.showSource=!1,e.allowScripts=!1,e.imageSize="",e.filePath=I,e.paths=I.split("/").filter(Boolean);let q=e.filePath.toLowerCase(),E=q.lastIndexOf(".");E>-1&&(q=q.substring(E+1));let L={javascript:"JavaScript",typescript:"TypeScript",tsx:"TSX",jsx:"JSX",python:"Python",java:"Java",c_cpp:"C/C++",csharp:"C#",golang:"Go",rust:"Rust",ruby:"Ruby",php:"PHP",html:"HTML",css:"CSS",scss:"SCSS",json:"JSON",yaml:"YAML",markdown:"Markdown",sh:"Shell",dockerfile:"Dockerfile",xml:"XML",sql:"SQL",kotlin:"Kotlin",swift:"Swift",scala:"Scala",r:"R",julia:"Julia",latex:"LaTeX",toml:"TOML",csv:"CSV",tsv:"TSV",text:""},G=H(q);e.languageName=L[G]??(G?G.charAt(0).toUpperCase()+G.slice(1):""),e.aceOption={readOnly:!0,useWrapMode:!0,showGutter:!0,theme:"chrome",useSoftTab:!0,tabSize:2,fontSize:window.matchMedia?.("(max-width: 767px)").matches?12:13,keyBinding:"vscode",fullLineSelection:!0,highlightActiveLine:!1,highlightGutterLine:!1,cursor:"hide",showInvisibles:!1,showIndentGuides:!1,showPrintMargin:!1,highlightSelectedWord:!1,enableBehaviours:!0,fadeFoldWidgets:!1,mode:H(q),onLoad:function(j){e.codeEditor=mn(j);{let Re=j.session,Se=Re.getTokens.bind(Re),J=/\bXXXX-\d+\b/g;if(Re.getTokens=function(ce){let ue=Se(ce);if(!ue.some(be=>be.value.indexOf("XXXX-")!==-1))return ue;let he=[];for(let be of ue){if(be.value.indexOf("XXXX-")===-1){he.push(be);continue}let Oe=0;J.lastIndex=0;let D;for(;D=J.exec(be.value);)D.index>Oe&&he.push({type:be.type,value:be.value.slice(Oe,D.index)}),he.push({type:"redacted.n"+D[0].slice(5),value:D[0]}),Oe=D.index+D[0].length;Oe`.ace_redacted.ace_n${he+1}::after{content:"${he+1}"}`).join(""),window.document.head.appendChild(ce)}j.renderer.updateFull(!0)}j.session.setUseWrapMode(e.wrapLines!==!1);let Y=j.container.closest?.(".file-card"),ne=()=>{if(!Y)return;let Re=j.renderer,Se=(Re.layerConfig?.width||0)-(Re.$size?.scrollerWidth||0);Y.classList.toggle("at-right-edge",Se<=2||Re.getScrollLeft()>=Se-2)};j.session.on("changeScrollLeft",ne),j.renderer.on("afterRender",ne),window.matchMedia?.("(max-width: 767px)").matches&&j.setOption("hScrollBarAlwaysVisible",!0);let x=ace.require("ace/range").Range,fe=null;function me(Re,Se){fe!==null&&(j.session.removeMarker(fe),fe=null),Re!=null&&(fe=j.session.addMarker(new x(Re,0,Se,1),"highlighted-line","fullLine"))}function qe(Re){let Se=!e.preview&&window.location.hash.match(/^#L(\d+)(?:-L(\d+))?/);if(!Se){me(null);return}let J=parseInt(Se[1])-1,ce=Se[2]?parseInt(Se[2])-1:J;me(J,ce),Re&&i.timeout(()=>{j.scrollToLine(J,!0,!0,function(){})},100)}qe(!0);let Ue=null;j.on("guttermousedown",function(Re){let Se=Re.getDocumentPosition().row,J=Re.domEvent&&Re.domEvent.shiftKey,ce=Se,ue=Se;J&&Ue!==null?(ce=Math.min(Ue,Se),ue=Math.max(Ue,Se)):Ue=Se;let he=ce===ue?`#L${ce+1}`:`#L${ce+1}-L${ue+1}`,be=window.location.pathname+window.location.search+he;e.preview||window.history.replaceState(null,"",be),me(ce,ue),Re.stop()});let Xe=o(window,"hashchange",()=>qe(!1));j.setFontSize(e.aceOption.fontSize),j.setOptions({fontFamily:"'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace"}),j.container.style.lineHeight="20px",j.renderer.setPadding(16),j.renderer.setScrollMargin(12,12,0,0),j.renderer.updateFontSize(),j.setReadOnly(e.aceOption.readOnly),j.setKeyboardHandler(e.aceOption.keyBinding),j.setSelectionStyle(e.aceOption.fullLineSelection?"line":"text"),j.setOption("displayIndentGuides",!1),j.setHighlightActiveLine(e.aceOption.highlightActiveLine),e.aceOption.cursor=="hide"&&(j.renderer.$cursorLayer.element.style.display="none"),j.setHighlightGutterLine(e.aceOption.highlightGutterLine),j.setShowInvisibles(e.aceOption.showInvisibles),j.setDisplayIndentGuides(e.aceOption.showIndentGuides),j.renderer.setShowPrintMargin(e.aceOption.showPrintMargin),j.setHighlightSelectedWord(e.aceOption.highlightSelectedWord),j.session.setUseSoftTabs(e.aceOption.useSoftTab),j.session.setTabSize(e.aceOption.tabSize),j.setBehavioursEnabled(e.aceOption.enableBehaviours),j.setFadeFoldWidgets(e.aceOption.fadeFoldWidgets);let ze=()=>!e.preview||j.isFocused(),lt=o(window,"keydown",Re=>{if((Re.ctrlKey||Re.metaKey)&&!Re.altKey&&Re.key.toLowerCase()==="g"&&document.body.contains(j.container)&&ze()){Re.preventDefault(),e.gotoLine();return}if(Re.altKey&&!Re.ctrlKey&&!Re.metaKey&&Re.key.toLowerCase()==="z"&&document.body.contains(j.container)&&ze()){Re.preventDefault(),e.toggleWrap();return}(Re.ctrlKey||Re.metaKey)&&!Re.altKey&&Re.key.toLowerCase()==="f"&&document.body.contains(j.container)&&ze()&&(Re.preventDefault(),e.findInFile())});return()=>{Xe(),lt()}}},e.isDarkMode&&(e.aceOption.theme="nord_dark"),e.type=se(q)},e.renderFileContent=function(I,q,E,L){if(e.type=q,e.content=I,e.sourceContent=I,e.content==""&&(e.content=null),e.type=="md"&&(e.content=renderMD(I,E),e.type="html"),e.type=="org"){let j=contentAbs2Relative(I);var G=new Org.Parser().parse(j).convert(Org.ConverterHTML,{headerOffset:1,exportFromLineNumber:!1,suppressSubScriptHandling:!0,suppressAutoLink:!1});e.content=DOMPurify.sanitize(G.toString()),e.type="html"}e.type=="code"&&L=="application/octet-stream"&&(e.type="binary",e.content="binary"),i.timeout(()=>{Prism.highlightAll()},50)};let _=["image","media","audio","pdf","IPython","binary"],z=["file_too_big","file_not_found","file_not_accessible","file_not_supported","folder_not_supported"];e.fileFrame=()=>e.filePath?_.includes(e.type)?e.content!=null:e.type==="error"?z.includes(e.content):e.content==null&&["code","text"].includes(e.type):!1,e.fileKind=()=>{let I=(e.paths||[])[(e.paths||[]).length-1]||"",q=I.lastIndexOf("."),E=q>0?I.slice(q+1).toUpperCase():"";if(e.type==="image")return(E==="JPG"?"JPEG":E)+" image";let L={WEBM:"WebM",OGG:"Ogg",OGV:"Ogg",MOV:"QuickTime",M4V:"M4V",MKV:"Matroska"};return e.type==="media"?(L[E]||E)+" video":e.type==="audio"?E+" audio":e.type==="pdf"?"PDF":e.type==="IPython"?"Jupyter notebook":e.type==="binary"?"Binary file":e.languageName||(E?E+" file":"File")},e.imageSize="",e.onImageLoad=I=>{let q=I.target;q?.naturalWidth&&(e.imageSize=`${q.naturalWidth} \xD7 ${q.naturalHeight}`)},o(document,"click",I=>{e.preview&&(I.target.closest?.(".symbols")||(e.symbolsOpen=!1),I.target.closest?.(".tb-more")||(e.moreOpen=!1),I.target.closest?.(".tb-toc-m")||(e.tocOpen=!1),I.target.isConnected&&!I.target.closest?.(".goto-pop, .btn-goto, .tb-more")&&(e.gotoOpen=!1))})};function Ta(e,t,s){let i,o=!1,r="form-draft:"+s,u=()=>Object.fromEntries(t.map(g=>[g,e[g]])),p=()=>JSON.stringify(u()),c=g=>{for(let k of t)Object.prototype.hasOwnProperty.call(g,k)&&(e[k]=g[k]);e.options?.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate))},v=()=>{try{window.sessionStorage.removeItem(r)}catch{}},h=(g=!1)=>{if(i!==void 0){if(g&&document.querySelectorAll("input, select, textarea").forEach(k=>{k._field?.binding.state===e&&k._field.timer&&k._field.commit()}),e.unsavedChanges=p()!==i,e.draftSaved=!1,!e.unsavedChanges){v();return}try{window.sessionStorage.setItem(r,JSON.stringify({account:e.user?.username||null,savedAt:Date.now(),values:u()})),e.draftSaved=!0}catch{}}},y=()=>h(!0);return e.on("routeLeave",y),window.addEventListener("beforeunload",y),e.on("dispose",()=>window.removeEventListener("beforeunload",y)),{restore(){i=p();let g;try{g=JSON.parse(window.sessionStorage.getItem(r)||"null")}catch{}let k=g&&g.account===(e.user?.username||null)&&Date.now()-g.savedAt<30*6e4&&g.values;return k&&(c(g.values),e.draftRestored=!0),o||(o=!0,e.watch(()=>u(),()=>h(),!0)),e.unsavedChanges=p()!==i,!!k},checkpoint(){return document.querySelectorAll("input, select, textarea").forEach(g=>{g._field?.binding.state===e&&g._field.timer&&g._field.commit()}),JSON.parse(p())},accept(g){i=JSON.stringify(g),e.draftRestored=!1,h()},discard(){document.querySelectorAll("input, select, textarea").forEach(g=>{g._field?.binding.state!==e||!g._field.timer||(clearTimeout(g._field.timer),g._field.timer=null,g.value=g._field.binding.value??"")}),i!==void 0&&c(JSON.parse(i)),e.draftRestored=!1,h()},clear(){i=p(),e.unsavedChanges=!1,e.draftRestored=!1,e.draftSaved=!1,v()}}}function Ku(e,t){e.errorSource="central",e.logView={search:"",severity:"",sort:"recent"},e.selectedLog=null,e.logDetailTab="overview",e.logSeverity=y=>Number(y?.status||y?.httpStatus)>=500||["error","fatal"].includes(y?.severity)?"error":y?.severity==="warn"?"warn":"info",e.filteredLogGroups=()=>{let y=e.logView.search.trim().toLowerCase();return(e.logData?.groups||[]).filter(g=>(!e.logView.severity||e.logSeverity(g.sample)===e.logView.severity)&&(!y||Object.values(g.sample).join(" ").toLowerCase().includes(y))).slice().sort((g,k)=>e.logView.sort==="count"?k.count-g.count:Date.parse(k.last)-Date.parse(g.last))},e.shortLogId=y=>y?y.slice(0,8):"",e.isLogIdentifier=(y,g)=>typeof g=="string"&&g.length>16&&/(?:id|sha|release)$/i.test(y),e.compactLogValue=y=>String(y).slice(0,8)+"\u2026"+String(y).slice(-4),e.logCopyStatus="",e.copyLogValue=async y=>{try{await navigator.clipboard.writeText(String(y)),e.logCopyStatus="Full value copied"}catch{e.logCopyStatus="Copy unavailable. Expand the value to select it."}},e.logExplanation=y=>{let g=y.service||"The application",k={job_failed:"reported a failed job",request_failed:"reported a failed request",request_aborted:"reported an aborted request",edge_request:"recorded an edge request",http_access:"recorded an HTTP request"}[y.event]||"recorded \u201C"+(y.event||"application event")+"\u201D",w=Number(y.status||y.httpStatus),S={502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout"}[w];return g+" "+k+(w?" with HTTP "+w+(S?" ("+S+")":""):"")+"."},e.logEvidence=y=>[y.errorCode?"Recorded error code: "+y.errorCode+".":"No error code was included in this sample.",y.ms!==void 0?"Recorded duration: "+y.ms+" ms.":"",y.attempt!==void 0?"Recorded attempt: "+y.attempt+".":"",y.queue?"Queue: "+y.queue+".":""].filter(Boolean).join(" "),e.occurrenceTime=y=>Number.isFinite(Date.parse(y))?new Date(y).toLocaleString(void 0,{dateStyle:"medium",timeStyle:"medium"}):"Time not captured",e.historyOccurrences=y=>(y?._related||[]).slice().sort((g,k)=>Date.parse(k.ts)-Date.parse(g.ts)),e.historyDetailFields=y=>{try{let g=JSON.parse(y?._detailJson||"{}");return g&&typeof g=="object"?Object.entries(g):[["value",g]]}catch{return[["record",y?._detailJson||""]]}},e.logFieldText=y=>typeof y=="object"?JSON.stringify(y):String(y??""),e.captureErrorScroll=y=>{let g=[];for(let k=y?.parentElement;k;k=k.parentElement)g.push({element:k,top:k.scrollTop,left:k.scrollLeft});return g},e.restoreErrorScroll=y=>y.forEach(({element:g,top:k,left:w})=>{g.isConnected&&(g.scrollTop=k,g.scrollLeft=w)});let s=null,i=null,o=null,r=[];e.selectLog=async(y,g)=>{if(i=g||document.activeElement,r=e.captureErrorScroll(i),c++,e.trace=null,e.traceSelection=null,e.traceLoading=!1,e.logDetailTab="overview",e.selectedLog=y,await Ge(),v||e.selectedLog!==y||e.errorSource!=="central")return;document.getElementById("log-detail-title")?.focus({preventScroll:!0}),document.querySelector(".log-inspector")?.scrollIntoView?.({block:"start"});let k=["requestId","jobId"].find(w=>e.logTraceId(y,w));k&&e.lookupTrace(k,y.sample[k],document.getElementById("trace-selector-"+k),y.sample,!0)},e.closeLogDetail=async()=>{e.selectedLog=null,c++,e.trace=null,e.traceSelection=null,e.traceLoading=!1,await Ge(),i?.isConnected?(i.focus({preventScroll:!0}),e.restoreErrorScroll(r)):document.getElementById("error-source-central")?.focus()},e.logFilters={window:"1h",service:"",release:""},e.logAppliedFilters={...e.logFilters},e.logData=null,e.logLoading=!1,e.logFailure="",e.logSnapshotStale=!1,e.trace=null,e.traceLoading=!1,e.traceSelection=null;let u=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i,p=0,c=0,v=!1;e.logStateText=y=>({ready:"Central logs available",empty:"No warnings, errors or HTTP 5xx returned in this window",disabled:"Central lookup is not configured. Application history is available in the other source.",misconfigured:"Central lookup configuration is invalid. Ask an operator to check it.",unreachable:"Central logging is unreachable. Application history is available in the other source.",busy:"Central lookup is busy. Retry shortly.",partial:"Partial results: a result limit or invalid record reduced coverage.",stale:"Central logging responds, but expected application telemetry is stale or missing."})[y]||"Central log status has not been checked",e.refreshLogs=async()=>{let y=++p,g={...e.logFilters};e.logLoading=!0,e.logFailure="",e.trace=null,e.traceSelection=null,e.traceLoading=!1,e.selectedLog=null,c++;try{let k=await t.get("/api/admin/errors/investigation",{params:g});if(v||y!==p)return;e.logData=k.data,e.logAppliedFilters=g,e.logSnapshotStale=!!k.data?.end&&Date.now()-Date.parse(k.data.end)>9e4}catch(k){if(v||y!==p)return;e.logData=null,e.logFailure=k?.status===400?"Use a Git release SHA or \u2018unknown\u2019 and retry.":"Could not load central log status. Retry or open Application history."}finally{!v&&y===p&&(e.logLoading=!1)}},e.lookupTrace=async(y,g,k,w,S=!1)=>{if(!["requestId","jobId"].includes(y)||!u.test(g||""))return;e.errorSource==="central"&&e.selectedLog&&(e.logDetailTab="timeline"),e.errorSource==="history"&&(e.historyView="timeline"),o=e.errorSource,s=k||document.activeElement;let N=++c;if(e.traceSelection={kind:y,id:g,context:w?{event:w.errorCode||w.event||w.displayMessage||w.message,service:w.service||w.module}:null},e.trace=null,e.traceLoading=!0,await Ge(),v||N!==c)return;let b=document.getElementById("log-timeline-title");S||(b?.focus(),b?.scrollIntoView?.({block:"nearest"}));try{let T=await t.get("/api/admin/errors/correlation",{params:{kind:y,id:g,window:e.logData?.window||e.logAppliedFilters.window}});!v&&N===c&&(e.trace=T.data)}catch{!v&&N===c&&(e.trace={state:"unreachable",events:[]})}finally{!v&&N===c&&(e.traceLoading=!1)}},e.showLogTimeline=y=>{if(e.logDetailTab="timeline",e.traceSelection)return;let g=["requestId","jobId"].find(k=>e.logTraceId(e.selectedLog,k));g&&e.lookupTrace(g,e.selectedLog.sample[g],y,e.selectedLog.sample)},e.closeTrace=async()=>{e.logDetailTab="overview",e.historyView="overview",c++,e.trace=null,e.traceSelection=null,e.traceLoading=!1,await Ge(),s?.isConnected&&o===e.errorSource?s.focus():document.getElementById("error-source-"+e.errorSource)?.focus()},e.logTraceId=(y,g)=>{let k=y?.sample?.[g]||y?.raw?.find(w=>w&&typeof w=="object")?.[g];return u.test(k||"")?k:null},e.watch("errorSource",()=>{c++,e.trace=null,e.traceSelection=null,e.traceLoading=!1,e.selectedLog=null,e.historySelected=null,e.historyView="overview",e.expanded={}},!1,!1);let h=window.setInterval(()=>{e.logSnapshotStale=!!e.logData?.end&&Date.now()-Date.parse(e.logData.end)>9e4},15e3);e.on("dispose",()=>{v=!0,p++,c++,window.clearInterval(h)}),e.refreshLogs()}var Ia={};bf(Ia,{bigNum:()=>Cg,date:()=>nr,dateEcho:()=>Aa,diff:()=>Ng,duration:()=>Fn,filter:()=>Dg,humanFileSize:()=>kg,humanTime:()=>Pa,limitTo:()=>Pg,money:()=>Rg,number:()=>Da,orderBy:()=>Ag,plural:()=>Ig,shortDate:()=>or,statusLabel:()=>Eg,statusMsg:()=>tr,title:()=>Sg,uppercase:()=>Tg});var kg=e=>String(window.humanFileSize(e)).replace(/([KMGTPEZY])iB$/,"$1B").replace(/\.0 ([KMGTPEZY]?B)$/," $1"),Cg=(function(){return function(t){let s=Number(t)||0,i=Math.abs(s);return i<1e3?String(s):i<1e4?(s/1e3).toFixed(1).replace(/\.0$/,"")+"k":i<1e6?Math.round(s/1e3)+"k":i<1e7?(s/1e6).toFixed(1).replace(/\.0$/,"")+"M":Math.round(s/1e6)+"M"}})(),Pa=(function(){return function(t){if(!t)return"never";var s=null;t instanceof Date&&(s=t,t=Math.round((Date.now()-t)/1e3)),(typeof t=="string"||typeof t=="number")&&(s=new Date(t),t=Math.round((Date.now()-s)/1e3));var i=t<0?"from now":"ago";if(Math.abs(t)>7200*24)return(s&&!isNaN(s)?s:new Date(Date.now()-t*1e3)).toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric"});t=Math.abs(t);for(var o=[t/60/60/24/365,t/60/60/24/30,t/60/60/24/7,t/60/60/24,t/60/60,t/60,t],r=["year","month","week","day","hour","minute","second"],u=0;u1&&(c+="s"),p>=1)return p+" "+c+" "+i}return"0 seconds "+i}})(),Sg=(function(){return function(e){if(!e)return e;e=e.toLowerCase();var t=e.split(" "),s=t.map(function(i){return i.charAt(0).toUpperCase()+i.substring(1,i.length)});return s.join(" ")}})(),Eg=(function(){var e={ready:"Ready",error:"Error",expired:"Expired",expiring:"Expiring",removed:"Removed",removing:"Removing",queue:"Queued",download:"Downloading",downloaded:"Downloaded",preparing:"Preparing",anonymizing:"Anonymizing"};return function(t){if(!t)return"";if(e[t])return e[t];var s=String(t).replace(/[_-]+/g," ").toLowerCase();return s.charAt(0).toUpperCase()+s.slice(1)}})(),tr=(function(){var e={branch_not_found:"Branch not found on GitHub",repo_not_found:"Repository not found on GitHub",repository_not_found:"Repository not found on GitHub",repo_not_accessible:"Repository is not accessible with your token",pr_not_found:"Pull request not found on GitHub",gist_not_found:"Gist not found on GitHub",commit_not_found:"Commit not found on GitHub",repo_too_big:"Repository exceeds the size limit",repository_too_big:"Repository exceeds the size limit",quota_exceeded:"Hosting allowance exceeded",quota_repository_limit:"Repository limit reached",quota_storage_limit:"Storage allowance exceeded",incomplete_record:"Incomplete record: missing identifier"};return function(t){if(!t)return t;var s=t.match(/^rate_limited:(\d+)$/);if(s){var i=Math.max(0,Math.ceil((parseInt(s[1],10)-Date.now())/1e3));if(i<=0)return"Rate limited \u2014 resuming soon";var o=Math.floor(i/60),r=i%60;return"Rate limited \u2014 retrying in "+(o>0?o+"m "+r+"s":r+"s")}if(e[t])return e[t];var u=/^([a-z0-9]+(?:_[a-z0-9]+)+):\s*\S/.exec(t);if(u){if(e[u[1]])return e[u[1]];var p=u[1].replace(/_/g," ");return p.charAt(0).toUpperCase()+p.slice(1)}if(/^[a-z0-9]+(_[a-z0-9]+)+$/.test(t)){var c=t.replace(/_/g," ");return c.charAt(0).toUpperCase()+c.slice(1)}return t}})(),Ng=(function(e){let t=i=>i.replace(/&/g,"&").replace(//g,">");function s(i,o){if(!o)return;let r=o.newPath&&o.newPath!=="/dev/null"?o.newPath:o.oldPath||"",u=o.oldPath==="/dev/null"?"added":o.newPath==="/dev/null"?"deleted":o.oldPath&&o.newPath&&o.oldPath!==o.newPath?"renamed":"modified";if(i.push('
'),i.push('
'+t(r)+''+u+"
"),o.lines.length){i.push('');for(let p of o.lines)i.push('");i.push("
'+(p.oldNo||"")+''+(p.newNo||"")+''+(p.kind==="add"?"+":p.kind==="remove"?"-":"")+''+t(p.text)+"
")}i.push("
")}return function(i){if(!i)return i;let o=[],r=null,u=0,p=0,c=()=>(r||(r={oldPath:"",newPath:"",lines:[]}),r),v=()=>{r&&(r.lines.length||r.oldPath||r.newPath)&&(s(o,r),r=null)},h=i.split(` -`);for(let y=0;ye});function Da(e,t){return e==null?"":Number(e).toLocaleString(void 0,t==null?{}:{minimumFractionDigits:t,maximumFractionDigits:t})}function Rg(e,t="EUR"){let s=Number(e)||0;return new Intl.NumberFormat(void 0,{style:"currency",currency:t,minimumFractionDigits:s%1?2:0,maximumFractionDigits:2}).format(s)}function Tg(e){return String(e??"").toUpperCase()}function Pg(e,t,s=0){return(e||[]).slice(s,s+t)}function Dg(e,t){return Array.isArray(e)?typeof t=="function"?e.filter(t):e:[]}function Ag(e,t){if(!t)return e||[];let s=Array.isArray(t)?t:[t];return[...e||[]].sort((i,o)=>{for(let r of s){let u=r[0]==="-"?-1:1;r=r.replace(/^[+-]/,"");let p=r.split(".").reduce((v,h)=>v?.[h],i),c=r.split(".").reduce((v,h)=>v?.[h],o);if(typeof p=="string"&&(p=p.toLowerCase()),typeof c=="string"&&(c=c.toLowerCase()),p!==c)return(p==null?-1:c==null?1:pi[o])}function Ig(e,t){return(t?.[e]??t?.[e===1?"one":"other"]??"").replace(/\{\}/g,e??0)}function Aa(e){if(!e)return"";let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(String(e)),s=t?new Date(+t[1],+t[2]-1,+t[3]):new Date(e);if(isNaN(s))return"";let i=s.toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"}),o=new Date;o.setHours(0,0,0,0);let r=Math.round((s-o)/864e5),u;if(r===0)u="today";else if(r===1)u="tomorrow";else if(r===-1)u="yesterday";else{let p=Math.abs(r),c=Math.round(p/30.44),v=p<14?[p,"day"]:p<60?[Math.round(p/7),"week"]:c<18?[c,"month"]:[Math.round(p/365.25),"year"],h=v[0]+" "+v[1]+(v[0]===1?"":"s");u=r>0?"in "+h:h+" ago"}return i+" \xB7 "+u}function Fn(e){if(e==null||e===""||isNaN(e))return"";e=Number(e);let t="\u202F";if(e<1e3)return+(e<10?e.toFixed(2):e<100?e.toFixed(1):Math.round(e))+t+"ms";let s=e/1e3;if(s<60)return+(s<10?s.toFixed(2):s.toFixed(1))+t+"s";let i=r=>String(r).padStart(2,"0"),o=Math.round(s);return o<3600?Math.floor(o/60)+"m "+i(o%60)+"s":Math.floor(o/3600)+"h "+i(Math.floor(o%3600/60))+"m"}function or(e){if(!e)return"";let t=new Date(e);if(isNaN(t))return"";let s={day:"numeric",month:"short"};return t.getFullYear()!==new Date().getFullYear()&&(s.year="numeric"),t.toLocaleDateString(void 0,s)}var ir=e=>["preparing","download","downloading","downloaded","queue","anonymizing"].includes(e)?"preparing":e==="expiring"?"expired":e==="removing"?"removed":e;function rr(e,{flags:t,keys:s,count:i,onChange:o=()=>{}}){if(e.segView=()=>{let r=t()||{};if(s.every(p=>!!r[p]))return"all";let u=s.filter(p=>!!r[p]);return u.length===1?u[0]:"custom"},e.setSegView=r=>{let u=t();if(u){for(let p of s)u[p]=r==="all"?!0:p===r;o()}},e.segCount=r=>r==="all"?s.reduce((u,p)=>u+i(p),0):i(r),t()&&e.segView()==="custom")for(let r of s)t()[r]=!0}var Yu=function(e,t,s){let i=yt(),o=Ht();tc(i,o),e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.repositories=[],e.total=-1,e.totalPage=0,e.statusCounts=[],e.totalSize=0,e.selected={},e.allSelected=!1;let r=S=>{if(S.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){S.preventDefault();let N=document.querySelector('.admin-filter-toolbar input[type="search"]');N&&N.focus()}};o(document,"keydown",r),e.on("dispose",()=>document.removeEventListener("keydown",r)),e.clearFilter=S=>{S==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[S]="",e.query.page=1},e.chips=[];let u=()=>{let S=[];e.query.owner&&S.push({key:"owner",label:"Owner",value:e.query.owner}),e.query.conference&&S.push({key:"conference",label:"Conference",value:e.query.conference}),e.chips=S};e.showStatusMessage=S=>{let N=S.statusMessage||"(no message)";window.prompt(`Status message for ${S.repoId} (${S.status}):`,N)},e.fetchGithubInfo=S=>{let N=window.open("","_blank");N&&N.document.write("
Loading GitHub info for "+S.repoId+"...
"),t.get("/api/admin/repos/"+S.repoId+"/github").then(b=>{N&&(N.document.open(),N.document.write('
'+JSON.stringify(b.data,null,2).replace(/[<>]/g,T=>T==="<"?"<":">")+"
"),N.document.close())},b=>{let T=b&&b.data?JSON.stringify(b.data,null,2):String(b);N&&(N.document.body.innerHTML='
'+T+"
")})},e.statusCountFor=S=>{let N=(e.statusCounts||[]).find(b=>b._id===S);return N?N.count:0},e.statusStorageFor=S=>{let N=(e.statusCounts||[]).find(b=>b._id===S);return N?N.storage:0},e.isErrorsOnly=()=>e.query&&e.query.error&&!e.query.ready&&!e.query.preparing&&!e.query.expired&&!e.query.removed,e.toggleErrorsOnly=()=>{e.isErrorsOnly()?Object.assign(e.query,{ready:!1,preparing:!0,expired:!1,removed:!1,error:!0}):Object.assign(e.query,{ready:!1,preparing:!1,expired:!1,removed:!1,error:!0}),e.query.page=1},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=S=>{e.query.sort===S?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=S,e.query.direction="desc"),e.query.page=1},e.sortIcon=S=>e.query.sort===S?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let p="admin.repos.filterPrefs",c={page:1,limit:25,sort:"lastView",direction:"desc",search:"",owner:"",conference:"",dateFrom:"",dateTo:"",ready:!0,expired:!0,removed:!0,error:!0,preparing:!0},v=loadFilterPrefs(p)||{};e.query=Object.assign({},c,v,{page:1,search:""});let h=s.search();h.owner&&(e.query.owner=h.owner),h.conference&&(e.query.conference=h.conference),h.search&&(e.query.search=h.search);let y="admin.repos.presets";e.presets=JSON.parse(localStorage.getItem(y)||"[]"),e.savePreset=()=>{let S=window.prompt("Preset name:");if(!S)return;let N=Object.assign({},e.query);delete N.page,e.presets=(e.presets||[]).filter(b=>b.name!==S),e.presets.push({name:S,query:N}),localStorage.setItem(y,JSON.stringify(e.presets))},e.applyPreset=S=>{Object.assign(e.query,S.query,{page:1})},e.deletePreset=S=>{e.presets=(e.presets||[]).filter(N=>N.name!==S.name),localStorage.setItem(y,JSON.stringify(e.presets))},e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.repositories.forEach(S=>{e.selected[S.repoId]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedRepos=()=>e.repositories.filter(S=>e.selected[S.repoId]),e.bulkRefresh=()=>{let S=e.selectedRepos();S.length&&confirm(`Force refresh ${S.length} repositories?`)&&S.forEach(N=>e.updateRepository(N))},e.bulkRemoveCache=()=>{let S=e.selectedRepos();S.length&&confirm(`Purge cache for ${S.length} repositories?`)&&S.forEach(N=>e.removeCache(N))},e.clearSelection=()=>{e.selected={},e.allSelected=!1},e.exportCsv=()=>{let S=new URLSearchParams(Object.entries(e.query).filter(([,N])=>N!==""&&N!==!1&&N!=null));S.set("format","csv"),S.set("limit","10000"),window.open("/api/admin/repos?"+S.toString(),"_blank")},e.removeCache=S=>{confirm("Remove cached files for "+S.repoId+"?")&&t.delete("/api/admin/repos/"+S.repoId).then(()=>g(),N=>console.error(N))},e.removeRepository=S=>{confirm("Remove repository "+S.repoId+"?")&&t.delete("/api/repo/"+S.repoId+"/").then(()=>g(),N=>console.error(N))},e.updateRepository=S=>{let N=rt({title:`Refreshing ${S.repoId}...`,date:new Date,body:`The repository ${S.repoId} is going to be refreshed.`});e.toasts.push(N),t.post(`/api/repo/${S.repoId}/refresh`).then(b=>{b.data.status=="ready"?N.title=`${S.repoId} is refreshed.`:N.title=`Refreshing of ${S.repoId}.`},b=>{N.title=`Error during the refresh of ${S.repoId}.`,N.body=b.body})},e.filtersOpen=!1,e.fetchError=null;function g(){e.fetchError=null,t.get("/api/admin/repos",{params:e.query}).then(S=>{e.total=S.data.total,e.totalPage=Math.ceil(S.data.total/e.query.limit),e.repositories=S.data.results,e.allSelected=!1},S=>{e.fetchError=S&&S.data&&S.data.error||"Failed to load repositories",console.error(S)})}function k(){let S=Object.assign({},e.query,{page:1,limit:1,ready:!0,expired:!0,removed:!0,error:!0,preparing:!0});t.get("/api/admin/repos",{params:S}).then(N=>{e.statusCounts=N.data.statusCounts||[],e.totalSize=N.data.totalSize||0},()=>{})}e.showAllStatuses=()=>Object.assign(e.query,{ready:!0,expired:!0,removed:!0,error:!0,preparing:!0,page:1}),rr(e,{flags:()=>e.query,keys:["ready","preparing","error","expired","removed"],count:S=>S==="preparing"?e.statusCountFor("preparing")+e.statusCountFor("download"):S==="expired"?e.statusCountFor("expired")+e.statusCountFor("expiring"):S==="removed"?e.statusCountFor("removed")+e.statusCountFor("removing"):e.statusCountFor(S),onChange:()=>{e.query.page=1}}),g(),k();let w=null;e.watch("query",()=>{i.timeout.cancel(w),w=i.timeout(()=>{g(),k()},500);let{page:S,search:N,...b}=e.query;saveFilterPrefs(p,b),u()},!0),u()},Ju=function(e,t,s){let i=yt(),o=Ht();e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.users=[],e.total=-1,e.totalPage=0,e.statusCounts=[],e.selected={},e.allSelected=!1;let r=g=>{if(g.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){g.preventDefault();let k=document.querySelector('.admin-filter-toolbar input[type="search"]');k&&k.focus()}};o(document,"keydown",r),e.on("dispose",()=>document.removeEventListener("keydown",r)),e.clearFilter=g=>{g==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[g]="",e.query.page=1},e.chips=[];let u=()=>{let g=[];e.query.role&&g.push({key:"role",label:"Role",value:e.query.role}),e.chips=g};e.statusCountFor=g=>{let k=(e.statusCounts||[]).find(w=>w._id===g);return k?k.count:0},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=g=>{e.query.sort===g?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=g,e.query.direction="desc"),e.query.page=1},e.sortIcon=g=>e.query.sort===g?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let p="admin.users.filterPrefs",c={page:1,limit:25,sort:"username",direction:"asc",search:"",status:"",role:"",dateFrom:"",dateTo:""},v=loadFilterPrefs(p)||{};e.query=Object.assign({},c,v,{page:1,search:""}),e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.users.forEach(g=>{e.selected[g.username]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedUsers=()=>e.users.filter(g=>e.selected[g.username]),e.banUser=g=>{confirm(`Ban user ${g.username}?`)&&t.post(`/api/admin/users/${g.username}/ban`).then(h,k=>console.error(k))},e.activateUser=g=>{t.post(`/api/admin/users/${g.username}/activate`).then(h,k=>console.error(k))},e.bulkBan=()=>{let g=e.selectedUsers();g.length&&confirm(`Ban ${g.length} users?`)&&g.forEach(k=>e.banUser(k))},e.exportCsv=()=>{let g=new URLSearchParams(Object.entries(e.query).filter(([,k])=>k!==""&&k!==!1&&k!=null));g.set("format","csv"),g.set("limit","10000"),window.open("/api/admin/users?"+g.toString(),"_blank")},e.fetchError=null;function h(){e.fetchError=null,t.get("/api/admin/users",{params:e.query}).then(g=>{e.total=g.data.total,e.totalPage=Math.ceil(g.data.total/e.query.limit),e.users=g.data.results,e.statusCounts=g.data.statusCounts||[],e.allSelected=!1},g=>{e.fetchError=g&&g.data&&g.data.error||"Failed to load users",console.error(g)})}h();let y=null;e.watch("query",()=>{i.timeout.cancel(y),y=i.timeout(h,500);let{page:g,search:k,...w}=e.query;saveFilterPrefs(p,w),u()},!0),u()},Xu=function(e,t,s,i){let o=yt();tc(o,Ht()),e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.userInfo,e.repositories=[],e.search="",e.selected={},e.allSelected=!1;let r="admin.user.filterPrefs",u={filters:{status:{ready:!0,expired:!0,removed:!0,error:!0,preparing:!0}},sort:"anonymizeDate",direction:"desc"},p=loadFilterPrefs(r)||{};e.filters={status:Object.assign({},u.filters.status,p.filters&&p.filters.status||{})},e.query={sort:p.sort||u.sort,direction:p.direction||u.direction},e.orderBy=(e.query.direction==="asc"?"":"-")+e.query.sort,e.sortBy=g=>{e.query.sort===g?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=g,e.query.direction="desc"),e.orderBy=(e.query.direction==="asc"?"":"-")+e.query.sort},e.sortIcon=g=>e.query.sort===g?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"",e.watch("query",()=>{saveFilterPrefs(r,{filters:e.filters,sort:e.query.sort,direction:e.query.direction})},!0),e.watch("filters",()=>{saveFilterPrefs(r,{filters:e.filters,sort:e.query.sort,direction:e.query.direction})},!0),e.statusCountFor=g=>(e.repositories||[]).filter(k=>ir(k.status)===g).length,rr(e,{flags:()=>e.filters.status,keys:["ready","preparing","error","expired","removed"],count:g=>e.statusCountFor(g)}),e.repoFiler=g=>e.filters.status[ir(g.status)]==!1?!1:!!(e.search.trim().length==0||g.source.fullName.indexOf(e.search)>-1||g.repoId.indexOf(e.search)>-1||g.statusMessage&&g.statusMessage.indexOf(e.search)>-1||g.conference&&g.conference.indexOf(e.search)>-1),e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,(e.filteredRepositories||e.repositories).forEach(g=>{e.selected[g.repoId]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedRepos=()=>e.repositories.filter(g=>e.selected[g.repoId]),e.bulkRefresh=()=>{let g=e.selectedRepos();g.length&&confirm(`Force refresh ${g.length} repositories?`)&&g.forEach(k=>e.updateRepository(k))},e.bulkRemoveCache=()=>{let g=e.selectedRepos();g.length&&confirm(`Purge cache for ${g.length} repositories?`)&&g.forEach(k=>e.removeCache(k))},e.clearSelection=()=>{e.selected={},e.allSelected=!1},e.exportCsv=()=>{let g=e.filteredRepositories||e.repositories,w=["repoId","status","statusMessage","pageView","anonymizeDate","source.fullName","conference","size.storage"].join(","),S=g.map(T=>[T.repoId,T.status,T.statusMessage||"",T.pageView||0,T.anonymizeDate||"",T.source&&T.source.fullName||"",T.conference||"",T.size&&T.size.storage||0].map(O=>{let F=String(O??"");return/[",\n\r]/.test(F)?'"'+F.replace(/"/g,'""')+'"':F}).join(",")),N=new Blob([w+` +`&&Y++,L.push(G),E.push(L),L=[],G=""):G+=ne}return(G!==""||L.length)&&(L.push(G),E.push(L)),E.filter(Y=>Y.length>1||Y[0]!=="")};e.isCsv=()=>typeof e.content=="string"&&e.type!=="html"&&/\.(csv|tsv)$/i.test(e.filePath||"")&&e.content.length<=1024*1024,e.csvRows=()=>{if(O.content!==e.content){let I=/\.tsv$/i.test(e.filePath||"")?" ":",";O={content:e.content,rows:F(e.content,I)}}return O.rows},e.csvNumCol=I=>{let q=e.csvRows().slice(1).map(E=>E[I]).filter(E=>E!=null&&String(E).trim()!=="");return q.length>0&&q.every(E=>e.csvNumeric(E))},e.csvNumeric=I=>/^\s*[-+]?(\d[\d,]*)?(\.\d+)?(e[-+]?\d+)?%?\s*$/i.test(I)&&/\d/.test(I),e.redactParts=function(I){let q=[],E=0,L,G=/\bXXXX-(\d+)\b/g;for(I=String(I||"");L=G.exec(I);)L.index>E&&q.push({t:I.slice(E,L.index)}),q.push({n:L[1]}),E=L.index+L[0].length;return E{e.pathCopied=!1},1600))},e.contentCopied=!1,e.copyContent=async function(){if(typeof e.content!="string"||!window.navigator.clipboard?.writeText)return;let I=e.content;if(e.type==="html"&&e.url)if(e.preview)I=e.sourceContent;else try{I=await(await window.fetch(e.url,{credentials:"same-origin"})).text()}catch{return}await window.navigator.clipboard.writeText(I),e.contentCopied=!0,setTimeout(()=>{e.contentCopied=!1},1600)};function H(I){return r[I]?r[I]:I}function se(I){return I=="pdf"?"pdf":I=="html"||I=="htm"?"html-doc":["md","markdown","mdown","mkdn","mdx"].includes(I)?"md":I=="org"?"org":I=="ipynb"?"IPython":u.indexOf(I)>-1?"text":p.indexOf(I)>-1?"image":v.indexOf(I)>-1?"media":c.indexOf(I)>-1?"audio":"code"}e.downloadUrl=()=>e.preview?e.url:e.url+"&download=true",e.prepareFile=function(I){e.showSource=!1,e.allowScripts=!1,e.imageSize="",e.filePath=I,e.paths=I.split("/").filter(Boolean);let q=e.filePath.toLowerCase(),E=q.lastIndexOf(".");E>-1&&(q=q.substring(E+1));let L={javascript:"JavaScript",typescript:"TypeScript",tsx:"TSX",jsx:"JSX",python:"Python",java:"Java",c_cpp:"C/C++",csharp:"C#",golang:"Go",rust:"Rust",ruby:"Ruby",php:"PHP",html:"HTML",css:"CSS",scss:"SCSS",json:"JSON",yaml:"YAML",markdown:"Markdown",sh:"Shell",dockerfile:"Dockerfile",xml:"XML",sql:"SQL",kotlin:"Kotlin",swift:"Swift",scala:"Scala",r:"R",julia:"Julia",latex:"LaTeX",toml:"TOML",csv:"CSV",tsv:"TSV",text:""},G=H(q);e.languageName=L[G]??(G?G.charAt(0).toUpperCase()+G.slice(1):""),e.aceOption={readOnly:!0,useWrapMode:!0,showGutter:!0,theme:"chrome",useSoftTab:!0,tabSize:2,fontSize:window.matchMedia?.("(max-width: 767px)").matches?12:13,keyBinding:"vscode",fullLineSelection:!0,highlightActiveLine:!1,highlightGutterLine:!1,cursor:"hide",showInvisibles:!1,showIndentGuides:!1,showPrintMargin:!1,highlightSelectedWord:!1,enableBehaviours:!0,fadeFoldWidgets:!1,mode:H(q),onLoad:function(j){e.codeEditor=mn(j);{let Re=j.session,Se=Re.getTokens.bind(Re),J=/\bXXXX-\d+\b/g;if(Re.getTokens=function(ce){let ue=Se(ce);if(!ue.some(be=>be.value.indexOf("XXXX-")!==-1))return ue;let he=[];for(let be of ue){if(be.value.indexOf("XXXX-")===-1){he.push(be);continue}let Oe=0;J.lastIndex=0;let D;for(;D=J.exec(be.value);)D.index>Oe&&he.push({type:be.type,value:be.value.slice(Oe,D.index)}),he.push({type:"redacted.n"+D[0].slice(5),value:D[0]}),Oe=D.index+D[0].length;Oe`.ace_redacted.ace_n${he+1}::after{content:"${he+1}"}`).join(""),window.document.head.appendChild(ce)}j.renderer.updateFull(!0)}j.session.setUseWrapMode(e.wrapLines!==!1);let Y=j.container.closest?.(".file-card"),ne=()=>{if(!Y)return;let Re=j.renderer,Se=(Re.layerConfig?.width||0)-(Re.$size?.scrollerWidth||0);Y.classList.toggle("at-right-edge",Se<=2||Re.getScrollLeft()>=Se-2)};j.session.on("changeScrollLeft",ne),j.renderer.on("afterRender",ne),window.matchMedia?.("(max-width: 767px)").matches&&j.setOption("hScrollBarAlwaysVisible",!0);let x=ace.require("ace/range").Range,fe=null;function me(Re,Se){fe!==null&&(j.session.removeMarker(fe),fe=null),Re!=null&&(fe=j.session.addMarker(new x(Re,0,Se,1),"highlighted-line","fullLine"))}function qe(Re){let Se=!e.preview&&window.location.hash.match(/^#L(\d+)(?:-L(\d+))?/);if(!Se){me(null);return}let J=parseInt(Se[1])-1,ce=Se[2]?parseInt(Se[2])-1:J;me(J,ce),Re&&i.timeout(()=>{j.scrollToLine(J,!0,!0,function(){})},100)}qe(!0);let Ue=null;j.on("guttermousedown",function(Re){let Se=Re.getDocumentPosition().row,J=Re.domEvent&&Re.domEvent.shiftKey,ce=Se,ue=Se;J&&Ue!==null?(ce=Math.min(Ue,Se),ue=Math.max(Ue,Se)):Ue=Se;let he=ce===ue?`#L${ce+1}`:`#L${ce+1}-L${ue+1}`,be=window.location.pathname+window.location.search+he;e.preview||window.history.replaceState(null,"",be),me(ce,ue),Re.stop()});let Xe=o(window,"hashchange",()=>qe(!1));j.setFontSize(e.aceOption.fontSize),j.setOptions({fontFamily:"'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace"}),j.container.style.lineHeight="20px",j.renderer.setPadding(16),j.renderer.setScrollMargin(12,12,0,0),j.renderer.updateFontSize(),j.setReadOnly(e.aceOption.readOnly),j.setKeyboardHandler(e.aceOption.keyBinding),j.setSelectionStyle(e.aceOption.fullLineSelection?"line":"text"),j.setOption("displayIndentGuides",!1),j.setHighlightActiveLine(e.aceOption.highlightActiveLine),e.aceOption.cursor=="hide"&&(j.renderer.$cursorLayer.element.style.display="none"),j.setHighlightGutterLine(e.aceOption.highlightGutterLine),j.setShowInvisibles(e.aceOption.showInvisibles),j.setDisplayIndentGuides(e.aceOption.showIndentGuides),j.renderer.setShowPrintMargin(e.aceOption.showPrintMargin),j.setHighlightSelectedWord(e.aceOption.highlightSelectedWord),j.session.setUseSoftTabs(e.aceOption.useSoftTab),j.session.setTabSize(e.aceOption.tabSize),j.setBehavioursEnabled(e.aceOption.enableBehaviours),j.setFadeFoldWidgets(e.aceOption.fadeFoldWidgets);let ze=()=>!e.preview||j.isFocused(),lt=o(window,"keydown",Re=>{if((Re.ctrlKey||Re.metaKey)&&!Re.altKey&&Re.key.toLowerCase()==="g"&&document.body.contains(j.container)&&ze()){Re.preventDefault(),e.gotoLine();return}if(Re.altKey&&!Re.ctrlKey&&!Re.metaKey&&Re.key.toLowerCase()==="z"&&document.body.contains(j.container)&&ze()){Re.preventDefault(),e.toggleWrap();return}(Re.ctrlKey||Re.metaKey)&&!Re.altKey&&Re.key.toLowerCase()==="f"&&document.body.contains(j.container)&&ze()&&(Re.preventDefault(),e.findInFile())});return()=>{Xe(),lt()}}},e.isDarkMode&&(e.aceOption.theme="nord_dark"),e.type=se(q)},e.renderFileContent=function(I,q,E,L){if(e.type=q,e.content=I,e.sourceContent=I,e.content==""&&(e.content=null),e.type=="md"&&(e.content=renderMD(I,E),e.type="html"),e.type=="org"){let j=contentAbs2Relative(I);var G=new Org.Parser().parse(j).convert(Org.ConverterHTML,{headerOffset:1,exportFromLineNumber:!1,suppressSubScriptHandling:!0,suppressAutoLink:!1});e.content=DOMPurify.sanitize(G.toString()),e.type="html"}e.type=="code"&&L=="application/octet-stream"&&(e.type="binary",e.content="binary"),i.timeout(()=>{Prism.highlightAll()},50)};let _=["image","media","audio","pdf","IPython","binary"],z=["file_too_big","file_not_found","file_not_accessible","file_not_supported","folder_not_supported"];e.fileFrame=()=>e.filePath?_.includes(e.type)?e.content!=null:e.type==="error"?z.includes(e.content):e.content==null&&["code","text"].includes(e.type):!1,e.fileKind=()=>{let I=(e.paths||[])[(e.paths||[]).length-1]||"",q=I.lastIndexOf("."),E=q>0?I.slice(q+1).toUpperCase():"";if(e.type==="image")return(E==="JPG"?"JPEG":E)+" image";let L={WEBM:"WebM",OGG:"Ogg",OGV:"Ogg",MOV:"QuickTime",M4V:"M4V",MKV:"Matroska"};return e.type==="media"?(L[E]||E)+" video":e.type==="audio"?E+" audio":e.type==="pdf"?"PDF":e.type==="IPython"?"Jupyter notebook":e.type==="binary"?"Binary file":e.languageName||(E?E+" file":"File")},e.imageSize="",e.onImageLoad=I=>{let q=I.target;q?.naturalWidth&&(e.imageSize=`${q.naturalWidth} \xD7 ${q.naturalHeight}`)},o(document,"click",I=>{e.preview&&(I.target.closest?.(".symbols")||(e.symbolsOpen=!1),I.target.closest?.(".tb-more")||(e.moreOpen=!1),I.target.closest?.(".tb-toc-m")||(e.tocOpen=!1),I.target.isConnected&&!I.target.closest?.(".goto-pop, .btn-goto, .tb-more")&&(e.gotoOpen=!1))})};function Ta(e,t,s){let i,o=!1,r="form-draft:"+s,u=()=>Object.fromEntries(t.map(g=>[g,e[g]])),p=()=>JSON.stringify(u()),c=g=>{for(let k of t)Object.prototype.hasOwnProperty.call(g,k)&&(e[k]=g[k]);e.options?.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate))},v=()=>{try{window.sessionStorage.removeItem(r)}catch{}},h=(g=!1)=>{if(i!==void 0){if(g&&document.querySelectorAll("input, select, textarea").forEach(k=>{k._field?.binding.state===e&&k._field.timer&&k._field.commit()}),e.unsavedChanges=p()!==i,e.draftSaved=!1,!e.unsavedChanges){v();return}try{window.sessionStorage.setItem(r,JSON.stringify({account:e.user?.username||null,savedAt:Date.now(),values:u()})),e.draftSaved=!0}catch{}}},y=()=>h(!0);return e.on("routeLeave",y),window.addEventListener("beforeunload",y),e.on("dispose",()=>window.removeEventListener("beforeunload",y)),{restore(){i=p();let g;try{g=JSON.parse(window.sessionStorage.getItem(r)||"null")}catch{}let k=g&&g.account===(e.user?.username||null)&&Date.now()-g.savedAt<30*6e4&&g.values;return k&&(c(g.values),e.draftRestored=!0),o||(o=!0,e.watch(()=>u(),()=>h(),!0)),e.unsavedChanges=p()!==i,!!k},checkpoint(){return document.querySelectorAll("input, select, textarea").forEach(g=>{g._field?.binding.state===e&&g._field.timer&&g._field.commit()}),JSON.parse(p())},accept(g){i=JSON.stringify(g),e.draftRestored=!1,h()},discard(){document.querySelectorAll("input, select, textarea").forEach(g=>{g._field?.binding.state!==e||!g._field.timer||(clearTimeout(g._field.timer),g._field.timer=null,g.value=g._field.binding.value??"")}),i!==void 0&&c(JSON.parse(i)),e.draftRestored=!1,h()},clear(){i=p(),e.unsavedChanges=!1,e.draftRestored=!1,e.draftSaved=!1,v()}}}function Yu(e,t){e.errorSource="central",e.logView={search:"",severity:"",sort:"recent"},e.selectedLog=null,e.logDetailTab="overview",e.logSeverity=y=>Number(y?.status||y?.httpStatus)>=500||["error","fatal"].includes(y?.severity)?"error":y?.severity==="warn"?"warn":"info",e.filteredLogGroups=()=>{let y=e.logView.search.trim().toLowerCase();return(e.logData?.groups||[]).filter(g=>(!e.logView.severity||e.logSeverity(g.sample)===e.logView.severity)&&(!y||Object.values(g.sample).join(" ").toLowerCase().includes(y))).slice().sort((g,k)=>e.logView.sort==="count"?k.count-g.count:Date.parse(k.last)-Date.parse(g.last))},e.shortLogId=y=>y?y.slice(0,8):"",e.isLogIdentifier=(y,g)=>typeof g=="string"&&g.length>16&&/(?:id|sha|release)$/i.test(y),e.compactLogValue=y=>String(y).slice(0,8)+"\u2026"+String(y).slice(-4),e.logCopyStatus="",e.copyLogValue=async y=>{try{await navigator.clipboard.writeText(String(y)),e.logCopyStatus="Full value copied"}catch{e.logCopyStatus="Copy unavailable. Expand the value to select it."}},e.logExplanation=y=>{let g=y.service||"The application",k={job_failed:"reported a failed job",request_failed:"reported a failed request",request_aborted:"reported an aborted request",edge_request:"recorded an edge request",http_access:"recorded an HTTP request"}[y.event]||"recorded \u201C"+(y.event||"application event")+"\u201D",w=Number(y.status||y.httpStatus),S={502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout"}[w];return g+" "+k+(w?" with HTTP "+w+(S?" ("+S+")":""):"")+"."},e.logEvidence=y=>[y.errorCode?"Recorded error code: "+y.errorCode+".":"No error code was included in this sample.",y.ms!==void 0?"Recorded duration: "+y.ms+" ms.":"",y.attempt!==void 0?"Recorded attempt: "+y.attempt+".":"",y.queue?"Queue: "+y.queue+".":""].filter(Boolean).join(" "),e.occurrenceTime=y=>Number.isFinite(Date.parse(y))?new Date(y).toLocaleString(void 0,{dateStyle:"medium",timeStyle:"medium"}):"Time not captured",e.historyOccurrences=y=>(y?._related||[]).slice().sort((g,k)=>Date.parse(k.ts)-Date.parse(g.ts)),e.historyDetailFields=y=>{try{let g=JSON.parse(y?._detailJson||"{}");return g&&typeof g=="object"?Object.entries(g):[["value",g]]}catch{return[["record",y?._detailJson||""]]}},e.logFieldText=y=>typeof y=="object"?JSON.stringify(y):String(y??""),e.captureErrorScroll=y=>{let g=[];for(let k=y?.parentElement;k;k=k.parentElement)g.push({element:k,top:k.scrollTop,left:k.scrollLeft});return g},e.restoreErrorScroll=y=>y.forEach(({element:g,top:k,left:w})=>{g.isConnected&&(g.scrollTop=k,g.scrollLeft=w)});let s=null,i=null,o=null,r=[];e.selectLog=async(y,g)=>{if(i=g||document.activeElement,r=e.captureErrorScroll(i),c++,e.trace=null,e.traceSelection=null,e.traceLoading=!1,e.logDetailTab="overview",e.selectedLog=y,await Ge(),v||e.selectedLog!==y||e.errorSource!=="central")return;document.getElementById("log-detail-title")?.focus({preventScroll:!0}),document.querySelector(".log-inspector")?.scrollIntoView?.({block:"start"});let k=["requestId","jobId"].find(w=>e.logTraceId(y,w));k&&e.lookupTrace(k,y.sample[k],document.getElementById("trace-selector-"+k),y.sample,!0)},e.closeLogDetail=async()=>{e.selectedLog=null,c++,e.trace=null,e.traceSelection=null,e.traceLoading=!1,await Ge(),i?.isConnected?(i.focus({preventScroll:!0}),e.restoreErrorScroll(r)):document.getElementById("error-source-central")?.focus()},e.logFilters={window:"1h",service:"",release:""},e.logAppliedFilters={...e.logFilters},e.logData=null,e.logLoading=!1,e.logFailure="",e.logSnapshotStale=!1,e.trace=null,e.traceLoading=!1,e.traceSelection=null;let u=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i,p=0,c=0,v=!1;e.logStateText=y=>({ready:"Central logs available",empty:"No warnings, errors or HTTP 5xx returned in this window",disabled:"Central lookup is not configured. Application history is available in the other source.",misconfigured:"Central lookup configuration is invalid. Ask an operator to check it.",unreachable:"Central logging is unreachable. Application history is available in the other source.",busy:"Central lookup is busy. Retry shortly.",partial:"Partial results: a result limit or invalid record reduced coverage.",stale:"Central logging responds, but expected application telemetry is stale or missing."})[y]||"Central log status has not been checked",e.refreshLogs=async()=>{let y=++p,g={...e.logFilters};e.logLoading=!0,e.logFailure="",e.trace=null,e.traceSelection=null,e.traceLoading=!1,e.selectedLog=null,c++;try{let k=await t.get("/api/admin/errors/investigation",{params:g});if(v||y!==p)return;e.logData=k.data,e.logAppliedFilters=g,e.logSnapshotStale=!!k.data?.end&&Date.now()-Date.parse(k.data.end)>9e4}catch(k){if(v||y!==p)return;e.logData=null,e.logFailure=k?.status===400?"Use a Git release SHA or \u2018unknown\u2019 and retry.":"Could not load central log status. Retry or open Application history."}finally{!v&&y===p&&(e.logLoading=!1)}},e.lookupTrace=async(y,g,k,w,S=!1)=>{if(!["requestId","jobId"].includes(y)||!u.test(g||""))return;e.errorSource==="central"&&e.selectedLog&&(e.logDetailTab="timeline"),e.errorSource==="history"&&(e.historyView="timeline"),o=e.errorSource,s=k||document.activeElement;let N=++c;if(e.traceSelection={kind:y,id:g,context:w?{event:w.errorCode||w.event||w.displayMessage||w.message,service:w.service||w.module}:null},e.trace=null,e.traceLoading=!0,await Ge(),v||N!==c)return;let b=document.getElementById("log-timeline-title");S||(b?.focus(),b?.scrollIntoView?.({block:"nearest"}));try{let T=await t.get("/api/admin/errors/correlation",{params:{kind:y,id:g,window:e.logData?.window||e.logAppliedFilters.window}});!v&&N===c&&(e.trace=T.data)}catch{!v&&N===c&&(e.trace={state:"unreachable",events:[]})}finally{!v&&N===c&&(e.traceLoading=!1)}},e.showLogTimeline=y=>{if(e.logDetailTab="timeline",e.traceSelection)return;let g=["requestId","jobId"].find(k=>e.logTraceId(e.selectedLog,k));g&&e.lookupTrace(g,e.selectedLog.sample[g],y,e.selectedLog.sample)},e.closeTrace=async()=>{e.logDetailTab="overview",e.historyView="overview",c++,e.trace=null,e.traceSelection=null,e.traceLoading=!1,await Ge(),s?.isConnected&&o===e.errorSource?s.focus():document.getElementById("error-source-"+e.errorSource)?.focus()},e.logTraceId=(y,g)=>{let k=y?.sample?.[g]||y?.raw?.find(w=>w&&typeof w=="object")?.[g];return u.test(k||"")?k:null},e.watch("errorSource",()=>{c++,e.trace=null,e.traceSelection=null,e.traceLoading=!1,e.selectedLog=null,e.historySelected=null,e.historyView="overview",e.expanded={}},!1,!1);let h=window.setInterval(()=>{e.logSnapshotStale=!!e.logData?.end&&Date.now()-Date.parse(e.logData.end)>9e4},15e3);e.on("dispose",()=>{v=!0,p++,c++,window.clearInterval(h)}),e.refreshLogs()}var Ia={};bf(Ia,{bigNum:()=>Cg,date:()=>nr,dateEcho:()=>Aa,diff:()=>Ng,duration:()=>Fn,filter:()=>Dg,humanFileSize:()=>kg,humanTime:()=>Pa,limitTo:()=>Pg,money:()=>Rg,number:()=>Da,orderBy:()=>Ag,plural:()=>Ig,shortDate:()=>or,statusLabel:()=>Eg,statusMsg:()=>tr,title:()=>Sg,uppercase:()=>Tg});var kg=e=>String(window.humanFileSize(e)).replace(/([KMGTPEZY])iB$/,"$1B").replace(/\.0 ([KMGTPEZY]?B)$/," $1"),Cg=(function(){return function(t){let s=Number(t)||0,i=Math.abs(s);return i<1e3?String(s):i<1e4?(s/1e3).toFixed(1).replace(/\.0$/,"")+"k":i<1e6?Math.round(s/1e3)+"k":i<1e7?(s/1e6).toFixed(1).replace(/\.0$/,"")+"M":Math.round(s/1e6)+"M"}})(),Pa=(function(){return function(t){if(!t)return"never";var s=null;t instanceof Date&&(s=t,t=Math.round((Date.now()-t)/1e3)),(typeof t=="string"||typeof t=="number")&&(s=new Date(t),t=Math.round((Date.now()-s)/1e3));var i=t<0?"from now":"ago";if(Math.abs(t)>7200*24)return(s&&!isNaN(s)?s:new Date(Date.now()-t*1e3)).toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric"});t=Math.abs(t);for(var o=[t/60/60/24/365,t/60/60/24/30,t/60/60/24/7,t/60/60/24,t/60/60,t/60,t],r=["year","month","week","day","hour","minute","second"],u=0;u1&&(c+="s"),p>=1)return p+" "+c+" "+i}return"0 seconds "+i}})(),Sg=(function(){return function(e){if(!e)return e;e=e.toLowerCase();var t=e.split(" "),s=t.map(function(i){return i.charAt(0).toUpperCase()+i.substring(1,i.length)});return s.join(" ")}})(),Eg=(function(){var e={ready:"Ready",error:"Error",expired:"Expired",expiring:"Expiring",removed:"Removed",removing:"Removing",queue:"Queued",download:"Downloading",downloaded:"Downloaded",preparing:"Preparing",anonymizing:"Anonymizing"};return function(t){if(!t)return"";if(e[t])return e[t];var s=String(t).replace(/[_-]+/g," ").toLowerCase();return s.charAt(0).toUpperCase()+s.slice(1)}})(),tr=(function(){var e={branch_not_found:"Branch not found on GitHub",repo_not_found:"Repository not found on GitHub",repository_not_found:"Repository not found on GitHub",repo_not_accessible:"Repository is not accessible with your token",pr_not_found:"Pull request not found on GitHub",gist_not_found:"Gist not found on GitHub",commit_not_found:"Commit not found on GitHub",repo_too_big:"Repository exceeds the size limit",repository_too_big:"Repository exceeds the size limit",quota_exceeded:"Hosting allowance exceeded",quota_repository_limit:"Repository limit reached",quota_storage_limit:"Storage allowance exceeded",incomplete_record:"Incomplete record: missing identifier"};return function(t){if(!t)return t;var s=t.match(/^rate_limited:(\d+)$/);if(s){var i=Math.max(0,Math.ceil((parseInt(s[1],10)-Date.now())/1e3));if(i<=0)return"Rate limited \u2014 resuming soon";var o=Math.floor(i/60),r=i%60;return"Rate limited \u2014 retrying in "+(o>0?o+"m "+r+"s":r+"s")}if(e[t])return e[t];var u=/^([a-z0-9]+(?:_[a-z0-9]+)+):\s*\S/.exec(t);if(u){if(e[u[1]])return e[u[1]];var p=u[1].replace(/_/g," ");return p.charAt(0).toUpperCase()+p.slice(1)}if(/^[a-z0-9]+(_[a-z0-9]+)+$/.test(t)){var c=t.replace(/_/g," ");return c.charAt(0).toUpperCase()+c.slice(1)}return t}})(),Ng=(function(e){let t=i=>i.replace(/&/g,"&").replace(//g,">");function s(i,o){if(!o)return;let r=o.newPath&&o.newPath!=="/dev/null"?o.newPath:o.oldPath||"",u=o.oldPath==="/dev/null"?"added":o.newPath==="/dev/null"?"deleted":o.oldPath&&o.newPath&&o.oldPath!==o.newPath?"renamed":"modified";if(i.push('
'),i.push('
'+t(r)+''+u+"
"),o.lines.length){i.push('');for(let p of o.lines)i.push('");i.push("
'+(p.oldNo||"")+''+(p.newNo||"")+''+(p.kind==="add"?"+":p.kind==="remove"?"-":"")+''+t(p.text)+"
")}i.push("
")}return function(i){if(!i)return i;let o=[],r=null,u=0,p=0,c=()=>(r||(r={oldPath:"",newPath:"",lines:[]}),r),v=()=>{r&&(r.lines.length||r.oldPath||r.newPath)&&(s(o,r),r=null)},h=i.split(` +`);for(let y=0;ye});function Da(e,t){return e==null?"":Number(e).toLocaleString(void 0,t==null?{}:{minimumFractionDigits:t,maximumFractionDigits:t})}function Rg(e,t="EUR"){let s=Number(e)||0;return new Intl.NumberFormat(void 0,{style:"currency",currency:t,minimumFractionDigits:s%1?2:0,maximumFractionDigits:2}).format(s)}function Tg(e){return String(e??"").toUpperCase()}function Pg(e,t,s=0){return(e||[]).slice(s,s+t)}function Dg(e,t){return Array.isArray(e)?typeof t=="function"?e.filter(t):e:[]}function Ag(e,t){if(!t)return e||[];let s=Array.isArray(t)?t:[t];return[...e||[]].sort((i,o)=>{for(let r of s){let u=r[0]==="-"?-1:1;r=r.replace(/^[+-]/,"");let p=r.split(".").reduce((v,h)=>v?.[h],i),c=r.split(".").reduce((v,h)=>v?.[h],o);if(typeof p=="string"&&(p=p.toLowerCase()),typeof c=="string"&&(c=c.toLowerCase()),p!==c)return(p==null?-1:c==null?1:pi[o])}function Ig(e,t){return(t?.[e]??t?.[e===1?"one":"other"]??"").replace(/\{\}/g,e??0)}function Aa(e){if(!e)return"";let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(String(e)),s=t?new Date(+t[1],+t[2]-1,+t[3]):new Date(e);if(isNaN(s))return"";let i=s.toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"}),o=new Date;o.setHours(0,0,0,0);let r=Math.round((s-o)/864e5),u;if(r===0)u="today";else if(r===1)u="tomorrow";else if(r===-1)u="yesterday";else{let p=Math.abs(r),c=Math.round(p/30.44),v=p<14?[p,"day"]:p<60?[Math.round(p/7),"week"]:c<18?[c,"month"]:[Math.round(p/365.25),"year"],h=v[0]+" "+v[1]+(v[0]===1?"":"s");u=r>0?"in "+h:h+" ago"}return i+" \xB7 "+u}function Fn(e){if(e==null||e===""||isNaN(e))return"";e=Number(e);let t="\u202F";if(e<1e3)return+(e<10?e.toFixed(2):e<100?e.toFixed(1):Math.round(e))+t+"ms";let s=e/1e3;if(s<60)return+(s<10?s.toFixed(2):s.toFixed(1))+t+"s";let i=r=>String(r).padStart(2,"0"),o=Math.round(s);return o<3600?Math.floor(o/60)+"m "+i(o%60)+"s":Math.floor(o/3600)+"h "+i(Math.floor(o%3600/60))+"m"}function or(e){if(!e)return"";let t=new Date(e);if(isNaN(t))return"";let s={day:"numeric",month:"short"};return t.getFullYear()!==new Date().getFullYear()&&(s.year="numeric"),t.toLocaleDateString(void 0,s)}var ir=e=>["preparing","download","downloading","downloaded","queue","anonymizing"].includes(e)?"preparing":e==="expiring"?"expired":e==="removing"?"removed":e;function rr(e,{flags:t,keys:s,count:i,onChange:o=()=>{}}){if(e.segView=()=>{let r=t()||{};if(s.every(p=>!!r[p]))return"all";let u=s.filter(p=>!!r[p]);return u.length===1?u[0]:"custom"},e.setSegView=r=>{let u=t();if(u){for(let p of s)u[p]=r==="all"?!0:p===r;o()}},e.segCount=r=>r==="all"?s.reduce((u,p)=>u+i(p),0):i(r),t()&&e.segView()==="custom")for(let r of s)t()[r]=!0}var Ju=function(e,t,s){let i=yt(),o=Ht();nc(i,o),e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.repositories=[],e.total=-1,e.totalPage=0,e.statusCounts=[],e.totalSize=0,e.selected={},e.allSelected=!1;let r=S=>{if(S.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){S.preventDefault();let N=document.querySelector('.admin-filter-toolbar input[type="search"]');N&&N.focus()}};o(document,"keydown",r),e.on("dispose",()=>document.removeEventListener("keydown",r)),e.clearFilter=S=>{S==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[S]="",e.query.page=1},e.chips=[];let u=()=>{let S=[];e.query.owner&&S.push({key:"owner",label:"Owner",value:e.query.owner}),e.query.conference&&S.push({key:"conference",label:"Conference",value:e.query.conference}),e.chips=S};e.showStatusMessage=S=>{let N=S.statusMessage||"(no message)";window.prompt(`Status message for ${S.repoId} (${S.status}):`,N)},e.fetchGithubInfo=S=>{let N=window.open("","_blank");N&&N.document.write("
Loading GitHub info for "+S.repoId+"...
"),t.get("/api/admin/repos/"+S.repoId+"/github").then(b=>{N&&(N.document.open(),N.document.write('
'+JSON.stringify(b.data,null,2).replace(/[<>]/g,T=>T==="<"?"<":">")+"
"),N.document.close())},b=>{let T=b&&b.data?JSON.stringify(b.data,null,2):String(b);N&&(N.document.body.innerHTML='
'+T+"
")})},e.statusCountFor=S=>{let N=(e.statusCounts||[]).find(b=>b._id===S);return N?N.count:0},e.statusStorageFor=S=>{let N=(e.statusCounts||[]).find(b=>b._id===S);return N?N.storage:0},e.isErrorsOnly=()=>e.query&&e.query.error&&!e.query.ready&&!e.query.preparing&&!e.query.expired&&!e.query.removed,e.toggleErrorsOnly=()=>{e.isErrorsOnly()?Object.assign(e.query,{ready:!1,preparing:!0,expired:!1,removed:!1,error:!0}):Object.assign(e.query,{ready:!1,preparing:!1,expired:!1,removed:!1,error:!0}),e.query.page=1},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=S=>{e.query.sort===S?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=S,e.query.direction="desc"),e.query.page=1},e.sortIcon=S=>e.query.sort===S?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let p="admin.repos.filterPrefs",c={page:1,limit:25,sort:"lastView",direction:"desc",search:"",owner:"",conference:"",dateFrom:"",dateTo:"",ready:!0,expired:!0,removed:!0,error:!0,preparing:!0},v=loadFilterPrefs(p)||{};e.query=Object.assign({},c,v,{page:1,search:""});let h=s.search();h.owner&&(e.query.owner=h.owner),h.conference&&(e.query.conference=h.conference),h.search&&(e.query.search=h.search);let y="admin.repos.presets";e.presets=JSON.parse(localStorage.getItem(y)||"[]"),e.savePreset=()=>{let S=window.prompt("Preset name:");if(!S)return;let N=Object.assign({},e.query);delete N.page,e.presets=(e.presets||[]).filter(b=>b.name!==S),e.presets.push({name:S,query:N}),localStorage.setItem(y,JSON.stringify(e.presets))},e.applyPreset=S=>{Object.assign(e.query,S.query,{page:1})},e.deletePreset=S=>{e.presets=(e.presets||[]).filter(N=>N.name!==S.name),localStorage.setItem(y,JSON.stringify(e.presets))},e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.repositories.forEach(S=>{e.selected[S.repoId]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedRepos=()=>e.repositories.filter(S=>e.selected[S.repoId]),e.bulkRefresh=()=>{let S=e.selectedRepos();S.length&&confirm(`Force refresh ${S.length} repositories?`)&&S.forEach(N=>e.updateRepository(N))},e.bulkRemoveCache=()=>{let S=e.selectedRepos();S.length&&confirm(`Purge cache for ${S.length} repositories?`)&&S.forEach(N=>e.removeCache(N))},e.clearSelection=()=>{e.selected={},e.allSelected=!1},e.exportCsv=()=>{let S=new URLSearchParams(Object.entries(e.query).filter(([,N])=>N!==""&&N!==!1&&N!=null));S.set("format","csv"),S.set("limit","10000"),window.open("/api/admin/repos?"+S.toString(),"_blank")},e.removeCache=S=>{confirm("Remove cached files for "+S.repoId+"?")&&t.delete("/api/admin/repos/"+S.repoId).then(()=>g(),N=>console.error(N))},e.removeRepository=S=>{confirm("Remove repository "+S.repoId+"?")&&t.delete("/api/repo/"+S.repoId+"/").then(()=>g(),N=>console.error(N))},e.updateRepository=S=>{let N=rt({title:`Refreshing ${S.repoId}...`,date:new Date,body:`The repository ${S.repoId} is going to be refreshed.`});e.toasts.push(N),t.post(`/api/repo/${S.repoId}/refresh`).then(b=>{b.data.status=="ready"?N.title=`${S.repoId} is refreshed.`:N.title=`Refreshing of ${S.repoId}.`},b=>{N.title=`Error during the refresh of ${S.repoId}.`,N.body=b.body})},e.filtersOpen=!1,e.fetchError=null;function g(){e.fetchError=null,t.get("/api/admin/repos",{params:e.query}).then(S=>{e.total=S.data.total,e.totalPage=Math.ceil(S.data.total/e.query.limit),e.repositories=S.data.results,e.allSelected=!1},S=>{e.fetchError=S&&S.data&&S.data.error||"Failed to load repositories",console.error(S)})}function k(){let S=Object.assign({},e.query,{page:1,limit:1,ready:!0,expired:!0,removed:!0,error:!0,preparing:!0});t.get("/api/admin/repos",{params:S}).then(N=>{e.statusCounts=N.data.statusCounts||[],e.totalSize=N.data.totalSize||0},()=>{})}e.showAllStatuses=()=>Object.assign(e.query,{ready:!0,expired:!0,removed:!0,error:!0,preparing:!0,page:1}),rr(e,{flags:()=>e.query,keys:["ready","preparing","error","expired","removed"],count:S=>S==="preparing"?e.statusCountFor("preparing")+e.statusCountFor("download"):S==="expired"?e.statusCountFor("expired")+e.statusCountFor("expiring"):S==="removed"?e.statusCountFor("removed")+e.statusCountFor("removing"):e.statusCountFor(S),onChange:()=>{e.query.page=1}}),g(),k();let w=null;e.watch("query",()=>{i.timeout.cancel(w),w=i.timeout(()=>{g(),k()},500);let{page:S,search:N,...b}=e.query;saveFilterPrefs(p,b),u()},!0),u()},Xu=function(e,t,s){let i=yt(),o=Ht();e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.users=[],e.total=-1,e.totalPage=0,e.statusCounts=[],e.selected={},e.allSelected=!1;let r=g=>{if(g.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){g.preventDefault();let k=document.querySelector('.admin-filter-toolbar input[type="search"]');k&&k.focus()}};o(document,"keydown",r),e.on("dispose",()=>document.removeEventListener("keydown",r)),e.clearFilter=g=>{g==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[g]="",e.query.page=1},e.chips=[];let u=()=>{let g=[];e.query.role&&g.push({key:"role",label:"Role",value:e.query.role}),e.chips=g};e.statusCountFor=g=>{let k=(e.statusCounts||[]).find(w=>w._id===g);return k?k.count:0},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=g=>{e.query.sort===g?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=g,e.query.direction="desc"),e.query.page=1},e.sortIcon=g=>e.query.sort===g?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let p="admin.users.filterPrefs",c={page:1,limit:25,sort:"username",direction:"asc",search:"",status:"",role:"",dateFrom:"",dateTo:""},v=loadFilterPrefs(p)||{};e.query=Object.assign({},c,v,{page:1,search:""}),e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.users.forEach(g=>{e.selected[g.username]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedUsers=()=>e.users.filter(g=>e.selected[g.username]),e.banUser=g=>{confirm(`Ban user ${g.username}?`)&&t.post(`/api/admin/users/${g.username}/ban`).then(h,k=>console.error(k))},e.activateUser=g=>{t.post(`/api/admin/users/${g.username}/activate`).then(h,k=>console.error(k))},e.bulkBan=()=>{let g=e.selectedUsers();g.length&&confirm(`Ban ${g.length} users?`)&&g.forEach(k=>e.banUser(k))},e.exportCsv=()=>{let g=new URLSearchParams(Object.entries(e.query).filter(([,k])=>k!==""&&k!==!1&&k!=null));g.set("format","csv"),g.set("limit","10000"),window.open("/api/admin/users?"+g.toString(),"_blank")},e.fetchError=null;function h(){e.fetchError=null,t.get("/api/admin/users",{params:e.query}).then(g=>{e.total=g.data.total,e.totalPage=Math.ceil(g.data.total/e.query.limit),e.users=g.data.results,e.statusCounts=g.data.statusCounts||[],e.allSelected=!1},g=>{e.fetchError=g&&g.data&&g.data.error||"Failed to load users",console.error(g)})}h();let y=null;e.watch("query",()=>{i.timeout.cancel(y),y=i.timeout(h,500);let{page:g,search:k,...w}=e.query;saveFilterPrefs(p,w),u()},!0),u()},Qu=function(e,t,s,i){let o=yt();nc(o,Ht()),e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.userInfo,e.repositories=[],e.search="",e.selected={},e.allSelected=!1;let r="admin.user.filterPrefs",u={filters:{status:{ready:!0,expired:!0,removed:!0,error:!0,preparing:!0}},sort:"anonymizeDate",direction:"desc"},p=loadFilterPrefs(r)||{};e.filters={status:Object.assign({},u.filters.status,p.filters&&p.filters.status||{})},e.query={sort:p.sort||u.sort,direction:p.direction||u.direction},e.orderBy=(e.query.direction==="asc"?"":"-")+e.query.sort,e.sortBy=g=>{e.query.sort===g?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=g,e.query.direction="desc"),e.orderBy=(e.query.direction==="asc"?"":"-")+e.query.sort},e.sortIcon=g=>e.query.sort===g?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"",e.watch("query",()=>{saveFilterPrefs(r,{filters:e.filters,sort:e.query.sort,direction:e.query.direction})},!0),e.watch("filters",()=>{saveFilterPrefs(r,{filters:e.filters,sort:e.query.sort,direction:e.query.direction})},!0),e.statusCountFor=g=>(e.repositories||[]).filter(k=>ir(k.status)===g).length,rr(e,{flags:()=>e.filters.status,keys:["ready","preparing","error","expired","removed"],count:g=>e.statusCountFor(g)}),e.repoFiler=g=>e.filters.status[ir(g.status)]==!1?!1:!!(e.search.trim().length==0||g.source.fullName.indexOf(e.search)>-1||g.repoId.indexOf(e.search)>-1||g.statusMessage&&g.statusMessage.indexOf(e.search)>-1||g.conference&&g.conference.indexOf(e.search)>-1),e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,(e.filteredRepositories||e.repositories).forEach(g=>{e.selected[g.repoId]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedRepos=()=>e.repositories.filter(g=>e.selected[g.repoId]),e.bulkRefresh=()=>{let g=e.selectedRepos();g.length&&confirm(`Force refresh ${g.length} repositories?`)&&g.forEach(k=>e.updateRepository(k))},e.bulkRemoveCache=()=>{let g=e.selectedRepos();g.length&&confirm(`Purge cache for ${g.length} repositories?`)&&g.forEach(k=>e.removeCache(k))},e.clearSelection=()=>{e.selected={},e.allSelected=!1},e.exportCsv=()=>{let g=e.filteredRepositories||e.repositories,w=["repoId","status","statusMessage","pageView","anonymizeDate","source.fullName","conference","size.storage"].join(","),S=g.map(T=>[T.repoId,T.status,T.statusMessage||"",T.pageView||0,T.anonymizeDate||"",T.source&&T.source.fullName||"",T.conference||"",T.size&&T.size.storage||0].map(O=>{let F=String(O??"");return/[",\n\r]/.test(F)?'"'+F.replace(/"/g,'""')+'"':F}).join(",")),N=new Blob([w+` `+S.join(` -`)],{type:"text/csv"}),b=document.createElement("a");b.href=URL.createObjectURL(N),b.download=i.username+"-repositories.csv",b.click()},e.showStatusMessage=g=>{let k=g.statusMessage||"(no message)";window.prompt(`Status message for ${g.repoId} (${g.status}):`,k)},e.fetchGithubInfo=g=>{let k=window.open("","_blank");k&&k.document.write("
Loading GitHub info for "+g.repoId+"...
"),t.get("/api/admin/repos/"+g.repoId+"/github").then(w=>{k&&(k.document.open(),k.document.write('
'+JSON.stringify(w.data,null,2).replace(/[<>]/g,S=>S==="<"?"<":">")+"
"),k.document.close())},w=>{let S=w&&w.data?JSON.stringify(w.data,null,2):String(w);k&&(k.document.body.innerHTML='
'+S+"
")})};function c(g){t.get("/api/admin/users/"+g+"/repos",{}).then(k=>{e.repositories=k.data},k=>{console.error(k)})}function v(g){t.get("/api/admin/users/"+g,{}).then(k=>{e.userInfo=k.data},k=>{console.error(k)})}v(i.username),c(i.username),e.banUser=()=>{confirm(`Ban user ${i.username}?`)&&t.post(`/api/admin/users/${i.username}/ban`).then(()=>v(i.username),g=>console.error(g))},e.activateUser=()=>{t.post(`/api/admin/users/${i.username}/activate`).then(()=>v(i.username),g=>console.error(g))},e.promoteUser=()=>{confirm(`Promote ${i.username} to admin?`)&&t.post(`/api/admin/users/${i.username}/promote`).then(()=>v(i.username),g=>console.error(g))},e.demoteUser=()=>{confirm(`Remove admin privileges from ${i.username}?`)&&t.post(`/api/admin/users/${i.username}/demote`).then(()=>v(i.username),g=>console.error(g))},e.tokens=[],e.tokenForm={name:"",plaintext:null};function h(){t.get("/api/admin/tokens").then(g=>{e.tokens=g.data||[]},g=>{g.status!==401&&g.status!==403&&console.error(g)})}h(),e.createToken=()=>{e.tokenForm.name&&t.post("/api/admin/tokens",{name:e.tokenForm.name}).then(g=>{e.tokenForm.plaintext=g.data.token,e.tokenForm.name="",h()},g=>console.error(g))},e.revokeToken=g=>{confirm(`Revoke token "${g.name}"?`)&&t.delete("/api/admin/tokens/"+g.id).then(()=>h(),k=>console.error(k))},e.removeCache=g=>{confirm("Remove cached files for "+g.repoId+"?")&&t.delete("/api/admin/repos/"+g.repoId).then(()=>c(i.username),k=>console.error(k))},e.removeRepository=g=>{confirm("Remove repository "+g.repoId+"?")&&t.delete("/api/repo/"+g.repoId+"/").then(()=>c(i.username),k=>console.error(k))},e.updateRepository=g=>{let k=rt({title:`Refreshing ${g.repoId}...`,date:new Date,body:`The repository ${g.repoId} is going to be refreshed.`});e.toasts.push(k),t.post(`/api/repo/${g.repoId}/refresh`).then(w=>{w.data.status=="ready"?k.title=`${g.repoId} is refreshed.`:k.title=`Refreshing of ${g.repoId}.`},w=>{k.title=`Error during the refresh of ${g.repoId}.`,k.body=w.body})},e.getGitHubRepositories=g=>{t.get(`/api/user/${e.userInfo.username}/all_repositories`,{params:{force:"1"}}).then(k=>{e.userInfo.repositories=k.data})};let y=null;e.watch("query",()=>{o.timeout.cancel(y),y=o.timeout(()=>{c(i.username)},500)},!0)},Qu=function(e,t,s){let i=yt(),o=Ht();e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.conferences=[],e.total=-1,e.totalPage=0,e.statusCounts=[];let r=w=>{if(w.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){w.preventDefault();let S=document.querySelector('.admin-filter-toolbar input[type="search"]');S&&S.focus()}};o(document,"keydown",r),e.on("dispose",()=>document.removeEventListener("keydown",r)),e.clearFilter=w=>{w==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[w]="",e.query.page=1},e.chips=[];let u=()=>{let w=[];(e.query.dateFrom||e.query.dateTo)&&w.push({key:"dateRange",label:"Date",value:(e.query.dateFrom||"\u2026")+" \u2013 "+(e.query.dateTo||"\u2026")}),e.chips=w};e.statusCountFor=w=>{let S=(e.statusCounts||[]).find(N=>N._id===w);return S?S.count:0},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=w=>{e.query.sort===w?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=w,e.query.direction="desc"),e.query.page=1},e.sortIcon=w=>e.query.sort===w?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let p="admin.conferences.filterPrefs",c={page:1,limit:25,sort:"name",direction:"asc",search:"",dateFrom:"",dateTo:"",ready:!0,expired:!0,removed:!0,error:!0,preparing:!0},v=loadFilterPrefs(p)||{};e.query=Object.assign({},c,v,{page:1,search:""});let h=s.search();h.search&&(e.query.search=h.search);let y="admin.conferences.presets";e.presets=JSON.parse(localStorage.getItem(y)||"[]"),e.savePreset=()=>{let w=window.prompt("Preset name:");if(!w)return;let S=Object.assign({},e.query);delete S.page,e.presets=(e.presets||[]).filter(N=>N.name!==w),e.presets.push({name:w,query:S}),localStorage.setItem(y,JSON.stringify(e.presets))},e.applyPreset=w=>{Object.assign(e.query,w.query,{page:1})},e.deletePreset=w=>{e.presets=(e.presets||[]).filter(S=>S.name!==w.name),localStorage.setItem(y,JSON.stringify(e.presets))},e.removeConference=w=>{confirm("Remove conference "+w.conferenceID+"?")&&t.delete("/api/admin/conferences/"+w.conferenceID).then(()=>g(),S=>console.error(S))},e.exportCsv=()=>{let w=new URLSearchParams(Object.entries(e.query).filter(([,S])=>S!==""&&S!==!1&&S!=null));w.set("format","csv"),w.set("limit","10000"),window.open("/api/admin/conferences?"+w.toString(),"_blank")},e.fetchError=null;function g(){e.fetchError=null,t.get("/api/admin/conferences",{params:e.query}).then(w=>{e.total=w.data.total,e.totalPage=Math.ceil(w.data.total/e.query.limit),e.conferences=w.data.results,e.statusCounts=w.data.statusCounts||[]},w=>{e.fetchError=w&&w.data&&w.data.error||"Failed to load conferences",console.error(w)})}rr(e,{flags:()=>e.query,keys:["ready","preparing","error","expired","removed"],count:w=>e.statusCountFor(w),onChange:()=>{e.query.page=1}}),g();let k=null;e.watch("query",()=>{i.timeout.cancel(k),k=i.timeout(g,500);let{page:w,search:S,...N}=e.query;saveFilterPrefs(p,N),u()},!0),u()},Zu=function(e,t,s,i,o){let r=yt();e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.queueList=[],e.jobs=[],e.selectedQueue="download",e.selectedStats=null,e.range="1h",e.allStates=["active","waiting","delayed","failed","completed"],e.stateFilter={active:!0,waiting:!0,delayed:!0,failed:!0,completed:!0},rr(e,{flags:()=>e.stateFilter,keys:e.allStates,count:N=>(e.jobs||[]).filter(b=>b._state===N).length}),e.query={search:"",autoRefresh:!0},e.filteredJobs=()=>(e.jobs||[]).filter(N=>e.stateFilter[N._state]),e.jobProgressPct=N=>N?._state==="completed"?100:N&&N.progress&&typeof N.progress=="object"&&typeof N.progress.percent=="number"?Math.max(0,Math.min(100,Math.round(N.progress.percent))):typeof N.progress=="number"?Math.max(0,Math.min(100,Math.round(N.progress))):null;let u={get_files:"Fetching files",download:"Downloading",downloading:"Downloading",anonymize:"Anonymizing",anonymizing:"Anonymizing",ready:"Ready",removing:"Removing",preparing:"Preparing"};e.jobDetail=N=>{if(N?._state==="failed")return tr(N.failedReason||"")||"Failed";let b=N?.progress&&typeof N.progress=="object"?N.progress.status:null;return N?._state==="active"&&b?u[b]||tr(b):"\u2014"},e.jobDuration=N=>{if(!N.processedOn)return"\u2014";let b=N.finishedOn||Date.now();return Fn(b-N.processedOn)},e.metricsPoints=[],e.selectQueue=N=>{e.selectedQueue=N,p(),c()},e.setRange=N=>{e.range=N,c()};function p(){let N={queue:e.selectedQueue,search:e.query.search};t.get("/api/admin/queues",{params:N}).then(b=>{e.queueList=b.data.queues||[],e.jobs=b.data.jobs||[],e.selectedStats=e.queueList.find(T=>T.key===e.selectedQueue)||e.queueList[0]||null},b=>console.error(b))}function c(){t.get("/api/admin/queues/metrics",{params:{queue:e.selectedQueue,range:e.range}}).then(N=>{e.metricsPoints=N.data.points||[],o(k,0)},N=>console.error(N))}p(),c();let v=i(()=>{e.query.autoRefresh&&(p(),c())},15e3);e.on("dispose",()=>i.cancel(v)),e.refreshNow=function(){p(),c()};function h(N){let b=N&&N.data&&(N.data.message||N.data.error)||"Request failed";e.actionError=b,o(()=>{e.actionError=null},5e3),console.error(N)}e.actionError=null,e.removeJob=N=>{t.delete(`/api/admin/queue/${e.selectedQueue}/${N.id}`).then(p,h)},e.retryJob=N=>{t.post(`/api/admin/queue/${e.selectedQueue}/${N.id}`).then(p,h)},e.retryFailed=()=>{confirm(`Retry all failed jobs in ${e.selectedQueue}?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/retry-failed`).then(p,N=>console.error(N))},e.drainSelected=()=>{confirm(`Drain the ${e.selectedQueue} queue?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/drain`).then(p,N=>console.error(N))},e.togglePause=()=>{let N=e.selectedStats&&e.selectedStats.paused?"resume":"pause";t.post(`/api/admin/queue/${e.selectedQueue}/${N}`).then(p,b=>console.error(b))},e.emptyQueue=()=>{confirm(`Empty the ${e.selectedQueue} queue? This removes ALL jobs.`)&&t.post(`/api/admin/queue/${e.selectedQueue}/empty`).then(p,N=>console.error(N))},e.pauseAll=()=>{confirm("Pause all queues?")&&t.post("/api/admin/queues/pause-all").then(p,N=>console.error(N))};let y=null;e.watch("query.search",()=>{r.timeout.cancel(y),y=r.timeout(p,350)}),e.expanded={},e.toggleJob=N=>{e.expanded[N.id]=!e.expanded[N.id]},e.humanTime=N=>{if(!N)return"";let b=new Date(N);return b.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})+" "+b.toLocaleDateString([],{month:"short",day:"numeric"})},e.delayCountdown=N=>{if(!N)return"";var b=Math.max(0,Math.ceil((N-Date.now())/1e3));if(b<=0)return"resuming soon";var T=Math.floor(b/60),O=b%60;return"in "+(T>0?T+"m "+O+"s":O+"s")};function g(N){if(N<=0)return{ticks:[0],niceMax:1};let b=Math.pow(10,Math.floor(Math.log10(N))),T=b;N/T<2?T=b/2:N/T>5&&(T=b*2);let O=Math.ceil(N/T)*T,F=[];for(let H=0;H<=O;H+=T)F.push(H);return{ticks:F,niceMax:O}}function k(){var N=document.getElementById("q-throughput-chart");if(!N)return;var b=N.getContext("2d"),T=window.devicePixelRatio||1,O=N.parentElement.getBoundingClientRect(),F=44,H=44,se=22,_=Math.max(200,Math.round(O.width)),z=Math.max(180,Math.min(420,Math.round(O.height)||180)),I=_-F-H,q=z-se;N.width=_*T,N.height=z*T,N.style.width=_+"px",N.style.height=z+"px",b.setTransform(T,0,0,T,0,0);var E=document.body.classList.contains("dark-mode"),L="#8A857C",G=E?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.06)",j=E?"#6FBF8A":"#2F7D4F",Y=E?"rgba(111,191,138,0.12)":"rgba(47,125,79,0.08)",ne=E?"#F08A82":"#B42318",x=E?"rgba(240,138,130,0.08)":"rgba(180,35,24,0.06)",fe=getComputedStyle(document.body).getPropertyValue("--q-time-series").trim()||(E?"#E0A94A":"#946512"),me=e.metricsPoints||[];if(me.length===0){b.fillStyle=L,b.font="13px Inter, system-ui, sans-serif",b.textAlign="center",b.fillText("No metrics data yet",_/2,z/2),w=null;return}var qe=me.map(function(ke){return ke.completed}),Ue=me.map(function(ke){return ke.failed}),Xe=me.map(function(ke){return ke.avgMs});if(!qe.some(Boolean)&&!Ue.some(Boolean)){b.strokeStyle=E?"rgba(255,255,255,0.14)":"rgba(0,0,0,0.12)",b.beginPath(),b.moveTo(0,z-18.5),b.lineTo(_,z-18.5),b.stroke(),b.fillStyle=E?"#CFC8BD":"#4F4A42",b.font="500 14px Inter, system-ui, sans-serif",b.textAlign="center",b.fillText("No jobs processed in this window",_/2,z/2-6),b.fillStyle=L,b.font="12.5px Inter, system-ui, sans-serif",b.fillText("Completed and failed jobs will chart here",_/2,z/2+16),w=null;return}var ze=me.length,lt=I/(ze-1||1),Re=Math.max(1,Math.max.apply(null,qe),Math.max.apply(null,Ue)),Se=g(Re),J=Math.max.apply(null,Xe),ce=J>0?g(J):{ticks:[0],niceMax:1},ue=function(ke){return q-ke/Se.niceMax*(q-10)},he=function(ke){return q-ke/ce.niceMax*(q-10)},be=function(ke){return F+ke*lt};b.textAlign="right",b.textBaseline="middle",b.font="11px Inter, system-ui, sans-serif",Se.ticks.forEach(function(ke){var Fe=ue(ke);b.strokeStyle=G,b.lineWidth=1,b.beginPath(),b.moveTo(F,Fe),b.lineTo(_-H,Fe),b.stroke(),b.fillStyle=L,ke!==0&&b.fillText(ke>=1e3?(ke/1e3).toFixed(1)+"k":String(ke),F-6,Fe)}),J>0&&(b.textAlign="left",ce.ticks.forEach(function(ke){var Fe=he(ke);b.fillStyle=fe,ke!==0&&b.fillText(Fn(ke),_-H+6,Fe)}));var Oe=me[ze-1].ts,D=me[0].ts,A=Math.max(0,(Oe-D)/6e4),U=[1,2,5,10,15,30,60,120,180,360,720,1440,2880,10080],Z=U.find(function(ke){return A/ke<=4})||U[U.length-1],W=function(ke){return ke<60?ke+"m":ke<1440?ke/60+"h":ke/1440+"d"},ee=function(ke){for(var Fe=0,st=1;st0&&Math.abs(me[we].ts-(Oe-te*6e4))>re+1)){var pe=be(we),Ee=te===0?"now":W(te)+" ago",Te=b.measureText(Ee).width,Ve=ie===0?"right":we===0?"left":"center",We=Ve==="right"?pe:Ve==="left"?pe+Te:pe+Te/2;We>oe-12||(b.textAlign=Ve,b.fillText(Ee,pe,q+6),oe=Ve==="right"?pe-Te:Ve==="left"?pe:pe-Te/2)}}function je(ke,Fe,st,pt){ke.length!==0&&(b.beginPath(),b.moveTo(be(0),q),ke.forEach(function(Tt,Pt){var it=be(Pt),ft=Fe(Tt);if(Pt===0)b.lineTo(it,ft);else{var $t=(be(Pt-1)+it)/2;b.bezierCurveTo($t,Fe(ke[Pt-1]),$t,ft,it,ft)}}),b.lineTo(be(ke.length-1),q),b.closePath(),b.fillStyle=st,b.fill(),b.beginPath(),ke.forEach(function(Tt,Pt){var it=be(Pt),ft=Fe(Tt);if(Pt===0)b.moveTo(it,ft);else{var $t=(be(Pt-1)+it)/2;b.bezierCurveTo($t,Fe(ke[Pt-1]),$t,ft,it,ft)}}),b.strokeStyle=pt,b.lineWidth=1.5,b.stroke())}je(qe,ue,Y,j),je(Ue,ue,x,ne),J>0&&(b.beginPath(),Xe.forEach(function(ke,Fe){var st=be(Fe),pt=he(ke);if(Fe===0)b.moveTo(st,pt);else{var Tt=(be(Fe-1)+st)/2;b.bezierCurveTo(Tt,he(Xe[Fe-1]),Tt,pt,st,pt)}}),b.strokeStyle=fe,b.lineWidth=1,b.setLineDash([4,3]),b.stroke(),b.setLineDash([])),w={pts:me,maxLen:ze,marginLeft:F,step:lt,totalW:_,toX:be}}var w=null;function S(){var N=document.getElementById("q-throughput-chart");if(!(!N||N._tipBound)){N._tipBound=!0;var b=document.getElementById("q-chart-tooltip"),T=document.getElementById("q-chart-crosshair");N.addEventListener("mousemove",function(O){if(!(!w||!b||!T)){var F=w,H=N.getBoundingClientRect(),se=O.clientX-H.left,_=Math.round((se-F.marginLeft)/F.step);if(_<0||_>=F.maxLen){b.style.display="none",T.style.display="none";return}var z=F.pts[_],I=F.pts[F.pts.length-1].ts,q=Math.round((I-z.ts)/6e4),E;if(q<=0)E="now";else if(q<60)E=q+"m ago";else if(q<1440){var L=Math.floor(q/60),G=q%60;E=L+"h"+(G?" "+G+"m":"")+" ago"}else E=Math.round(q/1440)+"d ago";var j='
'+E+'
● completed: '+z.completed+'/min
● failed: '+z.failed+"/min
";if(z.avgMs>0){var Y=Fn(z.avgMs);j+='
● avg time: '+Y+"
"}b.innerHTML=j;var ne=F.toX(_),x=b.offsetWidth,fe=ne+10;fe+x>F.totalW&&(fe=ne-x-10),b.style.display="block",b.style.left=fe+"px",b.style.top="8px",T.style.display="block",T.style.left=ne+"px"}}),N.addEventListener("mouseleave",function(){b&&(b.style.display="none"),T&&(T.style.display="none")})}}e.watch("metricsPoints",function(){o(S,50)})},xu=function(e,t,s,i){Ku(e,t),e.redisCollecting=null,e.redisLoading=!1;let o=0,r=0,u=!1,p=!1;e.redisStatsState="loading";let c=yt();e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.entries=[],e.visible=[],e.available=null,e.cap=1e3,e.total=0,e.pageSize=250,e.expanded={},e.historySelected=null,e.historyView="overview";let v=null,h=[];e.detailTab={},e.copyHint="",e.parsedFilterCount=0,e.stats={last24h:0,prev24h:0,delta:0,severity:{error:0,warn:0,info:0},unique:{error:0,warn:0,info:0},buckets:[],dropped:0},e.query={search:"",bucket:"",sort:"recent",group:"code",autoRefresh:!0},e.relTime=_=>{if(!_)return"";let z=new Date(_).getTime();if(isNaN(z))return _;let I=Math.max(0,Date.now()-z),q=Math.floor(I/1e3);if(q<5)return"just now";if(q<60)return`${q}s ago`;let E=Math.floor(q/60);if(E<60)return`${E}m ago`;let L=Math.floor(E/60);if(L<24)return`${L}h ago`;let G=Math.floor(L/24);return G<7?`${G}d ago`:new Date(_).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})},e.absTime=_=>{if(!_)return"";let z=new Date(_);return isNaN(z.getTime())?_:z.toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})},e.absTimeShort=_=>{if(!_)return"";let z=new Date(_);return isNaN(z.getTime())?_:z.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})};let y=/^[a-zA-Z][a-zA-Z0-9]*(?:_[a-zA-Z0-9]+)+$/;function g(_,z){let I=_&&(_.httpStatus||_.status)||null;if(typeof I=="number"){if(I>=500)return"error";if(I===401||I===403||I===404)return"info";if(I>=400)return"warn"}return z==="error"?"error":z==="warn"?"warn":"info"}function k(_){_._rawJson=JSON.stringify(_,null,2);let z=(_.raw||[]).find(L=>L&&typeof L=="object"&&!Array.isArray(L));if(z){z.message&&y.test(z.message)?(_.displayMessage=z.message,_.displayContext=_.message):z.code&&y.test(String(z.code))?(_.displayMessage=String(z.code),_.displayContext=_.message):z.name&&z.name!=="AnonymousError"&&z.name!=="Error"?(_.displayMessage=z.name,_.displayContext=z.message||_.message):_.displayMessage=_.message,_._status=z.httpStatus||z.status||null,_._url=z.url||null,_._method=z.method||null,_._repoId=z.repoId||z.detail||null,_._detail=z.detail&&z.detail!==_._repoId?z.detail:null;let L=z.errorStack||z.causeStack?[z.errorType,z.errorStack,z.causeType?"Caused by "+z.causeType:null,z.causeStack].filter(Boolean).join(` +`)],{type:"text/csv"}),b=document.createElement("a");b.href=URL.createObjectURL(N),b.download=i.username+"-repositories.csv",b.click()},e.showStatusMessage=g=>{let k=g.statusMessage||"(no message)";window.prompt(`Status message for ${g.repoId} (${g.status}):`,k)},e.fetchGithubInfo=g=>{let k=window.open("","_blank");k&&k.document.write("
Loading GitHub info for "+g.repoId+"...
"),t.get("/api/admin/repos/"+g.repoId+"/github").then(w=>{k&&(k.document.open(),k.document.write('
'+JSON.stringify(w.data,null,2).replace(/[<>]/g,S=>S==="<"?"<":">")+"
"),k.document.close())},w=>{let S=w&&w.data?JSON.stringify(w.data,null,2):String(w);k&&(k.document.body.innerHTML='
'+S+"
")})};function c(g){t.get("/api/admin/users/"+g+"/repos",{}).then(k=>{e.repositories=k.data},k=>{console.error(k)})}function v(g){t.get("/api/admin/users/"+g,{}).then(k=>{e.userInfo=k.data},k=>{console.error(k)})}v(i.username),c(i.username),e.banUser=()=>{confirm(`Ban user ${i.username}?`)&&t.post(`/api/admin/users/${i.username}/ban`).then(()=>v(i.username),g=>console.error(g))},e.activateUser=()=>{t.post(`/api/admin/users/${i.username}/activate`).then(()=>v(i.username),g=>console.error(g))},e.promoteUser=()=>{confirm(`Promote ${i.username} to admin?`)&&t.post(`/api/admin/users/${i.username}/promote`).then(()=>v(i.username),g=>console.error(g))},e.demoteUser=()=>{confirm(`Remove admin privileges from ${i.username}?`)&&t.post(`/api/admin/users/${i.username}/demote`).then(()=>v(i.username),g=>console.error(g))},e.tokens=[],e.tokenForm={name:"",plaintext:null};function h(){t.get("/api/admin/tokens").then(g=>{e.tokens=g.data||[]},g=>{g.status!==401&&g.status!==403&&console.error(g)})}h(),e.createToken=()=>{e.tokenForm.name&&t.post("/api/admin/tokens",{name:e.tokenForm.name}).then(g=>{e.tokenForm.plaintext=g.data.token,e.tokenForm.name="",h()},g=>console.error(g))},e.revokeToken=g=>{confirm(`Revoke token "${g.name}"?`)&&t.delete("/api/admin/tokens/"+g.id).then(()=>h(),k=>console.error(k))},e.removeCache=g=>{confirm("Remove cached files for "+g.repoId+"?")&&t.delete("/api/admin/repos/"+g.repoId).then(()=>c(i.username),k=>console.error(k))},e.removeRepository=g=>{confirm("Remove repository "+g.repoId+"?")&&t.delete("/api/repo/"+g.repoId+"/").then(()=>c(i.username),k=>console.error(k))},e.updateRepository=g=>{let k=rt({title:`Refreshing ${g.repoId}...`,date:new Date,body:`The repository ${g.repoId} is going to be refreshed.`});e.toasts.push(k),t.post(`/api/repo/${g.repoId}/refresh`).then(w=>{w.data.status=="ready"?k.title=`${g.repoId} is refreshed.`:k.title=`Refreshing of ${g.repoId}.`},w=>{k.title=`Error during the refresh of ${g.repoId}.`,k.body=w.body})},e.getGitHubRepositories=g=>{t.get(`/api/user/${e.userInfo.username}/all_repositories`,{params:{force:"1"}}).then(k=>{e.userInfo.repositories=k.data})};let y=null;e.watch("query",()=>{o.timeout.cancel(y),y=o.timeout(()=>{c(i.username)},500)},!0)},Zu=function(e,t,s){let i=yt(),o=Ht();e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.conferences=[],e.total=-1,e.totalPage=0,e.statusCounts=[];let r=w=>{if(w.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){w.preventDefault();let S=document.querySelector('.admin-filter-toolbar input[type="search"]');S&&S.focus()}};o(document,"keydown",r),e.on("dispose",()=>document.removeEventListener("keydown",r)),e.clearFilter=w=>{w==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[w]="",e.query.page=1},e.chips=[];let u=()=>{let w=[];(e.query.dateFrom||e.query.dateTo)&&w.push({key:"dateRange",label:"Date",value:(e.query.dateFrom||"\u2026")+" \u2013 "+(e.query.dateTo||"\u2026")}),e.chips=w};e.statusCountFor=w=>{let S=(e.statusCounts||[]).find(N=>N._id===w);return S?S.count:0},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=w=>{e.query.sort===w?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=w,e.query.direction="desc"),e.query.page=1},e.sortIcon=w=>e.query.sort===w?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let p="admin.conferences.filterPrefs",c={page:1,limit:25,sort:"name",direction:"asc",search:"",dateFrom:"",dateTo:"",ready:!0,expired:!0,removed:!0,error:!0,preparing:!0},v=loadFilterPrefs(p)||{};e.query=Object.assign({},c,v,{page:1,search:""});let h=s.search();h.search&&(e.query.search=h.search);let y="admin.conferences.presets";e.presets=JSON.parse(localStorage.getItem(y)||"[]"),e.savePreset=()=>{let w=window.prompt("Preset name:");if(!w)return;let S=Object.assign({},e.query);delete S.page,e.presets=(e.presets||[]).filter(N=>N.name!==w),e.presets.push({name:w,query:S}),localStorage.setItem(y,JSON.stringify(e.presets))},e.applyPreset=w=>{Object.assign(e.query,w.query,{page:1})},e.deletePreset=w=>{e.presets=(e.presets||[]).filter(S=>S.name!==w.name),localStorage.setItem(y,JSON.stringify(e.presets))},e.removeConference=w=>{confirm("Remove conference "+w.conferenceID+"?")&&t.delete("/api/admin/conferences/"+w.conferenceID).then(()=>g(),S=>console.error(S))},e.exportCsv=()=>{let w=new URLSearchParams(Object.entries(e.query).filter(([,S])=>S!==""&&S!==!1&&S!=null));w.set("format","csv"),w.set("limit","10000"),window.open("/api/admin/conferences?"+w.toString(),"_blank")},e.fetchError=null;function g(){e.fetchError=null,t.get("/api/admin/conferences",{params:e.query}).then(w=>{e.total=w.data.total,e.totalPage=Math.ceil(w.data.total/e.query.limit),e.conferences=w.data.results,e.statusCounts=w.data.statusCounts||[]},w=>{e.fetchError=w&&w.data&&w.data.error||"Failed to load conferences",console.error(w)})}rr(e,{flags:()=>e.query,keys:["ready","preparing","error","expired","removed"],count:w=>e.statusCountFor(w),onChange:()=>{e.query.page=1}}),g();let k=null;e.watch("query",()=>{i.timeout.cancel(k),k=i.timeout(g,500);let{page:w,search:S,...N}=e.query;saveFilterPrefs(p,N),u()},!0),u()},xu=function(e,t,s,i,o){let r=yt();e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.queueList=[],e.jobs=[],e.selectedQueue="download",e.selectedStats=null,e.range="1h",e.allStates=["active","waiting","delayed","failed","completed"],e.stateFilter={active:!0,waiting:!0,delayed:!0,failed:!0,completed:!0},rr(e,{flags:()=>e.stateFilter,keys:e.allStates,count:N=>(e.jobs||[]).filter(b=>b._state===N).length}),e.query={search:"",autoRefresh:!0},e.filteredJobs=()=>(e.jobs||[]).filter(N=>e.stateFilter[N._state]),e.jobProgressPct=N=>N?._state==="completed"?100:N&&N.progress&&typeof N.progress=="object"&&typeof N.progress.percent=="number"?Math.max(0,Math.min(100,Math.round(N.progress.percent))):typeof N.progress=="number"?Math.max(0,Math.min(100,Math.round(N.progress))):null;let u={get_files:"Fetching files",download:"Downloading",downloading:"Downloading",anonymize:"Anonymizing",anonymizing:"Anonymizing",ready:"Ready",removing:"Removing",preparing:"Preparing"};e.jobDetail=N=>{if(N?._state==="failed")return tr(N.failedReason||"")||"Failed";let b=N?.progress&&typeof N.progress=="object"?N.progress.status:null;return N?._state==="active"&&b?u[b]||tr(b):"\u2014"},e.jobDuration=N=>{if(!N.processedOn)return"\u2014";let b=N.finishedOn||Date.now();return Fn(b-N.processedOn)},e.metricsPoints=[],e.selectQueue=N=>{e.selectedQueue=N,p(),c()},e.setRange=N=>{e.range=N,c()};function p(){let N={queue:e.selectedQueue,search:e.query.search};t.get("/api/admin/queues",{params:N}).then(b=>{e.queueList=b.data.queues||[],e.jobs=b.data.jobs||[],e.selectedStats=e.queueList.find(T=>T.key===e.selectedQueue)||e.queueList[0]||null},b=>console.error(b))}function c(){t.get("/api/admin/queues/metrics",{params:{queue:e.selectedQueue,range:e.range}}).then(N=>{e.metricsPoints=N.data.points||[],o(k,0)},N=>console.error(N))}p(),c();let v=i(()=>{e.query.autoRefresh&&(p(),c())},15e3);e.on("dispose",()=>i.cancel(v)),e.refreshNow=function(){p(),c()};function h(N){let b=N&&N.data&&(N.data.message||N.data.error)||"Request failed";e.actionError=b,o(()=>{e.actionError=null},5e3),console.error(N)}e.actionError=null,e.removeJob=N=>{t.delete(`/api/admin/queue/${e.selectedQueue}/${N.id}`).then(p,h)},e.retryJob=N=>{t.post(`/api/admin/queue/${e.selectedQueue}/${N.id}`).then(p,h)},e.retryFailed=()=>{confirm(`Retry all failed jobs in ${e.selectedQueue}?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/retry-failed`).then(p,N=>console.error(N))},e.drainSelected=()=>{confirm(`Drain the ${e.selectedQueue} queue?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/drain`).then(p,N=>console.error(N))},e.togglePause=()=>{let N=e.selectedStats&&e.selectedStats.paused?"resume":"pause";t.post(`/api/admin/queue/${e.selectedQueue}/${N}`).then(p,b=>console.error(b))},e.emptyQueue=()=>{confirm(`Empty the ${e.selectedQueue} queue? This removes ALL jobs.`)&&t.post(`/api/admin/queue/${e.selectedQueue}/empty`).then(p,N=>console.error(N))},e.pauseAll=()=>{confirm("Pause all queues?")&&t.post("/api/admin/queues/pause-all").then(p,N=>console.error(N))};let y=null;e.watch("query.search",()=>{r.timeout.cancel(y),y=r.timeout(p,350)}),e.expanded={},e.toggleJob=N=>{e.expanded[N.id]=!e.expanded[N.id]},e.humanTime=N=>{if(!N)return"";let b=new Date(N);return b.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})+" "+b.toLocaleDateString([],{month:"short",day:"numeric"})},e.delayCountdown=N=>{if(!N)return"";var b=Math.max(0,Math.ceil((N-Date.now())/1e3));if(b<=0)return"resuming soon";var T=Math.floor(b/60),O=b%60;return"in "+(T>0?T+"m "+O+"s":O+"s")};function g(N){if(N<=0)return{ticks:[0],niceMax:1};let b=Math.pow(10,Math.floor(Math.log10(N))),T=b;N/T<2?T=b/2:N/T>5&&(T=b*2);let O=Math.ceil(N/T)*T,F=[];for(let H=0;H<=O;H+=T)F.push(H);return{ticks:F,niceMax:O}}function k(){var N=document.getElementById("q-throughput-chart");if(!N)return;var b=N.getContext("2d"),T=window.devicePixelRatio||1,O=N.parentElement.getBoundingClientRect(),F=44,H=44,se=22,_=Math.max(200,Math.round(O.width)),z=Math.max(180,Math.min(420,Math.round(O.height)||180)),I=_-F-H,q=z-se;N.width=_*T,N.height=z*T,N.style.width=_+"px",N.style.height=z+"px",b.setTransform(T,0,0,T,0,0);var E=document.body.classList.contains("dark-mode"),L="#8A857C",G=E?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.06)",j=E?"#6FBF8A":"#2F7D4F",Y=E?"rgba(111,191,138,0.12)":"rgba(47,125,79,0.08)",ne=E?"#F08A82":"#B42318",x=E?"rgba(240,138,130,0.08)":"rgba(180,35,24,0.06)",fe=getComputedStyle(document.body).getPropertyValue("--q-time-series").trim()||(E?"#E0A94A":"#946512"),me=e.metricsPoints||[];if(me.length===0){b.fillStyle=L,b.font="13px Inter, system-ui, sans-serif",b.textAlign="center",b.fillText("No metrics data yet",_/2,z/2),w=null;return}var qe=me.map(function(ke){return ke.completed}),Ue=me.map(function(ke){return ke.failed}),Xe=me.map(function(ke){return ke.avgMs});if(!qe.some(Boolean)&&!Ue.some(Boolean)){b.strokeStyle=E?"rgba(255,255,255,0.14)":"rgba(0,0,0,0.12)",b.beginPath(),b.moveTo(0,z-18.5),b.lineTo(_,z-18.5),b.stroke(),b.fillStyle=E?"#CFC8BD":"#4F4A42",b.font="500 14px Inter, system-ui, sans-serif",b.textAlign="center",b.fillText("No jobs processed in this window",_/2,z/2-6),b.fillStyle=L,b.font="12.5px Inter, system-ui, sans-serif",b.fillText("Completed and failed jobs will chart here",_/2,z/2+16),w=null;return}var ze=me.length,lt=I/(ze-1||1),Re=Math.max(1,Math.max.apply(null,qe),Math.max.apply(null,Ue)),Se=g(Re),J=Math.max.apply(null,Xe),ce=J>0?g(J):{ticks:[0],niceMax:1},ue=function(ke){return q-ke/Se.niceMax*(q-10)},he=function(ke){return q-ke/ce.niceMax*(q-10)},be=function(ke){return F+ke*lt};b.textAlign="right",b.textBaseline="middle",b.font="11px Inter, system-ui, sans-serif",Se.ticks.forEach(function(ke){var Fe=ue(ke);b.strokeStyle=G,b.lineWidth=1,b.beginPath(),b.moveTo(F,Fe),b.lineTo(_-H,Fe),b.stroke(),b.fillStyle=L,ke!==0&&b.fillText(ke>=1e3?(ke/1e3).toFixed(1)+"k":String(ke),F-6,Fe)}),J>0&&(b.textAlign="left",ce.ticks.forEach(function(ke){var Fe=he(ke);b.fillStyle=fe,ke!==0&&b.fillText(Fn(ke),_-H+6,Fe)}));var Oe=me[ze-1].ts,D=me[0].ts,A=Math.max(0,(Oe-D)/6e4),U=[1,2,5,10,15,30,60,120,180,360,720,1440,2880,10080],Z=U.find(function(ke){return A/ke<=4})||U[U.length-1],W=function(ke){return ke<60?ke+"m":ke<1440?ke/60+"h":ke/1440+"d"},ee=function(ke){for(var Fe=0,st=1;st0&&Math.abs(me[we].ts-(Oe-te*6e4))>re+1)){var pe=be(we),Ee=te===0?"now":W(te)+" ago",Te=b.measureText(Ee).width,Ve=ie===0?"right":we===0?"left":"center",We=Ve==="right"?pe:Ve==="left"?pe+Te:pe+Te/2;We>oe-12||(b.textAlign=Ve,b.fillText(Ee,pe,q+6),oe=Ve==="right"?pe-Te:Ve==="left"?pe:pe-Te/2)}}function je(ke,Fe,st,pt){ke.length!==0&&(b.beginPath(),b.moveTo(be(0),q),ke.forEach(function(Tt,Pt){var it=be(Pt),ft=Fe(Tt);if(Pt===0)b.lineTo(it,ft);else{var $t=(be(Pt-1)+it)/2;b.bezierCurveTo($t,Fe(ke[Pt-1]),$t,ft,it,ft)}}),b.lineTo(be(ke.length-1),q),b.closePath(),b.fillStyle=st,b.fill(),b.beginPath(),ke.forEach(function(Tt,Pt){var it=be(Pt),ft=Fe(Tt);if(Pt===0)b.moveTo(it,ft);else{var $t=(be(Pt-1)+it)/2;b.bezierCurveTo($t,Fe(ke[Pt-1]),$t,ft,it,ft)}}),b.strokeStyle=pt,b.lineWidth=1.5,b.stroke())}je(qe,ue,Y,j),je(Ue,ue,x,ne),J>0&&(b.beginPath(),Xe.forEach(function(ke,Fe){var st=be(Fe),pt=he(ke);if(Fe===0)b.moveTo(st,pt);else{var Tt=(be(Fe-1)+st)/2;b.bezierCurveTo(Tt,he(Xe[Fe-1]),Tt,pt,st,pt)}}),b.strokeStyle=fe,b.lineWidth=1,b.setLineDash([4,3]),b.stroke(),b.setLineDash([])),w={pts:me,maxLen:ze,marginLeft:F,step:lt,totalW:_,toX:be}}var w=null;function S(){var N=document.getElementById("q-throughput-chart");if(!(!N||N._tipBound)){N._tipBound=!0;var b=document.getElementById("q-chart-tooltip"),T=document.getElementById("q-chart-crosshair");N.addEventListener("mousemove",function(O){if(!(!w||!b||!T)){var F=w,H=N.getBoundingClientRect(),se=O.clientX-H.left,_=Math.round((se-F.marginLeft)/F.step);if(_<0||_>=F.maxLen){b.style.display="none",T.style.display="none";return}var z=F.pts[_],I=F.pts[F.pts.length-1].ts,q=Math.round((I-z.ts)/6e4),E;if(q<=0)E="now";else if(q<60)E=q+"m ago";else if(q<1440){var L=Math.floor(q/60),G=q%60;E=L+"h"+(G?" "+G+"m":"")+" ago"}else E=Math.round(q/1440)+"d ago";var j='
'+E+'
● completed: '+z.completed+'/min
● failed: '+z.failed+"/min
";if(z.avgMs>0){var Y=Fn(z.avgMs);j+='
● avg time: '+Y+"
"}b.innerHTML=j;var ne=F.toX(_),x=b.offsetWidth,fe=ne+10;fe+x>F.totalW&&(fe=ne-x-10),b.style.display="block",b.style.left=fe+"px",b.style.top="8px",T.style.display="block",T.style.left=ne+"px"}}),N.addEventListener("mouseleave",function(){b&&(b.style.display="none"),T&&(T.style.display="none")})}}e.watch("metricsPoints",function(){o(S,50)})},ec=function(e,t,s,i){Yu(e,t),e.redisCollecting=null,e.redisLoading=!1;let o=0,r=0,u=!1,p=!1;e.redisStatsState="loading";let c=yt();e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.entries=[],e.visible=[],e.available=null,e.cap=1e3,e.total=0,e.pageSize=250,e.expanded={},e.historySelected=null,e.historyView="overview";let v=null,h=[];e.detailTab={},e.copyHint="",e.parsedFilterCount=0,e.stats={last24h:0,prev24h:0,delta:0,severity:{error:0,warn:0,info:0},unique:{error:0,warn:0,info:0},buckets:[],dropped:0},e.query={search:"",bucket:"",sort:"recent",group:"code",autoRefresh:!0},e.relTime=_=>{if(!_)return"";let z=new Date(_).getTime();if(isNaN(z))return _;let I=Math.max(0,Date.now()-z),q=Math.floor(I/1e3);if(q<5)return"just now";if(q<60)return`${q}s ago`;let E=Math.floor(q/60);if(E<60)return`${E}m ago`;let L=Math.floor(E/60);if(L<24)return`${L}h ago`;let G=Math.floor(L/24);return G<7?`${G}d ago`:new Date(_).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})},e.absTime=_=>{if(!_)return"";let z=new Date(_);return isNaN(z.getTime())?_:z.toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})},e.absTimeShort=_=>{if(!_)return"";let z=new Date(_);return isNaN(z.getTime())?_:z.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})};let y=/^[a-zA-Z][a-zA-Z0-9]*(?:_[a-zA-Z0-9]+)+$/;function g(_,z){let I=_&&(_.httpStatus||_.status)||null;if(typeof I=="number"){if(I>=500)return"error";if(I===401||I===403||I===404)return"info";if(I>=400)return"warn"}return z==="error"?"error":z==="warn"?"warn":"info"}function k(_){_._rawJson=JSON.stringify(_,null,2);let z=(_.raw||[]).find(L=>L&&typeof L=="object"&&!Array.isArray(L));if(z){z.message&&y.test(z.message)?(_.displayMessage=z.message,_.displayContext=_.message):z.code&&y.test(String(z.code))?(_.displayMessage=String(z.code),_.displayContext=_.message):z.name&&z.name!=="AnonymousError"&&z.name!=="Error"?(_.displayMessage=z.name,_.displayContext=z.message||_.message):_.displayMessage=_.message,_._status=z.httpStatus||z.status||null,_._url=z.url||null,_._method=z.method||null,_._repoId=z.repoId||z.detail||null,_._detail=z.detail&&z.detail!==_._repoId?z.detail:null;let L=z.errorStack||z.causeStack?[z.errorType,z.errorStack,z.causeType?"Caused by "+z.causeType:null,z.causeStack].filter(Boolean).join(` `):typeof z.stack=="string"?z.stack:null;for(var I=[z.cause,z.err].filter(Boolean),q=0;!L&&q{Y==null||Y===""||I.push([j,Y])};for(let j of["service","event","severity","requestId","jobId"])q(j,z&&z[j]);q("name",z&&z.name),q("code",_.displayMessage||z&&z.message),_._bucket&&q("kind",_._bucket),q("httpStatus",z&&z.httpStatus),z&&z.status&&!z.httpStatus&&q("status",z.status),q("module",_.module);let E=z&&z.detail;if(typeof E=="string"){let j=E.trim();if(j[0]==="{"||j[0]==="[")try{E=JSON.parse(E)}catch{}}if(q("detail",E),q("repoId",z&&z.repoId),q("filePath",z&&z.filePath),q("upstreamStatus",z&&z.upstreamStatus),q("upstreamBody",z&&z.upstreamBody),q("url",_._url),q("err",z&&z.err),q("cause",z&&!z.err&&z.cause),q("ts",_.ts),!I.length)return JSON.stringify(_,null,2);let L=I.reduce((j,Y)=>Math.max(j,Y[0].length),0),G=["{"];return I.forEach(([j,Y],ne)=>{let fe=` ${`"${j}":`.padEnd(L+3," ")} `,me=neze===0?Xe:Ue+Xe).join(` `)}else typeof Y=="number"||typeof Y=="boolean"?qe=String(Y):qe=JSON.stringify(Y);G.push(`${fe}${qe}${me}`)}),G.push("}"),G.join(` `)}function S(_){let z=[],I="",q=/(\w+):(>=|<=|!=|>|<|=)?([^\s]+)/g,E=0,L;for(;L=q.exec(_);)I+=_.slice(E,L.index),E=q.lastIndex,z.push({key:L[1],op:L[2]||"=",val:L[3]});return I+=_.slice(E),{filters:z,free:I.trim().toLowerCase()}}function N(_,z){for(let I of z.filters){let q=(L,G,j)=>{let Y=parseFloat(L),ne=parseFloat(G);return j==="="?String(L)===String(G):j==="!="?String(L)!==String(G):j===">="?Y>=ne:j==="<="?Y<=ne:j===">"?Y>ne:j==="<"?Yz&&j._bucket!==z?!1:N(j,_)),q=e.query.group;if(q){let j=x=>JSON.stringify(q==="module"?[x.module,x._bucket]:[x.raw?.[0]?.service||"unknown",x.module,x.displayMessage||x.message||"_",x._bucket,x._status]),Y=new Map;for(let x of I){let fe=j(x);if(Y.has(fe)){let me=Y.get(fe);me.count++,me._related.push(x),new Date(x.ts)>new Date(me.ts)&&(me.ts=x.ts,me._url=x._url,me._status=x._status),new Date(x.ts)new Date(fe.ts).getTime()>=ne).length;I=Array.from(Y.values())}else I=I.map((j,Y)=>(j._key="row:"+Y+":"+j.ts,j._related=[j],j._firstSeen=j.ts,j._lastHourCount=0,j.count=1,j));let E=j=>({error:0,warn:1,info:2})[j._bucket]??1;e.query.sort==="count"?I.sort((j,Y)=>E(j)-E(Y)||Y.count-j.count||new Date(Y.ts)-new Date(j.ts)):I.sort((j,Y)=>E(j)-E(Y)||new Date(Y.ts)-new Date(j.ts)),e.visible=I;let L=!!(e.query.bucket||(e.query.search||"").trim()),G=!L&&(e.stats?.severity?.error||0)>0&&!I.some(j=>j._bucket==="error")&&e.entries.length<1500;(L&&!I.length||G)&&e.canLoadMore?.()&&!e._autoLoading&&e.entries.length<2500&&(e._autoLoading=!0,T(!0))}function T(_){if(_&&e.redisLoading)return;let z=++o;e.redisLoading=!0;let I=_?e.redisNextOffset||e.entries.length:0,q=_?e.pageSize:Math.max(e.pageSize,e.redisNextOffset||e.entries.length||e.pageSize);t.get("/api/admin/errors",{params:{offset:I,limit:q}}).then(E=>{if(p||z!==o)return;e.redisLoading=!1;let L=(E.data.entries||[]).map(k);e.entries=_?e.entries.concat(L):L,e.redisRedacted=(_&&e.redisRedacted||0)+(E.data.redactedEntries||0),e.redisNextOffset=E.data.nextOffset??I+(E.data.entries||[]).length,e.available=!!E.data.available,e.redisCollecting=E.data.redisCollecting!==!1,e.cap=E.data.max||e.cap,e.total=E.data.total||e.entries.length,e._autoLoading=!1,b()},()=>{p||z!==o||(e.redisLoading=!1,e._autoLoading=!1,e.available=!1)})}e.loadMore=()=>T(!0),e.canLoadMore=()=>(e.redisNextOffset||e.entries.length){if(p||z!==r)return;u=!1;let q=I.data||{};e.redisStatsState=q.available===!1?"unavailable":"ready";let E=q.prev24h?Math.round((q.last24h-q.prev24h)/q.prev24h*100):0;e.stats={last24h:q.last24h||0,prev24h:q.prev24h||0,delta:E,severity:q.severity||{error:0,warn:0,info:0},unique:q.unique||{error:0,warn:0,info:0},buckets:q.buckets||[],dropped:q.dropped||0},b()},()=>{!p&&z===r&&(u=!1,e.redisStatsState="unavailable")})}function F(_=!1){(!_||!e.redisLoading)&&T(),O(_)}e.barPx=(_,z)=>{let I=e.stats.buckets||[],q=0,E=0;for(let Y of I)q=Math.max(q,(Y.error||0)+(Y.warn||0)),E=Math.max(E,Y.info||0);let L=_[z]||0;if(!L)return 0;if(z==="info")return E?Math.max(2,Math.round(L/E*(q?16:60))):0;let G=(_.error||0)+(_.warn||0),j=Math.round(G/q*44);return Math.max(4,Math.round(L/G*j))},e.bucketTitle=_=>`${new Date(_.hour).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})} \xB7 ${_.error||0} err \xB7 ${_.warn||0} warn \xB7 ${_.info||0} info`,e.toggle=async(_,z)=>{v=z||document.activeElement,h=e.captureErrorScroll(v),e.historySelected=_,e.historyView="overview",e.expanded={[_._key]:!0},await Ge(),document.getElementById("history-inspector-title")?.focus({preventScroll:!0}),document.getElementById("history-inspector-title")?.scrollIntoView?.({block:"nearest"})},e.showHistoryTimeline=_=>{if(e.historyView="timeline",e.traceSelection)return;let z=["requestId","jobId"].find(I=>e.logTraceId(e.historySelected,I));z&&e.lookupTrace(z,e.logTraceId(e.historySelected,z),_,e.historySelected)},e.closeHistory=async()=>{let _=e.historySelected?._key;e.historySelected=null,e.expanded={},e.traceSelection&&await e.closeTrace(),await Ge(),(v?.isConnected?v:[...document.querySelectorAll("[data-history-key]")].find(I=>I.dataset.historyKey===_))?.focus({preventScroll:!0}),e.restoreErrorScroll(h)},e.setBucket=_=>{e.query.bucket=_},e.refreshNow=()=>{e.historySelected=null,e.historyView="overview",e.expanded={},e.traceSelection&&e.closeTrace(),F()},e.clearAll=()=>{confirm("Clear Redis error history? Central logs are unaffected.")&&t.delete("/api/admin/errors").then(()=>e.refreshNow(),_=>console.error(_))},e.exportCsv=()=>{let _=["ts","level","module","displayMessage","_status","_url","_repoId"],z=[_.join(",")];for(let L of e.visible)z.push(_.map(G=>{let j=L[G]==null?"":String(L[G]);return/[",\n]/.test(j)?`"${j.replace(/"/g,'""')}"`:j}).join(","));let I=new Blob([z.join(` -`)],{type:"text/csv;charset=utf-8"}),q=URL.createObjectURL(I),E=document.createElement("a");E.href=q,E.download=`errors-${new Date().toISOString().slice(0,19)}.csv`,document.body.appendChild(E),E.click(),document.body.removeChild(E),URL.revokeObjectURL(q)};function H(_){e.copyHint=`${_} copied`,c.timeout(()=>{e.copyHint=""},1500)}e.copyJson=_=>{navigator.clipboard.writeText(_._rawJson).then(()=>H("JSON"))},e.copyCurl=_=>{if(!_._url)return;let I=`curl -X ${_._method||"GET"} '${window.location.origin}${_._url}'`;navigator.clipboard.writeText(I).then(()=>H("curl"))},F();let se=i(()=>{e.query.autoRefresh&&F(!0)},15e3);e.on("dispose",()=>{p=!0,o++,r++,i.cancel(se)}),e.watch("query.search",b),e.watch("query.bucket",b),e.watch("query.sort",b),e.watch("query.group",b)},ec=function(e,t,s,i){if(e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null){s.url("/");return}e.data=null,e.loading=!0,e.error=null,e.performance=null,e.performanceMinutes=15,e.performanceTab="routes",e.cacheReport=null,e.cacheError=null,e.cacheMinutes=60,e.cacheTraffic="all",e.ovView=["performance","cache"].includes((window.location.hash||"").slice(1))?window.location.hash.slice(1):"summary",e.setOvView=function(b){e.ovView=b;try{window.history.replaceState(null,"",b==="summary"?window.location.pathname:"#"+b)}catch{}};var o=!1;e.loadCache=function(){if(!o){o=!0;var b=e.cacheMinutes;t.get("/api/admin/cache",{params:{minutes:b}}).then(function(T){b===e.cacheMinutes&&(e.cacheReport=T.data,e.cacheError=T.data.available?null:T.data.reason||"Cache monitoring is unavailable.")},function(){e.cacheError="Could not refresh cache monitoring. Displayed values may be stale."}).finally(function(){o=!1,b!==e.cacheMinutes&&e.loadCache()})}},e.cacheRows=function(){return(e.cacheReport?.rows||[]).filter(function(b){return e.cacheTraffic==="all"||b.traffic===e.cacheTraffic})},e.cacheRate=function(b,T){var O=e.cacheRows(),F=function(_){return O.filter(function(z){return z.name===_}).reduce(function(z,I){return z+I[T]},0)},H=F(b+"_hit"),se=F(b+"_miss");return H+se?(100*H/(H+se)).toFixed(1)+"%":"No samples"},e.cacheEventName=function(b){return b.replaceAll("_"," ")},e.cacheP95=function(b){var T=0,O=e.cacheReport?.latencyBucketsMs||[];if(!b.count)return"No samples";if(!b.ms)return"Not timed";for(var F=0;F<=O.length;F++)if(T+=b["b"+F]||0,T>=Math.ceil(b.count*.95))return F 10\u202Fs";return"No samples"},e.healthAlert=function(){let b=e.data&&e.data.system||{},T=[["Memory",b.memPercent],["Disk",b.diskPercent]].filter(([,F])=>F>90);return T.length?T.map(([F,H])=>F+" is at "+H+"%").join(" and ")+". New anonymizations may fail until "+(T.length>1?"they drop.":"it drops."):""},e.performanceError=null,e.formatMs=function(b){return b==null?"":Fn(b)},e.latencyBound=function(b,T){return b.count?b[T]==null?"> 60\u202Fs":"\u2264 "+e.formatMs(b[T]):"No samples"},e.firstByteBound=function(b){return e.latencyBound({count:b.firstByteCount,p95UpperMs:b.firstByteP95UpperMs},"p95UpperMs")},e.sampleAge=function(b){return Math.max(0,Math.round((Date.now()-b.sampledAt)/1e3))},e.peakRss=function(b){return(e.performance.runtimeSeries||[]).filter(function(T){return T.instance===b.instance}).reduce(function(T,O){return Math.max(T,O.rss)},b.memory.rss)},e.performanceWarning=function(b){return e.sampleAge(b)>45||b.droppedBatches||b.droppedMetrics||b.sockets?.closeWait>0||b.eventLoop?.p95Ms>100||b.memoryLimitBytes&&b.memory.rss>b.memoryLimitBytes*.8};var r=!1;e.loadPerformance=function(){var b=e.performanceMinutes;e.performance?.windowMinutes&&e.performance.windowMinutes!==b&&(e.performance=null),!r&&(r=!0,t.get("/api/admin/performance",{params:{minutes:b}}).then(function(T){b===e.performanceMinutes&&(e.performance=T.data,e.performanceError=T.data.available?null:"Performance monitoring is unavailable. Request history may be incomplete.")},function(){b===e.performanceMinutes&&(e.performanceError="Could not refresh performance monitoring. Displayed samples may be stale.")}).finally(function(){r=!1,b!==e.performanceMinutes&&e.loadPerformance()}))};function u(b){if(b==null)return"\u2014";for(var T=["B","KB","MB","GB","TB"],O=0,F=b;F>=1024&&O0?1:0).replace(/\.0$/,"")+" "+T[O]}e.humanBytes=u;function p(b){if(!b)return"\u2014";var T=Math.floor(b/86400),O=Math.floor(b%86400/3600),F=Math.floor(b%3600/60);return T>0?T+"d "+(O<10?"0":"")+O+"h":O>0?O+"h "+(F<10?"0":"")+F+"m":F+"m"}e.humanDuration=p;function c(b){return b==null?"\u2014":b>=1e6?(b/1e6).toFixed(1)+"M":b>=1e3?(b/1e3).toFixed(1)+"K":String(b)}e.humanNum=c,e.queueTotal=function(b){return b?(b.waiting||0)+(b.active||0)+(b.delayed||0)+(b.failed||0):0},e.statusCount=function(b){if(!e.data||!e.data.repos)return 0;for(var T=e.data.repos.statusBreakdown||[],O=0;O0,zero:!F,title:String(H.getHours()).padStart(2,"0")+":00 \xB7 "+(O.error||0)+" 5xx, "+(O.warn||0)+" 4xx"}})},e.errorHoursPeak=function(){var b=e.errorStats&&e.errorStats.buckets||[];return b.reduce(function(T,O){return Math.max(T,(O.error||0)+(O.warn||0))},0)};function v(b){var T=b||[];return T.map(function(O,F){var H=T[F-1]||{},se=Object.assign({},O);return se.dailyRepositories=F?Math.max(0,(O.nbRepositories||0)-(H.nbRepositories||0)):0,se.dailyUsers=F?Math.max(0,(O.nbUsers||0)-(H.nbUsers||0)):0,se.dailyPageViews=F?Math.max(0,(O.nbPageViews||0)-(H.nbPageViews||0)):0,se})}function h(b){var T=b&&b.length?b[b.length-1]:{};return{repositories:T.dailyRepositories||0,users:T.dailyUsers||0,pageViews:T.dailyPageViews||0}}function y(b,T){if(!b||!b.length)return b;var O=new Date(b[b.length-1].date);if(isNaN(O))return b;var F={};b.forEach(function(I){F[new Date(I.date).toISOString().slice(0,10)]=I});for(var H=[],se=T-1;se>=0;se--){var _=new Date(O.getTime()-se*864e5),z=_.toISOString().slice(0,10);H.push(F[z]||{date:_.toISOString(),_empty:!0,dailyPageViews:0,dailyRepositories:0,dailyUsers:0,nbUsers:0})}return H}var g={};e.historyMax=function(b){return g[b]||0};var k={};e.axisMax=function(b){var T=g[b]||0;if(T<=2)return 2;if(T<=10)return Math.ceil(T/2)*2;var O=Math.pow(10,Math.floor(Math.log10(T)));return Math.ceil(T/O)*O},e.historyBarH=function(b,T){return!b||!g[T]||!b[T]?0:Math.max(1,Math.round(b[T]/e.axisMax(T)*140))},e.historyRange=function(b){return{min:k[b],max:g[b]}};var w=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];e.historyLabel=function(b){if(!b||!b.date)return"";var T=new Date(b.date);return w[T.getUTCMonth()]+" "+T.getUTCDate()},e.historyHasMissing=function(){return!!(e.data&&e.data.history||[]).some(function(b){return b&&b._empty})},e.firstDataIndex=function(){for(var b=e.data&&e.data.history||[],T=0;T=O)return{lo:z,hi:z+2*se[_]}}return{lo:0,hi:e.axisMax("nbUsers")}},e.userStepPath=function(b){var T=e.data&&e.data.history||[],O=e.userAxis(),F=g.nbUsers?O.hi-O.lo:0,H=e.firstDataIndex();if(!F||H>=T.length)return"";for(var se=function(q){return(140-((q||0)-O.lo)/F*140).toFixed(2)},_=b?"M"+H+" 140":"",z=H;zg[O])&&(g[O]=T[O]),(k[O]==null||T[O] .meta-more"),s=[...e.querySelectorAll(":scope > .meta-item")];if(s.forEach(o=>{o.removeAttribute("data-meta-hidden")}),t&&(t.hidden=!0,t.textContent="",t.removeAttribute("title"),t.removeAttribute("aria-label")),!e.clientWidth)return;if(e.classList.add("is-fitting"),e.scrollWidth<=e.clientWidth+1){e.classList.remove("is-fitting");return}let i=[];for(let o=s.length-1;o>=0&&e.scrollWidth>e.clientWidth+1;o--)if(s[o].setAttribute("data-meta-hidden",""),i.unshift(s[o]),t){let r=i.map(u=>u.dataset.metaLabel||u.textContent.trim().replace(/\s+/g," "));t.hidden=!1,t.textContent="+"+i.length,t.title=r.join(" \xB7 "),t.setAttribute("aria-label",i.length+" more: "+r.join(", "))}e.classList.remove("is-fitting")}function tc(e,t){if(typeof document>"u"||typeof MutationObserver>"u"||!document.body)return;let s=!1,i=null,o=()=>{s=!1,i&&(document.querySelectorAll("[data-meta-fit]").forEach(Og),i.takeRecords())},r=()=>{!s&&i&&(s=!0,e.timeout(o,30))};i=new MutationObserver(u=>{u.some(p=>!(p.target.closest&&p.target.closest(".meta-more")))&&r()}),i.observe(document.body,{childList:!0,subtree:!0,characterData:!0}),no(()=>{i.disconnect(),i=null}),t(window,"resize",r),document.fonts?.ready&&document.fonts.ready.then(r),r()}var Mg=["bif","clp","djf","gnf","jpy","kmf","krw","mga","pyg","rwf","ugx","vnd","vuv","xaf","xof","xpf"],sr=[{id:"subscription",label:"Subscriptions"},{id:"repository",label:"Repository add-ons"},{id:"conference",label:"Conferences"}],Vg={author_monthly:"Author monthly",author_annual:"Author annual",author_pass:"Live updates",repo_extend:"Extended expiration",repo_never:"Never expire",repo_slot:"Extra repository",repo_pack:"Paper pack",conference_workshop:"Workshop",conference:"Conference",conference_large:"Large conference"};function fo(e){return Object.entries(e||{}).filter(([,t])=>t).sort((t,s)=>s[1]-t[1]).map(([t,s])=>{let i=Mg.includes(t)?s:s/100;try{return new Intl.NumberFormat(void 0,{style:"currency",currency:t.toUpperCase(),minimumFractionDigits:i%1?2:0,maximumFractionDigits:2}).format(i)}catch{return i+" "+t.toUpperCase()}})}var nc=function(e,t,s){let i=yt();if(e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null){s.url("/");return}e.families=sr,e.periods=[{id:"7d",label:"7 days"},{id:"30d",label:"30 days"},{id:"90d",label:"90 days"},{id:"12m",label:"12 months"},{id:"all",label:"All time"}];let o=(()=>{try{return localStorage.getItem("admin.billing.period")}catch{return null}})();e.period=e.periods.some(w=>w.id===o)?o:"30d",e.summary=null,e.summaryError=null,e.summaryLoading=!0,e.periodLabel=()=>(e.periods.find(w=>w.id===e.period)||{}).label||"",e.periodPhrase=()=>e.period==="all"?"all time":"last "+e.periodLabel(),e.money=w=>fo(w),e.moneyText=(w,S="\u2014")=>fo(w).join(" \xB7 ")||S,e.revenueOn=()=>!!e.summary?.revenue?.available,e.planName=w=>((e.summary?.plans||[]).find(S=>S.planId===w)||{}).name||Vg[w]||w,e.bucketTotal=w=>w?w.subscription+w.repository+w.conference:0,e.chartMax=()=>{let w=Math.max(0,...(e.summary?.series||[]).map(e.bucketTotal));if(w<=4)return 4;let S=Math.pow(10,Math.floor(Math.log10(w)));return[1,1.2,1.5,2,2.5,3,4,5,6,8,10].map(N=>N*S).find(N=>N>=w&&N%2===0)||10*S},e.segmentPct=(w,S)=>w&&w[S]?w[S]/e.chartMax()*100:0,e.familyTotal=w=>(e.summary?.series||[]).reduce((S,N)=>S+N[w],0);let r=(w,S)=>{for(let[N,b]of Object.entries(S||{}))w[N]=(w[N]||0)+b;return w};e.familyRevenue=w=>(e.summary?.series||[]).reduce((S,N)=>r(S,N.revenue?.[w]),{}),e.seriesMissing=()=>(e.summary?.series||[]).reduce((w,S)=>w+(S.missing||0),0),e.legendText=w=>{let S=Da(e.familyTotal(w));if(!e.revenueOn()||e.seriesMissing())return S;let N=fo(e.familyRevenue(w));return N.length?S+" \xB7 "+N.join(" \xB7 "):S},e.bucketLabel=w=>{if(!w)return"";let S=new Date(w.date),N={timeZone:"UTC",day:"numeric",month:"short"};return e.summary?.bucket==="month"?S.toLocaleDateString(void 0,{timeZone:"UTC",month:"short",year:"numeric"}):((e.period==="12m"||e.period==="all"||S.getUTCFullYear()!==new Date().getUTCFullYear())&&(N.year="numeric"),(e.summary?.bucket==="week"?"Week of ":"")+S.toLocaleDateString(void 0,N))},e.bucketTip=w=>{let S=e.bucketTotal(w),N=e.bucketLabel(w)+" \xB7 "+(S?S+(S===1?" sale":" sales"):"no sales");if(!S)return N;let b=e.revenueOn(),T=sr.filter(_=>w[_.id]).map(_=>[_.label,String(w[_.id]),b?fo(w.revenue?.[_.id]).join(" \xB7 "):""]),O=sr.reduce((_,z)=>r(_,w.revenue?.[z.id]),{}),F=b?[...fo(O).length?["Total "+fo(O).join(" \xB7 ")]:[],...w.missing?[w.missing+(w.missing===1?" sale":" sales")+" without a known price"]:[]]:["Revenue unavailable"],H=_=>Math.max(...T.map(z=>z[_].length)),se=T.map(_=>(_[0].padEnd(H(0))+" "+_[1].padStart(H(1))+(_[2]?" "+_[2]:"")).trimEnd());return[N,...se,...F].join(` -`)},e.tipSide=w=>{let S=(e.summary?.series||[]).length;return S<3?"":w=S*3/4?"tip-end":""},e.bucketName=()=>({day:"day",week:"week",month:"month"})[e.summary?.bucket]||"day",e.seriesSales=()=>(e.summary?.series||[]).reduce((w,S)=>w+e.bucketTotal(S),0),e.plansWithActivity=()=>(e.summary?.plans||[]).filter(w=>w.active||w.allTimeSales||w.sales),e.familyLabel=w=>(sr.find(S=>S.id===w)||{}).label||"",e.familyPlans=w=>(e.summary?.plans||[]).filter(S=>S.family===w),e.familySum=(w,S)=>e.familyPlans(w).reduce((N,b)=>N+(b[S]||0),0),e.familyMoney=(w,S,N)=>{if(!e.revenueOn())return"\u2014";let b=e.familyPlans(w);return b.some(T=>T[N]===!1)?"Incomplete":e.moneyText(b.reduce((T,O)=>r(T,O[S]),{}))},e.planTotals=()=>{let w=S=>(e.summary?.plans||[]).reduce((N,b)=>N+(b[S]||0),0);return{active:w("active"),sales:w("sales"),allTimeSales:w("allTimeSales")}},e.webhookState=()=>{let w=e.summary?.webhooks;return w?w.failed||w.reconciliationFailed?"bad":w.oldestPendingSeconds>900||w.unreviewedRevocations?"warn":"ok":"ok"},e.age=w=>w?Fn(w*1e3):"\u2014";let u=0;e.loadSummary=()=>{let w=++u;e.summaryLoading=!0,e.summaryError=null,t.get("/api/admin/billing/summary",{params:{period:e.period}}).then(S=>{if(w!==u)return;e.summaryLoading=!1;let N=S.data;if(!N||!N.subscriptions||!N.sales||!Array.isArray(N.plans)){e.summaryError="The billing summary had an unexpected format.";return}e.summary=N},S=>{w===u&&(e.summaryLoading=!1,e.summaryError=S&&S.data&&S.data.error||"Could not load billing figures.")})},e.setPeriod=w=>{if(e.period!==w){e.period=w;try{localStorage.setItem("admin.billing.period",w)}catch{}e.loadSummary()}},e.grants=[],e.total=-1,e.totalPage=0,e.stateCounts={},e.statuses=[],e.grantsError=null,e.filtersOpen=!1,e.query={page:1,limit:25,search:"",plan:"",status:"",state:"",period:"",sort:"purchasedAt",direction:"desc"};let p=s.search();p.search&&(e.query.search=p.search),e.stateView=()=>e.query.state||"all",e.setStateView=w=>{e.query.state=w==="all"?"":w,e.query.page=1},e.stateCount=w=>w==="all"?["active","expired","revoked"].reduce((S,N)=>S+(e.stateCounts[N]||0),0):e.stateCounts[w]||0,e.sortBy=w=>{e.query.sort===w?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=w,e.query.direction="desc"),e.query.page=1},e.sortIcon=w=>e.query.sort===w?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"",e.chips=[];let c=()=>{let w=[];e.query.plan&&w.push({key:"plan",label:"Plan",value:e.planName(e.query.plan)}),e.query.status&&w.push({key:"status",label:"Stripe status",value:e.query.status.replace(/_/g," ")}),e.query.period&&w.push({key:"period",label:"Started",value:"last "+((e.periods.find(S=>S.id===e.query.period)||{}).label||e.query.period)}),e.chips=w};e.clearFilter=w=>{e.query[w]="",e.query.page=1},e.filterPlan=w=>{Object.assign(e.query,{plan:w,page:1});let S=document.getElementById("bl-grants");S&&S.scrollIntoView&&S.scrollIntoView({behavior:"smooth",block:"start"})},e.clearFilters=()=>Object.assign(e.query,{search:"",plan:"",status:"",state:"",period:"",page:1}),e.hasFilters=()=>!!(e.query.search||e.query.plan||e.query.status||e.query.state||e.query.period),e.filterCount=()=>["plan","status","period"].filter(w=>e.query[w]).length,e.amountText=w=>{if(!w.amount)return"\u2014";let S=fo({[w.amount.currency]:w.amount.value})[0]||"\u2014";if(!w.amount.interval)return S;let N=w.amount.intervalCount>1?w.amount.intervalCount+" "+w.amount.interval+"s":w.amount.interval;return S+" / "+N},e.amountTitle=w=>w.amount?"Stripe list price"+(w.pack?" of the whole pack":""):{stripe_not_configured:"Revenue unavailable: Stripe is not configured on this server.",unresolved:"Revenue unavailable: this Stripe price could not be looked up.",unrecorded:"Revenue unavailable: no sale price was recorded for this subscription."}[w.amountMissing]||"Revenue unavailable.",e.endText=w=>{if(w.never)return"Never ends";if(!w.until)return"\u2014";let S=nr(w.until);return w.state!=="active"?(new Date(w.until){let S=(w.parts||[]).find(N=>N.planId==="author_pass");return!w.pack||!S||!S.until?"":(new Date(S.until)(w.parts||[]).map(S=>v[S.planId]||e.planName(S.planId)).join(", ").replace(/^./,S=>S.toUpperCase()),e.packPartsTitle=w=>"Paper pack: "+(w.parts||[]).map(S=>e.planName(S.planId)).join(", "),e.statusText=w=>(w.status||"unknown").replace(/_/g," "),e.revocationText=w=>w==="dispute"?"Disputed":w==="full_refund"?"Refunded":"Revoked",e.scopeHref=w=>w?.kind==="repo"?"/admin/repositories?search="+encodeURIComponent(w.id):w?.kind==="conference"?"/conference/"+encodeURIComponent(w.id):null;let h=0;function y(){let w=++h;e.grantsError=null;let S=Object.fromEntries(Object.entries(e.query).filter(([,N])=>N!==""&&N!=null));t.get("/api/admin/billing/grants",{params:S}).then(N=>{w===h&&(e.total=N.data?.total??0,e.totalPage=Math.ceil(e.total/e.query.limit),e.grants=N.data?.results||[],e.stateCounts=N.data.stateCounts||{},e.statuses=N.data.statuses||[])},N=>{w===h&&(e.grantsError=N&&N.data&&N.data.error||"Could not load subscriptions and purchases.")})}e.reloadGrants=y,e.loadSummary(),y(),c();let g=null,k=JSON.stringify({...e.query,page:0});e.watch("query",()=>{let w=JSON.stringify({...e.query,page:0});if(w!==k&&e.query.page!==1){k=w,e.query.page=1;return}k=w,i.timeout.cancel(g),g=i.timeout(y,300),c()},!0)},oc=function(e,t,s){if(e.user==null){s.url("/");return}e.Math=Math;let i=typeof window<"u"?window:null,o=i?new URLSearchParams(i.location.search):null,r=["7d","30d","90d","all"],u=["accepted","rejected","unknown","sending"];e.emailRows=[],e.emailState=u.includes(o?.get("state"))?o.get("state"):"",e.emailKind=["repository-expiration","owner-access"].includes(o?.get("kind"))?o.get("kind"):"",e.emailPeriod=r.includes(o?.get("period"))?o.get("period"):"7d",e.emailSearch=o?.get("search")||"";let p=e.emailSearch.trim();e.emailLoading=!1,e.emailError="",e.emailAnnouncement="",e.emailNextCursor=null,e.emailSummary=null,e.emailSummaryError="",e.emailSummaryLoading=!1,e.emailUpdated=null,e.emailPage=1,e.selectedEmailId=null,e.emailCopyMessage="",e.emailCopiedValue=null,e.emailTimezone=Intl.DateTimeFormat().resolvedOptions().timeZone,e.emailStatusLabel=O=>({sending:"Pending",accepted:"Accepted",rejected:"Rejected",unknown:"Unknown"})[O]||O,e.emailKindLabel=O=>({"repository-expiration":"Repository expiration","owner-access":"GitHub access"})[O]||O,e.emailTime=O=>O?new Date(O).toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"}):"Not recorded",e.emailShortTime=O=>{if(!O)return"Not recorded";let F=new Date(O);return F.toLocaleString(void 0,{...e.emailPeriod==="all"||F.getFullYear()!==new Date().getFullYear()?{year:"numeric"}:{},month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})},e.emailExplanation=O=>O.state==="accepted"?"The provider accepted this request. Inbox delivery is not confirmed.":O.state==="sending"?"The attempt was recorded, but no final outcome has been recorded. Check the provider before sending again.":O.state==="unknown"?"The provider outcome could not be confirmed. Check the provider before sending again to avoid duplicates.":{400:"The provider rejected the request as invalid.",401:"The provider rejected authentication.",403:"The provider denied this request.",404:"The provider could not find the requested endpoint or resource.",422:"The provider could not process the request.",429:"The provider rejected the request because of rate limiting."}[O.httpStatus]||(O.httpStatus>=500?"The provider reported a server error.":"The provider rejected this request."),e.toggleEmail=O=>{e.selectedEmailId=e.selectedEmailId===O._id?null:O._id,e.emailCopyMessage="",e.emailCopiedValue=null};let c=!1,v=0,h=0,y="",g="",k=!1,w=null;e.copyEmail=async O=>{e.emailCopiedValue=null;try{if(!i?.navigator?.clipboard)throw new Error("Clipboard unavailable");await i.navigator.clipboard.writeText(String(O)),c||(e.emailCopyMessage="Copied.",e.emailCopiedValue=String(O))}catch{c||(e.emailCopyMessage="Could not copy. Select and copy the text manually.")}};let S=()=>({period:e.emailPeriod,search:p||void 0,kind:e.emailKind||void 0}),N=()=>{if(i)try{let O=new URL(i.location.href);for(let[F,H]of Object.entries({...S(),state:e.emailState}))H?O.searchParams.set(F,H):O.searchParams.delete(F);i.history.replaceState(null,"",O.pathname+O.search+O.hash)}catch{}};e.hasEmailFilters=()=>!!(e.emailState||e.emailKind||p||e.emailPeriod!=="7d"),e.emailVisibleRows=()=>e.emailRows.slice((e.emailPage-1)*25,e.emailPage*25),e.emailTotal=()=>e.emailSummary?e.emailState?e.emailSummary.counts[e.emailState]:e.emailSummary.total:null,e.emailPageCount=()=>e.emailTotal()==null?null:Math.max(1,Math.ceil(e.emailTotal()/25)),e.emailDayTotal=O=>u.reduce((F,H)=>F+(Number(O[H])||0),0),e.emailChartTotal=()=>(e.emailSummary?.series||[]).reduce((O,F)=>O+e.emailDayTotal(F),0),e.jumpToEmailHistory=()=>{let O=i?.document?.querySelector("#email-history-title");O&&(O.focus({preventScroll:!0}),O.scrollIntoView({block:"start"}))},e.emailChartMax=()=>Math.max(1,...(e.emailSummary?.series||[]).map(e.emailDayTotal)),e.emailDayLabel=O=>{let F=typeof O=="string"?O:O?.date;if(!F)return"";let H=new Date(F+"T12:00:00Z");return Number.isNaN(H.getTime())?"":H.toLocaleDateString(void 0,{month:"short",day:"numeric",timeZone:"UTC"})};let b=O=>{e.emailPage=O,e.selectedEmailId=null,w=null;let F=(O-1)*25+1,H=Math.min(O*25,e.emailRows.length);e.emailAnnouncement=`Page ${O}. Showing attempts ${F} to ${H}.`;let se=i?.document?.querySelector("#email-history-title");se&&(se.setAttribute("tabindex","-1"),se.focus({preventScroll:!0}),se.scrollIntoView({block:"start",behavior:"auto"}))};e.loadEmailSummary=async()=>{let O=JSON.stringify(S());O!==g&&(e.emailSummary=null),g=O;let F=++h;e.emailSummaryLoading=!0,e.emailSummaryError="";try{let H=await t.get("/api/admin/emails/summary",{params:S()});F===h&&(e.emailSummary=H.data)}catch{F===h&&(e.emailSummaryError=e.emailSummary?"Could not refresh the summary. Previously loaded totals are still shown.":"Email summary is unavailable.")}finally{F===h&&(e.emailSummaryLoading=!1)}},e.retryEmails=()=>e.loadEmails(k),e.loadEmails=async(O=!1)=>{let F=JSON.stringify([e.emailState,e.emailKind,e.emailPeriod,p]),H=F!==y;if(y=F,H&&(O=!1),O&&(e.emailLoading||!e.emailNextCursor))return;let se=++v;e.emailLoading=!0,e.emailError="",e.emailAnnouncement=O?"Loading older emails.":"Loading email history.",H&&(e.emailRows=[],e.emailNextCursor=null,e.emailPage=1,e.selectedEmailId=null,w=null),O||(w=null),N();try{let _=await t.get("/api/admin/emails",{params:{...S(),state:e.emailState||void 0,before:O?e.emailNextCursor:void 0}});return se!==v?void 0:(e.emailRows=O?e.emailRows.concat(_.data.entries):_.data.entries,e.emailNextCursor=_.data.nextCursor,O||(e.emailPage=1),e.emailUpdated=new Date().toISOString(),e.emailAnnouncement=`Email history loaded. ${e.emailRows.length} attempts loaded.`,O&&w&&e.emailRows.length>(w-1)*25&&b(w),!0)}catch{se===v&&(k=O,e.emailError=O?"Could not load older emails. Your loaded history is still shown.":e.emailRows.length?"Could not refresh email history. Previously loaded results are still shown.":"Could not load email history.",e.emailAnnouncement="")}finally{se===v&&(e.emailLoading=!1)}},e.emailPreviousPage=()=>{!e.emailLoading&&e.emailPage>1&&b(e.emailPage-1)},e.emailNextPage=async()=>{if(e.emailLoading)return;let O=e.emailPage+1,F=y;e.emailRows.length<=(O-1)*25&&e.emailNextCursor&&(w=O,await e.loadEmails(!0)),!c&&F===y&&e.emailPage!==O&&e.emailRows.length>(O-1)*25&&b(O)},e.refreshEmails=()=>Promise.all([e.loadEmails(),e.loadEmailSummary()]),e.applyEmailFilters=()=>(p=e.emailSearch.trim(),e.refreshEmails()),e.setEmailStatus=O=>(e.emailState=u.includes(O)?O:"",e.loadEmails()),e.clearEmailFilters=()=>(e.emailState="",e.emailKind="",e.emailSearch="",e.emailPeriod="7d",e.applyEmailFilters());let T;i?.setTimeout&&(T=i.setTimeout(()=>{let O=i.document?.querySelector(".emails-page .admin-nav"),F=O?.querySelector('[aria-current="page"]');O&&F&&(O.scrollLeft=Math.max(0,F.offsetLeft-O.offsetLeft-(O.clientWidth-F.offsetWidth)/2))},0)),e.on("dispose",()=>{c=!0,v++,h++,T!=null&&i.clearTimeout(T)}),e.refreshEmails()};var Oa=(e,t,s)=>{let i=e instanceof RegExp?sc(e,s):e,o=t instanceof RegExp?sc(t,s):t,r=i!==null&&o!=null&&Lg(i,o,s);return r&&{start:r[0],end:r[1],pre:s.slice(0,r[0]),body:s.slice(r[0]+i.length,r[1]),post:s.slice(r[1]+o.length)}},sc=(e,t)=>{let s=t.match(e);return s?s[0]:null},Lg=(e,t,s)=>{let i,o,r,u,p,c=s.indexOf(e),v=s.indexOf(t,c+1),h=c;if(c>=0&&v>0){if(e===t)return[c,v];for(i=[],r=s.length;h>=0&&!p;){if(h===c)i.push(h),c=s.indexOf(e,h+1);else if(i.length===1){let y=i.pop();y!==void 0&&(p=[y,v])}else o=i.pop(),o!==void 0&&o=0?c:v}i.length&&u!==void 0&&(p=[r,u])}return p};var ic="\0SLASH"+Math.random()+"\0",rc="\0OPEN"+Math.random()+"\0",La="\0CLOSE"+Math.random()+"\0",ac="\0COMMA"+Math.random()+"\0",lc="\0PERIOD"+Math.random()+"\0",_g=new RegExp(ic,"g"),$g=new RegExp(rc,"g"),Fg=new RegExp(La,"g"),Ug=new RegExp(ac,"g"),Bg=new RegExp(lc,"g"),zg=/\\\\/g,Hg=/\\{/g,jg=/\\}/g,Gg=/\\,/g,Wg=/\\\./g,Kg=1e5,Yg=4e6,Jg=1e3,Xg=1e3;function Ma(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function Qg(e){return e.replace(zg,ic).replace(Hg,rc).replace(jg,La).replace(Gg,ac).replace(Wg,lc)}function Zg(e){return e.replace(_g,"\\").replace($g,"{").replace(Fg,"}").replace(Ug,",").replace(Bg,".")}function Va(e,t){for(let s=0;s=t}function Bs(e,t,s,i,o,r){let u=[],p=0;for(let c=0;c=i)return u;let h=e[c]+t+s[v];if(!(r&&!h)){if(p+h.length>o)return u;u.push(h),p+=h.length}}return u}function sv(e,t,s,i){let o=e.split(/\.\./),r=[];if(o[0]===void 0||o[1]===void 0)return r;let u=Ma(o[0]),p=Ma(o[1]),c=Math.max(o[0].length,o[1].length),v=o.length===3&&o[2]!==void 0?Math.max(Math.abs(Ma(o[2])),1):1,h=nv;p0){let b=new Array(N+1).join("0");w<0?S="-"+b+S.slice(1):S=b+S}}if(k+S.length>i)break;r.push(S),k+=S.length}return r}function qa(e,t,s,i,o,r,u){if(o>i)return[e];let p=[""],c=0,v=!1,h=!0;for(;;){let y=Oa("{","}",e);if(!y)return Bs(p,e,[""],t,s,v);let g=y.pre;if(/\$$/.test(g)){if(p=Bs(p,g+"{"+y.body+"}",[""],t,s,v&&!y.post.length),h=!1,!y.post.length)break;e=y.post;continue}let k=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(y.body),w=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(y.body),S=k||w,N=y.body.indexOf(",")>=0;if(!S&&!N){if(c=t||F+z.length>s)break e;b.push(z),F+=z.length}}}}if(p=Bs(p,g,b,t,s,v&&!y.post.length),!y.post.length)break;e=y.post}return p}var iv={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}"],"[:alpha:]":["\\p{L}\\p{Nl}"],"[:ascii:]":["\\x00-\\x7f"],"[:blank:]":["\\p{Zs}\\t"],"[:cntrl:]":["\\p{Cc}"],"[:digit:]":["\\p{Nd}"],"[:graph:]":["\\p{Z}\\p{C}",!0],"[:lower:]":["\\p{Ll}"],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}\\p{S}"],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f"],"[:upper:]":["\\p{Lu}"],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}"],"[:xdigit:]":["A-Fa-f0-9"]},zs=e=>e.replace(/[[\]\\-]/g,"\\$&"),_a=/$./,uc=(e,t,s=!1,i)=>{let o=b=>{let T=i?b.normalize(i):b;return[...T].length===1?T:b},r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");let u=[],p=[],c=r+1,v=!1,h=!1,y=!1,g=r,k="";e:for(;ck.codePointAt(0)?u.push(zs(k)+"-"+zs(T)):T===k&&u.push(zs(T)),k="",c+=b.length;continue}if(e.startsWith("-]",c+b.length)){u.push(zs(T+"-")),c+=b.length+1;continue}if(e.startsWith("-",c+b.length)){k=T,c+=b.length+1;continue}u.push(zs(T)),c+=b.length}if(g({t:"lit",ch:e}),av=e=>e.replace(/[\\^$.*+?()[\]{}|/]/g,"\\$&"),mc=e=>new RegExp(`^${av(e)}$`,"iu"),ar=new Map,hc=e=>{let t=ar.get(e);return t||(t=mc(e),ar.size>=1e3&&ar.clear(),ar.set(e,t)),t},ja=(e,t)=>{if(t===e.ch)return!0;if(!e.re)return!1;let s=t.charCodeAt(0);if(s>=128)return e.re.test(t);let i=e.ascii??(e.ascii=new Uint8Array(128));return i[s]||(i[s]=e.re.test(t)?1:2),i[s]===1},lv=(e,t,s,i)=>{let o=[];for(let r=0;r{let t=new Map,s=[];return e.forEach((i,o)=>{i.t==="open"?s.push(o):i.t==="close"&&s.length&&t.set(s.pop(),o)}),t},gc=(e,t,s,i,o)=>{let r=[],u=[r];for(let p=s;p{let s=[],i="",o=()=>{for(let r of i.normalize(t))s.push(mo(r));i=""};for(let r of e){if(r.t==="lit"){i+=r.ch;continue}o(),s.push(r.t==="ext"?{...r,alts:r.alts.map(u=>vc(u,t))}:r)}return o(),s},uv=(e,t)=>{let s=1,i=p=>({t:"split",id:s++,out:p}),o=(p,c)=>p.reduceRight((v,h)=>r(h,v),c),r=(p,c)=>{switch(p.t){case"lit":let g=t?hc(p.ch):void 0;return{t:"lit",id:s++,ch:p.ch,re:g,next:c};case"any":case"star":return{t:p.t,id:s++,next:c};case"class":return{t:"class",id:s++,re:p.re,next:c}}let v=g=>p.alts.map(k=>o(k,g));switch(p.type){case"@":return i(v(c));case"?":return i([c,...v(c)]);case"!":return{t:"neg",id:s++,sub:i(v($a)),next:c}}let h=i([]),y=i(v(h));return h.out.push(c,y),p.type==="*"?h:y};return[o(e,$a),s]},cv=e=>{let t=[],s=new Set,i=r=>r.t==="match"?"match":String(r.id),o=(r,u)=>{if(r.t==="match"||s.has(r))return;s.add(r);let p=c=>t.push(`${u}${r.id}: ${c}`);switch(r.t){case"split":p(`split -> ${r.out.map(i).join(", ")}`);for(let c of r.out)o(c,u);return;case"neg":return p(`!(${i(r.sub)}) -> ${i(r.next)}`),o(r.sub,u+" "),o(r.next,u);case"lit":p(`${JSON.stringify(r.ch)} -> ${i(r.next)}`);break;case"class":p(`${r.re} -> ${i(r.next)}`);break;default:p(`${r.t==="any"?"?":"*"} -> ${i(r.next)}`)}o(r.next,u)};return o(e,""),[`start -> ${i(e)}`,...t].join(` -`)},Fa=class{constructor(t){tt(this,"gen");tt(this,"threads",[]);tt(this,"match",!1);tt(this,"runs",[]);tt(this,"ids",[]);this.gen=t}get dead(){return!this.threads.length&&!this.match&&!this.runs.length}},yc=(e,t)=>e.ids.length!==t.ids.length||e.runs.length!==t.runs.length||e.ids.some((s,i)=>s!==t.ids[i])?!1:e.runs.every(s=>t.runs.some(i=>i.neg===s.neg&&yc(i.state,s.state))),cc=e=>({has:new Float64Array(e),seen:new Float64Array(e),gen:0}),ho,Gn,Ua,Ba,js=class{constructor(t,s,i){Le(this,Gn);tt(this,"dots");tt(this,"dotStart");Le(this,ho);this.dots=t,this.dotStart=s,Be(this,ho,i)}state(){return new Fa(++ae(this,ho).gen)}done(t){return t.ids=t.threads.map(s=>s.id).sort((s,i)=>s-i),t.match&&t.ids.unshift($a.id),t}restricted(t,s){return s&&(this.dots||this.dotStart&&t===0)}add(t,s,i,o){switch(s.t){case"split":if(!_e(this,Gn,Ua).call(this,t,s))return;for(let u of s.out)this.add(t,u,i,o);return;case"neg":if(!_e(this,Gn,Ua).call(this,t,s))return;let r=this.state();return this.add(r,s.sub,i,!1),this.done(r),this.addRun(t,{t:"run",neg:s,state:r},i,o);case"star":if(this.restricted(i,o))return;_e(this,Gn,Ba).call(this,t,s)&&this.add(t,s.next,i,o);return;case"match":t.match=!0;return;default:_e(this,Gn,Ba).call(this,t,s)}}addRun(t,s,i,o){for(let r of t.runs)if(r.neg===s.neg&&yc(r.state,s.state))return;t.runs.push(s),s.state.match||this.add(t,s.neg.next,i,o)}step(t,s,i,o){let r=this.state();for(let u of t.threads)switch(u.t){case"lit":ja(u,s)&&this.add(r,u.next,i+1,o);break;case"any":this.restricted(i,o)||this.add(r,u.next,i+1,o);break;case"class":!this.restricted(i,o)&&u.re.test(s)&&this.add(r,u.next,i+1,o);break;case"star":this.restricted(i,o)||this.add(r,u,i+1,o)}if(!this.restricted(i,o))for(let u of t.runs){if(u.state.dead){this.addRun(r,u,i+1,o);continue}let p=this.step(u.state,s,i,!1);this.addRun(r,{t:"run",neg:u.neg,state:p},i+1,o)}return this.done(r)}};ho=new WeakMap,Gn=new WeakSet,Ua=function(t,s){let{seen:i}=ae(this,ho);return i[s.id]===t.gen?!1:(i[s.id]=t.gen,!0)},Ba=function(t,s){let{has:i}=ae(this,ho);return i[s.id]===t.gen?!1:(i[s.id]=t.gen,t.threads.push(s),!0)};var bc=e=>{let t=e.ids.join();if(!e.runs.length)return t;let s=e.runs.map(i=>`${i.neg.id}(${bc(i.state)})`);return`${t}|${s.sort().join("|")}`},pv=1<<18,Go,Wo,Un,go,Bn,zn,Hn,an,Ha,dr,wc,za=class{constructor(t,s){Le(this,an);Le(this,Go);Le(this,Wo,new Map);Le(this,Un,0);Le(this,go);Le(this,Bn);Le(this,zn);Le(this,Hn);Be(this,Go,t),Be(this,zn,new js(!1,!1,s)),Be(this,Hn,new js(!1,!0,s))}start(t){if(t){if(ae(this,Bn))return ae(this,Bn);let i=ae(this,Hn).state();return ae(this,Hn).add(i,ae(this,Go),0,!0),Be(this,Bn,_e(this,an,Ha).call(this,ae(this,Hn).done(i)))}if(ae(this,go))return ae(this,go);let s=ae(this,zn).state();return ae(this,zn).add(s,ae(this,Go),0,!0),Be(this,go,_e(this,an,dr).call(this,ae(this,zn).done(s)))}next(t,s){let i=s.charCodeAt(0),o=i<128?void 0:t.next.get(s);if(o)return o;let r=t===ae(this,Bn)?_e(this,an,dr).call(this,ae(this,Hn).step(t.state,s,0,!0)):_e(this,an,dr).call(this,ae(this,zn).step(t.state,s,1,!0));return i<128?(t.ascii||(t.ascii=new Array(128),Be(this,Un,ae(this,Un)+128)),t.ascii[i]=r):t.next.set(s,r),fl(this,Un)._++,r}};Go=new WeakMap,Wo=new WeakMap,Un=new WeakMap,go=new WeakMap,Bn=new WeakMap,zn=new WeakMap,Hn=new WeakMap,an=new WeakSet,Ha=function(t){return{state:t,match:t.match,dead:t.dead,next:new Map}},dr=function(t){let s=bc(t),i=ae(this,Wo).get(s);if(i)return i;ae(this,Un)>pv&&_e(this,an,wc).call(this);let o=_e(this,an,Ha).call(this,t);return ae(this,Wo).set(s,o),Be(this,Un,ae(this,Un)+(s.length+1)),o},wc=function(){ae(this,Wo).clear(),Be(this,Un,0),Be(this,go,void 0),Be(this,Bn,void 0)};var fv=e=>{let t=[];for(let s=e;s.t!=="match";s=s.next){if(s.t==="split"||s.t==="neg")return;t.push(s)}return t},mv=(e,t,s,i)=>{let o=0,r=s,u=-1,p=0;for(;r{let t=0,s=0;for(let i of e){let[o,r]=hv(i);t+=o,s+=r}return[t,s]},hv=e=>{if(e.t==="star")return[0,1/0];if(e.t!=="ext")return[1,1];if(e.type==="!")return[0,1/0];let t=e.alts.map(kc),s=Math.min(...t.map(r=>r[0])),i=Math.max(...t.map(r=>r[1])),o=i===0?0:1/0;return e.type==="@"?[s,i]:e.type==="?"?[0,i]:e.type==="*"?[0,o]:[s,o]},pc=(e,t,s)=>{for(let i=0;ivv.test(e)?[...e]:e,fc=e=>{if(e.includes("/"))throw new Error("can only match a single path portion, got: "+e)},jn,Ko,vo,ur,yo,Ws,cr,bo,Ks,Ys,Js,In,kn,Yo,Jo,Xs,pr,rn,wo,Hs,Gs=class{constructor(t,s={}){Le(this,wo);tt(this,"pattern");tt(this,"options");Le(this,jn);Le(this,Ko);Le(this,vo);Le(this,ur);Le(this,yo);Le(this,Ws,!1);Le(this,cr);Le(this,bo);Le(this,Ks,!1);Le(this,Ys,0);Le(this,Js,1/0);Le(this,In,[]);Le(this,kn,[]);Le(this,Yo);Le(this,Jo);Le(this,Xs,!1);Le(this,pr);Le(this,rn);if(t.includes("/"))throw new Error("can only match a single path portion, got pattern: "+t);this.pattern=t,this.options=s;let{nocase:i=!1,noext:o=!1,normalize:r}=s;Be(this,rn,r===!0?"NFC":r||void 0);let u=/^[?*+@]\(\)$/.test(t),p=lv(t,i,o||u,ae(this,rn)),[c]=gc(p,dv(p),0,p.length,!0);ae(this,rn)&&(c=vc(c,ae(this,rn)));let[v,h]=uv(c,i);if(Be(this,jn,v),Be(this,Ko,h),c.every(y=>y.t==="lit"))Be(this,yo,c.map(y=>y.ch).join("")),Be(this,Ws,i);else{let y=w=>w.t!=="lit"?void 0:i?{ch:w.ch,re:hc(w.ch)}:{ch:w.ch};for(let w of c){let S=y(w);if(!S)break;ae(this,In).push(S)}for(let w=c.length-1;w>=0;w--){let S=y(c[w]);if(!S)break;ae(this,kn).unshift(S)}Be(this,Xs,!!(ae(this,In).length||ae(this,kn).length)),i||(Be(this,Yo,ae(this,In).map(w=>w.ch).join("")),Be(this,Jo,ae(this,kn).map(w=>w.ch).join(""))),Be(this,bo,fv(ae(this,jn))?.slice(ae(this,In).length,-ae(this,kn).length||void 0)),Be(this,Ks,!!ae(this,bo)?.every(w=>w.t==="star"||w.t==="any"));let[g,k]=kc(c);Be(this,Ys,g),Be(this,Js,k)}}test(t){return ae(this,rn)?(fc(t),_e(this,wo,Hs).call(this,t.normalize(ae(this,rn)))):gv.test(t)?(fc(t),_e(this,wo,Hs).call(this,t,[...t])):_e(this,wo,Hs).call(this,t,t)}testUnchecked(t){return _e(this,wo,Hs).call(this,ae(this,rn)?t.normalize(ae(this,rn)):t)}toString(){return cv(ae(this,jn))}};jn=new WeakMap,Ko=new WeakMap,vo=new WeakMap,ur=new WeakMap,yo=new WeakMap,Ws=new WeakMap,cr=new WeakMap,bo=new WeakMap,Ks=new WeakMap,Ys=new WeakMap,Js=new WeakMap,In=new WeakMap,kn=new WeakMap,Yo=new WeakMap,Jo=new WeakMap,Xs=new WeakMap,pr=new WeakMap,rn=new WeakMap,wo=new WeakSet,Hs=function(t,s){if(ae(this,yo)!==void 0)return ae(this,Ws)?(ae(this,cr)??Be(this,cr,mc(ae(this,yo)))).test(t):t===ae(this,yo);let i=ae(this,Ys),o=ae(this,Js);if(s===void 0){let h=t.length,y=h+1>>1;if(ho)return!1;(yo)&&(s=lr(t))}if(s!==void 0&&(s.lengtho))return!1;let r=ae(this,In).length;if(ae(this,Xs))if(ae(this,Yo)!==void 0&&ae(this,Jo)!==void 0){if(!t.startsWith(ae(this,Yo))||!t.endsWith(ae(this,Jo)))return!1}else{s??(s=lr(t));let h=s.length-ae(this,kn).length;if(!pc(ae(this,In),s,0)||!pc(ae(this,kn),s,h))return!1}let u=!this.options.dot&&t.startsWith(".");if(ae(this,bo)){if(t==="."||t===".."||u&&!r)return!1;if(ae(this,Ks))return!0;s??(s=lr(t));let h=s.length-ae(this,kn).length;return mv(ae(this,bo),s,r,h)}if(s??(s=lr(t)),t==="."||t===".."){ae(this,vo)??Be(this,vo,cc(ae(this,Ko)));let h=ae(this,ur)??Be(this,ur,new js(!0,!1,ae(this,vo))),y=h.state();h.add(y,ae(this,jn),0,!0);let g=h.done(y);for(let k=0;k{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")};var Wn=(e,{windowsPathsNoEscape:t=!1,magicalBraces:s=!1}={})=>s?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");var ko=(e,{windowsPathsNoEscape:t=!1,magicalBraces:s=!0}={})=>s?t?e.replace(/\[([^/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):t?e.replace(/\[([^/\\{}])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1");var jt=(e,t,s={})=>(Qs(t),!s.nocomment&&t.charAt(0)==="#"?!1:bv(t,s).match(e)),Xo=new Map,yv=256,bv=(e,t)=>{let s=e+"\0"+JSON.stringify(t),i=Xo.get(s);return i?Xo.delete(s):(i=new Co(e,{...t}),Xo.size>=yv&&Xo.delete(Xo.keys().next().value)),Xo.set(s,i),i},Tc=typeof process=="object"&&process?process.env?.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Cc={win32:{sep:"\\"},posix:{sep:"/"}},wv=Tc==="win32"?Cc.win32.sep:Cc.posix.sep;jt.sep=wv;var bt=Symbol("globstar **");jt.GLOBSTAR=bt;var kv=(e,t={})=>s=>jt(s,e,t);jt.filter=kv;var On=(e,t={})=>Object.assign({},e,t),Cv=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return jt;let t=jt;return Object.assign((i,o,r={})=>t(i,o,On(e,r)),{Minimatch:class extends t.Minimatch{constructor(o,r={}){super(o,On(e,r))}static defaults(o){return t.defaults(On(e,o)).Minimatch}},unescape:(i,o={})=>t.unescape(i,On(e,o)),escape:(i,o={})=>t.escape(i,On(e,o)),filter:(i,o={})=>t.filter(i,On(e,o)),defaults:i=>t.defaults(On(e,i)),braceExpand:(i,o={})=>t.braceExpand(i,On(e,o)),match:(i,o,r={})=>t.match(i,o,On(e,r)),sep:t.sep,GLOBSTAR:bt})};jt.defaults=Cv;var Pc=(e,t={})=>(Qs(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:dc(e,{max:t.braceExpandMax}));jt.braceExpand=Pc;var Sv=(e,t,s={})=>{let i=new Co(t,s);return e=e.filter(o=>i.match(o)),i.options.nonull&&!e.length&&e.push(t),e};jt.match=Sv;var Sc=/[?*]|[+@!]\(.*?\)|\[|\]/,Dc=(e,t)=>{let s=t+1;(e.charAt(s)==="!"||e.charAt(s)==="^")&&s++;let i=!1;for(;s{if(!t&&(e==="+()"||e==="@()"))return e;let s="";for(let i=0;i{if(/^[?*+@]\(\)$/.test(e)||e.includes("[:"))return!1;let t=0;for(let s=0;stypeof e=="string"?t===e:t!==""&&e.testUnchecked(t),Nc=(e,t,s,i,o)=>Kn(e,t)?s:i!==void 0&&Kn(e,i)?o:-1,Ja=e=>e==="."||e==="..",Wa=e=>typeof e=="string"&&/^[a-z]:$/i.test(e),mr=e=>typeof e=="string"&&/^unc$/i.test(e),Ka=e=>{if(e[0]!==""||e[1]!=="")return-1;let t=e[2]!=="?"?2:mr(e[3])?4:-1,s=e[t],i=e[t+1];return t!==-1&&s!==void 0&&s!==""&&s!==bt&&i!==void 0&&i!==""&&i!==bt?t:-1},fr=(e,t)=>!Ja(e)&&(t||!e.startsWith(".")),Zs=(e,t,s,i,o)=>{for(let r=t;r=s||gr(e.charCodeAt(p),o))return!0}let u=Xa(e,r,o);if(u===-1)return!1;for(r=u+1;rt==="/"?e===47:t==="\\"?e===92:e===47||e===92,Xa=(e,t,s)=>{if(s!=="both")return e.indexOf(s,t);let i=e.indexOf("/",t),o=e.indexOf("\\",t);return i===-1?o:o===-1?i:Math.min(i,o)},Rc=(e,t,s)=>s!=="both"?e.lastIndexOf(s,t):Math.max(e.lastIndexOf("/",t),e.lastIndexOf("\\",t)),Ya={},Yn,Zo,Jn,Mn,xo,es,Xn,ei,ts,ti,$e,hr,xs,Ac,Ic,Oc,Mc,Vc,qc,Qa,Lc,_c,Za,Qo,xa,Co=class{constructor(t,s={}){Le(this,$e);tt(this,"options");tt(this,"set");tt(this,"pattern");tt(this,"windowsPathsNoEscape");tt(this,"nonegate");tt(this,"negate");tt(this,"comment");tt(this,"empty");tt(this,"preserveMultipleSlashes");tt(this,"partial");tt(this,"globSet");tt(this,"globParts");tt(this,"nocase");tt(this,"isWindows");tt(this,"platform");tt(this,"windowsNoMagicRoot");tt(this,"maxGlobstarRecursion");Le(this,Yn);Le(this,Zo);Le(this,Jn);Le(this,Mn);Le(this,xo,[]);Le(this,es,[]);Le(this,Xn,[]);Le(this,ei,new Map);Le(this,ts,!1);Le(this,ti,new WeakMap);Qs(t),s=s||{},this.options=s,this.maxGlobstarRecursion=s.maxGlobstarRecursion??200,this.pattern=t,this.platform=s.platform||Tc,this.isWindows=this.platform==="win32";let i="allowWindowsEscape";this.windowsPathsNoEscape=!!s.windowsPathsNoEscape||s[i]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!s.preserveMultipleSlashes,this.negate=!1,this.nonegate=!!s.nonegate,this.comment=!1,this.empty=!1,this.partial=!!s.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=s.windowsNoMagicRoot!==void 0?s.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],Be(this,Yn,!this.preserveMultipleSlashes),Be(this,Jn,(s.optimizationLevel??1)>=2);let o=s.normalize;Be(this,Mn,o===!0?"NFC":o||void 0),this.make();let r=this.set.map(u=>_e(this,$e,xs).call(this,u));Be(this,Xn,this.set.map((u,p)=>ae(this,Yn)&&u.length-1>r[p])),Be(this,xo,this.set.map((u,p)=>{let c=ae(this,Xn)[p]?u.length-1:u.length,v=u.slice(r[p]+1,c).filter(h=>typeof h=="string"&&!!h);return[...new Set(v)]})),Be(this,Zo,ae(this,xo).some(u=>u.length)),Be(this,es,this.set.map((u,p)=>{let[c,v,h]=u;if(ae(this,Xn)[p]&&u.length===2&&c===bt&&v!==bt)return"tail";if(ae(this,Xn)[p]&&s.matchBase&&u.length===1&&c!==bt&&c!=="")return"base";if(!(!ae(this,Yn)||r[p]!==-1)){if(u.length===3&&c===bt&&h===bt&&v!==bt&&v!==""&&this.maxGlobstarRecursion>0)return"mid";if(u.length===2&&v===bt&&c!==bt&&c!=="")return"head"}}))}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let s of t)if(typeof s!="string")return!0;return!1}make(){let t=this.pattern,s=this.options;if(!s.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())];let i=this.globSet.map(r=>_e(this,$e,xa).call(this,r));this.globParts=this.preprocess(i),Be(this,ts,!0);let o=this.globParts.map((r,u,p)=>{if(this.isWindows&&this.windowsNoMagicRoot){let c=r[2]==="?"&&mr(r[3])?6:4,v=r[0]===""&&r[1]===""&&(r[2]==="?"||!Sc.test(r[2]))&&r.slice(3,c).every(y=>!Sc.test(y)),h=/^[a-z]:/i.test(r[0]);if(v)return[...r.slice(0,c).map(y=>_e(this,$e,hr).call(this,y)),...r.slice(c).map(y=>this.parse(y))];if(h)return[_e(this,$e,hr).call(this,r[0]),...r.slice(1).map(y=>this.parse(y))]}return r.map(c=>this.parse(c))});if(this.set=o.filter(r=>r.indexOf(!1)===-1),this.isWindows)for(let r=0;r{for(let p=0;pi.length));for(let i=0;i{if(!(u[i]instanceof Gs||u[i]===Ya)||!Nv(this.globParts[p][i]))return;let c=[...this.globParts[p]];c[i]="";let v=`${u.length}/${c.join("/")}`,h=o.get(v);h?h.push(p):o.set(v,[p])});let r=new Set;for(let u of o.values()){if(u.length<2)continue;let[p,...c]=u,h=`@(${u.map(y=>this.globParts[y][i]).join("|")})`;this.globParts[p][i]=h,this.set[p][i]=this.parse(h);for(let y of c)r.add(y)}r.size&&(t=!0,this.set=this.set.filter((u,p)=>!r.has(p)),this.globParts=this.globParts.filter((u,p)=>!r.has(p)))}}}preprocess(t){if(this.options.noglobstar)for(let i of t)for(let o=0;o=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):s>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(s=>{let i=-1;for(;(i=s.indexOf("**",i+1))!==-1;){let o=i;for(;s[o+1]==="**";)o++;o!==i&&s.splice(i,o-i)}return s})}levelOneOptimize(t){return t.map(s=>{let i=_e(this,$e,xs).call(this,s)+1;return s=s.reduce((o,r)=>{let u=o[o.length-1];return r==="**"&&u==="**"?o:r===".."&&o.length>i&&u&&u!==".."&&u!=="."&&u!=="**"?(o.pop(),o):(o.push(r),o)},[]),s.length===0?[""]:s})}firstPhasePreProcess(t){let{braceExpandMax:s=1e5}=this.options,i=!1;do{i=!1;for(let o of t){let r=-1;for(;(r=o.indexOf("**",r+1))!==-1;){let c=r;for(;o[c+1]==="**";)c++;c>r&&o.splice(r+1,c-r);let v=o[r+1],h=o[r+2],y=o[r+3];if(v!==".."||!h||h==="."||h===".."||!y||y==="."||y===".."||t.length>=s)continue;i=!0,o.splice(r,1);let g=o.slice(0);g[r]="**",t.push(g),r--}if(!this.preserveMultipleSlashes){for(let c=1;c1e3)return t;for(let s=0;ss.length)}partsMatch(t,s,i=!1){let o=0,r=0,u=[],p="";for(;o=0;v--)c=r[v];for(let v=0;v=0){let b=S;for(;b>0&&gr(t.charCodeAt(b-1),s);)b--;p=b===0?0:Rc(t,b-1,s)+1,u=t.slice(p,b)}let N=ae(this,Jn)&&(Ja(o)||o===""&&u!==void 0&&Ja(u));i=N?-1:1,g=!N}let k=-1;if(g&&typeof y=="string"&&(k=Nc(y,o,r,u,p),k===-1))continue;if(ae(this,Zo)){for(let S of ae(this,xo)[v])if(!t.includes(S))continue e}if(g&&typeof y=="object"&&(k=Nc(y,o,r,u,p),k===-1))continue;let w=ae(this,es)[v];if(w==="base"&&g)return"yes";if(w==="tail"&&g){if(ae(this,Jn)&&Zs(t,0,k,!0,s))return"maybe";if(!Zs(t,0,k,c,s))return"yes";continue}if(w==="mid"||w==="head"){let S=_e(this,$e,Oc).call(this,t,h,w==="head",c,s);if(S!=="no")return S;continue}return"maybe"}return"no"},Ic=function(t,s,i){let o=!!this.options.dot,r=t.length;if(i==="head"){if(r<2||!Kn(s[0],t[0]))return!1;for(let p=1;pp&&u.testUnchecked(t.slice(p,c)))&&!Zs(t,v,t.length,o,r))return"yes";if(i||Zs(t,p,v,o,r))return"no";p=v}return"no"},Mc=function(t){let s=Ga;return s?.f===t&&s.isWindows===this.isWindows&&s.preserveMultipleSlashes===this.preserveMultipleSlashes&&s.normalize===ae(this,Mn)?s:void 0},Vc=function(t){let{isWindows:s,preserveMultipleSlashes:i}=this,o=_e(this,$e,xa).call(this,s?t.split("\\").join("/"):t),r=ae(this,Mn);return r&&(o=o.map(u=>u.normalize(r))),Ga={f:t,isWindows:s,preserveMultipleSlashes:i,normalize:r,parts:o},Ga},qc=function(t){let s=[...t],i=!1;do{if(i=!1,!this.preserveMultipleSlashes){for(let u=1;ut.length)return!1;let y=t.length-c.length;if(_e(this,$e,Qo).call(this,t,c,i,y,0))h=c.length;else{if(t[t.length-1]!==""||o+c.length===t.length||(y--,!_e(this,$e,Qo).call(this,t,c,i,y,0)))return!1;h=c.length+1}}if(!p.length){let y=!!h;for(let g=o;g{b[1]=w-S[T]});let N={head:v,body:h,tail:y,segments:g};return o[r]=N,N},Za=function(t,s,i,o,r,u,p,c,v){let h=s[r];if(!h){if(u)return o>=i||o===i-1&&t[o]==="";for(let w=o;we.lastIndexOf(t)===s)}function tl(e){let t=(e||[]).filter(s=>typeof s=="string"&&s.length>0).map(s=>{let{negated:i,anchored:o,directoryOnly:r,body:u}=Rv(s);return{negated:i,directoryOnly:r,matcher:new Co(u,{dot:!0,nonegate:!0,nocomment:!0,matchBase:!o&&!u.includes("/")})}});return(s,i=!1)=>{let o=(s||"").replace(/^\/+/,"");if(!o)return!1;let r=o.split("/"),u=r.slice(0,-1).map((c,v)=>r.slice(0,v+1).join("/")),p=i;for(let c of t){if(c.negated?!p:p)continue;(c.directoryOnly?u:[...u,o]).some(h=>c.matcher.match(h))&&(p=!c.negated)}return p}}var vse=new Set("^$\\.*+?()[]{}|/dDsSwWbBnrtvf0cxupP".split(""));function nl(e){let t=e.indexOf("=>");if(t<0)return{term:e,replacement:null};let s=e.slice(0,t).replace(/\s+$/,""),i=e.slice(t+2).replace(/^\s+/,"");return s?{term:s,replacement:i}:{term:e,replacement:null}}var $c=new Set(["*","+","?","(",")","[","]","{","}","|","^","$"]);function Fc(e){let t=[];return String(e||"").split(` -`).forEach((s,i)=>{let{term:o}=nl(s.trim());if(!o)return;let r=[];for(let u=0;u{let t=e.target;if(!t||t.tagName!=="IMG"||t.dataset.failed||!t.closest?.(".markdown-body, .anonymize-preview-body"))return;t.dataset.failed="1";let s=window.document.createElement("span"),i=parseInt(t.getAttribute("width"),10)||0,o=parseInt(t.getAttribute("height"),10)||0;s.className=i>=200||o>=120?"img-unavailable is-large":"img-unavailable",s.textContent="Image unavailable",s.title=t.alt?"Image unavailable: "+t.alt.replace(/\bXXXX-(\d+)\b/g,"[redacted term $1]"):"Image unavailable",s.setAttribute("role","img"),s.setAttribute("aria-label",s.title),t.replaceWith(s)},!0);function vr(e){let t=e?.data;if(typeof t=="string")try{t=JSON.parse(t)}catch{t=null}return typeof t?.error=="string"&&Object.prototype.hasOwnProperty.call(Qn.ERRORS,t.error)?t.error:e?.status===-1||e?.status===0?"request_error":[502,503,504].includes(e?.status)?"unreachable":"unknown_error"}var yr="XXXX",Pv=e=>{yr=e||"XXXX"},Dv=(e=yr)=>{if(!e)return null;let t=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(t+"(?:-\\d+)?","g")},Bc=(e,t=yr)=>{let s=Dv(t);if(!s||!e||!e.textContent.includes(t))return;let i=e.ownerDocument,o=i.createTreeWalker(e,NodeFilter.SHOW_TEXT),r=[];for(;o.nextNode();)r.push(o.currentNode);for(let u of r){let p=u.nodeValue,c=u.parentElement;if(!p.includes(t)||!c||c.closest("script, style, mark.redaction, .mermaid"))continue;let v=c.closest('code[class*="language-"]');if(v&&!v.contains(e))continue;let h=i.createDocumentFragment(),y=0;for(let g of p.matchAll(s)){h.append(p.slice(y,g.index));let k=i.createElement("mark");k.className="redaction",k.title="Redacted by Anonymous GitHub",k.textContent=g[0],h.append(k),y=g.index+g[0].length}h.append(p.slice(y)),u.replaceWith(h)}},ni=/\bXXXX-\d+\b/g,Us=function(e){if(!e||e.indexOf("XXXX-")===-1||typeof window.DOMParser!="function")return e;let t=new window.DOMParser().parseFromString("
"+e+"
","text/html"),s=t.createTreeWalker(t.body,4),i=[];for(;s.nextNode();)ni.lastIndex=0,!s.currentNode.parentElement?.closest("pre code")&&ni.test(s.currentNode.nodeValue)&&i.push(s.currentNode);for(let o of i){ni.lastIndex=0;let r=t.createDocumentFragment(),u=0,p,c=o.nodeValue;for(;p=ni.exec(c);){r.appendChild(t.createTextNode(c.slice(u,p.index)));let v=t.createElement("mark");v.className="redact-chip",v.setAttribute("title","Redacted term "+p[0].slice(5)+" \u2014 the same term everywhere in this snapshot");let h=p[0].slice(5);v.textContent="";let y=t.createElement("i");y.textContent=h,v.appendChild(y),v.dataset.term=p[0],v.setAttribute("aria-label","Redacted term "+h);let g=/^[.,;:!?)\]]+/.exec(c.slice(p.index+p[0].length));if(g){let k=t.createElement("span");k.className="redact-glue",k.appendChild(v),k.appendChild(t.createTextNode(g[0])),r.appendChild(k),u=p.index+p[0].length+g[0].length}else r.appendChild(v),u=p.index+p[0].length}r.appendChild(t.createTextNode(c.slice(u))),o.parentNode.replaceChild(r,o)}return t.body.firstChild.innerHTML},zc=()=>{window.Prism?.hooks&&!window.Prism.redactionHook&&(window.Prism.hooks.add("complete",e=>{Bc(e.element),e.element.querySelectorAll?.("mark.redaction").forEach(t=>{let s=/^XXXX-(\d+)$/.exec(t.textContent);if(!s)return;t.className="redact-chip",t.setAttribute("title","Redacted term "+s[1]+" \u2014 the same term everywhere in this snapshot"),t.setAttribute("aria-label","Redacted term "+s[1]),t.dataset.term=s[0],t.style.setProperty("--slot-ch",s[0].length+"ch"),t.textContent="";let i=t.ownerDocument.createElement("span");i.className="redact-src",i.textContent=s[0].slice(0,s[0].length-s[1].length),t.appendChild(i);let o=t.ownerDocument.createElement("i");o.textContent=s[1],t.appendChild(o)})}),window.Prism.redactionHook=!0)},Hc=(e,t=yr)=>{if(!e||!t||!e.includes(t))return e;let s=new DOMParser().parseFromString(""+e+"","text/html");return Bc(s.body,t),s.body.innerHTML};async function ol(e){if(window.navigator.clipboard?.writeText){await window.navigator.clipboard.writeText(e);return}let t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.opacity="0";let s=document.activeElement;document.body.appendChild(t);try{if(t.select(),!document.execCommand?.("copy"))throw Error("Copy unavailable")}finally{t.remove(),s?.focus()}}function Av(e){if(!["ArrowLeft","ArrowRight","Home","End"].includes(e.key))return;let t=[...e.currentTarget.closest('[role="tablist"]').querySelectorAll('[role="tab"]')],s=t.indexOf(e.currentTarget),i=e.key==="Home"?0:e.key==="End"?t.length-1:(s+(e.key==="ArrowRight"?1:-1)+t.length)%t.length;e.preventDefault(),t[i]?.focus(),t[i]?.click()}var jc=function(e,t,s,i){e.previewTabKeydown=Av,e.headerCanUpgrade=!1,e.headerShowSupport=!1,e.headerBillingPending=new URLSearchParams(window.location.search).get("billing")==="success";let o=N=>{e.headerShowSupport=!(N?.grants||[]).some(T=>["active","paid","past_due"].includes(T.status)&&new Date(T.until).getTime()>Date.now());let b=(N?.grants||[]).some(T=>["author_monthly","author_annual"].includes(T.planId)&&["active","paid","past_due"].includes(T.status)&&new Date(T.until).getTime()>Date.now());e.headerCanUpgrade=!!N?.enabled&&N.checkoutEnabled!==!1&&!b&&(N.plans||[]).some(T=>["author_monthly","author_annual"].includes(T.id))};e.on("billing:updated",(N,b)=>o(b)),e.on("billing:pending",(N,b)=>{e.headerBillingPending=b}),e.openHeaderUpgrade=()=>{s.path()==="/profile"?e.emit("settings:upgrade"):s.url("/profile?upgrade=1")};let r=Ht(),u=yt(),p=!1,c=()=>{p=!1;let N=document.querySelector("nav.navbar.navbar-expand-lg");if(!N||(N.classList.remove("nav-fit-1","nav-fit-2"),window.innerWidth<992))return;let b=N.querySelector(".navbar-collapse"),T=()=>N.scrollWidth>N.clientWidth+1||!!b&&b.scrollWidth>b.clientWidth+1;T()&&N.classList.add("nav-fit-1"),T()&&N.classList.add("nav-fit-2")},v=()=>{p||(p=!0,Ge(()=>u.timeout(c,0)))};r(window,"resize",v),e.on("routeChange",v),e.on("billing:updated",v),document.fonts?.ready&&document.fonts.ready.then(v).catch(()=>{}),e.title="Main",e.user={status:"connection"},e.site_options,e.toasts=[],e.removeToast=function(N){let b=e.toasts.indexOf(N);b!==-1&&e.toasts.splice(b,1)},e.addToast=function(N){return e.toasts.push(N),i(function(){e.removeToast(N)},8e3),N};let h=/^\/(r|repository|pr|gist)\//;e.path=s.url(),e.paths=s.path().substring(1).split("/"),e.isReviewerRoute=h.test(s.path()),e.darkMode=function(N){localStorage.setItem("darkMode",N),e.isDarkMode=N;let b="/css/prism.css";if($("link[href='/css/prism-okaidia.css']").remove(),N)$("body").addClass("dark-mode"),$(`link[href='${b}']`).remove();else if($("body").removeClass("dark-mode"),!document.querySelector(`link[href='${b}']`)){let T=document.createElement("link");T.href=b,T.rel="stylesheet",document.head.append(T)}e.emit("dark-mode",N)},e.darkMode(localStorage.getItem("darkMode")=="true"),e.emailPromptOpen=!1,e.emailPromptAddress="",e.emailPromptBusy=!1,e.emailPromptError="";let y;e.respondToEmailPrompt=async N=>{if(!e.emailPromptBusy){e.emailPromptBusy=!0,e.emailPromptError="";try{let b=await t.post("/github/connections/email",{action:N,email:e.emailPromptAddress},{headers:{"X-CSRF-Token":e.user.emailPromptCSRF}});N==="save"&&(e.user.notificationEmail=b.data.notificationEmail),e.emailPromptOpen=!1,e.user.showEmailPrompt=!1,y?.focus()}catch(b){e.emailPromptError=b.data?.error||"Unable to save your preference. Please try again."}finally{e.emailPromptBusy=!1}}};function g(){t.get("/api/user").then(N=>{N&&(e.user=N.data),v(),e.user?.username?xi(t).then(b=>o(b.data)).catch(()=>{}):e.headerShowSupport=!0,e.user?.emailNotificationsEnabled&&e.user.showEmailPrompt&&!e.user.notificationEmail&&(y=document.activeElement,e.emailPromptOpen=!0,i(()=>{let b=document.getElementById("email-prompt");b?.showModal?b.showModal():b?.setAttribute("open",""),document.getElementById("email-prompt-address")?.focus()},0))},()=>{e.user=null,e.headerShowSupport=!0})}g();function k(){t.get("/api/options").then(N=>{N&&(e.site_options=N.data),Pv(N?.data?.ANONYMIZATION_MASK),e.emit("site-options")},()=>{e.site_options=null})}k();function w(){t.get("/api/message").then(N=>{N&&(e.generalMessage=N.data)},()=>{e.generalMessage=null})}w();function S(N,b){b&&(e.title=b.title),e.path=s.url(),e.paths=s.path().substring(1).split("/"),e.isReviewerRoute=h.test(s.path())}e.on("routeChange",S),e.on("routeUpdate",S)},Gc=function(e,t){let s=Ht(),i=yt();e.faqQuery="",e.faqResults=0;let o=u=>(u||"").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g," ");e.filterFaq=()=>{let u=o(e.faqQuery).trim().split(" ").filter(Boolean),p=0;document.querySelectorAll(".faq-section .panel-group").forEach(c=>{let v=0;c.querySelectorAll(":scope > .panel").forEach(g=>{let k=g.dataset.faqText||(g.dataset.faqText=o(g.textContent)),w=u.every(S=>k.includes(S));g.classList.toggle("faq-hit",u.length>0&&w),g.hidden=u.length>0&&!w,w&&v++});let h=u.length>0&&v===0;c.hidden=h;let y=c.previousElementSibling;y?.classList.contains("faq-cat")&&(y.hidden=h),p+=v}),e.faqResults=u.length?p:0},e.clearFaqSearch=()=>{e.faqQuery="",e.filterFaq(),document.getElementById("faq-search-input")?.focus()};let r=()=>{let u=window.location.hash.slice(1),p=document.getElementById(u);if(!p?.classList.contains("panel-collapse"))return;$(p).collapse("show");let c=document.getElementById(p.getAttribute("aria-labelledby"));c?.setAttribute("tabindex","-1"),c?.focus({preventScroll:!0}),c?.scrollIntoView?.({block:"start"})};e.on("routeUpdate",()=>i.timeout(r,0)),s(window,"hashchange",r),i.timeout(r,0)},Wc=function(e,t,s,i,o){e.settingsTab=/(?:billing|upgrade)=/.test(window.location.search)?"billing":"defaults",e.confirmDeleteAccount=!1,e.deleteUsername="",e.profilePastSubscription=()=>!e.profileAuthorGrant()&&(e.billing?.grants||[]).some(h=>["author_monthly","author_annual"].includes(h.planId)),e.showAuthorPlans=new URLSearchParams(window.location.search).get("upgrade")==="1",e.showRepositoryPass=!1,e.profilePlan="author_annual",e.openProfileUpgrade=()=>{e.settingsTab="billing",e.showAuthorPlans=!0,Ge(()=>document.getElementById("settings-plan-comparison")?.focus())},e.on("settings:upgrade",()=>e.openProfileUpgrade()),e.profileAuthorPlans=()=>(e.billing?.plans||[]).filter(h=>["author_monthly","author_annual"].includes(h.id)),e.profileSelectedPlan=()=>e.profileAuthorPlans().find(h=>h.id===e.profilePlan)||e.profileAuthorPlans()[0],e.profilePassPlan=()=>(e.billing?.plans||[]).find(h=>h.id==="author_pass"),e.profileAddonPlans=()=>(e.billing?.plans||[]).filter(h=>Zi(h.id)).sort((h,y)=>+(y.id==="repo_pack")-+(h.id==="repo_pack")),e.profileAddonId="repo_pack",e.profilePackPlan=()=>(e.billing?.plans||[]).find(h=>h.id==="repo_pack"),e.profileSlotPlan=()=>(e.billing?.plans||[]).find(h=>h.id==="repo_slot"),e.profileRepositories=()=>(e.billing?.repositories||[]).filter(h=>h.status!=="removed"),e.openProfileAddon=h=>{h&&(e.profileAddonId=h),e.showRepositoryPass=!0,e.billingRepository="",Ge(()=>{let y=document.getElementById("settings-addons-title");y?.scrollIntoView?.({block:"nearest",behavior:"smooth"}),y?.focus?.({preventScroll:!0})})};let r=["repo_slot","author_pass","repo_extend","repo_never"];e.profileSingleAddons=()=>e.profileAddonPlans().filter(h=>h.id!=="repo_pack").sort((h,y)=>r.indexOf(h.id)-r.indexOf(y.id)),e.profileSingleId="repo_slot",e.profileSingleAddon=()=>e.profileSingleAddons().find(h=>h.id===e.profileSingleId)||e.profileSingleAddons()[0],e.profileCheapestAddon=()=>[...e.profileSingleAddons()].sort((h,y)=>(h.amount??1/0)-(y.amount??1/0))[0],e.profileAuthorPlansByValue=()=>[...e.profileAuthorPlans()].sort((h,y)=>+(h.interval==="year")-+(y.interval==="year")),e.profilePackSummary=h=>h.parts.map(y=>y.planId==="repo_slot"?"Extra repository":`${e.profileGrantName(y)} until ${e.billingDate(y.until)}`).join(" \xB7 "),e.profileAddonFeatures=h=>({repo_pack:["One more repository, outside your free ones",`Its own ${e.billingBytes(e.profileSlotPlan()?.storage||e.profilePassPlan()?.storage)} of storage`,"Automatic updates for 180 days","Online for up to a year","No subscription"],repo_slot:["One more repository, outside your free ones",`Its own ${e.billingBytes(e.profileSlotPlan()?.storage)} of storage`,"Valid while the repository exists","Refresh it by hand"],author_pass:["Automatic updates for 180 days",`Its own ${e.billingBytes(e.profilePassPlan()?.storage)} of storage`,"No subscription"],repo_extend:["Online for up to one more year","Buy again to add another year","No subscription"],repo_never:["The link never expires","No subscription","Ends only if the payment is refunded"]})[h]||[],e.profileAddonBlurb=h=>({repo_slot:"One more repository",author_pass:"Auto-updates for 180 days",repo_extend:"Online one more year",repo_never:"The link never expires"})[h]||"",e.profileAuthorPurchase=()=>(e.billing?.purchases||[]).find(h=>h.recurring&&["active","overdue"].includes(h.status)),e.profileRepositoryExpiry=h=>h.status==="expired"?"expired":h.expirationMode==="never"?"never expires":h.expirationDate?"expires "+e.billingDate(h.expirationDate):"no date",e.profileAnnualSavings=()=>{let h=e.profileAuthorPlans().find(g=>g.interval==="month")?.amount,y=e.profileAuthorPlans().find(g=>g.interval==="year")?.amount;return h&&y&&y(e.billing?.purchases||[]).filter(y=>["active","overdue"].includes(y.status)===h),e.profilePurchaseStatus=h=>({active:"Active",overdue:"Payment overdue",ended:"Ended",refunded:"Refunded",disputed:"Disputed"})[h.status]||h.status,e.profilePurchaseTerm=h=>{let y=h.status&&!["active","overdue"].includes(h.status);if(h.recurring)return y?h.until?"Ended "+e.billingDate(h.until):"":(h.cancelAtPeriodEnd?"Ends ":"Renews ")+e.billingDate(h.until);if(h.planId==="repo_pack"){let g=h.parts.map(k=>k.until).filter(Boolean).map(k=>new Date(k).getTime());return y||!g.length?"":"Until "+e.billingDate(new Date(Math.max(...g)))}return h.until?(y||new Date(h.until).getTime()e.profileAddonPlans().find(h=>h.id===e.profileAddonId)||e.profileAddonPlans()[0],e.profileAuthorGrant=()=>(e.billing?.grants||[]).find(h=>["author_monthly","author_annual"].includes(h.planId)&&["active","paid","past_due"].includes(h.status)&&new Date(h.until).getTime()>Date.now()),e.profileConferencePlan=()=>(e.billing?.plans||[]).filter(h=>["conference_workshop","conference","conference_large"].includes(h.id)&&h.amount!=null).sort((h,y)=>h.amount-y.amount)[0],e.profileGrantName=h=>({author_monthly:"Author monthly",author_annual:"Author annual",author_pass:"Live updates",repo_extend:"Extended expiration",repo_never:"Never expire",repo_slot:"Extra repository",repo_pack:"Paper pack",conference:"Conference package",conference_workshop:"Workshop package",conference_large:"Large conference package"})[h.planId]||h.planId,er(e,t,()=>o.load().then(h=>{e.quota=h},console.error),{portalMessage:()=>{let h=e.profileAuthorGrant();return h?h.cancelAtPeriodEnd?`Renewal cancelled. Your access continues until ${e.billingDate(h.until)}.`:`Your subscription renews on ${e.billingDate(h.until)}.`:"Your billing details are up to date."}}),e.terms="",e.options={expirationMode:"remove",update:!1,image:!0,pdf:!0,notebook:!0,loc:!0,link:!0},e.saving=!1,e.message=null,e.error=null,e.accountEmail="",e.emailLoading=!0,e.emailCSRFReady=!1,e.emailSaving=!1,e.emailSaved=!1,e.emailError="";let u="";e.loadAccountEmail=async()=>{e.emailLoading=!0,e.emailError="";try{let h=await t.get("/github/connections/email");e.accountEmail=h.data.notificationEmail||"",u=h.data.csrf,e.emailCSRFReady=!!u}catch{e.emailError="Unable to load your email address. Please try again."}finally{e.emailLoading=!1}},e.saveAccountEmail=async()=>{if(!(e.emailSaving||e.emailLoading||!u)){e.emailSaving=!0,e.emailSaved=!1,e.emailError="";try{let h=await t.post("/github/connections/email",{email:e.accountEmail},{headers:{"X-CSRF-Token":u}});e.accountEmail=h.data.notificationEmail,e.user&&(e.user.notificationEmail=h.data.notificationEmail),e.emailSaved=!0}catch{e.emailError="Unable to save your email address. Check the address and try again."}finally{e.emailSaving=!1}}},e.loadAccountEmail(),o.load().then(h=>{e.quota=h},console.error);let p=Ta(e,["terms","options"],"profile");e.discardDraft=()=>p.discard();function c(){t.get("/api/user/default").then(h=>{let y=h.data||{};y.terms&&(e.terms=y.terms.join(` +`)],{type:"text/csv;charset=utf-8"}),q=URL.createObjectURL(I),E=document.createElement("a");E.href=q,E.download=`errors-${new Date().toISOString().slice(0,19)}.csv`,document.body.appendChild(E),E.click(),document.body.removeChild(E),URL.revokeObjectURL(q)};function H(_){e.copyHint=`${_} copied`,c.timeout(()=>{e.copyHint=""},1500)}e.copyJson=_=>{navigator.clipboard.writeText(_._rawJson).then(()=>H("JSON"))},e.copyCurl=_=>{if(!_._url)return;let I=`curl -X ${_._method||"GET"} '${window.location.origin}${_._url}'`;navigator.clipboard.writeText(I).then(()=>H("curl"))},F();let se=i(()=>{e.query.autoRefresh&&F(!0)},15e3);e.on("dispose",()=>{p=!0,o++,r++,i.cancel(se)}),e.watch("query.search",b),e.watch("query.bucket",b),e.watch("query.sort",b),e.watch("query.group",b)},tc=function(e,t,s,i){if(e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null){s.url("/");return}e.data=null,e.loading=!0,e.error=null,e.performance=null,e.performanceMinutes=15,e.performanceTab="routes",e.cacheReport=null,e.cacheError=null,e.cacheMinutes=60,e.cacheTraffic="all",e.ovView=["performance","cache"].includes((window.location.hash||"").slice(1))?window.location.hash.slice(1):"summary",e.setOvView=function(b){e.ovView=b;try{window.history.replaceState(null,"",b==="summary"?window.location.pathname:"#"+b)}catch{}};var o=!1;e.loadCache=function(){if(!o){o=!0;var b=e.cacheMinutes;t.get("/api/admin/cache",{params:{minutes:b}}).then(function(T){b===e.cacheMinutes&&(e.cacheReport=T.data,e.cacheError=T.data.available?null:T.data.reason||"Cache monitoring is unavailable.")},function(){e.cacheError="Could not refresh cache monitoring. Displayed values may be stale."}).finally(function(){o=!1,b!==e.cacheMinutes&&e.loadCache()})}},e.cacheRows=function(){return(e.cacheReport?.rows||[]).filter(function(b){return e.cacheTraffic==="all"||b.traffic===e.cacheTraffic})},e.cacheRate=function(b,T){var O=e.cacheRows(),F=function(_){return O.filter(function(z){return z.name===_}).reduce(function(z,I){return z+I[T]},0)},H=F(b+"_hit"),se=F(b+"_miss");return H+se?(100*H/(H+se)).toFixed(1)+"%":"No samples"},e.cacheEventName=function(b){return b.replaceAll("_"," ")},e.cacheP95=function(b){var T=0,O=e.cacheReport?.latencyBucketsMs||[];if(!b.count)return"No samples";if(!b.ms)return"Not timed";for(var F=0;F<=O.length;F++)if(T+=b["b"+F]||0,T>=Math.ceil(b.count*.95))return F 10\u202Fs";return"No samples"},e.healthAlert=function(){let b=e.data&&e.data.system||{},T=[["Memory",b.memPercent],["Disk",b.diskPercent]].filter(([,F])=>F>90);return T.length?T.map(([F,H])=>F+" is at "+H+"%").join(" and ")+". New anonymizations may fail until "+(T.length>1?"they drop.":"it drops."):""},e.performanceError=null,e.formatMs=function(b){return b==null?"":Fn(b)},e.latencyBound=function(b,T){return b.count?b[T]==null?"> 60\u202Fs":"\u2264 "+e.formatMs(b[T]):"No samples"},e.firstByteBound=function(b){return e.latencyBound({count:b.firstByteCount,p95UpperMs:b.firstByteP95UpperMs},"p95UpperMs")},e.sampleAge=function(b){return Math.max(0,Math.round((Date.now()-b.sampledAt)/1e3))},e.peakRss=function(b){return(e.performance.runtimeSeries||[]).filter(function(T){return T.instance===b.instance}).reduce(function(T,O){return Math.max(T,O.rss)},b.memory.rss)},e.performanceWarning=function(b){return e.sampleAge(b)>45||b.droppedBatches||b.droppedMetrics||b.sockets?.closeWait>0||b.eventLoop?.p95Ms>100||b.memoryLimitBytes&&b.memory.rss>b.memoryLimitBytes*.8};var r=!1;e.loadPerformance=function(){var b=e.performanceMinutes;e.performance?.windowMinutes&&e.performance.windowMinutes!==b&&(e.performance=null),!r&&(r=!0,t.get("/api/admin/performance",{params:{minutes:b}}).then(function(T){b===e.performanceMinutes&&(e.performance=T.data,e.performanceError=T.data.available?null:"Performance monitoring is unavailable. Request history may be incomplete.")},function(){b===e.performanceMinutes&&(e.performanceError="Could not refresh performance monitoring. Displayed samples may be stale.")}).finally(function(){r=!1,b!==e.performanceMinutes&&e.loadPerformance()}))};function u(b){if(b==null)return"\u2014";for(var T=["B","KB","MB","GB","TB"],O=0,F=b;F>=1024&&O0?1:0).replace(/\.0$/,"")+" "+T[O]}e.humanBytes=u;function p(b){if(!b)return"\u2014";var T=Math.floor(b/86400),O=Math.floor(b%86400/3600),F=Math.floor(b%3600/60);return T>0?T+"d "+(O<10?"0":"")+O+"h":O>0?O+"h "+(F<10?"0":"")+F+"m":F+"m"}e.humanDuration=p;function c(b){return b==null?"\u2014":b>=1e6?(b/1e6).toFixed(1)+"M":b>=1e3?(b/1e3).toFixed(1)+"K":String(b)}e.humanNum=c,e.queueTotal=function(b){return b?(b.waiting||0)+(b.active||0)+(b.delayed||0)+(b.failed||0):0},e.statusCount=function(b){if(!e.data||!e.data.repos)return 0;for(var T=e.data.repos.statusBreakdown||[],O=0;O0,zero:!F,title:String(H.getHours()).padStart(2,"0")+":00 \xB7 "+(O.error||0)+" 5xx, "+(O.warn||0)+" 4xx"}})},e.errorHoursPeak=function(){var b=e.errorStats&&e.errorStats.buckets||[];return b.reduce(function(T,O){return Math.max(T,(O.error||0)+(O.warn||0))},0)};function v(b){var T=b||[];return T.map(function(O,F){var H=T[F-1]||{},se=Object.assign({},O);return se.dailyRepositories=F?Math.max(0,(O.nbRepositories||0)-(H.nbRepositories||0)):0,se.dailyUsers=F?Math.max(0,(O.nbUsers||0)-(H.nbUsers||0)):0,se.dailyPageViews=F?Math.max(0,(O.nbPageViews||0)-(H.nbPageViews||0)):0,se})}function h(b){var T=b&&b.length?b[b.length-1]:{};return{repositories:T.dailyRepositories||0,users:T.dailyUsers||0,pageViews:T.dailyPageViews||0}}function y(b,T){if(!b||!b.length)return b;var O=new Date(b[b.length-1].date);if(isNaN(O))return b;var F={};b.forEach(function(I){F[new Date(I.date).toISOString().slice(0,10)]=I});for(var H=[],se=T-1;se>=0;se--){var _=new Date(O.getTime()-se*864e5),z=_.toISOString().slice(0,10);H.push(F[z]||{date:_.toISOString(),_empty:!0,dailyPageViews:0,dailyRepositories:0,dailyUsers:0,nbUsers:0})}return H}var g={};e.historyMax=function(b){return g[b]||0};var k={};e.axisMax=function(b){var T=g[b]||0;if(T<=2)return 2;if(T<=10)return Math.ceil(T/2)*2;var O=Math.pow(10,Math.floor(Math.log10(T)));return Math.ceil(T/O)*O},e.historyBarH=function(b,T){return!b||!g[T]||!b[T]?0:Math.max(1,Math.round(b[T]/e.axisMax(T)*140))},e.historyRange=function(b){return{min:k[b],max:g[b]}};var w=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];e.historyLabel=function(b){if(!b||!b.date)return"";var T=new Date(b.date);return w[T.getUTCMonth()]+" "+T.getUTCDate()},e.historyHasMissing=function(){return!!(e.data&&e.data.history||[]).some(function(b){return b&&b._empty})},e.firstDataIndex=function(){for(var b=e.data&&e.data.history||[],T=0;T=O)return{lo:z,hi:z+2*se[_]}}return{lo:0,hi:e.axisMax("nbUsers")}},e.userStepPath=function(b){var T=e.data&&e.data.history||[],O=e.userAxis(),F=g.nbUsers?O.hi-O.lo:0,H=e.firstDataIndex();if(!F||H>=T.length)return"";for(var se=function(q){return(140-((q||0)-O.lo)/F*140).toFixed(2)},_=b?"M"+H+" 140":"",z=H;zg[O])&&(g[O]=T[O]),(k[O]==null||T[O] .meta-more"),s=[...e.querySelectorAll(":scope > .meta-item")];if(s.forEach(o=>{o.removeAttribute("data-meta-hidden")}),t&&(t.hidden=!0,t.textContent="",t.removeAttribute("title"),t.removeAttribute("aria-label")),!e.clientWidth)return;if(e.classList.add("is-fitting"),e.scrollWidth<=e.clientWidth+1){e.classList.remove("is-fitting");return}let i=[];for(let o=s.length-1;o>=0&&e.scrollWidth>e.clientWidth+1;o--)if(s[o].setAttribute("data-meta-hidden",""),i.unshift(s[o]),t){let r=i.map(u=>u.dataset.metaLabel||u.textContent.trim().replace(/\s+/g," "));t.hidden=!1,t.textContent="+"+i.length,t.title=r.join(" \xB7 "),t.setAttribute("aria-label",i.length+" more: "+r.join(", "))}e.classList.remove("is-fitting")}function nc(e,t){if(typeof document>"u"||typeof MutationObserver>"u"||!document.body)return;let s=!1,i=null,o=()=>{s=!1,i&&(document.querySelectorAll("[data-meta-fit]").forEach(Og),i.takeRecords())},r=()=>{!s&&i&&(s=!0,e.timeout(o,30))};i=new MutationObserver(u=>{u.some(p=>!(p.target.closest&&p.target.closest(".meta-more")))&&r()}),i.observe(document.body,{childList:!0,subtree:!0,characterData:!0}),no(()=>{i.disconnect(),i=null}),t(window,"resize",r),document.fonts?.ready&&document.fonts.ready.then(r),r()}var Mg=["bif","clp","djf","gnf","jpy","kmf","krw","mga","pyg","rwf","ugx","vnd","vuv","xaf","xof","xpf"],sr=[{id:"subscription",label:"Subscriptions"},{id:"repository",label:"Repository add-ons"},{id:"conference",label:"Conferences"}],Vg={author_monthly:"Author monthly",author_annual:"Author annual",author_pass:"Live updates",repo_extend:"Extended expiration",repo_never:"Never expire",repo_slot:"Extra repository",repo_pack:"Paper pack",conference_workshop:"Workshop",conference:"Conference",conference_large:"Large conference"};function fo(e){return Object.entries(e||{}).filter(([,t])=>t).sort((t,s)=>s[1]-t[1]).map(([t,s])=>{let i=Mg.includes(t)?s:s/100;try{return new Intl.NumberFormat(void 0,{style:"currency",currency:t.toUpperCase(),minimumFractionDigits:i%1?2:0,maximumFractionDigits:2}).format(i)}catch{return i+" "+t.toUpperCase()}})}var oc=function(e,t,s){let i=yt();if(e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null){s.url("/");return}e.families=sr,e.periods=[{id:"7d",label:"7 days"},{id:"30d",label:"30 days"},{id:"90d",label:"90 days"},{id:"12m",label:"12 months"},{id:"all",label:"All time"}];let o=(()=>{try{return localStorage.getItem("admin.billing.period")}catch{return null}})();e.period=e.periods.some(w=>w.id===o)?o:"30d",e.summary=null,e.summaryError=null,e.summaryLoading=!0,e.periodLabel=()=>(e.periods.find(w=>w.id===e.period)||{}).label||"",e.periodPhrase=()=>e.period==="all"?"all time":"last "+e.periodLabel(),e.money=w=>fo(w),e.moneyText=(w,S="\u2014")=>fo(w).join(" \xB7 ")||S,e.revenueOn=()=>!!e.summary?.revenue?.available,e.planName=w=>((e.summary?.plans||[]).find(S=>S.planId===w)||{}).name||Vg[w]||w,e.bucketTotal=w=>w?w.subscription+w.repository+w.conference:0,e.chartMax=()=>{let w=Math.max(0,...(e.summary?.series||[]).map(e.bucketTotal));if(w<=4)return 4;let S=Math.pow(10,Math.floor(Math.log10(w)));return[1,1.2,1.5,2,2.5,3,4,5,6,8,10].map(N=>N*S).find(N=>N>=w&&N%2===0)||10*S},e.segmentPct=(w,S)=>w&&w[S]?w[S]/e.chartMax()*100:0,e.familyTotal=w=>(e.summary?.series||[]).reduce((S,N)=>S+N[w],0);let r=(w,S)=>{for(let[N,b]of Object.entries(S||{}))w[N]=(w[N]||0)+b;return w};e.familyRevenue=w=>(e.summary?.series||[]).reduce((S,N)=>r(S,N.revenue?.[w]),{}),e.seriesMissing=()=>(e.summary?.series||[]).reduce((w,S)=>w+(S.missing||0),0),e.legendText=w=>{let S=Da(e.familyTotal(w));if(!e.revenueOn()||e.seriesMissing())return S;let N=fo(e.familyRevenue(w));return N.length?S+" \xB7 "+N.join(" \xB7 "):S},e.bucketLabel=w=>{if(!w)return"";let S=new Date(w.date),N={timeZone:"UTC",day:"numeric",month:"short"};return e.summary?.bucket==="month"?S.toLocaleDateString(void 0,{timeZone:"UTC",month:"short",year:"numeric"}):((e.period==="12m"||e.period==="all"||S.getUTCFullYear()!==new Date().getUTCFullYear())&&(N.year="numeric"),(e.summary?.bucket==="week"?"Week of ":"")+S.toLocaleDateString(void 0,N))},e.bucketTip=w=>{let S=e.bucketTotal(w),N=e.bucketLabel(w)+" \xB7 "+(S?S+(S===1?" sale":" sales"):"no sales");if(!S)return N;let b=e.revenueOn(),T=sr.filter(_=>w[_.id]).map(_=>[_.label,String(w[_.id]),b?fo(w.revenue?.[_.id]).join(" \xB7 "):""]),O=sr.reduce((_,z)=>r(_,w.revenue?.[z.id]),{}),F=b?[...fo(O).length?["Total "+fo(O).join(" \xB7 ")]:[],...w.missing?[w.missing+(w.missing===1?" sale":" sales")+" without a known price"]:[]]:["Revenue unavailable"],H=_=>Math.max(...T.map(z=>z[_].length)),se=T.map(_=>(_[0].padEnd(H(0))+" "+_[1].padStart(H(1))+(_[2]?" "+_[2]:"")).trimEnd());return[N,...se,...F].join(` +`)},e.tipSide=w=>{let S=(e.summary?.series||[]).length;return S<3?"":w=S*3/4?"tip-end":""},e.bucketName=()=>({day:"day",week:"week",month:"month"})[e.summary?.bucket]||"day",e.seriesSales=()=>(e.summary?.series||[]).reduce((w,S)=>w+e.bucketTotal(S),0),e.plansWithActivity=()=>(e.summary?.plans||[]).filter(w=>w.active||w.allTimeSales||w.sales),e.familyLabel=w=>(sr.find(S=>S.id===w)||{}).label||"",e.familyPlans=w=>(e.summary?.plans||[]).filter(S=>S.family===w),e.familySum=(w,S)=>e.familyPlans(w).reduce((N,b)=>N+(b[S]||0),0),e.familyMoney=(w,S,N)=>{if(!e.revenueOn())return"\u2014";let b=e.familyPlans(w);return b.some(T=>T[N]===!1)?"Incomplete":e.moneyText(b.reduce((T,O)=>r(T,O[S]),{}))},e.planTotals=()=>{let w=S=>(e.summary?.plans||[]).reduce((N,b)=>N+(b[S]||0),0);return{active:w("active"),sales:w("sales"),allTimeSales:w("allTimeSales")}},e.webhookState=()=>{let w=e.summary?.webhooks;return w?w.failed||w.reconciliationFailed?"bad":w.oldestPendingSeconds>900||w.unreviewedRevocations?"warn":"ok":"ok"},e.age=w=>w?Fn(w*1e3):"\u2014";let u=0;e.loadSummary=()=>{let w=++u;e.summaryLoading=!0,e.summaryError=null,t.get("/api/admin/billing/summary",{params:{period:e.period}}).then(S=>{if(w!==u)return;e.summaryLoading=!1;let N=S.data;if(!N||!N.subscriptions||!N.sales||!Array.isArray(N.plans)){e.summaryError="The billing summary had an unexpected format.";return}e.summary=N},S=>{w===u&&(e.summaryLoading=!1,e.summaryError=S&&S.data&&S.data.error||"Could not load billing figures.")})},e.setPeriod=w=>{if(e.period!==w){e.period=w;try{localStorage.setItem("admin.billing.period",w)}catch{}e.loadSummary()}},e.grants=[],e.total=-1,e.totalPage=0,e.stateCounts={},e.statuses=[],e.grantsError=null,e.filtersOpen=!1,e.query={page:1,limit:25,search:"",plan:"",status:"",state:"",period:"",sort:"purchasedAt",direction:"desc"};let p=s.search();p.search&&(e.query.search=p.search),e.stateView=()=>e.query.state||"all",e.setStateView=w=>{e.query.state=w==="all"?"":w,e.query.page=1},e.stateCount=w=>w==="all"?["active","expired","revoked"].reduce((S,N)=>S+(e.stateCounts[N]||0),0):e.stateCounts[w]||0,e.sortBy=w=>{e.query.sort===w?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=w,e.query.direction="desc"),e.query.page=1},e.sortIcon=w=>e.query.sort===w?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"",e.chips=[];let c=()=>{let w=[];e.query.plan&&w.push({key:"plan",label:"Plan",value:e.planName(e.query.plan)}),e.query.status&&w.push({key:"status",label:"Stripe status",value:e.query.status.replace(/_/g," ")}),e.query.period&&w.push({key:"period",label:"Started",value:"last "+((e.periods.find(S=>S.id===e.query.period)||{}).label||e.query.period)}),e.chips=w};e.clearFilter=w=>{e.query[w]="",e.query.page=1},e.filterPlan=w=>{Object.assign(e.query,{plan:w,page:1});let S=document.getElementById("bl-grants");S&&S.scrollIntoView&&S.scrollIntoView({behavior:"smooth",block:"start"})},e.clearFilters=()=>Object.assign(e.query,{search:"",plan:"",status:"",state:"",period:"",page:1}),e.hasFilters=()=>!!(e.query.search||e.query.plan||e.query.status||e.query.state||e.query.period),e.filterCount=()=>["plan","status","period"].filter(w=>e.query[w]).length,e.amountText=w=>{if(!w.amount)return"\u2014";let S=fo({[w.amount.currency]:w.amount.value})[0]||"\u2014";if(!w.amount.interval)return S;let N=w.amount.intervalCount>1?w.amount.intervalCount+" "+w.amount.interval+"s":w.amount.interval;return S+" / "+N},e.amountTitle=w=>w.amount?"Stripe list price"+(w.pack?" of the whole pack":""):{stripe_not_configured:"Revenue unavailable: Stripe is not configured on this server.",unresolved:"Revenue unavailable: this Stripe price could not be looked up.",unrecorded:"Revenue unavailable: no sale price was recorded for this subscription."}[w.amountMissing]||"Revenue unavailable.",e.endText=w=>{if(w.never)return"Never ends";if(!w.until)return"\u2014";let S=nr(w.until);return w.state!=="active"?(new Date(w.until){let S=(w.parts||[]).find(N=>N.planId==="author_pass");return!w.pack||!S||!S.until?"":(new Date(S.until)(w.parts||[]).map(S=>v[S.planId]||e.planName(S.planId)).join(", ").replace(/^./,S=>S.toUpperCase()),e.packPartsTitle=w=>"Paper pack: "+(w.parts||[]).map(S=>e.planName(S.planId)).join(", "),e.statusText=w=>(w.status||"unknown").replace(/_/g," "),e.revocationText=w=>w==="dispute"?"Disputed":w==="full_refund"?"Refunded":"Revoked",e.scopeHref=w=>w?.kind==="repo"?"/admin/repositories?search="+encodeURIComponent(w.id):w?.kind==="conference"?"/conference/"+encodeURIComponent(w.id):null;let h=0;function y(){let w=++h;e.grantsError=null;let S=Object.fromEntries(Object.entries(e.query).filter(([,N])=>N!==""&&N!=null));t.get("/api/admin/billing/grants",{params:S}).then(N=>{w===h&&(e.total=N.data?.total??0,e.totalPage=Math.ceil(e.total/e.query.limit),e.grants=N.data?.results||[],e.stateCounts=N.data.stateCounts||{},e.statuses=N.data.statuses||[])},N=>{w===h&&(e.grantsError=N&&N.data&&N.data.error||"Could not load subscriptions and purchases.")})}e.reloadGrants=y,e.loadSummary(),y(),c();let g=null,k=JSON.stringify({...e.query,page:0});e.watch("query",()=>{let w=JSON.stringify({...e.query,page:0});if(w!==k&&e.query.page!==1){k=w,e.query.page=1;return}k=w,i.timeout.cancel(g),g=i.timeout(y,300),c()},!0)},sc=function(e,t,s){if(e.user==null){s.url("/");return}e.Math=Math;let i=typeof window<"u"?window:null,o=i?new URLSearchParams(i.location.search):null,r=["7d","30d","90d","all"],u=["accepted","rejected","unknown","sending"];e.emailRows=[],e.emailState=u.includes(o?.get("state"))?o.get("state"):"",e.emailKind=["repository-expiration","owner-access"].includes(o?.get("kind"))?o.get("kind"):"",e.emailPeriod=r.includes(o?.get("period"))?o.get("period"):"7d",e.emailSearch=o?.get("search")||"";let p=e.emailSearch.trim();e.emailLoading=!1,e.emailError="",e.emailAnnouncement="",e.emailNextCursor=null,e.emailSummary=null,e.emailSummaryError="",e.emailSummaryLoading=!1,e.emailUpdated=null,e.emailPage=1,e.selectedEmailId=null,e.emailCopyMessage="",e.emailCopiedValue=null,e.emailTimezone=Intl.DateTimeFormat().resolvedOptions().timeZone,e.emailStatusLabel=O=>({sending:"Pending",accepted:"Accepted",rejected:"Rejected",unknown:"Unknown"})[O]||O,e.emailKindLabel=O=>({"repository-expiration":"Repository expiration","owner-access":"GitHub access"})[O]||O,e.emailTime=O=>O?new Date(O).toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"}):"Not recorded",e.emailShortTime=O=>{if(!O)return"Not recorded";let F=new Date(O);return F.toLocaleString(void 0,{...e.emailPeriod==="all"||F.getFullYear()!==new Date().getFullYear()?{year:"numeric"}:{},month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})},e.emailExplanation=O=>O.state==="accepted"?"The provider accepted this request. Inbox delivery is not confirmed.":O.state==="sending"?"The attempt was recorded, but no final outcome has been recorded. Check the provider before sending again.":O.state==="unknown"?"The provider outcome could not be confirmed. Check the provider before sending again to avoid duplicates.":{400:"The provider rejected the request as invalid.",401:"The provider rejected authentication.",403:"The provider denied this request.",404:"The provider could not find the requested endpoint or resource.",422:"The provider could not process the request.",429:"The provider rejected the request because of rate limiting."}[O.httpStatus]||(O.httpStatus>=500?"The provider reported a server error.":"The provider rejected this request."),e.toggleEmail=O=>{e.selectedEmailId=e.selectedEmailId===O._id?null:O._id,e.emailCopyMessage="",e.emailCopiedValue=null};let c=!1,v=0,h=0,y="",g="",k=!1,w=null;e.copyEmail=async O=>{e.emailCopiedValue=null;try{if(!i?.navigator?.clipboard)throw new Error("Clipboard unavailable");await i.navigator.clipboard.writeText(String(O)),c||(e.emailCopyMessage="Copied.",e.emailCopiedValue=String(O))}catch{c||(e.emailCopyMessage="Could not copy. Select and copy the text manually.")}};let S=()=>({period:e.emailPeriod,search:p||void 0,kind:e.emailKind||void 0}),N=()=>{if(i)try{let O=new URL(i.location.href);for(let[F,H]of Object.entries({...S(),state:e.emailState}))H?O.searchParams.set(F,H):O.searchParams.delete(F);i.history.replaceState(null,"",O.pathname+O.search+O.hash)}catch{}};e.hasEmailFilters=()=>!!(e.emailState||e.emailKind||p||e.emailPeriod!=="7d"),e.emailVisibleRows=()=>e.emailRows.slice((e.emailPage-1)*25,e.emailPage*25),e.emailTotal=()=>e.emailSummary?e.emailState?e.emailSummary.counts[e.emailState]:e.emailSummary.total:null,e.emailPageCount=()=>e.emailTotal()==null?null:Math.max(1,Math.ceil(e.emailTotal()/25)),e.emailDayTotal=O=>u.reduce((F,H)=>F+(Number(O[H])||0),0),e.emailChartTotal=()=>(e.emailSummary?.series||[]).reduce((O,F)=>O+e.emailDayTotal(F),0),e.jumpToEmailHistory=()=>{let O=i?.document?.querySelector("#email-history-title");O&&(O.focus({preventScroll:!0}),O.scrollIntoView({block:"start"}))},e.emailChartMax=()=>Math.max(1,...(e.emailSummary?.series||[]).map(e.emailDayTotal)),e.emailDayLabel=O=>{let F=typeof O=="string"?O:O?.date;if(!F)return"";let H=new Date(F+"T12:00:00Z");return Number.isNaN(H.getTime())?"":H.toLocaleDateString(void 0,{month:"short",day:"numeric",timeZone:"UTC"})};let b=O=>{e.emailPage=O,e.selectedEmailId=null,w=null;let F=(O-1)*25+1,H=Math.min(O*25,e.emailRows.length);e.emailAnnouncement=`Page ${O}. Showing attempts ${F} to ${H}.`;let se=i?.document?.querySelector("#email-history-title");se&&(se.setAttribute("tabindex","-1"),se.focus({preventScroll:!0}),se.scrollIntoView({block:"start",behavior:"auto"}))};e.loadEmailSummary=async()=>{let O=JSON.stringify(S());O!==g&&(e.emailSummary=null),g=O;let F=++h;e.emailSummaryLoading=!0,e.emailSummaryError="";try{let H=await t.get("/api/admin/emails/summary",{params:S()});F===h&&(e.emailSummary=H.data)}catch{F===h&&(e.emailSummaryError=e.emailSummary?"Could not refresh the summary. Previously loaded totals are still shown.":"Email summary is unavailable.")}finally{F===h&&(e.emailSummaryLoading=!1)}},e.retryEmails=()=>e.loadEmails(k),e.loadEmails=async(O=!1)=>{let F=JSON.stringify([e.emailState,e.emailKind,e.emailPeriod,p]),H=F!==y;if(y=F,H&&(O=!1),O&&(e.emailLoading||!e.emailNextCursor))return;let se=++v;e.emailLoading=!0,e.emailError="",e.emailAnnouncement=O?"Loading older emails.":"Loading email history.",H&&(e.emailRows=[],e.emailNextCursor=null,e.emailPage=1,e.selectedEmailId=null,w=null),O||(w=null),N();try{let _=await t.get("/api/admin/emails",{params:{...S(),state:e.emailState||void 0,before:O?e.emailNextCursor:void 0}});return se!==v?void 0:(e.emailRows=O?e.emailRows.concat(_.data.entries):_.data.entries,e.emailNextCursor=_.data.nextCursor,O||(e.emailPage=1),e.emailUpdated=new Date().toISOString(),e.emailAnnouncement=`Email history loaded. ${e.emailRows.length} attempts loaded.`,O&&w&&e.emailRows.length>(w-1)*25&&b(w),!0)}catch{se===v&&(k=O,e.emailError=O?"Could not load older emails. Your loaded history is still shown.":e.emailRows.length?"Could not refresh email history. Previously loaded results are still shown.":"Could not load email history.",e.emailAnnouncement="")}finally{se===v&&(e.emailLoading=!1)}},e.emailPreviousPage=()=>{!e.emailLoading&&e.emailPage>1&&b(e.emailPage-1)},e.emailNextPage=async()=>{if(e.emailLoading)return;let O=e.emailPage+1,F=y;e.emailRows.length<=(O-1)*25&&e.emailNextCursor&&(w=O,await e.loadEmails(!0)),!c&&F===y&&e.emailPage!==O&&e.emailRows.length>(O-1)*25&&b(O)},e.refreshEmails=()=>Promise.all([e.loadEmails(),e.loadEmailSummary()]),e.applyEmailFilters=()=>(p=e.emailSearch.trim(),e.refreshEmails()),e.setEmailStatus=O=>(e.emailState=u.includes(O)?O:"",e.loadEmails()),e.clearEmailFilters=()=>(e.emailState="",e.emailKind="",e.emailSearch="",e.emailPeriod="7d",e.applyEmailFilters());let T;i?.setTimeout&&(T=i.setTimeout(()=>{let O=i.document?.querySelector(".emails-page .admin-nav"),F=O?.querySelector('[aria-current="page"]');O&&F&&(O.scrollLeft=Math.max(0,F.offsetLeft-O.offsetLeft-(O.clientWidth-F.offsetWidth)/2))},0)),e.on("dispose",()=>{c=!0,v++,h++,T!=null&&i.clearTimeout(T)}),e.refreshEmails()};var Oa=(e,t,s)=>{let i=e instanceof RegExp?ic(e,s):e,o=t instanceof RegExp?ic(t,s):t,r=i!==null&&o!=null&&Lg(i,o,s);return r&&{start:r[0],end:r[1],pre:s.slice(0,r[0]),body:s.slice(r[0]+i.length,r[1]),post:s.slice(r[1]+o.length)}},ic=(e,t)=>{let s=t.match(e);return s?s[0]:null},Lg=(e,t,s)=>{let i,o,r,u,p,c=s.indexOf(e),v=s.indexOf(t,c+1),h=c;if(c>=0&&v>0){if(e===t)return[c,v];for(i=[],r=s.length;h>=0&&!p;){if(h===c)i.push(h),c=s.indexOf(e,h+1);else if(i.length===1){let y=i.pop();y!==void 0&&(p=[y,v])}else o=i.pop(),o!==void 0&&o=0?c:v}i.length&&u!==void 0&&(p=[r,u])}return p};var rc="\0SLASH"+Math.random()+"\0",ac="\0OPEN"+Math.random()+"\0",La="\0CLOSE"+Math.random()+"\0",lc="\0COMMA"+Math.random()+"\0",dc="\0PERIOD"+Math.random()+"\0",_g=new RegExp(rc,"g"),$g=new RegExp(ac,"g"),Fg=new RegExp(La,"g"),Ug=new RegExp(lc,"g"),Bg=new RegExp(dc,"g"),zg=/\\\\/g,Hg=/\\{/g,jg=/\\}/g,Gg=/\\,/g,Wg=/\\\./g,Kg=1e5,Yg=4e6,Jg=1e3,Xg=1e3;function Ma(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function Qg(e){return e.replace(zg,rc).replace(Hg,ac).replace(jg,La).replace(Gg,lc).replace(Wg,dc)}function Zg(e){return e.replace(_g,"\\").replace($g,"{").replace(Fg,"}").replace(Ug,",").replace(Bg,".")}function Va(e,t){for(let s=0;s=t}function Bs(e,t,s,i,o,r){let u=[],p=0;for(let c=0;c=i)return u;let h=e[c]+t+s[v];if(!(r&&!h)){if(p+h.length>o)return u;u.push(h),p+=h.length}}return u}function sv(e,t,s,i){let o=e.split(/\.\./),r=[];if(o[0]===void 0||o[1]===void 0)return r;let u=Ma(o[0]),p=Ma(o[1]),c=Math.max(o[0].length,o[1].length),v=o.length===3&&o[2]!==void 0?Math.max(Math.abs(Ma(o[2])),1):1,h=nv;p0){let b=new Array(N+1).join("0");w<0?S="-"+b+S.slice(1):S=b+S}}if(k+S.length>i)break;r.push(S),k+=S.length}return r}function qa(e,t,s,i,o,r,u){if(o>i)return[e];let p=[""],c=0,v=!1,h=!0;for(;;){let y=Oa("{","}",e);if(!y)return Bs(p,e,[""],t,s,v);let g=y.pre;if(/\$$/.test(g)){if(p=Bs(p,g+"{"+y.body+"}",[""],t,s,v&&!y.post.length),h=!1,!y.post.length)break;e=y.post;continue}let k=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(y.body),w=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(y.body),S=k||w,N=y.body.indexOf(",")>=0;if(!S&&!N){if(c=t||F+z.length>s)break e;b.push(z),F+=z.length}}}}if(p=Bs(p,g,b,t,s,v&&!y.post.length),!y.post.length)break;e=y.post}return p}var iv={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}"],"[:alpha:]":["\\p{L}\\p{Nl}"],"[:ascii:]":["\\x00-\\x7f"],"[:blank:]":["\\p{Zs}\\t"],"[:cntrl:]":["\\p{Cc}"],"[:digit:]":["\\p{Nd}"],"[:graph:]":["\\p{Z}\\p{C}",!0],"[:lower:]":["\\p{Ll}"],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}\\p{S}"],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f"],"[:upper:]":["\\p{Lu}"],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}"],"[:xdigit:]":["A-Fa-f0-9"]},zs=e=>e.replace(/[[\]\\-]/g,"\\$&"),_a=/$./,cc=(e,t,s=!1,i)=>{let o=b=>{let T=i?b.normalize(i):b;return[...T].length===1?T:b},r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");let u=[],p=[],c=r+1,v=!1,h=!1,y=!1,g=r,k="";e:for(;ck.codePointAt(0)?u.push(zs(k)+"-"+zs(T)):T===k&&u.push(zs(T)),k="",c+=b.length;continue}if(e.startsWith("-]",c+b.length)){u.push(zs(T+"-")),c+=b.length+1;continue}if(e.startsWith("-",c+b.length)){k=T,c+=b.length+1;continue}u.push(zs(T)),c+=b.length}if(g({t:"lit",ch:e}),av=e=>e.replace(/[\\^$.*+?()[\]{}|/]/g,"\\$&"),hc=e=>new RegExp(`^${av(e)}$`,"iu"),ar=new Map,gc=e=>{let t=ar.get(e);return t||(t=hc(e),ar.size>=1e3&&ar.clear(),ar.set(e,t)),t},ja=(e,t)=>{if(t===e.ch)return!0;if(!e.re)return!1;let s=t.charCodeAt(0);if(s>=128)return e.re.test(t);let i=e.ascii??(e.ascii=new Uint8Array(128));return i[s]||(i[s]=e.re.test(t)?1:2),i[s]===1},lv=(e,t,s,i)=>{let o=[];for(let r=0;r{let t=new Map,s=[];return e.forEach((i,o)=>{i.t==="open"?s.push(o):i.t==="close"&&s.length&&t.set(s.pop(),o)}),t},vc=(e,t,s,i,o)=>{let r=[],u=[r];for(let p=s;p{let s=[],i="",o=()=>{for(let r of i.normalize(t))s.push(mo(r));i=""};for(let r of e){if(r.t==="lit"){i+=r.ch;continue}o(),s.push(r.t==="ext"?{...r,alts:r.alts.map(u=>yc(u,t))}:r)}return o(),s},uv=(e,t)=>{let s=1,i=p=>({t:"split",id:s++,out:p}),o=(p,c)=>p.reduceRight((v,h)=>r(h,v),c),r=(p,c)=>{switch(p.t){case"lit":let g=t?gc(p.ch):void 0;return{t:"lit",id:s++,ch:p.ch,re:g,next:c};case"any":case"star":return{t:p.t,id:s++,next:c};case"class":return{t:"class",id:s++,re:p.re,next:c}}let v=g=>p.alts.map(k=>o(k,g));switch(p.type){case"@":return i(v(c));case"?":return i([c,...v(c)]);case"!":return{t:"neg",id:s++,sub:i(v($a)),next:c}}let h=i([]),y=i(v(h));return h.out.push(c,y),p.type==="*"?h:y};return[o(e,$a),s]},cv=e=>{let t=[],s=new Set,i=r=>r.t==="match"?"match":String(r.id),o=(r,u)=>{if(r.t==="match"||s.has(r))return;s.add(r);let p=c=>t.push(`${u}${r.id}: ${c}`);switch(r.t){case"split":p(`split -> ${r.out.map(i).join(", ")}`);for(let c of r.out)o(c,u);return;case"neg":return p(`!(${i(r.sub)}) -> ${i(r.next)}`),o(r.sub,u+" "),o(r.next,u);case"lit":p(`${JSON.stringify(r.ch)} -> ${i(r.next)}`);break;case"class":p(`${r.re} -> ${i(r.next)}`);break;default:p(`${r.t==="any"?"?":"*"} -> ${i(r.next)}`)}o(r.next,u)};return o(e,""),[`start -> ${i(e)}`,...t].join(` +`)},Fa=class{constructor(t){tt(this,"gen");tt(this,"threads",[]);tt(this,"match",!1);tt(this,"runs",[]);tt(this,"ids",[]);this.gen=t}get dead(){return!this.threads.length&&!this.match&&!this.runs.length}},bc=(e,t)=>e.ids.length!==t.ids.length||e.runs.length!==t.runs.length||e.ids.some((s,i)=>s!==t.ids[i])?!1:e.runs.every(s=>t.runs.some(i=>i.neg===s.neg&&bc(i.state,s.state))),pc=e=>({has:new Float64Array(e),seen:new Float64Array(e),gen:0}),ho,Gn,Ua,Ba,js=class{constructor(t,s,i){Le(this,Gn);tt(this,"dots");tt(this,"dotStart");Le(this,ho);this.dots=t,this.dotStart=s,Be(this,ho,i)}state(){return new Fa(++ae(this,ho).gen)}done(t){return t.ids=t.threads.map(s=>s.id).sort((s,i)=>s-i),t.match&&t.ids.unshift($a.id),t}restricted(t,s){return s&&(this.dots||this.dotStart&&t===0)}add(t,s,i,o){switch(s.t){case"split":if(!_e(this,Gn,Ua).call(this,t,s))return;for(let u of s.out)this.add(t,u,i,o);return;case"neg":if(!_e(this,Gn,Ua).call(this,t,s))return;let r=this.state();return this.add(r,s.sub,i,!1),this.done(r),this.addRun(t,{t:"run",neg:s,state:r},i,o);case"star":if(this.restricted(i,o))return;_e(this,Gn,Ba).call(this,t,s)&&this.add(t,s.next,i,o);return;case"match":t.match=!0;return;default:_e(this,Gn,Ba).call(this,t,s)}}addRun(t,s,i,o){for(let r of t.runs)if(r.neg===s.neg&&bc(r.state,s.state))return;t.runs.push(s),s.state.match||this.add(t,s.neg.next,i,o)}step(t,s,i,o){let r=this.state();for(let u of t.threads)switch(u.t){case"lit":ja(u,s)&&this.add(r,u.next,i+1,o);break;case"any":this.restricted(i,o)||this.add(r,u.next,i+1,o);break;case"class":!this.restricted(i,o)&&u.re.test(s)&&this.add(r,u.next,i+1,o);break;case"star":this.restricted(i,o)||this.add(r,u,i+1,o)}if(!this.restricted(i,o))for(let u of t.runs){if(u.state.dead){this.addRun(r,u,i+1,o);continue}let p=this.step(u.state,s,i,!1);this.addRun(r,{t:"run",neg:u.neg,state:p},i+1,o)}return this.done(r)}};ho=new WeakMap,Gn=new WeakSet,Ua=function(t,s){let{seen:i}=ae(this,ho);return i[s.id]===t.gen?!1:(i[s.id]=t.gen,!0)},Ba=function(t,s){let{has:i}=ae(this,ho);return i[s.id]===t.gen?!1:(i[s.id]=t.gen,t.threads.push(s),!0)};var wc=e=>{let t=e.ids.join();if(!e.runs.length)return t;let s=e.runs.map(i=>`${i.neg.id}(${wc(i.state)})`);return`${t}|${s.sort().join("|")}`},pv=1<<18,Go,Wo,Un,go,Bn,zn,Hn,an,Ha,dr,kc,za=class{constructor(t,s){Le(this,an);Le(this,Go);Le(this,Wo,new Map);Le(this,Un,0);Le(this,go);Le(this,Bn);Le(this,zn);Le(this,Hn);Be(this,Go,t),Be(this,zn,new js(!1,!1,s)),Be(this,Hn,new js(!1,!0,s))}start(t){if(t){if(ae(this,Bn))return ae(this,Bn);let i=ae(this,Hn).state();return ae(this,Hn).add(i,ae(this,Go),0,!0),Be(this,Bn,_e(this,an,Ha).call(this,ae(this,Hn).done(i)))}if(ae(this,go))return ae(this,go);let s=ae(this,zn).state();return ae(this,zn).add(s,ae(this,Go),0,!0),Be(this,go,_e(this,an,dr).call(this,ae(this,zn).done(s)))}next(t,s){let i=s.charCodeAt(0),o=i<128?void 0:t.next.get(s);if(o)return o;let r=t===ae(this,Bn)?_e(this,an,dr).call(this,ae(this,Hn).step(t.state,s,0,!0)):_e(this,an,dr).call(this,ae(this,zn).step(t.state,s,1,!0));return i<128?(t.ascii||(t.ascii=new Array(128),Be(this,Un,ae(this,Un)+128)),t.ascii[i]=r):t.next.set(s,r),ml(this,Un)._++,r}};Go=new WeakMap,Wo=new WeakMap,Un=new WeakMap,go=new WeakMap,Bn=new WeakMap,zn=new WeakMap,Hn=new WeakMap,an=new WeakSet,Ha=function(t){return{state:t,match:t.match,dead:t.dead,next:new Map}},dr=function(t){let s=wc(t),i=ae(this,Wo).get(s);if(i)return i;ae(this,Un)>pv&&_e(this,an,kc).call(this);let o=_e(this,an,Ha).call(this,t);return ae(this,Wo).set(s,o),Be(this,Un,ae(this,Un)+(s.length+1)),o},kc=function(){ae(this,Wo).clear(),Be(this,Un,0),Be(this,go,void 0),Be(this,Bn,void 0)};var fv=e=>{let t=[];for(let s=e;s.t!=="match";s=s.next){if(s.t==="split"||s.t==="neg")return;t.push(s)}return t},mv=(e,t,s,i)=>{let o=0,r=s,u=-1,p=0;for(;r{let t=0,s=0;for(let i of e){let[o,r]=hv(i);t+=o,s+=r}return[t,s]},hv=e=>{if(e.t==="star")return[0,1/0];if(e.t!=="ext")return[1,1];if(e.type==="!")return[0,1/0];let t=e.alts.map(Cc),s=Math.min(...t.map(r=>r[0])),i=Math.max(...t.map(r=>r[1])),o=i===0?0:1/0;return e.type==="@"?[s,i]:e.type==="?"?[0,i]:e.type==="*"?[0,o]:[s,o]},fc=(e,t,s)=>{for(let i=0;ivv.test(e)?[...e]:e,mc=e=>{if(e.includes("/"))throw new Error("can only match a single path portion, got: "+e)},jn,Ko,vo,ur,yo,Ws,cr,bo,Ks,Ys,Js,Mn,kn,Yo,Jo,Xs,pr,rn,wo,Hs,Gs=class{constructor(t,s={}){Le(this,wo);tt(this,"pattern");tt(this,"options");Le(this,jn);Le(this,Ko);Le(this,vo);Le(this,ur);Le(this,yo);Le(this,Ws,!1);Le(this,cr);Le(this,bo);Le(this,Ks,!1);Le(this,Ys,0);Le(this,Js,1/0);Le(this,Mn,[]);Le(this,kn,[]);Le(this,Yo);Le(this,Jo);Le(this,Xs,!1);Le(this,pr);Le(this,rn);if(t.includes("/"))throw new Error("can only match a single path portion, got pattern: "+t);this.pattern=t,this.options=s;let{nocase:i=!1,noext:o=!1,normalize:r}=s;Be(this,rn,r===!0?"NFC":r||void 0);let u=/^[?*+@]\(\)$/.test(t),p=lv(t,i,o||u,ae(this,rn)),[c]=vc(p,dv(p),0,p.length,!0);ae(this,rn)&&(c=yc(c,ae(this,rn)));let[v,h]=uv(c,i);if(Be(this,jn,v),Be(this,Ko,h),c.every(y=>y.t==="lit"))Be(this,yo,c.map(y=>y.ch).join("")),Be(this,Ws,i);else{let y=w=>w.t!=="lit"?void 0:i?{ch:w.ch,re:gc(w.ch)}:{ch:w.ch};for(let w of c){let S=y(w);if(!S)break;ae(this,Mn).push(S)}for(let w=c.length-1;w>=0;w--){let S=y(c[w]);if(!S)break;ae(this,kn).unshift(S)}Be(this,Xs,!!(ae(this,Mn).length||ae(this,kn).length)),i||(Be(this,Yo,ae(this,Mn).map(w=>w.ch).join("")),Be(this,Jo,ae(this,kn).map(w=>w.ch).join(""))),Be(this,bo,fv(ae(this,jn))?.slice(ae(this,Mn).length,-ae(this,kn).length||void 0)),Be(this,Ks,!!ae(this,bo)?.every(w=>w.t==="star"||w.t==="any"));let[g,k]=Cc(c);Be(this,Ys,g),Be(this,Js,k)}}test(t){return ae(this,rn)?(mc(t),_e(this,wo,Hs).call(this,t.normalize(ae(this,rn)))):gv.test(t)?(mc(t),_e(this,wo,Hs).call(this,t,[...t])):_e(this,wo,Hs).call(this,t,t)}testUnchecked(t){return _e(this,wo,Hs).call(this,ae(this,rn)?t.normalize(ae(this,rn)):t)}toString(){return cv(ae(this,jn))}};jn=new WeakMap,Ko=new WeakMap,vo=new WeakMap,ur=new WeakMap,yo=new WeakMap,Ws=new WeakMap,cr=new WeakMap,bo=new WeakMap,Ks=new WeakMap,Ys=new WeakMap,Js=new WeakMap,Mn=new WeakMap,kn=new WeakMap,Yo=new WeakMap,Jo=new WeakMap,Xs=new WeakMap,pr=new WeakMap,rn=new WeakMap,wo=new WeakSet,Hs=function(t,s){if(ae(this,yo)!==void 0)return ae(this,Ws)?(ae(this,cr)??Be(this,cr,hc(ae(this,yo)))).test(t):t===ae(this,yo);let i=ae(this,Ys),o=ae(this,Js);if(s===void 0){let h=t.length,y=h+1>>1;if(ho)return!1;(yo)&&(s=lr(t))}if(s!==void 0&&(s.lengtho))return!1;let r=ae(this,Mn).length;if(ae(this,Xs))if(ae(this,Yo)!==void 0&&ae(this,Jo)!==void 0){if(!t.startsWith(ae(this,Yo))||!t.endsWith(ae(this,Jo)))return!1}else{s??(s=lr(t));let h=s.length-ae(this,kn).length;if(!fc(ae(this,Mn),s,0)||!fc(ae(this,kn),s,h))return!1}let u=!this.options.dot&&t.startsWith(".");if(ae(this,bo)){if(t==="."||t===".."||u&&!r)return!1;if(ae(this,Ks))return!0;s??(s=lr(t));let h=s.length-ae(this,kn).length;return mv(ae(this,bo),s,r,h)}if(s??(s=lr(t)),t==="."||t===".."){ae(this,vo)??Be(this,vo,pc(ae(this,Ko)));let h=ae(this,ur)??Be(this,ur,new js(!0,!1,ae(this,vo))),y=h.state();h.add(y,ae(this,jn),0,!0);let g=h.done(y);for(let k=0;k{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")};var Wn=(e,{windowsPathsNoEscape:t=!1,magicalBraces:s=!1}={})=>s?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");var ko=(e,{windowsPathsNoEscape:t=!1,magicalBraces:s=!0}={})=>s?t?e.replace(/\[([^/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):t?e.replace(/\[([^/\\{}])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1");var jt=(e,t,s={})=>(Qs(t),!s.nocomment&&t.charAt(0)==="#"?!1:bv(t,s).match(e)),Xo=new Map,yv=256,bv=(e,t)=>{let s=e+"\0"+JSON.stringify(t),i=Xo.get(s);return i?Xo.delete(s):(i=new Co(e,{...t}),Xo.size>=yv&&Xo.delete(Xo.keys().next().value)),Xo.set(s,i),i},Pc=typeof process=="object"&&process?process.env?.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Sc={win32:{sep:"\\"},posix:{sep:"/"}},wv=Pc==="win32"?Sc.win32.sep:Sc.posix.sep;jt.sep=wv;var bt=Symbol("globstar **");jt.GLOBSTAR=bt;var kv=(e,t={})=>s=>jt(s,e,t);jt.filter=kv;var Vn=(e,t={})=>Object.assign({},e,t),Cv=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return jt;let t=jt;return Object.assign((i,o,r={})=>t(i,o,Vn(e,r)),{Minimatch:class extends t.Minimatch{constructor(o,r={}){super(o,Vn(e,r))}static defaults(o){return t.defaults(Vn(e,o)).Minimatch}},unescape:(i,o={})=>t.unescape(i,Vn(e,o)),escape:(i,o={})=>t.escape(i,Vn(e,o)),filter:(i,o={})=>t.filter(i,Vn(e,o)),defaults:i=>t.defaults(Vn(e,i)),braceExpand:(i,o={})=>t.braceExpand(i,Vn(e,o)),match:(i,o,r={})=>t.match(i,o,Vn(e,r)),sep:t.sep,GLOBSTAR:bt})};jt.defaults=Cv;var Dc=(e,t={})=>(Qs(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:uc(e,{max:t.braceExpandMax}));jt.braceExpand=Dc;var Sv=(e,t,s={})=>{let i=new Co(t,s);return e=e.filter(o=>i.match(o)),i.options.nonull&&!e.length&&e.push(t),e};jt.match=Sv;var Ec=/[?*]|[+@!]\(.*?\)|\[|\]/,Ac=(e,t)=>{let s=t+1;(e.charAt(s)==="!"||e.charAt(s)==="^")&&s++;let i=!1;for(;s{if(!t&&(e==="+()"||e==="@()"))return e;let s="";for(let i=0;i{if(/^[?*+@]\(\)$/.test(e)||e.includes("[:"))return!1;let t=0;for(let s=0;stypeof e=="string"?t===e:t!==""&&e.testUnchecked(t),Rc=(e,t,s,i,o)=>Kn(e,t)?s:i!==void 0&&Kn(e,i)?o:-1,Ja=e=>e==="."||e==="..",Wa=e=>typeof e=="string"&&/^[a-z]:$/i.test(e),mr=e=>typeof e=="string"&&/^unc$/i.test(e),Ka=e=>{if(e[0]!==""||e[1]!=="")return-1;let t=e[2]!=="?"?2:mr(e[3])?4:-1,s=e[t],i=e[t+1];return t!==-1&&s!==void 0&&s!==""&&s!==bt&&i!==void 0&&i!==""&&i!==bt?t:-1},fr=(e,t)=>!Ja(e)&&(t||!e.startsWith(".")),Zs=(e,t,s,i,o)=>{for(let r=t;r=s||gr(e.charCodeAt(p),o))return!0}let u=Xa(e,r,o);if(u===-1)return!1;for(r=u+1;rt==="/"?e===47:t==="\\"?e===92:e===47||e===92,Xa=(e,t,s)=>{if(s!=="both")return e.indexOf(s,t);let i=e.indexOf("/",t),o=e.indexOf("\\",t);return i===-1?o:o===-1?i:Math.min(i,o)},Tc=(e,t,s)=>s!=="both"?e.lastIndexOf(s,t):Math.max(e.lastIndexOf("/",t),e.lastIndexOf("\\",t)),Ya={},Yn,Zo,Jn,qn,xo,es,Xn,ei,ts,ti,$e,hr,xs,Ic,Oc,Mc,Vc,qc,Lc,Qa,_c,$c,Za,Qo,xa,Co=class{constructor(t,s={}){Le(this,$e);tt(this,"options");tt(this,"set");tt(this,"pattern");tt(this,"windowsPathsNoEscape");tt(this,"nonegate");tt(this,"negate");tt(this,"comment");tt(this,"empty");tt(this,"preserveMultipleSlashes");tt(this,"partial");tt(this,"globSet");tt(this,"globParts");tt(this,"nocase");tt(this,"isWindows");tt(this,"platform");tt(this,"windowsNoMagicRoot");tt(this,"maxGlobstarRecursion");Le(this,Yn);Le(this,Zo);Le(this,Jn);Le(this,qn);Le(this,xo,[]);Le(this,es,[]);Le(this,Xn,[]);Le(this,ei,new Map);Le(this,ts,!1);Le(this,ti,new WeakMap);Qs(t),s=s||{},this.options=s,this.maxGlobstarRecursion=s.maxGlobstarRecursion??200,this.pattern=t,this.platform=s.platform||Pc,this.isWindows=this.platform==="win32";let i="allowWindowsEscape";this.windowsPathsNoEscape=!!s.windowsPathsNoEscape||s[i]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!s.preserveMultipleSlashes,this.negate=!1,this.nonegate=!!s.nonegate,this.comment=!1,this.empty=!1,this.partial=!!s.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=s.windowsNoMagicRoot!==void 0?s.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],Be(this,Yn,!this.preserveMultipleSlashes),Be(this,Jn,(s.optimizationLevel??1)>=2);let o=s.normalize;Be(this,qn,o===!0?"NFC":o||void 0),this.make();let r=this.set.map(u=>_e(this,$e,xs).call(this,u));Be(this,Xn,this.set.map((u,p)=>ae(this,Yn)&&u.length-1>r[p])),Be(this,xo,this.set.map((u,p)=>{let c=ae(this,Xn)[p]?u.length-1:u.length,v=u.slice(r[p]+1,c).filter(h=>typeof h=="string"&&!!h);return[...new Set(v)]})),Be(this,Zo,ae(this,xo).some(u=>u.length)),Be(this,es,this.set.map((u,p)=>{let[c,v,h]=u;if(ae(this,Xn)[p]&&u.length===2&&c===bt&&v!==bt)return"tail";if(ae(this,Xn)[p]&&s.matchBase&&u.length===1&&c!==bt&&c!=="")return"base";if(!(!ae(this,Yn)||r[p]!==-1)){if(u.length===3&&c===bt&&h===bt&&v!==bt&&v!==""&&this.maxGlobstarRecursion>0)return"mid";if(u.length===2&&v===bt&&c!==bt&&c!=="")return"head"}}))}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let s of t)if(typeof s!="string")return!0;return!1}make(){let t=this.pattern,s=this.options;if(!s.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())];let i=this.globSet.map(r=>_e(this,$e,xa).call(this,r));this.globParts=this.preprocess(i),Be(this,ts,!0);let o=this.globParts.map((r,u,p)=>{if(this.isWindows&&this.windowsNoMagicRoot){let c=r[2]==="?"&&mr(r[3])?6:4,v=r[0]===""&&r[1]===""&&(r[2]==="?"||!Ec.test(r[2]))&&r.slice(3,c).every(y=>!Ec.test(y)),h=/^[a-z]:/i.test(r[0]);if(v)return[...r.slice(0,c).map(y=>_e(this,$e,hr).call(this,y)),...r.slice(c).map(y=>this.parse(y))];if(h)return[_e(this,$e,hr).call(this,r[0]),...r.slice(1).map(y=>this.parse(y))]}return r.map(c=>this.parse(c))});if(this.set=o.filter(r=>r.indexOf(!1)===-1),this.isWindows)for(let r=0;r{for(let p=0;pi.length));for(let i=0;i{if(!(u[i]instanceof Gs||u[i]===Ya)||!Nv(this.globParts[p][i]))return;let c=[...this.globParts[p]];c[i]="";let v=`${u.length}/${c.join("/")}`,h=o.get(v);h?h.push(p):o.set(v,[p])});let r=new Set;for(let u of o.values()){if(u.length<2)continue;let[p,...c]=u,h=`@(${u.map(y=>this.globParts[y][i]).join("|")})`;this.globParts[p][i]=h,this.set[p][i]=this.parse(h);for(let y of c)r.add(y)}r.size&&(t=!0,this.set=this.set.filter((u,p)=>!r.has(p)),this.globParts=this.globParts.filter((u,p)=>!r.has(p)))}}}preprocess(t){if(this.options.noglobstar)for(let i of t)for(let o=0;o=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):s>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(s=>{let i=-1;for(;(i=s.indexOf("**",i+1))!==-1;){let o=i;for(;s[o+1]==="**";)o++;o!==i&&s.splice(i,o-i)}return s})}levelOneOptimize(t){return t.map(s=>{let i=_e(this,$e,xs).call(this,s)+1;return s=s.reduce((o,r)=>{let u=o[o.length-1];return r==="**"&&u==="**"?o:r===".."&&o.length>i&&u&&u!==".."&&u!=="."&&u!=="**"?(o.pop(),o):(o.push(r),o)},[]),s.length===0?[""]:s})}firstPhasePreProcess(t){let{braceExpandMax:s=1e5}=this.options,i=!1;do{i=!1;for(let o of t){let r=-1;for(;(r=o.indexOf("**",r+1))!==-1;){let c=r;for(;o[c+1]==="**";)c++;c>r&&o.splice(r+1,c-r);let v=o[r+1],h=o[r+2],y=o[r+3];if(v!==".."||!h||h==="."||h===".."||!y||y==="."||y===".."||t.length>=s)continue;i=!0,o.splice(r,1);let g=o.slice(0);g[r]="**",t.push(g),r--}if(!this.preserveMultipleSlashes){for(let c=1;c1e3)return t;for(let s=0;ss.length)}partsMatch(t,s,i=!1){let o=0,r=0,u=[],p="";for(;o=0;v--)c=r[v];for(let v=0;v=0){let b=S;for(;b>0&&gr(t.charCodeAt(b-1),s);)b--;p=b===0?0:Tc(t,b-1,s)+1,u=t.slice(p,b)}let N=ae(this,Jn)&&(Ja(o)||o===""&&u!==void 0&&Ja(u));i=N?-1:1,g=!N}let k=-1;if(g&&typeof y=="string"&&(k=Rc(y,o,r,u,p),k===-1))continue;if(ae(this,Zo)){for(let S of ae(this,xo)[v])if(!t.includes(S))continue e}if(g&&typeof y=="object"&&(k=Rc(y,o,r,u,p),k===-1))continue;let w=ae(this,es)[v];if(w==="base"&&g)return"yes";if(w==="tail"&&g){if(ae(this,Jn)&&Zs(t,0,k,!0,s))return"maybe";if(!Zs(t,0,k,c,s))return"yes";continue}if(w==="mid"||w==="head"){let S=_e(this,$e,Mc).call(this,t,h,w==="head",c,s);if(S!=="no")return S;continue}return"maybe"}return"no"},Oc=function(t,s,i){let o=!!this.options.dot,r=t.length;if(i==="head"){if(r<2||!Kn(s[0],t[0]))return!1;for(let p=1;pp&&u.testUnchecked(t.slice(p,c)))&&!Zs(t,v,t.length,o,r))return"yes";if(i||Zs(t,p,v,o,r))return"no";p=v}return"no"},Vc=function(t){let s=Ga;return s?.f===t&&s.isWindows===this.isWindows&&s.preserveMultipleSlashes===this.preserveMultipleSlashes&&s.normalize===ae(this,qn)?s:void 0},qc=function(t){let{isWindows:s,preserveMultipleSlashes:i}=this,o=_e(this,$e,xa).call(this,s?t.split("\\").join("/"):t),r=ae(this,qn);return r&&(o=o.map(u=>u.normalize(r))),Ga={f:t,isWindows:s,preserveMultipleSlashes:i,normalize:r,parts:o},Ga},Lc=function(t){let s=[...t],i=!1;do{if(i=!1,!this.preserveMultipleSlashes){for(let u=1;ut.length)return!1;let y=t.length-c.length;if(_e(this,$e,Qo).call(this,t,c,i,y,0))h=c.length;else{if(t[t.length-1]!==""||o+c.length===t.length||(y--,!_e(this,$e,Qo).call(this,t,c,i,y,0)))return!1;h=c.length+1}}if(!p.length){let y=!!h;for(let g=o;g{b[1]=w-S[T]});let N={head:v,body:h,tail:y,segments:g};return o[r]=N,N},Za=function(t,s,i,o,r,u,p,c,v){let h=s[r];if(!h){if(u)return o>=i||o===i-1&&t[o]==="";for(let w=o;we.lastIndexOf(t)===s)}function tl(e){let t=(e||[]).filter(s=>typeof s=="string"&&s.length>0).map(s=>{let{negated:i,anchored:o,directoryOnly:r,body:u}=Rv(s);return{negated:i,directoryOnly:r,matcher:new Co(u,{dot:!0,nonegate:!0,nocomment:!0,matchBase:!o&&!u.includes("/")})}});return(s,i=!1)=>{let o=(s||"").replace(/^\/+/,"");if(!o)return!1;let r=o.split("/"),u=r.slice(0,-1).map((c,v)=>r.slice(0,v+1).join("/")),p=i;for(let c of t){if(c.negated?!p:p)continue;(c.directoryOnly?u:[...u,o]).some(h=>c.matcher.match(h))&&(p=!c.negated)}return p}}var vse=new Set("^$\\.*+?()[]{}|/dDsSwWbBnrtvf0cxupP".split(""));function nl(e){let t=e.indexOf("=>");if(t<0)return{term:e,replacement:null};let s=e.slice(0,t).replace(/\s+$/,""),i=e.slice(t+2).replace(/^\s+/,"");return s?{term:s,replacement:i}:{term:e,replacement:null}}var Fc=new Set(["*","+","?","(",")","[","]","{","}","|","^","$"]);function Uc(e){let t=[];return String(e||"").split(` +`).forEach((s,i)=>{let{term:o}=nl(s.trim());if(!o)return;let r=[];for(let u=0;u{let t=e.target;if(!t||t.tagName!=="IMG"||t.dataset.failed||!t.closest?.(".markdown-body, .anonymize-preview-body"))return;t.dataset.failed="1";let s=window.document.createElement("span"),i=parseInt(t.getAttribute("width"),10)||0,o=parseInt(t.getAttribute("height"),10)||0;s.className=i>=200||o>=120?"img-unavailable is-large":"img-unavailable",s.textContent="Image unavailable",s.title=t.alt?"Image unavailable: "+t.alt.replace(/\bXXXX-(\d+)\b/g,"[redacted term $1]"):"Image unavailable",s.setAttribute("role","img"),s.setAttribute("aria-label",s.title),t.replaceWith(s)},!0);function vr(e){let t=e?.data;if(typeof t=="string")try{t=JSON.parse(t)}catch{t=null}return typeof t?.error=="string"&&Object.prototype.hasOwnProperty.call(Qn.ERRORS,t.error)?t.error:e?.status===-1||e?.status===0?"request_error":[502,503,504].includes(e?.status)?"unreachable":"unknown_error"}var yr="XXXX",Pv=e=>{yr=e||"XXXX"},Dv=(e=yr)=>{if(!e)return null;let t=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(t+"(?:-\\d+)?","g")},zc=(e,t=yr)=>{let s=Dv(t);if(!s||!e||!e.textContent.includes(t))return;let i=e.ownerDocument,o=i.createTreeWalker(e,NodeFilter.SHOW_TEXT),r=[];for(;o.nextNode();)r.push(o.currentNode);for(let u of r){let p=u.nodeValue,c=u.parentElement;if(!p.includes(t)||!c||c.closest("script, style, mark.redaction, .mermaid"))continue;let v=c.closest('code[class*="language-"]');if(v&&!v.contains(e))continue;let h=i.createDocumentFragment(),y=0;for(let g of p.matchAll(s)){h.append(p.slice(y,g.index));let k=i.createElement("mark");k.className="redaction",k.title="Redacted by Anonymous GitHub",k.textContent=g[0],h.append(k),y=g.index+g[0].length}h.append(p.slice(y)),u.replaceWith(h)}},ni=/\bXXXX-\d+\b/g,Us=function(e){if(!e||e.indexOf("XXXX-")===-1||typeof window.DOMParser!="function")return e;let t=new window.DOMParser().parseFromString("
"+e+"
","text/html"),s=t.createTreeWalker(t.body,4),i=[];for(;s.nextNode();)ni.lastIndex=0,!s.currentNode.parentElement?.closest("pre code")&&ni.test(s.currentNode.nodeValue)&&i.push(s.currentNode);for(let o of i){ni.lastIndex=0;let r=t.createDocumentFragment(),u=0,p,c=o.nodeValue;for(;p=ni.exec(c);){r.appendChild(t.createTextNode(c.slice(u,p.index)));let v=t.createElement("mark");v.className="redact-chip",v.setAttribute("title","Redacted term "+p[0].slice(5)+" \u2014 the same term everywhere in this snapshot");let h=p[0].slice(5);v.textContent="";let y=t.createElement("i");y.textContent=h,v.appendChild(y),v.dataset.term=p[0],v.setAttribute("aria-label","Redacted term "+h);let g=/^[.,;:!?)\]]+/.exec(c.slice(p.index+p[0].length));if(g){let k=t.createElement("span");k.className="redact-glue",k.appendChild(v),k.appendChild(t.createTextNode(g[0])),r.appendChild(k),u=p.index+p[0].length+g[0].length}else r.appendChild(v),u=p.index+p[0].length}r.appendChild(t.createTextNode(c.slice(u))),o.parentNode.replaceChild(r,o)}return t.body.firstChild.innerHTML},Hc=()=>{window.Prism?.hooks&&!window.Prism.redactionHook&&(window.Prism.hooks.add("complete",e=>{zc(e.element),e.element.querySelectorAll?.("mark.redaction").forEach(t=>{let s=/^XXXX-(\d+)$/.exec(t.textContent);if(!s)return;t.className="redact-chip",t.setAttribute("title","Redacted term "+s[1]+" \u2014 the same term everywhere in this snapshot"),t.setAttribute("aria-label","Redacted term "+s[1]),t.dataset.term=s[0],t.style.setProperty("--slot-ch",s[0].length+"ch"),t.textContent="";let i=t.ownerDocument.createElement("span");i.className="redact-src",i.textContent=s[0].slice(0,s[0].length-s[1].length),t.appendChild(i);let o=t.ownerDocument.createElement("i");o.textContent=s[1],t.appendChild(o)})}),window.Prism.redactionHook=!0)},jc=(e,t=yr)=>{if(!e||!t||!e.includes(t))return e;let s=new DOMParser().parseFromString(""+e+"","text/html");return zc(s.body,t),s.body.innerHTML};async function ol(e){if(window.navigator.clipboard?.writeText){await window.navigator.clipboard.writeText(e);return}let t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.opacity="0";let s=document.activeElement;document.body.appendChild(t);try{if(t.select(),!document.execCommand?.("copy"))throw Error("Copy unavailable")}finally{t.remove(),s?.focus()}}function Av(e){if(!["ArrowLeft","ArrowRight","Home","End"].includes(e.key))return;let t=[...e.currentTarget.closest('[role="tablist"]').querySelectorAll('[role="tab"]')],s=t.indexOf(e.currentTarget),i=e.key==="Home"?0:e.key==="End"?t.length-1:(s+(e.key==="ArrowRight"?1:-1)+t.length)%t.length;e.preventDefault(),t[i]?.focus(),t[i]?.click()}var Gc=function(e,t,s,i){e.previewTabKeydown=Av,e.headerCanUpgrade=!1,e.headerShowSupport=!1,e.headerBillingPending=new URLSearchParams(window.location.search).get("billing")==="success";let o=N=>{e.headerShowSupport=!(N?.grants||[]).some(T=>["active","paid","past_due"].includes(T.status)&&new Date(T.until).getTime()>Date.now());let b=(N?.grants||[]).some(T=>["author_monthly","author_annual"].includes(T.planId)&&["active","paid","past_due"].includes(T.status)&&new Date(T.until).getTime()>Date.now());e.headerCanUpgrade=!!N?.enabled&&N.checkoutEnabled!==!1&&!b&&(N.plans||[]).some(T=>["author_monthly","author_annual"].includes(T.id))};e.on("billing:updated",(N,b)=>o(b)),e.on("billing:pending",(N,b)=>{e.headerBillingPending=b}),e.openHeaderUpgrade=()=>{s.path()==="/profile"?e.emit("settings:upgrade"):s.url("/profile?upgrade=1")};let r=Ht(),u=yt(),p=!1,c=()=>{p=!1;let N=document.querySelector("nav.navbar.navbar-expand-lg");if(!N||(N.classList.remove("nav-fit-1","nav-fit-2"),window.innerWidth<992))return;let b=N.querySelector(".navbar-collapse"),T=()=>N.scrollWidth>N.clientWidth+1||!!b&&b.scrollWidth>b.clientWidth+1;T()&&N.classList.add("nav-fit-1"),T()&&N.classList.add("nav-fit-2")},v=()=>{p||(p=!0,Ge(()=>u.timeout(c,0)))};r(window,"resize",v),e.on("routeChange",v),e.on("billing:updated",v),document.fonts?.ready&&document.fonts.ready.then(v).catch(()=>{}),e.title="Main",e.user={status:"connection"},e.site_options,e.toasts=[],e.removeToast=function(N){let b=e.toasts.indexOf(N);b!==-1&&e.toasts.splice(b,1)},e.addToast=function(N){return e.toasts.push(N),i(function(){e.removeToast(N)},8e3),N};let h=/^\/(r|repository|pr|gist)\//;e.path=s.url(),e.paths=s.path().substring(1).split("/"),e.isReviewerRoute=h.test(s.path()),e.darkMode=function(N){localStorage.setItem("darkMode",N),e.isDarkMode=N;let b="/css/prism.css";if($("link[href='/css/prism-okaidia.css']").remove(),N)$("body").addClass("dark-mode"),$(`link[href='${b}']`).remove();else if($("body").removeClass("dark-mode"),!document.querySelector(`link[href='${b}']`)){let T=document.createElement("link");T.href=b,T.rel="stylesheet",document.head.append(T)}e.emit("dark-mode",N)},e.darkMode(localStorage.getItem("darkMode")=="true"),e.emailPromptOpen=!1,e.emailPromptAddress="",e.emailPromptBusy=!1,e.emailPromptError="";let y;e.respondToEmailPrompt=async N=>{if(!e.emailPromptBusy){e.emailPromptBusy=!0,e.emailPromptError="";try{let b=await t.post("/github/connections/email",{action:N,email:e.emailPromptAddress},{headers:{"X-CSRF-Token":e.user.emailPromptCSRF}});N==="save"&&(e.user.notificationEmail=b.data.notificationEmail),e.emailPromptOpen=!1,e.user.showEmailPrompt=!1,y?.focus()}catch(b){e.emailPromptError=b.data?.error||"Unable to save your preference. Please try again."}finally{e.emailPromptBusy=!1}}};function g(){t.get("/api/user").then(N=>{N&&(e.user=N.data),v(),e.user?.username?xi(t).then(b=>o(b.data)).catch(()=>{}):e.headerShowSupport=!0,e.user?.emailNotificationsEnabled&&e.user.showEmailPrompt&&!e.user.notificationEmail&&(y=document.activeElement,e.emailPromptOpen=!0,i(()=>{let b=document.getElementById("email-prompt");b?.showModal?b.showModal():b?.setAttribute("open",""),document.getElementById("email-prompt-address")?.focus()},0))},()=>{e.user=null,e.headerShowSupport=!0})}g();function k(){t.get("/api/options").then(N=>{N&&(e.site_options=N.data),Pv(N?.data?.ANONYMIZATION_MASK),e.emit("site-options")},()=>{e.site_options=null})}k();function w(){t.get("/api/message").then(N=>{N&&(e.generalMessage=N.data)},()=>{e.generalMessage=null})}w();function S(N,b){b&&(e.title=b.title),e.path=s.url(),e.paths=s.path().substring(1).split("/"),e.isReviewerRoute=h.test(s.path())}e.on("routeChange",S),e.on("routeUpdate",S)},Wc=function(e,t){let s=Ht(),i=yt();e.faqQuery="",e.faqResults=0;let o=u=>(u||"").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g," ");e.filterFaq=()=>{let u=o(e.faqQuery).trim().split(" ").filter(Boolean),p=0;document.querySelectorAll(".faq-section .panel-group").forEach(c=>{let v=0;c.querySelectorAll(":scope > .panel").forEach(g=>{let k=g.dataset.faqText||(g.dataset.faqText=o(g.textContent)),w=u.every(S=>k.includes(S));g.classList.toggle("faq-hit",u.length>0&&w),g.hidden=u.length>0&&!w,w&&v++});let h=u.length>0&&v===0;c.hidden=h;let y=c.previousElementSibling;y?.classList.contains("faq-cat")&&(y.hidden=h),p+=v}),e.faqResults=u.length?p:0},e.clearFaqSearch=()=>{e.faqQuery="",e.filterFaq(),document.getElementById("faq-search-input")?.focus()};let r=()=>{let u=window.location.hash.slice(1),p=document.getElementById(u);if(!p?.classList.contains("panel-collapse"))return;$(p).collapse("show");let c=document.getElementById(p.getAttribute("aria-labelledby"));c?.setAttribute("tabindex","-1"),c?.focus({preventScroll:!0}),c?.scrollIntoView?.({block:"start"})};e.on("routeUpdate",()=>i.timeout(r,0)),s(window,"hashchange",r),i.timeout(r,0)},Kc=function(e,t,s,i,o){e.settingsTab=/(?:billing|upgrade)=/.test(window.location.search)?"billing":"defaults",e.confirmDeleteAccount=!1,e.deleteUsername="",e.profilePastSubscription=()=>!e.profileAuthorGrant()&&(e.billing?.grants||[]).some(h=>["author_monthly","author_annual"].includes(h.planId)),e.showAuthorPlans=new URLSearchParams(window.location.search).get("upgrade")==="1",e.showRepositoryPass=!1,e.profilePlan="author_annual",e.openProfileUpgrade=()=>{e.settingsTab="billing",e.showAuthorPlans=!0,Ge(()=>document.getElementById("settings-plan-comparison")?.focus())},e.on("settings:upgrade",()=>e.openProfileUpgrade()),e.profileAuthorPlans=()=>(e.billing?.plans||[]).filter(h=>["author_monthly","author_annual"].includes(h.id)),e.profileSelectedPlan=()=>e.profileAuthorPlans().find(h=>h.id===e.profilePlan)||e.profileAuthorPlans()[0],e.profilePassPlan=()=>(e.billing?.plans||[]).find(h=>h.id==="author_pass"),e.profileAddonPlans=()=>(e.billing?.plans||[]).filter(h=>Zi(h.id)).sort((h,y)=>+(y.id==="repo_pack")-+(h.id==="repo_pack")),e.profileAddonId="repo_pack",e.profilePackPlan=()=>(e.billing?.plans||[]).find(h=>h.id==="repo_pack"),e.profileSlotPlan=()=>(e.billing?.plans||[]).find(h=>h.id==="repo_slot"),e.profileRepositories=()=>(e.billing?.repositories||[]).filter(h=>h.status!=="removed"),e.openProfileAddon=h=>{h&&(e.profileAddonId=h),e.showRepositoryPass=!0,e.billingRepository="",Ge(()=>{let y=document.getElementById("settings-addons-title");y?.scrollIntoView?.({block:"nearest",behavior:"smooth"}),y?.focus?.({preventScroll:!0})})};let r=["repo_slot","author_pass","repo_extend","repo_never"];e.profileSingleAddons=()=>e.profileAddonPlans().filter(h=>h.id!=="repo_pack").sort((h,y)=>r.indexOf(h.id)-r.indexOf(y.id)),e.profileSingleId="repo_slot",e.profileSingleAddon=()=>e.profileSingleAddons().find(h=>h.id===e.profileSingleId)||e.profileSingleAddons()[0],e.profileCheapestAddon=()=>[...e.profileSingleAddons()].sort((h,y)=>(h.amount??1/0)-(y.amount??1/0))[0],e.profileAuthorPlansByValue=()=>[...e.profileAuthorPlans()].sort((h,y)=>+(h.interval==="year")-+(y.interval==="year")),e.profilePackSummary=h=>h.parts.map(y=>y.planId==="repo_slot"?"Extra repository":`${e.profileGrantName(y)} until ${e.billingDate(y.until)}`).join(" \xB7 "),e.profileAddonFeatures=h=>({repo_pack:["One more repository, outside your free ones",`Its own ${e.billingBytes(e.profileSlotPlan()?.storage||e.profilePassPlan()?.storage)} of storage`,"Automatic updates for 180 days","Online for up to a year","No subscription"],repo_slot:["One more repository, outside your free ones",`Its own ${e.billingBytes(e.profileSlotPlan()?.storage)} of storage`,"Valid while the repository exists","Refresh it by hand"],author_pass:["Automatic updates for 180 days",`Its own ${e.billingBytes(e.profilePassPlan()?.storage)} of storage`,"No subscription"],repo_extend:["Online for up to one more year","Buy again to add another year","No subscription"],repo_never:["The link never expires","No subscription","Ends only if the payment is refunded"]})[h]||[],e.profileAddonBlurb=h=>({repo_slot:"One more repository",author_pass:"Auto-updates for 180 days",repo_extend:"Online one more year",repo_never:"The link never expires"})[h]||"",e.profileAuthorPurchase=()=>(e.billing?.purchases||[]).find(h=>h.recurring&&["active","overdue"].includes(h.status)),e.profileRepositoryExpiry=h=>h.status==="expired"?"expired":h.expirationMode==="never"?"never expires":h.expirationDate?"expires "+e.billingDate(h.expirationDate):"no date",e.profileAnnualSavings=()=>{let h=e.profileAuthorPlans().find(g=>g.interval==="month")?.amount,y=e.profileAuthorPlans().find(g=>g.interval==="year")?.amount;return h&&y&&y(e.billing?.purchases||[]).filter(y=>["active","overdue"].includes(y.status)===h),e.profilePurchaseStatus=h=>({active:"Active",overdue:"Payment overdue",ended:"Ended",refunded:"Refunded",disputed:"Disputed"})[h.status]||h.status,e.profilePurchaseTerm=h=>{let y=h.status&&!["active","overdue"].includes(h.status);if(h.recurring)return y?h.until?"Ended "+e.billingDate(h.until):"":(h.cancelAtPeriodEnd?"Ends ":"Renews ")+e.billingDate(h.until);if(h.planId==="repo_pack"){let g=h.parts.map(k=>k.until).filter(Boolean).map(k=>new Date(k).getTime());return y||!g.length?"":"Until "+e.billingDate(new Date(Math.max(...g)))}return h.until?(y||new Date(h.until).getTime()e.profileAddonPlans().find(h=>h.id===e.profileAddonId)||e.profileAddonPlans()[0],e.profileAuthorGrant=()=>(e.billing?.grants||[]).find(h=>["author_monthly","author_annual"].includes(h.planId)&&["active","paid","past_due"].includes(h.status)&&new Date(h.until).getTime()>Date.now()),e.profileConferencePlan=()=>(e.billing?.plans||[]).filter(h=>["conference_workshop","conference","conference_large"].includes(h.id)&&h.amount!=null).sort((h,y)=>h.amount-y.amount)[0],e.profileGrantName=h=>({author_monthly:"Author monthly",author_annual:"Author annual",author_pass:"Live updates",repo_extend:"Extended expiration",repo_never:"Never expire",repo_slot:"Extra repository",repo_pack:"Paper pack",conference:"Conference package",conference_workshop:"Workshop package",conference_large:"Large conference package"})[h.planId]||h.planId,er(e,t,()=>o.load().then(h=>{e.quota=h},console.error),{portalMessage:()=>{let h=e.profileAuthorGrant();return h?h.cancelAtPeriodEnd?`Renewal cancelled. Your access continues until ${e.billingDate(h.until)}.`:`Your subscription renews on ${e.billingDate(h.until)}.`:"Your billing details are up to date."}}),e.terms="",e.options={expirationMode:"remove",update:!1,image:!0,pdf:!0,notebook:!0,loc:!0,link:!0},e.saving=!1,e.message=null,e.error=null,e.accountEmail="",e.emailLoading=!0,e.emailCSRFReady=!1,e.emailSaving=!1,e.emailSaved=!1,e.emailError="";let u="";e.loadAccountEmail=async()=>{e.emailLoading=!0,e.emailError="";try{let h=await t.get("/github/connections/email");e.accountEmail=h.data.notificationEmail||"",u=h.data.csrf,e.emailCSRFReady=!!u}catch{e.emailError="Unable to load your email address. Please try again."}finally{e.emailLoading=!1}},e.saveAccountEmail=async()=>{if(!(e.emailSaving||e.emailLoading||!u)){e.emailSaving=!0,e.emailSaved=!1,e.emailError="";try{let h=await t.post("/github/connections/email",{email:e.accountEmail},{headers:{"X-CSRF-Token":u}});e.accountEmail=h.data.notificationEmail,e.user&&(e.user.notificationEmail=h.data.notificationEmail),e.emailSaved=!0}catch{e.emailError="Unable to save your email address. Check the address and try again."}finally{e.emailSaving=!1}}},e.loadAccountEmail(),o.load().then(h=>{e.quota=h},console.error);let p=Ta(e,["terms","options"],"profile");e.discardDraft=()=>p.discard();function c(){t.get("/api/user/default").then(h=>{let y=h.data||{};y.terms&&(e.terms=y.terms.join(` `)),e.options=Object.assign({},e.options,y.options),p.restore()})}c();let v=null;e.saveDefault=h=>{if(h&&h.preventDefault&&h.preventDefault(),e.saving)return;let y=p.checkpoint(),g={terms:e.terms.split(` -`).map(k=>k.trim()).filter(k=>k.length>0),options:e.options};e.saving=!0,e.error=null,t.post("/api/user/default",g).then(()=>{p.accept(y),e.saving=!1,e.message=e.unsavedChanges?null:"Saved",v&&i.cancel(v),v=i(()=>{e.message=null},2500)},k=>{e.saving=!1;let w=k&&k.data&&k.data.error,S="Unable to save your defaults. Please try again.";Promise.all([s("ERRORS."+w),s("ERRORS.unknown_error")]).then(([N,b])=>{e.error=w&&N!==b?N:S},()=>{e.error=S})})},e.deleteAccount=()=>{e.deletingAccount||!e.confirmDeleteAccount||e.deleteUsername!==e.user?.username||(e.deletingAccount=!0,t.delete("/api/user").then(()=>{window.location.href="/"},()=>{e.deletingAccount=!1,e.deleteError="Unable to delete the account. Please try again."}))}},Kc=function(e,t,s){e.repoId=null,e.repoUrl=null,e.claim=()=>{t.post("/api/repo/claim",{repoId:e.repoId,repoUrl:e.repoUrl}).then(i=>{s.url("/dashboard")},i=>{e.error=i.data,e.claimForm.repoUrl.setValidity("not_found",!1),e.claimForm.repoId.setValidity("not_found",!1)})}},Yc=function(e,t,s,i,o){e.user&&!e.user.status&&s.url("/dashboard"),e.watch("user.status",()=>{e.user&&!e.user.status&&s.url("/dashboard")}),e.features=[{key:"anonymize",num:"01",eyebrow:"Anonymize",title:"Double-anonymous,",accent:"your rules.",text:"Choose what reviewers may see: links, images, PDFs, notebooks, GitHub Pages. Add your own terms, with regex if you need it, and pick the expiration date.",cta:"Start an anonymization",href:"/anonymize",url:"anonymous.4open.science/anonymize",img:"/imgs/anonymize.png",alt:"The anonymize form: source repository, terms to redact, options and a live README preview"},{key:"review",num:"02",eyebrow:"Review",title:"Reviewers browse",accent:"the real thing.",text:"Highlighted source code, rendered PDFs, images, and notebooks, in a familiar file explorer. GitHub Pages is also supported.",cta:"Open the example",href:"https://anonymous.4open.science/r/840c8c57-3c32-451e-bf12-0e20be300389/",target:"_self",url:"anonymous.4open.science/r/840c8c57-\u2026",img:"/imgs/explorer.png",alt:"The repository explorer with a file tree and a rendered README"},{key:"manage",num:"03",eyebrow:"Manage",title:"One dashboard,",accent:"until the decision.",text:"Monitor views, edit configuration, remove or update your repository. Program chairs can group submissions under a conference with one shared expiry.",cta:"Open the dashboard",href:"/dashboard",needsUser:!0,url:"anonymous.4open.science/dashboard",img:"/imgs/dashboard.png",alt:"The dashboard listing anonymized repositories with status, views and expiry"}],e.feature=e.features[0].key,e.selectFeature=function(p){e.feature=p},e.featureHref=function(p){return p.needsUser&&!e.user?"/signin":p.href},e.featureTarget=function(p){return p.needsUser&&!e.user?"_self":p.target||void 0},e.featureKeydown=function(p,c){let v={ArrowDown:1,ArrowRight:1,ArrowUp:-1,ArrowLeft:-1,Home:"first",End:"last"}[p.key];if(v===void 0)return;p.preventDefault();let h=e.features.length,y=v==="first"?0:v==="last"?h-1:(c+v+h)%h;e.feature=e.features[y].key,o(()=>{let g=i.document.getElementById("feature-tab-"+e.feature);g&&g.focus()})},e.demoText=`# DeepLearnUtils +`).map(k=>k.trim()).filter(k=>k.length>0),options:e.options};e.saving=!0,e.error=null,t.post("/api/user/default",g).then(()=>{p.accept(y),e.saving=!1,e.message=e.unsavedChanges?null:"Saved",v&&i.cancel(v),v=i(()=>{e.message=null},2500)},k=>{e.saving=!1;let w=k&&k.data&&k.data.error,S="Unable to save your defaults. Please try again.";Promise.all([s("ERRORS."+w),s("ERRORS.unknown_error")]).then(([N,b])=>{e.error=w&&N!==b?N:S},()=>{e.error=S})})},e.deleteAccount=()=>{e.deletingAccount||!e.confirmDeleteAccount||e.deleteUsername!==e.user?.username||(e.deletingAccount=!0,t.delete("/api/user").then(()=>{window.location.href="/"},()=>{e.deletingAccount=!1,e.deleteError="Unable to delete the account. Please try again."}))}},Yc=function(e,t,s){e.repoId=null,e.repoUrl=null,e.claim=()=>{t.post("/api/repo/claim",{repoId:e.repoId,repoUrl:e.repoUrl}).then(i=>{s.url("/dashboard")},i=>{e.error=i.data,e.claimForm.repoUrl.setValidity("not_found",!1),e.claimForm.repoId.setValidity("not_found",!1)})}},Jc=function(e,t,s,i,o){e.user&&!e.user.status&&s.url("/dashboard"),e.watch("user.status",()=>{e.user&&!e.user.status&&s.url("/dashboard")}),e.features=[{key:"anonymize",num:"01",eyebrow:"Anonymize",title:"Double-anonymous,",accent:"your rules.",text:"Choose what reviewers may see: links, images, PDFs, notebooks, GitHub Pages. Add your own terms, with regex if you need it, and pick the expiration date.",cta:"Start an anonymization",href:"/anonymize",url:"anonymous.4open.science/anonymize",img:"/imgs/anonymize.png",alt:"The anonymize form: source repository, terms to redact, options and a live README preview"},{key:"review",num:"02",eyebrow:"Review",title:"Reviewers browse",accent:"the real thing.",text:"Highlighted source code, rendered PDFs, images, and notebooks, in a familiar file explorer. GitHub Pages is also supported.",cta:"Open the example",href:"https://anonymous.4open.science/r/840c8c57-3c32-451e-bf12-0e20be300389/",target:"_self",url:"anonymous.4open.science/r/840c8c57-\u2026",img:"/imgs/explorer.png",alt:"The repository explorer with a file tree and a rendered README"},{key:"manage",num:"03",eyebrow:"Manage",title:"One dashboard,",accent:"until the decision.",text:"Monitor views, edit configuration, remove or update your repository. Program chairs can group submissions under a conference with one shared expiry.",cta:"Open the dashboard",href:"/dashboard",needsUser:!0,url:"anonymous.4open.science/dashboard",img:"/imgs/dashboard.png",alt:"The dashboard listing anonymized repositories with status, views and expiry"}],e.feature=e.features[0].key,e.selectFeature=function(p){e.feature=p},e.featureHref=function(p){return p.needsUser&&!e.user?"/signin":p.href},e.featureTarget=function(p){return p.needsUser&&!e.user?"_self":p.target||void 0},e.featureKeydown=function(p,c){let v={ArrowDown:1,ArrowRight:1,ArrowUp:-1,ArrowLeft:-1,Home:"first",End:"last"}[p.key];if(v===void 0)return;p.preventDefault();let h=e.features.length,y=v==="first"?0:v==="last"?h-1:(c+v+h)%h;e.feature=e.features[y].key,o(()=>{let g=i.document.getElementById("feature-tab-"+e.feature);g&&g.focus()})},e.demoText=`# DeepLearnUtils Developed by Jane Smith at MIT CSAIL. See Smith et al., "Attention That Works," 2026. -Contact: jane.smith@mit.edu`,e.demoTerms="Jane Smith, Smith, MIT CSAIL, jane.smith@mit.edu",e.demoParts=function(){let p=(e.demoTerms||"").split(/[,\n]/).map(g=>g.trim()).filter(Boolean).sort((g,k)=>k.length-g.length),c=g=>g.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(!p.length)return[{text:e.demoText}];let v=new RegExp("("+p.map(c).join("|")+")","gi"),h={},y=0;return(e.demoText||"").split(v).filter(g=>g!=="").map(g=>{let k=p.find(w=>w.toLowerCase()===g.toLowerCase());return k?(h[k.toLowerCase()]||(h[k.toLowerCase()]=++y),{text:String(h[k.toLowerCase()]),redacted:!0,original:g}):{text:g}})},e.demoCount=()=>e.demoParts().filter(p=>p.redacted).length,e.cards=[{key:"repositories",total:0,label:"repositories anonymized"},{key:"users",total:0,label:"researchers"},{key:"pageViews",total:0,label:"page views"},{key:"pullRequests",total:0,label:"pull requests"}],e.statsEmpty=()=>!!e.stat&&e.cards.every(p=>!p.total);function r(){t.get("/api/stat/").then(p=>{e.stat=p.data,e.cards[0].total=p.data.nbRepositories,e.cards[1].total=p.data.nbUsers,e.cards[2].total=p.data.nbPageViews,e.cards[3].total=p.data.nbPullRequests}).catch(()=>{})}r();function u(p){let c={series:p,bars:[],viewW:100,deltaToday:0,pctChange:0,pctAbs:0,isUp:!0};if(!p||p.length<2)return c;let v=new Array(p.length-1);for(let S=1;S=2){let S=v[h-2];S&&(c.pctChange=(c.deltaToday-S)/S*100)}return c.pctAbs=Math.round(Math.abs(c.pctChange)),c.isUp=c.pctChange>=0,c}e.history={repositories:u([]),users:u([]),pageViews:u([]),pullRequests:u([])},t.get("/api/stat/history?days=60").then(p=>{let c=p.data||[];e.history={repositories:u(c.map(v=>v.nbRepositories||0)),users:u(c.map(v=>v.nbUsers||0)),pageViews:u(c.map(v=>v.nbPageViews||0)),pullRequests:u(c.map(v=>v.nbPullRequests||0))}}).catch(()=>{})},Jc=function(e,t,s,i,o,r){let u=yt();e.on("routeLeave",function(){$('[data-toggle="tooltip"]').tooltip("dispose")}),e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),u.timeout(()=>{$('[data-toggle="tooltip"]').tooltip()},250),e.quotaExpanded=!1,e.closeQuota=()=>{e.quotaExpanded=!1,Ge(()=>document.querySelector(".dashboard-quota > summary")?.focus())},Ht()(document,"click",E=>{e.quotaExpanded&&!E.target.closest?.(".dashboard-quota")&&(e.quotaExpanded=!1)}),e.filtersExpanded=!1,e.projectView="all",e.selectedProject=null,e.projectName="",e.nameSaving=!1,e.nameError="",e.nameMessage="",e.needsAttention=E=>E.status==="error"||E._broken||c(E.status)==="progress"&&E._stale,e.attentionCount=()=>e.dashboardTotals?.attention??e.items.filter(e.needsAttention).length,e.hasProjects=()=>(e.dashboardTotals?.total??e.items.length)>0,e.setProjectView=E=>{e.projectView=E,E==="attention"&&(e.filters.status.error=!0,e.filters.status.progress=!0)},e.idleText=E=>{let L=Pa(E?.anonymizeDate||E?.lastView)||"";return/ ago$/.test(L)?"No activity for "+L.replace(/ ago$/,""):"No activity since "+L.replace(", "+new Date().getFullYear(),"")},e.projectDetailsId=E=>"project-details-"+encodeURIComponent(E._type+":"+(E._id||E._source||"unknown")),e.showProjectDetails=async E=>{e.selectedProject=E,e.projectName=E.projectName||"",e.nameError="",e.nameMessage="",await Ge();let L=document.getElementById(e.projectDetailsId(E));L?.focus(),L?.scrollIntoView?.({block:"nearest"})},e.closeProjectDetails=E=>{e.selectedProject=null,Ge(()=>document.querySelector(`[data-project-actions="${encodeURIComponent(E._type+":"+E._id)}"]`)?.focus())},e.saveProjectName=async E=>{if(e.nameSaving||!E._id)return;let L=e.projectName.trim();if(L.length>100){e.nameError="Use 100 characters or fewer.";return}e.nameSaving=!0,e.nameError="",e.nameMessage="";try{let G=await t.post("/api/user/project-name",{type:E._type,id:E._id,name:L});E.projectName=G.data.name,E._label=E.projectName||E._fallbackLabel,e.selectedProject===E&&(e.nameMessage=L?"Project name saved.":"Default project name restored."),T||(e.dashboardCursor=null,await F(),e.selectedProject===E&&(e.selectedProject=e.items.find(j=>j._type===E._type&&j._id===E._id)||null))}catch{e.selectedProject===E&&(e.nameError="The project name could not be saved. Try again.")}finally{e.nameSaving=!1}},e.copyingId=null,e.copyLink=async E=>{if(!E._viewUrl||e.copyingId)return;let L=new URL(E._viewUrl,o.location.origin).href;e.copyingId=E._type+":"+E._id;try{await ol(L),e.addToast({title:"Link copied",body:"The anonymous link is ready to share."})}catch{e.addToast({title:"Copy this anonymous link",body:L})}finally{e.copyingId=null}},e.items=[],e.search="",e.loading=!0,e.statusKeyLabels={ready:"Ready",progress:"Preparing",error:"Error",expired:"Expiring / expired",removed:"Removing / removed"};let p=["queue","download","downloaded","preparing","anonymizing"];function c(E){return E==="ready"||E==="error"?E:E==="expired"||E==="expiring"?"expired":E==="removed"||E==="removing"?"removed":(p.indexOf(E)>-1,"progress")}let v=7200*1e3,h="dashboard.filterPrefs",y={typeFilter:"all",filters:{status:{ready:!0,progress:!0,error:!0,expired:!0,removed:!1}},orderBy:"-anonymizeDate"},g=loadFilterPrefs(h)||{};e.typeFilter=g.typeFilter||y.typeFilter,e.filters={status:Object.assign({},y.filters.status,g.filters&&g.filters.status||{})},e.orderBy=g.orderBy||y.orderBy;let k={_name:{label:"Anonymous ID",defaultDesc:!1},_label:{label:"Project",defaultDesc:!1},anonymizeDate:{label:"Anonymize date",defaultDesc:!0},status:{label:"Status",defaultDesc:!1},lastView:{label:"Last view",defaultDesc:!0},pageView:{label:"Views",defaultDesc:!0},"options.expirationDate":{label:"Expiration",defaultDesc:!1}};e.sortFields=k,e.sortField=()=>e.orderBy.replace(/^-/,""),e.sortDesc=()=>e.orderBy.charAt(0)==="-",e.sortLabel=()=>{let E=k[e.sortField()];return E?E.label:"Custom"},e.isSortedBy=E=>e.sortField()===E,e.setSort=(E,L)=>{typeof L!="boolean"&&(L=e.isSortedBy(E)?!e.sortDesc():!!(k[E]&&k[E].defaultDesc)),e.orderBy=(L?"-":"")+E},e.toggleSortDirection=()=>{e.setSort(e.sortField(),!e.sortDesc())},e.watchGroup(["typeFilter","orderBy"],()=>{saveFilterPrefs(h,{typeFilter:e.typeFilter,filters:e.filters,orderBy:e.orderBy})}),e.watch("filters",()=>{saveFilterPrefs(h,{typeFilter:e.typeFilter,filters:e.filters,orderBy:e.orderBy})},!0),r.load().then(E=>{e.quota=E},console.error);function w(E,L,G,j,Y,ne){E.pageView||(E.pageView=0),E.lastView||(E.lastView=""),E.options=E.options||{},E.options.terms=(E.options.terms||[]).filter(fe=>fe),E._id=L||"",E._source=j,E._broken=!L,E._name=L||j||"(unnamed)",E._fallbackLabel=E._type==="gist"?"Gist "+(L||j||"without an ID"):j||G||E._name,E._label=E.projectName||E._fallbackLabel,E._editUrl=L?Y:null,E._viewUrl=L?ne:null,E._broken&&(E.status="error",E.statusMessage="incomplete_record"),E._statusKey=c(E.status);let x=E.anonymizeDate||E.lastView;if(E._stale=E._statusKey==="progress"&&!!x&&Date.now()-new Date(x).getTime()>v,E.status==="expired"||E.status==="expiring")E._expiry={kind:"expired",date:E.options.expirationDate},E._expiry.label=or(E.options.expirationDate)||void 0;else if(E.status!=="ready")E._expiry={kind:"none"};else if(E.options.expirationMode==="never"||!E.options.expirationDate)E._expiry={kind:"never"};else{E._expiry={kind:"date",date:E.options.expirationDate};let fe=new Date(E.options.expirationDate).getTime()-Date.now();if(fe>0&&fe<=168*3600*1e3){let me=Math.max(1,Math.round(fe/36e5)),qe=Math.round(fe/864e5);E._expiry.soon=me<48?"in "+me+(me===1?" hour":" hours"):"in "+qe+" days"}}return E}function S(E){return t.get(E).then(L=>L.data||[],L=>(console.error(L),[]))}function N(){return e.loading=!0,i.all([S("/api/user/anonymized_repositories"),S("/api/user/anonymized_pull_requests"),S("/api/user/anonymized_gists")]).then(E=>{let L=E[0],G=E[1],j=E[2],Y=[];L.forEach(ne=>{ne._type="repo";let x=ne.source||{};Y.push(w(ne,ne.repoId,ne.repoId,x.fullName,"/anonymize/"+ne.repoId,"/r/"+ne.repoId+"/"))}),G.forEach(ne=>{ne._type="pr";let x=ne.source||{};Y.push(w(ne,ne.pullRequestId,ne.pullRequestId,x.repositoryFullName?x.repositoryFullName+"#"+x.pullRequestId:void 0,"/pull-request-anonymize/"+ne.pullRequestId,"/pr/"+ne.pullRequestId+"/"))}),j.forEach(ne=>{ne._type="gist";let x=ne.source||{};Y.push(w(ne,ne.gistId,ne.gistId,x.gistId,"/gist-anonymize/"+ne.gistId,"/gist/"+ne.gistId+"/"))}),e.items=Y,e.removedCount=Y.filter(ne=>ne._statusKey==="removed").length,e.loading=!1})}let b=0,T=!1;e.dashboardCursor=null,e.dashboardError="";function O(E){let L=E.source||{};return E._type==="repo"?w(E,E.repoId,E.repoId,L.fullName,"/anonymize/"+E.repoId,"/r/"+E.repoId+"/"):E._type==="pr"?w(E,E.pullRequestId,E.pullRequestId,L.repositoryFullName?L.repositoryFullName+"#"+L.pullRequestId:void 0,"/pull-request-anonymize/"+E.pullRequestId,"/pr/"+E.pullRequestId+"/"):w(E,E.gistId,E.gistId,L.gistId,"/gist-anonymize/"+E.gistId,"/gist/"+E.gistId+"/")}function F(E=!1){if(T)return N();let L=++b;return e.loading=!E,e.loadingMore=E,e.dashboardError="",t.get("/api/user/dashboard",{params:{q:e.search,type:e.typeFilter,sort:e.orderBy,statuses:Object.keys(e.filters.status).filter(G=>e.filters.status[G]!==!1).join(",")||"none",attention:String(e.projectView==="attention"),cursor:E?e.dashboardCursor:void 0}}).then(G=>{if(L===b){if(!Array.isArray(G.data?.items))return T=!0,N();e.items=(E?e.items:[]).concat(G.data.items.map(O)),e.dashboardCursor=G.data.cursor,e.dashboardTotals=G.data,E||_()}},G=>{if(L===b){if(G.status===404)return T=!0,N();e.dashboardError="Projects could not be loaded. Please try again."}}).finally(()=>{L===b&&(e.loading=!1,e.loadingMore=!1)})}e.loadMoreProjects=()=>F(!0);let H;e.watchGroup(["search","typeFilter","orderBy","projectView"],()=>{T||(H&&u.timeout.cancel(H),H=u.timeout(()=>F(),150))},!1),e.watch("filters",()=>{T||F()},!0,!1),e.on("dispose",()=>{b++}),F(),e.openItem=(E,L)=>{if(!E._viewUrl)return;let G=L&&L.target;G&&G.closest&&G.closest("a, button, .dropdown, input")||(o.location.href=E._viewUrl)},e.hiddenStatusCount=()=>Object.keys(e.filters.status).filter(E=>e.filters.status[E]===!1).length,e.hasHiddenStatus=()=>e.hiddenStatusCount()>0;let se=()=>Object.keys(e.statusKeyLabels);e.onlyRemovedShown=()=>se().every(E=>E==="removed"==(e.filters.status[E]!==!1)),e.isActiveDefault=()=>se().every(E=>E==="removed"==(e.filters.status[E]===!1)),e.statusView=()=>e.projectView==="attention"?"attention":e.onlyRemovedShown()?"removed":e.filters.status.removed===!1?"active":"custom",e.setStatusView=E=>{if(E==="attention")return e.setProjectView("attention");e.projectView="all",se().forEach(L=>{e.filters.status[L]=E==="removed"?L==="removed":L!=="removed"})},e.statusChipKeys=()=>{let E=e.statusView();return E==="removed"?[]:se().filter(L=>e.filters.status[L]===!1&&!(L==="removed"&&E!=="custom"))},e.removedCount=null;function _(){if(T){e.removedCount=e.items.filter(L=>L._statusKey==="removed").length;return}let E=e.dashboardTotals;!E||e.projectView!=="all"||e.search.trim()||e.typeFilter!=="all"||(e.isActiveDefault()?e.removedCount=Math.max(0,E.total-E.filtered):e.onlyRemovedShown()&&(e.removedCount=E.filtered))}e.showViewTabs=()=>e.statusView()!=="active"||e.attentionCount()>0||e.removedCount>0||e.removedCount==null&&!!e.dashboardTotals&&e.dashboardTotals.total>e.dashboardTotals.filtered,e.hasActiveFilters=()=>e.projectView!=="all"||e.typeFilter!=="all"||e.search.trim().length>0||Object.keys(e.filters.status).some(E=>e.filters.status[E]===!1),e.showClearFilters=()=>e.search.trim().length>0||e.typeFilter!=="all"||e.statusChipKeys().length>0,e.isPlainView=()=>!e.showClearFilters(),e.clearFilters=()=>{let E=e.statusView();e.typeFilter="all",e.search="",e.setStatusView(E==="removed"?"removed":"active")};function z(E,L,G,j){t.get("/api/repo/"+E).then(async Y=>{let ne=j!==void 0&&j!==Y.data.status;for(let x of e.items)if(x._type==="repo"&&x.repoId==E){ne=ne||x.status!==Y.data.status;let fe=e.needsAttention(x);x.status=Y.data.status,x.statusMessage=Y.data.statusMessage,x._statusKey=c(x.status),x._statusKey!=="progress"&&(x._stale=!1);let me=e.needsAttention(x);e.dashboardTotals&&fe!==me&&(e.dashboardTotals.attention=Math.max(0,e.dashboardTotals.attention+(me?1:-1)));break}if(ne&&!T){e.dashboardCursor=null;let x=e.selectedProject;await F(),x&&e.selectedProject===x&&(e.selectedProject=e.items.find(fe=>fe._type===x._type&&fe._id===x._id)||null)}if(Y.data.status=="ready"||Y.data.status=="error"||Y.data.status=="removed"||Y.data.status=="expired"){L(Y.data);return}u.timeout(()=>z(E,L,G,Y.data.status),2500)},G)}let I=E=>E==="repo"?"repository":E==="gist"?"gist":"pull request",q=E=>E==="repo"?"/api/repo":E==="gist"?"/api/gist":"/api/pr";e.removeItem=E=>{let L=I(E._type);if(confirm(`Are you sure that you want to remove the ${L} ${E._id}?`)){let G=rt({title:`Removing ${E._id}...`,date:new Date,body:`The ${L} ${E._id} is going to be removed.`});e.addToast(G);let j=`${q(E._type)}/${E._id}`;t.delete(j).then(()=>{E._type==="repo"?z(E._id,()=>{G.title=`${E._id} is removed.`,G.body=`The ${L} ${E._id} is removed.`},void 0,E.status):(G.title=`${E._id} is removed.`,G.body=`The ${L} ${E._id} is removed.`,F())},Y=>{G.title=`Error during the removal of ${E._id}.`,G.body=Y.body,F()})}},e.refreshItem=E=>{let L=I(E._type),G=rt({title:`Refreshing ${E._id}...`,date:new Date,body:`The ${L} ${E._id} is going to be refreshed.`});e.addToast(G);let j=ne=>{G.title=`Error during the refresh of ${E._id}.`,G.body=ne.data?.error||ne.body||"The refresh could not be completed. Please try again.",F()},Y=`${q(E._type)}/${E._id}/refresh`;t.post(Y).then(()=>{E._type==="repo"?z(E._id,ne=>{if(ne.status!=="ready"){j({body:ne.statusMessage||`The repository is ${ne.status}.`});return}G.title=`${E._id} is refreshed.`,G.body=`The ${L} ${E._id} is refreshed.`},j,E.status):(G.title=`${E._id} is refreshed.`,G.body=`The ${L} ${E._id} is refreshed.`,F())},j)},e.extendItem=E=>{let L=I(E._type),G=rt({title:`Extending ${E._id}...`,date:new Date,body:`The expiration of ${L} ${E._id} is being extended.`});e.addToast(G);let j=`${q(E._type)}/${E._id}/extend`;t.post(j).then(Y=>{let ne=Y?.data?.expirationDate?` until ${new Date(Y.data.expirationDate).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}`:"";E._type==="repo"?z(E._id,()=>{G.title=`${E._id} is extended.`,G.body=`${L} ${E._id} is extended${ne}.`},void 0,E.status):(G.title=`${E._id} is extended.`,G.body=`${L} ${E._id} is extended${ne}.`,F())},Y=>{G.title=`Error during the extension of ${E._id}.`;let ne=Y.data&&Y.data.error;G.body=ne||Y.body,ne&&Object.prototype.hasOwnProperty.call(Qn.ERRORS,ne)&&(G.body=Qn.ERRORS[ne]),F()})},e.itemFilter=E=>{if(e.projectView==="attention"&&!e.needsAttention(E)||e.typeFilter!=="all"&&E._type!==e.typeFilter||e.filters.status[E._statusKey]===!1)return!1;let L=e.search.trim().toLowerCase();return!!(L.length==0||E._label&&String(E._label).toLowerCase().indexOf(L)>-1||E._source&&String(E._source).toLowerCase().indexOf(L)>-1||E._id&&String(E._id).toLowerCase().indexOf(L)>-1||E.conference&&String(E.conference).toLowerCase().indexOf(L)>-1)}};var Xc=function(e,t,s){let i=yt();e.repoId=s.repoId,e.reviewUrl=window.location.origin+"/r/"+encodeURIComponent(s.repoId)+"/",e.repo=null,e.progress=0,e.rateLimitResetAt=0,e.rateLimitCountdown="",e.shareUrl=(window.location?.origin||"")+"/r/"+encodeURIComponent(e.repoId)+"/",e.copied=!1;let o=null;e.copyShareUrl=async()=>{try{await ol(e.shareUrl),e.copied=!0,o&&i.timeout.cancel(o),o=i.timeout(()=>{e.copied=!1},2e3)}catch{e.addToast?.({title:"Copy this anonymous link",body:e.shareUrl})}},e.selectShareUrl=h=>{let y=window.getSelection?.();if(!y||!h?.target)return;let g=document.createRange();g.selectNodeContents(h.target),y.removeAllRanges(),y.addRange(g)};var r=null;let u=null,p=!1;function c(h){e.rateLimitResetAt=h,r&&i.interval.cancel(r);function y(){var g=Math.max(0,Math.ceil((h-Date.now())/1e3));if(g<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,i.interval.cancel(r),r=null;else{var k=Math.floor(g/60),w=g%60;e.rateLimitCountdown=k>0?k+"m "+w+"s":w+"s"}}y(),r=i.interval(y,1e3)}e.on("dispose",function(){p=!0,r&&i.interval.cancel(r),u&&i.timeout.cancel(u)});function v(h){if(!h)return h;var y=h.match(/^rate_limited:(\d+)$/);return y?(c(parseInt(y[1],10)),null):(e.rateLimitResetAt=0,h)}e.getStatus=()=>{p||t.get("/api/repo/"+e.repoId,{repoId:e.repoId,repoUrl:e.repoUrl}).then(h=>{if(!p){e.repo=h.data,h.data.rateLimitResetAt?c(h.data.rateLimitResetAt):e.repo.statusMessage=v(e.repo.statusMessage),e.repo.status=="ready"?e.progress=100:e.repo.status=="queue"?e.progress=10:e.repo.status=="downloaded"?e.progress=50:e.repo.status=="download"||e.repo.status=="preparing"?e.progress=25:e.repo.status=="anonymizing"&&(e.progress=75);var y=!["ready","removed","expired"].includes(e.repo.status);e.repo.status=="error"&&!e.rateLimitResetAt&&(y=!1),y&&(u=i.timeout(e.getStatus,2e3))}},h=>{e.error=h.data.error})},e.getStatus()},br=function(e,t,s,i,o,r,u){zc(),e.renderRedacted=Us,e.sourceUrl="",e.workspaceOpen=!1,e.sourceUrlError="",e.previewStatus="idle",e.sourceLoading=!1,e.mobilePane="settings";let p=window.matchMedia?.("(max-width: 767px)");e.mobileWorkspace=!!p?.matches,p?.addEventListener&&Ht()(p,"change",C=>{e.mobileWorkspace=C.matches}),e.selectMobilePane=C=>{e.mobilePane=C};let c=0,v=!1,h=new Set,y=(C,M=!1)=>!v&&C.generation===c&&C.url===e.sourceUrl.trim()&&C.connection===e.githubConnection&&(!M||C.branch===e.source.branch),g=()=>{let C={generation:c,url:e.sourceUrl.trim(),connection:e.githubConnection,branch:e.source.branch};return h.add(C),e.sourceLoading=!0,C},k=C=>{h.delete(C),v||(e.sourceLoading=[...h].some(M=>y(M)))};e.on("dispose",()=>{v=!0,c++});let w=null,S=C=>C.gistId&&!C.repo?"gist:"+C.gistId.toLowerCase():(C.owner+"/"+C.repo).toLowerCase()+(C.pullRequestId?"/pull/"+C.pullRequestId:""),N=Ta(e,["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"],"anonymize:"+(o.path?.()||"")),b=null,T=null,O=null;e.hostingReview=!1,e.previewExpanded=!1,e.taskValidationError="",e.editRepository=()=>{e.mobilePane="settings",e.previewExpanded=!1,Ge(()=>document.querySelector(".anonymize-fields .is-invalid")?.focus())},e.submitRepository=C=>{if(e.taskValidationError="",!(e.sourceLoading||e.billingBusy||e.hostingSaving||e.billingPending)){if(ri()||e.anonymize?.invalid||e.sourceUrlError){e.taskValidationError="Check the highlighted fields before continuing.",e.editRepository();return}return e.hostingNeedsPayment()?e.checkoutRepository(Zi(e.hostingChoice())?e.hostingChoice():""):e.anonymizeRepo(C)}},e.hostingPayment=!1,e.hostingAlternatives=!1,e.hostingPrice=C=>C.amount==null?"Price shown at checkout":new Intl.NumberFormat(void 0,{style:"currency",currency:C.currency,minimumFractionDigits:0,maximumFractionDigits:2}).format(C.amount/100)+(C.interval==="year"?" billed annually":" billed monthly"),e.hostingPlan="",e.hostingSaving=!1,e.selectedHostingPlan=()=>e.authorPlans().find(C=>C.id===e.hostingPlan)||e.hostingSubscriptionPlan?.();let F=()=>t.get("/api/user/quota").then(C=>{e.hostingQuota=C.data});er(e,t,async()=>{await F(),e.hostingQuotaBlocked=!1},{confirmedMessage:"Hosting status refreshed. Your draft is ready to continue."}),F().catch(()=>{}),e.authorPlans=()=>(e.billing?.plans||[]).filter(C=>["author_monthly","author_annual"].includes(C.id)),e.conferenceHosting=()=>!!(e.conference&&e.conference_data?.hosting),e.hasAuthorHosting=()=>["author_monthly","author_annual"].includes(e.billing?.allowance?.plan),e.hostingNeedsPayment=()=>!e.billing?.enabled||e.detectedType!=="repo"||e.hasAuthorHosting()||e.isUpdate&&e.role!=="owner"?!1:!!(e.options?.expirationMode==="never"&&!e._existingNever&&!e.repositoryGrants("repo_never").length||!e.conferenceHosting()&&e.hostingQuotaBlocked),e.repositoryGrants=C=>(e.billing?.grants||[]).filter(M=>M.planId===C&&M.scope===`repo:${e.repoId}`&&["active","paid","past_due"].includes(M.status)&&new Date(M.until).getTime()>Date.now()),e.repositoryAddonPlans=()=>(e.billing?.plans||[]).filter(C=>Zi(C.id)&&(["repo_extend","repo_pack"].includes(C.id)||!e.repositoryGrants(C.id).length)),e.hostingOneTimePlans=()=>{let C=M=>M.map(B=>(e.billing?.plans||[]).find(K=>K.id===B&&!e.repositoryGrants(B).length)).filter(Boolean);return e.options?.expirationMode==="never"&&!e._existingNever&&!e.repositoryGrants("repo_never").length?C(["repo_never"]):e.hostingQuotaBlocked&&!e.conferenceHosting()?C(["repo_slot","repo_pack"]):[]},e.hostingOneTime=()=>e.hostingOneTimePlans()[0];let H=["free","repo_slot"];e.liveUpdatesIncluded=()=>{if(!e.billing?.enabled||e.detectedType!=="repo"||e.isUpdate&&e.role!=="owner"||e.conferenceHosting()||e.hasAuthorHosting())return!0;let C=e.billing?.allowance?.plan;return C&&!H.includes(C)?!0:e.repositoryGrants("author_pass").length>0||e.repositoryGrants("repo_pack").length>0},e.liveUpdatesPrice=()=>{let C=(e.billing?.plans||[]).find(M=>M.id==="author_pass");return C?.amount!=null?e.billingAmount(C):""},e.showHostingOptions=()=>{e.mobilePane="settings",Ge(()=>document.getElementById("repository-hosting")?.scrollIntoView({block:"start",behavior:"smooth"}))},e.neverExpireTag=()=>{if(e.hasAuthorHosting())return"Included in your subscription";if(e.repositoryGrants("repo_never").length)return"Paid for this repository";let C=(e.billing?.plans||[]).find(M=>M.id==="repo_never");return C?.amount!=null?`${e.billingAmount(C)} once, or with a subscription`:"Subscription or one-time add-on"},e.hostingCycle="author_annual",e.hostingSubscriptionPlan=()=>e.authorPlans().find(C=>C.id===e.hostingCycle)||e.authorPlans().find(C=>C.interval==="year")||e.authorPlans()[0],e.hostingAnnualSavings=()=>{let C=e.authorPlans().find(B=>B.interval==="month")?.amount,M=e.authorPlans().find(B=>B.interval==="year")?.amount;return C&&M&&Me.hostingOneTimePlans().concat(e.authorPlans().length?[e.hostingSubscriptionPlan()]:[]),e.hostingOptionName=C=>({repo_slot:"Add this repository",repo_pack:"Paper pack",repo_never:"Never expire",author_annual:"Author subscription",author_monthly:"Author subscription"})[C.id]||C.name,e.hostingOptionBlurb=C=>({repo_slot:"Hosted outside your free repositories. Refresh it by hand.",repo_pack:"Adds automatic updates for 180 days and keeps the link online for a year.",repo_never:"This link never expires. No subscription."})[C.id]||`${C.repositories} repositories, ${e.billingBytes(C.storage)}, automatic updates and links that never expire.`,e.hostingChoice=()=>{let C=e.hostingOneTimePlans();return C.some(M=>M.id===e.hostingPlan)||e.authorPlans().some(M=>M.id===e.hostingPlan)?e.hostingPlan:C[0]?.id||e.hostingSubscriptionPlan()?.id||""},e.checkoutRepository=async(C="")=>{if(!(e.hostingSaving||e.billingBusy||!e.billing?.csrf||e.sourceLoading)){e.hostingSaving=!0,e.billingError="";try{let M=N.checkpoint(),B=JSON.stringify(M);(!T||B!==O)&&(T=(await t.post("/api/billing/draft",{path:o.path(),values:M},{headers:{"x-csrf-token":e.billing.csrf}})).data.id,O=B);let K=e.authorPlans().find(le=>le.id===e.hostingPlan)||e.hostingSubscriptionPlan();if(!C&&!K)throw new Error("No author plan available");await e.checkout(C||K.id,C?e.repoId:"",{draftId:T})}catch{e.billingError="Your draft could not be saved for checkout. Your form is unchanged. Please try again."}finally{e.hostingSaving=!1}}},e.useDatedHosting=()=>{e.options.expirationMode="remove"},e.discardDraft=async()=>{N.discard(),e.workspaceOpen=!!e.sourceUrl,e.error=null,e.sourceUrl?await e.urlSelected(!0):(c++,e.sourceLoading=!1,e.detectedType=null,e.details=null,e.sourceUrlError="",Qt.cancel(),Vn.cancel(),qn.cancel(),e.previewStatus="idle")},e.githubConnection=void 0,e.githubConnections=null,e.gistOAuthRequired=!1,e.gistAppRequired=!1;let se=()=>{let C={};for(let M of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])C[M]=e[M];sessionStorage.setItem("github-access-draft",JSON.stringify({path:o.path(),savedAt:Date.now(),draft:C}))};e.connectGistApp=()=>{se(),window.location.href="/github/app/login?returnTo="+encodeURIComponent(o.path())},e.connectGistOAuth=()=>{se(),window.location.href="/github/login?returnTo="+encodeURIComponent(o.path())},e.grantGitHubAccess=()=>{se();let C=o.path(),M=J(e.sourceUrl)||"",B=e.githubConnections?.appConnected?"/github/app/install":"/github/app/login";window.location.href=B+"?returnTo="+encodeURIComponent(C)+"&repository="+encodeURIComponent(M)+"&install=1"},e.chooseGitHubConnection=async C=>{e.githubConnection=C,e.readme="",e.sourceUrl&&await ue()},e.detectedType=null,e.repoId="",e.pullRequestId="",e.gistId="",e.terms="",e.defaultTerms="",e.branches=[],e.source={branch:"",commit:""},e.options={expirationMode:"remove",expirationDate:new Date,update:!1,image:!0,pdf:!0,notebook:!0,link:!0,body:!0,title:!0,origin:!1,diff:!0,content:!0,comments:!0,username:!0,date:!0};function _(){let C=new Date;return C.setMonth(C.getMonth()+6),C}e.options.expirationDate=_();function z(C){let M=C.getFullYear(),B=String(C.getMonth()+1).padStart(2,"0"),K=String(C.getDate()).padStart(2,"0");return`${M}-${B}-${K}`}e.minExpirationDate=z(new Date);let I=()=>{let C=new Date,M=new Date(C);if(M.setFullYear(M.getFullYear()+1),e.billing?.enabled&&e.detectedType==="repo"&&!e.hasAuthorHosting()){M=new Date(C),M.setMonth(M.getMonth()+(e.billing.freeExpirationMonths||5));for(let le of e.repositoryGrants("repo_extend"))new Date(le.until)>M&&(M=new Date(le.until));e.conference_data?.endDate&&new Date(e.conference_data.endDate)>M&&(M=new Date(e.conference_data.endDate)),e._savedExpirationDate&&e._savedExpirationDate>M&&(M=new Date(e._savedExpirationDate));let B=e.options?.expirationDate,K=e._savedExpirationDate&&B instanceof Date&&B.getTime()===e._savedExpirationDate.getTime();B instanceof Date&&B>M&&!K&&(e.options.expirationDate=new Date(M))}e.maxExpirationDate=z(M)};I(),e.watch(()=>[e.billing,e.repoId,e.conference_data,e.isUpdate,e._savedExpirationDate,e.options?.expirationMode,e.detectedType],I,!0,!1),e.anonymize_readme="",e.readme="",e.isUpdate=!1,e.userRepos=[],e.userReposStatus="idle",e.userRepoFilter="",e.userRepoPage=1,e.userRepoNext=null,e.userReposSyncedAt=null,e.userReposSyncing=!1,e.userReposWebhooks=!1,e.userReposNow=Date.now(),e.userReposRefreshFailed=!1;let q=0,E,L,G=0,j=[0],Y=yt();Y.interval(()=>{e.userReposNow=Date.now()},3e4),e.on("dispose",()=>{q++,clearTimeout(E)}),e.userReposUpdatedLabel=()=>{if(e.userReposSyncing)return"Updating\u2026";if(e.userReposRefreshFailed)return"Couldn\u2019t update";if(!e.userReposSyncedAt)return"";let C=Math.floor((e.userReposNow-Date.parse(e.userReposSyncedAt))/6e4);return C<1?"Updated just now":C<60?"Updated "+C+" min ago":C<1440?"Updated "+Math.floor(C/60)+" h ago":"Updated "+or(e.userReposSyncedAt)},e.userReposUpdatedTitle=()=>e.userReposWebhooks?"New repositories you give the GitHub App access to appear automatically. Refresh to check GitHub now.":"Your repository list is saved. Refresh to fetch new repositories from GitHub.",e.loadUserRepos=async(C={})=>{clearTimeout(E),Y.timeout.cancel(L);let M=++q,B=e.userRepoFilter.trim();C.quiet||(e.userReposStatus="loading",e.userRepos=[]),C.force&&(e.userReposSyncing=!0,e.userReposRefreshFailed=!1),C.poll||(G=0);let K=j[e.userRepoPage-1];try{for(let le=0;le<5;le++){let ge=await t.get("/api/user/repository_picker",{params:{cursor:K,q:B,connection:e.githubConnection,force:C.force&&le===0?1:void 0}});if(v||M!==q)return;if(e.userRepos=ge.data.items||[],e.userRepoNext=ge.data.nextCursor??null,e.userReposSyncedAt=ge.data.syncedAt||null,e.userReposSyncing=!!ge.data.syncing,e.userReposWebhooks=!!ge.data.webhooks,e.userReposNow=Date.now(),e.userRepos.length||e.userRepoNext===null||!B)break;K=e.userRepoNext}e.userReposStatus="ready",e.userReposSyncing&&G<60&&(G++,L=Y.timeout(()=>{!v&&M===q&&e.loadUserRepos({quiet:!0,poll:!0})},2e3))}catch{if(v||M!==q)return;e.userReposSyncing=!1,!C.quiet||!e.userRepos.length?e.userReposStatus="error":C.force&&(e.userReposRefreshFailed=!0)}},e.refreshUserRepos=()=>{e.userReposSyncing||e.userReposStatus==="loading"||e.loadUserRepos({quiet:!0,force:!0})},e.changeUserRepoPage=C=>{if(e.userReposStatus!=="loading"){if(C>0&&e.userRepoNext!==null)j[e.userRepoPage]=e.userRepoNext,e.userRepoPage++;else if(C<0&&e.userRepoPage>1)e.userRepoPage--;else return;e.loadUserRepos()}},e.watch(()=>[e.userRepoFilter,e.githubConnection],()=>{i.repoId||i.pullRequestId||i.gistId||(q++,clearTimeout(E),j=[0],e.userRepoPage=1,e.userRepoNext=null,e.userRepos=[],e.userReposStatus="loading",E=setTimeout(()=>{v||e.loadUserRepos()},300))},!0,!1),e.selectUserRepo=C=>{if(C?.fullName)return e.sourceUrl="https://github.com/"+C.fullName,e.urlSelected()},e.previousConfigurations=[],e.previousConfigurationId="";let ne,x=C=>String(C||"").replace(/\/$/,"").replace(/\.git$/i,"").toLowerCase();async function fe(){if(e.isUpdate||i.repoId||i.pullRequestId||i.gistId)return;let C={generation:c,url:e.sourceUrl.trim(),connection:e.githubConnection};try{ne||(ne=t.get("/api/user/anonymized_repositories").then(K=>K.data));let M=await ne;if(!y(C))return;let B=x(J(C.url));e.previousConfigurations=M.filter(K=>K.repoId&&K.options&&x(K.source?.fullName)===B).sort((K,le)=>(Date.parse(le.anonymizeDate)||0)-(Date.parse(K.anonymizeDate)||0)),e.previousConfigurationId=e.previousConfigurations[0]?.repoId||""}catch{ne=void 0}}e.sourceSummary=()=>{let C=String(e.sourceUrl||""),M=/github\.com\/([^/\s]+\/[^/\s]+)\/pull\/(\d+)/i.exec(C);return M?M[1]+" \xB7 PR #"+M[2]:(M=/gist\.github\.com\/([^/\s]+)\/([0-9a-f]{8,})/i.exec(C),M?M[1]+" \xB7 gist "+(M[2].length>12?M[2].slice(0,7)+"\u2026"+M[2].slice(-4):M[2]):"")},e.sourceError="",e.sourceErrorText="";let me={repo_access_limited:"access",repo_not_accessible:"access",repo_saml_enforcement:"access",repo_already_anonymized:"used",github_rate_limit_exceeded:"github-throttle",rate_limited:"throttle",github_unavailable:"upstream",internal_error:"server",unreachable:"server",github_app_reconnect_required:"reconnect",token_expired:"reconnect",repo_not_found:"missing",github_app_access_required:"missing",pull_request_not_found:"missing",gist_not_found:"missing"},qe=C=>{let M=typeof C?.data?.error=="string"?C.data.error:"",B=C?.status===429?me[M]==="github-throttle"?M:"rate_limited":C?.status>=500?M==="github_unavailable"?M:"internal_error":M||(C?.status===404?"repo_not_found":"unknown_error");e.sourceError=B,e.sourceErrorText="",me[B]||r("ERRORS."+B).then(K=>{e.sourceError===B&&K!=="ERRORS."+B&&(e.sourceErrorText=K)},()=>{}),ai(B),Se("sourceUrl","missing",!1)},Ue=()=>{e.sourceError="",e.sourceErrorText=""};e.sourceReady=()=>!!e.isUpdate||!!e.details,e.sourceProblem=()=>{let C=e.anonymize?.sourceUrl?.errors||{};if(C.github||e.sourceUrlError&&e.workspaceOpen)return{kind:"github",title:"Not a GitHub URL",text:"Paste a repository, pull request, or gist URL from github.com."};if(e.sourceLoading||e.details&&!C.used&&!e.sourceError)return null;if(e.gistAppRequired||e.gistOAuthRequired)return{kind:"connect",title:"Couldn't load this gist",text:"Connect GitHub to read gists."};let M=e.sourceError||(C.used?"repo_already_anonymized":C.access?"repo_not_accessible":C.missing?"repo_not_found":"");if(!M)return null;let B=me[M]||"other",K=e.detectedType,le="this gist";try{let Gt=parseGithubUrl(String(e.sourceUrl||"").trim());K==="pr"?le=`pull request #${Gt.pullRequestId} in ${Gt.owner}/${Gt.repo}`:K!=="gist"&&(le=`${Gt.owner}/${Gt.repo}`)}catch{}let ge=K==="pr"?"this pull request":K==="gist"?"this gist":"this repository",He=K!=="gist"&&e.githubConnection==="github-app",mt=e.isUpdate&&K==="repo"&&e.role==="owner"&&e.accessRepairAllowed&&e.githubConnections?.appEnabled&&He&&e.sourceUrl==="https://github.com/"+e._originalFullName?null:K==="gist"||!e.githubConnection?"link":He?"app":"link",Rt="Couldn't load "+ge;if(B==="github-throttle")return{kind:B,title:Rt,text:"GitHub's API rate limit has been reached. Wait for the limit to reset, then try again. Your repository access settings do not need to change.",retry:!0};if(B==="throttle")return{kind:B,title:Rt,text:"Too many requests. Wait a little, then try loading the source again.",retry:!0};if(B==="upstream")return{kind:B,title:Rt,text:"GitHub is temporarily unavailable. Try loading the source again in a moment.",retry:!0};if(B==="server")return{kind:B,title:Rt,text:"Anonymous GitHub could not load the source because of a server error. Try again in a moment. This does not mean the repository is missing or that you need to change its permissions.",retry:!0};if(B==="reconnect")return{kind:B,title:Rt,text:"Your GitHub authorization has expired or was revoked. Reconnect your GitHub account, then try loading the source again.",manage:"link",retry:!0};if(B==="used")return{kind:B,title:"Already anonymized",text:`You've already anonymized ${le}. Open it from My work to change its settings.`,dashboard:!0};if(B==="access"){let Gt=M==="repo_saml_enforcement"?"Its organization requires single sign-on.":"Its organization restricts third-party apps.",vf=M==="repo_saml_enforcement"?"Authorize your GitHub session for the organization, then try again.":"An organization owner may need to approve Anonymous GitHub. You can also anonymize a personal fork.";return{kind:B,title:Rt,text:`We can't read ${le}. ${Gt}`,note:vf,manage:mt,retry:!0}}return B==="missing"?{kind:B,title:Rt,text:`We can't read ${le}. It doesn't exist, or ${He?"the Anonymous GitHub app hasn't been given access to it":"your GitHub account can't see it"}.`,manage:mt,retry:!0}:{kind:B,title:Rt,text:e.sourceErrorText||"GitHub didn't return it. Try again in a moment.",retry:!0}},e.submitBlockedReason=()=>e.sourceLoading?e.detectedType==="pr"?"Waiting for the pull request to load from GitHub\u2026":e.detectedType==="gist"?"Waiting for the gist to load from GitHub\u2026":"Waiting for the repository to load from GitHub\u2026":e.sourceReady()?"":e.sourceProblem()?.kind==="github"?"Enter a GitHub URL to continue.":["github-throttle","throttle","upstream","server"].includes(e.sourceProblem()?.kind)?"Wait for the source to load successfully before continuing.":e.detectedType==="pr"?"Add a pull request you can access to continue.":e.detectedType==="gist"?"Add a gist you can access to continue.":"Add a repository you can access to continue.",e.sourceIsPrivate=()=>e.details?e.detectedType==="gist"?e.details.gist?!e.details.gist.isPublic:!0:e.details.private!==!1:!1,e.previewId=()=>e.detectedType==="pr"?e.pullRequestId:e.detectedType==="gist"?e.gistId:e.repoId,e.previewPath=()=>{let C=e.previewId();return C?(e.detectedType==="pr"?"/pr/":e.detectedType==="gist"?"/gist/":"/r/")+encodeURIComponent(C)+"/":""},e.previewUrl=()=>{let C=e.previewPath();return C?"anonymous.4open.science"+C.replace(/\/$/,""):""},e.previewRedactions=()=>{let C=K=>typeof K=="string"?(K.match(ni)||[]).length:0;if(e.detectedType==="repo")return e.previewViewer.redactionCount();let M=e.detectedType==="pr"?Ro:To,B=0;return M.forEach(K=>{B+=C(K)}),B};let Xe=(C,M)=>C.localeCompare(M,void 0,{sensitivity:"base"}),ze=C=>C.slice(C.lastIndexOf("/")+1),lt={key:null,files:[]};e.previewTreeFiles=()=>{if(!e.preserve.commit||!oe)return[];let C=e.preserve.commit+"\0"+e.terms+"\0"+Eo.size+"\0"+oe.files.length;if(lt.key===C)return lt.files;let M=oe.files.map(B=>{let K=e.previewPathName(B),le=K.lastIndexOf("/");return{name:K.slice(le+1),path:le<0?"":K.slice(0,le),size:0,sourcePath:B}});return lt={key:C,files:M},M},e.selectPreviewPath=C=>{let M=e.previewTreeFiles().find(B=>"/"+(B.path?B.path+"/":"")+B.name===C);M&&e.openPreviewFile(M.sourcePath)},e.existingConfigurationUrl=()=>{let C=e.previousConfigurations.find(M=>M.repoId===e.previousConfigurationId);return C?"/anonymize/"+encodeURIComponent(C.repoId):null};function Re(C){t.get("/api/user/default").then(M=>{let B=M.data;B.terms&&(e.defaultTerms=B.terms.join(` -`)),e.options=Object.assign({},e.options,B.options),e.options.expirationDate=B.options&&B.options.expirationDate?new Date(B.options.expirationDate):_(),!i.repoId&&!i.pullRequestId&&!i.gistId&&!e.anonymize?.terms?.dirty&&(e.terms=e.defaultTerms),C&&C()})}function Se(C,M,B){e.anonymize&&e.anonymize[C]&&e.anonymize[C].setValidity(M,B)}function J(C){try{let M=parseGithubUrl(C);if(M&&M.owner&&M.repo)return M.owner+"/"+M.repo}catch{}return null}e.accessRepairAllowed=!1,e.repairingGitHubAccess=!1,e.accessRepairMessage="",e.repairGitHubAccess=async()=>{if(!e.accessRepairAllowed||e.repairingGitHubAccess||!e.githubConnections?.appEnabled||!i.repoId||e.role!=="owner"||e.githubConnection!=="github-app"||J(e.sourceUrl)!==e._originalFullName)return;e.repairingGitHubAccess=!0,e.accessRepairMessage="";let C=g();try{let M=await t.get("/github/connections");if(e.githubConnections=M.data,!M.data.appEnabled)return;let B=await t.post("/github/connections/migrate",{type:"repository",id:i.repoId,connection:"github-app"},{headers:{"X-CSRF-Token":M.data.csrf}});if(!y(C))return;e.error=null,B.data.fullName&&(e._originalFullName=B.data.fullName,e.source.fullName=B.data.fullName,e.sourceUrl="https://github.com/"+B.data.fullName),e.accessRepairMessage="GitHub access repaired. Your anonymous URL and published commit are unchanged.",await e.urlSelected(!0)}catch{y(C)&&(e.accessRepairMessage="Unable to repair GitHub access. Check the App's repository permissions in Manage access, then retry. Your published snapshot has not been replaced.")}finally{e.repairingGitHubAccess=!1,k(C)}},e.reconnectingSource=!1,e.reconnectRepositoryId=void 0,e.reconnectSource=async()=>{if(confirm("Reconnect to the repository currently at this GitHub URL? Review its branch and commit before saving. Saving will replace the published snapshot.")){e.reconnectingSource=!0,e.reconnectRepositoryId=void 0,e.details=null,e.source.commit="",e.source.branch="",e.readme="",e.branches=[];try{await be()}catch{}}};function ce(){return e.reconnectingSource||!e.isUpdate||!e._originalRepositoryID?void 0:J(e.sourceUrl)===e._originalFullName?e._originalRepositoryID:void 0}async function ue(){e._preservingDraft=!0;try{await e.urlSelected(!0)}finally{e._preservingDraft=!1}}async function he(){let C=new URLSearchParams(window.location.search).get("billingDraft");if(C){N.restore();try{let B=(await t.get("/api/billing/draft/"+encodeURIComponent(C))).data;if(B.path!==o.path())throw new Error("Wrong task");b=B.values.conference||null;for(let K of["sourceUrl","terms","repoId","source","options","conference","githubConnection"])Object.prototype.hasOwnProperty.call(B.values,K)&&(e[K]=B.values[K]);return e.options?.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate)),T=B.id,O=JSON.stringify(N.checkpoint()),e.draftRestored=!0,e.hostingReview=!0,e.sourceUrl&&await ue(),o.replace?.(o.path()),!0}catch{e.billingError="The checkout draft could not be restored. Retry by reloading this page; any local draft is still available."}}let M;try{M=JSON.parse(sessionStorage.getItem("github-access-draft")||"null")}catch{return!1}if(!M||M.path!==o.path()||Date.now()-M.savedAt>=30*6e4)return N.restore()?(e.sourceUrl&&await ue(),!0):!1;N.restore();for(let B of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])Object.prototype.hasOwnProperty.call(M.draft,B)&&(e[B]=M.draft[B]);return e.options.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate)),await ue(),sessionStorage.removeItem("github-access-draft"),!0}Re(()=>{!i.repoId&&!i.pullRequestId&&!i.gistId&&u(he,0),i.repoId&&i.repoId!=""&&(e.isUpdate=!0,e.detectedType="repo",e.repoId=i.repoId,t.get("/api/repo/"+e.repoId).then(async C=>{e.accessRepairAllowed=!["removed","archived","preparing","queue","download","removing","expiring"].includes(C.data.status),e.githubConnection=C.data.connection||"oauth",e.sourceUrl="https://github.com/"+C.data.source.fullName,e._originalFullName=C.data.source.fullName,e.terms=C.data.options.terms.filter(M=>M).join(` +Contact: jane.smith@mit.edu`,e.demoTerms="Jane Smith, Smith, MIT CSAIL, jane.smith@mit.edu",e.demoParts=function(){let p=(e.demoTerms||"").split(/[,\n]/).map(g=>g.trim()).filter(Boolean).sort((g,k)=>k.length-g.length),c=g=>g.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(!p.length)return[{text:e.demoText}];let v=new RegExp("("+p.map(c).join("|")+")","gi"),h={},y=0;return(e.demoText||"").split(v).filter(g=>g!=="").map(g=>{let k=p.find(w=>w.toLowerCase()===g.toLowerCase());return k?(h[k.toLowerCase()]||(h[k.toLowerCase()]=++y),{text:String(h[k.toLowerCase()]),redacted:!0,original:g}):{text:g}})},e.demoCount=()=>e.demoParts().filter(p=>p.redacted).length,e.cards=[{key:"repositories",total:0,label:"repositories anonymized"},{key:"users",total:0,label:"researchers"},{key:"pageViews",total:0,label:"page views"},{key:"pullRequests",total:0,label:"pull requests"}],e.statsEmpty=()=>!!e.stat&&e.cards.every(p=>!p.total);function r(){t.get("/api/stat/").then(p=>{e.stat=p.data,e.cards[0].total=p.data.nbRepositories,e.cards[1].total=p.data.nbUsers,e.cards[2].total=p.data.nbPageViews,e.cards[3].total=p.data.nbPullRequests}).catch(()=>{})}r();function u(p){let c={series:p,bars:[],viewW:100,deltaToday:0,pctChange:0,pctAbs:0,isUp:!0};if(!p||p.length<2)return c;let v=new Array(p.length-1);for(let S=1;S=2){let S=v[h-2];S&&(c.pctChange=(c.deltaToday-S)/S*100)}return c.pctAbs=Math.round(Math.abs(c.pctChange)),c.isUp=c.pctChange>=0,c}e.history={repositories:u([]),users:u([]),pageViews:u([]),pullRequests:u([])},t.get("/api/stat/history?days=60").then(p=>{let c=p.data||[];e.history={repositories:u(c.map(v=>v.nbRepositories||0)),users:u(c.map(v=>v.nbUsers||0)),pageViews:u(c.map(v=>v.nbPageViews||0)),pullRequests:u(c.map(v=>v.nbPullRequests||0))}}).catch(()=>{})},Xc=function(e,t,s,i,o,r){let u=yt();e.on("routeLeave",function(){$('[data-toggle="tooltip"]').tooltip("dispose")}),e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),u.timeout(()=>{$('[data-toggle="tooltip"]').tooltip()},250),e.quotaExpanded=!1,e.closeQuota=()=>{e.quotaExpanded=!1,Ge(()=>document.querySelector(".dashboard-quota > summary")?.focus())},Ht()(document,"click",E=>{e.quotaExpanded&&!E.target.closest?.(".dashboard-quota")&&(e.quotaExpanded=!1)}),e.filtersExpanded=!1,e.projectView="all",e.selectedProject=null,e.projectName="",e.nameSaving=!1,e.nameError="",e.nameMessage="",e.needsAttention=E=>E.status==="error"||E._broken||c(E.status)==="progress"&&E._stale,e.attentionCount=()=>e.dashboardTotals?.attention??e.items.filter(e.needsAttention).length,e.hasProjects=()=>(e.dashboardTotals?.total??e.items.length)>0,e.setProjectView=E=>{e.projectView=E,E==="attention"&&(e.filters.status.error=!0,e.filters.status.progress=!0)},e.idleText=E=>{let L=Pa(E?.anonymizeDate||E?.lastView)||"";return/ ago$/.test(L)?"No activity for "+L.replace(/ ago$/,""):"No activity since "+L.replace(", "+new Date().getFullYear(),"")},e.projectDetailsId=E=>"project-details-"+encodeURIComponent(E._type+":"+(E._id||E._source||"unknown")),e.showProjectDetails=async E=>{e.selectedProject=E,e.projectName=E.projectName||"",e.nameError="",e.nameMessage="",await Ge();let L=document.getElementById(e.projectDetailsId(E));L?.focus(),L?.scrollIntoView?.({block:"nearest"})},e.closeProjectDetails=E=>{e.selectedProject=null,Ge(()=>document.querySelector(`[data-project-actions="${encodeURIComponent(E._type+":"+E._id)}"]`)?.focus())},e.saveProjectName=async E=>{if(e.nameSaving||!E._id)return;let L=e.projectName.trim();if(L.length>100){e.nameError="Use 100 characters or fewer.";return}e.nameSaving=!0,e.nameError="",e.nameMessage="";try{let G=await t.post("/api/user/project-name",{type:E._type,id:E._id,name:L});E.projectName=G.data.name,E._label=E.projectName||E._fallbackLabel,e.selectedProject===E&&(e.nameMessage=L?"Project name saved.":"Default project name restored."),T||(e.dashboardCursor=null,await F(),e.selectedProject===E&&(e.selectedProject=e.items.find(j=>j._type===E._type&&j._id===E._id)||null))}catch{e.selectedProject===E&&(e.nameError="The project name could not be saved. Try again.")}finally{e.nameSaving=!1}},e.copyingId=null,e.copyLink=async E=>{if(!E._viewUrl||e.copyingId)return;let L=new URL(E._viewUrl,o.location.origin).href;e.copyingId=E._type+":"+E._id;try{await ol(L),e.addToast({title:"Link copied",body:"The anonymous link is ready to share."})}catch{e.addToast({title:"Copy this anonymous link",body:L})}finally{e.copyingId=null}},e.items=[],e.search="",e.loading=!0,e.statusKeyLabels={ready:"Ready",progress:"Preparing",error:"Error",expired:"Expiring / expired",removed:"Removing / removed"};let p=["queue","download","downloaded","preparing","anonymizing"];function c(E){return E==="ready"||E==="error"?E:E==="expired"||E==="expiring"?"expired":E==="removed"||E==="removing"?"removed":(p.indexOf(E)>-1,"progress")}let v=7200*1e3,h="dashboard.filterPrefs",y={typeFilter:"all",filters:{status:{ready:!0,progress:!0,error:!0,expired:!0,removed:!1}},orderBy:"-anonymizeDate"},g=loadFilterPrefs(h)||{};e.typeFilter=g.typeFilter||y.typeFilter,e.filters={status:Object.assign({},y.filters.status,g.filters&&g.filters.status||{})},e.orderBy=g.orderBy||y.orderBy;let k={_name:{label:"Anonymous ID",defaultDesc:!1},_label:{label:"Project",defaultDesc:!1},anonymizeDate:{label:"Anonymize date",defaultDesc:!0},status:{label:"Status",defaultDesc:!1},lastView:{label:"Last view",defaultDesc:!0},pageView:{label:"Views",defaultDesc:!0},"options.expirationDate":{label:"Expiration",defaultDesc:!1}};e.sortFields=k,e.sortField=()=>e.orderBy.replace(/^-/,""),e.sortDesc=()=>e.orderBy.charAt(0)==="-",e.sortLabel=()=>{let E=k[e.sortField()];return E?E.label:"Custom"},e.isSortedBy=E=>e.sortField()===E,e.setSort=(E,L)=>{typeof L!="boolean"&&(L=e.isSortedBy(E)?!e.sortDesc():!!(k[E]&&k[E].defaultDesc)),e.orderBy=(L?"-":"")+E},e.toggleSortDirection=()=>{e.setSort(e.sortField(),!e.sortDesc())},e.watchGroup(["typeFilter","orderBy"],()=>{saveFilterPrefs(h,{typeFilter:e.typeFilter,filters:e.filters,orderBy:e.orderBy})}),e.watch("filters",()=>{saveFilterPrefs(h,{typeFilter:e.typeFilter,filters:e.filters,orderBy:e.orderBy})},!0),r.load().then(E=>{e.quota=E},console.error);function w(E,L,G,j,Y,ne){E.pageView||(E.pageView=0),E.lastView||(E.lastView=""),E.options=E.options||{},E.options.terms=(E.options.terms||[]).filter(fe=>fe),E._id=L||"",E._source=j,E._broken=!L,E._name=L||j||"(unnamed)",E._fallbackLabel=E._type==="gist"?"Gist "+(L||j||"without an ID"):j||G||E._name,E._label=E.projectName||E._fallbackLabel,E._editUrl=L?Y:null,E._viewUrl=L?ne:null,E._broken&&(E.status="error",E.statusMessage="incomplete_record"),E._statusKey=c(E.status);let x=E.anonymizeDate||E.lastView;if(E._stale=E._statusKey==="progress"&&!!x&&Date.now()-new Date(x).getTime()>v,E.status==="expired"||E.status==="expiring")E._expiry={kind:"expired",date:E.options.expirationDate},E._expiry.label=or(E.options.expirationDate)||void 0;else if(E.status!=="ready")E._expiry={kind:"none"};else if(E.options.expirationMode==="never"||!E.options.expirationDate)E._expiry={kind:"never"};else{E._expiry={kind:"date",date:E.options.expirationDate};let fe=new Date(E.options.expirationDate).getTime()-Date.now();if(fe>0&&fe<=168*3600*1e3){let me=Math.max(1,Math.round(fe/36e5)),qe=Math.round(fe/864e5);E._expiry.soon=me<48?"in "+me+(me===1?" hour":" hours"):"in "+qe+" days"}}return E}function S(E){return t.get(E).then(L=>L.data||[],L=>(console.error(L),[]))}function N(){return e.loading=!0,i.all([S("/api/user/anonymized_repositories"),S("/api/user/anonymized_pull_requests"),S("/api/user/anonymized_gists")]).then(E=>{let L=E[0],G=E[1],j=E[2],Y=[];L.forEach(ne=>{ne._type="repo";let x=ne.source||{};Y.push(w(ne,ne.repoId,ne.repoId,x.fullName,"/anonymize/"+ne.repoId,"/r/"+ne.repoId+"/"))}),G.forEach(ne=>{ne._type="pr";let x=ne.source||{};Y.push(w(ne,ne.pullRequestId,ne.pullRequestId,x.repositoryFullName?x.repositoryFullName+"#"+x.pullRequestId:void 0,"/pull-request-anonymize/"+ne.pullRequestId,"/pr/"+ne.pullRequestId+"/"))}),j.forEach(ne=>{ne._type="gist";let x=ne.source||{};Y.push(w(ne,ne.gistId,ne.gistId,x.gistId,"/gist-anonymize/"+ne.gistId,"/gist/"+ne.gistId+"/"))}),e.items=Y,e.removedCount=Y.filter(ne=>ne._statusKey==="removed").length,e.loading=!1})}let b=0,T=!1;e.dashboardCursor=null,e.dashboardError="";function O(E){let L=E.source||{};return E._type==="repo"?w(E,E.repoId,E.repoId,L.fullName,"/anonymize/"+E.repoId,"/r/"+E.repoId+"/"):E._type==="pr"?w(E,E.pullRequestId,E.pullRequestId,L.repositoryFullName?L.repositoryFullName+"#"+L.pullRequestId:void 0,"/pull-request-anonymize/"+E.pullRequestId,"/pr/"+E.pullRequestId+"/"):w(E,E.gistId,E.gistId,L.gistId,"/gist-anonymize/"+E.gistId,"/gist/"+E.gistId+"/")}function F(E=!1){if(T)return N();let L=++b;return e.loading=!E,e.loadingMore=E,e.dashboardError="",t.get("/api/user/dashboard",{params:{q:e.search,type:e.typeFilter,sort:e.orderBy,statuses:Object.keys(e.filters.status).filter(G=>e.filters.status[G]!==!1).join(",")||"none",attention:String(e.projectView==="attention"),cursor:E?e.dashboardCursor:void 0}}).then(G=>{if(L===b){if(!Array.isArray(G.data?.items))return T=!0,N();e.items=(E?e.items:[]).concat(G.data.items.map(O)),e.dashboardCursor=G.data.cursor,e.dashboardTotals=G.data,E||_()}},G=>{if(L===b){if(G.status===404)return T=!0,N();e.dashboardError="Projects could not be loaded. Please try again."}}).finally(()=>{L===b&&(e.loading=!1,e.loadingMore=!1)})}e.loadMoreProjects=()=>F(!0);let H;e.watchGroup(["search","typeFilter","orderBy","projectView"],()=>{T||(H&&u.timeout.cancel(H),H=u.timeout(()=>F(),150))},!1),e.watch("filters",()=>{T||F()},!0,!1),e.on("dispose",()=>{b++}),F(),e.openItem=(E,L)=>{if(!E._viewUrl)return;let G=L&&L.target;G&&G.closest&&G.closest("a, button, .dropdown, input")||(o.location.href=E._viewUrl)},e.hiddenStatusCount=()=>Object.keys(e.filters.status).filter(E=>e.filters.status[E]===!1).length,e.hasHiddenStatus=()=>e.hiddenStatusCount()>0;let se=()=>Object.keys(e.statusKeyLabels);e.onlyRemovedShown=()=>se().every(E=>E==="removed"==(e.filters.status[E]!==!1)),e.isActiveDefault=()=>se().every(E=>E==="removed"==(e.filters.status[E]===!1)),e.statusView=()=>e.projectView==="attention"?"attention":e.onlyRemovedShown()?"removed":e.filters.status.removed===!1?"active":"custom",e.setStatusView=E=>{if(E==="attention")return e.setProjectView("attention");e.projectView="all",se().forEach(L=>{e.filters.status[L]=E==="removed"?L==="removed":L!=="removed"})},e.statusChipKeys=()=>{let E=e.statusView();return E==="removed"?[]:se().filter(L=>e.filters.status[L]===!1&&!(L==="removed"&&E!=="custom"))},e.removedCount=null;function _(){if(T){e.removedCount=e.items.filter(L=>L._statusKey==="removed").length;return}let E=e.dashboardTotals;!E||e.projectView!=="all"||e.search.trim()||e.typeFilter!=="all"||(e.isActiveDefault()?e.removedCount=Math.max(0,E.total-E.filtered):e.onlyRemovedShown()&&(e.removedCount=E.filtered))}e.showViewTabs=()=>e.statusView()!=="active"||e.attentionCount()>0||e.removedCount>0||e.removedCount==null&&!!e.dashboardTotals&&e.dashboardTotals.total>e.dashboardTotals.filtered,e.hasActiveFilters=()=>e.projectView!=="all"||e.typeFilter!=="all"||e.search.trim().length>0||Object.keys(e.filters.status).some(E=>e.filters.status[E]===!1),e.showClearFilters=()=>e.search.trim().length>0||e.typeFilter!=="all"||e.statusChipKeys().length>0,e.isPlainView=()=>!e.showClearFilters(),e.clearFilters=()=>{let E=e.statusView();e.typeFilter="all",e.search="",e.setStatusView(E==="removed"?"removed":"active")};function z(E,L,G,j){t.get("/api/repo/"+E).then(async Y=>{let ne=j!==void 0&&j!==Y.data.status;for(let x of e.items)if(x._type==="repo"&&x.repoId==E){ne=ne||x.status!==Y.data.status;let fe=e.needsAttention(x);x.status=Y.data.status,x.statusMessage=Y.data.statusMessage,x._statusKey=c(x.status),x._statusKey!=="progress"&&(x._stale=!1);let me=e.needsAttention(x);e.dashboardTotals&&fe!==me&&(e.dashboardTotals.attention=Math.max(0,e.dashboardTotals.attention+(me?1:-1)));break}if(ne&&!T){e.dashboardCursor=null;let x=e.selectedProject;await F(),x&&e.selectedProject===x&&(e.selectedProject=e.items.find(fe=>fe._type===x._type&&fe._id===x._id)||null)}if(Y.data.status=="ready"||Y.data.status=="error"||Y.data.status=="removed"||Y.data.status=="expired"){L(Y.data);return}u.timeout(()=>z(E,L,G,Y.data.status),2500)},G)}let I=E=>E==="repo"?"repository":E==="gist"?"gist":"pull request",q=E=>E==="repo"?"/api/repo":E==="gist"?"/api/gist":"/api/pr";e.removeItem=E=>{let L=I(E._type);if(confirm(`Are you sure that you want to remove the ${L} ${E._id}?`)){let G=rt({title:`Removing ${E._id}...`,date:new Date,body:`The ${L} ${E._id} is going to be removed.`});e.addToast(G);let j=`${q(E._type)}/${E._id}`;t.delete(j).then(()=>{E._type==="repo"?z(E._id,()=>{G.title=`${E._id} is removed.`,G.body=`The ${L} ${E._id} is removed.`},void 0,E.status):(G.title=`${E._id} is removed.`,G.body=`The ${L} ${E._id} is removed.`,F())},Y=>{G.title=`Error during the removal of ${E._id}.`,G.body=Y.body,F()})}},e.refreshItem=E=>{let L=I(E._type),G=rt({title:`Refreshing ${E._id}...`,date:new Date,body:`The ${L} ${E._id} is going to be refreshed.`});e.addToast(G);let j=ne=>{G.title=`Error during the refresh of ${E._id}.`,G.body=ne.data?.error||ne.body||"The refresh could not be completed. Please try again.",F()},Y=`${q(E._type)}/${E._id}/refresh`;t.post(Y).then(()=>{E._type==="repo"?z(E._id,ne=>{if(ne.status!=="ready"){j({body:ne.statusMessage||`The repository is ${ne.status}.`});return}G.title=`${E._id} is refreshed.`,G.body=`The ${L} ${E._id} is refreshed.`},j,E.status):(G.title=`${E._id} is refreshed.`,G.body=`The ${L} ${E._id} is refreshed.`,F())},j)},e.extendItem=E=>{let L=I(E._type),G=rt({title:`Extending ${E._id}...`,date:new Date,body:`The expiration of ${L} ${E._id} is being extended.`});e.addToast(G);let j=`${q(E._type)}/${E._id}/extend`;t.post(j).then(Y=>{let ne=Y?.data?.expirationDate?` until ${new Date(Y.data.expirationDate).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}`:"";E._type==="repo"?z(E._id,()=>{G.title=`${E._id} is extended.`,G.body=`${L} ${E._id} is extended${ne}.`},void 0,E.status):(G.title=`${E._id} is extended.`,G.body=`${L} ${E._id} is extended${ne}.`,F())},Y=>{G.title=`Error during the extension of ${E._id}.`;let ne=Y.data&&Y.data.error;G.body=ne||Y.body,ne&&Object.prototype.hasOwnProperty.call(Qn.ERRORS,ne)&&(G.body=Qn.ERRORS[ne]),F()})},e.itemFilter=E=>{if(e.projectView==="attention"&&!e.needsAttention(E)||e.typeFilter!=="all"&&E._type!==e.typeFilter||e.filters.status[E._statusKey]===!1)return!1;let L=e.search.trim().toLowerCase();return!!(L.length==0||E._label&&String(E._label).toLowerCase().indexOf(L)>-1||E._source&&String(E._source).toLowerCase().indexOf(L)>-1||E._id&&String(E._id).toLowerCase().indexOf(L)>-1||E.conference&&String(E.conference).toLowerCase().indexOf(L)>-1)}};var Qc=function(e,t,s){let i=yt();e.repoId=s.repoId,e.reviewUrl=window.location.origin+"/r/"+encodeURIComponent(s.repoId)+"/",e.repo=null,e.progress=0,e.rateLimitResetAt=0,e.rateLimitCountdown="",e.shareUrl=(window.location?.origin||"")+"/r/"+encodeURIComponent(e.repoId)+"/",e.copied=!1;let o=null;e.copyShareUrl=async()=>{try{await ol(e.shareUrl),e.copied=!0,o&&i.timeout.cancel(o),o=i.timeout(()=>{e.copied=!1},2e3)}catch{e.addToast?.({title:"Copy this anonymous link",body:e.shareUrl})}},e.selectShareUrl=h=>{let y=window.getSelection?.();if(!y||!h?.target)return;let g=document.createRange();g.selectNodeContents(h.target),y.removeAllRanges(),y.addRange(g)};var r=null;let u=null,p=!1;function c(h){e.rateLimitResetAt=h,r&&i.interval.cancel(r);function y(){var g=Math.max(0,Math.ceil((h-Date.now())/1e3));if(g<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,i.interval.cancel(r),r=null;else{var k=Math.floor(g/60),w=g%60;e.rateLimitCountdown=k>0?k+"m "+w+"s":w+"s"}}y(),r=i.interval(y,1e3)}e.on("dispose",function(){p=!0,r&&i.interval.cancel(r),u&&i.timeout.cancel(u)});function v(h){if(!h)return h;var y=h.match(/^rate_limited:(\d+)$/);return y?(c(parseInt(y[1],10)),null):(e.rateLimitResetAt=0,h)}e.getStatus=()=>{p||t.get("/api/repo/"+e.repoId,{repoId:e.repoId,repoUrl:e.repoUrl}).then(h=>{if(!p){e.repo=h.data,h.data.rateLimitResetAt?c(h.data.rateLimitResetAt):e.repo.statusMessage=v(e.repo.statusMessage),e.repo.status=="ready"?e.progress=100:e.repo.status=="queue"?e.progress=10:e.repo.status=="downloaded"?e.progress=50:e.repo.status=="download"||e.repo.status=="preparing"?e.progress=25:e.repo.status=="anonymizing"&&(e.progress=75);var y=!["ready","removed","expired"].includes(e.repo.status);e.repo.status=="error"&&!e.rateLimitResetAt&&(y=!1),y&&(u=i.timeout(e.getStatus,2e3))}},h=>{e.error=h.data.error})},e.getStatus()},br=function(e,t,s,i,o,r,u){Hc(),e.renderRedacted=Us,e.sourceUrl="",e.workspaceOpen=!1,e.sourceUrlError="",e.previewStatus="idle",e.sourceLoading=!1,e.mobilePane="settings";let p=window.matchMedia?.("(max-width: 767px)");e.mobileWorkspace=!!p?.matches,p?.addEventListener&&Ht()(p,"change",C=>{e.mobileWorkspace=C.matches}),e.selectMobilePane=C=>{e.mobilePane=C};let c=0,v=!1,h=new Set,y=(C,M=!1)=>!v&&C.generation===c&&C.url===e.sourceUrl.trim()&&C.connection===e.githubConnection&&(!M||C.branch===e.source.branch),g=()=>{let C={generation:c,url:e.sourceUrl.trim(),connection:e.githubConnection,branch:e.source.branch};return h.add(C),e.sourceLoading=!0,C},k=C=>{h.delete(C),v||(e.sourceLoading=[...h].some(M=>y(M)))};e.on("dispose",()=>{v=!0,c++});let w=null,S=C=>C.gistId&&!C.repo?"gist:"+C.gistId.toLowerCase():(C.owner+"/"+C.repo).toLowerCase()+(C.pullRequestId?"/pull/"+C.pullRequestId:""),N=Ta(e,["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"],"anonymize:"+(o.path?.()||"")),b=null,T=null,O=null;e.hostingReview=!1,e.previewExpanded=!1,e.taskValidationError="",e.editRepository=()=>{e.mobilePane="settings",e.previewExpanded=!1,Ge(()=>document.querySelector(".anonymize-fields .is-invalid")?.focus())},e.submitRepository=C=>{if(e.taskValidationError="",!(e.sourceLoading||e.billingBusy||e.hostingSaving||e.billingPending)){if(ri()||e.anonymize?.invalid||e.sourceUrlError){e.taskValidationError="Check the highlighted fields before continuing.",e.editRepository();return}return e.hostingNeedsPayment()?e.checkoutRepository(Zi(e.hostingChoice())?e.hostingChoice():""):e.anonymizeRepo(C)}},e.hostingPayment=!1,e.hostingAlternatives=!1,e.hostingPrice=C=>C.amount==null?"Price shown at checkout":new Intl.NumberFormat(void 0,{style:"currency",currency:C.currency,minimumFractionDigits:0,maximumFractionDigits:2}).format(C.amount/100)+(C.interval==="year"?" billed annually":" billed monthly"),e.hostingPlan="",e.hostingSaving=!1,e.selectedHostingPlan=()=>e.authorPlans().find(C=>C.id===e.hostingPlan)||e.hostingSubscriptionPlan?.();let F=()=>t.get("/api/user/quota").then(C=>{e.hostingQuota=C.data});er(e,t,async()=>{await F(),e.hostingQuotaBlocked=!1},{confirmedMessage:"Hosting status refreshed. Your draft is ready to continue."}),F().catch(()=>{}),e.authorPlans=()=>(e.billing?.plans||[]).filter(C=>["author_monthly","author_annual"].includes(C.id)),e.conferenceHosting=()=>!!(e.conference&&e.conference_data?.hosting),e.hasAuthorHosting=()=>["author_monthly","author_annual"].includes(e.billing?.allowance?.plan),e.hostingNeedsPayment=()=>!e.billing?.enabled||e.detectedType!=="repo"||e.hasAuthorHosting()||e.isUpdate&&e.role!=="owner"?!1:!!(e.options?.expirationMode==="never"&&!e._existingNever&&!e.repositoryGrants("repo_never").length||!e.conferenceHosting()&&e.hostingQuotaBlocked),e.repositoryGrants=C=>(e.billing?.grants||[]).filter(M=>M.planId===C&&M.scope===`repo:${e.repoId}`&&["active","paid","past_due"].includes(M.status)&&new Date(M.until).getTime()>Date.now()),e.repositoryAddonPlans=()=>(e.billing?.plans||[]).filter(C=>Zi(C.id)&&(["repo_extend","repo_pack"].includes(C.id)||!e.repositoryGrants(C.id).length)),e.hostingOneTimePlans=()=>{let C=M=>M.map(B=>(e.billing?.plans||[]).find(K=>K.id===B&&!e.repositoryGrants(B).length)).filter(Boolean);return e.options?.expirationMode==="never"&&!e._existingNever&&!e.repositoryGrants("repo_never").length?C(["repo_never"]):e.hostingQuotaBlocked&&!e.conferenceHosting()?C(["repo_slot","repo_pack"]):[]},e.hostingOneTime=()=>e.hostingOneTimePlans()[0];let H=["free","repo_slot"];e.liveUpdatesIncluded=()=>{if(!e.billing?.enabled||e.detectedType!=="repo"||e.isUpdate&&e.role!=="owner"||e.conferenceHosting()||e.hasAuthorHosting())return!0;let C=e.billing?.allowance?.plan;return C&&!H.includes(C)?!0:e.repositoryGrants("author_pass").length>0||e.repositoryGrants("repo_pack").length>0},e.liveUpdatesPrice=()=>{let C=(e.billing?.plans||[]).find(M=>M.id==="author_pass");return C?.amount!=null?e.billingAmount(C):""},e.showHostingOptions=()=>{e.mobilePane="settings",Ge(()=>document.getElementById("repository-hosting")?.scrollIntoView({block:"start",behavior:"smooth"}))},e.neverExpireTag=()=>{if(e.hasAuthorHosting())return"Included in your subscription";if(e.repositoryGrants("repo_never").length)return"Paid for this repository";let C=(e.billing?.plans||[]).find(M=>M.id==="repo_never");return C?.amount!=null?`${e.billingAmount(C)} once, or with a subscription`:"Subscription or one-time add-on"},e.hostingCycle="author_annual",e.hostingSubscriptionPlan=()=>e.authorPlans().find(C=>C.id===e.hostingCycle)||e.authorPlans().find(C=>C.interval==="year")||e.authorPlans()[0],e.hostingAnnualSavings=()=>{let C=e.authorPlans().find(B=>B.interval==="month")?.amount,M=e.authorPlans().find(B=>B.interval==="year")?.amount;return C&&M&&Me.hostingOneTimePlans().concat(e.authorPlans().length?[e.hostingSubscriptionPlan()]:[]),e.hostingOptionName=C=>({repo_slot:"Add this repository",repo_pack:"Paper pack",repo_never:"Never expire",author_annual:"Author subscription",author_monthly:"Author subscription"})[C.id]||C.name,e.hostingOptionBlurb=C=>({repo_slot:"Hosted outside your free repositories. Refresh it by hand.",repo_pack:"Adds automatic updates for 180 days and keeps the link online for a year.",repo_never:"This link never expires. No subscription."})[C.id]||`${C.repositories} repositories, ${e.billingBytes(C.storage)}, automatic updates and links that never expire.`,e.hostingChoice=()=>{let C=e.hostingOneTimePlans();return C.some(M=>M.id===e.hostingPlan)||e.authorPlans().some(M=>M.id===e.hostingPlan)?e.hostingPlan:C[0]?.id||e.hostingSubscriptionPlan()?.id||""},e.checkoutRepository=async(C="")=>{if(!(e.hostingSaving||e.billingBusy||!e.billing?.csrf||e.sourceLoading)){e.hostingSaving=!0,e.billingError="";try{let M=N.checkpoint(),B=JSON.stringify(M);(!T||B!==O)&&(T=(await t.post("/api/billing/draft",{path:o.path(),values:M},{headers:{"x-csrf-token":e.billing.csrf}})).data.id,O=B);let K=e.authorPlans().find(le=>le.id===e.hostingPlan)||e.hostingSubscriptionPlan();if(!C&&!K)throw new Error("No author plan available");await e.checkout(C||K.id,C?e.repoId:"",{draftId:T})}catch{e.billingError="Your draft could not be saved for checkout. Your form is unchanged. Please try again."}finally{e.hostingSaving=!1}}},e.useDatedHosting=()=>{e.options.expirationMode="remove"},e.discardDraft=async()=>{N.discard(),e.workspaceOpen=!!e.sourceUrl,e.error=null,e.sourceUrl?await e.urlSelected(!0):(c++,e.sourceLoading=!1,e.detectedType=null,e.details=null,e.sourceUrlError="",Gt.cancel(),Cn.cancel(),Sn.cancel(),e.previewStatus="idle")},e.githubConnection=void 0,e.githubConnections=null,e.gistOAuthRequired=!1,e.gistAppRequired=!1;let se=()=>{let C={};for(let M of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])C[M]=e[M];sessionStorage.setItem("github-access-draft",JSON.stringify({path:o.path(),savedAt:Date.now(),draft:C}))};e.connectGistApp=()=>{se(),window.location.href="/github/app/login?returnTo="+encodeURIComponent(o.path())},e.connectGistOAuth=()=>{se(),window.location.href="/github/login?returnTo="+encodeURIComponent(o.path())},e.grantGitHubAccess=()=>{se();let C=o.path(),M=J(e.sourceUrl)||"",B=e.githubConnections?.appConnected?"/github/app/install":"/github/app/login";window.location.href=B+"?returnTo="+encodeURIComponent(C)+"&repository="+encodeURIComponent(M)+"&install=1"},e.chooseGitHubConnection=async C=>{e.githubConnection=C,e.readme="",e.sourceUrl&&await ue()},e.detectedType=null,e.repoId="",e.pullRequestId="",e.gistId="",e.terms="",e.defaultTerms="",e.branches=[],e.source={branch:"",commit:""},e.options={expirationMode:"remove",expirationDate:new Date,update:!1,image:!0,pdf:!0,notebook:!0,link:!0,body:!0,title:!0,origin:!1,diff:!0,content:!0,comments:!0,username:!0,date:!0};function _(){let C=new Date;return C.setMonth(C.getMonth()+6),C}e.options.expirationDate=_();function z(C){let M=C.getFullYear(),B=String(C.getMonth()+1).padStart(2,"0"),K=String(C.getDate()).padStart(2,"0");return`${M}-${B}-${K}`}e.minExpirationDate=z(new Date);let I=()=>{let C=new Date,M=new Date(C);if(M.setFullYear(M.getFullYear()+1),e.billing?.enabled&&e.detectedType==="repo"&&!e.hasAuthorHosting()){M=new Date(C),M.setMonth(M.getMonth()+(e.billing.freeExpirationMonths||5));for(let le of e.repositoryGrants("repo_extend"))new Date(le.until)>M&&(M=new Date(le.until));e.conference_data?.endDate&&new Date(e.conference_data.endDate)>M&&(M=new Date(e.conference_data.endDate)),e._savedExpirationDate&&e._savedExpirationDate>M&&(M=new Date(e._savedExpirationDate));let B=e.options?.expirationDate,K=e._savedExpirationDate&&B instanceof Date&&B.getTime()===e._savedExpirationDate.getTime();B instanceof Date&&B>M&&!K&&(e.options.expirationDate=new Date(M))}e.maxExpirationDate=z(M)};I(),e.watch(()=>[e.billing,e.repoId,e.conference_data,e.isUpdate,e._savedExpirationDate,e.options?.expirationMode,e.detectedType],I,!0,!1),e.anonymize_readme="",e.readme="",e.isUpdate=!1,e.userRepos=[],e.userReposStatus="idle",e.userRepoFilter="",e.userRepoPage=1,e.userRepoNext=null,e.userReposSyncedAt=null,e.userReposSyncing=!1,e.userReposWebhooks=!1,e.userReposNow=Date.now(),e.userReposRefreshFailed=!1;let q=0,E,L,G=0,j=[0],Y=yt();Y.interval(()=>{e.userReposNow=Date.now()},3e4),e.on("dispose",()=>{q++,clearTimeout(E)}),e.userReposUpdatedLabel=()=>{if(e.userReposSyncing)return"Updating\u2026";if(e.userReposRefreshFailed)return"Couldn\u2019t update";if(!e.userReposSyncedAt)return"";let C=Math.floor((e.userReposNow-Date.parse(e.userReposSyncedAt))/6e4);return C<1?"Updated just now":C<60?"Updated "+C+" min ago":C<1440?"Updated "+Math.floor(C/60)+" h ago":"Updated "+or(e.userReposSyncedAt)},e.userReposUpdatedTitle=()=>e.userReposWebhooks?"New repositories you give the GitHub App access to appear automatically. Refresh to check GitHub now.":"Your repository list is saved. Refresh to fetch new repositories from GitHub.",e.loadUserRepos=async(C={})=>{clearTimeout(E),Y.timeout.cancel(L);let M=++q,B=e.userRepoFilter.trim();C.quiet||(e.userReposStatus="loading",e.userRepos=[]),C.force&&(e.userReposSyncing=!0,e.userReposRefreshFailed=!1),C.poll||(G=0);let K=j[e.userRepoPage-1];try{for(let le=0;le<5;le++){let ge=await t.get("/api/user/repository_picker",{params:{cursor:K,q:B,connection:e.githubConnection,force:C.force&&le===0?1:void 0}});if(v||M!==q)return;if(e.userRepos=ge.data.items||[],e.userRepoNext=ge.data.nextCursor??null,e.userReposSyncedAt=ge.data.syncedAt||null,e.userReposSyncing=!!ge.data.syncing,e.userReposWebhooks=!!ge.data.webhooks,e.userReposNow=Date.now(),e.userRepos.length||e.userRepoNext===null||!B)break;K=e.userRepoNext}e.userReposStatus="ready",e.userReposSyncing&&G<60&&(G++,L=Y.timeout(()=>{!v&&M===q&&e.loadUserRepos({quiet:!0,poll:!0})},2e3))}catch{if(v||M!==q)return;e.userReposSyncing=!1,!C.quiet||!e.userRepos.length?e.userReposStatus="error":C.force&&(e.userReposRefreshFailed=!0)}},e.refreshUserRepos=()=>{e.userReposSyncing||e.userReposStatus==="loading"||e.loadUserRepos({quiet:!0,force:!0})},e.changeUserRepoPage=C=>{if(e.userReposStatus!=="loading"){if(C>0&&e.userRepoNext!==null)j[e.userRepoPage]=e.userRepoNext,e.userRepoPage++;else if(C<0&&e.userRepoPage>1)e.userRepoPage--;else return;e.loadUserRepos()}},e.watch(()=>[e.userRepoFilter,e.githubConnection],()=>{i.repoId||i.pullRequestId||i.gistId||(q++,clearTimeout(E),j=[0],e.userRepoPage=1,e.userRepoNext=null,e.userRepos=[],e.userReposStatus="loading",E=setTimeout(()=>{v||e.loadUserRepos()},300))},!0,!1),e.selectUserRepo=C=>{if(C?.fullName)return e.sourceUrl="https://github.com/"+C.fullName,e.urlSelected()},e.previousConfigurations=[],e.previousConfigurationId="";let ne,x=C=>String(C||"").replace(/\/$/,"").replace(/\.git$/i,"").toLowerCase();async function fe(){if(e.isUpdate||i.repoId||i.pullRequestId||i.gistId)return;let C={generation:c,url:e.sourceUrl.trim(),connection:e.githubConnection};try{ne||(ne=t.get("/api/user/anonymized_repositories").then(K=>K.data));let M=await ne;if(!y(C))return;let B=x(J(C.url));e.previousConfigurations=M.filter(K=>K.repoId&&K.options&&x(K.source?.fullName)===B).sort((K,le)=>(Date.parse(le.anonymizeDate)||0)-(Date.parse(K.anonymizeDate)||0)),e.previousConfigurationId=e.previousConfigurations[0]?.repoId||""}catch{ne=void 0}}e.sourceSummary=()=>{let C=String(e.sourceUrl||""),M=/github\.com\/([^/\s]+\/[^/\s]+)\/pull\/(\d+)/i.exec(C);return M?M[1]+" \xB7 PR #"+M[2]:(M=/gist\.github\.com\/([^/\s]+)\/([0-9a-f]{8,})/i.exec(C),M?M[1]+" \xB7 gist "+(M[2].length>12?M[2].slice(0,7)+"\u2026"+M[2].slice(-4):M[2]):"")},e.sourceError="",e.sourceErrorText="";let me={repo_access_limited:"access",repo_not_accessible:"access",repo_saml_enforcement:"access",repo_already_anonymized:"used",github_rate_limit_exceeded:"github-throttle",rate_limited:"throttle",github_unavailable:"upstream",internal_error:"server",unreachable:"server",github_app_reconnect_required:"reconnect",token_expired:"reconnect",repo_not_found:"missing",github_app_access_required:"missing",pull_request_not_found:"missing",gist_not_found:"missing"},qe=C=>{let M=typeof C?.data?.error=="string"?C.data.error:"",B=C?.status===429?me[M]==="github-throttle"?M:"rate_limited":C?.status>=500?M==="github_unavailable"?M:"internal_error":M||(C?.status===404?"repo_not_found":"unknown_error");e.sourceError=B,e.sourceErrorText="",me[B]||r("ERRORS."+B).then(K=>{e.sourceError===B&&K!=="ERRORS."+B&&(e.sourceErrorText=K)},()=>{}),ai(B),Se("sourceUrl","missing",!1)},Ue=()=>{e.sourceError="",e.sourceErrorText=""};e.sourceReady=()=>!!e.isUpdate||!!e.details,e.sourceProblem=()=>{let C=e.anonymize?.sourceUrl?.errors||{};if(C.github||e.sourceUrlError&&e.workspaceOpen)return{kind:"github",title:"Not a GitHub URL",text:"Paste a repository, pull request, or gist URL from github.com."};if(e.sourceLoading||e.details&&!C.used&&!e.sourceError)return null;if(e.gistAppRequired||e.gistOAuthRequired)return{kind:"connect",title:"Couldn't load this gist",text:"Connect GitHub to read gists."};let M=e.sourceError||(C.used?"repo_already_anonymized":C.access?"repo_not_accessible":C.missing?"repo_not_found":"");if(!M)return null;let B=me[M]||"other",K=e.detectedType,le="this gist";try{let Wt=parseGithubUrl(String(e.sourceUrl||"").trim());K==="pr"?le=`pull request #${Wt.pullRequestId} in ${Wt.owner}/${Wt.repo}`:K!=="gist"&&(le=`${Wt.owner}/${Wt.repo}`)}catch{}let ge=K==="pr"?"this pull request":K==="gist"?"this gist":"this repository",He=K!=="gist"&&e.githubConnection==="github-app",mt=e.isUpdate&&K==="repo"&&e.role==="owner"&&e.accessRepairAllowed&&e.githubConnections?.appEnabled&&He&&e.sourceUrl==="https://github.com/"+e._originalFullName?null:K==="gist"||!e.githubConnection?"link":He?"app":"link",Rt="Couldn't load "+ge;if(B==="github-throttle")return{kind:B,title:Rt,text:"GitHub's API rate limit has been reached. Wait for the limit to reset, then try again. Your repository access settings do not need to change.",retry:!0};if(B==="throttle")return{kind:B,title:Rt,text:"Too many requests. Wait a little, then try loading the source again.",retry:!0};if(B==="upstream")return{kind:B,title:Rt,text:"GitHub is temporarily unavailable. Try loading the source again in a moment.",retry:!0};if(B==="server")return{kind:B,title:Rt,text:"Anonymous GitHub could not load the source because of a server error. Try again in a moment. This does not mean the repository is missing or that you need to change its permissions.",retry:!0};if(B==="reconnect")return{kind:B,title:Rt,text:"Your GitHub authorization has expired or was revoked. Reconnect your GitHub account, then try loading the source again.",manage:"link",retry:!0};if(B==="used")return{kind:B,title:"Already anonymized",text:`You've already anonymized ${le}. Open it from My work to change its settings.`,dashboard:!0};if(B==="access"){let Wt=M==="repo_saml_enforcement"?"Its organization requires single sign-on.":"Its organization restricts third-party apps.",vf=M==="repo_saml_enforcement"?"Authorize your GitHub session for the organization, then try again.":"An organization owner may need to approve Anonymous GitHub. You can also anonymize a personal fork.";return{kind:B,title:Rt,text:`We can't read ${le}. ${Wt}`,note:vf,manage:mt,retry:!0}}return B==="missing"?{kind:B,title:Rt,text:`We can't read ${le}. It doesn't exist, or ${He?"the Anonymous GitHub app hasn't been given access to it":"your GitHub account can't see it"}.`,manage:mt,retry:!0}:{kind:B,title:Rt,text:e.sourceErrorText||"GitHub didn't return it. Try again in a moment.",retry:!0}},e.submitBlockedReason=()=>e.sourceLoading?e.detectedType==="pr"?"Waiting for the pull request to load from GitHub\u2026":e.detectedType==="gist"?"Waiting for the gist to load from GitHub\u2026":"Waiting for the repository to load from GitHub\u2026":e.sourceReady()?"":e.sourceProblem()?.kind==="github"?"Enter a GitHub URL to continue.":["github-throttle","throttle","upstream","server"].includes(e.sourceProblem()?.kind)?"Wait for the source to load successfully before continuing.":e.detectedType==="pr"?"Add a pull request you can access to continue.":e.detectedType==="gist"?"Add a gist you can access to continue.":"Add a repository you can access to continue.",e.sourceIsPrivate=()=>e.details?e.detectedType==="gist"?e.details.gist?!e.details.gist.isPublic:!0:e.details.private!==!1:!1,e.previewId=()=>e.detectedType==="pr"?e.pullRequestId:e.detectedType==="gist"?e.gistId:e.repoId,e.previewPath=()=>{let C=e.previewId();return C?(e.detectedType==="pr"?"/pr/":e.detectedType==="gist"?"/gist/":"/r/")+encodeURIComponent(C)+"/":""},e.previewUrl=()=>{let C=e.previewPath();return C?"anonymous.4open.science"+C.replace(/\/$/,""):""},e.previewRedactions=()=>{let C=K=>typeof K=="string"?(K.match(ni)||[]).length:0;if(e.detectedType==="repo")return e.previewViewer.redactionCount();let M=e.detectedType==="pr"?Ro:To,B=0;return M.forEach(K=>{B+=C(K)}),B};let Xe=(C,M)=>C.localeCompare(M,void 0,{sensitivity:"base"}),ze=C=>C.slice(C.lastIndexOf("/")+1),lt={key:null,files:[]};e.previewTreeFiles=()=>{if(!e.preserve.commit||!oe)return[];let C=e.preserve.commit+"\0"+e.terms+"\0"+Eo.size+"\0"+oe.files.length;if(lt.key===C)return lt.files;let M=oe.files.map(B=>{let K=e.previewPathName(B),le=K.lastIndexOf("/");return{name:K.slice(le+1),path:le<0?"":K.slice(0,le),size:0,sourcePath:B}});return lt={key:C,files:M},M},e.selectPreviewPath=C=>{let M=e.previewTreeFiles().find(B=>"/"+(B.path?B.path+"/":"")+B.name===C);M&&e.openPreviewFile(M.sourcePath)},e.existingConfigurationUrl=()=>{let C=e.previousConfigurations.find(M=>M.repoId===e.previousConfigurationId);return C?"/anonymize/"+encodeURIComponent(C.repoId):null};function Re(C){t.get("/api/user/default").then(M=>{let B=M.data;B.terms&&(e.defaultTerms=B.terms.join(` +`)),e.options=Object.assign({},e.options,B.options),e.options.expirationDate=B.options&&B.options.expirationDate?new Date(B.options.expirationDate):_(),!i.repoId&&!i.pullRequestId&&!i.gistId&&!e.anonymize?.terms?.dirty&&(e.terms=e.defaultTerms),C&&C()})}function Se(C,M,B){e.anonymize&&e.anonymize[C]&&e.anonymize[C].setValidity(M,B)}function J(C){try{let M=parseGithubUrl(C);if(M&&M.owner&&M.repo)return M.owner+"/"+M.repo}catch{}return null}e.accessRepairAllowed=!1,e.repairingGitHubAccess=!1,e.accessRepairMessage="",e.repairGitHubAccess=async()=>{if(!e.accessRepairAllowed||e.repairingGitHubAccess||!e.githubConnections?.appEnabled||!i.repoId||e.role!=="owner"||e.githubConnection!=="github-app"||J(e.sourceUrl)!==e._originalFullName)return;e.repairingGitHubAccess=!0,e.accessRepairMessage="";let C=g();try{let M=await t.get("/github/connections");if(e.githubConnections=M.data,!M.data.appEnabled)return;let B=await t.post("/github/connections/migrate",{type:"repository",id:i.repoId,connection:"github-app"},{headers:{"X-CSRF-Token":M.data.csrf}});if(!y(C))return;e.error=null,B.data.fullName&&(e._originalFullName=B.data.fullName,e.source.fullName=B.data.fullName,e.sourceUrl="https://github.com/"+B.data.fullName),e.accessRepairMessage="GitHub access repaired. Your anonymous URL and published commit are unchanged.",await e.urlSelected(!0)}catch{y(C)&&(e.accessRepairMessage="Unable to repair GitHub access. Check the App's repository permissions in Manage access, then retry. Your published snapshot has not been replaced.")}finally{e.repairingGitHubAccess=!1,k(C)}},e.reconnectingSource=!1,e.reconnectRepositoryId=void 0,e.reconnectSource=async()=>{if(confirm("Reconnect to the repository currently at this GitHub URL? Review its branch and commit before saving. Saving will replace the published snapshot.")){e.reconnectingSource=!0,e.reconnectRepositoryId=void 0,e.details=null,e.source.commit="",e.source.branch="",e.readme="",e.branches=[],Gt.cancel(),Cn.cancel(),Sn.cancel(),e.previewStatus="idle",e.anonymize_readme="",al();try{await be()}catch{}}};function ce(){return e.reconnectingSource||!e.isUpdate||!e._originalRepositoryID?void 0:J(e.sourceUrl)===e._originalFullName?e._originalRepositoryID:void 0}async function ue(){e._preservingDraft=!0;try{await e.urlSelected(!0)}finally{e._preservingDraft=!1}}async function he(){let C=new URLSearchParams(window.location.search).get("billingDraft");if(C){N.restore();try{let B=(await t.get("/api/billing/draft/"+encodeURIComponent(C))).data;if(B.path!==o.path())throw new Error("Wrong task");b=B.values.conference||null;for(let K of["sourceUrl","terms","repoId","source","options","conference","githubConnection"])Object.prototype.hasOwnProperty.call(B.values,K)&&(e[K]=B.values[K]);return e.options?.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate)),T=B.id,O=JSON.stringify(N.checkpoint()),e.draftRestored=!0,e.hostingReview=!0,e.sourceUrl&&await ue(),o.replace?.(o.path()),!0}catch{e.billingError="The checkout draft could not be restored. Retry by reloading this page; any local draft is still available."}}let M;try{M=JSON.parse(sessionStorage.getItem("github-access-draft")||"null")}catch{return!1}if(!M||M.path!==o.path()||Date.now()-M.savedAt>=30*6e4)return N.restore()?(e.sourceUrl&&await ue(),!0):!1;N.restore();for(let B of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])Object.prototype.hasOwnProperty.call(M.draft,B)&&(e[B]=M.draft[B]);return e.options.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate)),await ue(),sessionStorage.removeItem("github-access-draft"),!0}Re(()=>{!i.repoId&&!i.pullRequestId&&!i.gistId&&u(he,0),i.repoId&&i.repoId!=""&&(e.isUpdate=!0,e.detectedType="repo",e.repoId=i.repoId,t.get("/api/repo/"+e.repoId).then(async C=>{e.accessRepairAllowed=!["removed","archived","preparing","queue","download","removing","expiring"].includes(C.data.status),e.githubConnection=C.data.connection||"oauth",e.sourceUrl="https://github.com/"+C.data.source.fullName,e._originalFullName=C.data.source.fullName,e.terms=C.data.options.terms.filter(M=>M).join(` `),e.source=C.data.source,e.role=C.data.role||"owner",e._existingNever=C.data.options.expirationMode==="never",e._savedExpirationDate=C.data.options.expirationDate?new Date(C.data.options.expirationDate):null,e.coauthors=C.data.coauthors||[],e._originalBranch=C.data.source.branch,e.options=Object.assign({},e.options,C.data.options),e.conference=C.data.conference,e._originalConference=C.data.conference,e.repositoryID=C.data.source.repositoryID,e._originalRepositoryID=C.data.source.repositoryID,C.data.options.expirationDate&&(e.options.expirationDate=new Date(C.data.options.expirationDate)),w=S(parseGithubUrl(e.sourceUrl)),!await he()&&(await Promise.all([be(),Oe()]),No())},()=>{o.url("/404")})),i.pullRequestId&&i.pullRequestId!=""&&(e.isUpdate=!0,e.detectedType="pr",e.pullRequestId=i.pullRequestId,t.get("/api/pr/"+e.pullRequestId).then(async C=>{if(e.githubConnection=C.data.connection||"oauth",e.sourceUrl="https://github.com/"+C.data.source.repositoryFullName+"/pull/"+C.data.source.pullRequestId,e.terms=C.data.options.terms.filter(M=>M).join(` -`),e.source=C.data.source,e.options=Object.assign({},e.options,C.data.options),e.conference=C.data.conference,e._originalConference=C.data.conference,C.data.options.expirationDate&&(e.options.expirationDate=new Date(C.data.options.expirationDate)),w=S(parseGithubUrl(e.sourceUrl)),!await he())try{await dl()}catch{}},()=>{o.url("/404")})),i.gistId&&i.gistId!=""&&(e.isUpdate=!0,e.detectedType="gist",e.gistId=i.gistId,t.get("/api/gist/"+e.gistId).then(async C=>{e.sourceUrl="https://gist.github.com/"+C.data.source.gistId,e.terms=C.data.options.terms.filter(M=>M).join(` -`),e.source=C.data.source,e.options=Object.assign({},e.options,C.data.options),e.conference=C.data.conference,e._originalConference=C.data.conference,C.data.options.expirationDate&&(e.options.expirationDate=new Date(C.data.options.expirationDate)),w=S(parseGithubUrl(e.sourceUrl)),!await he()&&await ul()},()=>{o.url("/404")}))}),t.get("/github/connections").then(C=>{e.githubConnections=C.data,!i.repoId&&!i.pullRequestId&&!i.gistId&&e.githubConnection===void 0&&C.data.appEnabled&&C.data.appConnected&&(e.githubConnection="github-app",e.sourceUrl&&e.workspaceOpen&&ue())}).catch(()=>{}).finally(()=>{!v&&!i.repoId&&!i.pullRequestId&&!i.gistId&&e.userReposStatus==="idle"&&e.loadUserRepos()}),e.urlSelected=async(C=!1)=>{let M=++c;e.previousConfigurations=[],e.previousConfigurationId="";let B;try{B=parseGithubUrl(e.sourceUrl.trim())}catch{e.sourceLoading=!1,e.details=null,Ue(),Qt.cancel(),Vn.cancel(),qn.cancel(),e.previewStatus="idle",e.sourceUrlError=e.sourceUrl?"Please provide a valid GitHub URL.":"",Se("sourceUrl","github",!1);return}let K=S(B),le=C||w===K;w=K,e.sourceUrlError="",Se("sourceUrl","github",!0),Ue();let ge=document.activeElement?.id==="sourceUrl-landing";e.workspaceOpen=!0,setTimeout(()=>{let He=window.document.getElementById("sourceUrl");if(He){try{He.setSelectionRange(0,0)}catch{}He.scrollLeft=0}},50),ge&&u(()=>document.getElementById("sourceUrl")?.focus(),0),e.reconnectingSource=!1,e.reconnectRepositoryId=void 0,!le&&!e.isUpdate&&(e.repoId="",e.pullRequestId="",e.gistId=""),e.details=null,e.branches=[],le||(e.source={type:"GitHubStream",branch:"",commit:""}),Qt.cancel(),Vn.cancel(),qn.cancel(),Ro.clear(),To.clear(),e.previewStatus="idle",e.anonymize_readme="",e.readme="",cf(),e.detectedType=null,e.gistOAuthRequired=!1,e.gistAppRequired=!1,e._preservingDraft=le;try{B.gistId&&!B.repo?(e.detectedType="gist",e.source={gistId:B.gistId},await ul()):B.pullRequestId?(e.detectedType="pr",e.source={repositoryFullName:B.owner+"/"+B.repo,pullRequestId:B.pullRequestId},await dl()):(e.detectedType="repo",fe(),await Promise.all([be(),Oe()]),No())}catch{}finally{M===c&&(e._preservingDraft=!1)}$('[data-toggle="tooltip"]').tooltip()},$('[data-toggle="tooltip"]').tooltip(),e.watch("source.branch",async()=>{if(e.detectedType!=="repo")return;let C=e.branches.filter(B=>B.name==e.source.branch)[0];if(!C)return;!(!e.reconnectingSource&&e.isUpdate&&e._originalBranch===e.source.branch&&e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=C.commit),e.readme=C.readme,await Oe(),No()}),e.getBranches=async C=>{let M=parseGithubUrl(e.sourceUrl),B=g();try{if(!e.details){await be(C);return}let K=await t.get(`/api/repo/${M.owner}/${M.repo}/branches`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&i.repoId&&J(e.sourceUrl)===e._originalFullName?i.repoId:void 0,connection:e.githubConnection,force:C===!0||e.reconnectingSource?"1":"0",repositoryID:ce()}});if(!y(B))return;e.branches=K.data,e.sourceUnreachable=!1,e.source.branch||(e.source.branch=e.details.defaultBranch);let le=e.branches.filter(ge=>ge.name==e.source.branch);le.length>0&&(!(!e.reconnectingSource&&!C&&e.isUpdate&&!e.options.update&&e._originalBranch===e.source.branch&&e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=le[0].commit),e.readme=le[0].readme,await Oe(C))}catch(K){if(!y(B))return;e.branches=[],e.sourceUnreachable=K&&(K.status===404||K.data&&K.data.error==="repo_not_found"),e.details=null,qe(K)}finally{k(B)}};async function be(C=!1){let M=parseGithubUrl(e.sourceUrl),B=g();try{Po(),Ue();let K=await t.get(`/api/repo/${M.owner}/${M.repo}/`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&i.repoId&&J(e.sourceUrl)===e._originalFullName?i.repoId:void 0,connection:e.githubConnection,repositoryID:ce(),force:"1"}});if(!y(B))return;e.details=K.data,e.reconnectingSource&&(e.reconnectRepositoryId=e.details.externalId),e.details&&e.details.id&&(e.repositoryID=e.details.id),e.repoId||(e.repoId=e.details.repo+"-"+generateRandomId(4)),await e.getBranches(C||e.reconnectingSource)}catch(K){if(!y(B))return;throw qe(K),K}finally{k(B)}}async function Oe(C){if(e.readme&&!C)return e.readme;let M=parseGithubUrl(e.sourceUrl),B=g();try{let K=await t.get(`/api/repo/${M.owner}/${M.repo}/readme`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&i.repoId&&J(e.sourceUrl)===e._originalFullName?i.repoId:void 0,connection:e.githubConnection,force:C===!0?"1":"0",branch:e.source.branch,repositoryID:ce()}});y(B,!0)&&(e.readme=K.data)}catch{y(B,!0)&&(e.readme="")}finally{k(B)}}let D={magicalBraces:!0},A=C=>C.startsWith("/")&&!C.endsWith("/")&&Wn(ko(C.slice(1),D),D)===C.slice(1),U=()=>Object.keys(e.preserve.picked).filter(C=>e.preserve.picked[C]).sort().map(C=>"/"+Wn(C,D)),Z=C=>"/"+Wn(C,D)+"/**",W=C=>"!/"+Wn(C,D)+"/",ee=()=>String(e.preserve.patterns||"").split(` -`).map(C=>C.trim()).filter(Boolean),re=null,oe=null,ie=new Set,te=0,we=null,pe=()=>!1;function Ee(){let C=te+"\0"+e.preserve.patterns;if(C!==we){we=C;try{pe=tl(el([...U(),...ee()]))}catch{pe=()=>!1}}return pe}function Te(C){let M=new Map([["",{dirs:[],files:[]}]]);for(let B of C){let K=B.split("/"),le="";for(let ge=0;geM.startsWith(C+"/"))),re.descendants.get(C)}let We=C=>Ee()(C);function je(C){let M=Ve(C),B=0;for(let K of M)We(K)&&B++;return B===0?"none":B===M.length?"all":"some"}e.preserve={open:!1,loading:!1,error:"",truncated:!1,commit:"",search:"",expanded:{},picked:{},patterns:"",patternsOpen:!1},e.preserveSummary=()=>{let C=(e.options?.preserveFiles||[]).map(M=>String(M).trim()).filter(Boolean).map(M=>A(M)?ko(M.slice(1),D):M);return C.length?C.slice(0,2).join(", ")+(C.length>2?` and ${C.length-2} more`:""):"None. Every file is redacted."};async function ke(){let C=e.source?.commit;if(!(re&&e.preserve.commit===C)){e.preserve.loading=!0,e.preserve.error="",re=null,oe=null;try{let M=parseGithubUrl(e.sourceUrl),B=await t.get(`/api/repo/${M.owner}/${M.repo}/tree`,{params:{commit:C,connection:e.githubConnection,anonymizedRepoId:e.isUpdate&&i.repoId&&J(e.sourceUrl)===e._originalFullName?i.repoId:void 0,repositoryID:ce()}});if(e.source?.commit!==C)return;let K=Array.isArray(B.data.binaryFiles)?B.data.binaryFiles:[];re=mn(Te(B.data.files||[])),oe=K.length?mn(Te([...B.data.files||[],...K])):re,ie=mn(new Set(K)),e.preserve.commit=C,e.preserve.truncated=!!B.data.truncated,e.previewFile||Qt()}catch{e.preserve.error="The file list could not be loaded from GitHub. You can still use patterns.",e.preserve.patternsOpen=!0}finally{e.preserve.loading=!1}}}e.watch("source.commit",C=>{e.previewFile&&e.openPreviewFile(""),e.detectedType==="repo"&&C&&e.sourceUrl&&ke().catch(()=>{})}),e.openPreserveFiles=()=>{let C={},M=[];for(let K of e.options?.preserveFiles||[]){let le=String(K).trim();le&&(!M.length&&A(le)?C[ko(le.slice(1),D)]=!0:M.push(le))}let B={};for(let K of Object.keys(C)){let le=K.split("/");for(let ge=1;ge0}),e.mobileWorkspace&&(e.mobilePane="settings"),te++,u(()=>{let K=document.getElementById("preserve-files-dialog");K?.showModal&&!K.open&&K.showModal(),document.getElementById("preserve-files-search")?.focus()},0),ke()},e.closePreserveFiles=()=>{document.getElementById("preserve-files-dialog")?.close?.(),e.preserve.open=!1},e.savePreserveFiles=()=>{e.options.preserveFiles=el([...U(),...ee()]),e.closePreserveFiles()},e.preserveRows=()=>{if(!re)return[];let C=Ee(),M=(ge,He,Ot)=>{let mt=!!e.preserve.picked[ge],Rt=C(ge);return{kind:"file",path:ge,label:Ot,depth:He,state:Rt?"all":"none",locked:!mt&&Rt,note:!mt&&Rt?"matched by a pattern":mt&&!Rt?"excluded by a pattern":""}},B=String(e.preserve.search||"").trim().toLowerCase();if(B)return re.files.filter(ge=>ge.toLowerCase().includes(B)).slice(0,300).map(ge=>M(ge,0,ge));let K=[],le=(ge,He)=>{let Ot=re.dirs.get(ge);for(let mt of Ot.dirs){let Rt=!!e.preserve.expanded[mt],Gt=ee().includes(Z(mt));K.push({kind:"dir",path:mt,label:mt.slice(ge?ge.length+1:0)+"/",depth:He,open:Rt,state:je(mt),locked:!1,note:Gt?"whole folder":""}),Rt&&le(mt,He+1)}for(let mt of Ot.files)K.push(M(mt,He,mt.slice(ge?ge.length+1:0)))};return le("",0),K},e.preserveCount=()=>re?re.files.filter(We).length:0,e.togglePreserveDir=C=>{e.preserve.expanded[C]=!e.preserve.expanded[C]},e.togglePreserveFile=C=>{e.preserve.picked[C]=!e.preserve.picked[C],te++},e.togglePreserveFolder=C=>{let M=Z(C),B=W(C),K=ee().filter(ge=>ge!==M&&ge!==B),le=je(C)==="all"||ee().includes(M);for(let ge of Ve(C))e.preserve.picked[ge]=!1;te++,e.preserve.patterns=(le?K:[...K,M]).join(` +`),e.source=C.data.source,e.options=Object.assign({},e.options,C.data.options),e.conference=C.data.conference,e._originalConference=C.data.conference,C.data.options.expirationDate&&(e.options.expirationDate=new Date(C.data.options.expirationDate)),w=S(parseGithubUrl(e.sourceUrl)),!await he())try{await ul()}catch{}},()=>{o.url("/404")})),i.gistId&&i.gistId!=""&&(e.isUpdate=!0,e.detectedType="gist",e.gistId=i.gistId,t.get("/api/gist/"+e.gistId).then(async C=>{e.sourceUrl="https://gist.github.com/"+C.data.source.gistId,e.terms=C.data.options.terms.filter(M=>M).join(` +`),e.source=C.data.source,e.options=Object.assign({},e.options,C.data.options),e.conference=C.data.conference,e._originalConference=C.data.conference,C.data.options.expirationDate&&(e.options.expirationDate=new Date(C.data.options.expirationDate)),w=S(parseGithubUrl(e.sourceUrl)),!await he()&&await cl()},()=>{o.url("/404")}))}),t.get("/github/connections").then(C=>{e.githubConnections=C.data,!i.repoId&&!i.pullRequestId&&!i.gistId&&e.githubConnection===void 0&&C.data.appEnabled&&C.data.appConnected&&(e.githubConnection="github-app",e.sourceUrl&&e.workspaceOpen&&ue())}).catch(()=>{}).finally(()=>{!v&&!i.repoId&&!i.pullRequestId&&!i.gistId&&e.userReposStatus==="idle"&&e.loadUserRepos()}),e.urlSelected=async(C=!1)=>{let M=++c;e.previousConfigurations=[],e.previousConfigurationId="";let B;try{B=parseGithubUrl(e.sourceUrl.trim())}catch{e.sourceLoading=!1,e.details=null,Ue(),Gt.cancel(),Cn.cancel(),Sn.cancel(),e.previewStatus="idle",e.sourceUrlError=e.sourceUrl?"Please provide a valid GitHub URL.":"",Se("sourceUrl","github",!1);return}let K=S(B),le=C||w===K;w=K,e.sourceUrlError="",Se("sourceUrl","github",!0),Ue();let ge=document.activeElement?.id==="sourceUrl-landing";e.workspaceOpen=!0,setTimeout(()=>{let He=window.document.getElementById("sourceUrl");if(He){try{He.setSelectionRange(0,0)}catch{}He.scrollLeft=0}},50),ge&&u(()=>document.getElementById("sourceUrl")?.focus(),0),e.reconnectingSource=!1,e.reconnectRepositoryId=void 0,!le&&!e.isUpdate&&(e.repoId="",e.pullRequestId="",e.gistId=""),e.details=null,e.branches=[],le||(e.source={type:"GitHubStream",branch:"",commit:""}),Gt.cancel(),Cn.cancel(),Sn.cancel(),Ro.clear(),To.clear(),e.previewStatus="idle",e.anonymize_readme="",e.readme="",al(),e.detectedType=null,e.gistOAuthRequired=!1,e.gistAppRequired=!1,e._preservingDraft=le;try{B.gistId&&!B.repo?(e.detectedType="gist",e.source={gistId:B.gistId},await cl()):B.pullRequestId?(e.detectedType="pr",e.source={repositoryFullName:B.owner+"/"+B.repo,pullRequestId:B.pullRequestId},await ul()):(e.detectedType="repo",fe(),await Promise.all([be(),Oe()]),No())}catch{}finally{M===c&&(e._preservingDraft=!1)}$('[data-toggle="tooltip"]').tooltip()},$('[data-toggle="tooltip"]').tooltip(),e.watch("source.branch",async()=>{if(e.detectedType!=="repo")return;let C=e.branches.filter(B=>B.name==e.source.branch)[0];if(!C)return;!(!e.reconnectingSource&&e.isUpdate&&e._originalBranch===e.source.branch&&e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=C.commit),e.readme=C.readme,await Oe(),No()}),e.getBranches=async C=>{let M=parseGithubUrl(e.sourceUrl),B=g();try{if(!e.details){await be(C);return}let K=await t.get(`/api/repo/${M.owner}/${M.repo}/branches`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&i.repoId&&J(e.sourceUrl)===e._originalFullName?i.repoId:void 0,connection:e.githubConnection,force:C===!0||e.reconnectingSource?"1":"0",repositoryID:ce()}});if(!y(B))return;e.branches=K.data,e.sourceUnreachable=!1,e.source.branch||(e.source.branch=e.details.defaultBranch);let le=e.branches.filter(ge=>ge.name==e.source.branch);le.length>0&&(!(!e.reconnectingSource&&!C&&e.isUpdate&&!e.options.update&&e._originalBranch===e.source.branch&&e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=le[0].commit),e.readme=le[0].readme,await Oe(C))}catch(K){if(!y(B))return;e.branches=[],e.sourceUnreachable=K&&(K.status===404||K.data&&K.data.error==="repo_not_found"),e.details=null,qe(K)}finally{k(B)}};async function be(C=!1){let M=parseGithubUrl(e.sourceUrl),B=g();try{Po(),Ue();let K=await t.get(`/api/repo/${M.owner}/${M.repo}/`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&i.repoId&&J(e.sourceUrl)===e._originalFullName?i.repoId:void 0,connection:e.githubConnection,repositoryID:ce(),force:"1"}});if(!y(B))return;e.details=K.data,e.reconnectingSource&&(e.reconnectRepositoryId=e.details.externalId),e.details&&e.details.id&&(e.repositoryID=e.details.id),e.repoId||(e.repoId=e.details.repo+"-"+generateRandomId(4)),await e.getBranches(C||e.reconnectingSource)}catch(K){if(!y(B))return;throw qe(K),K}finally{k(B)}}async function Oe(C){if(e.readme&&!C)return e.readme;let M=parseGithubUrl(e.sourceUrl),B=g();try{let K=await t.get(`/api/repo/${M.owner}/${M.repo}/readme`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&i.repoId&&J(e.sourceUrl)===e._originalFullName?i.repoId:void 0,connection:e.githubConnection,force:C===!0?"1":"0",branch:e.source.branch,repositoryID:ce()}});y(B,!0)&&(e.readme=K.data)}catch{y(B,!0)&&(e.readme="")}finally{k(B)}}let D={magicalBraces:!0},A=C=>C.startsWith("/")&&!C.endsWith("/")&&Wn(ko(C.slice(1),D),D)===C.slice(1),U=()=>Object.keys(e.preserve.picked).filter(C=>e.preserve.picked[C]).sort().map(C=>"/"+Wn(C,D)),Z=C=>"/"+Wn(C,D)+"/**",W=C=>"!/"+Wn(C,D)+"/",ee=()=>String(e.preserve.patterns||"").split(` +`).map(C=>C.trim()).filter(Boolean),re=null,oe=null,ie=new Set,te=0,we=null,pe=()=>!1;function Ee(){let C=te+"\0"+e.preserve.patterns;if(C!==we){we=C;try{pe=tl(el([...U(),...ee()]))}catch{pe=()=>!1}}return pe}function Te(C){let M=new Map([["",{dirs:[],files:[]}]]);for(let B of C){let K=B.split("/"),le="";for(let ge=0;geM.startsWith(C+"/"))),re.descendants.get(C)}let We=C=>Ee()(C);function je(C){let M=Ve(C),B=0;for(let K of M)We(K)&&B++;return B===0?"none":B===M.length?"all":"some"}e.preserve={open:!1,loading:!1,error:"",truncated:!1,commit:"",search:"",expanded:{},picked:{},patterns:"",patternsOpen:!1},e.preserveSummary=()=>{let C=(e.options?.preserveFiles||[]).map(M=>String(M).trim()).filter(Boolean).map(M=>A(M)?ko(M.slice(1),D):M);return C.length?C.slice(0,2).join(", ")+(C.length>2?` and ${C.length-2} more`:""):"None. Every file is redacted."};async function ke(){let C=e.source?.commit;if(!(re&&e.preserve.commit===C)){e.preserve.loading=!0,e.preserve.error="",re=null,oe=null;try{let M=parseGithubUrl(e.sourceUrl),B=await t.get(`/api/repo/${M.owner}/${M.repo}/tree`,{params:{commit:C,connection:e.githubConnection,anonymizedRepoId:e.isUpdate&&i.repoId&&J(e.sourceUrl)===e._originalFullName?i.repoId:void 0,repositoryID:ce()}});if(e.source?.commit!==C)return;let K=Array.isArray(B.data.binaryFiles)?B.data.binaryFiles:[];re=mn(Te(B.data.files||[])),oe=K.length?mn(Te([...B.data.files||[],...K])):re,ie=mn(new Set(K)),e.preserve.commit=C,e.preserve.truncated=!!B.data.truncated,e.previewFile||Gt()}catch{e.preserve.error="The file list could not be loaded from GitHub. You can still use patterns.",e.preserve.patternsOpen=!0}finally{e.preserve.loading=!1}}}e.watch("source.commit",C=>{e.previewFile&&e.openPreviewFile(""),e.detectedType==="repo"&&C&&e.sourceUrl&&ke().catch(()=>{})}),e.openPreserveFiles=()=>{let C={},M=[];for(let K of e.options?.preserveFiles||[]){let le=String(K).trim();le&&(!M.length&&A(le)?C[ko(le.slice(1),D)]=!0:M.push(le))}let B={};for(let K of Object.keys(C)){let le=K.split("/");for(let ge=1;ge0}),e.mobileWorkspace&&(e.mobilePane="settings"),te++,u(()=>{let K=document.getElementById("preserve-files-dialog");K?.showModal&&!K.open&&K.showModal(),document.getElementById("preserve-files-search")?.focus()},0),ke()},e.closePreserveFiles=()=>{document.getElementById("preserve-files-dialog")?.close?.(),e.preserve.open=!1},e.savePreserveFiles=()=>{e.options.preserveFiles=el([...U(),...ee()]),e.closePreserveFiles()},e.preserveRows=()=>{if(!re)return[];let C=Ee(),M=(ge,He,Ot)=>{let mt=!!e.preserve.picked[ge],Rt=C(ge);return{kind:"file",path:ge,label:Ot,depth:He,state:Rt?"all":"none",locked:!mt&&Rt,note:!mt&&Rt?"matched by a pattern":mt&&!Rt?"excluded by a pattern":""}},B=String(e.preserve.search||"").trim().toLowerCase();if(B)return re.files.filter(ge=>ge.toLowerCase().includes(B)).slice(0,300).map(ge=>M(ge,0,ge));let K=[],le=(ge,He)=>{let Ot=re.dirs.get(ge);for(let mt of Ot.dirs){let Rt=!!e.preserve.expanded[mt],Wt=ee().includes(Z(mt));K.push({kind:"dir",path:mt,label:mt.slice(ge?ge.length+1:0)+"/",depth:He,open:Rt,state:je(mt),locked:!1,note:Wt?"whole folder":""}),Rt&&le(mt,He+1)}for(let mt of Ot.files)K.push(M(mt,He,mt.slice(ge?ge.length+1:0)))};return le("",0),K},e.preserveCount=()=>re?re.files.filter(We).length:0,e.togglePreserveDir=C=>{e.preserve.expanded[C]=!e.preserve.expanded[C]},e.togglePreserveFile=C=>{e.preserve.picked[C]=!e.preserve.picked[C],te++},e.togglePreserveFolder=C=>{let M=Z(C),B=W(C),K=ee().filter(ge=>ge!==M&&ge!==B),le=je(C)==="all"||ee().includes(M);for(let ge of Ve(C))e.preserve.picked[ge]=!1;te++,e.preserve.patterns=(le?K:[...K,M]).join(` `),le&&Ve(C).some(We)&&(e.preserve.patterns=[...K,B].join(` `))};let Fe=/^readme(\.[^/]*)?$/i,st=[".md",".markdown",".mdown",".mkdn",".rst",".txt",""],pt=["README.md","README","README.markdown","README.rst","README.txt","readme.md"],Tt=C=>{let M=ze(C),B=M.indexOf("."),K=st.indexOf(B===-1?"":M.slice(B).toLowerCase());return K===-1?st.length:K},Pt=()=>!!re&&!!e.preserve.commit&&e.preserve.commit===e.source?.commit;e.readmePath=()=>{if(!Pt())return"";for(let C of[".github","","docs"]){let M=(re.dirs.get(C)?.files||[]).filter(B=>Fe.test(ze(B)));if(M.length)return M.sort((B,K)=>Tt(B)-Tt(K)||Xe(B,K))[0]}return""},e.readmeName=()=>ze(e.readmePath())||"README.md";let it={key:null,fn:()=>!1},ft=()=>{let C=(e.options?.preserveFiles||[]).map(B=>String(B).trim()).filter(Boolean),M=C.join(` `);if(M!==it.key){let B=()=>!1;try{C.length&&(B=tl(C))}catch{}it={key:M,fn:B}}return it.fn};e.pathPreserved=C=>!!C&&ft()(C),e.readmePreserved=()=>{if(e.detectedType!=="repo")return!1;let C=ft();if(Pt()){let M=e.readmePath();return!!M&&C(M)}return pt.some(M=>C(M))},e.previewPreserved=()=>e.detectedType==="repo"&&(e.previewFile?e.pathPreserved(e.previewFile):e.readmePreserved());function $t(){let C={terms:e.terms?e.terms.split(` -`):[],filePath:e.previewOpenPath()||"README.md",preserveFiles:e.options.preserveFiles||[],image:!!e.options.image,link:!!e.options.link,repoId:e.repoId};e.source&&e.source.branch&&(C.branchName=e.source.branch);try{let M=parseGithubUrl(e.sourceUrl);C.repoName=`${M.owner}/${M.repo}`}catch{}return C}function So(C,M,B){let K=null,le=0,ge=()=>{if(e.detectedType!==C)return;K&&u.cancel(K);let He=++le;e.previewStatus="loading",K=u(()=>{K=null;let Ot=M();if(!Ot){e.previewStatus="idle";return}t.post("/api/anonymize-preview",Ot).then(mt=>{He===le&&(B(mt.data,Ot),e.previewStatus="ready")}).catch(()=>{He===le&&(e.previewStatus="error")})},200)};return ge.cancel=()=>{le++,K&&u.cancel(K),K=null},e.on("dispose",ge.cancel),ge}e.retryPreview=()=>{e.detectedType==="repo"&&(e.previewFile&&typeof ln!="string"?al(e.previewFile):Qt()),e.detectedType==="pr"&&Vn(),e.detectedType==="gist"&&qn()};let et=mn(Fs(e));Object.defineProperty(e,"previewViewer",{get:()=>et}),Ra(et,e),Object.assign(et,{options:{},files:[],paths:[],content:null,type:"loading",sidebarHidden:!1,sidebarCollapsed:!0,moreOpen:!1,tocOpen:!1,gotoOpen:!1,mdFindOpen:!1,mdFindQuery:"",mdFindTotal:0,mdFindIndex:0}),et.preview=!0,et.fileSize=C=>C===et.filePath&&typeof ln=="string"?new Blob([ln]).size:!e.previewFile&&e.readme?new Blob([e.readme]).size:null,et.openPreserveFiles=()=>e.openPreserveFiles(),et.previewPreserved=()=>e.previewPreserved(),et.retryContent=()=>e.retryPreview();let uf=C=>ie.has(C)||/\.(pdf|png|jpe?g|gif|svg|ico|bmp|tiff?|webp|avif|heic|heif|mp4|webm|mp3|wav|zip|bin)$/i.test(C),kr=(C="")=>({path:C,loading:!1,note:"",loadError:""});e.previewFile="",e.previewDoc=kr();let ns=0,ln=null;e.previewOpenPath=()=>e.previewFile||e.readmePath(),e.openPreviewFile=C=>{if(C=C||"",C&&C===e.readmePath()&&(C=""),ns++,ln=null,si(),Qt.cancel(),e.previewFile=C,e.previewDoc=kr(C),et.sidebarCollapsed=!0,et.content=null,!C){e.readme?Qt():e.previewStatus="idle";return}if(uf(C)){Cr("binary"),e.previewStatus="ready";return}al(C)};function cf(){ns++,ln=null,e.previewFile="",e.previewDoc=kr(),et.sidebarCollapsed=!0,et.content=null}function al(C){let M=++ns;ln=null,Object.assign(e.previewDoc,{loading:!0,loadError:""}),e.previewStatus="loading";let B;try{B=parseGithubUrl(e.sourceUrl)}catch{B=null}if(!B||!e.source?.commit){Object.assign(e.previewDoc,{loading:!1,loadError:"The repository is still loading. Try again in a moment."}),e.previewStatus="error";return}t.get(`/api/repo/${B.owner}/${B.repo}/file`,{params:{commit:e.source.commit,path:C,connection:e.githubConnection,anonymizedRepoId:e.isUpdate&&i.repoId&&J(e.sourceUrl)===e._originalFullName?i.repoId:void 0,repositoryID:ce()},transformResponse:K=>K}).then(K=>{if(M!==ns)return;e.previewDoc.loading=!1;let le=typeof K.headers=="function"&&K.headers("content-type")||"";if(/json/i.test(le)){let ge=null;try{ge=JSON.parse(K.data)}catch{}if(ge&&ge.binary===!0){Cr("binary"),e.previewStatus="ready";return}}ln=typeof K.data=="string"?K.data:"",Qt()},K=>{if(M!==ns)return;e.previewDoc.loading=!1;let le=vr(K);if(le==="file_too_big"){Cr("too_big"),e.previewStatus="ready";return}e.previewDoc.loadError=Qn.ERRORS[le]||"GitHub did not return this file.",e.previewStatus="error"})}let oi;function si(){oi&&window.URL.revokeObjectURL(oi),oi=void 0,et.url=void 0}e.on("dispose",si);function Cr(C){si(),e.previewDoc.note=C,et.prepareFile(e.previewPathName(e.previewOpenPath()||e.readmeName())),et.type=C==="too_big"?"error":"binary",et.content=C==="too_big"?"file_too_big":"binary"}function pf(C){try{let M=parseGithubUrl(e.sourceUrl),B=e.source.branch||e.details&&e.details.defaultBranch||"main",K=C&&C.includes("/")?C.slice(0,C.lastIndexOf("/")+1):"";return`https://github.com/${M.owner}/${M.repo}/raw/${B}/${K}`}catch{return""}}let ll=So("repo",()=>e.previewFile?typeof ln!="string"?null:{content:ln,options:$t()}:e.readme?{content:e.readme,options:$t()}:null,C=>{if(typeof C?.content!="string")throw Error("Invalid preview response");si(),window.URL?.createObjectURL&&(et.url=oi=window.URL.createObjectURL(new Blob([C.content],{type:"text/plain"})));let M=e.previewOpenPath()||e.readmeName();et.prepareFile(e.previewPathName(M)),et.fileBaseUrl=pf(M),et.renderFileContent(C.content,et.type,et.fileBaseUrl,"text/plain"),e.previewFile||(e.anonymize_readme=C.content)}),Qt=()=>{e.previewFile&&typeof ln!="string"||ll()};Qt.cancel=ll.cancel;let Eo=rt(new Map),Sr=new Set,Er=new Set,os="",ss=null,ii=()=>String(e.terms||"").split(` +`):[],filePath:e.previewOpenPath()||"README.md",preserveFiles:e.options.preserveFiles||[],image:!!e.options.image,link:!!e.options.link,repoId:e.repoId};e.source&&e.source.branch&&(C.branchName=e.source.branch);try{let M=parseGithubUrl(e.sourceUrl);C.repoName=`${M.owner}/${M.repo}`}catch{}return C}function So(C,M,B){let K=null,le=0,ge=()=>{if(e.detectedType!==C)return;K&&u.cancel(K);let He=++le;e.previewStatus="loading",K=u(()=>{K=null;let Ot=M();if(!Ot){e.previewStatus="idle";return}t.post("/api/anonymize-preview",Ot).then(mt=>{He===le&&(B(mt.data,Ot),e.previewStatus="ready")}).catch(()=>{He===le&&(e.previewStatus="error")})},200)};return ge.cancel=()=>{le++,K&&u.cancel(K),K=null},e.on("dispose",ge.cancel),ge}e.retryPreview=()=>{e.detectedType==="repo"&&(e.previewFile&&typeof ln!="string"?ll(e.previewFile):Gt()),e.detectedType==="pr"&&Cn(),e.detectedType==="gist"&&Sn()};let et=mn(Fs(e));Object.defineProperty(e,"previewViewer",{get:()=>et}),Ra(et,e),Object.assign(et,{options:{},files:[],paths:[],content:null,type:"loading",sidebarHidden:!1,sidebarCollapsed:!0,moreOpen:!1,tocOpen:!1,gotoOpen:!1,mdFindOpen:!1,mdFindQuery:"",mdFindTotal:0,mdFindIndex:0}),et.preview=!0,et.fileSize=C=>C===et.filePath&&typeof ln=="string"?new Blob([ln]).size:!e.previewFile&&e.readme?new Blob([e.readme]).size:null,et.openPreserveFiles=()=>e.openPreserveFiles(),et.previewPreserved=()=>e.previewPreserved(),et.retryContent=()=>e.retryPreview();let cf=C=>ie.has(C)||/\.(pdf|png|jpe?g|gif|svg|ico|bmp|tiff?|webp|avif|heic|heif|mp4|webm|mp3|wav|zip|bin)$/i.test(C),kr=(C="")=>({path:C,loading:!1,note:"",loadError:""});e.previewFile="",e.previewDoc=kr();let ns=0,ln=null;e.previewOpenPath=()=>e.previewFile||e.readmePath(),e.openPreviewFile=C=>{if(C=C||"",C&&C===e.readmePath()&&(C=""),ns++,ln=null,si(),Gt.cancel(),e.previewFile=C,e.previewDoc=kr(C),et.sidebarCollapsed=!0,et.content=null,!C){e.readme?Gt():e.previewStatus="idle";return}if(cf(C)){Cr("binary"),e.previewStatus="ready";return}ll(C)};function al(){ns++,ln=null,e.previewFile="",e.previewDoc=kr(),et.sidebarCollapsed=!0,et.content=null}function ll(C){let M=++ns;ln=null,Object.assign(e.previewDoc,{loading:!0,loadError:""}),e.previewStatus="loading";let B;try{B=parseGithubUrl(e.sourceUrl)}catch{B=null}if(!B||!e.source?.commit){Object.assign(e.previewDoc,{loading:!1,loadError:"The repository is still loading. Try again in a moment."}),e.previewStatus="error";return}t.get(`/api/repo/${B.owner}/${B.repo}/file`,{params:{commit:e.source.commit,path:C,connection:e.githubConnection,anonymizedRepoId:e.isUpdate&&i.repoId&&J(e.sourceUrl)===e._originalFullName?i.repoId:void 0,repositoryID:ce()},transformResponse:K=>K}).then(K=>{if(M!==ns)return;e.previewDoc.loading=!1;let le=typeof K.headers=="function"&&K.headers("content-type")||"";if(/json/i.test(le)){let ge=null;try{ge=JSON.parse(K.data)}catch{}if(ge&&ge.binary===!0){Cr("binary"),e.previewStatus="ready";return}}ln=typeof K.data=="string"?K.data:"",Gt()},K=>{if(M!==ns)return;e.previewDoc.loading=!1;let le=vr(K);if(le==="file_too_big"){Cr("too_big"),e.previewStatus="ready";return}e.previewDoc.loadError=Qn.ERRORS[le]||"GitHub did not return this file.",e.previewStatus="error"})}let oi;function si(){oi&&window.URL.revokeObjectURL(oi),oi=void 0,et.url=void 0}e.on("dispose",si);function Cr(C){si(),e.previewDoc.note=C,et.prepareFile(e.previewPathName(e.previewOpenPath()||e.readmeName())),et.type=C==="too_big"?"error":"binary",et.content=C==="too_big"?"file_too_big":"binary"}function pf(C){try{let M=parseGithubUrl(e.sourceUrl),B=e.source.branch||e.details&&e.details.defaultBranch||"main",K=C&&C.includes("/")?C.slice(0,C.lastIndexOf("/")+1):"";return`https://github.com/${M.owner}/${M.repo}/raw/${B}/${K}`}catch{return""}}let dl=So("repo",()=>e.previewFile?typeof ln!="string"?null:{content:ln,options:$t()}:e.readme?{content:e.readme,options:$t()}:null,C=>{if(typeof C?.content!="string")throw Error("Invalid preview response");si(),window.URL?.createObjectURL&&(et.url=oi=window.URL.createObjectURL(new Blob([C.content],{type:"text/plain"})));let M=e.previewOpenPath()||e.readmeName();et.prepareFile(e.previewPathName(M)),et.fileBaseUrl=pf(M),et.renderFileContent(C.content,et.type,et.fileBaseUrl,"text/plain"),e.previewFile||(e.anonymize_readme=C.content)}),Gt=()=>{e.previewFile&&typeof ln!="string"||dl()};Gt.cancel=dl.cancel;let Eo=rt(new Map),Sr=new Set,Er=new Set,os="",ss=null,ii=()=>String(e.terms||"").split(` `).filter(C=>C.trim());function ff(){ss=null;let C=ii(),M=C.join(` `);M!==os&&(Eo.clear(),Er.clear(),os=M);let B=[...Sr].filter(K=>!Eo.has(K));if(Sr.clear(),!(!B.length||!C.length))for(let K=0;K{if(os!==M||ii().join(` `)!==M)return;let He=ge.data?.contents;if(!Array.isArray(He)||He.length!==le.length)throw Error("Invalid preview response");le.forEach((Ot,mt)=>Eo.set(Ot,typeof He[mt]=="string"?He[mt]:Ot))}).catch(()=>{os===M&&le.forEach(ge=>Er.add(ge))})}}e.previewName=C=>{if(!C||!ii().length)return C;if(os===ii().join(` -`)){if(Eo.has(C))return Eo.get(C);if(Er.has(C))return C}return Sr.add(C),ss||(ss=u(ff,120)),C},e.previewPathName=C=>{C=String(C||"");let M=C.lastIndexOf("/");return M<0?e.previewName(C):e.previewName(C.slice(0,M))+"/"+e.previewName(C.slice(M+1))},e.watch(()=>[e.repoId,e.previewPathName(e.previewOpenPath()||e.readmeName()),e.previewTreeFiles()],()=>{et.repoId=e.repoId||"repository",et.filePath=e.previewPathName(e.previewOpenPath()||e.readmeName()),et.paths=et.filePath.split("/"),et.files=e.previewTreeFiles(),et.loadedFolders=Object.fromEntries([...oe?.dirs.keys()||[]].map(C=>[e.previewName(C),!0]))},!0),e.on("dispose",()=>{ss&&u.cancel(ss)});function No(){!e.anonymize||!e.anonymize.terms||Qt()}async function dl(){let C=parseGithubUrl(e.sourceUrl),M=g();try{Po(),Ue();let B=await t.get(`/api/pr/${C.owner}/${C.repo}/${C.pullRequestId}`,{params:{connection:e.githubConnection}});if(!y(M))return;e.details=B.data,e.pullRequestId||(e.pullRequestId=C.repo+"-PR"+C.pullRequestId+"-"+generateRandomId(4))}catch(B){if(!y(M))return;throw qe(B),B}finally{k(M)}}let Ro=rt(new Map);function mf(){let C=new Set,M=e.details&&e.details.pullRequest;if(!M)return C;typeof M.title=="string"&&C.add(M.title),typeof M.body=="string"&&C.add(M.body),typeof M.diff=="string"&&C.add(M.diff);let B=M.comments||[];for(let K of B)typeof K.author=="string"&&C.add(K.author),typeof K.body=="string"&&C.add(K.body);return C}let Vn=So("pr",()=>{let C=mf(),M=Array.from(C);return M.length===0?null:{contents:M,options:$t()}},(C,M)=>{if(!Array.isArray(C?.contents)||C.contents.length!==M.contents.length||C.contents.some(le=>typeof le!="string"))throw Error("Invalid preview response");let B=M.contents,K=new Map;for(let le=0;leRo.set(ge,le))});e.anonymizePrContent=function(C){return C&&(Ro.has(C)?Ro.get(C):"")};async function ul(){let C=parseGithubUrl(e.sourceUrl),M=g();try{Po(),Ue(),e.gistOAuthRequired=!1,e.gistAppRequired=!1;let B=await t.get(`/api/gist/source/${C.gistId}`);if(!y(M))return;e.details=B.data,e.gistId||(e.gistId="gist-"+C.gistId.substring(0,6)+"-"+generateRandomId(4))}catch(B){if(!y(M))return;if(B.data?.error==="github_app_reconnect_required"){e.gistAppRequired=!0,Se("sourceUrl","missing",!1);return}if(B.data?.error==="github_oauth_required"){e.gistOAuthRequired=!0,Se("sourceUrl","missing",!1);return}throw qe(B),B}finally{k(M)}}let To=rt(new Map);function hf(){let C=new Set,M=e.details&&e.details.gist;if(!M)return C;typeof M.description=="string"&&C.add(M.description),typeof M.ownerLogin=="string"&&C.add(M.ownerLogin);let B=M.files||[];for(let le of B)typeof le.filename=="string"&&C.add(le.filename),typeof le.content=="string"&&C.add(le.content);let K=M.comments||[];for(let le of K)typeof le.author=="string"&&C.add(le.author),typeof le.body=="string"&&C.add(le.body);return C}let qn=So("gist",()=>{let C=hf(),M=Array.from(C);return M.length===0?null:{contents:M,options:$t()}},(C,M)=>{if(!Array.isArray(C?.contents)||C.contents.length!==M.contents.length||C.contents.some(le=>typeof le!="string"))throw Error("Invalid preview response");let B=M.contents,K=new Map;for(let le=0;leTo.set(ge,le)),Nr()});e.anonymizeGistContent=function(C){return C&&(To.has(C)?To.get(C):"")},e.previewGistFiles=[];function Nr(){let C=e.details&&e.details.gist&&e.details.gist.files||[];e.previewGistFiles=C.map(M=>({filename:e.anonymizeGistContent(M.filename),content:e.anonymizeGistContent(M.content),language:M.language}))}e.watch("details.gist.files",Nr,!0),e.watch("terms",Nr);function gf(){let C=e.conference;if(e.conference_data=null,!C)return;let M=C===b||e.isUpdate&&C===e._originalConference;C!==b&&(b=null),t.get("/api/conferences/"+C).then(B=>{e.conference===C&&(e.conference_data=B.data,e.conference_data.startDate=new Date(e.conference_data.startDate),e.conference_data.endDate=new Date(e.conference_data.endDate),!M&&(e.options.expirationDate=new Date(e.conference_data.endDate),e.options.expirationMode="remove",e.options.update=e.conference_data.options.update,e.options.image=e.conference_data.options.image,e.options.pdf=e.conference_data.options.pdf,e.options.notebook=e.conference_data.options.notebook,e.options.link=e.conference_data.options.link))},()=>{e.conference===C&&(e.conference_data=null)})}function Po(){Se("repoId","used",!0),Se("repoId","format",!0),Se("pullRequestId","used",!0),Se("pullRequestId","format",!0),Se("gistId","used",!0),Se("gistId","format",!0),Se("sourceUrl","used",!0),Se("sourceUrl","missing",!0),Se("sourceUrl","access",!0),Se("sourceUrl","github",!0),Se("commit","exists",!0),Se("conference","activated",!0),Se("terms","format",!0),e.termHints=[]}function ri(){if(e.detectedType==="repo"&&e.options.expirationMode==="never")return!1;let C=e.anonymize&&e.anonymize.expirationDate;return!e.options.expirationDate||C&&C.invalid?(C&&C.setDirty&&C.setDirty(),e.error="Please choose a valid expiration date.",!0):!1}function ai(C){let M=e.detectedType==="pr"?"pullRequestId":e.detectedType==="gist"?"gistId":"repoId";switch(C){case"repoId_already_used":Se(M,"used",!1);break;case"invalid_repoId":Se(M,"format",!1);break;case"options_not_provided":Se(M,"format",!1);break;case"repo_already_anonymized":Se("sourceUrl","used",!1);break;case"invalid_terms_format":Se("terms","format",!1);break;case"repo_not_found":Se("sourceUrl","missing",!1);break;case"repo_not_accessible":Se("sourceUrl","access",!1);break;case"commit_not_found":Se("commit","exists",!1);break;case"conf_not_activated":Se("conference","activated",!1);break}}e.coauthors=e.coauthors||[],e.coauthorResults=[],e.coauthorError="",e.searchCoauthors=()=>{let C=(e.coauthorSearch||"").trim();if(e.coauthorError="",C.length<2){e.coauthorResults=[];return}t.get("/api/user/search/github-users",{params:{q:C}}).then(M=>{let B=new Set((e.coauthors||[]).map(K=>(K.username||"").toLowerCase()));e.coauthorResults=(M.data||[]).filter(K=>!B.has((K.username||"").toLowerCase()))},()=>{e.coauthorResults=[]})},e.addCoauthor=(C,M)=>{M&&M.preventDefault(),!(!C||!C.username)&&t.post("/api/repo/"+e.repoId+"/coauthors",{username:C.username}).then(B=>{e.coauthors=B.data||[],e.coauthorResults=[],e.coauthorSearch="",e.coauthorError=""},B=>{let K=B&&B.data&&B.data.error||"unknown_error";e.coauthorError=K})},e.removeCoauthor=C=>{!C||!C.username||confirm("Remove co-author "+C.username+"?")&&t.delete("/api/repo/"+e.repoId+"/coauthors/"+encodeURIComponent(C.username)).then(M=>{e.coauthors=M.data||[]},M=>{let B=M&&M.data&&M.data.error||"unknown_error";e.coauthorError=B})},e.anonymizeRepo=C=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(e.reconnectingSource&&!e.reconnectRepositoryId)return;if(ri()){e.editRepository();return}if(e.anonymize?.invalid||e.sourceUrlError){e.editRepository(),e.error="Please correct the highlighted fields before saving.";return}if(e.hostingNeedsPayment()&&e.options.expirationMode==="never"){e.hostingReview=!0,Ge(()=>document.getElementById("repository-hosting")?.scrollIntoView({block:"center"}));return}let M=C.currentTarget||C.target.closest?.("button")||C.target;M.disabled=!0;let B=parseGithubUrl(e.sourceUrl),K={repoId:e.repoId,terms:e.terms.trim().split(` +`)){if(Eo.has(C))return Eo.get(C);if(Er.has(C))return C}return Sr.add(C),ss||(ss=u(ff,120)),C},e.previewPathName=C=>{C=String(C||"");let M=C.lastIndexOf("/");return M<0?e.previewName(C):e.previewName(C.slice(0,M))+"/"+e.previewName(C.slice(M+1))},e.watch(()=>[e.repoId,e.previewPathName(e.previewOpenPath()||e.readmeName()),e.previewTreeFiles()],()=>{et.repoId=e.repoId||"repository",et.filePath=e.previewPathName(e.previewOpenPath()||e.readmeName()),et.paths=et.filePath.split("/"),et.files=e.previewTreeFiles(),et.loadedFolders=Object.fromEntries([...oe?.dirs.keys()||[]].map(C=>[e.previewName(C),!0]))},!0),e.on("dispose",()=>{ss&&u.cancel(ss)});function No(){!e.anonymize||!e.anonymize.terms||Gt()}async function ul(){let C=parseGithubUrl(e.sourceUrl),M=g();try{Po(),Ue();let B=await t.get(`/api/pr/${C.owner}/${C.repo}/${C.pullRequestId}`,{params:{connection:e.githubConnection}});if(!y(M))return;e.details=B.data,e.pullRequestId||(e.pullRequestId=C.repo+"-PR"+C.pullRequestId+"-"+generateRandomId(4))}catch(B){if(!y(M))return;throw qe(B),B}finally{k(M)}}let Ro=rt(new Map);function mf(){let C=new Set,M=e.details&&e.details.pullRequest;if(!M)return C;typeof M.title=="string"&&C.add(M.title),typeof M.body=="string"&&C.add(M.body),typeof M.diff=="string"&&C.add(M.diff);let B=M.comments||[];for(let K of B)typeof K.author=="string"&&C.add(K.author),typeof K.body=="string"&&C.add(K.body);return C}let Cn=So("pr",()=>{let C=mf(),M=Array.from(C);return M.length===0?null:{contents:M,options:$t()}},(C,M)=>{if(!Array.isArray(C?.contents)||C.contents.length!==M.contents.length||C.contents.some(le=>typeof le!="string"))throw Error("Invalid preview response");let B=M.contents,K=new Map;for(let le=0;leRo.set(ge,le))});e.anonymizePrContent=function(C){return C&&(Ro.has(C)?Ro.get(C):"")};async function cl(){let C=parseGithubUrl(e.sourceUrl),M=g();try{Po(),Ue(),e.gistOAuthRequired=!1,e.gistAppRequired=!1;let B=await t.get(`/api/gist/source/${C.gistId}`);if(!y(M))return;e.details=B.data,e.gistId||(e.gistId="gist-"+C.gistId.substring(0,6)+"-"+generateRandomId(4))}catch(B){if(!y(M))return;if(B.data?.error==="github_app_reconnect_required"){e.gistAppRequired=!0,Se("sourceUrl","missing",!1);return}if(B.data?.error==="github_oauth_required"){e.gistOAuthRequired=!0,Se("sourceUrl","missing",!1);return}throw qe(B),B}finally{k(M)}}let To=rt(new Map);function hf(){let C=new Set,M=e.details&&e.details.gist;if(!M)return C;typeof M.description=="string"&&C.add(M.description),typeof M.ownerLogin=="string"&&C.add(M.ownerLogin);let B=M.files||[];for(let le of B)typeof le.filename=="string"&&C.add(le.filename),typeof le.content=="string"&&C.add(le.content);let K=M.comments||[];for(let le of K)typeof le.author=="string"&&C.add(le.author),typeof le.body=="string"&&C.add(le.body);return C}let Sn=So("gist",()=>{let C=hf(),M=Array.from(C);return M.length===0?null:{contents:M,options:$t()}},(C,M)=>{if(!Array.isArray(C?.contents)||C.contents.length!==M.contents.length||C.contents.some(le=>typeof le!="string"))throw Error("Invalid preview response");let B=M.contents,K=new Map;for(let le=0;leTo.set(ge,le)),Nr()});e.anonymizeGistContent=function(C){return C&&(To.has(C)?To.get(C):"")},e.previewGistFiles=[];function Nr(){let C=e.details&&e.details.gist&&e.details.gist.files||[];e.previewGistFiles=C.map(M=>({filename:e.anonymizeGistContent(M.filename),content:e.anonymizeGistContent(M.content),language:M.language}))}e.watch("details.gist.files",Nr,!0),e.watch("terms",Nr);function gf(){let C=e.conference;if(e.conference_data=null,!C)return;let M=C===b||e.isUpdate&&C===e._originalConference;C!==b&&(b=null),t.get("/api/conferences/"+C).then(B=>{e.conference===C&&(e.conference_data=B.data,e.conference_data.startDate=new Date(e.conference_data.startDate),e.conference_data.endDate=new Date(e.conference_data.endDate),!M&&(e.options.expirationDate=new Date(e.conference_data.endDate),e.options.expirationMode="remove",e.options.update=e.conference_data.options.update,e.options.image=e.conference_data.options.image,e.options.pdf=e.conference_data.options.pdf,e.options.notebook=e.conference_data.options.notebook,e.options.link=e.conference_data.options.link))},()=>{e.conference===C&&(e.conference_data=null)})}function Po(){Se("repoId","used",!0),Se("repoId","format",!0),Se("pullRequestId","used",!0),Se("pullRequestId","format",!0),Se("gistId","used",!0),Se("gistId","format",!0),Se("sourceUrl","used",!0),Se("sourceUrl","missing",!0),Se("sourceUrl","access",!0),Se("sourceUrl","github",!0),Se("commit","exists",!0),Se("conference","activated",!0),Se("terms","format",!0),e.termHints=[]}function ri(){if(e.detectedType==="repo"&&e.options.expirationMode==="never")return!1;let C=e.anonymize&&e.anonymize.expirationDate;return!e.options.expirationDate||C&&C.invalid?(C&&C.setDirty&&C.setDirty(),e.error="Please choose a valid expiration date.",!0):!1}function ai(C){let M=e.detectedType==="pr"?"pullRequestId":e.detectedType==="gist"?"gistId":"repoId";switch(C){case"repoId_already_used":Se(M,"used",!1);break;case"invalid_repoId":Se(M,"format",!1);break;case"options_not_provided":Se(M,"format",!1);break;case"repo_already_anonymized":Se("sourceUrl","used",!1);break;case"invalid_terms_format":Se("terms","format",!1);break;case"repo_not_found":Se("sourceUrl","missing",!1);break;case"repo_not_accessible":Se("sourceUrl","access",!1);break;case"commit_not_found":Se("commit","exists",!1);break;case"conf_not_activated":Se("conference","activated",!1);break}}e.coauthors=e.coauthors||[],e.coauthorResults=[],e.coauthorError="",e.searchCoauthors=()=>{let C=(e.coauthorSearch||"").trim();if(e.coauthorError="",C.length<2){e.coauthorResults=[];return}t.get("/api/user/search/github-users",{params:{q:C}}).then(M=>{let B=new Set((e.coauthors||[]).map(K=>(K.username||"").toLowerCase()));e.coauthorResults=(M.data||[]).filter(K=>!B.has((K.username||"").toLowerCase()))},()=>{e.coauthorResults=[]})},e.addCoauthor=(C,M)=>{M&&M.preventDefault(),!(!C||!C.username)&&t.post("/api/repo/"+e.repoId+"/coauthors",{username:C.username}).then(B=>{e.coauthors=B.data||[],e.coauthorResults=[],e.coauthorSearch="",e.coauthorError=""},B=>{let K=B&&B.data&&B.data.error||"unknown_error";e.coauthorError=K})},e.removeCoauthor=C=>{!C||!C.username||confirm("Remove co-author "+C.username+"?")&&t.delete("/api/repo/"+e.repoId+"/coauthors/"+encodeURIComponent(C.username)).then(M=>{e.coauthors=M.data||[]},M=>{let B=M&&M.data&&M.data.error||"unknown_error";e.coauthorError=B})},e.anonymizeRepo=C=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(e.reconnectingSource&&!e.reconnectRepositoryId)return;if(ri()){e.editRepository();return}if(e.anonymize?.invalid||e.sourceUrlError){e.editRepository(),e.error="Please correct the highlighted fields before saving.";return}if(e.hostingNeedsPayment()&&e.options.expirationMode==="never"){e.hostingReview=!0,Ge(()=>document.getElementById("repository-hosting")?.scrollIntoView({block:"center"}));return}let M=C.currentTarget||C.target.closest?.("button")||C.target;M.disabled=!0;let B=parseGithubUrl(e.sourceUrl),K={repoId:e.repoId,terms:e.terms.trim().split(` `).filter(ge=>ge),connection:e.githubConnection,fullName:`${B.owner}/${B.repo}`,repository:e.sourceUrl,reconnectRepositoryId:e.reconnectRepositoryId,options:e.options,source:e.source,conference:e.conference};e.details&&(K.options.pageSource=e.details.pageSource),Po();let le=e.isUpdate?"/api/repo/"+e.repoId:"/api/repo/";t.post(le,K,{headers:{"Content-Type":"application/json"}}).then(()=>{N.clear(),window.location.href="/status/"+e.repoId},ge=>{if(ge.data){let He=["quota_exceeded","quota_repository_limit","quota_storage_limit","subscription_required_for_never_expiration"].includes(ge.data.error);He||r("ERRORS."+ge.data.error).then(Ot=>{e.error=Ot},console.error),ai(ge.data.error),He&&(ge.data.error==="subscription_required_for_never_expiration"&&(e._existingNever=!1),e.hostingQuotaBlocked=!0,e.hostingReview=!0,Ge(()=>document.getElementById("repository-hosting")?.scrollIntoView({block:"center"})))}}).finally(()=>{M.disabled=!1})},e.anonymizeGist=C=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(ri())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let M=C.currentTarget||C.target.closest?.("button")||C.target;M.disabled=!0;let B=parseGithubUrl(e.sourceUrl),K={gistId:e.gistId,terms:e.terms.trim().split(` `).filter(ge=>ge),source:{gistId:B.gistId},options:e.options,conference:e.conference};Po();let le=e.isUpdate?"/api/gist/"+e.gistId:"/api/gist/";t.post(le,K,{headers:{"Content-Type":"application/json"}}).then(()=>{N.clear(),window.location.href="/gist/"+e.gistId},ge=>{ge.data&&(r("ERRORS."+ge.data.error).then(He=>{e.error=He},console.error),ai(ge.data.error))}).finally(()=>{M.disabled=!1})},e.anonymizePullRequest=C=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(ri())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let M=C.currentTarget||C.target.closest?.("button")||C.target;M.disabled=!0;let B=parseGithubUrl(e.sourceUrl),K={pullRequestId:e.pullRequestId,connection:e.githubConnection,terms:e.terms.trim().split(` -`).filter(ge=>ge),source:{repositoryFullName:`${B.owner}/${B.repo}`,pullRequestId:B.pullRequestId},options:e.options,conference:e.conference};Po();let le=e.isUpdate?"/api/pr/"+e.pullRequestId:"/api/pr/";t.post(le,K,{headers:{"Content-Type":"application/json"}}).then(()=>{N.clear(),window.location.href="/pr/"+e.pullRequestId},ge=>{ge.data&&(r("ERRORS."+ge.data.error).then(He=>{e.error=He},console.error),ai(ge.data.error))}).finally(()=>{M.disabled=!1})},e.watch("conference",()=>{gf()}),e.termHints=[],e.matchTermAsWritten=C=>{e.terms=Uc(e.terms,C)},e.watch("options.preserveFiles",()=>{e.detectedType==="repo"&&Qt()}),e.watch("terms",()=>{e.termHints=Fc(e.terms),e.detectedType==="repo"&&No(),e.detectedType==="pr"&&Vn(),e.detectedType==="gist"&&qn()}),e.watch("options.image",()=>{e.detectedType==="repo"&&No(),e.detectedType==="pr"&&Vn(),e.detectedType==="gist"&&qn()}),e.watch("options.link",()=>{e.detectedType==="repo"&&No(),e.detectedType==="pr"&&Vn(),e.detectedType==="gist"&&qn()}),e.watch("details",()=>{e.detectedType==="pr"&&Vn(),e.detectedType==="gist"&&qn()},!0)},sl=function(e,t,s,i,o,r){Ra(e);let u=yt();zc();let p=Ht(),c=0,v=null,h=null;e.fileLoadingSlow=!1,e.fileReceivedBytes=0;function y(){v&&(v.resolve(),v=null),h&&(u.timeout.cancel(h),h=null)}let g=!1;e.on("dispose",()=>{g=!0,c++,y(),k&&k.resolve()}),e.files=[],e.isMac=/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent),e.fileSearchQuery="",e.fileSearchResults=null,e.fileSearchLoading=!1,p(document,"click",I=>{e.symbolsOpen&&!I.target.closest?.(".symbols")&&(e.symbolsOpen=!1),e.moreOpen&&!I.target.closest?.(".tb-more")&&(e.moreOpen=!1),e.tocOpen&&!I.target.closest?.(".tb-toc-m")&&(e.tocOpen=!1),e.gotoOpen&&I.target.isConnected&&!I.target.closest?.(".goto-pop, .btn-goto, .tb-more")&&(e.gotoOpen=!1),e.accountOpen&&!I.target.closest?.(".acct")&&(e.accountOpen=!1),e.helpOpen&&!I.target.closest?.(".vb-help")&&(e.helpOpen=!1)}),p(document,"keydown",I=>{I.key==="Escape"&&(e.symbolsOpen=!1,e.moreOpen=!1,e.tocOpen=!1,e.gotoOpen=!1,e.accountOpen=!1,e.helpOpen=!1),(I.ctrlKey||I.metaKey)&&!I.altKey&&I.key&&I.key.toLowerCase()==="f"&&e.type==="html"&&window.document.querySelector(".reading-layout")&&(I.preventDefault(),e.toggleMdFind(!0))}),p(document,"keydown",function(I){if((I.metaKey||I.ctrlKey)&&I.key==="k"){I.preventDefault();var q=document.querySelector(".tree-search-input");q&&(q.focus(),q.select())}});var k=null;e.onFileSearchChange=function(){k&&(k.resolve(),k=null);let I=e.fileSearchQuery;if(!I||I.length<2){e.fileSearchResults=null,e.fileSearchLoading=!1;return}e.fileSearchLoading=!0;let q=r.defer();k=q,t.get(`/api/repo/${e.repoId}/files/search?q=${encodeURIComponent(I)}`,{timeout:q.promise}).then(function(E){if(!(g||k!==q)){k=null,e.fileSearchLoading=!1;var L={};e.files.forEach(function(Se){L[(Se.path||"")+"/"+Se.name]=!0});for(var G=[],j={},Y=0;Y0&&e.files.push.apply(e.files,G);for(var Xe=[],ze=0;ze0&&e.files.push.apply(e.files,Xe),e.fileSearchResults=E.data}},function(){!g&&k===q&&(k=null,e.fileSearchLoading=!1,e.fileSearchResults=[])})},e.on("routeUpdate",function(I,q){if(e.repoId!=i.repoId)return z();if((i.path||"")!=e.filePath){window.matchMedia?.("(max-width: 767px)").matches&&(e.sidebarCollapsed=!0),e.filePath=i.path||"",e.paths=e.filePath.split("/").filter(E=>E&&E.trim().length>0),_();for(let E=0;E0?e.paths.slice(0,E).join("/"):"";e.files.some(j=>j.path===L)||e.getFiles(L)}}});function w(){if(e.paths[0]!="")return;let I=["readme.md","readme.txt","readme.org","readme.1st","readme"],q={};for(let L of e.files)L.name.toLowerCase().indexOf("readme")>-1&&(q[L.name.toLowerCase()]=L.name);let E=null;for(let L of I)if(q[L]){E=L;break}if(!E&&Object.keys(q).length>0&&(E=Object.keys(q)[0]),E){let L=s.url();L[L.length-1]!="/"&&(L+="/"),s.url(L+encodePathForUrl(q[E]))}}e.fileCounts=null;let S=0,N=new Set,b=!1;e.getFiles=function(I,q=!1){let E=e.repoId,L=S;return t.get(`/api/repo/${e.repoId}/files/?path=${encodeURIComponent(I)}&v=${e.options.lastUpdateDate}`).then(function(G){if(g||E!==e.repoId||L!==S)return[];let j=I||"";return e.files=e.files.filter(Y=>Y.path!==j),e.files.push(...G.data),e.loadedFolders={...e.loadedFolders,[j]:!0},T(j,L),G.data},function(G){if(g||E!==e.repoId||L!==S)return[];q||(e.type="error",e.content=vr(G),e.files=[])})};function T(I,q){if(b||N.has(I))return;N.add(I);let E=e.repoId;t.get(`/api/repo/${e.repoId}/files/counts?path=${encodeURIComponent(I)}`).then(function(L){g||E!==e.repoId||q!==S||(e.fileCounts={...e.fileCounts,...L.data})},function(){g||E!==e.repoId||q!==S||(b=!0)})}function O(){return e.files.filter(I=>I.name==e.paths[e.paths.length-1]&&I.path==e.paths.slice(0,e.paths.length-1).join("/"))[0]}var F=null;e.on("dispose",function(){F&&u.interval.cancel(F)});function H(I){if(g)return;let q=e.repoId;t.get(`/api/repo/${e.repoId}/options`).then(E=>{if(!(g||q!==e.repoId)){if(e.options=E.data,e.options.url){window.location=e.options.url;return}I&&I(E.data)}},E=>{if(!(g||q!==e.repoId)){var L=E.data||{};if(L.error==="rate_limited"&&L.resetAt){let j=function(){var Y=Math.max(0,Math.ceil((e.rateLimitResetAt-Date.now())/1e3));if(Y<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,F&&(u.interval.cancel(F),F=null),H(I);else{var ne=Math.floor(Y/60),x=Y%60;e.rateLimitCountdown=ne>0?ne+"m "+x+"s":x+"s"}};var G=j;e.type="rate_limited",e.rateLimitResetAt=L.resetAt,F&&u.interval.cancel(F),j(),F=u.interval(j,1e3)}else L.error==="repository_not_ready"?(e.type="loading",u.timeout(function(){H(I)},3e3)):(e.type="error",e.content=vr(E))}})}function se(I,q){let E=c;if(!I){e.type="error",e.content="no_file_selected";return}let L=e.type;(L==="code"||L==="text")&&di().catch(()=>{}),e.type="loading",e.content="loading",e.fileLoadingSlow=!1,e.fileReceivedBytes=0;let G=r.defer();v=G,h=u.timeout(()=>{!g&&E===c&&e.type==="loading"&&(e.fileLoadingSlow=!0)},1500);let j=q&&q.sha||"0";t.get(`/api/repo/${e.repoId}/file/${encodePathForUrl(I)}?v=`+j,{timeout:G.promise,onDownloadProgress:Y=>{!g&&E===c&&(e.fileReceivedBytes=Y)},transformResponse:Y=>Y}).then(Y=>{g||E!==c||(y(),e.renderFileContent(Y.data,L,s.url()+"/../",Y.headers("content-type")))},Y=>{g||E!==c||(y(),e.type="error",e.content=vr(Y))})}function _(){c++,y(),e.content="",e.file=O();let I="0";e.file&&e.file.sha&&(I=e.file.sha),e.url=`/api/repo/${e.repoId}/file/${encodePathForUrl(e.filePath)}?v=${I}`;let q=e.filePath.substring(0,e.filePath.lastIndexOf("/")+1);if(e.fileBaseUrl=`/api/repo/${e.repoId}/file/${q?encodePathForUrl(q):""}`,e.showSource=!1,e.imageSize="",e.allowScripts=!1,e.prepareFile(e.filePath),e.type=="pdf"){e.content="pdf";return}if(e.type=="media"||e.type=="audio"){e.content=e.type;return}se(e.filePath,e.file)}e.isSourceAccessError=()=>["repo_not_found","token_expired","github_app_access_required","github_app_reconnect_required","repo_saml_enforcement","repo_access_limited"].includes(e.content),e.retryContent=()=>z();function z(){c++,y(),e.files=[],e.loadedFolders={},e.content=null,e.fileCounts=null,S++,N=new Set,b=!1,e.fileSearchQuery="",e.onFileSearchChange(),e.repoId=i.repoId,e.type="loading",e.filePath=i.path||"",e.paths=e.filePath.split("/");let I=e.repoId;H(function(q){if(e.filePath){_();let L=[...new Set(e.paths.map((G,j)=>e.paths.slice(0,j).join("/")))];r.all(L.map(G=>e.getFiles(G,!0)));return}var E=r.resolve();for(let L=0;L0?e.paths.slice(0,L).join("/"):"";E=E.then(function(){return e.getFiles(G)}).then(function(){if(e.type==="error")return r.reject("error")})}E.then(function(){g||I!==e.repoId||(e.files.length==1&&e.files[0].name==""?(e.files=[],e.type="empty"):(w(),_()))})})}z()},Qc=function(e,t,s,i,o){async function r(c){t.get(`/api/pr/${e.pullRequestId}/options`).then(v=>{if(e.options=v.data,e.options.url){window.location=e.options.url;return}c&&c(v.data)},v=>{e.type="error",e.content=v.data.error})}async function u(c){t.get(`/api/pr/${e.pullRequestId}/content`).then(v=>{e.details=v.data,e.tabState={active:v.data.diff?"diff":"comments"},c&&c(v.data)},v=>{e.type="error",e.content=v.data.error})}function p(){e.pullRequestId=i.pullRequestId,e.type="loading",r(c=>{u()})}p()},Zc=function(e,t,s,i,o){async function r(c){t.get(`/api/gist/${e.gistId}/options`).then(v=>{if(e.options=v.data,e.options.url){window.location=e.options.url;return}c&&c(v.data)},v=>{e.type="error",e.content=v.data.error})}async function u(c){t.get(`/api/gist/${e.gistId}/content`).then(v=>{e.details=v.data;let h=v.data&&v.data.files&&v.data.files.length;e.tabState={active:h?"files":"comments"},c&&c(v.data)},v=>{e.type="error",e.content=v.data.error})}function p(){e.gistId=i.gistId,e.type="loading",r(()=>{u()})}p()},xc=function(e,t,s){e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.conferences=[],e.loading=!0,e.error="",e.search="";let i="conferences.filterPrefs",o={filters:{status:{ready:!0,expired:!1,removed:!1}},orderBy:"name"},r=loadFilterPrefs(i)||{};e.filters={status:Object.assign({},o.filters.status,r.filters&&r.filters.status||{})},e.orderBy=r.orderBy||o.orderBy,e.watch("orderBy",()=>{saveFilterPrefs(i,{filters:e.filters,orderBy:e.orderBy})}),e.watch("filters",()=>{saveFilterPrefs(i,{filters:e.filters,orderBy:e.orderBy})},!0),e.removeConference=function(u){if(!u.removing&&confirm(`Are you sure that you want to remove the conference ${u.name}? All the repositories linked to this conference will expire.`)){u.removing=!0;let p=rt({title:`Removing ${u.name}...`,date:new Date,body:`The conference ${u.name} is going to be removed.`});e.addToast(p),t.delete(`/api/conferences/${u.conferenceID}`).then(()=>{p.title=`${u.name} is removed.`,p.body=`The conference ${u.name} is removed.`,e.loadConferences()}).catch(()=>{p.title="Unable to remove conference",p.body="Please try again. The conference has not been removed."}).finally(()=>{u.removing=!1})}},e.loadConferences=()=>(e.loading=!0,e.error="",t.get("/api/conferences/").then(u=>{e.conferences=u.data||[]},u=>{e.error="Unable to load your conferences. Please try again."}).finally(()=>{e.loading=!1})),e.loadConferences(),e.conferenceFilter=u=>{if(e.filters.status[u.status]==!1)return!1;let p=e.search.trim().toLowerCase();return!!(!p||(u.name||"").toLowerCase().includes(p)||(u.conferenceID||"").toLowerCase().includes(p))}},il=function(e,t,s,i){e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/");let o=()=>{for(let[g,k,w]of[["startDate","Starts","startDate"],["endDate","Ends","endDate"]]){let S=document.getElementById(g);if(!S)continue;let N=S.parentElement.querySelector(":scope > .date-echo");N||(N=document.createElement("p"),N.className="date-echo",N.setAttribute("aria-live","polite"),S.insertAdjacentElement("afterend",N));let b=Aa(e.options?.[w]);N.textContent=b?k+" "+b:"",N.hidden=!b}};typeof e.watchGroup=="function"&&e.watchGroup(["options.startDate","options.endDate"],()=>Ge(o));let r=(g=20)=>{let k=document.querySelector("input#name.form-control"),w=document.querySelector("input#conferenceID.form-control");w&&(w.placeholder="e.g. ICSE27"),k?k.placeholder="e.g. ICSE 2027":g>0&&setTimeout(()=>r(g-1),50)};setTimeout(()=>r(),0),e.plans=[],e.plansLoaded=!1,e.conferenceBilling=null,xi(t).then(g=>{e.conferenceBilling=g.data}).catch(()=>{}),e.conferenceTiers=()=>e.plans.filter(g=>g.id!=="free_conference").map(g=>{let k=(e.conferenceBilling?.plans||[]).find(w=>w.id===g.id)||{};return{...g,storage:g.storagePerRepo,...k,id:g.id,name:g.name}}),e.conferenceAudience=g=>({conference_workshop:"Workshops and small venues",conference:"A typical conference",conference_large:"Large or multi-track venues"})[g]||"",e.conferencePlanName=g=>ep(g),e.conferenceAmount=(g,k=g?.amount)=>new Intl.NumberFormat(void 0,{style:"currency",currency:g?.currency||"eur",minimumFractionDigits:k%100?2:0,maximumFractionDigits:2}).format(k/100),e.conferenceBytes=g=>{let k=Number(g)||0,w=Math.min(4,Math.floor(Math.log2(Math.max(k,1))/10));return`${new Intl.NumberFormat(void 0,{maximumFractionDigits:1}).format(k/1024**w)} ${["B","KB","MB","GB","TB"][w]}`},e.editionMode=!1,e.saving=!1,e.error="";function u(){return t.get("/api/conferences/"+i.conferenceId).then(g=>{e.options={...e.options,...g.data,billing:g.data.billing||{}},e.options.startDate=new Date(e.options.startDate),e.options.endDate=new Date(e.options.endDate)})}i.conferenceId&&(e.editionMode=!0,u());function p(){t.get("/api/conferences/plans").then(g=>{e.plans=g.data,e.plansLoaded=!0,!e.editionMode&&e.plans.length&&!e.plans.some(k=>k.id==e.options.plan.planID)&&(e.options.plan.planID=(e.plans.find(k=>k.id==="conference")||e.plans[0]).id),e.plan=e.plans.filter(k=>k.id==e.options.plan.planID)[0]})}p();let c=new Date;c.setDate(1),c.setMonth(c.getMonth()+1);let v=new Date(c);v.setTime(c.getTime()+179*864e5),e.options={billing:{},startDate:c,endDate:v,plan:{planID:"free_conference"},options:{link:!0,image:!0,pdf:!0,notebook:!0,update:!0,page:!0}},e.plan=null,e.watch("options.plan.planID",()=>{e.plan=e.plans.filter(g=>g.id==e.options.plan.planID)[0]});function h(){e.conference.name.setValidity("required",!0),e.conference.conferenceID.setValidity("pattern",!0),e.conference.conferenceID.setValidity("required",!0),e.conference.conferenceID.setValidity("used",!0),e.conference.startDate.setValidity("required",!0),e.conference.startDate.setValidity("invalid",!0),e.conference.endDate.setValidity("required",!0),e.conference.endDate.setValidity("invalid",!0),e.conference.setValidity("error",!0)}function y(g){switch(g){case"conf_name_missing":e.conference.name.setValidity("required",!1);break;case"conf_id_missing":e.conference.conferenceID.setValidity("required",!1);break;case"conf_id_format":e.conference.conferenceID.setValidity("pattern",!1);break;case"conf_id_used":e.conference.conferenceID.setValidity("used",!1);break;case"conf_start_date_missing":e.conference.startDate.setValidity("required",!1);break;case"conf_end_date_missing":e.conference.endDate.setValidity("required",!1);break;case"conf_start_date_invalid":e.conference.startDate.setValidity("invalid",!1);break;case"conf_end_date_invalid":e.conference.endDate.setValidity("invalid",!1);break;default:e.conference.setValidity("error",!1);break}}e.submit=function(){if(e.saving)return;e.saving=!0,e.error="";let g=JSON.parse(JSON.stringify(e.options)),k=rt({title:`Creating ${g.name}...`,date:new Date,body:`The conference ${g.conferenceID} is in creation.`});e.editionMode&&(k.title=`Updating ${g.name}...`,k.body=`The conference '${g.conferenceID}' is updating.`),e.addToast(k),h(),t.post("/api/conferences/"+(e.editionMode?g.conferenceID:""),g).then(()=>{e.editionMode?(k.title=`${g.name} updated`,k.body=`The conference '${g.conferenceID}' is updated.`):(k.title=`${g.name} created`,k.body=`The conference '${g.conferenceID}' is created.`),s.url("/conference/"+g.conferenceID)},w=>{y(w.data?.error),e.error="Unable to save the conference. Please correct any highlighted fields and try again.",e.removeToast(k)}).finally(()=>{e.saving=!1})}};function ep(e){return{free_conference:"Free (no longer offered to new conferences)",conference_workshop:"Workshop package",conference:"Conference package",conference_large:"Large conference package",premium_conference:"Premium (legacy)",unlimited_conference:"Unlimited (legacy)"}[e]||e||"Free"}var tp=function(e,t,s,i){er(e,t,()=>p(),{confirmedMessage:"Payment status checked. Your conference is ready for submissions once payment is confirmed."}),e.conferencePlanName=c=>ep(c),e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.conference=null,e.search="",e.filters={status:{ready:!0,preparing:!0,error:!0,expired:!0,removed:!1}},e.orderBy="-anonymizeDate";let o=ir,r=["ready","preparing","error","expired","removed"],u={current:c=>c!=="removed",attention:c=>c==="error",removed:c=>c==="removed"};e.confView=()=>Object.keys(u).find(c=>r.every(v=>u[c](v)===(e.filters.status[v]!==!1)))||"custom",e.setConfView=c=>{r.forEach(v=>{e.filters.status[v]=(u[c]||u.current)(v)})},e.confCount=c=>(e.conference?.repositories||[]).filter(v=>u[c](o(v.status))).length,e.copyingId=null,e.copyRepoLink=async c=>{if(!c?.repoId||e.copyingId)return;let v=new URL("/r/"+c.repoId+"/",window.location.origin).href;e.copyingId=c.repoId;try{await ol(v),e.addToast({title:"Link copied",body:"The anonymous link is ready to share."})}catch{e.addToast({title:"Copy this anonymous link",body:v})}finally{e.copyingId=null}},e.extendingId=null,e.extendRepo=c=>{!c?.repoId||e.extendingId||(e.extendingId=c.repoId,t.post("/api/repo/"+c.repoId+"/extend").then(v=>{let h=v?.data?.expirationDate?` until ${new Date(v.data.expirationDate).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}`:"";e.addToast({title:`${c.repoId} is extended.`,body:`Reviewers can open it again${h}.`}),c.status="ready",v?.data?.expirationDate&&(c.options={...c.options||{},expirationDate:v.data.expirationDate}),e.extendingId=null},v=>{let h=v?.status||v?.data?.status;e.addToast({title:`Couldn't extend ${c.repoId}.`,body:h===401||h===403?"Only the repository's authors can extend this link. Ask them to extend it from My work.":"Try again in a moment."}),e.extendingId=null}))},e.repoFiler=c=>{if(e.filters.status[o(c.status)]==!1)return!1;let v=e.search.trim().toLowerCase();return!!(!v||(c.source?.fullName||"").toLowerCase().includes(v)||(c.repoId||"").toLowerCase().includes(v))};function p(){t.get("/api/conferences/"+i.conferenceId).then(c=>{e.conference=c.data})}p()},np=function(e,t){e.notificationEmail="",e.emailSaved=!1,e.saveNotificationEmail=async()=>{e.busy=!0,e.emailSaved=!1,e.connectionError="";try{let s=await t.post("/github/connections/email",{email:e.notificationEmail},{headers:{"X-CSRF-Token":e.connections.csrf}});e.notificationEmail=s.data.notificationEmail,e.user&&(e.user.notificationEmail=s.data.notificationEmail),e.emailSaved=!0}catch(s){e.connectionError=s.data?.error||"Unable to save email address."}finally{e.busy=!1}},e.connections=null,e.connectionError="",e.busy=!1,e.loadConnections=()=>t.get("/github/connections").then(s=>{e.connections=s.data,e.notificationEmail=s.data.notificationEmail||""}).catch(s=>{e.connectionError=s.data?.error||"Unable to load connections."}),e.changeConnection=async(s,i,o)=>{e.busy=!0,e.connectionError="";try{let r=await t.post("/github/connections/migrate",{type:s.type,id:s.id,connection:i,preview:o},{headers:{"X-CSRF-Token":e.connections.csrf}});o?s.eligible=r.data.eligible:await e.loadConnections()}catch(r){e.connectionError=r.data?.error||"Unable to change connection."}finally{e.busy=!1}},e.disconnectOAuth=async()=>{e.busy=!0;try{await t.post("/github/connections/disconnect-oauth",{},{headers:{"X-CSRF-Token":e.connections.csrf}}),await e.loadConnections()}catch(s){e.connectionError=s.data?.error||"Unable to disconnect OAuth."}finally{e.busy=!1}},e.loadConnections()},op=function(e,t){e.accountRecovery=!1,t.get("/github/account-recovery").then(s=>{e.accountRecovery=s.data.required}).catch(()=>{})};typeof document<"u"&&document.addEventListener("scroll",e=>{let t=e.target;!t||!t.classList||!t.classList.contains("repo-picker-list")||t.classList.toggle("is-end",t.scrollTop+t.clientHeight>=t.scrollHeight-2)},!0);var sp=[{path:"/review-link",template:"partials/reviewConsent.htm",title:"Artifact consent \u2013 Anonymous GitHub",setup:(e,t)=>hl(e,t)},{path:"/connections",template:"partials/connections.htm",title:"GitHub connections \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>np(e,t.http)},{path:"/signin",template:"partials/signin.htm",title:"Sign in \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>op(e,t.http)},{path:"/",template:"partials/home.htm",title:"Anonymous GitHub \u2013 Share the code, not the author",preserveExplorer:!1,setup:(e,t)=>Yc(e,t.http,t.location,t.window,t.timeout)},{path:"/dashboard",template:"partials/dashboard.htm",title:"Your anonymizations \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Jc(e,t.http,t.location,t.promises,t.window,t.quotaService)},{path:"/pr-dashboard",redirect:"/dashboard"},{path:"/anonymize/:repoId?",template:"partials/anonymize.htm",title:"New anonymization \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>br(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/pull-request-anonymize/:pullRequestId?",template:"partials/anonymize.htm",title:"Anonymize a pull request \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>br(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/gist-anonymize/:gistId?",template:"partials/anonymize.htm",title:"Anonymize a gist \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>br(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/status/:repoId",template:"partials/status.htm",title:"Repository status \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Xc(e,t.http,t.params)},{path:"/conferences",template:"partials/conferences.htm",title:"Your conferences \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>xc(e,t.http,t.location)},{path:"/conference/new",template:"partials/newConference.htm",title:"New conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>il(e,t.http,t.location,t.params)},{path:"/conference/:conferenceId/edit",template:"partials/newConference.htm",title:"Edit conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>il(e,t.http,t.location,t.params)},{path:"/conference/:conferenceId",template:"partials/conference.htm",title:"Conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>tp(e,t.http,t.location,t.params)},{path:"/faq",template:"partials/faq.htm",title:"FAQ \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Gc(e,t.http)},{path:"/profile",template:"partials/profile.htm",title:"Your settings \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Wc(e,t.http,t.translate,t.timeout,t.quotaService)},{path:"/claim",template:"partials/claim.htm",title:"Claim an anonymization \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Kc(e,t.http,t.location)},{path:"/pr/:pullRequestId/:path(.*)*",template:"partials/pullRequest.htm",title:"Anonymous pull request \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Qc(e,t.http,t.location,t.params,t.html)},{path:"/gist/:gistId/:path(.*)*",template:"partials/gist.htm",title:"Anonymous gist \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Zc(e,t.http,t.location,t.params,t.html)},{path:"/r/:repoId/:path(.*)*",template:"partials/explorer.htm",title:"Anonymous repository \u2013 Anonymous GitHub",preserveExplorer:!0,setup:(e,t)=>sl(e,t.http,t.location,t.params,t.html,t.promises)},{path:"/repository/:repoId/:path(.*)*",template:"partials/explorer.htm",title:"Anonymous repository \u2013 Anonymous GitHub",preserveExplorer:!0,setup:(e,t)=>sl(e,t.http,t.location,t.params,t.html,t.promises)},{path:"/admin/",template:"partials/admin/overview.htm",title:"Admin \xB7 Overview \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>ec(e,t.http,t.location,t.interval)},{path:"/admin/repositories",template:"partials/admin/repositories.htm",title:"Admin \xB7 Repositories \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Yu(e,t.http,t.location)},{path:"/admin/users",template:"partials/admin/users.htm",title:"Admin \xB7 Users \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Ju(e,t.http,t.location)},{path:"/admin/users/:username",template:"partials/admin/user.htm",title:"Admin \xB7 User details \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Xu(e,t.http,t.location,t.params)},{path:"/admin/conferences",template:"partials/admin/conferences.htm",title:"Admin \xB7 Conferences \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Qu(e,t.http,t.location)},{path:"/admin/emails",template:"partials/admin/emails.htm",title:"Admin \xB7 Emails \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>oc(e,t.http,t.location)},{path:"/admin/billing",template:"partials/admin/billing.htm",title:"Admin \xB7 Billing \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>nc(e,t.http,t.location)},{path:"/admin/queues",template:"partials/admin/queues.htm",title:"Admin \xB7 Queues \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Zu(e,t.http,t.location,t.interval,t.timeout)},{path:"/admin/errors",template:"partials/admin/errors.htm",title:"Admin \xB7 Errors \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>xu(e,t.http,t.location,t.interval)},{path:"/404",template:"partials/404.htm",title:"Page not found \u2013 Anonymous GitHub",preserveExplorer:!1,setup:()=>{}},{path:"/:pathMatch(.*)*",template:"partials/404.htm",title:"Page not found \u2013 Anonymous GitHub",setup:()=>{}}];var Ov={class:"container paper-page admin-page overview-page emails-page"},Mv={class:"email-overview-toolbar"},Vv={class:"seg-filter",role:"group","aria-label":"History period"},qv=["aria-pressed","onClick"],Lv={class:"email-refresh"},_v={key:0},$v=["disabled"],Fv={key:0,class:"email-state email-state-error",role:"alert"},Uv=["aria-busy"],Bv={class:"ov-kpi-card"},zv={class:"ov-kpi-value"},Hv={class:"ov-kpi-card"},jv={class:"ov-kpi-value"},Gv={class:"ov-kpi-card"},Wv={class:"ov-kpi-card"},Kv={class:"ov-kpi-value"},Yv={class:"ov-kpi-sub"},Jv={key:1,class:"ov-chart-card email-chart","aria-label":"Email activity by day"},Xv={class:"ov-chart-head"},Qv={class:"ov-chart-title"},Zv={class:"email-muted"},xv={class:"email-chart-plot"},ey={class:"email-axis"},ty={class:"email-bars"},ny=["aria-label","title"],oy={class:"email-chart-dates"},sy={key:0},iy={class:"email-chart-data"},ry={class:"email-data-scroll"},ay={scope:"row"},ly={"aria-labelledby":"email-history-title",class:"email-history"},dy={class:"email-section-head"},uy={class:"email-muted"},cy={class:"email-search"},py={class:"email-status-tabs",role:"group","aria-label":"Outcome filter"},fy=["aria-pressed","onClick"],my={class:"sr-only",role:"status","aria-live":"polite","aria-atomic":"true"},hy={key:0,class:"email-state email-state-error",role:"alert"},gy=["disabled"],vy={key:1,class:"email-state"},yy={key:2,class:"email-state"},by={key:3,class:"email-footer email-pager-top"},wy=["disabled"],ky=["disabled"],Cy=["aria-busy"],Sy={class:"email-table",role:"table"},Ey={role:"rowgroup"},Ny={class:"email-recipient",role:"cell"},Ry=["title"],Ty={class:"email-result",role:"cell"},Py={key:0,class:"email-http"},Dy={class:"email-type",role:"cell"},Ay={class:"email-attempted",role:"cell"},Iy=["datetime","title"],Oy={class:"email-expand",role:"cell"},My=["aria-expanded","aria-controls","aria-label","onClick"],Vy={"aria-hidden":"true"},qy={key:0,class:"email-expanded",role:"row"},Ly={colspan:"5",role:"cell"},_y=["id","aria-label"],$y={class:"email-detail-heading"},Fy={class:"email-explanation"},Uy={class:"email-detail-grid"},By=["onClick"],zy=["onClick"],Hy=["onClick"],jy=["onClick"],Gy={key:0,class:"email-copy-feedback"},Wy={key:5,class:"email-footer"},Ky=["disabled"],Yy=["disabled"];function ip(e,t){return a(),l("div",Ov,[t[43]||(t[43]=Ce('
Admin \xA0/\xA0 Emails

Emails

',2)),n("div",Mv,[n("div",Vv,[(a(),l(V,null,X([{id:"7d",label:"7 days"},{id:"30d",label:"30 days"},{id:"90d",label:"90 days"},{id:"all",label:"All time"}],s=>n("button",{key:s.id,class:R(["seg-chip",{active:e.emailPeriod===s.id}]),"aria-pressed":e.emailPeriod===s.id,onClick:i=>{e.emailPeriod=s.id,e.applyEmailFilters()}},d(s.label),11,qv)),64))]),n("button",{class:"email-detail-button email-jump",onClick:t[0]||(t[0]=s=>e.jumpToEmailHistory())},"Search email history \u2193"),n("div",Lv,[e.emailUpdated?(a(),l("span",_v,"History updated "+d(e.emailShortTime(e.emailUpdated)),1)):f("v-if",!0),n("button",{class:"btn btn-sm",disabled:e.emailLoading||e.emailSummaryLoading,onClick:t[1]||(t[1]=s=>e.refreshEmails())},"Refresh",8,$v)])]),t[44]||(t[44]=n("p",{class:"email-basis"},"Recorded sending attempts \xB7 Provider acceptance does not confirm inbox delivery.",-1)),e.emailSummaryError?(a(),l("div",Fv,[m(d(e.emailSummaryError)+" ",1),n("button",{class:"btn btn-sm",onClick:t[2]||(t[2]=s=>e.loadEmailSummary())},"Retry summary")])):f("v-if",!0),n("section",{class:"ov-kpi-row email-kpis","aria-label":"Email summary","aria-busy":e.emailSummaryLoading},[n("div",Bv,[t[14]||(t[14]=n("div",{class:"ov-kpi-label"},"Recorded attempts",-1)),n("div",zv,d(e.emailSummary?e.emailSummary.total.toLocaleString():"\u2014"),1),t[15]||(t[15]=n("div",{class:"ov-kpi-sub"},"Selected period, search and type",-1))]),n("div",Hv,[t[16]||(t[16]=n("div",{class:"ov-kpi-label"},"Accepted by provider",-1)),n("div",jv,d(e.emailSummary?e.emailSummary.counts.accepted.toLocaleString():"\u2014"),1),t[17]||(t[17]=n("div",{class:"ov-kpi-sub"},"Delivery unverified",-1))]),n("div",Gv,[t[18]||(t[18]=n("div",{class:"ov-kpi-label"},"Rejected",-1)),n("div",{class:R(["ov-kpi-value",{"email-error-text":e.emailSummary?.counts.rejected}])},d(e.emailSummary?e.emailSummary.counts.rejected.toLocaleString():"\u2014"),3),t[19]||(t[19]=n("div",{class:"ov-kpi-sub"},"Provider returned an error",-1))]),n("div",Wv,[t[20]||(t[20]=n("div",{class:"ov-kpi-label"},"Unconfirmed",-1)),n("div",Kv,d(e.emailSummary?(e.emailSummary.counts.unknown+e.emailSummary.counts.sending).toLocaleString():"\u2014"),1),n("div",Yv,d(e.emailSummary?e.emailSummary.counts.unknown:"\u2014")+" unknown \xB7 "+d(e.emailSummary?e.emailSummary.counts.sending:"\u2014")+" pending",1)])],8,Uv),e.emailSummary?(a(),l("section",Jv,[n("div",Xv,[n("h2",Qv,[t[21]||(t[21]=m("Sending activity ",-1)),n("span",Zv,"\xB7 "+d(e.emailSummary.chartDays)+" days \xB7 UTC",1)]),t[22]||(t[22]=n("div",{class:"email-legend"},[n("span",{class:"email-outcome email-outcome-accepted"},"Accepted"),n("span",{class:"email-outcome email-outcome-rejected"},"Rejected"),n("span",{class:"email-outcome email-outcome-unknown"},"Unconfirmed")],-1))]),n("div",xv,[n("div",ey,[n("span",null,d(e.emailChartMax()),1),t[23]||(t[23]=n("span",null,"0",-1))]),n("div",ty,[(a(!0),l(V,null,X(e.emailSummary.series,s=>(a(),l("div",{key:s.date,class:"email-bar-column","aria-label":e.emailDayLabel(s)+": "+s.accepted+" accepted, "+s.rejected+" rejected, "+(s.unknown+s.sending)+" unconfirmed",title:e.emailDayLabel(s)+": "+e.emailDayTotal(s)+" attempts"},[n("div",{class:"email-bar-stack",style:Ae({height:Math.max(1,e.emailDayTotal(s)/e.emailChartMax()*100)+"%"})},[n("i",{class:"email-bar-accepted",style:Ae({flexGrow:s.accepted})},null,4),n("i",{class:"email-bar-rejected",style:Ae({flexGrow:s.rejected})},null,4),n("i",{class:"email-bar-unknown",style:Ae({flexGrow:s.unknown+s.sending})},null,4)],4)],8,ny))),128))])]),n("div",oy,[n("span",null,d(e.emailDayLabel(e.emailSummary.series[0])),1),e.emailChartTotal()?f("v-if",!0):(a(),l("span",sy,"No recorded activity in these "+d(e.emailSummary.chartDays)+" days",1)),n("span",null,d(e.emailDayLabel(e.emailSummary.series[e.emailSummary.series.length-1])),1)]),n("details",iy,[t[26]||(t[26]=n("summary",null,"View daily counts",-1)),n("div",ry,[n("table",null,[t[24]||(t[24]=n("caption",{class:"sr-only"},"Daily sending attempts in UTC",-1)),t[25]||(t[25]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Date"),n("th",{scope:"col"},"Accepted"),n("th",{scope:"col"},"Rejected"),n("th",{scope:"col"},"Unknown"),n("th",{scope:"col"},"Pending")])],-1)),n("tbody",null,[(a(!0),l(V,null,X(e.emailSummary.series,s=>(a(),l("tr",{key:s.date},[n("th",ay,d(e.emailDayLabel(s)),1),n("td",null,d(s.accepted),1),n("td",null,d(s.rejected),1),n("td",null,d(s.unknown),1),n("td",null,d(s.sending),1)]))),128))])])])])])):f("v-if",!0),n("section",ly,[n("div",dy,[t[27]||(t[27]=n("h2",{id:"email-history-title",tabindex:"-1"},"Email history",-1)),n("span",uy,"Newest first \xB7 "+d(e.emailTimezone),1)]),n("form",{class:"email-toolbar",onSubmit:t[7]||(t[7]=de(s=>e.applyEmailFilters(),["prevent"])),"aria-label":"Filter email history"},[n("label",cy,[t[28]||(t[28]=m("Search attempts",-1)),P(n("input",{class:"form-control","onUpdate:modelValue":t[3]||(t[3]=s=>e.emailSearch=s),type:"search",maxlength:"200",placeholder:"Search recipients or IDs","aria-describedby":"email-search-help"},null,512),[[nt,e.emailSearch]])]),n("label",null,[t[30]||(t[30]=m("Email type",-1)),P(n("select",{class:"form-control","onUpdate:modelValue":t[4]||(t[4]=s=>e.emailKind=s),onChange:t[5]||(t[5]=s=>e.applyEmailFilters())},[...t[29]||(t[29]=[n("option",{value:""},"All email types",-1),n("option",{value:"repository-expiration"},"Repository expiration",-1),n("option",{value:"owner-access"},"GitHub access",-1)])],544),[[Nt,e.emailKind]])]),t[31]||(t[31]=n("button",{class:"btn",type:"submit"},"Search",-1)),e.hasEmailFilters()?(a(),l("button",{key:0,class:"btn",type:"button",onClick:t[6]||(t[6]=s=>e.clearEmailFilters())},"Clear")):f("v-if",!0)],32),t[42]||(t[42]=n("p",{id:"email-search-help",class:"email-search-help"},"Search part of a recipient address, or an exact attempt, owner or resource ID.",-1)),n("div",py,[(a(),l(V,null,X(["","accepted","rejected","unknown","sending"],s=>n("button",{key:s,class:R({active:e.emailState===s}),"aria-pressed":e.emailState===s,onClick:i=>e.setEmailStatus(s)},[m(d(s?e.emailStatusLabel(s):"All attempts")+" ",1),n("span",null,d(e.emailSummary?(s?e.emailSummary.counts[s]:e.emailSummary.total).toLocaleString():"\u2014"),1)],10,fy)),64))]),n("p",my,d(e.emailAnnouncement)+" "+d(e.emailCopyMessage),1),e.emailError?(a(),l("div",hy,[n("span",null,d(e.emailError),1),n("button",{class:"btn btn-sm",disabled:e.emailLoading,onClick:t[8]||(t[8]=s=>e.retryEmails())},"Retry",8,gy)])):f("v-if",!0),e.emailLoading&&!e.emailRows.length?(a(),l("p",vy,"Loading email history\u2026")):f("v-if",!0),!e.emailLoading&&!e.emailError&&!e.emailRows.length?(a(),l("div",yy,[n("p",null,d(e.hasEmailFilters()?"No attempts match these filters. Try another recipient or a wider period.":"No attempts recorded in this period."),1),e.hasEmailFilters()?(a(),l("button",{key:0,class:"btn btn-sm",onClick:t[9]||(t[9]=s=>e.clearEmailFilters())},"Clear filters")):f("v-if",!0)])):f("v-if",!0),e.emailRows.length?(a(),l("div",by,[n("span",null,[m(d((e.emailPage-1)*25+1)+"\u2013"+d(Math.min(e.emailPage*25,e.emailRows.length)),1),e.emailTotal()!=null?(a(),l(V,{key:0},[m(" of "+d(e.emailTotal().toLocaleString()),1)],64)):f("v-if",!0),t[32]||(t[32]=m(" attempts",-1))]),n("div",null,[n("button",{class:"btn btn-sm",disabled:e.emailPage===1||e.emailLoading,onClick:t[10]||(t[10]=s=>e.emailPreviousPage())},"Previous",8,wy),n("button",{class:"btn btn-sm",disabled:e.emailLoading||!e.emailNextCursor&&e.emailPage*25>=e.emailRows.length,onClick:t[11]||(t[11]=s=>e.emailNextPage())},"Next",8,ky)])])):f("v-if",!0),e.emailRows.length?(a(),l("div",{key:4,class:"email-table-wrap","aria-busy":e.emailLoading},[n("table",Sy,[t[40]||(t[40]=n("caption",{class:"sr-only"},"Recorded email attempts. Expand a row for identifiers and outcome details.",-1)),t[41]||(t[41]=n("thead",{role:"rowgroup"},[n("tr",{role:"row"},[n("th",{scope:"col"},"Recipient"),n("th",{scope:"col"},"Outcome"),n("th",{scope:"col"},"Email type"),n("th",{scope:"col"},"Attempted"),n("th",{scope:"col"},[n("span",{class:"sr-only"},"Details")])])],-1)),n("tbody",Ey,[(a(!0),l(V,null,X(e.emailVisibleRows(),s=>(a(),l(V,{key:s._id},[n("tr",{role:"row",class:R({"email-selected":e.selectedEmailId===s._id})},[n("td",Ny,[n("span",{title:s.recipient},d(s.recipient),9,Ry)]),n("td",Ty,[n("span",{class:R(["email-outcome","email-outcome-"+s.state])},d(e.emailStatusLabel(s.state)),3),s.httpStatus?(a(),l("small",Py,d(s.httpStatus),1)):f("v-if",!0)]),n("td",Dy,d(e.emailKindLabel(s.kind)),1),n("td",Ay,[n("time",{datetime:s.createdAt,title:e.emailTime(s.createdAt)},d(e.emailShortTime(s.createdAt)),9,Iy)]),n("td",Oy,[n("button",{class:"email-detail-button","aria-expanded":e.selectedEmailId===s._id,"aria-controls":"detail-"+s._id,"aria-label":(e.selectedEmailId===s._id?"Close":"View")+" details for "+s.recipient,onClick:i=>e.toggleEmail(s)},[m(d(e.selectedEmailId===s._id?"Close":"Details")+" ",1),n("span",Vy,d(e.selectedEmailId===s._id?"\u2212":"+"),1)],8,My)])],2),e.selectedEmailId===s._id?(a(),l("tr",qy,[n("td",Ly,[n("section",{id:"detail-"+s._id,"aria-label":"Attempt details for "+s.recipient},[n("div",$y,[t[33]||(t[33]=n("h3",null,"Attempt details",-1)),n("span",{class:R(["email-outcome","email-outcome-"+s.state])},d(e.emailStatusLabel(s.state)),3)]),n("p",Fy,d(e.emailExplanation(s)),1),n("dl",Uy,[n("div",null,[t[34]||(t[34]=n("dt",null,"Recipient",-1)),n("dd",null,[m(d(s.recipient)+" ",1),n("button",{class:"email-copy",onClick:i=>e.copyEmail(s.recipient),"aria-label":"Copy recipient"},d(e.emailCopiedValue===s.recipient?"Copied":"Copy"),9,By)])]),n("div",null,[t[35]||(t[35]=n("dt",null,"Provider response",-1)),n("dd",null,d(s.httpStatus?"HTTP "+s.httpStatus:"No HTTP response recorded"),1)]),n("div",null,[t[36]||(t[36]=n("dt",null,"Attempted",-1)),n("dd",null,d(e.emailTime(s.createdAt)),1)]),n("div",null,[t[37]||(t[37]=n("dt",null,"Completed",-1)),n("dd",null,d(e.emailTime(s.completedAt)),1)]),n("div",null,[t[38]||(t[38]=n("dt",null,"Attempt ID",-1)),n("dd",null,[n("code",null,d(s._id),1),n("button",{class:"email-copy",onClick:i=>e.copyEmail(s._id),"aria-label":"Copy attempt ID"},d(e.emailCopiedValue===s._id?"Copied":"Copy"),9,zy)])]),n("div",null,[t[39]||(t[39]=n("dt",null,"Owner ID",-1)),n("dd",null,[n("code",null,d(s.ownerId),1),n("button",{class:"email-copy",onClick:i=>e.copyEmail(s.ownerId),"aria-label":"Copy owner ID"},d(e.emailCopiedValue===s.ownerId?"Copied":"Copy"),9,Hy)])]),n("div",null,[n("dt",null,"Resource \xB7 "+d(s.resourceKind),1),n("dd",null,[n("code",null,d(s.resourceId),1),n("button",{class:"email-copy",onClick:i=>e.copyEmail(s.resourceId),"aria-label":"Copy resource ID"},d(e.emailCopiedValue===s.resourceId?"Copied":"Copy"),9,jy)])])]),e.emailCopyMessage&&e.emailCopyMessage!=="Copied."?(a(),l("p",Gy,d(e.emailCopyMessage),1)):f("v-if",!0)],8,_y)])])):f("v-if",!0)],64))),128))])])],8,Cy)):f("v-if",!0),e.emailRows.length?(a(),l("div",Wy,[n("span",null,[m("Page "+d(e.emailPage),1),e.emailPageCount()?(a(),l(V,{key:0},[m(" of "+d(e.emailPageCount()),1)],64)):f("v-if",!0),m(" \xB7 "+d(e.emailTotal()==null?e.emailRows.length+" loaded":e.emailTotal().toLocaleString()+" attempts"),1)]),n("div",null,[n("button",{class:"btn btn-sm",disabled:e.emailPage===1||e.emailLoading,onClick:t[12]||(t[12]=s=>e.emailPreviousPage())},"Previous",8,Ky),n("button",{class:"btn btn-sm",disabled:e.emailLoading||!e.emailNextCursor&&e.emailPage*25>=e.emailRows.length,onClick:t[13]||(t[13]=s=>e.emailNextPage())},"Next",8,Yy)])])):f("v-if",!0)]),t[45]||(t[45]=n("details",{class:"email-about"},[n("summary",null,"What this history records"),n("p",null,"New sending attempts only; older sends are not backfilled. Accepted means the provider accepted the request, not that it reached the inbox. Check pending or unknown outcomes in Resend before considering another send. Audit storage failures can leave this history incomplete.")],-1))])}var Jy={class:"container py-4",style:{"max-width":"48rem","overflow-wrap":"anywhere"}},Xy={key:0},Qy={key:1,role:"alert"},Zy={key:2,role:"status"},xy={key:0},eb={key:1},tb=["disabled"],ob=["disabled"],sb=["disabled"],ib={key:5,class:"mt-4","aria-labelledby":"review-policy-title"},rb={id:"review-policy-title"},ab={key:0,role:"alert"},lb=["disabled"],db=["disabled"],ub=["disabled"],cb={key:6,role:"status"};function rp(e,t){return a(),l("section",Jy,[t[12]||(t[12]=n("a",{href:"/"},"Anonymous GitHub",-1)),t[13]||(t[13]=n("h1",{class:"mt-3"},"Approve artifact access",-1)),t[14]||(t[14]=n("p",null,"This records your approval as the repository owner or an authorized co-author.",-1)),e.user?.username?f("v-if",!0):(a(),l("p",Xy,[...t[6]||(t[6]=[m("Sign in first, then reopen the artifact link from your submission. ",-1),n("a",{href:"/signin"},"Sign in",-1)])])),e.error?(a(),l("p",Qy,d(e.error),1)):f("v-if",!0),e.saved?(a(),l("p",Zy,[t[7]||(t[7]=m("Consent recorded. ",-1)),e.handoffEnabled?(a(),l("span",xy,"Continue to review to finish linking.")):(a(),l("span",eb,"Artifact linking is not complete. Return to your submission to check its status."))])):f("v-if",!0),e.saved&&e.handoffEnabled?(a(),l("button",{key:3,class:"btn btn-primary",type:"button",onClick:t[0]||(t[0]=(...s)=>e.continueReview&&e.continueReview(...s)),disabled:e.busy},"Continue to review",8,tb)):f("v-if",!0),e.user?.username&&!e.saved?(a(),l("form",{key:4,onSubmit:t[2]||(t[2]=de((...s)=>e.loadPreview&&e.loadPreview(...s),["prevent"]))},[t[8]||(t[8]=n("label",{for:"review-repository"},"Anonymous repository ID",-1)),P(n("input",{id:"review-repository",class:"form-control","onUpdate:modelValue":t[1]||(t[1]=s=>e.repositoryId=s),maxlength:"128",autocomplete:"off",disabled:e.busy||e.uncertain,"aria-describedby":"review-repository-help"},null,8,ob),[[nt,e.repositoryId]]),t[9]||(t[9]=n("p",{id:"review-repository-help"},"Use the ID after /r/ in the anonymous repository URL.",-1)),n("button",{type:"submit",class:"btn btn-primary",disabled:e.busy||e.uncertain},"Preview access and retention",8,sb)],32)):f("v-if",!0),e.preview&&!e.saved?(a(),l("section",ib,[n("h2",rb,d(e.preview.repositoryName),1),n("p",null,"Access: "+d(e.preview.policy.access==="anonymous-link"?"Anyone with the anonymous link":"Restricted review access")+".",1),n("p",null,"Retain until "+d(e.preview.policy.retainUntil)+". Policy version "+d(e.preview.policy.version)+".",1),e.expired?(a(),l("p",ab,"This preview expired. Open a new artifact link from your submission.")):f("v-if",!0),n("div",null,[n("label",null,[P(n("input",{type:"checkbox","onUpdate:modelValue":t[3]||(t[3]=s=>e.acceptAccess=s),disabled:e.busy||e.uncertain||e.expired},null,8,lb),[[ma,e.acceptAccess]]),t[10]||(t[10]=m(" I approve the access policy above.",-1))])]),n("div",null,[n("label",null,[P(n("input",{type:"checkbox","onUpdate:modelValue":t[4]||(t[4]=s=>e.acceptRetention=s),disabled:e.busy||e.uncertain||e.expired},null,8,db),[[ma,e.acceptRetention]]),t[11]||(t[11]=m(" I approve retention until the date above.",-1))])]),n("button",{class:"btn btn-primary",type:"button",onClick:t[5]||(t[5]=(...s)=>e.confirmConsent&&e.confirmConsent(...s)),disabled:e.busy||e.expired||!e.acceptAccess||!e.acceptRetention},d(e.uncertain?"Retry confirmation":"Confirm consent"),9,ub)])):f("v-if",!0),e.busy?(a(),l("p",cb,"Waiting for the server\u2026")):f("v-if",!0)])}var pb={class:"container paper-page connections-page"},fb={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},mb={key:1,role:"status"},hb=["disabled"],gb={key:3},vb={key:0,class:"connection-resources"},yb=["disabled"],bb=["disabled"],wb={key:0,role:"status"},kb={class:"connections-grid"},Cb={key:0},Sb={class:"connection-title"},Eb={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},Nb={class:"connection-actions"},Rb={key:0,class:"btn btn-ink",target:"_self",href:"/github/app/install"},Tb=["disabled"],Pb={key:1,class:"connection-installations"},Db={key:0},Ab=["href"],Ib={class:"sr-only"},Ob={class:"connection-title"},Mb={key:0,target:"_self",href:"/github/login",class:"btn btn-outline-ink"},Vb={key:1,class:"connection-revoke"},qb={key:0},Lb=["disabled"],_b={class:"connection-resources"},$b={class:"connection-title"},Fb={class:"connection-count"},Ub={key:0,class:"connection-empty"},Bb={class:"connection-resource-name"},zb={key:0,class:"connection-resource-actions"},Hb=["disabled","onClick"],jb=["disabled","onClick"],Gb={key:1,class:"connection-help",role:"status"},Wb=["disabled","onClick"];function ap(e,t){return a(),l("div",pb,[t[27]||(t[27]=Ce('
My work \xA0/\xA0 GitHub connections

GitHub connections

Manage how GitHub shares your code. Your anonymizations and URLs stay the same.

',2)),e.connectionError?(a(),l("p",fb,d(e.connectionError),1)):f("v-if",!0),!e.connections&&!e.connectionError?(a(),l("p",mb,"Loading your connections\u2026")):f("v-if",!0),!e.connections&&e.connectionError?(a(),l("button",{key:2,class:"btn btn-outline-ink",disabled:e.busy,onClick:t[0]||(t[0]=s=>e.loadConnections())},"Try again",8,hb)):f("v-if",!0),e.connections?(a(),l("div",gb,[e.connections.emailNotificationsEnabled?(a(),l("section",vb,[t[6]||(t[6]=n("h2",null,"Email alerts",-1)),t[7]||(t[7]=n("p",null,"We will email you if your GitHub connection stops working or a repository becomes inaccessible. Your address is never shown on anonymous pages.",-1)),n("form",{onSubmit:t[2]||(t[2]=de(s=>e.saveNotificationEmail(),["prevent"]))},[t[5]||(t[5]=n("label",{for:"notification-email"},"Email address",-1)),P(n("input",{id:"notification-email",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[1]||(t[1]=s=>e.notificationEmail=s),disabled:e.busy},null,8,yb),[[nt,e.notificationEmail]]),n("button",{class:"btn btn-ink mt-2",type:"submit",disabled:e.busy},"Save email address",8,bb),e.emailSaved?(a(),l("p",wb,"Email address saved.")):f("v-if",!0)],32)])):f("v-if",!0),n("div",kb,[e.connections.appEnabled?(a(),l("section",Cb,[t[15]||(t[15]=n("div",{class:"connection-top"},[n("i",{class:"fab fa-github","aria-hidden":"true"}),n("span",{class:"connection-badge"},"Recommended")],-1)),n("div",Sb,[t[8]||(t[8]=n("h2",null,"GitHub App",-1)),n("span",{class:R(["connection-status",{"is-connected":e.connections.appConnected&&!e.connections.appError}])},d(e.connections.appError?"Needs attention":e.connections.appConnected?"Connected":"Not connected"),3)]),t[16]||(t[16]=n("p",null,"Read-only access to gists and the repositories you choose.",-1)),e.connections.appError?(a(),l("p",Eb,d(e.connections.appError)+". Reconnect to restore access.",1)):f("v-if",!0),n("div",Nb,[e.connections.appConnected&&!e.connections.appError?(a(),l("a",Rb,[...t[9]||(t[9]=[m("Manage repository access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])])):f("v-if",!0),n("a",{class:R(e.connections.appConnected&&!e.connections.appError?"connection-link":"btn btn-ink"),target:"_self",href:"/github/app/login"},d(e.connections.appConnected?"Reconnect account":"Connect GitHub account"),3),e.connections.appConnected?(a(),l("button",{key:1,class:"connection-link connection-refresh",title:"Refresh access",disabled:e.busy,onClick:t[3]||(t[3]=s=>e.loadConnections())},[...t[10]||(t[10]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),n("span",{class:"sr-only"},"Refresh access",-1)])],8,Tb)):f("v-if",!0)]),t[17]||(t[17]=n("p",{class:"connection-help"},"Choose repositories on GitHub. Organization access may need an administrator's approval.",-1)),e.connections.installations?.length?(a(),l("ul",Pb,[(a(!0),l(V,null,X(e.connections.installations,s=>(a(),l("li",{key:s.id},[n("div",null,[t[11]||(t[11]=n("span",{class:"connection-label"},"Installed on",-1)),t[12]||(t[12]=m()),n("strong",null,d(s.account),1),s.suspended?(a(),l("span",Db," \xB7 Suspended")):f("v-if",!0)]),e.connections.installations.length>1?(a(),l("a",{key:0,target:"_self",href:"/github/app/install?installationId="+s.id},[t[13]||(t[13]=m("Manage access ",-1)),n("span",Ib,"for "+d(s.account),1),t[14]||(t[14]=m(" \u2192",-1))],8,Ab)):f("v-if",!0)]))),128))])):f("v-if",!0)])):f("v-if",!0),n("section",null,[t[20]||(t[20]=n("div",{class:"connection-top"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-key"})]),n("span",{class:"connection-badge connection-badge-muted"},"Legacy")],-1)),n("div",Ob,[t[18]||(t[18]=n("h2",null,"GitHub OAuth",-1)),n("span",{class:R(["connection-status",{"is-connected":e.connections.oauthConnected}])},d(e.connections.oauthConnected?"Connected":"Not connected"),3)]),t[21]||(t[21]=n("p",null,"For existing OAuth anonymizations.",-1)),t[22]||(t[22]=n("p",{class:"connection-help"},"This connection uses GitHub's broader repository permissions. Existing work keeps using it until you switch below.",-1)),e.connections.oauthEnabled?(a(),l("a",Mb,d(e.connections.oauthConnected?"Reconnect OAuth":"Connect legacy OAuth"),1)):f("v-if",!0),e.connections.oauthConnected?(a(),l("div",Vb,[e.connections.gistCount?(a(),l("p",qb,d(e.connections.gistCount)+" gist(s) use your GitHub App connection when available.",1)):f("v-if",!0),t[19]||(t[19]=n("p",null,"Switch all dependent repositories before revoking access. Gists can use your GitHub App connection.",-1)),e.connections.appConnected?(a(),l("button",{key:1,class:"btn btn-sm btn-outline-danger connection-danger",disabled:e.busy||e.connections.resources.some(s=>s.connection==="oauth"),onClick:t[4]||(t[4]=s=>e.disconnectOAuth())},"Revoke OAuth access",8,Lb)):f("v-if",!0)])):f("v-if",!0)])]),n("section",_b,[n("div",$b,[t[23]||(t[23]=n("h2",null,"Repository connections",-1)),n("span",Fb,d(e.connections.resources?.length||0)+" "+d((e.connections.resources?.length||0)===1?"resource":"resources"),1)]),t[25]||(t[25]=n("p",null,"Check access, then switch each resource to the GitHub App. After reinstalling the App, reconnect existing resources here to keep their anonymous URLs and published snapshots.",-1)),e.connections.resources?.length?f("v-if",!0):(a(),l("div",Ub,[...t[24]||(t[24]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1),n("div",null,[n("h3",null,"No repository connections yet"),n("p",null,"Your repositories and pull requests will appear here once you anonymize them.")],-1),n("a",{class:"connection-link",href:"/anonymize"},"New anonymization \u2192",-1)])])),(a(!0),l(V,null,X(e.connections.resources,s=>(a(),l("div",{class:"connection-resource",key:s.type+s.id},[n("div",Bb,[n("strong",null,d(s.name||s.id),1),n("small",null,d(s.type)+" \xB7 "+d(s.id),1)]),n("span",{class:R(["connection-badge",{"connection-badge-muted":s.connection==="oauth"}])},d(s.connection==="github-app"?"Read-only App":"Legacy OAuth"),3),!["archived","removed","preparing","queue","removing","expiring"].includes(s.status)&&(s.status!=="download"||s.type==="pull-request"&&(!s.statusDate||new Date(s.statusDate).getTime()<=Date.now()-3e5))&&e.connections.appEnabled&&e.connections.appConnected?(a(),l("div",zb,[n("button",{class:"btn btn-outline-ink",disabled:e.busy,onClick:i=>e.changeConnection(s,"github-app",!0)},"Check read-only access",8,Hb),s.eligible?(a(),l("button",{key:0,class:"btn btn-ink",disabled:e.busy,onClick:i=>e.changeConnection(s,"github-app",!1)},d(s.connection==="github-app"?"Reconnect read-only access":"Switch to read-only access"),9,jb)):f("v-if",!0),s.eligible===!1?(a(),l("span",Gb,"Access unavailable. Allow this repository on GitHub, then check again.")):f("v-if",!0)])):f("v-if",!0),!["archived","removed","preparing","queue","removing","expiring"].includes(s.status)&&(s.status!=="download"||s.type==="pull-request"&&(!s.statusDate||new Date(s.statusDate).getTime()<=Date.now()-3e5))&&s.connection==="github-app"&&e.connections.oauthConnected?(a(),l("button",{key:1,class:"connection-link",disabled:e.busy,onClick:i=>e.changeConnection(s,"oauth",!1)},"Use OAuth",8,Wb)):f("v-if",!0)]))),128)),t[26]||(t[26]=n("p",{class:"connection-footnote"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})]),m(" Removing access stops new fetches from GitHub. Published content keeps its current expiration and removal settings.")],-1))])])):f("v-if",!0)])}var Kb={class:"container paper-page auth-page"},Yb={class:"auth-layout"},Jb={class:"auth-options"},Xb={key:0},Qb={key:0,class:"btn btn-ink auth-continue",target:"_self",href:"/github/login?recover=1"},Zb={key:1},xb={key:1,class:"auth-card"},e1={key:2,class:"auth-legacy"},t1={key:3,role:"status"};function lp(e,t){let s=Qe("partial-view");return a(),l(V,null,[n("div",Kb,[n("div",Yb,[t[4]||(t[4]=Ce('
Your research, ready for review

Your code.
Your identity,
protected.
Sign in to GitHub

Sign in to create and manage your anonymizations.

',1)),n("div",Jb,[e.accountRecovery?(a(),l("section",Xb,[t[0]||(t[0]=n("h2",null,"Verify your existing account",-1)),t[1]||(t[1]=n("p",null,"We found an existing account. Verify it with your previous GitHub connection to keep your anonymizations. Future sign-ins will use the GitHub App.",-1)),e.site_options?.GITHUB_OAUTH_ENABLED?(a(),l("a",Qb,"Verify with previous GitHub connection")):(a(),l("p",Zb,"Account verification is currently unavailable. Please try again later."))])):f("v-if",!0),e.site_options?.GITHUB_APP_ENABLED&&!e.accountRecovery?(a(),l("section",xb,[...t[2]||(t[2]=[Ce('

Continue with GitHub

Connect through the GitHub App with read-only repository access.

  • You choose which repositories to share
  • No permission to write to your code
Sign in with GitHubYour existing anonymizations and connections stay with your account.',5)])])):f("v-if",!0),!e.site_options?.GITHUB_APP_ENABLED&&e.site_options?.GITHUB_OAUTH_ENABLED&&!e.accountRecovery?(a(),l("section",e1,[...t[3]||(t[3]=[n("div",{class:"connection-title"},[n("h2",null,"Continue with GitHub")],-1),n("p",null,"Sign in to access your account. GitHub OAuth includes write access to private repositories.",-1),n("a",{class:"connection-link",target:"_self",href:"/github/login"},[m("Sign in with GitHub "),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-arrow-right"})])],-1)])])):f("v-if",!0),e.site_options&&!e.site_options.GITHUB_APP_ENABLED&&!e.site_options.GITHUB_OAUTH_ENABLED?(a(),l("p",t1,"GitHub sign-in is currently unavailable. Please try again later.")):f("v-if",!0)])])]),Me(s,{name:"partials/footer.htm",state:e.viewState},null,8,["state"])],64)}function dp(e,t){let s=Qe("partial-view");return a(),l(V,null,[t[0]||(t[0]=Ce('
Error \xB7 404

This link
isn\u2019t here.

The anonymous mirror you\u2019re looking for has expired, been removed by its owner, or never existed. If you received this URL from an author, ask them to re-issue it.

',1)),Me(s,{name:"partials/footer.htm",state:e.viewState},null,8,["state"])],64)}var n1={class:"container paper-page admin-page"},o1={class:"seg-bar"},s1={class:"seg-filter",role:"radiogroup","aria-label":"Filter by status"},i1=["aria-checked"],r1={class:"count"},a1=["aria-checked"],l1={class:"count"},d1=["aria-checked"],u1={class:"count"},c1=["aria-checked"],p1={class:"count"},f1=["aria-checked"],m1={class:"count"},h1=["aria-checked"],g1={class:"count"},v1={class:"seg-countline",role:"status"},y1={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},b1={class:"w-100 admin-filter-toolbar","aria-label":"Conferences","accept-charset":"UTF-8"},w1={class:"admin-filter-row"},k1={class:"search-wrap"},C1={type:"search",class:"form-control",placeholder:"Search conferences\u2026",autocomplete:"off"},S1={key:0,class:"admin-search-hint"},E1={key:1,class:"admin-filter-inline","aria-label":"Pagination"},N1=["disabled"],R1={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},T1=["disabled"],P1={key:0,class:"admin-filter-row"},D1={class:"admin-active-chips"},A1={class:"key"},I1=["onClick"],O1={class:"paper-table paper-table-conferences w-100",role:"table","aria-label":"Conferences"},M1={key:0,class:"paper-table-head",role:"row"},V1={role:"columnheader"},q1={role:"columnheader"},L1={role:"columnheader"},_1={class:"paper-table-row",role:"row"},$1={class:"cell-anon",role:"cell"},F1={class:"anon-text"},U1=["textContent","href"],B1={class:"anon-sub"},z1={class:"cell-status",role:"cell"},H1=["textContent"],j1={class:"cell-views num",role:"cell"},G1=["textContent","href"],W1={class:"cell-expires",role:"cell"},K1={class:"cell-actions",role:"cell"},Y1={class:"dropdown"},J1={class:"dropdown-menu dropdown-menu-right"},X1=["href"],Q1=["href"],Z1=["href"],x1=["onClick"],ew={key:1,class:"paper-table-empty"},tw={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},nw={key:0,class:"pagination-compact"},ow=["disabled"],sw=["max"],iw=["disabled"],rw={class:"admin-filter-inline"},aw={class:"form-control form-control-sm"};function up(e,t){let s=Pe("field"),i=Pe("form");return a(),l("div",n1,[t[55]||(t[55]=Ce('
Admin \xA0/\xA0 Conferences

Conferences

',3)),n("div",o1,[n("div",s1,[n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="all"}]),"aria-checked":e.segView()==="all",onClick:t[0]||(t[0]=o=>e.setSegView("all"))},[t[14]||(t[14]=m("All ",-1)),n("span",r1,d(e.fmt?.number(e.segCount("all"))),1)],10,i1),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="ready","is-empty":!e.segCount("ready")}]),"aria-checked":e.segView()==="ready",onClick:t[1]||(t[1]=o=>e.setSegView("ready"))},[t[15]||(t[15]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[16]||(t[16]=m("Ready ",-1)),n("span",l1,d(e.fmt?.number(e.segCount("ready"))),1)],10,a1),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="preparing","is-empty":!e.segCount("preparing")}]),"aria-checked":e.segView()==="preparing",onClick:t[2]||(t[2]=o=>e.setSegView("preparing"))},[t[17]||(t[17]=n("span",{class:"seg-dot warn","aria-hidden":"true"},null,-1)),t[18]||(t[18]=m("Preparing ",-1)),n("span",u1,d(e.fmt?.number(e.segCount("preparing"))),1)],10,d1),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="error","is-empty":!e.segCount("error")}]),"aria-checked":e.segView()==="error",onClick:t[3]||(t[3]=o=>e.setSegView("error"))},[t[19]||(t[19]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[20]||(t[20]=m("Error ",-1)),n("span",p1,d(e.fmt?.number(e.segCount("error"))),1)],10,c1),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="expired","is-empty":!e.segCount("expired")}]),"aria-checked":e.segView()==="expired",onClick:t[4]||(t[4]=o=>e.setSegView("expired"))},[t[21]||(t[21]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[22]||(t[22]=m("Expired ",-1)),n("span",m1,d(e.fmt?.number(e.segCount("expired"))),1)],10,f1),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="removed","is-empty":!e.segCount("removed")}]),"aria-checked":e.segView()==="removed",onClick:t[5]||(t[5]=o=>e.setSegView("removed"))},[t[23]||(t[23]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[24]||(t[24]=m("Removed ",-1)),n("span",g1,d(e.fmt?.number(e.segCount("removed"))),1)],10,h1)]),n("p",v1,[n("strong",null,d(e.total>=0?e.fmt.number(e.total):"\u2026"),1),t[25]||(t[25]=m(" shown",-1))])]),e.fetchError?(a(),l("div",y1,[t[26]||(t[26]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),m(" "+d(e.fetchError),1)])):f("v-if",!0),P((a(),l("form",b1,[n("div",w1,[n("div",k1,[P(n("input",C1,null,512),[[s,{state:e.viewState,set:o=>{e.query.search=o},value:e.query?.search,form:null,options:{}}]]),e.query?.search?f("v-if",!0):(a(),l("span",S1,"/"))]),t[30]||(t[30]=n("span",{class:"admin-filter-spacer"},null,-1)),e.total>0?(a(),l("button",{key:0,class:"btn btn-sm",type:"button",onClick:t[6]||(t[6]=o=>e.exportCsv())},[...t[27]||(t[27]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),m(" Export",-1)])])):f("v-if",!0),e.totalPage>1?(a(),l("span",E1,[n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[7]||(t[7]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[28]||(t[28]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,N1),n("span",R1,d(e.query?.page)+"/"+d(e.totalPage||1),1),n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[8]||(t[8]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[29]||(t[29]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,T1)])):f("v-if",!0)]),e.chips?.length?(a(),l("div",P1,[n("div",D1,[(a(!0),l(V,null,X(e.chips,(o,r)=>(a(),l("span",{class:"admin-active-chip",key:o?.key},[n("span",A1,d(o?.label),1),n("span",null,d(o?.value),1),n("button",{type:"button",onClick:u=>e.clearFilter(o.key),"aria-label":"Clear filter"},[...t[31]||(t[31]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,I1)]))),128))])])):f("v-if",!0)])),[[i,e.viewState]]),n("div",O1,[e.total!==0?(a(),l("div",M1,[n("div",V1,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="name"}]),onClick:t[9]||(t[9]=o=>e.sortBy("name"))},[t[33]||(t[33]=m("Conference ",-1)),e.sortIcon("name")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("name")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[32]||(t[32]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",q1,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="status"}]),onClick:t[10]||(t[10]=o=>e.sortBy("status"))},[t[35]||(t[35]=m("Status ",-1)),e.sortIcon("status")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[34]||(t[34]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[38]||(t[38]=n("div",{role:"columnheader",class:"num"},"Repos",-1)),n("div",L1,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="startDate"}]),onClick:t[11]||(t[11]=o=>e.sortBy("startDate"))},[t[37]||(t[37]=m("Window ",-1)),e.sortIcon("startDate")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("startDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[36]||(t[36]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[39]||(t[39]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))])):f("v-if",!0),(a(!0),l(V,null,X(e.filteredConferences,(o,r)=>(a(),l("div",_1,[n("div",$1,[t[40]||(t[40]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Conference"},[n("use",{href:"#project-icon-conference"})],-1)),n("div",F1,[n("a",{class:"repo-name",textContent:d(o?.name),href:e.safeUrl("/conference/"+o?.conferenceID)},null,8,U1),n("div",B1,[n("span",null,d(o?.conferenceID),1),n("span",null,d(e.fmt?.money(o?.price||0)),1)])])]),n("div",z1,[n("span",{class:R(["status-dot","st-"+(o?.status||"unknown")])},null,2),n("span",{textContent:d(e.fmt?.statusLabel(o?.status))},null,8,H1)]),n("div",j1,[t[41]||(t[41]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1)),n("a",{title:"Show repositories in this conference",textContent:d(e.fmt?.number(o?.repositories?.length||0)),href:e.safeUrl("/admin/?conference="+o?.conferenceID)},null,8,G1)]),n("div",W1,[t[42]||(t[42]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),m(" "+d(e.fmt?.date(o?.startDate))+" \u2013 "+d(e.fmt?.date(o?.endDate)),1)]),n("div",K1,[n("div",Y1,[t[48]||(t[48]=n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})])],-1)),n("div",J1,[n("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+o?.conferenceID+"/edit")},[...t[43]||(t[43]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),m(" Edit",-1)])],8,X1),n("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+o?.conferenceID+"/")},[...t[44]||(t[44]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),m(" View",-1)])],8,Q1),n("a",{class:"dropdown-item",href:e.safeUrl("/admin/?conference="+o?.conferenceID)},[...t[45]||(t[45]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1),m(" View repositories",-1)])],8,Z1),t[47]||(t[47]=n("div",{class:"dropdown-divider"},null,-1)),P(n("a",{class:"dropdown-item text-danger",href:"#",onClick:de(u=>e.removeConference(o),["prevent"])},[...t[46]||(t[46]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),m(" Remove",-1)])],8,x1),[[Q,o?.status!="removed"]])])])])]))),256)),e.filteredConferences?.length==0?(a(),l("div",ew,[t[49]||(t[49]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),n("span",null,d(e.total?"No conferences match the current filters.":"No conferences yet."),1)])):f("v-if",!0)]),n("div",tw,[t[54]||(t[54]=n("span",{"aria-hidden":"true"},null,-1)),e.totalPage>1?(a(),l("div",nw,[n("button",{class:"btn btn-sm",onClick:t[12]||(t[12]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[50]||(t[50]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1),m(" Previous",-1)])],8,ow),P(n("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,sw),[[s,{state:e.viewState,set:o=>{e.query.page=o},value:e.query?.page,form:null,options:{}}]]),n("span",null,"of "+d(e.totalPage),1),n("button",{class:"btn btn-sm",onClick:t[13]||(t[13]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[51]||(t[51]=[m("Next ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,iw)])):f("v-if",!0),n("span",rw,[t[53]||(t[53]=n("label",null,"Per page",-1)),P((a(),l("select",aw,[...t[52]||(t[52]=[Ce('',5)])])),[[s,{state:e.viewState,set:o=>{e.query.limit=o},value:e.query?.limit,form:null,options:{}}]])])])])}var lw={class:"container paper-page admin-page overview-page errors-page"},dw={class:"error-source-toolbar"},uw={class:"error-source-switch seg-filter",role:"group","aria-label":"Log source"},cw=["aria-pressed"],pw=["aria-pressed"],fw={class:"error-health-strip"},mw={class:"log-state",role:"status","aria-live":"polite"},hw=["disabled"],gw={class:"sr-only"},vw=["aria-busy"],yw={class:"volume-head"},bw=["href"],ww={key:0,class:"log-inspector","aria-labelledby":"log-detail-title"},kw={class:"log-inspector-heading"},Cw={class:"log-inspector-eyebrow"},Sw={id:"log-detail-title",tabindex:"-1"},Ew={key:0},Nw={class:"log-facts-strip"},Rw=["datetime"],Tw=["datetime"],Pw={class:"log-detail log-investigation-body",id:"log-detail"},Dw={class:"log-related-main"},Aw={class:"log-correlation-selector",role:"group","aria-label":"Related events correlation"},Iw=["id","aria-label","aria-pressed","onClick"],Ow={class:"log-selector-mark","aria-hidden":"true"},Mw={key:0,class:"log-meta"},Vw={class:"log-correlation-window"},qw=["aria-busy"],Lw={class:"volume-head"},_w={key:0,role:"status"},$w={key:1,class:"log-coverage"},Fw={key:2,class:"log-events"},Uw=["datetime","title"],Bw={class:"log-timeline-event"},zw={class:"log-timeline-event-title"},Hw={key:0},jw={key:1},Gw={key:2},Ww={key:0,class:"log-request-route"},Kw={key:1,class:"log-error-stack"},Yw={key:0},Jw={key:0},Xw={key:1},Qw={key:2},Zw={class:"log-event-fields"},xw=["onClick"],ek={class:"log-timeline-scope"},tk=["href"],nk={key:1,class:"log-no-trace"},ok={class:"log-evidence"},sk={class:"log-coverage"},ik={class:"log-sample-panel"},rk={class:"log-coverage"},ak={key:0,class:"log-request-route"},lk={key:1,class:"log-reproduction"},dk={key:2,class:"log-error-stack"},uk={key:0},ck={key:1},pk={key:2},fk={class:"log-sample-facts"},mk={key:0},hk={class:"log-detail-identifiers"},gk={key:0},vk={class:"log-value-reveal"},yk=["onClick"],bk={class:"log-all-fields"},wk={class:"log-raw-sample"},kk={class:"log-list-view"},Ck={class:"log-query"},Sk={key:0},Ek=["disabled"],Nk={key:0,class:"log-coverage"},Rk={class:"log-local-filters"},Tk={class:"log-search"},Pk={class:"log-coverage",role:"status",title:"Counts and first/last dates apply only to returned records, not all matching events."},Dk={key:0,class:"log-loading"},Ak={key:1,class:"log-workspace"},Ik={class:"log-results"},Ok={key:0,class:"log-table-scroll"},Mk={class:"log-table",role:"table"},Vk=["aria-label","onClick","aria-expanded"],qk={class:"log-event-title"},Lk={class:"log-meta"},_k={class:"log-service"},$k={class:"log-module"},Fk={class:"log-level"},Uk={key:0,class:"log-http"},Bk={class:"log-count"},zk=["datetime","title"],Hk={key:1,class:"admin-empty"},jk={key:2,class:"admin-empty"},Gk={key:2,class:"log-health"},Wk={key:0},Kk={key:1},Yk={key:2},Jk={key:0,class:"log-copy-status",role:"status"},Xk=["aria-busy"],Qk={key:0,class:"history-warning",role:"status"},Zk={key:1,class:"log-inspector"},xk={class:"log-inspector-heading"},e0={class:"log-inspector-eyebrow"},t0={id:"history-inspector-title",tabindex:"-1"},n0={key:0},o0={class:"log-inspector-tabs detail-tabs",role:"group","aria-label":"History event view"},s0=["aria-pressed"],i0=["aria-pressed"],r0=["aria-pressed"],a0=["aria-pressed"],l0=["aria-pressed"],d0={class:"errors-toolbar","aria-label":"Error filters"},u0={class:"seg-filter",role:"group","aria-label":"Filter by severity"},c0=["aria-pressed"],p0=["aria-pressed"],f0=["aria-pressed"],m0=["aria-pressed"],h0={class:"search-wrap"},g0={type:"search",class:"form-control","aria-label":"Search application history",placeholder:"Search history\u2026",title:"Search messages, or filter with code:repo_not_found module:route status:>=400",autocomplete:"off"},v0={key:0,class:"filter-count"},y0={class:"history-view-options"},b0={class:"history-view-controls"},w0={class:"select-wrap"},k0={id:"history-sort",class:"form-control form-control-sm"},C0={class:"select-wrap"},S0={id:"history-merge",class:"form-control form-control-sm"},E0={class:"autoref"},N0={type:"checkbox"},R0={key:0,role:"status"},T0={key:1,class:"admin-empty"},P0={key:2},D0={key:3,class:"errors-pager"},A0=["disabled"],I0={key:0,class:"errors-list-head"},O0={key:0,class:"errors-group-head"},M0={class:"errors-group-count"},V0={key:0,class:"errors-group-note"},q0=["data-history-key","aria-expanded","aria-controls","onClick"],L0={class:"col-when"},_0={class:"when-rel"},$0={class:"when-abs"},F0={class:"col-sev"},U0={class:"sev-label"},B0={class:"col-mod"},z0={class:"pill pill-module"},H0={class:"col-msg"},j0={class:"msg-code"},G0={key:0,class:"msg-context"},W0={key:1,class:"msg-detail"},K0=["title"],Y0={class:"col-count"},J0={key:0,class:"count-pill"},X0={key:1,class:"count-pill count-pill-muted"},Q0={class:"col-status"},Z0=["title"],x0={key:1,class:"status-empty",title:"No HTTP status for this event"},e2=["id"],t2={class:"detail-body"},n2={class:"detail-main"},o2={key:0},s2={key:0,class:"log-request-route"},i2={key:1,class:"log-reproduction"},r2=["onClick"],a2={key:2},l2={key:0},d2={class:"log-explanation-lead"},u2={class:"log-evidence"},c2={class:"history-technical"},p2={key:0,class:"history-fields"},f2={class:"log-value-reveal"},m2=["onClick"],h2={key:1},g2={key:2,class:"stack-pre"},v2={key:3,class:"history-occurrences","aria-label":"Stored occurrences"},y2={class:"log-evidence"},b2={class:"history-occurrence-list"},w2={class:"history-occurrence"},k2={class:"history-occurrence-heading"},C2=["datetime"],S2={class:"history-occurrence-context"},E2={key:0},N2={key:1},R2={key:0},T2={key:1},P2={key:2,class:"log-evidence"},D2={key:3,class:"log-evidence"},A2={class:"history-occurrence-record"},I2={class:"detail-actions"},O2=["onClick"],M2=["onClick"],V2=["onClick"],q2=["onClick"],L2={key:3,class:"copy-hint"},_2={class:"detail-aside"},$2={class:"aside-block"},F2=["title"],U2={class:"aside-block"},B2=["title"],z2={class:"aside-block"},H2={class:"aside-value"},j2={key:0,class:"aside-sub"},G2={key:0,class:"aside-block"},W2=["href"],K2={key:0,class:"log-value-reveal"},Y2=["onClick"],J2={key:1,class:"aside-block"},X2={class:"aside-value mono"},Q2={class:"history-management"},Z2={class:"volume-head"},x2={class:"errors-actions"},eC={role:"status"},tC={key:0},nC={class:"history-summary"},oC={key:0,class:"kpi-grid"},sC={class:"kpi-card"},iC={class:"kpi-value"},rC={key:0},aC={key:1},lC={key:2},dC={class:"kpi-card kpi-error"},uC={class:"kpi-value"},cC={class:"kpi-sub"},pC={class:"kpi-card kpi-warn"},fC={class:"kpi-value"},mC={class:"kpi-sub"},hC={class:"kpi-card kpi-info"},gC={class:"kpi-value"},vC={class:"kpi-sub"},yC={class:"kpi-value"},bC={class:"kpi-sub"},wC={key:0,class:"dropped-warn"},kC={key:1,class:"volume-chart"},CC={class:"volume-head"},SC={class:"volume-legend"},EC={key:0},NC={key:1},RC={key:2},TC={class:"volume-bars"},PC=["title"],DC={key:1},AC={key:0,class:"admin-empty"},IC=["aria-busy"],OC={class:"volume-head"},MC={id:"log-timeline-title",tabindex:"-1"},VC={key:0,class:"log-origin"},qC={key:1,role:"status"},LC={key:2,class:"log-coverage"},_C={key:3,class:"log-events"},$C=["datetime","title"],FC={class:"log-timeline-event"},UC={class:"log-timeline-event-title"},BC={key:0},zC={key:1},HC={key:2},jC={key:0,class:"log-request-route"},GC={key:1,class:"log-error-stack"},WC={key:0},KC={key:0},YC={key:1},JC={key:2},XC={class:"log-event-fields"},QC=["onClick"],ZC={class:"log-timeline-scope"},xC=["href"];function cp(e,t){let s=Pe("field"),i=Pe("form");return a(),l("div",lw,[t[117]||(t[117]=Ce('
Admin \xA0/\xA0 Errors

Errors

',2)),n("div",dw,[n("div",uw,[n("button",{id:"error-source-central",type:"button",class:R(["seg-chip",{active:e.errorSource==="central"}]),"aria-pressed":e.errorSource==="central",onClick:t[0]||(t[0]=o=>e.errorSource="central")},"Central logs",10,cw),n("button",{id:"error-source-history",type:"button",class:R(["seg-chip",{active:e.errorSource==="history"}]),"aria-pressed":e.errorSource==="history",onClick:t[1]||(t[1]=o=>e.errorSource="history")},"Application history",10,pw)]),n("div",fw,[n("p",mw,d(e.errorSource==="history"?e.redisLoading?"Loading application history\u2026":e.available===null?"Checking Redis\u2026":e.available?"Redis history is reachable.":"Redis history is unavailable. Previously loaded rows may be stale.":e.logFailure||(e.logLoading?"Loading central logs\u2026":e.logSnapshotStale?"This snapshot is stale. Refresh before assessing current health.":e.logStateText(e.logData?.state))),1),n("button",{type:"button",class:"btn btn-sm",disabled:e.errorSource==="central"?e.logLoading:e.redisLoading,onClick:t[2]||(t[2]=o=>e.errorSource==="central"?e.refreshLogs():e.refreshNow())},[m(d((e.errorSource==="central"?e.logLoading:e.redisLoading)?"Refreshing\u2026":"Refresh"),1),n("span",gw,d(e.errorSource==="central"?" central logs":" history"),1)],8,hw),e.errorSource==="central"&&(e.logFailure||["disabled","misconfigured","unreachable","busy"].includes(e.logData?.state))?(a(),l("button",{key:0,type:"button",class:"btn btn-sm",onClick:t[3]||(t[3]=o=>e.errorSource="history")},"Open application history")):f("v-if",!0)])]),P(n("section",{class:"log-investigation","aria-labelledby":"central-logs-title","aria-busy":e.logLoading},[n("div",yw,[t[31]||(t[31]=n("h2",{class:"sr-only",id:"central-logs-title"},"Central logs",-1)),e.logData?.grafanaUrl?(a(),l("a",{key:0,href:e.safeUrl(e.logData.grafanaUrl),target:"_blank",rel:"noopener noreferrer"},"Open in Grafana",8,bw)):f("v-if",!0)]),e.selectedLog?(a(),l("section",ww,[n("button",{type:"button",class:"log-back",onClick:t[4]||(t[4]=o=>e.closeLogDetail())},[...t[32]||(t[32]=[n("span",{"aria-hidden":"true"},"\u2190",-1),m(" Back to events",-1)])]),n("div",kw,[n("div",null,[n("p",Cw,d(e.selectedLog.sample.service)+" / "+d(e.selectedLog.sample.module)+" \xB7 Event sample",1),n("h2",Sw,d(e.selectedLog.sample.errorCode||e.selectedLog.sample.errorType||e.selectedLog.sample.event),1)]),n("span",{class:R(["log-severity","log-severity-"+e.logSeverity(e.selectedLog.sample)])},[m(d(e.logSeverity(e.selectedLog.sample)==="error"?"Failure":e.logSeverity(e.selectedLog.sample)==="warn"?"Warning":"Info"),1),e.selectedLog.sample.status||e.selectedLog.sample.httpStatus?(a(),l("span",Ew," \xB7 HTTP "+d(e.selectedLog.sample.status||e.selectedLog.sample.httpStatus),1)):f("v-if",!0)],2)]),n("div",Nw,[n("span",null,[n("strong",null,d(e.selectedLog.count),1),t[33]||(t[33]=m(" returned occurrences",-1))]),n("span",null,[t[34]||(t[34]=m("First ",-1)),n("time",{datetime:e.selectedLog.first},d(e.absTimeShort(e.selectedLog.first)),9,Rw)]),n("span",null,[t[35]||(t[35]=m("Last ",-1)),n("time",{datetime:e.selectedLog.last},d(e.absTimeShort(e.selectedLog.last)),9,Tw)])]),n("div",Pw,[n("div",Dw,[n("div",Aw,[t[36]||(t[36]=n("span",null,"Follow",-1)),(a(!0),l(V,null,X(["requestId","jobId"].filter(o=>e.logTraceId(e.selectedLog,o)),o=>(a(),l("button",{type:"button",class:"log-trace-button",key:o,id:"trace-selector-"+o,"aria-label":"Follow "+(o==="requestId"?"request ":"job ")+e.selectedLog.sample[o],"aria-pressed":e.traceSelection?.kind===o,onClick:r=>e.lookupTrace(o,e.selectedLog.sample[o],r.currentTarget,e.selectedLog.sample)},[m(d(o==="requestId"?"Request":"Job")+" ",1),n("span",Ow,d(e.traceSelection?.kind===o?"\u2713":"\u2192"),1)],8,Iw))),128)),!e.logTraceId(e.selectedLog,"requestId")&&!e.logTraceId(e.selectedLog,"jobId")?(a(),l("span",Mw,"No correlation ID recorded")):f("v-if",!0),n("span",Vw,d(e.logData?.window||e.logAppliedFilters.window)+" window",1)]),e.traceSelection?(a(),l("section",{key:0,class:"log-timeline","aria-labelledby":"log-timeline-title","aria-busy":e.traceLoading},[n("div",Lw,[t[37]||(t[37]=n("h3",{id:"log-timeline-title",tabindex:"-1"},"Related events",-1)),n("button",{type:"button",class:"btn btn-sm",onClick:t[5]||(t[5]=o=>e.closeTrace())},"Hide events")]),e.traceLoading||e.trace?.state!=="ready"?(a(),l("p",_w,d(e.traceLoading?"Loading related events\u2026":e.trace?.state==="empty"?"No related events returned in this window.":e.logStateText(e.trace?.state)),1)):f("v-if",!0),e.trace&&!e.traceLoading?(a(),l("p",$w,d(e.trace.events?.length||0)+" events returned \xB7 "+d(e.absTime(e.trace.start))+" \u2013 "+d(e.absTime(e.trace.end))+" \xB7 200-event cap. All services and releases.",1)):f("v-if",!0),e.trace?.events?.length?(a(),l("ol",Fw,[(a(!0),l(V,null,X(e.trace.events,(o,r)=>(a(),l("li",{key:r},[n("time",{datetime:o.timestamp,title:o.timestamp},d(e.absTimeShort(o.timestamp)),9,Uw),n("div",Bw,[n("div",zw,[n("strong",null,d(o.errorCode||o.errorType||o.event),1),n("span",{class:R(["log-severity","log-severity-"+e.logSeverity(o)])},d(o.status||o.httpStatus?"HTTP "+(o.status||o.httpStatus):o.severity||"Event"),3)]),n("p",null,[m(d(o.service),1),o.module?(a(),l("span",Hw," / "+d(o.module),1)):f("v-if",!0),o.ms!==void 0?(a(),l("span",jw," \xB7 "+d(o.ms)+" ms",1)):f("v-if",!0),o.attempt!==void 0?(a(),l("span",Gw," \xB7 attempt "+d(o.attempt),1)):f("v-if",!0)]),o.route?(a(),l("p",Ww,[n("code",null,d(o.method)+" "+d(o.requestPath||o.route),1)])):f("v-if",!0),o.errorStack||o.causeStack?(a(),l("details",Kw,[n("summary",null,[t[38]||(t[38]=m("Exception frames",-1)),o.errorType?(a(),l("span",Yw," \xB7 "+d(o.errorType),1)):f("v-if",!0)]),o.errorStack?(a(),l("pre",Jw,d(o.errorStack),1)):f("v-if",!0),o.causeType?(a(),l("p",Xw,"Caused by "+d(o.causeType),1)):f("v-if",!0),o.causeStack?(a(),l("pre",Qw,d(o.causeStack),1)):f("v-if",!0)])):f("v-if",!0),n("details",Zw,[t[39]||(t[39]=n("summary",null,"Event fields",-1)),n("pre",null,d(JSON.stringify(o,null,2)),1),n("button",{type:"button",class:"btn btn-sm",onClick:u=>e.copyLogValue(JSON.stringify(o,null,2))},"Copy JSON",8,xw)])])]))),128))])):f("v-if",!0),n("details",ek,[t[40]||(t[40]=n("summary",null,"Query scope",-1)),n("p",null,"Earliest matching events for the selected "+d(e.traceSelection.kind==="jobId"?"job":"request")+" ID. Service and release filters do not narrow this timeline.",1)]),e.trace?.grafanaUrl?(a(),l("a",{key:3,href:e.safeUrl(e.trace.grafanaUrl),target:"_blank",rel:"noopener noreferrer"},"Open in Grafana",8,tk)):f("v-if",!0)],8,qw)):f("v-if",!0),e.traceSelection?f("v-if",!0):(a(),l("div",nk,[n("h3",null,d(e.logTraceId(e.selectedLog,"requestId")||e.logTraceId(e.selectedLog,"jobId")?"Related events hidden":"This sample has no correlation ID"),1),n("p",null,d(e.logExplanation(e.selectedLog.sample)),1),n("p",ok,d(e.logEvidence(e.selectedLog.sample)),1),n("p",sk,d(e.logTraceId(e.selectedLog,"requestId")||e.logTraceId(e.selectedLog,"jobId")?"Choose Request or Job above to load related events.":"The recorded fields are available in the sample panel. Related events cannot be looked up for this record."),1)]))]),n("aside",ik,[t[51]||(t[51]=n("h3",null,"Event sample",-1)),n("p",rk,"One of "+d(e.selectedLog.count)+" returned occurrences. IDs can differ across the group.",1),e.selectedLog.sample.route?(a(),l("p",ak,[n("code",null,d(e.selectedLog.sample.method)+" "+d(e.selectedLog.sample.route),1)])):f("v-if",!0),e.selectedLog.sample.requestPath?(a(),l("section",lk,[t[43]||(t[43]=n("h3",null,"Reproduce this request",-1)),n("dl",null,[n("div",null,[t[41]||(t[41]=n("dt",null,"Anonymous repository ID",-1)),n("dd",null,[n("code",null,d(e.selectedLog.sample.repoId),1)])]),n("div",null,[t[42]||(t[42]=n("dt",null,"Request path \xB7 query excluded",-1)),n("dd",null,[n("code",null,d(e.selectedLog.sample.requestPath),1)])])]),n("button",{type:"button",class:"btn btn-sm",onClick:t[6]||(t[6]=o=>e.copyLogValue(e.selectedLog.sample.requestPath))},"Copy request path")])):f("v-if",!0),e.selectedLog.sample.errorStack||e.selectedLog.sample.causeStack?(a(),l("details",dk,[n("summary",null,"Exception frames \xB7 "+d(e.selectedLog.sample.errorType),1),e.selectedLog.sample.errorStack?(a(),l("pre",uk,d(e.selectedLog.sample.errorStack),1)):f("v-if",!0),e.selectedLog.sample.causeType?(a(),l("p",ck,"Caused by "+d(e.selectedLog.sample.causeType),1)):f("v-if",!0),e.selectedLog.sample.causeStack?(a(),l("pre",pk,d(e.selectedLog.sample.causeStack),1)):f("v-if",!0)])):f("v-if",!0),n("dl",fk,[n("div",null,[t[44]||(t[44]=n("dt",null,"Service",-1)),n("dd",null,d(e.selectedLog.sample.service),1)]),n("div",null,[t[45]||(t[45]=n("dt",null,"Module",-1)),n("dd",null,d(e.selectedLog.sample.module||"Not recorded"),1)]),n("div",null,[t[46]||(t[46]=n("dt",null,"Event",-1)),n("dd",null,d(e.selectedLog.sample.event),1)]),e.selectedLog.sample.release?(a(),l("div",mk,[t[47]||(t[47]=n("dt",null,"Release",-1)),n("dd",null,d(e.selectedLog.sample.release),1)])):f("v-if",!0)]),n("dl",hk,[(a(),l(V,null,X(["requestId","jobId"],o=>(a(),l(V,{key:o},[e.logTraceId(e.selectedLog,o)?(a(),l("div",gk,[n("dt",null,d(o==="requestId"?"Request ID":"Job ID"),1),n("dd",null,[n("details",vk,[n("summary",null,d(e.compactLogValue(e.selectedLog.sample[o])),1),n("span",null,d(e.selectedLog.sample[o]),1)]),n("button",{type:"button",class:"log-copy-value",onClick:r=>e.copyLogValue(e.selectedLog.sample[o])},"Copy full ID",8,yk)])])):f("v-if",!0)],64))),64))]),n("details",bk,[n("summary",null,[t[48]||(t[48]=m("All sample fields ",-1)),n("span",null,d(Object.keys(e.selectedLog.sample).length),1)]),t[50]||(t[50]=n("p",{class:"log-coverage"},"Admin API fields only. Failed file requests may include their anonymous repository ID and pathname. Query strings are excluded; exception frames include recognized application code only.",-1)),n("dl",null,[(a(!0),l(V,null,X(e.selectedLog.sample,(o,r)=>P((a(),l("div",{key:r},[n("dt",null,d(r),1),n("dd",null,d(o),1)])),[[Q,!["requestId","jobId"].includes(r)]])),128))]),n("details",wk,[t[49]||(t[49]=n("summary",null,"Raw sample",-1)),n("pre",null,d(JSON.stringify(e.selectedLog.sample,null,2)),1),n("button",{class:"btn btn-sm",type:"button",onClick:t[7]||(t[7]=o=>e.copyLogValue(JSON.stringify(e.selectedLog.sample,null,2)))},"Copy JSON")])])])])])):f("v-if",!0),P(n("div",kk,[n("details",Ck,[n("summary",null,[m("Window: "+d(e.logAppliedFilters.window)+" \xB7 "+d(e.logAppliedFilters.service||"All services"),1),e.logAppliedFilters.release?(a(),l("span",Sk," \xB7 "+d(e.logAppliedFilters.release),1)):f("v-if",!0),t[52]||(t[52]=n("span",{class:"log-query-hint"},"Time & service",-1))]),t[58]||(t[58]=m()),n("form",{class:"errors-toolbar log-filters",onSubmit:t[11]||(t[11]=de(o=>e.refreshLogs(),["prevent"]))},[n("label",null,[t[54]||(t[54]=m("Time window ",-1)),P(n("select",{class:"form-control","onUpdate:modelValue":t[8]||(t[8]=o=>e.logFilters.window=o),id:"log-window"},[...t[53]||(t[53]=[n("option",{value:"15m"},"Last 15 minutes",-1),n("option",{value:"1h"},"Last hour",-1),n("option",{value:"6h"},"Last 6 hours",-1),n("option",{value:"24h"},"Last 24 hours",-1)])],512),[[Nt,e.logFilters.window]])]),n("label",null,[t[56]||(t[56]=m("Service ",-1)),P(n("select",{class:"form-control","onUpdate:modelValue":t[9]||(t[9]=o=>e.logFilters.service=o),id:"log-service"},[...t[55]||(t[55]=[Ce('',8)])],512),[[Nt,e.logFilters.service]])]),n("label",null,[t[57]||(t[57]=m("Release SHA ",-1)),P(n("input",{class:"form-control",id:"log-release","onUpdate:modelValue":t[10]||(t[10]=o=>e.logFilters.release=o),maxlength:"40",placeholder:"All releases",pattern:"[a-f0-9]{7,40}|unknown",autocomplete:"off"},null,512),[[nt,e.logFilters.release]])]),n("button",{class:"btn btn-sm",type:"submit",disabled:e.logLoading},d(e.logLoading?"Loading\u2026":"Refresh logs"),9,Ek)],32),e.logData?.captured!==void 0?(a(),l("p",Nk,d(e.logData.captured)+" records returned \xB7 1,000-record cap \xB7 "+d(e.absTime(e.logData.start))+" to "+d(e.absTime(e.logData.end)),1)):f("v-if",!0)]),n("div",Rk,[n("label",Tk,[t[59]||(t[59]=m("Search returned groups",-1)),P(n("input",{class:"form-control",type:"search","onUpdate:modelValue":t[12]||(t[12]=o=>e.logView.search=o),placeholder:"Event, service, code or sample ID"},null,512),[[nt,e.logView.search]])]),n("label",null,[t[61]||(t[61]=m("Severity",-1)),P(n("select",{class:"form-control","onUpdate:modelValue":t[13]||(t[13]=o=>e.logView.severity=o)},[...t[60]||(t[60]=[n("option",{value:""},"All severities",-1),n("option",{value:"error"},"Failure / HTTP 5xx",-1),n("option",{value:"warn"},"Warning",-1),n("option",{value:"info"},"Info",-1)])],512),[[Nt,e.logView.severity]])]),n("label",null,[t[63]||(t[63]=m("Sort",-1)),P(n("select",{class:"form-control","onUpdate:modelValue":t[14]||(t[14]=o=>e.logView.sort=o)},[...t[62]||(t[62]=[n("option",{value:"recent"},"Most recent",-1),n("option",{value:"count"},"Most frequent",-1)])],512),[[Nt,e.logView.sort]])])]),n("p",Pk,d(e.filteredLogGroups().length)+" of "+d(e.logData?.groups?.length||0)+" returned groups \xB7 "+d(e.logData?.captured??0)+" records \xB7 1,000-record cap.",1),e.logLoading?(a(),l("div",Dk,"Loading event groups\u2026")):(a(),l("div",Ak,[n("div",Ik,[e.filteredLogGroups().length?(a(),l("div",Ok,[n("table",Mk,[t[66]||(t[66]=n("caption",{class:"sr-only"},"Returned events grouped by service, module, code, severity and status. Select an event for sample details.",-1)),t[67]||(t[67]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Event"),n("th",{scope:"col"},"Severity"),n("th",{scope:"col"},"Count"),n("th",{scope:"col"},"Last seen")])],-1)),n("tbody",null,[(a(!0),l(V,null,X(e.filteredLogGroups(),o=>(a(),l("tr",{key:o.fingerprint,class:R({"log-selected":e.selectedLog?.fingerprint===o.fingerprint})},[n("td",null,[n("button",{class:"log-event-button",type:"button","aria-label":"Inspect "+(o.sample.errorCode||o.sample.errorType||o.sample.event),onClick:r=>e.selectLog(o,r.currentTarget),"aria-expanded":e.selectedLog?.fingerprint===o.fingerprint,"aria-controls":"log-detail"},[n("span",qk,[n("strong",null,d(o.sample.errorCode||o.sample.errorType||o.sample.event),1),t[64]||(t[64]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-arrow-right"})],-1))]),n("span",Lk,[n("span",_k,d(o.sample.service),1),n("span",$k," / "+d(o.sample.module),1)])],8,Vk)]),n("td",Fk,[n("span",{class:R(["log-severity","log-severity-"+e.logSeverity(o.sample)])},d(e.logSeverity(o.sample)==="error"?"Failure":e.logSeverity(o.sample)==="warn"?"Warning":"Info"),3),o.sample.status||o.sample.httpStatus?(a(),l("span",Uk,"HTTP "+d(o.sample.status||o.sample.httpStatus),1)):f("v-if",!0)]),n("td",Bk,[t[65]||(t[65]=n("span",{class:"sr-only"},"Count ",-1)),m(d(o.count),1)]),n("td",null,[n("time",{datetime:o.last,title:e.absTime(o.last)},d(e.relTime(o.last)),9,zk)])],2))),128))])])])):e.logData?.groups?.length?(a(),l("div",Hk,[t[68]||(t[68]=m("No returned groups match these filters. ",-1)),n("button",{class:"btn btn-sm",onClick:t[15]||(t[15]=o=>{e.logView.search="",e.logView.severity=""})},"Reset filters")])):(a(),l("div",jk,d(e.logData?.state==="empty"?"No warnings, errors or HTTP 5xx returned in this window.":"No central events available. Refresh logs or open Application history."),1))])])),e.logData?.telemetry?(a(),l("details",Gk,[t[70]||(t[70]=n("summary",null,[m("Telemetry details "),n("span",null,"90 seconds before last check")],-1)),e.logData.telemetry.missing?.length?(a(),l("p",Wk,"Missing or stale: "+d(e.logData.telemetry.missing.join(", "))+". Expected one API, four streamers and three queues.",1)):(a(),l("p",Kk,"Expected API, streamer and queue heartbeats were present at the last check.")),e.logData.telemetry.partial?(a(),l("p",Yk,"Telemetry coverage is partial; absence and drop totals may be incomplete.")):f("v-if",!0),n("p",null,"Collector: "+d(e.logData.telemetry.collector.state)+" \xB7 dropped events since collector start: "+d(e.logData.telemetry.collector.dropped??"unknown")+". Intentional filtering is excluded.",1),n("details",null,[t[69]||(t[69]=n("summary",null,"Application drop counters and last telemetry",-1)),n("ul",null,[(a(!0),l(V,null,X(e.logData.telemetry.instances,(o,r)=>(a(),l("li",{key:r},d(o.service)+" \xB7 "+d(o.instance||"unknown instance")+" \xB7 "+d(o.dropped??"unknown")+" dropped since process start \xB7 last seen "+d(e.absTime(o.last)),1))),128))])])])):f("v-if",!0)],512),[[Q,!e.selectedLog]])],8,vw),[[Q,e.errorSource==="central"]]),e.logCopyStatus?(a(),l("p",Jk,d(e.logCopyStatus),1)):f("v-if",!0),P(n("section",{class:"history-source","aria-busy":e.redisLoading},[t[112]||(t[112]=n("h2",{class:"sr-only"},"Application history",-1)),e.redisCollecting!==!0?(a(),l("p",Qk,d(e.redisCollecting===!1?"Collection is off; retained history is not receiving new events.":"Collection status is unknown."),1)):f("v-if",!0),e.historySelected?(a(),l("div",Zk,[n("button",{type:"button",class:"log-back",onClick:t[16]||(t[16]=o=>e.closeHistory())},"\u2190 Back to history"),n("div",xk,[n("div",null,[n("p",e0,d(e.historySelected.module)+" \xB7 Application history",1),n("h2",t0,d(e.historySelected.displayMessage),1)]),n("span",{class:R(["log-severity","log-severity-"+e.historySelected._bucket])},[m(d(e.historySelected._bucket),1),e.historySelected._status?(a(),l("span",n0," \xB7 HTTP "+d(e.historySelected._status),1)):f("v-if",!0)],2)]),n("div",o0,[n("button",{type:"button","aria-pressed":e.historyView==="overview"&&(!e.detailTab[e.historySelected._key]||e.detailTab[e.historySelected._key]==="summary"),class:R({active:e.historyView==="overview"&&(!e.detailTab[e.historySelected._key]||e.detailTab[e.historySelected._key]==="summary")}),onClick:t[17]||(t[17]=o=>{e.historyView="overview",e.detailTab[e.historySelected._key]="summary"})},"Overview",10,s0),n("button",{type:"button","aria-pressed":e.historyView==="timeline",class:R({active:e.historyView==="timeline"}),onClick:t[18]||(t[18]=o=>e.showHistoryTimeline(o.currentTarget))},"Timeline",10,i0),n("button",{type:"button","aria-pressed":e.historyView==="overview"&&e.detailTab[e.historySelected._key]==="raw",class:R({active:e.historyView==="overview"&&e.detailTab[e.historySelected._key]==="raw"}),onClick:t[19]||(t[19]=o=>{e.historyView="overview",e.detailTab[e.historySelected._key]="raw"})},"Raw",10,r0),e.historySelected._stack?(a(),l("button",{key:0,type:"button","aria-pressed":e.historyView==="overview"&&e.detailTab[e.historySelected._key]==="stack",class:R({active:e.historyView==="overview"&&e.detailTab[e.historySelected._key]==="stack"}),onClick:t[20]||(t[20]=o=>{e.historyView="overview",e.detailTab[e.historySelected._key]="stack"})},"Stack",10,a0)):f("v-if",!0),e.historySelected.count>1?(a(),l("button",{key:1,type:"button","aria-pressed":e.historyView==="overview"&&e.detailTab[e.historySelected._key]==="related",class:R({active:e.historyView==="overview"&&e.detailTab[e.historySelected._key]==="related"}),onClick:t[21]||(t[21]=o=>{e.historyView="overview",e.detailTab[e.historySelected._key]="related"})},"Occurrences ("+d(e.historySelected.count)+")",11,l0)):f("v-if",!0)])])):f("v-if",!0),P(n("div",null,[P((a(),l("form",d0,[n("div",u0,[n("button",{type:"button",class:R(["seg-chip",{active:(e.query?.bucket||"")===""}]),"aria-pressed":(e.query?.bucket||"")==="",onClick:t[22]||(t[22]=o=>e.setBucket(""))},"All ",10,c0),n("button",{type:"button",class:R(["seg-chip",{active:(e.query?.bucket||"")==="error","is-empty":!e.stats?.severity?.error}]),"aria-pressed":(e.query?.bucket||"")==="error",onClick:t[23]||(t[23]=o=>e.setBucket("error"))},[...t[71]||(t[71]=[n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1),m("Error ",-1)])],10,p0),n("button",{type:"button",class:R(["seg-chip",{active:(e.query?.bucket||"")==="warn","is-empty":!e.stats?.severity?.warn}]),"aria-pressed":(e.query?.bucket||"")==="warn",onClick:t[24]||(t[24]=o=>e.setBucket("warn"))},[...t[72]||(t[72]=[n("span",{class:"seg-dot warn","aria-hidden":"true"},null,-1),m("Warning ",-1)])],10,f0),n("button",{type:"button",class:R(["seg-chip",{active:(e.query?.bucket||"")==="info","is-empty":!e.stats?.severity?.info}]),"aria-pressed":(e.query?.bucket||"")==="info",onClick:t[25]||(t[25]=o=>e.setBucket("info"))},[...t[73]||(t[73]=[n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1),m("Info ",-1)])],10,m0)]),n("div",h0,[t[74]||(t[74]=n("svg",{class:"ui-icon search-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)),P(n("input",g0,null,512),[[s,{state:e.viewState,set:o=>{e.query.search=o},value:e.query?.search,form:null,options:{}}]]),e.parsedFilterCount?(a(),l("span",v0,d(e.parsedFilterCount)+" filter"+d(e.parsedFilterCount>1?"s":""),1)):f("v-if",!0)]),n("details",y0,[t[80]||(t[80]=n("summary",null,"View options",-1)),n("div",b0,[n("div",w0,[t[76]||(t[76]=n("label",{for:"history-sort"},"Sort",-1)),P((a(),l("select",k0,[...t[75]||(t[75]=[n("option",{value:"recent"},"Most recent",-1),n("option",{value:"count"},"Most frequent",-1)])])),[[s,{state:e.viewState,set:o=>{e.query.sort=o},value:e.query?.sort,form:null,options:{}}]])]),n("div",C0,[t[78]||(t[78]=n("label",{for:"history-merge",title:"Rows are always sectioned by severity. This merges repeated events inside each section."},"Merge",-1)),P((a(),l("select",S0,[...t[77]||(t[77]=[n("option",{value:""},"Don't merge",-1),n("option",{value:"code"},"Same error",-1),n("option",{value:"module"},"Same module",-1)])])),[[s,{state:e.viewState,set:o=>{e.query.group=o},value:e.query?.group,form:null,options:{}}]])]),n("label",E0,[P(n("input",N0,null,512),[[s,{state:e.viewState,set:o=>{e.query.autoRefresh=o},value:e.query?.autoRefresh,form:null,options:{}}]]),t[79]||(t[79]=n("span",{class:"auto-refresh-label"},"Auto-refresh",-1))])])])])),[[i,e.viewState]]),e.redisLoading?(a(),l("p",R0,"Loading application history\u2026")):f("v-if",!0),!e.redisLoading&&!e.visible?.length&&e.available===!0?(a(),l("div",T0,"No matching entries in the loaded Redis history.")):f("v-if",!0),e.redisRedacted?(a(),l("p",P0,d(e.redisRedacted)+" invalid legacy records were omitted. Older valid records may still be available.",1)):f("v-if",!0),e.entries?.length||e.canLoadMore()?(a(),l("div",D0,[n("span",null,d(e.query?.group&&e.visible?.length!==e.entries?.length?e.fmt?.number(e.visible?.length)+(e.visible?.length===1?" group":" groups")+" from ":"")+d(e.fmt?.number(e.entries?.length))+" safe entries loaded \xB7 "+d(e.fmt?.number(e.redisNextOffset||e.entries?.length))+" of "+d(e.fmt?.number(e.total))+" stored records scanned",1),e.canLoadMore()?(a(),l("button",{key:0,class:"btn btn-sm",type:"button",onClick:t[26]||(t[26]=o=>e.loadMore()),disabled:e.redisLoading},"Load 250 older",8,A0)):f("v-if",!0)])):f("v-if",!0)],512),[[Q,!e.historySelected]]),e.visible?.length||e.historySelected?P((a(),l("div",{key:2,class:R(["errors-list",{"history-inspector":e.historySelected}])},[e.historySelected?f("v-if",!0):(a(),l("div",I0,[...t[81]||(t[81]=[Ce('WhenSeverityModuleMessageTotalStatus',6)])])),(a(!0),l(V,null,X(e.historySelected?[e.historySelected]:e.visible,(o,r)=>(a(),l(V,{key:o?._key},[!e.historySelected&&(r===0||e.visible[r-1]?._bucket!==o?._bucket)?(a(),l("div",O0,[n("span",{class:R(["sev-dot","sev-"+o?._bucket])},null,2),m(d(o?._bucket==="error"?"Error":o?._bucket==="warn"?"Warning":"Info"),1),n("span",M0,d(e.fmt?.number(e.visible.filter(u=>u?._bucket===o?._bucket).length)),1),r===0?(a(),l("span",V0,"By severity \xB7 "+d(e.query?.group==="code"?"repeats merged by error \xB7 ":e.query?.group==="module"?"repeats merged by module \xB7 ":"")+d(e.query?.sort==="count"?"most frequent first":"most recent first"),1)):f("v-if",!0)])):f("v-if",!0),n("div",{class:R(["errors-row",{open:e.expanded[o?._key]}])},[P(n("button",{type:"button",class:"errors-row-main","data-history-key":o?._key,"aria-expanded":!!e.expanded[o?._key],"aria-controls":"history-detail-"+r,onClick:u=>e.toggle(o,u.currentTarget)},[n("span",L0,[n("span",_0,d(e.relTime(o?.ts)),1),n("span",$0,d(e.absTimeShort(o?.ts)),1)]),n("span",F0,[n("span",{class:R(["sev-dot","sev-"+o?._bucket])},null,2),n("span",U0,d(o?._bucket==="error"?"Error":o?._bucket==="warn"?"Warning":"Info"),1)]),n("span",B0,[n("span",z0,d(o?.module),1)]),n("span",H0,[n("strong",j0,d(o?.displayMessage),1),o?.displayContext&&o?.displayContext!==o?.displayMessage?(a(),l("span",G0,d(o?.displayContext),1)):f("v-if",!0),o?._detail?(a(),l("span",W0,d(o?._detail),1)):f("v-if",!0),o?._url?(a(),l("span",{key:2,class:"msg-url",title:o?._url},d(o?._url),9,K0)):f("v-if",!0)]),n("span",Y0,[o?.count>1?(a(),l("span",J0,"\xD7"+d(o?.count),1)):f("v-if",!0),o?.count===1?(a(),l("span",X0,"\xD71")):f("v-if",!0)]),n("span",Q0,[o?._status?(a(),l("span",{key:0,class:R(["status-pill",String(o?._status).match(/^[23]/)?"status-neutral":"status-"+o?._bucket]),title:String(o?._status).match(/^2/)&&o?._bucket==="warn"?"Client closed the connection":null},d(String(o?._status).match(/^2/)&&o?._bucket==="warn"?"\u2014":o?._status),11,Z0)):f("v-if",!0),o?._status?f("v-if",!0):(a(),l("span",x0,"\u2014"))])],8,q0),[[Q,!e.historySelected]]),e.expanded[o?._key]?(a(),l("div",{key:0,class:"errors-row-detail",id:"history-detail-"+r},[n("div",t2,[n("div",n2,[!e.detailTab[o?._key]||e.detailTab[o?._key]==="summary"?(a(),l("div",o2,[t[87]||(t[87]=n("h3",null,"What happened",-1)),o.raw?.[0]?.route?(a(),l("p",s2,[n("code",null,d(o.raw[0].method)+" "+d(o.raw[0].route),1)])):f("v-if",!0),o.raw?.[0]?.requestPath?(a(),l("section",i2,[t[84]||(t[84]=n("h3",null,"Reproduce this request",-1)),n("dl",null,[n("div",null,[t[82]||(t[82]=n("dt",null,"Anonymous repository ID",-1)),n("dd",null,[n("code",null,d(o.raw[0].repoId),1)])]),n("div",null,[t[83]||(t[83]=n("dt",null,"Request path \xB7 query excluded",-1)),n("dd",null,[n("code",null,d(o.raw[0].requestPath),1)])])]),n("button",{type:"button",class:"btn btn-sm",onClick:u=>e.copyLogValue(o.raw[0].requestPath)},"Copy request path",8,r2)])):f("v-if",!0),o.raw?.[0]?.errorType?(a(),l("p",a2,[m(d(o.raw[0].errorType),1),o.raw[0].causeType?(a(),l("span",l2," \xB7 caused by "+d(o.raw[0].causeType),1)):f("v-if",!0)])):f("v-if",!0),n("p",d2,d(e.logExplanation(o.raw?.[0]||{})),1),n("p",u2,d(e.logEvidence(o.raw?.[0]||{})),1),n("details",c2,[t[85]||(t[85]=n("summary",null,"Technical fields",-1)),t[86]||(t[86]=m()),!e.detailTab[o?._key]||e.detailTab[o?._key]==="summary"?(a(),l("dl",p2,[(a(!0),l(V,null,X(e.historyDetailFields(o),([u,p])=>(a(),l("div",{key:u},[n("dt",null,d(u),1),n("dd",null,[e.isLogIdentifier(u,p)?(a(),l(V,{key:0},[n("details",f2,[n("summary",null,d(e.compactLogValue(p)),1),n("span",null,d(p),1)]),n("button",{type:"button",class:"log-copy-value",onClick:c=>e.copyLogValue(p)},"Copy full "+d(u),9,m2)],64)):(a(),l(V,{key:1},[m(d(e.logFieldText(p)),1)],64))])]))),128))])):f("v-if",!0)])])):f("v-if",!0),e.detailTab[o?._key]==="raw"?(a(),l("pre",h2,d(o?._rawJson),1)):f("v-if",!0),e.detailTab[o?._key]==="stack"?(a(),l("pre",g2,d(o?._stack),1)):f("v-if",!0),e.detailTab[o?._key]==="related"?(a(),l("section",v2,[t[89]||(t[89]=n("h3",null,"Stored occurrences",-1)),n("p",y2,d(o._related.length)+" matching records in the loaded Redis snapshot. Most recent first.",1),n("ol",b2,[(a(!0),l(V,null,X(e.historyOccurrences(o),(u,p)=>(a(),l("li",{key:p},[n("details",w2,[n("summary",null,[n("span",k2,[n("time",{datetime:u.ts},d(e.occurrenceTime(u.ts)),9,C2),n("span",{class:R(["log-severity","log-severity-"+u._bucket])},d(u._status?"HTTP "+u._status:u._bucket),3)]),n("span",S2,[m(d(u.raw?.[0]?.service||"Application")+" \xB7 "+d(u.module||"Unknown module"),1),u.raw?.[0]?.route?(a(),l("span",E2,[m(" \xB7 "+d(u.raw[0].method)+" ",1),n("code",null,d(u.raw[0].requestPath||u.raw[0].route),1)])):(a(),l("span",N2," \xB7 Route not captured"))])]),u.raw?.[0]?.errorType?(a(),l("p",R2,d(u.raw[0].errorType),1)):f("v-if",!0),u._stack?(a(),l("pre",T2,d(u._stack),1)):(a(),l("p",P2,"Exception frames were not captured.")),u.raw?.[0]?.route?f("v-if",!0):(a(),l("p",D2,"Request route was not captured.")),n("details",A2,[t[88]||(t[88]=n("summary",null,"Stored record",-1)),n("pre",null,d(u._rawJson),1)])])]))),128))])])):f("v-if",!0),n("div",I2,[e.logTraceId(o,"requestId")?(a(),l("button",{key:0,class:"btn btn-sm",type:"button",onClick:u=>e.lookupTrace("requestId",e.logTraceId(o,"requestId"),u.currentTarget,o)},"Request timeline \u2192",8,O2)):f("v-if",!0),e.logTraceId(o,"jobId")?(a(),l("button",{key:1,class:"btn btn-sm",type:"button",onClick:u=>e.lookupTrace("jobId",e.logTraceId(o,"jobId"),u.currentTarget,o)},"Job timeline \u2192",8,M2)):f("v-if",!0),o?._url?(a(),l("button",{key:2,class:"btn btn-sm",type:"button",title:"Copy a curl that reproduces the request",onClick:u=>e.copyCurl(o)},[...t[90]||(t[90]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),m(" Copy curl",-1)])],8,V2)):f("v-if",!0),n("button",{class:"btn btn-sm",type:"button",onClick:u=>e.copyJson(o)},[...t[91]||(t[91]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-clipboard"})],-1),m(" Copy JSON",-1)])],8,q2),e.copyHint?(a(),l("span",L2,d(e.copyHint),1)):f("v-if",!0)])]),n("aside",_2,[n("div",$2,[t[92]||(t[92]=n("div",{class:"aside-label"},"First seen",-1)),n("div",{class:"aside-value",title:e.absTime(o?._firstSeen)},d(e.relTime(o?._firstSeen)),9,F2)]),n("div",U2,[t[93]||(t[93]=n("div",{class:"aside-label"},"Last seen",-1)),n("div",{class:"aside-value",title:e.absTime(o?.ts)},d(e.relTime(o?.ts)),9,B2)]),n("div",z2,[t[94]||(t[94]=n("div",{class:"aside-label"},"Occurrences",-1)),n("div",H2,[m(d(o?.count),1),o?._lastHourCount?(a(),l("span",j2," \xB7 "+d(o?._lastHourCount)+" this hour",1)):f("v-if",!0)])]),o?._repoId?(a(),l("div",G2,[t[96]||(t[96]=n("div",{class:"aside-label"},"Repository",-1)),n("a",{class:"aside-value",href:e.safeUrl("/r/"+o?._repoId)},d(e.isLogIdentifier("repoId",o?._repoId)?e.compactLogValue(o?._repoId):o?._repoId),9,W2),e.isLogIdentifier("repoId",o?._repoId)?(a(),l("details",K2,[t[95]||(t[95]=n("summary",null,"Full repository ID",-1)),m(d(o?._repoId),1)])):f("v-if",!0),n("button",{type:"button",class:"log-copy-value",onClick:u=>e.copyLogValue(o?._repoId)},"Copy full repository ID",8,Y2)])):f("v-if",!0),o?._url?(a(),l("div",J2,[t[97]||(t[97]=n("div",{class:"aside-label"},"URL",-1)),n("div",X2,d(o?._url),1)])):f("v-if",!0)])])],8,e2)):f("v-if",!0)],2)],64))),128))],2)),[[Q,e.historyView!=="timeline"||!e.historySelected]]):f("v-if",!0),P(n("details",Q2,[t[110]||(t[110]=n("summary",null,"History settings, export and diagnostics",-1)),n("div",Z2,[n("div",x2,[n("button",{class:"btn btn-sm",type:"button",onClick:t[27]||(t[27]=o=>e.exportCsv())},"Export Redis CSV"),n("button",{class:"btn btn-sm btn-outline-danger",type:"button",onClick:t[28]||(t[28]=o=>e.clearAll())},"Clear Redis history")])]),n("p",eC,d(e.redisCollecting===!1?"Collection is OFF (LOG_REDIS_MIRROR=off); retained history is not receiving new events.":e.redisCollecting===!0?"The application is configured to mirror warnings and errors.":"Collection status is unknown."),1),t[111]||(t[111]=n("p",{class:"log-coverage"},"Redis mirror: hourly counters cover 24 hours; stored rows are a rotating snapshot and may cover a shorter or longer period. Counts are not combined with central logs.",-1)),e.redisStatsState!=="ready"||e.available!==!0?(a(),l("p",tC,"Redis counters are "+d(e.redisStatsState==="loading"?"loading":"unavailable")+".",1)):f("v-if",!0),n("details",nC,[t[108]||(t[108]=n("summary",null,"24-hour counters and volume",-1)),t[109]||(t[109]=m()),e.redisStatsState==="ready"&&e.available===!0?(a(),l("section",oC,[n("div",sC,[t[98]||(t[98]=n("div",{class:"kpi-label"},"Occurrences \xB7 24h",-1)),n("div",iC,d(e.fmt?.number(e.stats?.last24h??0)),1),n("div",{class:R(["kpi-sub",{up:e.stats?.delta>0,down:e.stats?.delta<0}])},[e.stats?.prev24h>=20?(a(),l("span",rC,d((e.stats?.last24h??0)-(e.stats?.prev24h??0)>=0?"+":"")+d(Math.round(((e.stats?.last24h??0)-(e.stats?.prev24h??0))/e.stats.prev24h*100))+"% vs yesterday",1)):e.stats?.prev24h!==void 0?(a(),l("span",aC,d(e.fmt?.number(e.stats?.prev24h??0))+" in prior 24h",1)):f("v-if",!0),e.stats?.prev24h?f("v-if",!0):(a(),l("span",lC,"no prior baseline"))],2)]),n("div",dC,[t[99]||(t[99]=n("div",{class:"kpi-label"},"Error",-1)),n("div",uC,d(e.fmt?.number(e.stats?.severity?.error??0)),1),n("div",cC,"5xx \xB7 "+d(e.stats?.unique?.error)+" unique",1)]),n("div",pC,[t[100]||(t[100]=n("div",{class:"kpi-label"},"Warning",-1)),n("div",fC,d(e.fmt?.number(e.stats?.severity?.warn??0)),1),n("div",mC,"4xx, aborted \xB7 "+d(e.stats?.unique?.warn)+" unique",1)]),n("div",hC,[t[101]||(t[101]=n("div",{class:"kpi-label"},"Info",-1)),n("div",gC,d(e.fmt?.number(e.stats?.severity?.info??0)),1),n("div",vC,"Auth, 404 \xB7 "+d(e.stats?.unique?.info)+" unique",1)]),n("div",{class:R(["kpi-card",{"kpi-error":e.stats?.dropped>0}])},[t[102]||(t[102]=n("div",{class:"kpi-label"},"Entries stored",-1)),n("div",yC,d(e.fmt?.number(e.total)),1),n("div",bC,[m(" rotating history \xB7 cap "+d(e.fmt?.number(e.cap))+" ",1),e.stats?.dropped>0?(a(),l("span",wC," \xB7 "+d(e.stats?.dropped)+" dropped",1)):f("v-if",!0)])],2)])):f("v-if",!0),e.redisStatsState==="ready"&&e.available===!0?(a(),l("section",kC,[n("div",CC,[t[106]||(t[106]=n("span",{class:"volume-title"},"Volume \xB7 24h \xB7 1h buckets",-1)),n("span",SC,[e.stats?.severity?.error?(a(),l("span",EC,[...t[103]||(t[103]=[n("span",{class:"dot dot-error"},null,-1),m("Error",-1)])])):f("v-if",!0),e.stats?.severity?.warn?(a(),l("span",NC,[...t[104]||(t[104]=[n("span",{class:"dot dot-warn"},null,-1),m("Warning",-1)])])):f("v-if",!0),e.stats?.severity?.info?(a(),l("span",RC,[...t[105]||(t[105]=[n("span",{class:"dot dot-info"},null,-1),m("Info",-1)])])):f("v-if",!0)])]),n("div",TC,[(a(!0),l(V,null,X(e.stats?.buckets,(o,r)=>(a(),l("div",{class:"volume-bar",key:r,title:e.bucketTitle(o)},[n("span",{class:"seg seg-error",style:Ae({height:e.barPx(o,"error")+"px"})},null,4),n("span",{class:"seg seg-warn",style:Ae({height:e.barPx(o,"warn")+"px"})},null,4),n("span",{class:"seg seg-info",style:Ae({height:e.barPx(o,"info")+"px"})},null,4)],8,PC))),128))]),t[107]||(t[107]=n("div",{class:"volume-axis","aria-hidden":"true"},[n("span",null,"24h ago"),n("span",null,"12h ago"),n("span",null,"now")],-1))])):f("v-if",!0)])],512),[[Q,!e.historySelected]])],8,Xk),[[Q,e.errorSource==="history"]]),e.errorSource==="history"&&e.historyView==="timeline"?(a(),l("div",DC,[e.traceSelection?f("v-if",!0):(a(),l("div",AC,"No request or job ID was recorded for this entry.")),e.traceSelection?(a(),l("section",{key:1,class:"log-timeline","aria-labelledby":"log-timeline-title","aria-busy":e.traceLoading},[n("div",OC,[n("h3",MC,d(e.traceSelection.kind==="jobId"?"Job":"Request")+" timeline",1),n("button",{type:"button",class:"btn btn-sm",onClick:t[29]||(t[29]=o=>e.closeTrace())},"Close timeline")]),e.traceSelection.context?(a(),l("p",VC,d(e.traceSelection.context.event)+" \xB7 "+d(e.traceSelection.context.service),1)):f("v-if",!0),e.traceLoading||e.trace?.state!=="ready"?(a(),l("p",qC,d(e.traceLoading?"Loading related events\u2026":e.trace?.state==="empty"?"No related events returned in this window.":e.logStateText(e.trace?.state)),1)):f("v-if",!0),e.trace&&!e.traceLoading?(a(),l("p",LC,d(e.trace.events?.length||0)+" events returned \xB7 "+d(e.absTime(e.trace.start))+" \u2013 "+d(e.absTime(e.trace.end))+" \xB7 200-event cap. All services and releases.",1)):f("v-if",!0),e.trace?.events?.length?(a(),l("ol",_C,[(a(!0),l(V,null,X(e.trace.events,(o,r)=>(a(),l("li",{key:r},[n("time",{datetime:o.timestamp,title:o.timestamp},d(e.absTimeShort(o.timestamp)),9,$C),n("div",FC,[n("div",UC,[n("strong",null,d(o.errorCode||o.errorType||o.event),1),n("span",{class:R(["log-severity","log-severity-"+e.logSeverity(o)])},d(o.status||o.httpStatus?"HTTP "+(o.status||o.httpStatus):o.severity||"Event"),3)]),n("p",null,[m(d(o.service),1),o.module?(a(),l("span",BC," / "+d(o.module),1)):f("v-if",!0),o.ms!==void 0?(a(),l("span",zC," \xB7 "+d(o.ms)+" ms",1)):f("v-if",!0),o.attempt!==void 0?(a(),l("span",HC," \xB7 attempt "+d(o.attempt),1)):f("v-if",!0)]),o.route?(a(),l("p",jC,[n("code",null,d(o.method)+" "+d(o.requestPath||o.route),1)])):f("v-if",!0),o.errorStack||o.causeStack?(a(),l("details",GC,[n("summary",null,[t[113]||(t[113]=m("Exception frames",-1)),o.errorType?(a(),l("span",WC," \xB7 "+d(o.errorType),1)):f("v-if",!0)]),o.errorStack?(a(),l("pre",KC,d(o.errorStack),1)):f("v-if",!0),o.causeType?(a(),l("p",YC,"Caused by "+d(o.causeType),1)):f("v-if",!0),o.causeStack?(a(),l("pre",JC,d(o.causeStack),1)):f("v-if",!0)])):f("v-if",!0),n("details",XC,[t[114]||(t[114]=n("summary",null,"Event fields",-1)),n("pre",null,d(JSON.stringify(o,null,2)),1),n("button",{type:"button",class:"btn btn-sm",onClick:u=>e.copyLogValue(JSON.stringify(o,null,2))},"Copy JSON",8,QC)])])]))),128))])):f("v-if",!0),n("details",ZC,[t[115]||(t[115]=n("summary",null,"Correlation ID and query scope",-1)),n("code",null,d(e.traceSelection.id),1),n("button",{type:"button",class:"log-copy-value",onClick:t[30]||(t[30]=o=>e.copyLogValue(e.traceSelection.id))},"Copy full ID"),t[116]||(t[116]=n("p",null,"Earliest matching events in the selected window. Service and release filters do not narrow this timeline.",-1))]),e.trace?.grafanaUrl?(a(),l("a",{key:4,href:e.safeUrl(e.trace.grafanaUrl),target:"_blank",rel:"noopener noreferrer"},"Open in Grafana",8,xC)):f("v-if",!0)],8,IC)):f("v-if",!0)])):f("v-if",!0)])}var eS={class:"container paper-page admin-page overview-page"},tS={key:0,class:"admin-empty"},nS={key:1,class:"alert alert-danger",style:{margin:"12px 0"}},oS={class:"ov-views",role:"tablist","aria-label":"Overview sections"},sS=["aria-selected","onClick"],iS={key:2},rS={key:0,class:"ov-health",role:"status"},aS={class:"ov-kpi-row"},lS={class:"ov-kpi-card"},dS={class:"ov-kpi-value"},uS={class:"ov-kpi-sub"},cS={class:"ov-kpi-card"},pS={class:"ov-kpi-sub"},fS={class:"ov-kpi-card"},mS={class:"ov-kpi-sub"},hS={class:"ov-kpi-card"},gS={class:"ov-kpi-sub"},vS={class:"ov-kpi-card"},yS={class:"ov-kpi-value"},bS={class:"ov-kpi-sub"},wS={class:"ov-daily-row"},kS={class:"ov-daily-card"},CS={class:"ov-daily-value"},SS={class:"ov-daily-card"},ES={class:"ov-daily-value"},NS={class:"ov-daily-sub"},RS={class:"ov-daily-card"},TS={class:"ov-daily-value"},PS={class:"ov-chart-card"},DS={class:"ov-chart-head"},AS={class:"ov-chart-legends"},IS={class:"ov-chart-legend"},OS={key:0,class:"ov-legend-missing"},MS={key:0,class:"ov-spark-bars ov-has-axis"},VS={class:"ov-yaxis","aria-hidden":"true"},qS=["data-tip","aria-label"],LS={key:1,class:"ov-spark-x"},_S={class:"ov-chart-card"},$S={class:"ov-chart-head"},FS={class:"ov-chart-legends"},US={class:"ov-chart-legend"},BS={key:0,class:"ov-legend-missing"},zS={key:0,class:"ov-spark-bars ov-has-axis"},HS={class:"ov-yaxis","aria-hidden":"true"},jS=["data-tip","aria-label"],GS={key:1,class:"ov-spark-x"},WS={key:0,class:"ov-chart-card"},KS={class:"ov-chart-head"},YS={class:"ov-chart-legends"},JS={class:"ov-chart-legend"},XS={key:0,class:"ov-legend-missing"},QS={key:0,class:"ov-spark-bars ov-spark-step ov-has-axis"},ZS={class:"ov-yaxis","aria-hidden":"true"},xS=["viewBox","aria-label"],eE=["d"],tE=["d"],nE={key:1,class:"ov-spark-x"},oE={class:"ov-chart-card"},sE={class:"ov-chart-head"},iE={class:"ov-chart-legends"},rE={class:"ov-chart-legend"},aE={key:0,class:"ov-legend-missing"},lE={key:0,class:"ov-spark-bars ov-has-axis"},dE={class:"ov-yaxis","aria-hidden":"true"},uE=["data-tip","aria-label"],cE={key:1,class:"ov-spark-x"},pE={class:"ov-triple-row"},fE={class:"ov-panel-card"},mE={class:"ov-panel-head"},hE={class:"ov-panel-meta"},gE={class:"ov-stacked-bar"},vE={class:"ov-bar-legend"},yE={href:"/admin/repositories",class:"ov-legend-item"},bE={class:"ov-legend-n"},wE={href:"/admin/repositories",class:"ov-legend-item"},kE={class:"ov-legend-n"},CE={href:"/admin/repositories",class:"ov-legend-item"},SE={class:"ov-legend-n"},EE={href:"/admin/repositories",class:"ov-legend-item"},NE={class:"ov-legend-n"},RE={href:"/admin/repositories",class:"ov-legend-item"},TE={class:"ov-legend-n"},PE={class:"ov-panel-card"},DE={class:"ov-panel-head"},AE={class:"ov-panel-meta"},IE={class:"ov-error-bars"},OE={class:"ov-ebar-row"},ME={class:"ov-ebar-track"},VE={class:"ov-ebar-n"},qE={class:"ov-ebar-row"},LE={class:"ov-ebar-track"},_E={class:"ov-ebar-n"},$E={key:0,class:"ov-ehours",role:"img","aria-label":"Errors per hour over the last 24 hours"},FE={class:"ov-ehours-legend"},UE={class:"ov-ehours-note"},BE={class:"ov-ehours-bars"},zE=["title"],HE={key:0,class:"ov-ehours-zero"},jE={class:"ov-ebar-note"},GE={key:0,class:"ov-panel-foot"},WE={href:"/admin/errors"},KE={class:"ov-panel-card"},YE={class:"ov-routes-table"},JE={class:"ov-route-row",href:"/admin/queues"},XE={class:"ov-route-n"},QE={class:"ov-route-n"},ZE={class:"ov-route-row",href:"/admin/queues"},xE={class:"ov-route-n"},eN={class:"ov-route-n"},tN={class:"ov-route-row",href:"/admin/queues"},nN={class:"ov-route-n"},oN={class:"ov-route-n"},sN={class:"ov-services-card"},iN={class:"ov-services-head"},rN={class:"ov-panel-meta"},aN={class:"ov-services-grid"},lN={class:"ov-svc"},dN={class:"ov-svc-info"},uN={class:"ov-svc-meta"},cN={class:"ov-svc"},pN={class:"ov-svc-info"},fN={key:0,class:"ov-svc-meta"},mN={key:1,class:"ov-svc-meta"},hN={class:"ov-svc"},gN={class:"ov-svc-info"},vN={key:0,class:"ov-svc-meta"},yN={key:1,class:"ov-svc-meta"},bN={class:"ov-svc"},wN={class:"ov-svc-info"},kN={key:0,class:"ov-svc-meta"},CN={key:1,class:"ov-svc-meta"},SN={class:"ov-svc"},EN=["title"],NN={class:"ov-svc-info"},RN={class:"ov-svc-meta"},TN={class:"ov-panel-card ov-cache","aria-labelledby":"cache-heading"},PN={class:"ov-panel-head ov-performance-head"},DN={class:"ov-performance-window"},AN={key:0,class:"ov-performance-message ov-performance-warning",role:"alert"},IN={key:1,class:"ov-performance-empty",role:"status"},ON={key:0,class:"ov-performance-note"},MN={key:1,class:"ov-performance-note"},VN={key:2,class:"ov-performance-message ov-performance-warning",role:"status"},qN={key:3,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Cache storage budgets"},LN={class:"ov-metrics-table"},_N={scope:"row",class:"ov-event-name"},$N=["title"],FN={key:0,class:"ov-metric-bad-text"},UN={key:1,class:"budget-bar","aria-hidden":"true"},BN={class:"num"},zN={class:"num"},HN={class:"num"},jN={class:"num"},GN={key:4,class:"ov-cache-rates"},WN={key:5,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Cache events and processing durations"},KN={class:"ov-metrics-table"},YN={scope:"row",class:"ov-event-name"},JN={class:"ov-event-traffic"},XN={class:"num"},QN={class:"num"},ZN={key:6,class:"ov-performance-empty",role:"status"},xN={class:"ov-performance-note"},eR={class:"ov-panel-card ov-performance","aria-labelledby":"performance-heading"},tR={class:"ov-panel-head ov-performance-head"},nR={class:"ov-performance-window"},oR={key:0,class:"ov-performance-message ov-performance-warning",role:"alert"},sR={key:1,class:"ov-performance-empty",role:"status"},iR={key:2},rR={id:"performance-routes",role:"region","aria-label":"Routes"},aR={key:0,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Route latency metrics, scroll for more columns"},lR={class:"ov-metrics-table"},dR={scope:"row",class:"ov-metric-name"},uR={class:"num"},cR={class:"num"},pR={class:"num"},fR={class:"num"},mR={class:"num"},hR={key:1,class:"ov-performance-empty"},gR={id:"performance-processes",role:"region","aria-label":"Processes"},vR={key:0,class:"ov-performance-message ov-performance-warning",role:"status"},yR={key:1,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Process resource metrics, scroll for more columns"},bR={class:"ov-metrics-table"},wR={scope:"row",class:"ov-metric-name"},kR={key:0,class:"ov-metric-warn"},CR={class:"num"},SR={class:"num"},ER={class:"num"},NR={class:"num"},RR={class:"num"},TR={class:"num"},PR={class:"num"},DR={class:"num"},AR={id:"performance-stages",role:"region","aria-label":"Work stages"},IR={key:0,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Work stage metrics, scroll for more columns"},OR={class:"ov-metrics-table"},MR={scope:"row",class:"ov-metric-name"},VR={class:"num"},qR={class:"num"},LR={class:"num"},_R={key:1,class:"ov-performance-empty"};function pp(e,t){return a(),l("div",eS,[t[95]||(t[95]=Ce('
Admin \xA0/\xA0 Overview

Overview

Live \xB7 refreshes every 30s
',2)),e.loading?(a(),l("div",tS,"Loading overview\u2026")):f("v-if",!0),e.error?(a(),l("div",nS,[t[8]||(t[8]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),m(" "+d(e.error),1)])):f("v-if",!0),n("div",oS,[(a(),l(V,null,X([{id:"summary",label:"Summary"},{id:"performance",label:"Performance"},{id:"cache",label:"Cache"}],s=>n("button",{type:"button",role:"tab",key:s.id,"aria-selected":e.ovView===s.id?"true":"false",class:R({active:e.ovView===s.id}),onClick:i=>e.setOvView(s.id)},d(s.label),11,sS)),64))]),e.data?P((a(),l("div",iS,[e.data?.system?.memPercent>90||e.data?.system?.diskPercent>90?(a(),l("div",rS,[t[10]||(t[10]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),n("span",null,[t[9]||(t[9]=n("b",null,"Server needs attention.",-1)),m(" "+d(e.healthAlert()),1)])])):f("v-if",!0),f(" \u2500\u2500 Top KPI row \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",aS,[n("div",lS,[t[11]||(t[11]=n("div",{class:"ov-kpi-label"},"Live repositories",-1)),n("div",dS,d(e.humanNum((e.data?.repos?.statusBreakdown||[]).filter(s=>s._id!=="removed"&&s._id!=="expired").reduce((s,i)=>s+(i.count||0),0))),1),n("div",uS,d(e.humanNum(((e.data?.repos?.statusBreakdown||[]).find(s=>s._id==="removed")||{}).count||0))+" removed \xB7 "+d(e.humanNum(e.data?.repos?.total))+" total",1)]),n("div",cS,[t[12]||(t[12]=n("div",{class:"ov-kpi-label"},"CPU",-1)),n("div",{class:R(["ov-kpi-value",{"ov-val-warn":e.data?.system?.cpuPercent>=75}])},d(e.data?.system?.cpuPercent)+"%",3),n("div",{class:R(["ov-meter",{warn:e.data?.system?.cpuPercent>=75,crit:e.data?.system?.cpuPercent>90}])},[n("span",{style:Ae({width:Math.min(100,e.data?.system?.cpuPercent||0)+"%"})},null,4)],2),n("div",pS,[e.data?.system?.cpuPercent>=75?(a(),l("b",{key:0,class:R(["ov-flag",{critical:e.data?.system?.cpuPercent>90}])},d(e.data?.system?.cpuPercent>90?"Critical":"High")+" \xB7 ",3)):f("v-if",!0),m(d(e.data?.system?.cpuCount)+" cores \xB7 load "+d(e.data?.system?.loadAvg?.[0]?.toFixed(1)),1)])]),n("div",fS,[t[13]||(t[13]=n("div",{class:"ov-kpi-label"},"Memory",-1)),n("div",{class:R(["ov-kpi-value",{"ov-val-warn":e.data?.system?.memPercent>=75}])},d(e.data?.system?.memPercent)+"%",3),n("div",{class:R(["ov-meter",{warn:e.data?.system?.memPercent>=75,crit:e.data?.system?.memPercent>90}])},[n("span",{style:Ae({width:Math.min(100,e.data?.system?.memPercent||0)+"%"})},null,4)],2),n("div",mS,[e.data?.system?.memPercent>=75?(a(),l("b",{key:0,class:R(["ov-flag",{critical:e.data?.system?.memPercent>90}])},d(e.data?.system?.memPercent>90?"Critical":"High")+" \xB7 ",3)):f("v-if",!0),m(d(e.humanBytes(e.data?.system?.memUsed).replace(/\s*GB$/,""))+" / "+d(e.humanBytes(e.data?.system?.memTotal)),1)])]),n("div",hS,[t[14]||(t[14]=n("div",{class:"ov-kpi-label"},"Disk",-1)),n("div",{class:R(["ov-kpi-value",{"ov-val-warn":e.data?.system?.diskPercent>=75}])},d(e.data?.system?.diskPercent)+"%",3),n("div",{class:R(["ov-meter",{warn:e.data?.system?.diskPercent>=75,crit:e.data?.system?.diskPercent>90}])},[n("span",{style:Ae({width:Math.min(100,e.data?.system?.diskPercent||0)+"%"})},null,4)],2),n("div",gS,[e.data?.system?.diskPercent>=75?(a(),l("b",{key:0,class:R(["ov-flag",{critical:e.data?.system?.diskPercent>90}])},d(e.data?.system?.diskPercent>90?"Critical":"High")+" \xB7 ",3)):f("v-if",!0),m(d(e.humanBytes(e.data?.system?.diskUsed).replace(/\s*GB$/,""))+" / "+d(e.humanBytes(e.data?.system?.diskTotal)),1),e.data?.system?.diskMount&&e.data.system.diskMount!=="/"?(a(),l(V,{key:1},[m(" \xB7 "+d(e.data?.system?.diskMount),1)],64)):f("v-if",!0)])]),n("div",vS,[t[15]||(t[15]=n("div",{class:"ov-kpi-label"},"Uptime",-1)),n("div",yS,d(e.humanDuration(e.data?.system?.uptime)),1),n("div",bS,d(e.data?.system?.nodeVersion)+" \xB7 "+d(e.data?.system?.platform),1)])]),f(" \u2500\u2500 Daily activity highlights \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",wS,[n("div",kS,[t[16]||(t[16]=n("div",{class:"ov-daily-label"},"New repos today",-1)),n("div",CS,d(e.fmt?.number(e.data?.daily?.today?.repositories||0)),1),t[17]||(t[17]=n("div",{class:"ov-daily-sub"},"so far today",-1))]),n("div",SS,[t[18]||(t[18]=n("div",{class:"ov-daily-label"},"New users today",-1)),n("div",ES,d(e.fmt?.number(e.data?.daily?.today?.users||0)),1),n("div",NS,d(e.fmt?.number(e.data?.users?.total))+" total \xB7 +"+d(e.fmt?.number(e.usersGained()))+" in 30 days",1)]),n("div",RS,[t[19]||(t[19]=n("div",{class:"ov-daily-label"},"Page views today",-1)),n("div",TS,d(e.fmt?.number(e.data?.daily?.today?.pageViews||0)),1),t[20]||(t[20]=n("div",{class:"ov-daily-sub"},"so far today",-1))])]),f(" \u2500\u2500 Daily charts \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",{class:R(["ov-chart-row",{"is-three":e.usersTiny()}])},[n("div",PS,[n("div",DS,[t[23]||(t[23]=n("span",{class:"ov-chart-title"},"Daily page views \xB7 30d",-1)),n("span",AS,[n("span",IS,[t[21]||(t[21]=n("span",{class:"ov-dot-legend ov-dot-accent"},null,-1)),m("views/day \xB7 peak "+d(e.fmt?.number(e.historyMax("dailyPageViews"))),1)]),e.historyHasMissing()?(a(),l("span",OS,[...t[22]||(t[22]=[n("span",{class:"ov-swatch-missing","aria-hidden":"true"},null,-1),m("No data",-1)])])):f("v-if",!0)])]),e.data?.history?.length?(a(),l("div",MS,[n("div",VS,[n("span",null,d(e.fmt?.number(e.axisMax("dailyPageViews"))),1),n("span",null,d(e.fmt?.number(e.axisMax("dailyPageViews")/2)),1),t[24]||(t[24]=n("span",null,"0",-1))]),(a(!0),l(V,null,X(e.data?.history,(s,i)=>(a(),l("div",{class:R(["ov-spark-col has-tip",{"is-missing":s?._empty}]),key:i,"data-tip":s?._empty?e.historyLabel(s)+": no data":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyPageViews)+(s?.dailyPageViews===1?" view":" views"),"aria-label":s?._empty?e.historyLabel(s)+": no data":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyPageViews)+(s?.dailyPageViews===1?" view":" views")},[n("span",{class:"ov-spark-fill",style:Ae({height:e.historyBarH(s,"dailyPageViews")+"px"})},null,4)],10,qS))),128))])):f("v-if",!0),e.data?.history?.length?(a(),l("div",LS,[n("span",null,d(e.historyLabel(e.data?.history[0])),1),n("span",null,d(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),n("span",null,d(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):f("v-if",!0)]),n("div",_S,[n("div",$S,[t[27]||(t[27]=n("span",{class:"ov-chart-title"},"New repos \xB7 30d",-1)),n("span",FS,[n("span",US,[t[25]||(t[25]=n("span",{class:"ov-dot-legend ov-dot-ok-fill"},null,-1)),m("repos/day \xB7 peak "+d(e.fmt?.number(e.historyMax("dailyRepositories"))),1)]),e.historyHasMissing()?(a(),l("span",BS,[...t[26]||(t[26]=[n("span",{class:"ov-swatch-missing","aria-hidden":"true"},null,-1),m("No data",-1)])])):f("v-if",!0)])]),e.data?.history?.length?(a(),l("div",zS,[n("div",HS,[n("span",null,d(e.fmt?.number(e.axisMax("dailyRepositories"))),1),n("span",null,d(e.fmt?.number(e.axisMax("dailyRepositories")/2)),1),t[28]||(t[28]=n("span",null,"0",-1))]),(a(!0),l(V,null,X(e.data?.history,(s,i)=>(a(),l("div",{class:R(["ov-spark-col has-tip",{"is-missing":s?._empty}]),key:i,"data-tip":s?._empty?e.historyLabel(s)+": no data":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyRepositories)+(s?.dailyRepositories===1?" repo":" repos"),"aria-label":s?._empty?e.historyLabel(s)+": no data":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyRepositories)+(s?.dailyRepositories===1?" repo":" repos")},[n("span",{class:"ov-spark-fill ov-spark-fill-alt",style:Ae({height:e.historyBarH(s,"dailyRepositories")+"px"})},null,4)],10,jS))),128))])):f("v-if",!0),e.data?.history?.length?(a(),l("div",GS,[n("span",null,d(e.historyLabel(e.data?.history[0])),1),n("span",null,d(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),n("span",null,d(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):f("v-if",!0)]),e.usersTiny()?f("v-if",!0):(a(),l("div",WS,[n("div",KS,[t[31]||(t[31]=n("span",{class:"ov-chart-title"},"Users \xB7 30d",-1)),n("span",YS,[n("span",JS,[t[29]||(t[29]=n("span",{class:"ov-dot-legend ov-dot-user-fill"},null,-1)),m("total users \xB7 "+d(e.fmt?.number(e.historyRange("nbUsers").max))+" now \xB7 +"+d(e.fmt?.number(Math.max(0,e.historyRange("nbUsers").max-e.usersFirst())))+" in 30 days",1)]),e.historyHasMissing()?(a(),l("span",XS,[...t[30]||(t[30]=[n("span",{class:"ov-swatch-missing","aria-hidden":"true"},null,-1),m("No data",-1)])])):f("v-if",!0)])]),e.data?.history?.length?(a(),l("div",QS,[n("div",ZS,[n("span",null,d(e.fmt?.number(e.userAxis().hi)),1),n("span",null,d(e.fmt?.number((e.userAxis().hi+e.userAxis().lo)/2)),1),n("span",null,d(e.fmt?.number(e.userAxis().lo)),1)]),(a(),l("svg",{class:"ov-step-svg",viewBox:"0 0 "+e.data.history.length+" 140",preserveAspectRatio:"none",role:"img","aria-label":"Total users over 30 days, from "+e.fmt?.number(e.usersFirst())+" to "+e.fmt?.number(e.historyRange("nbUsers").max)},[e.userAxis().lo===0?(a(),l("path",{key:0,class:"ov-step-area",d:e.userStepPath(!0)},null,8,eE)):f("v-if",!0),n("path",{class:"ov-step-line",d:e.userStepPath(!1),"vector-effect":"non-scaling-stroke"},null,8,tE)],8,xS)),e.firstDataIndex()>0?(a(),l("div",{key:0,class:"ov-step-missing",style:Ae({width:e.firstDataIndex()/e.data.history.length*100+"%"})},null,4)):f("v-if",!0)])):f("v-if",!0),e.data?.history?.length?(a(),l("div",nE,[n("span",null,d(e.historyLabel(e.data?.history[0])),1),n("span",null,d(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),n("span",null,d(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):f("v-if",!0)])),n("div",oE,[n("div",sE,[t[34]||(t[34]=n("span",{class:"ov-chart-title"},"New users \xB7 30d",-1)),n("span",iE,[n("span",rE,[t[32]||(t[32]=n("span",{class:"ov-dot-legend ov-dot-new-user-fill"},null,-1)),m("users/day \xB7 peak "+d(e.fmt?.number(e.historyMax("dailyUsers"))),1)]),e.historyHasMissing()?(a(),l("span",aE,[...t[33]||(t[33]=[n("span",{class:"ov-swatch-missing","aria-hidden":"true"},null,-1),m("No data",-1)])])):f("v-if",!0)])]),e.data?.history?.length?(a(),l("div",lE,[n("div",dE,[n("span",null,d(e.fmt?.number(e.axisMax("dailyUsers"))),1),n("span",null,d(e.fmt?.number(e.axisMax("dailyUsers")/2)),1),t[35]||(t[35]=n("span",null,"0",-1))]),(a(!0),l(V,null,X(e.data?.history,(s,i)=>(a(),l("div",{class:R(["ov-spark-col has-tip",{"is-missing":s?._empty}]),key:i,"data-tip":s?._empty?e.historyLabel(s)+": no data":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyUsers)+(s?.dailyUsers===1?" user":" users"),"aria-label":s?._empty?e.historyLabel(s)+": no data":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyUsers)+(s?.dailyUsers===1?" user":" users")},[n("span",{class:"ov-spark-fill ov-spark-fill-new-user",style:Ae({height:e.historyBarH(s,"dailyUsers")+"px"})},null,4)],10,uE))),128))])):f("v-if",!0),e.data?.history?.length?(a(),l("div",cE,[n("span",null,d(e.historyLabel(e.data?.history[0])),1),n("span",null,d(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),n("span",null,d(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):f("v-if",!0)])],2),f(" \u2500\u2500 Three-panel row: Status / Errors / Queues \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",pE,[f(" Repo status breakdown "),n("div",fE,[n("div",mE,[t[36]||(t[36]=n("span",{class:"ov-panel-title"},"Repo status",-1)),n("span",hE,d(e.fmt?.number(e.data?.repos?.total))+" total",1)]),n("div",gE,[e.barPct("ready")>0?(a(),l("span",{key:0,class:"ov-bar-seg ov-bar-ready",title:"Ready",style:Ae({width:e.barPct("ready")+"%"})},null,4)):f("v-if",!0),e.barPct("preparing")>0?(a(),l("span",{key:1,class:"ov-bar-seg ov-bar-preparing",title:"Preparing",style:Ae({width:e.barPct("preparing")+"%"})},null,4)):f("v-if",!0),e.barPct("error")>0?(a(),l("span",{key:2,class:"ov-bar-seg ov-bar-error",title:"Error",style:Ae({width:e.barPct("error")+"%"})},null,4)):f("v-if",!0),e.barPct("expired")>0?(a(),l("span",{key:3,class:"ov-bar-seg ov-bar-expired",title:"Expiring / expired",style:Ae({width:e.barPct("expired")+"%"})},null,4)):f("v-if",!0),e.barPct("removed")>0?(a(),l("span",{key:4,class:"ov-bar-seg ov-bar-removed",title:"Removing / removed",style:Ae({width:e.barPct("removed")+"%"})},null,4)):f("v-if",!0)]),n("div",vE,[n("a",yE,[t[37]||(t[37]=n("span",{class:"ov-swatch ov-bar-ready"},null,-1)),t[38]||(t[38]=m(" Ready ",-1)),n("span",bE,d(e.fmt?.number(e.statusCount("ready"))),1)]),n("a",wE,[t[39]||(t[39]=n("span",{class:"ov-swatch ov-bar-preparing"},null,-1)),t[40]||(t[40]=m(" Preparing ",-1)),n("span",kE,d(e.fmt?.number(e.statusCount("preparing")+e.statusCount("download"))),1)]),n("a",CE,[t[41]||(t[41]=n("span",{class:"ov-swatch ov-bar-error"},null,-1)),t[42]||(t[42]=m(" Error ",-1)),n("span",SE,d(e.fmt?.number(e.statusCount("error"))),1)]),n("a",EE,[t[43]||(t[43]=n("span",{class:"ov-swatch ov-bar-expired"},null,-1)),t[44]||(t[44]=m(" Expiring / expired ",-1)),n("span",NE,d(e.fmt?.number(e.statusCount("expired")+e.statusCount("expiring"))),1)]),n("a",RE,[t[45]||(t[45]=n("span",{class:"ov-swatch ov-bar-removed"},null,-1)),t[46]||(t[46]=m(" Removing / removed ",-1)),n("span",TE,d(e.fmt?.number(e.statusCount("removed")+e.statusCount("removing"))),1)])])]),f(" Error breakdown "),n("div",PE,[n("div",DE,[t[47]||(t[47]=n("span",{class:"ov-panel-title"},"Errors \xB7 24h",-1)),n("span",AE,d(e.fmt?.number(e.realErrors()))+" "+d(e.realErrors()===1?"error":"errors"),1)]),n("div",IE,[n("div",OE,[t[48]||(t[48]=n("span",{class:"ov-ebar-label"},"Error",-1)),n("span",ME,[n("span",{class:"ov-ebar-fill ov-ebar-error",style:Ae({width:e.errPct("error")+"%"})},null,4)]),n("span",VE,d(e.data?.errors?.severity?.error),1)]),n("div",qE,[t[49]||(t[49]=n("span",{class:"ov-ebar-label"},"Warning",-1)),n("span",LE,[n("span",{class:"ov-ebar-fill ov-ebar-warn",style:Ae({width:e.errPct("warn")+"%"})},null,4)]),n("span",_E,d(e.data?.errors?.severity?.warn),1)]),e.errorHours().length?(a(),l("div",$E,[n("div",FE,[t[52]||(t[52]=n("span",{class:"ov-ehours-key"},[n("span",{class:"ov-ehours-swatch is-error","aria-hidden":"true"}),m("Error")],-1)),t[53]||(t[53]=n("span",{class:"ov-ehours-key"},[n("span",{class:"ov-ehours-swatch is-warn","aria-hidden":"true"}),m("Warning")],-1)),n("span",UE,[t[50]||(t[50]=m("Per hour",-1)),t[51]||(t[51]=n("span",{class:"seg-sep","aria-hidden":"true"},"\xB7",-1)),m("peak "+d(e.fmt?.number(e.errorHoursPeak())),1)])]),n("div",BE,[(a(!0),l(V,null,X(e.errorHours(),s=>(a(),l("span",{key:s.key,class:R({"is-bad":s.bad,"is-zero":s.zero}),title:s.title},[s.zero?(a(),l("i",HE)):(a(),l(V,{key:1},[s.errPct?(a(),l("i",{key:0,class:"ov-ehours-e",style:Ae({height:s.errPct+"%"})},null,4)):f("v-if",!0),s.warnPct?(a(),l("i",{key:1,class:"ov-ehours-w",style:Ae({height:s.warnPct+"%"})},null,4)):f("v-if",!0)],64))],10,zE))),128))]),t[54]||(t[54]=n("div",{class:"ov-ehours-x"},[n("span",null,"24h ago"),n("span",null,"now")],-1))])):f("v-if",!0),n("p",jE,"Info "+d(e.fmt?.number(e.data?.errors?.severity?.info||0))+" \xB7 logged, not counted as errors",1)]),e.data?.repos?.recentErrors24h?(a(),l("div",GE,[n("a",WE,d(e.data?.repos?.recentErrors24h)+" repos in error state \u2192",1)])):f("v-if",!0)]),f(" Top routes / queues "),n("div",KE,[t[59]||(t[59]=n("div",{class:"ov-panel-head"},[n("span",{class:"ov-panel-title"},"Queues"),n("span",{class:"ov-panel-meta"},"by state")],-1)),n("div",YE,[t[58]||(t[58]=Ce('
QueueActiveWaitFailed
',1)),n("a",JE,[t[55]||(t[55]=n("span",{class:"ov-route-name"},"Download",-1)),n("span",XE,d(e.data?.queues?.download?.active),1),n("span",QE,d(e.data?.queues?.download?.waiting),1),n("span",{class:R(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.download?.failed>0}])},d(e.data?.queues?.download?.failed),3)]),n("a",ZE,[t[56]||(t[56]=n("span",{class:"ov-route-name"},"Remove",-1)),n("span",xE,d(e.data?.queues?.remove?.active),1),n("span",eN,d(e.data?.queues?.remove?.waiting),1),n("span",{class:R(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.remove?.failed>0}])},d(e.data?.queues?.remove?.failed),3)]),n("a",tN,[t[57]||(t[57]=n("span",{class:"ov-route-name"},"Cache cleanup",-1)),n("span",nN,d(e.data?.queues?.cache?.active),1),n("span",oN,d(e.data?.queues?.cache?.waiting),1),n("span",{class:R(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.cache?.failed>0}])},d(e.data?.queues?.cache?.failed),3)])])])]),f(" \u2500\u2500 Services bar \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",sN,[n("div",iN,[t[60]||(t[60]=n("span",{class:"ov-panel-title"},"Services",-1)),n("span",rN,"5 services \xB7 "+d(e.realErrors()>0?"1 needs attention":"all healthy"),1)]),n("div",aN,[n("div",lN,[t[62]||(t[62]=n("span",{class:"ov-svc-dot ov-dot-ok"},null,-1)),n("div",dN,[t[61]||(t[61]=n("span",{class:"ov-svc-name"},"web",-1)),n("span",uN,d(e.data?.system?.nodeVersion)+" \xB7 up "+d(e.humanDuration(e.data?.system?.uptime)),1)])]),n("div",cN,[n("span",{class:R(["ov-svc-dot",e.queueTotal(e.data?.queues?.download)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),n("div",pN,[t[63]||(t[63]=n("span",{class:"ov-svc-name"},"download",-1)),e.queueTotal(e.data?.queues?.download)?(a(),l("span",fN,d(e.queueTotal(e.data?.queues?.download))+" "+d(e.queueTotal(e.data?.queues?.download)===1?"job":"jobs"),1)):f("v-if",!0),e.queueTotal(e.data?.queues?.download)?f("v-if",!0):(a(),l("span",mN,"idle"))])]),n("div",hN,[n("span",{class:R(["ov-svc-dot",e.queueTotal(e.data?.queues?.cache)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),n("div",gN,[t[64]||(t[64]=n("span",{class:"ov-svc-name"},"cache",-1)),e.queueTotal(e.data?.queues?.cache)?(a(),l("span",vN,d(e.queueTotal(e.data?.queues?.cache))+" "+d(e.queueTotal(e.data?.queues?.cache)===1?"job":"jobs"),1)):f("v-if",!0),e.queueTotal(e.data?.queues?.cache)?f("v-if",!0):(a(),l("span",yN,"idle"))])]),n("div",bN,[n("span",{class:R(["ov-svc-dot",e.queueTotal(e.data?.queues?.remove)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),n("div",wN,[t[65]||(t[65]=n("span",{class:"ov-svc-name"},"remove",-1)),e.queueTotal(e.data?.queues?.remove)?(a(),l("span",kN,d(e.queueTotal(e.data?.queues?.remove))+" "+d(e.queueTotal(e.data?.queues?.remove)===1?"job":"jobs"),1)):f("v-if",!0),e.queueTotal(e.data?.queues?.remove)?f("v-if",!0):(a(),l("span",CN,"idle"))])]),n("div",SN,[n("span",{class:R(["ov-svc-dot",e.realErrors()>0?"ov-dot-warn":"ov-dot-ok"]),title:e.realErrors()>0?"Errors in the last 24 hours":"No errors in the last 24 hours"},null,10,EN),n("div",NN,[t[66]||(t[66]=n("span",{class:"ov-svc-name"},"errors",-1)),n("span",RN,d(e.fmt?.number(e.realErrors()))+" / 24h",1)])])])])],512)),[[Q,e.ovView==="summary"]]):f("v-if",!0),P(n("section",TN,[n("div",PN,[t[71]||(t[71]=n("div",null,[n("h2",{class:"ov-panel-title",id:"cache-heading"},"Cache"),n("p",{class:"ov-performance-note"},"Shared storage, repeated reads and anonymization work")],-1)),n("div",DN,[t[69]||(t[69]=n("label",{for:"cache-window"},"Time range",-1)),P(n("select",{id:"cache-window",class:"form-control form-control-sm","onUpdate:modelValue":t[0]||(t[0]=s=>e.cacheMinutes=s),onChange:t[1]||(t[1]=s=>e.loadCache())},[...t[67]||(t[67]=[n("option",{value:15},"Last 15 minutes",-1),n("option",{value:60},"Last hour",-1),n("option",{value:1440},"Last 24 hours",-1),n("option",{value:10080},"Last 7 days",-1)])],544),[[Nt,e.cacheMinutes,void 0,{number:!0}]]),t[70]||(t[70]=n("label",{for:"cache-traffic"},"Traffic",-1)),P(n("select",{id:"cache-traffic",class:"form-control form-control-sm","onUpdate:modelValue":t[2]||(t[2]=s=>e.cacheTraffic=s)},[...t[68]||(t[68]=[Ce('',6)])],512),[[Nt,e.cacheTraffic]])])]),e.cacheError?(a(),l("div",AN,[n("span",null,d(e.cacheError),1),n("button",{type:"button",class:"btn btn-sm",onClick:t[3]||(t[3]=s=>e.loadCache())},"Retry")])):f("v-if",!0),!e.cacheReport&&!e.cacheError?(a(),l("p",IN,"Loading cache monitoring\u2026")):f("v-if",!0),e.cacheReport?.available?(a(),l(V,{key:2},[e.cacheReport.enabled?f("v-if",!0):(a(),l("p",ON,"Shared blob storage is disabled. Inspection and legacy-cache activity are still measured.")),e.cacheReport.filesystemSupported?f("v-if",!0):(a(),l("p",MN,"Shared blobs require a local filesystem. The configured storage continues to use its existing cache.")),e.cacheReport.dropped?(a(),l("p",VN,d(e.cacheReport.dropped)+" telemetry events were dropped. Totals may be incomplete.",1)):f("v-if",!0),e.cacheReport.source?(a(),l("div",qN,[n("table",LN,[t[72]||(t[72]=n("caption",{class:"sr-only"},"Current shared-cache storage and byte budgets",-1)),t[73]||(t[73]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Pool"),n("th",{scope:"col",class:"num"},"Allocated / budget"),n("th",{scope:"col",class:"num"},"Reserved for fills"),n("th",{scope:"col",class:"num"},"Original bytes"),n("th",{scope:"col",class:"num"},"Blobs"),n("th",{scope:"col",class:"num"},"Active readers")])],-1)),n("tbody",null,[(a(!0),l(V,null,X([{name:"Source blobs",data:e.cacheReport.source},{name:"Transformed output",data:e.cacheReport.results}],s=>P((a(),l("tr",{key:s.name},[n("th",_N,d(s.name),1),n("td",{class:R(["num budget-cell",{"is-over":s.data?.budgetBytes&&s.data?.allocatedBytes>s.data?.budgetBytes}]),title:s.data?.budgetBytes?Math.round(100*(s.data?.allocatedBytes||0)/s.data.budgetBytes)+"% of budget":null},[s.data?.budgetBytes&&s.data?.allocatedBytes>s.data?.budgetBytes?(a(),l("span",FN,"Over budget \xB7 ")):f("v-if",!0),m(d(e.humanBytes(s.data?.allocatedBytes))+" / "+d(e.humanBytes(s.data?.budgetBytes)),1),s.data?.budgetBytes?(a(),l("span",UN,[n("i",{style:Ae({width:Math.min(100,Math.round(100*(s.data?.allocatedBytes||0)/s.data.budgetBytes))+"%"})},null,4)])):f("v-if",!0)],10,$N),n("td",BN,d(e.humanBytes(s.data?.reservedBytes)),1),n("td",zN,d(e.humanBytes(s.data?.originalBytes)),1),n("td",HN,d(e.fmt?.number(s.data?.blobs)),1),n("td",jN,d(e.fmt?.number(s.data?.activeReaders)),1)])),[[Q,s.data]])),128))])])])):f("v-if",!0),e.cacheReport.source?(a(),l("dl",GN,[n("div",null,[t[74]||(t[74]=n("dt",null,"Source request hit rate",-1)),n("dd",null,d(e.cacheRate("source","count")),1)]),n("div",null,[t[75]||(t[75]=n("dt",null,"Source byte hit rate",-1)),n("dd",null,d(e.cacheRate("source","bytes")),1)]),n("div",null,[t[76]||(t[76]=n("dt",null,"Decision hit rate",-1)),n("dd",null,d(e.cacheRate("decision","count")),1)])])):f("v-if",!0),t[79]||(t[79]=n("p",{class:"ov-performance-note"},"Reuse counts measure consecutive reads of the same blob within each interval. Codec timings are elapsed stream time, not CPU time; eviction times measure how long a blob was idle. Known monitors are identified by request metadata; other automation may remain in file reads.",-1)),e.cacheRows().length?(a(),l("div",WN,[n("table",KN,[t[77]||(t[77]=n("caption",{class:"sr-only"},"Cache events for the selected time range and traffic",-1)),t[78]||(t[78]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Event"),n("th",{scope:"col"},"Traffic"),n("th",{scope:"col",class:"num"},"Count"),n("th",{scope:"col",class:"num"},"Bytes"),n("th",{scope:"col",class:"num"},"Mean measured time"),n("th",{scope:"col",class:"num"},"p95 bound")])],-1)),n("tbody",null,[(a(!0),l(V,null,X(e.cacheRows(),s=>(a(),l("tr",{key:s.name+":"+s.traffic},[n("th",YN,d(e.cacheEventName(s.name)),1),n("td",JN,d(s.traffic),1),n("td",XN,d(e.fmt?.number(s.count)),1),n("td",QN,d(e.humanBytes(s.bytes)),1),n("td",{class:R(["num",{"ov-muted":!s.ms}])},d(s.ms?e.fmt.duration(s.ms/s.count):"Not timed"),3),n("td",{class:R(["num",{"ov-muted":!s.ms}])},d(e.cacheP95(s)),3)]))),128))])])])):(a(),l("p",ZN,"No cache events in this time range for the selected traffic.")),n("p",xN,"Updated "+d(e.sampleAge(e.cacheReport))+" seconds ago. Minute history is retained for 48 hours; hourly history for 30 days.",1)],64)):f("v-if",!0)],512),[[Q,e.ovView==="cache"]]),P(n("section",eR,[n("div",tR,[t[84]||(t[84]=n("div",null,[n("h2",{class:"ov-panel-title",id:"performance-heading"},"Request performance"),n("p",{class:"ov-performance-note"},"Request latency and process health")],-1)),n("div",nR,[e.performance?.available?(a(),l(V,{key:0},[t[81]||(t[81]=n("label",{for:"performance-view"},"Show",-1)),P(n("select",{id:"performance-view",class:"form-control form-control-sm","onUpdate:modelValue":t[4]||(t[4]=s=>e.performanceTab=s),"aria-label":"Performance metrics"},[...t[80]||(t[80]=[n("option",{value:"routes"},"Routes",-1),n("option",{value:"processes"},"Processes",-1),n("option",{value:"stages"},"Work stages",-1)])],512),[[Nt,e.performanceTab]])],64)):f("v-if",!0),t[83]||(t[83]=n("label",{for:"performance-window"},"Time range",-1)),P(n("select",{id:"performance-window",class:"form-control form-control-sm","onUpdate:modelValue":t[5]||(t[5]=s=>e.performanceMinutes=s),onChange:t[6]||(t[6]=s=>e.loadPerformance()),"aria-label":"Performance time range"},[...t[82]||(t[82]=[n("option",{value:15},"Last 15 minutes",-1),n("option",{value:60},"Last hour",-1)])],544),[[Nt,e.performanceMinutes,void 0,{number:!0}]])])]),e.performanceError?(a(),l("div",oR,[t[85]||(t[85]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),n("span",null,d(e.performanceError),1),n("button",{type:"button",class:"btn btn-sm",onClick:t[7]||(t[7]=s=>e.loadPerformance())},"Retry")])):f("v-if",!0),!e.performance&&!e.performanceError?(a(),l("p",sR,"Loading performance monitoring\u2026")):f("v-if",!0),e.performance?.available?(a(),l("div",iR,[P(n("div",rR,[e.performance.routes?.length?(a(),l("div",aR,[n("table",lR,[t[86]||(t[86]=n("caption",{class:"sr-only"},"Route latency for the selected time range",-1)),t[87]||(t[87]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Route"),n("th",{scope:"col",class:"num"},"Requests"),n("th",{scope:"col",class:"num"},"Average"),n("th",{scope:"col",class:"num"},"First byte p95"),n("th",{scope:"col",class:"num"},"p95"),n("th",{scope:"col",class:"num"},"p99"),n("th",{scope:"col",class:"num"},"Interrupted"),n("th",{scope:"col",class:"num"},"5xx"),n("th",{scope:"col",class:"num"},"Slow")])],-1)),n("tbody",null,[(a(!0),l(V,null,X(e.performance.routes,s=>(a(),l("tr",{key:s.service+s.method+s.route},[n("th",dR,[n("span",null,d(s.route),1),n("small",null,d(s.service)+" \xB7 "+d(s.method),1)]),n("td",uR,d(e.fmt.number(s.count)),1),n("td",cR,d(e.formatMs(s.avgMs)),1),n("td",pR,d(e.firstByteBound(s)),1),n("td",fR,d(e.latencyBound(s,"p95UpperMs")),1),n("td",mR,d(e.latencyBound(s,"p99UpperMs")),1),n("td",{class:R(["num",{"ov-metric-warn":s.aborted>0}])},d(e.fmt.number(s.aborted)),3),n("td",{class:R(["num",{"ov-metric-bad":s.errors>0}])},d(e.fmt.number(s.errors)),3),n("td",{class:R(["num",{"ov-metric-warn":s.slow>0}])},d(e.fmt.number(s.slow)),3)]))),128))])])])):(a(),l("p",hR,"No recorded requests in this time range yet."))],512),[[Q,e.performanceTab==="routes"]]),P(n("div",gR,[t[91]||(t[91]=n("p",{class:"ov-performance-note"},"API and streamer processes \xB7 latest sample per instance",-1)),e.performance.instances?.length?(a(),l("div",yR,[n("table",bR,[t[89]||(t[89]=n("caption",{class:"sr-only"},"API and streamer process resource usage",-1)),t[90]||(t[90]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Process"),n("th",{scope:"col",class:"num"},"RSS / limit"),n("th",{scope:"col",class:"num"},"CPU"),n("th",{scope:"col",class:"num"},"Event loop p95"),n("th",{scope:"col",class:"num"},"Active requests"),n("th",{scope:"col",class:"num"},"Sockets / CLOSE_WAIT"),n("th",{scope:"col",class:"num"},"Workers / waiting"),n("th",{scope:"col",class:"num"},"Sample age"),n("th",{scope:"col",class:"num"},"Dropped batches / metrics")])],-1)),n("tbody",null,[(a(!0),l(V,null,X(e.performance.instances,s=>(a(),l("tr",{key:s.instance,class:R({"ov-metric-warning-row":e.performanceWarning(s)})},[n("th",wR,[n("span",null,d(s.instance),1),e.performanceWarning(s)?(a(),l("small",kR,[...t[88]||(t[88]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1),m(" Needs attention",-1)])])):f("v-if",!0)]),n("td",CR,[m(d(e.humanBytes(s.memory.rss))+" / "+d(e.humanBytes(s.memoryLimitBytes)),1),n("small",null,"Peak "+d(e.humanBytes(e.peakRss(s))),1)]),n("td",SR,d(s.cpuPercent==null?"Unavailable":s.cpuPercent.toFixed(1)+"%"),1),n("td",ER,d(s.eventLoop?.p95Ms==null?"Not applicable":e.fmt.duration(s.eventLoop.p95Ms)),1),n("td",NR,d(s.activeRequests),1),n("td",RR,d(s.sockets?.descriptors??"Unavailable")+" / "+d(s.sockets?.closeWait??"Unavailable"),1),n("td",TR,d(s.workers?.running??0)+" / "+d(s.workers?.waiting??0),1),n("td",PR,d(e.sampleAge(s))+" s",1),n("td",DR,d(s.droppedBatches)+" / "+d(s.droppedMetrics),1)],2))),128))])])])):(a(),l("div",vR,"No recent process samples. Monitoring coverage is incomplete."))],512),[[Q,e.performanceTab==="processes"]]),P(n("div",AR,[e.performance.stages?.some(s=>s.metric!=="first_byte")?(a(),l("div",IR,[n("table",OR,[t[92]||(t[92]=n("caption",{class:"sr-only"},"Work stages and cache results",-1)),t[93]||(t[93]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Work stage"),n("th",{scope:"col",class:"num"},"Samples"),n("th",{scope:"col",class:"num"},"Average"),n("th",{scope:"col",class:"num"},"p95")])],-1)),n("tbody",null,[(a(!0),l(V,null,X(e.performance.stages.filter(s=>s.metric!=="first_byte"),s=>(a(),l("tr",{key:s.service+s.metric},[n("th",MR,[n("span",null,d(s.metric),1),n("small",null,d(s.service),1)]),n("td",VR,d(e.fmt.number(s.count)),1),n("td",qR,d(e.formatMs(s.avgMs)),1),n("td",LR,d(e.latencyBound(s,"p95UpperMs")),1)]))),128))])])])):(a(),l("p",_R,"No recorded work stages or cache results in this time range yet."))],512),[[Q,e.performanceTab==="stages"]]),t[94]||(t[94]=n("details",{class:"ov-performance-help"},[n("summary",null,"How to read these metrics"),n("p",null,"Latency includes upstream waits and response transfer. Percentiles show histogram bucket upper bounds, not exact timings. Process rows marked \u201CNeeds attention\u201D have stale samples, dropped monitoring data, CLOSE_WAIT sockets, high event loop delay, or high memory usage.")],-1))])):f("v-if",!0)],512),[[Q,e.ovView==="performance"]])])}var $R={class:"container paper-page admin-page"},FR={class:"q-header"},UR={class:"q-header-actions"},BR={class:"q-cards"},zR=["aria-pressed","onKeydown","onClick"],HR={class:"q-card-head"},jR=["title"],GR=["textContent"],WR=["textContent"],KR={class:"q-card-sub"},YR={class:"q-card-failed"},JR={key:0,class:"q-card-bar"},XR={key:0,class:"q-detail"},QR={class:"q-throughput"},ZR={class:"q-range-btns"},xR={class:"q-section-label"},eT={key:0,class:"q-section-right"},tT={class:"q-chart-wrap"},nT={key:0,class:"q-chart-empty"},oT={class:"q-stats-panel"},sT={class:"q-section-label"},iT={class:"q-stats-grid"},rT={class:"q-stat"},aT=["textContent"],lT={class:"q-stat"},dT=["textContent"],uT={class:"q-stat"},cT=["textContent"],pT={class:"q-stat"},fT=["textContent"],mT={class:"q-stat"},hT=["textContent"],gT={class:"q-stat"},vT=["textContent"],yT={class:"q-stats-actions"},bT=["disabled"],wT={class:"q-danger-group"},kT={class:"q-jobs"},CT={class:"q-jobs-header"},ST={class:"q-section-label"},ET={class:"seg-filter",role:"radiogroup","aria-label":"Filter jobs by state"},NT=["aria-checked"],RT={class:"count"},TT=["aria-checked"],PT={class:"count"},DT=["aria-checked"],AT={class:"count"},IT=["aria-checked"],OT={class:"count"},MT=["aria-checked"],VT={class:"count"},qT=["aria-checked"],LT={class:"count"},_T={class:"q-search-row"},$T={type:"search",class:"form-control",placeholder:"Search by job/repo id\u2026",autocomplete:"off"},FT={class:"q-auto-refresh"},UT={type:"checkbox"},BT={key:0,class:"q-table"},zT=["onClick"],HT={class:"q-cell-state"},jT=["textContent"],GT=["textContent"],WT=["title"],KT=["textContent","href"],YT=["title","textContent"],JT=["textContent"],XT=["textContent"],QT={class:"q-cell-progress"},ZT=["aria-label"],xT=["textContent"],eP={class:"q-cell-actions"},tP=["onClick"],nP=["onClick"],oP={key:0,class:"q-detail-row"},sP={colspan:"7"},iP={class:"q-job-detail"},rP={class:"q-job-detail-grid"},aP={class:"q-job-detail-item"},lP={class:"q-job-detail-value"},dP=["textContent","href"],uP={class:"q-job-detail-item"},cP={class:"q-job-detail-value"},pP=["textContent"],fP={key:0,class:"q-job-detail-item"},mP=["textContent"],hP={key:1,class:"q-job-detail-item"},gP=["textContent"],vP={key:2,class:"q-job-detail-item"},yP={class:"q-job-detail-value"},bP={key:3,class:"q-job-detail-item"},wP=["textContent"],kP={key:4,class:"q-job-detail-item"},CP=["textContent"],SP={key:5,class:"q-job-detail-item"},EP=["textContent"],NP={key:6,class:"q-job-detail-item"},RP=["textContent"],TP={key:7,class:"q-job-detail-item"},PP=["textContent"],DP={key:0,class:"q-job-detail-error"},AP=["textContent"],IP={key:1},OP=["textContent"],MP={class:"q-job-detail-actions"},VP=["onClick"],qP=["onClick"],LP=["href"],_P={key:1,class:"paper-table-empty",style:{border:"1px solid var(--border-color)","border-radius":"10px",background:"var(--paper-card)"}},$P={key:0},FP={key:1};function fp(e,t){let s=Pe("field");return a(),l("div",$R,[t[71]||(t[71]=n("div",{class:"paper-crumbs"},[m("Admin \xA0/\xA0 "),n("span",{class:"here"},"Queues")],-1)),n("div",FR,[t[18]||(t[18]=n("h1",{class:"paper-page-title"},"Queues",-1)),n("div",UR,[n("button",{class:"btn btn-sm",onClick:t[0]||(t[0]=i=>e.pauseAll())},"Pause all queues")])]),t[72]||(t[72]=Ce('',1)),f(" Queue overview cards "),n("div",BR,[(a(!0),l(V,null,X(e.queueList,(i,o)=>(a(),l("div",{class:R(["q-card",{selected:e.selectedQueue==i?.key,paused:i?.paused}]),role:"button",tabindex:"0","aria-pressed":e.selectedQueue===i.key,onKeydown:[_t(de(r=>e.selectQueue(i.key),["prevent"]),["enter"]),_t(de(r=>e.selectQueue(i.key),["prevent"]),["space"])],onClick:r=>e.selectQueue(i.key)},[n("div",HR,[n("span",{class:R(["q-dot",{"q-dot-red":i?.paused||i?.counts?.failed>0,"q-dot-idle":!i?.counts?.active&&!i?.counts?.waiting}]),title:i?.paused?"Paused":i?.counts?.failed>0?i.counts.failed+" failed jobs":i?.counts?.active||i?.counts?.waiting?"Running":"Idle"},null,10,jR),n("span",{class:"q-card-name",textContent:d(i?.label)},null,8,GR)]),n("div",{class:"q-card-count",textContent:d((i?.counts?.waiting||0)+(i?.counts?.active||0)+(i?.counts?.delayed||0))},null,8,WR),n("div",KR,[n("span",null,[m("waiting \xB7 "+d(i?.counts?.active||0)+" active",1),i?.counts?.failed?(a(),l(V,{key:0},[t[19]||(t[19]=m(" \xB7 ",-1)),n("b",YR,d(i.counts.failed)+" failed",1)],64)):f("v-if",!0),i?.paused?(a(),l(V,{key:1},[t[20]||(t[20]=m(" \xB7 ",-1)),t[21]||(t[21]=n("b",{class:"q-card-failed"},"paused",-1))],64)):f("v-if",!0)]),i?.counts?.active?(a(),l("div",JR,[n("div",{class:"q-card-bar-fill",style:Ae({width:i?.counts?.active/((i?.counts?.waiting||0)+(i?.counts?.active||0)+(i?.counts?.delayed||0)||1)*100+"%"})},null,4)])):f("v-if",!0)])],42,zR))),256))]),f(" Detail: throughput chart + stats panel "),e.selectedStats?(a(),l("div",XR,[n("div",QR,[n("div",ZR,[n("button",{class:R(["btn btn-sm",{active:e.range=="1h"}]),onClick:t[1]||(t[1]=i=>e.setRange("1h"))},"1h",2),n("button",{class:R(["btn btn-sm",{active:e.range=="6h"}]),onClick:t[2]||(t[2]=i=>e.setRange("6h"))},"6h",2),n("button",{class:R(["btn btn-sm",{active:e.range=="24h"}]),onClick:t[3]||(t[3]=i=>e.setRange("24h"))},"24h",2),n("button",{class:R(["btn btn-sm",{active:e.range=="7d"}]),onClick:t[4]||(t[4]=i=>e.setRange("7d"))},"7d",2)]),n("div",xR,[m("Throughput \xB7 "+d(e.selectedQueue)+" ",1),(e.selectedStats?.completed24h||0)+(e.selectedStats?.failed24h||0)>0?(a(),l("span",eT,[t[23]||(t[23]=n("span",{class:"q-legend-completed"},"\u25CF",-1)),t[24]||(t[24]=m(" Completed ",-1)),t[25]||(t[25]=n("span",{class:"q-legend-failed"},"\u25CF",-1)),t[26]||(t[26]=m(" Failed ",-1)),(e.selectedStats?.completed24h||0)+(e.selectedStats?.failed24h||0)>0?(a(),l(V,{key:0},[t[22]||(t[22]=n("span",{class:"q-legend-exec","aria-hidden":"true"},null,-1)),m(" Avg time \xB7 "+d(e.range),1)],64)):f("v-if",!0)])):f("v-if",!0)]),n("div",tT,[t[28]||(t[28]=n("canvas",{id:"q-throughput-chart",height:"180"},null,-1)),(e.selectedStats?.completed24h||0)+(e.selectedStats?.failed24h||0)===0?(a(),l("div",nT,[...t[27]||(t[27]=[n("strong",null,"No jobs processed in this window",-1),n("span",null,"Completed and failed jobs will chart here.",-1)])])):f("v-if",!0),t[29]||(t[29]=n("div",{id:"q-chart-tooltip",class:"q-chart-tooltip",style:{display:"none"}},null,-1)),t[30]||(t[30]=n("div",{id:"q-chart-crosshair",class:"q-chart-crosshair",style:{display:"none"}},null,-1))])]),n("div",oT,[n("div",sT,"Stats \xB7 "+d(e.selectedQueue),1),n("div",iT,[n("div",rT,[t[31]||(t[31]=n("div",{class:"q-stat-label"},"Waiting",-1)),n("div",{class:"q-stat-value",textContent:d(e.selectedStats?.counts?.waiting||0)},null,8,aT)]),n("div",lT,[t[32]||(t[32]=n("div",{class:"q-stat-label"},"Active",-1)),n("div",{class:"q-stat-value",textContent:d(e.selectedStats?.counts?.active||0)},null,8,dT)]),n("div",uT,[t[33]||(t[33]=n("div",{class:"q-stat-label"},"Completed (24h)",-1)),n("div",{class:"q-stat-value",textContent:d(e.fmt?.number(e.selectedStats?.completed24h))},null,8,cT)]),n("div",pT,[t[34]||(t[34]=n("div",{class:"q-stat-label"},"Failed (24h)",-1)),n("div",{class:"q-stat-value",textContent:d(e.selectedStats?.failed24h||0)},null,8,fT)]),n("div",mT,[t[35]||(t[35]=n("div",{class:"q-stat-label"},"Delayed",-1)),n("div",{class:"q-stat-value",textContent:d(e.selectedStats?.counts?.delayed||0)},null,8,hT)]),n("div",gT,[t[36]||(t[36]=n("div",{class:"q-stat-label"},"Workers",-1)),n("div",{class:"q-stat-value",textContent:d(e.selectedStats?.workers||0)},null,8,vT)])]),n("div",yT,[n("button",{class:"btn btn-sm",onClick:t[5]||(t[5]=i=>e.togglePause())},d(e.selectedStats?.paused?"Resume "+e.selectedQueue:"Pause "+e.selectedQueue),1),n("button",{class:"btn btn-sm",onClick:t[6]||(t[6]=i=>e.retryFailed()),disabled:!e.selectedStats?.counts?.failed},"Retry failed",8,bT),n("span",wT,[n("button",{class:"btn btn-sm btn-outline-danger",onClick:t[7]||(t[7]=i=>e.drainSelected())},"Drain"),n("button",{class:"btn btn-sm btn-outline-danger",onClick:t[8]||(t[8]=i=>e.emptyQueue())},"Empty")])])])])):f("v-if",!0),e.actionError?(a(),l("div",{key:1,class:"q-toast-error",onClick:t[9]||(t[9]=i=>e.actionError=null)},[t[37]||(t[37]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1)),m(" "+d(e.actionError),1)])):f("v-if",!0),f(" Jobs table "),n("div",kT,[n("div",CT,[n("div",ST,"All jobs \xB7 "+d(e.selectedQueue),1),n("div",ET,[n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="all"}]),"aria-checked":e.segView()==="all",onClick:t[10]||(t[10]=i=>e.setSegView("all"))},[t[38]||(t[38]=m("All ",-1)),n("span",RT,d(e.fmt?.number(e.segCount("all"))),1)],10,NT),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="active","is-empty":!e.segCount("active")}]),"aria-checked":e.segView()==="active",onClick:t[11]||(t[11]=i=>e.setSegView("active"))},[t[39]||(t[39]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[40]||(t[40]=m("Active ",-1)),n("span",PT,d(e.fmt?.number(e.segCount("active"))),1)],10,TT),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="waiting","is-empty":!e.segCount("waiting")}]),"aria-checked":e.segView()==="waiting",onClick:t[12]||(t[12]=i=>e.setSegView("waiting"))},[t[41]||(t[41]=n("span",{class:"seg-dot warn","aria-hidden":"true"},null,-1)),t[42]||(t[42]=m("Waiting ",-1)),n("span",AT,d(e.fmt?.number(e.segCount("waiting"))),1)],10,DT),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="delayed","is-empty":!e.segCount("delayed")}]),"aria-checked":e.segView()==="delayed",onClick:t[13]||(t[13]=i=>e.setSegView("delayed"))},[t[43]||(t[43]=n("span",{class:"seg-dot warn","aria-hidden":"true"},null,-1)),t[44]||(t[44]=m("Delayed ",-1)),n("span",OT,d(e.fmt?.number(e.segCount("delayed"))),1)],10,IT),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="failed","is-empty":!e.segCount("failed")}]),"aria-checked":e.segView()==="failed",onClick:t[14]||(t[14]=i=>e.setSegView("failed"))},[t[45]||(t[45]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[46]||(t[46]=m("Failed ",-1)),n("span",VT,d(e.fmt?.number(e.segCount("failed"))),1)],10,MT),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="completed","is-empty":!e.segCount("completed")}]),"aria-checked":e.segView()==="completed",onClick:t[15]||(t[15]=i=>e.setSegView("completed"))},[t[47]||(t[47]=n("span",{class:"seg-dot done","aria-hidden":"true"},null,-1)),t[48]||(t[48]=m("Completed ",-1)),n("span",LT,d(e.fmt?.number(e.segCount("completed"))),1)],10,qT)])]),n("div",_T,[P(n("input",$T,null,512),[[s,{state:e.viewState,set:i=>{e.query.search=i},value:e.query?.search,form:null,options:{}}]]),n("label",FT,[P(n("input",UT,null,512),[[s,{state:e.viewState,set:i=>{e.query.autoRefresh=i},value:e.query?.autoRefresh,form:null,options:{}}]]),t[49]||(t[49]=n("span",{class:"auto-refresh-label"},"Auto-refresh",-1))]),n("button",{class:"btn btn-sm btn-icon",type:"button",title:"Refresh now",onClick:t[16]||(t[16]=i=>e.refreshNow()),"aria-label":"Refresh"},[...t[50]||(t[50]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1)])])]),e.filteredJobs().length>0?(a(),l("table",BT,[t[69]||(t[69]=n("thead",null,[n("tr",null,[n("th",null,"State"),n("th",null,"Job"),n("th",null,"Detail"),n("th",null,"Attempts"),n("th",{class:"q-th-num"},"Duration"),n("th",null,"Progress"),n("th")])],-1)),(a(!0),l(V,null,X(e.filteredJobs(),(i,o)=>(a(),l("tbody",null,[n("tr",{style:{cursor:"pointer"},class:R({"q-row-failed":i?._state=="failed","q-row-expanded":e.expanded[i?.id]}),onClick:r=>e.toggleJob(i)},[n("td",HT,[n("span",{textContent:d(i?._state),class:R("q-state-badge q-state-"+i?._state)},null,10,jT),i?._state=="delayed"&&i?.delayUntil?(a(),l("span",{key:0,class:"q-delay-hint",textContent:d(e.delayCountdown(i?.delayUntil))},null,8,GT)):f("v-if",!0)]),n("td",{class:"q-cell-id",title:"job:"+i?.id+(i?.name&&i?.name!==i?.id?" \xB7 "+i.name:"")+(i?.data?.repoId&&i?.data?.repoId!==i?.id?" \xB7 "+i.data.repoId:"")},[(a(),l("svg",{class:R(["ui-icon q-chevron",{"q-chevron-open":e.expanded[i?.id]}]),"aria-hidden":"true"},[...t[51]||(t[51]=[n("use",{href:"#ui-icon-chevron-right"},null,-1)])],2)),n("a",{target:"_blank",class:"q-job-link",textContent:d(i?.data?.repoId||i?.id),onClick:t[17]||(t[17]=r=>r.stopPropagation()),href:e.safeUrl("/r/"+(i?.data?.repoId||i?.id))},null,8,KT)],8,WT),n("td",{class:R(["q-cell-detail",{"is-error":i?._state=="failed"}]),title:i?._state=="failed"?i?.failedReason:"",textContent:d(e.jobDetail(i))},null,10,YT),n("td",{class:"q-cell-num",textContent:d(i?.attemptsMade||1)},null,8,JT),n("td",{class:"q-cell-num q-cell-duration",textContent:d(e.jobDuration(i))},null,8,XT),n("td",QT,[n("div",{class:R(["q-progress-wrap",{"is-indeterminate":e.jobProgressPct(i)===null}]),"aria-label":e.jobProgressPct(i)===null?"Progress not reported":e.jobProgressPct(i)+"% done"},[n("div",{class:"q-progress-bar",style:Ae({"--pct":(e.jobProgressPct(i)||0)+"%"})},null,4),n("span",{class:"q-progress-label",textContent:d(e.jobProgressPct(i)===null?"\u2014":e.jobProgressPct(i)+"%")},null,8,xT)],10,ZT)]),n("td",eP,[i?._state=="failed"?(a(),l("button",{key:0,class:"btn btn-sm btn-icon",title:"Retry",onClick:r=>{e.retryJob(i),r.stopPropagation()},"aria-label":"Retry job"},[...t[52]||(t[52]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1)])],8,tP)):f("v-if",!0),n("button",{class:"btn btn-sm btn-icon",title:"Remove","aria-label":"Remove job",onClick:r=>{e.removeJob(i),r.stopPropagation()}},[...t[53]||(t[53]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1)])],8,nP)])],10,zT),e.expanded[i?.id]?(a(),l("tr",oP,[n("td",sP,[n("div",iP,[n("div",rP,[n("div",aP,[t[54]||(t[54]=n("span",{class:"q-job-detail-label"},"Job id",-1)),n("span",lP,[n("a",{target:"_blank",textContent:d(i?.id),href:e.safeUrl("/r/"+i?.id)},null,8,dP)])]),n("div",uP,[t[55]||(t[55]=n("span",{class:"q-job-detail-label"},"State",-1)),n("span",cP,[n("span",{textContent:d(i?._state),class:R("q-state-badge q-state-"+i?._state)},null,10,pP)])]),i?.data?.repoId?(a(),l("div",fP,[t[56]||(t[56]=n("span",{class:"q-job-detail-label"},"Repo ID",-1)),n("span",{class:"q-job-detail-value",textContent:d(i?.data?.repoId)},null,8,mP)])):f("v-if",!0),i?.timestamp?(a(),l("div",hP,[t[57]||(t[57]=n("span",{class:"q-job-detail-label"},"Created",-1)),n("span",{class:"q-job-detail-value",textContent:d(e.humanTime(i?.timestamp))},null,8,gP)])):f("v-if",!0),i?._state=="delayed"&&i?.delayUntil?(a(),l("div",vP,[t[58]||(t[58]=n("span",{class:"q-job-detail-label"},"Retry at",-1)),n("span",yP,d(e.humanTime(i?.delayUntil))+" ("+d(e.delayCountdown(i?.delayUntil))+")",1)])):f("v-if",!0),i?.processedOn?(a(),l("div",bP,[t[59]||(t[59]=n("span",{class:"q-job-detail-label"},"Processed",-1)),n("span",{class:"q-job-detail-value",textContent:d(e.humanTime(i?.processedOn))},null,8,wP)])):f("v-if",!0),i?.finishedOn?(a(),l("div",kP,[t[60]||(t[60]=n("span",{class:"q-job-detail-label"},"Finished",-1)),n("span",{class:"q-job-detail-value",textContent:d(e.humanTime(i?.finishedOn))},null,8,CP)])):f("v-if",!0),i?.attemptsMade?(a(),l("div",SP,[t[61]||(t[61]=n("span",{class:"q-job-detail-label"},"Attempts",-1)),n("span",{class:"q-job-detail-value",textContent:d(i?.attemptsMade)},null,8,EP)])):f("v-if",!0),i?.progress&&i?.progress?.status?(a(),l("div",NP,[t[62]||(t[62]=n("span",{class:"q-job-detail-label"},"Status",-1)),n("span",{class:"q-job-detail-value",textContent:d(i?.progress?.status)},null,8,RP)])):f("v-if",!0),e.jobProgressPct(i)!==null?(a(),l("div",TP,[t[63]||(t[63]=n("span",{class:"q-job-detail-label"},"Progress",-1)),n("span",{class:"q-job-detail-value",textContent:d(e.jobProgressPct(i)+"%")},null,8,PP)])):f("v-if",!0)]),i?.failedReason?(a(),l("div",DP,[t[64]||(t[64]=n("span",{class:"q-job-detail-label"},"Error",-1)),n("div",{class:"q-error-reason",textContent:d(i?.failedReason)},null,8,AP)])):f("v-if",!0),i?.stacktrace?.length?(a(),l("div",IP,[t[65]||(t[65]=n("span",{class:"q-job-detail-label"},"Stacktrace",-1)),(a(!0),l(V,null,X(i?.stacktrace,(r,u)=>(a(),l("pre",{class:"q-error-stack",key:u},[n("code",{textContent:d(r)},null,8,OP)]))),128))])):f("v-if",!0),n("div",MP,[i?._state=="failed"?(a(),l("button",{key:0,class:"btn btn-sm",onClick:r=>e.retryJob(i)},[...t[66]||(t[66]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),m(" Retry",-1)])],8,VP)):f("v-if",!0),n("button",{class:"btn btn-sm",onClick:r=>e.removeJob(i)},[...t[67]||(t[67]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),m(" Remove",-1)])],8,qP),n("a",{class:"btn btn-sm",target:"_blank",href:e.safeUrl("/r/"+i?.id)},[...t[68]||(t[68]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1),m(" View repo",-1)])],8,LP)])])])])):f("v-if",!0)]))),256))])):f("v-if",!0),e.filteredJobs().length==0?(a(),l("div",_P,[t[70]||(t[70]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1)),e.query?.search?f("v-if",!0):(a(),l("span",$P,"No jobs in the "+d(e.selectedQueue)+" queue.",1)),e.query?.search?(a(),l("span",FP,"No jobs match the current filters.")):f("v-if",!0)])):f("v-if",!0)])])}var UP={class:"container paper-page admin-page"},BP={class:"seg-bar"},zP={class:"seg-filter",role:"radiogroup","aria-label":"Filter by status"},HP=["aria-checked"],jP={class:"count"},GP=["aria-checked"],WP={class:"count"},KP=["aria-checked"],YP={class:"count"},JP=["aria-checked"],XP={class:"count"},QP=["aria-checked"],ZP={class:"count"},xP=["aria-checked"],e4={class:"count"},t4={class:"seg-countline",role:"status"},n4={class:"seg-meta"},o4={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},s4={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},i4=["aria-expanded"],r4={class:"search-wrap"},a4={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repositories\u2026",autocomplete:"off"},l4={key:0,class:"admin-search-hint"},d4={class:"admin-filter-inline"},u4={type:"text",class:"form-control form-control-sm",placeholder:"username"},c4={class:"admin-filter-inline"},p4={type:"text",class:"form-control form-control-sm",placeholder:"ID"},f4={key:0,class:"admin-filter-inline","aria-label":"Pagination"},m4=["disabled"],h4={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},g4=["disabled"],v4={key:0,class:"admin-filter-row"},y4={class:"admin-active-chips"},b4={class:"key"},w4=["onClick"],k4={key:1,class:"bulk-bar"},C4={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},S4={class:"paper-table-head",role:"row"},E4={role:"columnheader",style:{width:"28px"}},N4=["checked"],R4={role:"columnheader"},T4={role:"columnheader"},P4={role:"columnheader",class:"num"},D4={role:"columnheader"},A4={role:"cell",style:{width:"28px"}},I4={type:"checkbox","aria-label":"Select repository"},O4={class:"cell-anon",role:"cell"},M4={class:"anon-text"},V4=["textContent","href"],q4=["title"],L4=["href"],_4=["textContent"],$4=["textContent"],F4=["data-meta-label"],U4=["title","textContent","href"],B4=["data-meta-label"],z4=["textContent","href"],H4=["data-meta-label"],j4={key:3,class:"meta-item"},G4={class:"meta-item"},W4={class:"cell-status",role:"cell"},K4={class:"status-line"},Y4=["textContent"],J4=["textContent","title"],X4=["data-unit"],Q4=["textContent"],Z4={class:"cell-expires",role:"cell"},x4=["textContent"],eD={class:"cell-actions",role:"cell"},tD={class:"dropdown"},nD={class:"dropdown-menu dropdown-menu-right"},oD=["href"],sD=["href"],iD=["href"],rD=["onClick"],aD=["onClick"],lD=["onClick"],dD=["onClick"],uD=["onClick"],cD=["onClick"],pD={key:0,class:"paper-table-empty"},fD={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},mD={key:0,class:"pagination-compact"},hD=["disabled"],gD=["max"],vD=["disabled"],yD={class:"admin-filter-inline"},bD={class:"form-control form-control-sm"};function mp(e,t){let s=Pe("field"),i=Pe("form");return a(),l("div",UP,[t[80]||(t[80]=Ce('
Admin \xA0/\xA0 Repositories

Repositories

',3)),n("div",BP,[n("div",zP,[n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="all"}]),"aria-checked":e.segView()==="all",onClick:t[0]||(t[0]=o=>e.setSegView("all"))},[t[21]||(t[21]=m("All ",-1)),n("span",jP,d(e.fmt?.number(e.segCount("all"))),1)],10,HP),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="ready","is-empty":!e.segCount("ready")}]),"aria-checked":e.segView()==="ready",onClick:t[1]||(t[1]=o=>e.setSegView("ready"))},[t[22]||(t[22]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[23]||(t[23]=m("Ready ",-1)),n("span",WP,d(e.fmt?.number(e.segCount("ready"))),1)],10,GP),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="preparing","is-empty":!e.segCount("preparing")}]),"aria-checked":e.segView()==="preparing",onClick:t[2]||(t[2]=o=>e.setSegView("preparing"))},[t[24]||(t[24]=n("span",{class:"seg-dot warn","aria-hidden":"true"},null,-1)),t[25]||(t[25]=m("Preparing ",-1)),n("span",YP,d(e.fmt?.number(e.segCount("preparing"))),1)],10,KP),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="error","is-empty":!e.segCount("error")}]),"aria-checked":e.segView()==="error",onClick:t[3]||(t[3]=o=>e.setSegView("error"))},[t[26]||(t[26]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[27]||(t[27]=m("Error ",-1)),n("span",XP,d(e.fmt?.number(e.segCount("error"))),1)],10,JP),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="expired","is-empty":!e.segCount("expired")}]),"aria-checked":e.segView()==="expired",onClick:t[4]||(t[4]=o=>e.setSegView("expired"))},[t[28]||(t[28]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[29]||(t[29]=m("Expiring / expired ",-1)),n("span",ZP,d(e.fmt?.number(e.segCount("expired"))),1)],10,QP),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="removed","is-empty":!e.segCount("removed")}]),"aria-checked":e.segView()==="removed",onClick:t[5]||(t[5]=o=>e.setSegView("removed"))},[t[30]||(t[30]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[31]||(t[31]=m("Removing / removed ",-1)),n("span",e4,d(e.fmt?.number(e.segCount("removed"))),1)],10,xP)]),n("p",t4,[n("strong",null,d(e.total>=0?e.fmt.number(e.total):"\u2026"),1),t[32]||(t[32]=m(" shown",-1)),t[33]||(t[33]=n("span",{class:"seg-sep"},"\xB7",-1)),n("span",n4,d(e.fmt?.humanFileSize(e.totalSize))+" on disk",1)])]),e.fetchError?(a(),l("div",o4,[t[34]||(t[34]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),m(" "+d(e.fetchError),1)])):f("v-if",!0),P((a(),l("form",s4,[f(" Row 1: search + scoped inputs + headline actions "),n("button",{type:"button",class:"btn btn-sm admin-filters-toggle",onClick:t[6]||(t[6]=o=>e.filtersOpen=!e.filtersOpen),"aria-expanded":e.filtersOpen?"true":"false"},"Filters",8,i4),n("div",{class:R(["admin-filter-row",{"is-open":e.filtersOpen}])},[n("div",r4,[P(n("input",a4,null,512),[[s,{state:e.viewState,set:o=>{e.query.search=o},value:e.query?.search,form:null,options:{}}]]),e.query?.search?f("v-if",!0):(a(),l("span",l4,"/"))]),n("span",d4,[t[35]||(t[35]=n("label",null,"Owner",-1)),P(n("input",u4,null,512),[[s,{state:e.viewState,set:o=>{e.query.owner=o},value:e.query?.owner,form:null,options:{}}]])]),n("span",c4,[t[36]||(t[36]=n("label",null,"Conference",-1)),P(n("input",p4,null,512),[[s,{state:e.viewState,set:o=>{e.query.conference=o},value:e.query?.conference,form:null,options:{}}]])]),t[40]||(t[40]=n("span",{class:"admin-filter-spacer"},null,-1)),n("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[7]||(t[7]=o=>e.exportCsv())},[...t[37]||(t[37]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),m(" Export",-1)])]),e.totalPage>1?(a(),l("span",f4,[n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[8]||(t[8]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[38]||(t[38]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,m4),n("span",h4,d(e.query?.page)+"/"+d(e.totalPage||1),1),n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[9]||(t[9]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[39]||(t[39]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,g4)])):f("v-if",!0)],2),f(" Row 2: appears only when there are active filter chips "),e.chips?.length?(a(),l("div",v4,[n("div",y4,[(a(!0),l(V,null,X(e.chips,(o,r)=>(a(),l("span",{class:"admin-active-chip",key:o?.key},[n("span",b4,d(o?.label),1),n("span",null,d(o?.value),1),n("button",{type:"button","aria-label":"Remove filter",onClick:u=>e.clearFilter(o.key)},[...t[41]||(t[41]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,w4)]))),128))])])):f("v-if",!0)])),[[i,e.viewState]]),e.selectedCount()>0?(a(),l("div",k4,[n("span",null,[n("strong",null,d(e.selectedCount()),1),t[42]||(t[42]=m(" selected",-1))]),n("button",{class:"btn btn-sm",type:"button",onClick:t[10]||(t[10]=o=>e.bulkRefresh())},[...t[43]||(t[43]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),m(" Force refresh",-1)])]),n("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[11]||(t[11]=o=>e.bulkRemoveCache())},[...t[44]||(t[44]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),m(" Remove cache",-1)])]),n("button",{class:"btn btn-sm",type:"button",onClick:t[12]||(t[12]=o=>e.clearSelection())},"Clear")])):f("v-if",!0),n("div",C4,[n("div",S4,[n("div",E4,[n("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[13]||(t[13]=o=>e.selectAllOnPage()),checked:e.allSelected},null,8,N4)]),n("div",R4,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[14]||(t[14]=o=>e.sortBy("source.repositoryName"))},[t[46]||(t[46]=m("Repository ",-1)),e.sortIcon("source.repositoryName")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("source.repositoryName")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[45]||(t[45]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",T4,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="status"}]),onClick:t[15]||(t[15]=o=>e.sortBy("status"))},[t[48]||(t[48]=m("Status ",-1)),e.sortIcon("status")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[47]||(t[47]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",P4,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[16]||(t[16]=o=>e.sortBy("pageView"))},[t[50]||(t[50]=m("Views ",-1)),e.sortIcon("pageView")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("pageView")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[49]||(t[49]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",D4,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[17]||(t[17]=o=>e.sortBy("anonymizeDate"))},[t[52]||(t[52]=m("Anonymized ",-1)),e.sortIcon("anonymizeDate")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("anonymizeDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[51]||(t[51]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[53]||(t[53]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(a(!0),l(V,null,X(e.filteredRepositories,(o,r)=>(a(),l("div",{class:R(["paper-table-row",{"repo-inactive":o?.status=="expired"||o?.status=="removed","repo-error":o?.status=="error","row-selected":e.selected[o?.repoId]}]),role:"row"},[n("div",A4,[P(n("input",I4,null,512),[[s,{state:e.viewState,set:u=>{e.selected[o.repoId]=u},value:e.selected[o?.repoId],form:null,options:{}}]])]),n("div",O4,[t[56]||(t[56]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[n("use",{href:"#project-type-repo"})],-1)),n("div",M4,[n("a",{class:"repo-name",target:"_blank",textContent:d(o?.repoId),href:e.safeUrl("/r/"+o?.repoId)},null,8,V4),n("div",{class:"anon-sub anon-meta","data-meta-fit":"",title:[o?.source?.fullName||o?.source?.repositoryName,o?.options?.update?"branch "+o?.source?.branch:"commit "+o?.source?.commit?.substring(0,7),o?.conference?"conference "+o?.conference:"",o?.size?.storage>0?e.fmt?.humanFileSize(o?.size?.storage):"",e.fmt?.number(o?.options?.terms?.length)+(o?.options?.terms?.length===1?" term":" terms")].filter(Boolean).join(" \xB7 ")},[n("a",{class:"src-path",href:e.safeUrl("https://github.com/"+o?.source?.repositoryName+"/")},[(o?.source?.repositoryName||"").includes("/")?(a(),l("span",{key:0,class:"src-owner",textContent:d((u=>u.length>16?u.slice(0,14)+"\u2026":u)((o?.source?.repositoryName||"").split("/")[0]))},null,8,_4)):f("v-if",!0),n("span",{class:"src-repo",textContent:d((o?.source?.repositoryName||"").includes("/")?"/"+(o?.source?.repositoryName||"").split("/").slice(1).join("/"):o?.source?.repositoryName)},null,8,$4)],8,L4),o?.options?.update?f("v-if",!0):(a(),l("span",{key:0,class:"meta-item","data-meta-label":"commit "+(o?.source?.commit||"").substring(0,7)},[n("a",{class:"mono-hash",title:o?.source?.commit,textContent:d(o?.source?.commit?.substring(0,7)),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.commit)},null,8,U4)],8,F4)),o?.options?.update?(a(),l("span",{key:1,class:"meta-item","data-meta-label":"branch "+(o?.source?.branch||"")},[n("a",{textContent:d(o?.source?.branch),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.branch)},null,8,z4)],8,B4)):f("v-if",!0),o?.conference?(a(),l("span",{key:2,class:"meta-item meta-conf","data-meta-label":"conference "+o?.conference},[t[54]||(t[54]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),m(" "+d(o?.conference),1)],8,H4)):f("v-if",!0),o?.size?.storage>0?(a(),l("span",j4,d(e.fmt?.humanFileSize(o?.size?.storage)),1)):f("v-if",!0),n("span",G4,d(e.fmt?.number(o?.options?.terms?.length))+" "+d(o?.options?.terms?.length===1?"term":"terms"),1),t[55]||(t[55]=n("span",{class:"meta-more",hidden:""},null,-1))],8,q4)])]),n("div",W4,[n("span",K4,[n("span",{class:R(["status-dot","st-"+(o?.status||"unknown")])},null,2),n("span",{textContent:d(e.fmt?.statusLabel(o?.status))},null,8,Y4)]),o?.statusMessage?(a(),l("span",{key:0,class:"status-sub",textContent:d(e.fmt?.statusMsg(o?.statusMessage)),title:o?.statusMessage},null,8,J4)):f("v-if",!0)]),n("div",{class:"cell-views num",role:"cell","data-unit":(o?.pageView||0)===1?"view":"views"},[t[57]||(t[57]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1)),t[58]||(t[58]=m()),n("span",{textContent:d(e.fmt?.number(o?.pageView||0))},null,8,Q4)],8,X4),n("div",Z4,[t[59]||(t[59]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),t[60]||(t[60]=m()),n("span",{textContent:d((e.fmt?.humanTime(o?.anonymizeDate)||"").replace(/^on /,""))},null,8,x4)]),n("div",eD,[n("div",tD,[t[72]||(t[72]=n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})])],-1)),n("div",nD,[n("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+o?.repoId)},[...t[61]||(t[61]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),m(" Edit",-1)])],8,oD),n("a",{class:"dropdown-item",href:e.safeUrl("/r/"+o?.repoId+"/")},[...t[62]||(t[62]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),m(" View repo",-1)])],8,sD),o?.options?.page&&o?.status=="ready"?(a(),l("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+o?.repoId+"/")},[...t[63]||(t[63]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),m(" View page",-1)])],8,iD)):f("v-if",!0),n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.fetchGithubInfo(o),["prevent"])},[...t[64]||(t[64]=[n("i",{class:"fab fa-github"},null,-1),m(" Live GitHub info",-1)])],8,rD),t[70]||(t[70]=n("div",{class:"dropdown-divider"},null,-1)),P(n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.updateRepository(o),["prevent"])},[...t[65]||(t[65]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),m(" Force update",-1)])],8,aD),[[Q,o?.status=="ready"||o?.status=="error"]]),P(n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.updateRepository(o),["prevent"])},[...t[66]||(t[66]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),m(" Enable",-1)])],8,lD),[[Q,o?.status=="removed"]]),P(n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.showStatusMessage(o),["prevent"])},[...t[67]||(t[67]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1),m(" View status message",-1)])],8,dD),[[Q,o?.statusMessage]]),t[71]||(t[71]=n("div",{class:"dropdown-divider"},null,-1)),n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.removeCache(o),["prevent"])},[...t[68]||(t[68]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),m(" Remove cache",-1)])],8,uD),P(n("a",{class:"dropdown-item text-danger",href:"#",onClick:de(u=>e.removeRepository(o),["prevent"])},[...t[69]||(t[69]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),m(" Remove",-1)])],8,cD),[[Q,o?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(a(),l("div",pD,[t[73]||(t[73]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),t[74]||(t[74]=n("span",null,"No repositories match the current filters.",-1)),e.query.ready&&e.query.expired&&e.query.removed&&e.query.error&&e.query.preparing?f("v-if",!0):(a(),l("button",{key:0,type:"button",class:"btn btn-sm btn-outline-ink",onClick:t[18]||(t[18]=o=>e.showAllStatuses())},"Show all statuses"))])):f("v-if",!0)]),n("div",fD,[t[79]||(t[79]=n("span",{"aria-hidden":"true"},null,-1)),e.totalPage>1?(a(),l("div",mD,[n("button",{class:"btn btn-sm",onClick:t[19]||(t[19]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[75]||(t[75]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1),m(" Previous ",-1)])],8,hD),P(n("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},"aria-label":"Page",max:e.totalPage},null,8,gD),[[s,{state:e.viewState,set:o=>{e.query.page=o},value:e.query?.page,form:null,options:{}}]]),n("span",null,"of "+d(e.totalPage),1),n("button",{class:"btn btn-sm",onClick:t[20]||(t[20]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[76]||(t[76]=[m(" Next ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,vD)])):f("v-if",!0),n("span",yD,[t[78]||(t[78]=n("label",null,"Per page",-1)),P((a(),l("select",bD,[...t[77]||(t[77]=[Ce('',5)])])),[[s,{state:e.viewState,set:o=>{e.query.limit=o},value:e.query?.limit,form:null,options:{}}]])])])])}var wD={class:"container paper-page admin-page"},kD={class:"paper-crumbs"},CD={class:"here"},SD={class:"paper-page-title"},ED={key:0,class:"user-detail-card"},ND={class:"user-header"},RD=["src"],TD={class:"user-header-status"},PD={class:"status-dot-wrap"},DD=["textContent"],AD={key:0,class:"type-badge type-repo"},ID={class:"user-actions",style:{"margin-top":"4px"}},OD={class:"user-detail-grid"},MD={class:"detail-value mono-id"},VD={class:"detail-value"},qD=["href"],LD={class:"detail-value"},_D={class:"detail-value"},$D={key:0},FD={key:1,class:"text-muted"},UD={class:"detail-value"},BD={key:0,style:{"margin-top":"20px"}},zD={class:"paper-table w-100",style:{"margin-top":"10px"}},HD={class:"paper-table-row",style:{"grid-template-columns":"1fr 160px"}},jD={class:"cell-anon",role:"cell"},GD={class:"anon-text"},WD=["textContent"],KD={class:"cell-expires",role:"cell"},YD={key:1,class:"admin-section-header"},JD={class:"section-count"},XD={key:2,class:"user-detail-card"},QD={type:"text",class:"form-control",placeholder:"Token name (e.g. dev-laptop)",required:""},ZD={key:0,class:"alert alert-warning",role:"alert"},xD={style:{"white-space":"pre-wrap","word-break":"break-all",margin:"8px 0 0","font-family":"var(--font-mono)","font-size":"0.85rem"}},eA={key:1,class:"paper-table w-100"},tA={class:"paper-table-row",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},nA=["textContent"],oA=["textContent"],sA={role:"cell"},iA={key:0},rA={key:1,class:"text-muted"},aA={role:"cell"},lA=["onClick"],dA={key:2,class:"paper-table-empty"},uA={class:"admin-section-header"},cA={class:"section-count"},pA={class:"seg-bar"},fA={class:"seg-filter",role:"radiogroup","aria-label":"Filter by status"},mA=["aria-checked"],hA={class:"count"},gA=["aria-checked"],vA={class:"count"},yA=["aria-checked"],bA={class:"count"},wA=["aria-checked"],kA={class:"count"},CA=["aria-checked"],SA={class:"count"},EA=["aria-checked"],NA={class:"count"},RA={class:"seg-countline",role:"status"},TA={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},PA={class:"admin-filter-row"},DA={class:"search-wrap"},AA={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repositories or errors\u2026",autocomplete:"off"},IA={key:3,class:"bulk-bar"},OA={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},MA={class:"paper-table-head",role:"row"},VA={role:"columnheader",style:{width:"28px"}},qA=["checked"],LA={role:"columnheader"},_A={role:"columnheader"},$A={role:"columnheader",class:"num"},FA={role:"columnheader"},UA={role:"cell",style:{width:"28px"}},BA={type:"checkbox","aria-label":"Select repository"},zA={class:"cell-anon",role:"cell"},HA={class:"anon-text"},jA=["textContent","href"],GA=["title"],WA=["href"],KA=["textContent"],YA=["textContent"],JA=["data-meta-label"],XA=["title","textContent","href"],QA=["data-meta-label"],ZA=["textContent","href"],xA=["data-meta-label"],e3={key:3,class:"meta-item"},t3={class:"meta-item"},n3={class:"cell-status",role:"cell"},o3={class:"status-line"},s3=["textContent"],i3=["textContent","title"],r3=["data-unit","textContent"],a3=["textContent"],l3={class:"cell-actions",role:"cell"},d3={class:"dropdown"},u3={class:"dropdown-menu dropdown-menu-right"},c3=["href"],p3=["href"],f3=["href"],m3=["onClick"],h3=["onClick"],g3=["onClick"],v3=["onClick"],y3=["onClick"],b3=["onClick"],w3={key:0,class:"paper-table-empty"};function hp(e,t){let s=Pe("field"),i=Pe("form");return a(),l("div",wD,[n("div",kD,[t[23]||(t[23]=n("a",{href:"/admin/"},"Admin",-1)),t[24]||(t[24]=m(" \xA0/\xA0 ",-1)),t[25]||(t[25]=n("a",{href:"/admin/users"},"Users",-1)),t[26]||(t[26]=m(" \xA0/\xA0 ",-1)),n("span",CD,d(e.userInfo?.username||"Profile"),1)]),n("h1",SD,d(e.userInfo?.username||"User"),1),t[93]||(t[93]=Ce('',1)),e.userInfo?(a(),l("div",ED,[n("div",ND,[e.userInfo?.photo?(a(),l("img",{key:0,width:"56",height:"56",src:e.safeUrl(e.userInfo?.photo)},null,8,RD)):f("v-if",!0),n("div",null,[n("div",TD,[n("span",PD,[n("span",{class:R(["status-dot","st-"+(e.userInfo?.status||"unknown")])},null,2),n("span",{textContent:d(e.fmt?.title(e.userInfo?.status))},null,8,DD)]),e.userInfo?.isAdmin?(a(),l("span",AD,"Admin")):f("v-if",!0)]),n("div",ID,[e.userInfo?.status!=="banned"&&e.userInfo?.username!==e.user?.username?(a(),l("button",{key:0,class:"btn btn-sm btn-outline-danger",onClick:t[0]||(t[0]=o=>e.banUser())},[...t[27]||(t[27]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-ban"})],-1),m(" Ban",-1)])])):f("v-if",!0),e.userInfo?.status==="banned"||e.userInfo?.status==="removed"?(a(),l("button",{key:1,class:"btn btn-sm",onClick:t[1]||(t[1]=o=>e.activateUser())},[...t[28]||(t[28]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),m(" Activate",-1)])])):f("v-if",!0),e.userInfo?.isAdmin?f("v-if",!0):(a(),l("button",{key:2,class:"btn btn-sm",onClick:t[2]||(t[2]=o=>e.promoteUser())},[...t[29]||(t[29]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user-shield"})],-1),m(" Promote to admin",-1)])])),e.userInfo?.isAdmin&&e.userInfo?.username!==e.user?.username?(a(),l("button",{key:3,class:"btn btn-sm btn-outline-ink",onClick:t[3]||(t[3]=o=>e.demoteUser())},[...t[30]||(t[30]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user-minus"})],-1),m(" Remove admin",-1)])])):f("v-if",!0)])])]),n("div",OD,[t[33]||(t[33]=n("div",{class:"detail-label"},"ID",-1)),n("div",MD,d(e.userInfo?._id),1),t[34]||(t[34]=n("div",{class:"detail-label"},"Email",-1)),n("div",{class:R(["detail-value",{"is-empty":!e.userInfo?.emails?.[0]?.email}])},d(e.userInfo?.emails?.[0]?.email||"Not shared"),3),t[35]||(t[35]=n("div",{class:"detail-label"},"Access token",-1)),n("div",{class:R(["detail-value",{"is-empty":!e.userInfo?.accessTokens?.github}]),style:{"font-family":"var(--font-mono)","font-size":"0.85rem"}},d(e.userInfo?.accessTokens?.github||"Not stored"),3),t[36]||(t[36]=n("div",{class:"detail-label"},"GitHub",-1)),n("div",VD,[n("a",{target:"_blank",href:e.safeUrl("https://github.com/"+e.userInfo?.username)},[t[31]||(t[31]=n("i",{class:"fab fa-github"},null,-1)),m(" "+d(e.userInfo?.username),1)],8,qD)]),t[37]||(t[37]=n("div",{class:"detail-label"},"Created",-1)),n("div",LD,d(e.fmt?.humanTime(e.userInfo?.dateOfEntry)),1),t[38]||(t[38]=n("div",{class:"detail-label"},"Last connection",-1)),n("div",_D,[e.userInfo?.accessTokenDates?.github?(a(),l("span",$D,d(e.fmt?.humanTime(e.userInfo?.accessTokenDates?.github)),1)):f("v-if",!0),e.userInfo?.accessTokenDates?.github?f("v-if",!0):(a(),l("span",FD,"Not recorded (GitHub App sign-in)"))]),t[39]||(t[39]=n("div",{class:"detail-label"},"GitHub repos",-1)),n("div",UD,[m(d(e.userInfo?.repositories?.length?e.userInfo.repositories.length+" repositories":"Not synced")+" ",1),e.userInfo?.repositories?.length?(a(),l("button",{key:0,class:"btn btn-sm ml-2",onClick:t[4]||(t[4]=o=>e.showRepos=!e.showRepos)},d(e.showRepos?"Hide repos":"Show repos"),1)):f("v-if",!0),n("button",{class:"btn btn-sm ml-1",onClick:t[5]||(t[5]=o=>e.getGitHubRepositories())},[...t[32]||(t[32]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),m(" Refresh ",-1)])])])]),e.showRepos?(a(),l("div",BD,[t[42]||(t[42]=n("div",{class:"paper-section-eyebrow"},"GitHub repositories",-1)),n("div",zD,[(a(!0),l(V,null,X(e.userInfo?.repositories,(o,r)=>(a(),l("div",HD,[n("div",jD,[t[40]||(t[40]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[n("use",{href:"#project-type-repo"})],-1)),n("div",GD,[n("span",{class:"repo-name",textContent:d(o?.name)},null,8,WD)])]),n("div",KD,[t[41]||(t[41]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-database"})],-1)),m(" "+d(e.fmt?.humanFileSize(o?.size)),1)])]))),256))])])):f("v-if",!0)])):f("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(a(),l("div",YD,[t[43]||(t[43]=n("h2",null,[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-key"})]),m(" API tokens")],-1)),n("span",JD,d(e.tokens?.length),1)])):f("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(a(),l("div",XD,[t[49]||(t[49]=n("p",{class:"paper-page-lede"},[m("Personal API tokens for this admin account. Send as "),n("code",null,"Authorization: Bearer "),m(" to authenticate without GitHub OAuth (useful for development).")],-1)),P((a(),l("form",{class:"d-flex",style:{gap:"8px","margin-bottom":"12px"},onSubmit:t[6]||(t[6]=de(o=>e.submitForm(o,()=>{e.createToken()}),["prevent"]))},[P(n("input",QD,null,512),[[s,{state:e.viewState,set:o=>{e.tokenForm.name=o},value:e.tokenForm?.name,form:null,options:{}}]]),t[44]||(t[44]=n("button",{type:"submit",class:"btn btn-ink"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-plus"})]),m(" Generate")],-1))],32)),[[i,e.viewState]]),e.tokenForm?.plaintext?(a(),l("div",ZD,[t[45]||(t[45]=n("strong",null,"Copy this token now \u2014 it will not be shown again:",-1)),n("pre",xD,d(e.tokenForm?.plaintext),1),n("button",{class:"btn btn-sm",onClick:t[7]||(t[7]=o=>e.tokenForm.plaintext=null)},"Dismiss")])):f("v-if",!0),e.tokens?.length?(a(),l("div",eA,[t[47]||(t[47]=n("div",{class:"paper-table-head",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},[n("div",{role:"columnheader"},"Name"),n("div",{role:"columnheader"},"Created"),n("div",{role:"columnheader"},"Last used"),n("div",{role:"columnheader","aria-label":"Actions"})],-1)),(a(!0),l(V,null,X(e.tokens,(o,r)=>(a(),l("div",tA,[n("div",{role:"cell",textContent:d(o?.name)},null,8,nA),n("div",{role:"cell",textContent:d(e.fmt?.humanTime(o?.createdAt))},null,8,oA),n("div",sA,[o?.lastUsedAt?(a(),l("span",iA,d(e.fmt?.humanTime(o?.lastUsedAt)),1)):f("v-if",!0),o?.lastUsedAt?f("v-if",!0):(a(),l("span",rA,"never"))]),n("div",aA,[n("button",{class:"btn btn-sm text-danger btn-icon",title:"Revoke","aria-label":"Revoke token",onClick:u=>e.revokeToken(o)},[...t[46]||(t[46]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1)])],8,lA)])]))),256))])):f("v-if",!0),e.tokens?.length?f("v-if",!0):(a(),l("div",dA,[...t[48]||(t[48]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1),n("span",null,"No tokens yet.",-1)])]))])):f("v-if",!0),n("div",uA,[t[50]||(t[50]=n("h2",null,[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})]),m(" Anonymized repositories")],-1)),n("span",cA,d(e.repositories?.length),1)]),n("div",pA,[n("div",fA,[n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="all"}]),"aria-checked":e.segView()==="all",onClick:t[8]||(t[8]=o=>e.setSegView("all"))},[t[51]||(t[51]=m("All ",-1)),n("span",hA,d(e.fmt?.number(e.segCount("all"))),1)],10,mA),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="ready","is-empty":!e.segCount("ready")}]),"aria-checked":e.segView()==="ready",onClick:t[9]||(t[9]=o=>e.setSegView("ready"))},[t[52]||(t[52]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[53]||(t[53]=m("Ready ",-1)),n("span",vA,d(e.fmt?.number(e.segCount("ready"))),1)],10,gA),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="preparing","is-empty":!e.segCount("preparing")}]),"aria-checked":e.segView()==="preparing",onClick:t[10]||(t[10]=o=>e.setSegView("preparing"))},[t[54]||(t[54]=n("span",{class:"seg-dot warn","aria-hidden":"true"},null,-1)),t[55]||(t[55]=m("Preparing ",-1)),n("span",bA,d(e.fmt?.number(e.segCount("preparing"))),1)],10,yA),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="error","is-empty":!e.segCount("error")}]),"aria-checked":e.segView()==="error",onClick:t[11]||(t[11]=o=>e.setSegView("error"))},[t[56]||(t[56]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[57]||(t[57]=m("Error ",-1)),n("span",kA,d(e.fmt?.number(e.segCount("error"))),1)],10,wA),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="expired","is-empty":!e.segCount("expired")}]),"aria-checked":e.segView()==="expired",onClick:t[12]||(t[12]=o=>e.setSegView("expired"))},[t[58]||(t[58]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[59]||(t[59]=m("Expiring / expired ",-1)),n("span",SA,d(e.fmt?.number(e.segCount("expired"))),1)],10,CA),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="removed","is-empty":!e.segCount("removed")}]),"aria-checked":e.segView()==="removed",onClick:t[13]||(t[13]=o=>e.setSegView("removed"))},[t[60]||(t[60]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[61]||(t[61]=m("Removing / removed ",-1)),n("span",NA,d(e.fmt?.number(e.segCount("removed"))),1)],10,EA)]),n("p",RA,[n("strong",null,d(e.fmt.number(e.filteredRepositories?.length||0)),1),t[62]||(t[62]=m(" shown",-1))])]),P((a(),l("form",TA,[n("div",PA,[n("div",DA,[P(n("input",AA,null,512),[[s,{state:e.viewState,set:o=>{e.search=o},value:e.search,form:null,options:{}}]])]),t[64]||(t[64]=n("span",{class:"admin-filter-spacer"},null,-1)),n("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[14]||(t[14]=o=>e.exportCsv())},[...t[63]||(t[63]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),m(" Export",-1)])])])])),[[i,e.viewState]]),e.selectedCount()>0?(a(),l("div",IA,[n("span",null,[n("strong",null,d(e.selectedCount()),1),t[65]||(t[65]=m(" selected",-1))]),n("button",{class:"btn btn-sm",type:"button",onClick:t[15]||(t[15]=o=>e.bulkRefresh())},[...t[66]||(t[66]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),m(" Force refresh",-1)])]),n("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[16]||(t[16]=o=>e.bulkRemoveCache())},[...t[67]||(t[67]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),m(" Remove cache",-1)])]),n("button",{class:"btn btn-sm",type:"button",onClick:t[17]||(t[17]=o=>e.clearSelection())},"Clear")])):f("v-if",!0),n("div",OA,[n("div",MA,[n("div",VA,[n("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[18]||(t[18]=o=>e.selectAllOnPage()),checked:e.allSelected},null,8,qA)]),n("div",LA,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[19]||(t[19]=o=>e.sortBy("source.repositoryName"))},[t[69]||(t[69]=m("Repository ",-1)),e.sortIcon("source.repositoryName")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("source.repositoryName")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[68]||(t[68]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",_A,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="status"}]),onClick:t[20]||(t[20]=o=>e.sortBy("status"))},[t[71]||(t[71]=m("Status ",-1)),e.sortIcon("status")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[70]||(t[70]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",$A,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[21]||(t[21]=o=>e.sortBy("pageView"))},[t[73]||(t[73]=m("Views ",-1)),e.sortIcon("pageView")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("pageView")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[72]||(t[72]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",FA,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[22]||(t[22]=o=>e.sortBy("anonymizeDate"))},[t[75]||(t[75]=m("Anonymized ",-1)),e.sortIcon("anonymizeDate")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("anonymizeDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[74]||(t[74]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[76]||(t[76]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(a(!0),l(V,null,X(e.filteredRepositories,(o,r)=>(a(),l("div",{class:R(["paper-table-row",{"repo-inactive":o?.status=="expired"||o?.status=="removed","repo-error":o?.status=="error","row-selected":e.selected[o?.repoId]}]),role:"row"},[n("div",UA,[P(n("input",BA,null,512),[[s,{state:e.viewState,set:u=>{e.selected[o.repoId]=u},value:e.selected[o?.repoId],form:null,options:{}}]])]),n("div",zA,[t[79]||(t[79]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[n("use",{href:"#project-type-repo"})],-1)),n("div",HA,[n("a",{class:"repo-name",target:"_blank",textContent:d(o?.repoId),href:e.safeUrl("/r/"+o?.repoId)},null,8,jA),n("div",{class:"anon-sub anon-meta","data-meta-fit":"",title:[o?.source?.fullName||o?.source?.repositoryName,o?.options?.update?"branch "+o?.source?.branch:"commit "+o?.source?.commit?.substring(0,7),o?.conference?"conference "+o?.conference:"",o?.size?.storage>0?e.fmt?.humanFileSize(o?.size?.storage):"",e.fmt?.number(o?.options?.terms?.length)+(o?.options?.terms?.length===1?" term":" terms")].filter(Boolean).join(" \xB7 ")},[n("a",{class:"src-path",href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/")},[(o?.source?.fullName||"").includes("/")?(a(),l("span",{key:0,class:"src-owner",textContent:d((u=>u.length>16?u.slice(0,14)+"\u2026":u)((o?.source?.fullName||"").split("/")[0]))},null,8,KA)):f("v-if",!0),n("span",{class:"src-repo",textContent:d((o?.source?.fullName||"").includes("/")?"/"+(o?.source?.fullName||"").split("/").slice(1).join("/"):o?.source?.fullName)},null,8,YA)],8,WA),o?.options?.update?f("v-if",!0):(a(),l("span",{key:0,class:"meta-item","data-meta-label":"commit "+(o?.source?.commit||"").substring(0,7)},[n("a",{class:"mono-hash",title:o?.source?.commit,textContent:d(o?.source?.commit?.substring(0,7)),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.commit)},null,8,XA)],8,JA)),o?.options?.update?(a(),l("span",{key:1,class:"meta-item","data-meta-label":"branch "+(o?.source?.branch||"")},[n("a",{textContent:d(o?.source?.branch),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.branch)},null,8,ZA)],8,QA)):f("v-if",!0),o?.conference?(a(),l("span",{key:2,class:"meta-item meta-conf","data-meta-label":"conference "+o?.conference},[t[77]||(t[77]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),m(" "+d(o?.conference),1)],8,xA)):f("v-if",!0),o?.size?.storage>0?(a(),l("span",e3,d(e.fmt?.humanFileSize(o?.size?.storage)),1)):f("v-if",!0),n("span",t3,d(e.fmt?.number(o?.options?.terms?.length))+" "+d(o?.options?.terms?.length===1?"term":"terms"),1),t[78]||(t[78]=n("span",{class:"meta-more",hidden:""},null,-1))],8,GA)])]),n("div",n3,[n("span",o3,[n("span",{class:R(["status-dot","st-"+(o?.status||"unknown")])},null,2),n("span",{textContent:d(e.fmt?.statusLabel(o?.status))},null,8,s3)]),o?.statusMessage?(a(),l("span",{key:0,class:"status-sub",textContent:d(e.fmt?.statusMsg(o?.statusMessage)),title:o?.statusMessage},null,8,i3)):f("v-if",!0)]),n("div",{class:"cell-views num",role:"cell","data-unit":(o?.pageView||0)===1?"view":"views",textContent:d(e.fmt?.number(o?.pageView||0))},null,8,r3),n("div",{class:"cell-expires",role:"cell",textContent:d(e.fmt?.humanTime(o?.anonymizeDate))},null,8,a3),n("div",l3,[n("div",d3,[t[91]||(t[91]=n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})])],-1)),n("div",u3,[n("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+o?.repoId)},[...t[80]||(t[80]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),m(" Edit",-1)])],8,c3),n("a",{class:"dropdown-item",href:e.safeUrl("/r/"+o?.repoId+"/")},[...t[81]||(t[81]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),m(" View repo",-1)])],8,p3),o?.options?.page&&o?.status=="ready"?(a(),l("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+o?.repoId+"/")},[...t[82]||(t[82]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),m(" View page",-1)])],8,f3)):f("v-if",!0),n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.fetchGithubInfo(o),["prevent"])},[...t[83]||(t[83]=[n("i",{class:"fab fa-github"},null,-1),m(" Live GitHub info",-1)])],8,m3),t[89]||(t[89]=n("div",{class:"dropdown-divider"},null,-1)),P(n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.updateRepository(o),["prevent"])},[...t[84]||(t[84]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),m(" Force update",-1)])],8,h3),[[Q,o?.status=="ready"||o?.status=="error"]]),P(n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.updateRepository(o),["prevent"])},[...t[85]||(t[85]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),m(" Enable",-1)])],8,g3),[[Q,o?.status=="removed"]]),P(n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.showStatusMessage(o),["prevent"])},[...t[86]||(t[86]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1),m(" View status message",-1)])],8,v3),[[Q,o?.statusMessage]]),t[90]||(t[90]=n("div",{class:"dropdown-divider"},null,-1)),n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.removeCache(o),["prevent"])},[...t[87]||(t[87]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),m(" Remove cache",-1)])],8,y3),P(n("a",{class:"dropdown-item text-danger",href:"#",onClick:de(u=>e.removeRepository(o),["prevent"])},[...t[88]||(t[88]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),m(" Remove",-1)])],8,b3),[[Q,o?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(a(),l("div",w3,[...t[92]||(t[92]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1),n("span",null,"No repositories match the current filters.",-1)])])):f("v-if",!0)])])}var k3={class:"container paper-page admin-page"},C3={class:"seg-bar"},S3={class:"seg-filter",role:"radiogroup","aria-label":"Filter by status"},E3=["aria-checked"],N3={class:"count"},R3=["aria-checked"],T3={class:"count"},P3=["aria-checked"],D3={class:"count"},A3=["aria-checked"],I3={class:"count"},O3={class:"seg-countline",role:"status"},M3={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},V3={class:"w-100 admin-filter-toolbar","aria-label":"Users","accept-charset":"UTF-8"},q3={class:"admin-filter-row"},L3={class:"search-wrap"},_3={type:"search",class:"form-control","aria-label":"Search users",placeholder:"Search username or email\u2026",autocomplete:"off"},$3={key:0,class:"admin-search-hint"},F3={class:"admin-filter-inline"},U3={class:"form-control form-control-sm"},B3={key:0,class:"admin-filter-inline","aria-label":"Pagination"},z3=["disabled"],H3={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},j3=["disabled"],G3={key:0,class:"admin-filter-row"},W3={class:"admin-active-chips"},K3={class:"key"},Y3=["onClick"],J3={key:1,class:"bulk-bar"},X3={class:"paper-table w-100",role:"table","aria-label":"Users",style:{"--cols":"28px minmax(280px, 2.4fr) 100px 140px 140px 52px"}},Q3={class:"paper-table-head admin-users-row",role:"row"},Z3={role:"columnheader",style:{width:"28px"}},x3=["checked"],eI={role:"columnheader"},tI={role:"columnheader"},nI={role:"cell",style:{width:"28px"}},oI={type:"checkbox","aria-label":"Select user"},sI={class:"cell-anon",role:"cell"},iI=["src"],rI={key:1,class:"avatar-fallback","aria-hidden":"true"},aI={class:"anon-text"},lI={class:"user-name-line"},dI=["textContent","href"],uI=["href","title","aria-label"],cI={class:"anon-sub meta-dots"},pI=["title"],fI={key:1},mI={class:"cell-views num",role:"cell"},hI=["title","textContent","href"],gI={class:"cell-status",role:"cell"},vI=["textContent"],yI={class:"cell-status",role:"cell"},bI={key:0,class:"role-pill"},wI={key:1,class:"empty-dash"},kI={class:"cell-actions",role:"cell"},CI={class:"dropdown"},SI={class:"dropdown-menu dropdown-menu-right"},EI=["href"],NI=["href"],RI=["onClick"],TI=["onClick"],PI={key:0,class:"paper-table-empty"},DI={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},AI={key:0,class:"pagination-compact"},II=["disabled"],OI=["max"],MI=["disabled"],VI={class:"admin-filter-inline"},qI={class:"form-control form-control-sm"};function gp(e,t){let s=Pe("field"),i=Pe("form");return a(),l("div",k3,[t[53]||(t[53]=Ce('
Admin \xA0/\xA0 Users

Users

',3)),n("div",C3,[n("div",S3,[n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:!e.query?.status}]),"aria-checked":!e.query?.status,onClick:t[0]||(t[0]=o=>{e.query.status="",e.query.page=1})},[t[14]||(t[14]=m("All ",-1)),n("span",N3,d(e.fmt?.number(e.statusCountFor("active")+e.statusCountFor("banned")+e.statusCountFor("removed"))),1)],10,E3),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.query?.status==="active","is-empty":!e.statusCountFor("active")}]),"aria-checked":e.query?.status==="active",onClick:t[1]||(t[1]=o=>{e.query.status="active",e.query.page=1})},[t[15]||(t[15]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[16]||(t[16]=m("Active ",-1)),n("span",T3,d(e.fmt?.number(e.statusCountFor("active"))),1)],10,R3),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.query?.status==="banned","is-empty":!e.statusCountFor("banned")}]),"aria-checked":e.query?.status==="banned",onClick:t[2]||(t[2]=o=>{e.query.status="banned",e.query.page=1})},[t[17]||(t[17]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[18]||(t[18]=m("Banned ",-1)),n("span",D3,d(e.fmt?.number(e.statusCountFor("banned"))),1)],10,P3),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.query?.status==="removed","is-empty":!e.statusCountFor("removed")}]),"aria-checked":e.query?.status==="removed",onClick:t[3]||(t[3]=o=>{e.query.status="removed",e.query.page=1})},[t[19]||(t[19]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[20]||(t[20]=m("Removed ",-1)),n("span",I3,d(e.fmt?.number(e.statusCountFor("removed"))),1)],10,A3)]),n("p",O3,[n("strong",null,d(e.total>=0?e.fmt.number(e.total):"\u2026"),1),t[21]||(t[21]=m(" shown",-1))])]),e.fetchError?(a(),l("div",M3,[t[22]||(t[22]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),m(" "+d(e.fetchError),1)])):f("v-if",!0),P((a(),l("form",V3,[n("div",q3,[n("div",L3,[P(n("input",_3,null,512),[[s,{state:e.viewState,set:o=>{e.query.search=o},value:e.query?.search,form:null,options:{}}]]),e.query?.search?f("v-if",!0):(a(),l("span",$3,"/"))]),n("span",F3,[t[24]||(t[24]=n("label",null,"Role",-1)),P((a(),l("select",U3,[...t[23]||(t[23]=[n("option",{value:""},"Any",-1),n("option",{value:"admin"},"Admin",-1)])])),[[s,{state:e.viewState,set:o=>{e.query.role=o},value:e.query?.role,form:null,options:{}}]])]),t[28]||(t[28]=n("span",{class:"admin-filter-spacer"},null,-1)),n("button",{class:"btn btn-sm",type:"button",onClick:t[4]||(t[4]=o=>e.exportCsv())},[...t[25]||(t[25]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),m(" Export",-1)])]),e.totalPage>1?(a(),l("span",B3,[n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[5]||(t[5]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[26]||(t[26]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,z3),n("span",H3,d(e.query?.page)+"/"+d(e.totalPage||1),1),n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[6]||(t[6]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[27]||(t[27]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,j3)])):f("v-if",!0)]),e.chips?.length?(a(),l("div",G3,[n("div",W3,[(a(!0),l(V,null,X(e.chips,(o,r)=>(a(),l("span",{class:"admin-active-chip",key:o?.key},[n("span",K3,d(o?.label),1),n("span",null,d(o?.value),1),n("button",{type:"button",onClick:u=>e.clearFilter(o.key),"aria-label":"Clear filter"},[...t[29]||(t[29]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,Y3)]))),128))])])):f("v-if",!0)])),[[i,e.viewState]]),e.selectedCount()>0?(a(),l("div",J3,[n("span",null,[n("strong",null,d(e.selectedCount()),1),t[30]||(t[30]=m(" selected",-1))]),n("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[7]||(t[7]=o=>e.bulkBan())},[...t[31]||(t[31]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-ban"})],-1),m(" Ban",-1)])]),n("button",{class:"btn btn-sm",type:"button",onClick:t[8]||(t[8]=o=>{e.selected={},e.allSelected=!1})},"Clear")])):f("v-if",!0),n("div",X3,[n("div",Q3,[n("div",Z3,[n("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[9]||(t[9]=o=>e.selectAllOnPage()),checked:e.allSelected},null,8,x3)]),n("div",eI,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="username"}]),onClick:t[10]||(t[10]=o=>e.sortBy("username"))},[t[33]||(t[33]=m("User ",-1)),e.sortIcon("username")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("username")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[32]||(t[32]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[36]||(t[36]=n("div",{role:"columnheader",class:"num",title:"Repositories discovered on the user's GitHub account"},"GitHub repos",-1)),n("div",tI,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="status"}]),onClick:t[11]||(t[11]=o=>e.sortBy("status"))},[t[35]||(t[35]=m("Status ",-1)),e.sortIcon("status")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[34]||(t[34]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[37]||(t[37]=n("div",{role:"columnheader"},"Role",-1)),t[38]||(t[38]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(a(!0),l(V,null,X(e.filteredUsers,(o,r)=>(a(),l("div",{class:R(["paper-table-row admin-users-row",{"row-selected":e.selected[o?.username]}]),role:"row"},[n("div",nI,[P(n("input",oI,null,512),[[s,{state:e.viewState,set:u=>{e.selected[o.username]=u},value:e.selected[o?.username],form:null,options:{}}]])]),n("div",sI,[o?.photo?(a(),l("img",{key:0,width:"28",height:"28",class:"rounded-circle",style:{"flex-shrink":"0"},src:e.safeUrl(o?.photo)},null,8,iI)):(a(),l("span",rI,d((o?.username||"?").charAt(0).toUpperCase()),1)),n("div",aI,[n("span",lI,[n("a",{class:"repo-name",textContent:d(o?.username),href:e.safeUrl("/admin/users/"+o?.username)},null,8,dI),n("a",{class:"user-gh-link",target:"_blank",rel:"noopener",href:e.safeUrl("https://github.com/"+o?.username),title:o?.username+" on GitHub","aria-label":o?.username+" on GitHub"},[...t[39]||(t[39]=[n("i",{class:"fab fa-github","aria-hidden":"true"},null,-1)])],8,uI)]),n("div",cI,[o?.emails?.[0]?.email?(a(),l("span",{key:0,class:"meta-email meta-tail",title:o?.emails?.[0]?.email},d(o?.emails?.[0]?.email),9,pI)):f("v-if",!0),o?.dateOfEntry?(a(),l("span",fI,"Joined "+d(e.fmt?.humanTime(o?.dateOfEntry)),1)):f("v-if",!0)])])]),n("div",mI,[t[40]||(t[40]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1)),n("a",{title:o?.repoCount?"Show this user\u2019s repositories":"Repositories not synced yet",textContent:d(o?.repoCount?e.fmt?.number(o.repoCount):"Not synced"),class:R({"is-unsynced":!o?.repoCount}),href:e.safeUrl("/admin/repositories?owner="+o?.username)},null,10,hI)]),n("div",gI,[n("span",{class:R(["status-dot","st-"+(o?.status||"unknown")])},null,2),n("span",{textContent:d(e.fmt?.title(o?.status))},null,8,vI)]),n("div",yI,[o?.isAdmin?(a(),l("span",bI,"Admin")):f("v-if",!0),o?.isAdmin?f("v-if",!0):(a(),l("span",wI,"\u2014"))]),n("div",kI,[n("div",CI,[t[46]||(t[46]=n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})])],-1)),n("div",SI,[n("a",{class:"dropdown-item",href:e.safeUrl("/admin/users/"+o?.username)},[...t[41]||(t[41]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),m(" View details",-1)])],8,EI),n("a",{class:"dropdown-item",href:e.safeUrl("/admin/repositories?owner="+o?.username)},[...t[42]||(t[42]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1),m(" View repositories",-1)])],8,NI),t[45]||(t[45]=n("div",{class:"dropdown-divider"},null,-1)),P(n("a",{class:"dropdown-item text-danger",href:"#",onClick:de(u=>e.banUser(o),["prevent"])},[...t[43]||(t[43]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-ban"})],-1),m(" Ban",-1)])],8,RI),[[Q,o?.status=="active"]]),P(n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.activateUser(o),["prevent"])},[...t[44]||(t[44]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),m(" Activate",-1)])],8,TI),[[Q,o?.status=="removed"||o?.status=="banned"]])])])])],2))),256)),e.filteredUsers?.length==0?(a(),l("div",PI,[...t[47]||(t[47]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1),n("span",null,"No users match the current filters.",-1)])])):f("v-if",!0)]),n("div",DI,[t[52]||(t[52]=n("span",{"aria-hidden":"true"},null,-1)),e.totalPage>1?(a(),l("div",AI,[n("button",{class:"btn btn-sm",onClick:t[12]||(t[12]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[48]||(t[48]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1),m(" Previous",-1)])],8,II),P(n("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,OI),[[s,{state:e.viewState,set:o=>{e.query.page=o},value:e.query?.page,form:null,options:{}}]]),n("span",null,"of "+d(e.totalPage),1),n("button",{class:"btn btn-sm",onClick:t[13]||(t[13]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[49]||(t[49]=[m("Next ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,MI)])):f("v-if",!0),n("span",VI,[t[51]||(t[51]=n("label",null,"Per page",-1)),P((a(),l("select",qI,[...t[50]||(t[50]=[n("option",{value:"10"},"10",-1),n("option",{value:"25"},"25",-1),n("option",{value:"50"},"50",-1),n("option",{value:"100"},"100",-1)])])),[[s,{state:e.viewState,set:o=>{e.query.limit=o},value:e.query?.limit,form:null,options:{}}]])])])])}var LI={class:"anonymize-landing"},_I={class:"anonymize-landing-inner"},$I={class:"form-group mt-4 mb-2"},FI={class:"source-url-label-row"},UI={key:0,class:"repo-access","aria-label":"GitHub access"},BI={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},zI=["aria-pressed","disabled"],HI=["aria-pressed","disabled"],jI={key:1,class:"connection-badge"},GI={class:"landing-url-row"},WI={id:"sourceUrl-landing",onblur:"this.scrollLeft=0",type:"text",class:"form-control form-control-lg",placeholder:"https://github.com/owner/repository"},KI=["aria-disabled"],YI={key:0,class:"text-danger",role:"alert"},JI={class:"repo-picker","aria-labelledby":"repo-picker-title"},XI={class:"repo-picker-head"},QI={class:"repo-picker-title"},ZI={key:0,class:"repo-picker-count",role:"status"},xI=["title"],eO={class:"repo-picker-tools"},tO=["aria-busy","title"],nO={key:0,class:"repo-picker-list","aria-busy":"true","aria-label":"Loading your repositories"},oO={class:"repo-picker-row is-skeleton","aria-hidden":"true"},sO={key:1,class:"repo-picker-list"},iO=["title"],rO={class:"repo-picker-owner"},aO={class:"repo-picker-repo"},lO=["onClick","aria-label"],dO={key:2,class:"repo-picker-state",role:"status"},uO={key:3,class:"repo-picker-state"},cO={key:4,class:"repo-picker-state",role:"alert"},pO={key:5,class:"repo-picker-pagination","aria-label":"Repository pages"},fO=["disabled"],mO={class:"repo-picker-count",role:"status"},hO=["disabled"],gO={key:6,class:"repo-picker-access"},vO={key:1,class:"connection-link",href:"/connections"},yO={class:"anonymize-workspace"},bO={class:"anonymize-topbar"},wO={class:"anonymize-topbar-inner"},kO={class:"paper-crumbs"},CO={class:"here"},SO={class:"anonymize-topbar-head"},EO={class:"paper-page-title anonymize-topbar-title"},NO={key:0},RO={key:1},TO={class:"paper-page-lede anonymize-topbar-lede"},PO={key:0,class:"task-trail flow-trail","aria-label":"Anonymization steps"},DO={key:0,class:"alert alert-info",role:"status"},AO={key:1,class:"alert alert-info",role:"status"},IO={key:1},OO={class:"anonymize-mobile-tabs",role:"tablist","aria-label":"Anonymization workspace"},MO=["aria-selected","tabindex"],VO=["aria-selected","tabindex"],qO={class:"anonymize-split"},LO=["role","aria-labelledby"],_O={class:"form needs-validation paper-settings-main",name:"anonymize",novalidate:""},$O={class:"anonymize-fields"},FO={class:"paper-settings-section"},UO={class:"form-group"},BO={class:"source-url-label-row"},zO={key:0,class:"repo-access","aria-label":"GitHub access"},HO={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},jO=["aria-pressed","disabled"],GO=["aria-pressed","disabled"],WO={key:1,class:"connection-badge"},KO=["disabled"],YO={key:0,class:"source-summary"},JO={key:1,class:"source-error",role:"alert"},XO={class:"invalid-feedback"},QO={key:0,class:"source-error-note"},ZO={key:1,class:"repo-access-controls"},xO={key:1,class:"btn btn-ink",href:"/connections"},e5={key:2,class:"btn btn-ink",href:"/dashboard"},t5={key:0,class:"repo-access-details","aria-label":"Previous repository configuration"},n5={key:0,class:"form-group"},o5=["value"],s5={key:1},i5={class:"repo-access-controls"},r5=["href"],a5={key:1,class:"repo-access-details","aria-label":"Publication"},l5={class:"repo-access-note"},d5={key:2,class:"form-text text-muted source-public-note"},u5=["open"],c5={key:0,class:"repair-step"},p5=["disabled"],f5={key:0,role:"status"},m5={class:"repair-step"},h5={key:0,role:"status"},g5={key:4,class:"form-grid-2"},v5={class:"form-group"},y5={class:"input-group"},b5={class:"form-control",id:"branch",name:"branch"},w5=["textContent","value"],k5={class:"input-group-append"},C5={class:"form-group"},S5=["disabled"],E5={class:"invalid-feedback"},N5={class:"invalid-feedback"},R5={class:"form-check-input",type:"checkbox",id:"update",name:"update","aria-describedby":"update-help"},T5={class:"form-check-label",for:"update"},P5={key:0,class:"paid-tag"},D5={key:0,class:"form-text text-muted",id:"update-help"},A5={key:1,class:"form-text text-muted auto-update-paid",id:"update-help"},I5={class:"paper-settings-section"},O5={class:"form-group"},M5=["disabled"],V5={class:"form-text text-muted anon-url-echo"},q5={class:"anon-url-id"},L5={class:"invalid-feedback"},_5={class:"form-group"},$5=["disabled"],F5={class:"form-text text-muted anon-url-echo"},U5={class:"anon-url-id"},B5={class:"invalid-feedback"},z5={class:"form-group"},H5=["disabled"],j5={class:"form-text text-muted anon-url-echo"},G5={class:"anon-url-id"},W5={class:"invalid-feedback"},K5={class:"form-group"},Y5=["rows"],J5={class:"redaction-syntax"},X5={class:"form-text text-muted"},Q5=["onClick"],Z5={key:0,class:"term-hint-more"},x5={class:"invalid-feedback"},e8={class:"preserve-row"},t8={class:"preserve-row-text"},n8={class:"preserve-row-value"},o8=["disabled"],s8={class:"preserve-tree"},i8={key:0,class:"preserve-status"},r8={key:1,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},a8=["aria-expanded","aria-label","onClick"],l8={key:1,class:"preserve-caret-space"},d8=["id","aria-label","checked",".indeterminate","disabled","onChange"],u8=["for","onClick"],c8={key:2,class:"preserve-note"},p8={key:0,class:"preserve-status"},f8={key:0,class:"preserve-status"},m8=["open"],h8={class:"preserve-foot"},g8={class:"preserve-count","aria-live":"polite"},v8={class:"preserve-actions"},y8={class:"paper-settings-section"},b8={class:"form-check"},w8={class:"form-check-input",type:"checkbox",id:"link",name:"link"},k8={class:"form-check"},C8={class:"form-check-input",type:"checkbox",id:"image",name:"image"},S8={class:"form-check"},E8={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},N8={class:"form-check"},R8={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},T8={class:"form-check"},P8=["disabled"],D8={key:0,class:"form-text text-muted"},A8={key:1,class:"form-text text-muted"},I8={key:0,class:"form-text text-muted"},O8={class:"form-check"},M8={class:"form-check-input",type:"checkbox",id:"title-gist",name:"title-gist"},V8={class:"form-check"},q8={class:"form-check-input",type:"checkbox",id:"content-gist",name:"content-gist"},L8={class:"form-check"},_8={class:"form-check-input",type:"checkbox",id:"comments-gist",name:"comments-gist"},$8={class:"form-check"},F8={class:"form-check-input",type:"checkbox",id:"username-gist",name:"username-gist"},U8={class:"form-check"},B8={class:"form-check-input",type:"checkbox",id:"date-gist",name:"date-gist"},z8={class:"form-check"},H8={class:"form-check-input",type:"checkbox",id:"origin-gist",name:"origin-gist"},j8={class:"form-check"},G8={class:"form-check-input",type:"checkbox",id:"title",name:"title"},W8={class:"form-check"},K8={class:"form-check-input",type:"checkbox",id:"body",name:"body"},Y8={class:"form-check"},J8={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},X8={class:"form-check"},Q8={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},Z8={class:"form-check"},x8={class:"form-check-input",type:"checkbox",id:"username",name:"username"},e6={class:"form-check"},t6={class:"form-check-input",type:"checkbox",id:"date",name:"date"},n6={class:"form-check"},o6={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},s6={class:"paper-settings-section hosting-settings",id:"repository-hosting","aria-labelledby":"hosting-heading"},i6={class:"form-group conference-field"},r6=["href"],a6={class:"invalid-feedback"},l6={class:"form-text text-muted"},d6={key:0,class:"hosting-usage"},u6={key:0},c6={key:1},p6={key:2},f6={key:1,class:"hosting-limit auto-update-note",role:"status"},m6={key:2,class:"hosting-payment"},h6={key:0,class:"hosting-limit",role:"status"},g6={key:1,class:"hosting-options"},v6={class:"hosting-options-title"},y6=["value","checked","onChange"],b6={class:"hosting-option-body"},w6={key:0,class:"hosting-cycle billing-toggle",role:"radiogroup","aria-label":"Billing frequency"},k6=["aria-checked","onClick"],C6={key:0,class:"billing-toggle-save"},S6={class:"hosting-option-price"},E6={key:2,role:"status"},N6={key:3,class:"hosting-terms"},R6={key:4,class:"hosting-terms"},T6={key:5,class:"capacity-options"},P6=["disabled"],D6={key:3,class:"hosting-subhead"},A6={class:"expiration-choices"},I6={class:"expiration-choice"},O6=["checked","disabled"],M6={key:0,class:"dated-options"},V6={key:0,class:"hosting-date"},q6=["min","max"],L6={key:0,class:"date-echo","aria-live":"polite"},_6={class:"invalid-feedback"},$6={class:"invalid-feedback"},F6={class:"hosting-property"},U6={key:1,class:"expiration-choice"},B6=["checked","disabled"],z6={key:0},H6={key:4,class:"form-text text-muted"},j6={key:5,class:"inline-hosting"},G6={key:0,role:"alert",class:"text-danger"},W6={key:1,role:"alert",class:"text-danger"},K6=["disabled"],Y6={key:2,role:"status"},J6={key:3,role:"status",class:"form-text text-muted"},X6={key:4,class:"hosting-terms"},Q6={key:5,class:"hosting-terms"},Z6={key:6,class:"repository-pass"},x6=["disabled","onClick"],eM={class:"paper-settings-section"},tM={class:"form-group"},nM={style:{position:"relative"}},oM={type:"text",id:"coauthorSearch",class:"form-control",placeholder:"Search GitHub username\u2026",autocomplete:"off"},sM={class:"dropdown-menu show",style:{display:"block","max-height":"220px","overflow-y":"auto",width:"100%"}},iM=["onClick"],rM=["src"],aM=["textContent"],lM=["textContent"],dM={class:"coauthor-list"},uM={class:"coauthor-row d-flex align-items-center",style:{padding:"6px 0",gap:"8px"}},cM=["src"],pM=["textContent","href"],fM=["onClick"],mM={class:"form-text text-muted"},hM=["textContent"],gM={class:"anonymize-submit-bar"},vM=["disabled"],yM=["disabled"],bM=["disabled"],wM=["disabled"],kM=["disabled"],CM=["disabled"],SM={key:5,class:"submit-reason",role:"status"},EM={key:6,class:"checkout-return-note"},NM={key:7,class:"draft-status",role:"status"},RM={key:8,class:"draft-status"},TM=["role","aria-labelledby"],PM={class:"rp-caption"},DM=["aria-expanded"],AM=["title"],IM={class:"redact-slot","aria-hidden":"true"},OM={key:2,class:"rp-count rp-count-none"},MM=["href"],VM=["aria-pressed"],qM={class:"rp-open-icon",viewBox:"0 0 16 16","aria-hidden":"true"},LM={key:0,d:"M9.5 2.5h4v4M13.5 2.5 9 7M6.5 13.5h-4v-4M2.5 13.5 7 9"},_M={key:1,d:"M13.5 6.5h-4v-4M9.5 6.5 14 2M2.5 9.5h4v4M6.5 9.5 2 14"},$M={class:"rp-window"},FM={class:"rp-chrome","aria-hidden":"true"},UM={class:"rp-url"},BM={class:"rp-bar","aria-hidden":"true"},zM={key:0,class:"rp-bar-id"},HM={key:1,class:"rp-bar-kind"},jM={class:"leftCol-head"},GM={class:"leftCol-body"},WM={key:0,class:"rp-state rp-loading",role:"status"},KM={class:"rp-state-text"},YM={class:"rp-state rp-error"},JM={key:0,class:"rp-state-actions"},XM={key:1,class:"btn btn-ink btn-sm",href:"/connections"},QM={key:2,class:"btn btn-ink btn-sm",href:"/dashboard"},ZM={class:"rp-state rp-error",role:"alert"},xM={class:"rp-state-actions"},eV={class:"rp-state rp-error",role:"alert"},tV={class:"rp-state-actions"},nV={key:4,class:"rp-state rp-empty"},oV={key:6,class:"anonymize-preview-body"},sV={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},iV={class:"pr-title mb-1"},rV={key:0},aV=["textContent"],lV={key:0},dV={key:1},uV={key:2},cV={class:"pr-comments mt-3"},pV={class:"pr-comment"},fV={class:"pr-comment-head"},mV=["textContent"],hV={key:0,class:"pr-comment-date"},gV={key:3},vV={class:"pr-comments"},yV={class:"pr-comment"},bV={class:"pr-comment-head"},wV={key:0,class:"pr-comment-author"},kV=["textContent"],CV=["textContent"],SV={key:0,class:"pr-comment-body"},EV={key:7,class:"anonymize-preview-body"},NV={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},RV={class:"pr-title mb-1"},TV={key:0},PV=["textContent"],DV={key:0},AV={key:1,class:"pr-body"},IV={key:2,class:"paper-tabs",role:"tablist"},OV=["aria-selected","tabindex"],MV=["aria-selected","tabindex"],VV=["textContent"],qV={key:3,class:"anonymize-preview-status"},LV={class:"paper-tab-content"},_V={key:0,role:"tabpanel",id:"preview-pr-diff-panel","aria-labelledby":"preview-pr-diff-tab"},$V=["innerHTML"],FV={key:1,role:"tabpanel",id:"preview-pr-comments-panel","aria-labelledby":"preview-pr-comments-tab"},UV={class:"pr-comments"},BV={class:"pr-comment"},zV={class:"pr-comment-head"},HV={key:0,class:"pr-comment-author"},jV=["textContent"],GV=["textContent"],WV={key:0,class:"pr-comment-body"},KV={key:8,class:"rp-more"},YV=["href"],JV={key:2,class:"rp-more-btn is-hint","aria-hidden":"true"};function vp(e,t){let s=Qe("tree"),i=Qe("partial-view"),o=Qe("gist-file"),r=Qe("markdown"),u=Pe("field"),p=Pe("form");return a(),l("div",{class:R(["anonymize-page h-100",{"mobile-preview-active":e.mobilePane==="preview","preview-expanded":e.previewExpanded}])},[f(" ===== STATE 1: No URL \u2014 centered input ===== "),P(n("div",LI,[n("div",_I,[t[72]||(t[72]=Ce('
My work \xA0/\xA0 New anonymization

New anonymization

Paste a repository, pull request, or gist URL, or pick one of your repositories. You\u2019ll choose the terms to redact next.

  1. 1. Repository
  2. 2. Review and hosting
  3. 3. Review link
',2)),n("div",$I,[n("div",FI,[t[63]||(t[63]=n("label",{class:"paper-field-label",for:"sourceUrl-landing"},"Source URL",-1)),!e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(a(),l("aside",UI,[!e.isUpdate&&e.detectedType!=="gist"?(a(),l("div",BI,[n("button",{type:"button","aria-pressed":e.githubConnection==="github-app",disabled:e.githubConnection==="github-app",onClick:t[0]||(t[0]=c=>e.chooseGitHubConnection("github-app"))},[...t[62]||(t[62]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),m(),n("span",{class:"sr-only"},"Read-only ",-1),m("GitHub App",-1)])],8,zI),n("button",{type:"button","aria-pressed":e.githubConnection==="oauth",disabled:e.githubConnection==="oauth",onClick:t[1]||(t[1]=c=>e.chooseGitHubConnection("oauth"))},"Legacy OAuth",8,HI)])):f("v-if",!0),e.isUpdate||e.detectedType==="gist"?(a(),l("span",jI,d((e.detectedType==="gist"?e.githubConnections?.gistConnection==="github-app":e.githubConnection==="github-app")?"Read-only GitHub App":"Legacy OAuth"),1)):f("v-if",!0)])):f("v-if",!0)]),n("div",GI,[P(n("input",WI,null,512),[[u,{state:e.viewState,set:c=>{e.sourceUrl=c},value:e.sourceUrl,form:null,options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]]),n("button",{type:"button",class:"btn btn-primary landing-continue","aria-disabled":e.sourceUrl?.trim()?null:"true",onClick:t[2]||(t[2]=c=>e.sourceUrl?.trim()&&e.urlSelected())},"Continue",8,KI)])]),e.sourceUrlError?(a(),l("p",YI,d(e.sourceUrlError),1)):f("v-if",!0),t[73]||(t[73]=n("small",{class:"form-text landing-help",style:{color:"var(--ink-muted)"}}," Repository, pull request (\u2026/pull/42) and gist (gist.github.com/\u2026) URLs are all accepted. ",-1)),n("section",JI,[n("div",XI,[n("div",QI,[t[64]||(t[64]=n("h2",{id:"repo-picker-title"},"Your repositories",-1)),e.userReposStatus==="loading"?(a(),l("span",ZI,d(e.userRepoFilter.trim()?"Searching repositories\u2026":"Loading repositories\u2026"),1)):e.userReposStatus==="ready"&&e.userReposUpdatedLabel()?(a(),l("span",{key:1,class:"repo-picker-count repo-picker-updated",role:"status",title:e.userReposUpdatedTitle()},d(e.userReposUpdatedLabel()),9,xI)):f("v-if",!0)]),n("div",eO,[P(n("input",{type:"search",class:"form-control repo-picker-filter",placeholder:"Search repositories\u2026","aria-label":"Search your repositories",autocomplete:"off",maxlength:"200","onUpdate:modelValue":t[3]||(t[3]=c=>e.userRepoFilter=c)},null,512),[[nt,e.userRepoFilter]]),e.userReposStatus==="ready"?(a(),l("button",{key:0,type:"button",class:R(["btn btn-icon repo-picker-refresh",{"is-busy":e.userReposSyncing}]),"aria-busy":e.userReposSyncing?"true":null,onClick:t[4]||(t[4]=c=>e.refreshUserRepos()),title:e.userReposWebhooks?"Refresh from GitHub":"Refresh from GitHub to see new repositories","aria-label":"Refresh your repositories from GitHub"},[...t[65]||(t[65]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1)])],10,tO)):f("v-if",!0)])]),e.userReposStatus==="loading"||e.userReposStatus==="idle"?(a(),l("ul",nO,[(a(),l(V,null,X([1,2,3,4],(c,v)=>n("li",oO,[n("span",{class:"skeleton skeleton-line",style:Ae({width:34+c*9+"%"})},null,4)])),64))])):f("v-if",!0),e.userReposStatus==="ready"&&e.userRepos.length>0?(a(),l("ul",sO,[(a(!0),l(V,null,X(e.userRepos,(c,v)=>(a(),l("li",{key:c.id||c.fullName,class:"repo-picker-row"},[t[67]||(t[67]=n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1)),n("span",{class:"repo-picker-name",title:c.fullName},[n("span",rO,[m(d(c.fullName.split("/")[0]),1),t[66]||(t[66]=n("span",{class:"repo-picker-slash"},"/",-1))]),n("span",aO,d(c.fullName.split("/").slice(1).join("/")),1)],8,iO),n("button",{type:"button",class:"btn btn-outline-ink btn-sm repo-picker-select",onClick:h=>e.selectUserRepo(c),"aria-label":"Select "+c.fullName},"Select",8,lO)]))),128))])):f("v-if",!0),e.userReposStatus==="ready"&&e.userRepos.length===0&&e.userRepoFilter.trim()?(a(),l("p",dO,d(e.userRepoNext!==null?"No matches yet. Continue searching the remaining repositories.":e.userRepoPage>1?"No more matching repositories.":"No matching repositories found."),1)):f("v-if",!0),e.userReposStatus==="ready"&&e.userRepos.length===0&&!e.userRepoFilter.trim()?(a(),l("p",uO,"No repositories found. Paste a URL above, or grant access below.")):f("v-if",!0),e.userReposStatus==="error"?(a(),l("p",cO,[t[68]||(t[68]=m("Your repositories could not be loaded. ",-1)),n("button",{type:"button",class:"task-text-button",onClick:t[5]||(t[5]=c=>e.loadUserRepos())},"Try again")])):f("v-if",!0),e.userRepoPage>1||e.userRepoNext!==null?(a(),l("nav",pO,[n("button",{type:"button",class:"btn btn-outline-ink btn-sm",disabled:e.userRepoPage===1||e.userReposStatus==="loading",onClick:t[6]||(t[6]=c=>e.changeUserRepoPage(-1))},"Previous",8,fO),n("span",mO,"Page "+d(e.userRepoPage),1),n("button",{type:"button",class:"btn btn-outline-ink btn-sm",disabled:e.userRepoNext===null||e.userReposStatus!=="ready",onClick:t[7]||(t[7]=c=>e.changeUserRepoPage(1))},d(e.userRepoFilter.trim()&&!e.userRepos.length?"Continue search":"Next"),9,hO)])):f("v-if",!0),!e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.userReposStatus==="ready"?(a(),l("p",gO,[t[71]||(t[71]=m("Don\u2019t see your repository? ",-1)),e.githubConnection!=="oauth"?(a(),l("button",{key:0,type:"button",class:"connection-link",onClick:t[8]||(t[8]=c=>e.grantGitHubAccess())},[...t[69]||(t[69]=[m("Manage GitHub access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])])):(a(),l("a",vO,[...t[70]||(t[70]=[m("Manage GitHub access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])]))])):f("v-if",!0)])])],512),[[Q,!e.workspaceOpen&&!e.isUpdate]]),f(" ===== STATE 2: URL provided \u2014 form (left) + preview (right) ===== "),P(n("div",yO,[n("header",bO,[n("div",wO,[n("div",kO,[t[74]||(t[74]=n("a",{href:"/dashboard"},"My work",-1)),t[75]||(t[75]=m(" \xA0/\xA0 ",-1)),n("span",CO,d(e.isUpdate?"Edit anonymization":"New anonymization"),1)]),n("div",SO,[n("h1",EO,[e.isUpdate?f("v-if",!0):(a(),l("span",NO,"New anonymization")),e.isUpdate?(a(),l("span",RO,"Edit anonymization")):f("v-if",!0)]),P(n("span",{class:R(["type-badge",{"type-repo":e.detectedType==="repo","type-pr":e.detectedType==="pr","type-gist":e.detectedType==="gist"}])},d(e.detectedType==="repo"?"Repository":e.detectedType==="pr"?"Pull request":"Gist"),3),[[Q,e.detectedType]])]),n("p",TO,d(e.isUpdate?"Changes apply to the existing anonymous link; reviewers keep the same URL.":"Choose the terms to redact, what reviewers see, and when the link expires."),1),e.isUpdate?f("v-if",!0):(a(),l("ol",PO,[...t[76]||(t[76]=[n("li",null,"1. Repository",-1),n("li",{"aria-current":"step"},"2. Review and hosting",-1),n("li",null,"3. Review link",-1)])]))])]),e.detectedType==="gist"&&e.gistAppRequired?(a(),l("aside",DO,[t[77]||(t[77]=n("p",null,"Reconnect your GitHub account to read this gist. Your draft will be restored when you return.",-1)),n("button",{type:"button",class:"btn btn-ink",onClick:t[9]||(t[9]=c=>e.connectGistApp())},"Connect GitHub App to access gists")])):f("v-if",!0),e.detectedType==="gist"&&e.gistOAuthRequired?(a(),l("aside",AO,[t[78]||(t[78]=n("p",null,"Connect GitHub OAuth to access gists. Your account and existing anonymizations stay the same, and your draft will be restored when you return.",-1)),t[79]||(t[79]=n("p",null,"GitHub's legacy OAuth connection includes write access to private repositories.",-1)),e.githubConnections?.oauthEnabled?(a(),l("button",{key:0,type:"button",class:"btn btn-ink",onClick:t[10]||(t[10]=c=>e.connectGistOAuth())},"Connect GitHub OAuth to access gists")):(a(),l("p",IO,"GitHub OAuth is currently unavailable. Please try again later."))])):f("v-if",!0),n("nav",OO,[n("button",{id:"workspace-settings-tab",role:"tab",type:"button","aria-selected":e.mobilePane==="settings","aria-controls":"workspace-settings",tabindex:e.mobilePane==="settings"?0:-1,onKeydown:t[11]||(t[11]=c=>e.previewTabKeydown(c)),onClick:t[12]||(t[12]=c=>e.selectMobilePane("settings"))},[...t[80]||(t[80]=[n("span",{class:"tab-label"},"Settings",-1)])],40,MO),n("button",{id:"workspace-preview-tab",role:"tab",type:"button","aria-selected":e.mobilePane==="preview","aria-controls":"workspace-preview",tabindex:e.mobilePane==="preview"?0:-1,onKeydown:t[13]||(t[13]=c=>e.previewTabKeydown(c)),onClick:t[14]||(t[14]=c=>e.selectMobilePane("preview"))},[...t[81]||(t[81]=[n("span",{class:"tab-label"},"Reviewer preview",-1)])],40,VO)]),n("div",qO,[f(" Form column (left) "),n("div",{id:"workspace-settings",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-settings-tab":null,class:"anonymize-form-col overflow-auto"},[P((a(),l("form",_O,[n("div",$O,[n("section",FO,[t[100]||(t[100]=n("h2",{class:"paper-section-eyebrow"},"Source & access",-1)),n("div",UO,[n("div",BO,[t[83]||(t[83]=n("label",{class:"paper-field-label",for:"sourceUrl"},"Source URL",-1)),e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(a(),l("aside",zO,[!e.isUpdate&&e.detectedType!=="gist"?(a(),l("div",HO,[n("button",{type:"button","aria-pressed":e.githubConnection==="github-app",disabled:e.githubConnection==="github-app",onClick:t[15]||(t[15]=c=>e.chooseGitHubConnection("github-app"))},[...t[82]||(t[82]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),m(),n("span",{class:"sr-only"},"Read-only ",-1),m("GitHub App",-1)])],8,jO),n("button",{type:"button","aria-pressed":e.githubConnection==="oauth",disabled:e.githubConnection==="oauth",onClick:t[16]||(t[16]=c=>e.chooseGitHubConnection("oauth"))},"Legacy OAuth",8,GO)])):f("v-if",!0),e.isUpdate||e.detectedType==="gist"?(a(),l("span",WO,d((e.detectedType==="gist"?e.githubConnections?.gistConnection==="github-app":e.githubConnection==="github-app")?"Read-only GitHub App":"Legacy OAuth"),1)):f("v-if",!0)])):f("v-if",!0)]),P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.anonymize?.sourceUrl?.invalid}]),name:"sourceUrl",id:"sourceUrl",onblur:"this.scrollLeft=0",disabled:e.isUpdate&&e.detectedType!=="repo",placeholder:"Paste a GitHub repo or pull request URL"},null,10,KO),[[u,{state:e.viewState,set:c=>{e.sourceUrl=c},value:e.sourceUrl,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]]),e.sourceSummary()&&!e.anonymize?.sourceUrl?.invalid?(a(),l("p",YO,[t[84]||(t[84]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check"})],-1)),m(d(e.sourceSummary()),1)])):f("v-if",!0),e.sourceProblem()&&e.sourceProblem().kind!=="connect"?(a(),l("div",JO,[n("p",XO,d(e.sourceProblem().text),1),e.sourceProblem().note?(a(),l("p",QO,d(e.sourceProblem().note),1)):f("v-if",!0),e.sourceProblem().manage||e.sourceProblem().retry||e.sourceProblem().dashboard?(a(),l("div",ZO,[e.sourceProblem().manage==="app"?(a(),l("button",{key:0,type:"button",class:"btn btn-ink",onClick:t[17]||(t[17]=c=>e.grantGitHubAccess())},[...t[85]||(t[85]=[m("Manage GitHub access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])])):f("v-if",!0),e.sourceProblem().manage==="link"?(a(),l("a",xO,"Manage GitHub access")):f("v-if",!0),e.sourceProblem().dashboard?(a(),l("a",e5,"Open My work")):f("v-if",!0),e.sourceProblem().retry?(a(),l("button",{key:3,type:"button",class:"btn btn-outline-ink",onClick:t[18]||(t[18]=c=>e.urlSelected(!0))},"Try again")):f("v-if",!0)])):f("v-if",!0)])):f("v-if",!0)]),!e.isUpdate&&e.previousConfigurations.length?(a(),l("aside",t5,[t[87]||(t[87]=n("p",{role:"status"},"You have already anonymized this repository. Use the existing configuration to keep its anonymous link and avoid creating another repository.",-1)),e.previousConfigurations.length>1?(a(),l("div",n5,[t[86]||(t[86]=n("label",{class:"paper-field-label",for:"previousConfiguration"},"Previous anonymization",-1)),P(n("select",{id:"previousConfiguration",class:"form-control","onUpdate:modelValue":t[19]||(t[19]=c=>e.previousConfigurationId=c)},[(a(!0),l(V,null,X(e.previousConfigurations,c=>(a(),l("option",{key:c.repoId,value:c.repoId},d(c.repoId),9,o5))),128))],512),[[Nt,e.previousConfigurationId]])])):(a(),l("p",s5,d(e.previousConfigurationId),1)),t[88]||(t[88]=n("p",null,"You can review and update its settings before saving.",-1)),n("div",i5,[n("a",{class:"btn btn-ink",href:e.existingConfigurationUrl()},"Use existing configuration",8,r5),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[20]||(t[20]=c=>e.previousConfigurations=[])},"Create a separate one")])])):f("v-if",!0),e.details&&e.sourceIsPrivate()?(a(),l("aside",a5,[n("div",l5,[n("span",null,[t[89]||(t[89]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1)),m(" "+d(e.detectedType==="gist"?"This secret gist will be published at a public link.":"Selected content will be published, including content from private repositories."),1)])])])):e.details?(a(),l("p",d5,"Anonymized content is public.")):f("v-if",!0),e.isUpdate&&e.detectedType==="repo"&&e.role==="owner"&&e.sourceUrl==="https://github.com/"+e._originalFullName?(a(),l("details",{key:3,class:"repair-disclosure",open:!!(e.error||e.sourceError||e.accessRepairMessage||e.reconnectRepositoryId)},[t[93]||(t[93]=n("summary",null,"Connection problems?",-1)),e.accessRepairAllowed&&e.githubConnections?.appEnabled&&e.githubConnection==="github-app"&&e.sourceUrl==="https://github.com/"+e._originalFullName?(a(),l("div",c5,[t[91]||(t[91]=n("p",null,"If this repository became private or its App installation changed, repair its access here. This keeps the same anonymous URL and published commit.",-1)),n("button",{type:"button",class:"btn btn-outline-ink",disabled:e.repairingGitHubAccess,onClick:t[21]||(t[21]=c=>e.repairGitHubAccess())},"Repair GitHub access",8,p5),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[22]||(t[22]=c=>e.grantGitHubAccess())},[...t[90]||(t[90]=[m("Manage GitHub access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])]),e.accessRepairMessage?(a(),l("p",f5,d(e.accessRepairMessage),1)):f("v-if",!0)])):f("v-if",!0),n("div",m5,[t[92]||(t[92]=n("p",null,"If you deleted and recreated this repository, reconnect it before choosing a branch.",-1)),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[23]||(t[23]=c=>e.reconnectSource())},"Reconnect source repository"),e.reconnectRepositoryId?(a(),l("p",h5,"Source reloaded. Review the branch, commit, and anonymization preview, then save to replace the published snapshot.")):f("v-if",!0)])],8,u5)):f("v-if",!0),e.detectedType==="repo"?P((a(),l("div",g5,[n("div",v5,[t[95]||(t[95]=n("label",{class:"paper-field-label",for:"branch"},"Branch",-1)),n("div",y5,[P((a(),l("select",b5,[(a(!0),l(V,null,X(e.branches,(c,v)=>(a(),l("option",{textContent:d(c?.name),value:c?.name},null,8,w5))),256))])),[[u,{state:e.viewState,set:c=>{e.source.branch=c},value:e.source?.branch,form:"anonymize",options:{}}]]),n("div",k5,[n("button",{class:"btn btn-icon refresh-branches",type:"button",title:"Refresh branches",onClick:t[24]||(t[24]=c=>e.getBranches(!0)),"aria-label":"Refresh branches"},[...t[94]||(t[94]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1)])])])])]),n("div",C5,[t[96]||(t[96]=n("label",{class:"paper-field-label",for:"commit"},"Commit",-1)),P(n("input",{class:R(["form-control",{"is-invalid":e.anonymize?.commit?.invalid}]),id:"commit",disabled:e.options.update,name:"commit",pattern:"[a-fA-Z0-9]{6,}",required:""},null,10,S5),[[u,{state:e.viewState,set:c=>{e.source.commit=c},value:e.source?.commit,form:"anonymize",options:{}}]]),P(n("div",E5," The commit SHA is not valid. ",512),[[Q,e.anonymize?.commit?.errors?.pattern||e.anonymize?.commit?.errors?.required]]),P(n("div",N5," This commit no longer exists in the repository. Click refresh to get the latest. ",512),[[Q,e.anonymize?.commit?.errors?.exists]])])],512)),[[Q,e.sourceReady()]]):f("v-if",!0),P(n("div",{class:R(["form-check auto-update-check",{"is-paid":!e.liveUpdatesIncluded()}])},[P(n("input",R5,null,512),[[u,{state:e.viewState,set:c=>{e.options.update=c},value:e.options?.update,form:"anonymize",options:{}}]]),n("label",T5,[t[97]||(t[97]=m("Auto-update from GitHub",-1)),e.liveUpdatesIncluded()?f("v-if",!0):(a(),l("span",P5,"Paid"))]),e.liveUpdatesIncluded()?(a(),l("small",D5,"Follows the latest version, at most once an hour.")):(a(),l("small",A5,[t[98]||(t[98]=m("Needs Live updates",-1)),e.liveUpdatesPrice()?(a(),l(V,{key:0},[m(" \xB7 "+d(e.liveUpdatesPrice()),1)],64)):f("v-if",!0),t[99]||(t[99]=m(", a Paper pack or an author subscription. ",-1)),n("a",{href:"#repository-hosting",onClick:t[25]||(t[25]=de(c=>e.showHostingOptions(),["prevent"]))},"Hosting options")]))],2),[[Q,e.detectedType&&e.sourceReady()]])]),P(n("section",I5,[t[134]||(t[134]=n("h2",{class:"paper-section-eyebrow"},"Anonymization",-1)),P(n("div",O5,[t[105]||(t[105]=n("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.anonymize?.repoId?.invalid}]),name:"repoId",id:"repoId",disabled:e.isUpdate},null,10,M5),[[u,{state:e.viewState,set:c=>{e.repoId=c},value:e.repoId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),n("small",V5,[t[101]||(t[101]=m("anonymous.4open.science/",-1)),t[102]||(t[102]=n("wbr",null,null,-1)),t[103]||(t[103]=m("r/",-1)),t[104]||(t[104]=n("wbr",null,null,-1)),n("span",q5,d(e.repoId),1)]),P(n("div",L5,"ID can only contain letters and numbers.",512),[[Q,e.anonymize?.repoId?.errors?.format]]),P(n("div",{class:"invalid-feedback"},d(e.repoId)+" is already used.",513),[[Q,e.anonymize?.repoId?.errors?.used]])],512),[[Q,e.detectedType==="repo"]]),P(n("div",_5,[t[110]||(t[110]=n("label",{class:"paper-field-label",for:"pullRequestId"},"Anonymized pull request ID",-1)),P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId",disabled:e.isUpdate},null,10,$5),[[u,{state:e.viewState,set:c=>{e.pullRequestId=c},value:e.pullRequestId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),n("small",F5,[t[106]||(t[106]=m("anonymous.4open.science/",-1)),t[107]||(t[107]=n("wbr",null,null,-1)),t[108]||(t[108]=m("pr/",-1)),t[109]||(t[109]=n("wbr",null,null,-1)),n("span",U5,d(e.pullRequestId),1)]),P(n("div",B5,"ID can only contain letters and numbers.",512),[[Q,e.anonymize?.pullRequestId?.errors?.format]]),P(n("div",{class:"invalid-feedback"},d(e.pullRequestId)+" is already used.",513),[[Q,e.anonymize?.pullRequestId?.errors?.used]])],512),[[Q,e.detectedType==="pr"]]),P(n("div",z5,[t[115]||(t[115]=n("label",{class:"paper-field-label",for:"gistId"},"Anonymized gist ID",-1)),P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.anonymize?.gistId?.invalid}]),name:"gistId",id:"gistId",disabled:e.isUpdate},null,10,H5),[[u,{state:e.viewState,set:c=>{e.gistId=c},value:e.gistId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),n("small",j5,[t[111]||(t[111]=m("anonymous.4open.science/",-1)),t[112]||(t[112]=n("wbr",null,null,-1)),t[113]||(t[113]=m("gist/",-1)),t[114]||(t[114]=n("wbr",null,null,-1)),n("span",G5,d(e.gistId),1)]),P(n("div",W5,"ID can only contain letters and numbers.",512),[[Q,e.anonymize?.gistId?.errors?.format]]),P(n("div",{class:"invalid-feedback"},d(e.gistId)+" is already used.",513),[[Q,e.anonymize?.gistId?.errors?.used]])],512),[[Q,e.detectedType==="gist"]]),n("div",K5,[t[126]||(t[126]=n("label",{class:"paper-field-label",for:"terms"},"Terms to redact",-1)),P(n("textarea",{class:R(["form-control terms-input",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:Math.min(14,Math.max(4,String(e.terms||"").split(` +`).filter(ge=>ge),source:{repositoryFullName:`${B.owner}/${B.repo}`,pullRequestId:B.pullRequestId},options:e.options,conference:e.conference};Po();let le=e.isUpdate?"/api/pr/"+e.pullRequestId:"/api/pr/";t.post(le,K,{headers:{"Content-Type":"application/json"}}).then(()=>{N.clear(),window.location.href="/pr/"+e.pullRequestId},ge=>{ge.data&&(r("ERRORS."+ge.data.error).then(He=>{e.error=He},console.error),ai(ge.data.error))}).finally(()=>{M.disabled=!1})},e.watch("conference",()=>{gf()}),e.termHints=[],e.matchTermAsWritten=C=>{e.terms=Bc(e.terms,C)},e.watch("options.preserveFiles",()=>{e.detectedType==="repo"&&Gt()}),e.watch("terms",()=>{e.termHints=Uc(e.terms),e.detectedType==="repo"&&No(),e.detectedType==="pr"&&Cn(),e.detectedType==="gist"&&Sn()}),e.watch("options.image",()=>{e.detectedType==="repo"&&No(),e.detectedType==="pr"&&Cn(),e.detectedType==="gist"&&Sn()}),e.watch("options.link",()=>{e.detectedType==="repo"&&No(),e.detectedType==="pr"&&Cn(),e.detectedType==="gist"&&Sn()}),e.watch("details",()=>{e.detectedType==="pr"&&Cn(),e.detectedType==="gist"&&Sn()},!0)},sl=function(e,t,s,i,o,r){Ra(e);let u=yt();Hc();let p=Ht(),c=0,v=null,h=null;e.fileLoadingSlow=!1,e.fileReceivedBytes=0;function y(){v&&(v.resolve(),v=null),h&&(u.timeout.cancel(h),h=null)}let g=!1;e.on("dispose",()=>{g=!0,c++,y(),k&&k.resolve()}),e.files=[],e.isMac=/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent),e.fileSearchQuery="",e.fileSearchResults=null,e.fileSearchLoading=!1,p(document,"click",I=>{e.symbolsOpen&&!I.target.closest?.(".symbols")&&(e.symbolsOpen=!1),e.moreOpen&&!I.target.closest?.(".tb-more")&&(e.moreOpen=!1),e.tocOpen&&!I.target.closest?.(".tb-toc-m")&&(e.tocOpen=!1),e.gotoOpen&&I.target.isConnected&&!I.target.closest?.(".goto-pop, .btn-goto, .tb-more")&&(e.gotoOpen=!1),e.accountOpen&&!I.target.closest?.(".acct")&&(e.accountOpen=!1),e.helpOpen&&!I.target.closest?.(".vb-help")&&(e.helpOpen=!1)}),p(document,"keydown",I=>{I.key==="Escape"&&(e.symbolsOpen=!1,e.moreOpen=!1,e.tocOpen=!1,e.gotoOpen=!1,e.accountOpen=!1,e.helpOpen=!1),(I.ctrlKey||I.metaKey)&&!I.altKey&&I.key&&I.key.toLowerCase()==="f"&&e.type==="html"&&window.document.querySelector(".reading-layout")&&(I.preventDefault(),e.toggleMdFind(!0))}),p(document,"keydown",function(I){if((I.metaKey||I.ctrlKey)&&I.key==="k"){I.preventDefault();var q=document.querySelector(".tree-search-input");q&&(q.focus(),q.select())}});var k=null;e.onFileSearchChange=function(){k&&(k.resolve(),k=null);let I=e.fileSearchQuery;if(!I||I.length<2){e.fileSearchResults=null,e.fileSearchLoading=!1;return}e.fileSearchLoading=!0;let q=r.defer();k=q,t.get(`/api/repo/${e.repoId}/files/search?q=${encodeURIComponent(I)}`,{timeout:q.promise}).then(function(E){if(!(g||k!==q)){k=null,e.fileSearchLoading=!1;var L={};e.files.forEach(function(Se){L[(Se.path||"")+"/"+Se.name]=!0});for(var G=[],j={},Y=0;Y0&&e.files.push.apply(e.files,G);for(var Xe=[],ze=0;ze0&&e.files.push.apply(e.files,Xe),e.fileSearchResults=E.data}},function(){!g&&k===q&&(k=null,e.fileSearchLoading=!1,e.fileSearchResults=[])})},e.on("routeUpdate",function(I,q){if(e.repoId!=i.repoId)return z();if((i.path||"")!=e.filePath){window.matchMedia?.("(max-width: 767px)").matches&&(e.sidebarCollapsed=!0),e.filePath=i.path||"",e.paths=e.filePath.split("/").filter(E=>E&&E.trim().length>0),_();for(let E=0;E0?e.paths.slice(0,E).join("/"):"";e.files.some(j=>j.path===L)||e.getFiles(L)}}});function w(){if(e.paths[0]!="")return;let I=["readme.md","readme.txt","readme.org","readme.1st","readme"],q={};for(let L of e.files)L.name.toLowerCase().indexOf("readme")>-1&&(q[L.name.toLowerCase()]=L.name);let E=null;for(let L of I)if(q[L]){E=L;break}if(!E&&Object.keys(q).length>0&&(E=Object.keys(q)[0]),E){let L=s.url();L[L.length-1]!="/"&&(L+="/"),s.url(L+encodePathForUrl(q[E]))}}e.fileCounts=null;let S=0,N=new Set,b=!1;e.getFiles=function(I,q=!1){let E=e.repoId,L=S;return t.get(`/api/repo/${e.repoId}/files/?path=${encodeURIComponent(I)}&v=${e.options.lastUpdateDate}`).then(function(G){if(g||E!==e.repoId||L!==S)return[];let j=I||"";return e.files=e.files.filter(Y=>Y.path!==j),e.files.push(...G.data),e.loadedFolders={...e.loadedFolders,[j]:!0},T(j,L),G.data},function(G){if(g||E!==e.repoId||L!==S)return[];q||(e.type="error",e.content=vr(G),e.files=[])})};function T(I,q){if(b||N.has(I))return;N.add(I);let E=e.repoId;t.get(`/api/repo/${e.repoId}/files/counts?path=${encodeURIComponent(I)}`).then(function(L){g||E!==e.repoId||q!==S||(e.fileCounts={...e.fileCounts,...L.data})},function(){g||E!==e.repoId||q!==S||(b=!0)})}function O(){return e.files.filter(I=>I.name==e.paths[e.paths.length-1]&&I.path==e.paths.slice(0,e.paths.length-1).join("/"))[0]}var F=null;e.on("dispose",function(){F&&u.interval.cancel(F)});function H(I){if(g)return;let q=e.repoId;t.get(`/api/repo/${e.repoId}/options`).then(E=>{if(!(g||q!==e.repoId)){if(e.options=E.data,e.options.url){window.location=e.options.url;return}I&&I(E.data)}},E=>{if(!(g||q!==e.repoId)){var L=E.data||{};if(L.error==="rate_limited"&&L.resetAt){let j=function(){var Y=Math.max(0,Math.ceil((e.rateLimitResetAt-Date.now())/1e3));if(Y<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,F&&(u.interval.cancel(F),F=null),H(I);else{var ne=Math.floor(Y/60),x=Y%60;e.rateLimitCountdown=ne>0?ne+"m "+x+"s":x+"s"}};var G=j;e.type="rate_limited",e.rateLimitResetAt=L.resetAt,F&&u.interval.cancel(F),j(),F=u.interval(j,1e3)}else L.error==="repository_not_ready"?(e.type="loading",u.timeout(function(){H(I)},3e3)):(e.type="error",e.content=vr(E))}})}function se(I,q){let E=c;if(!I){e.type="error",e.content="no_file_selected";return}let L=e.type;(L==="code"||L==="text")&&di().catch(()=>{}),e.type="loading",e.content="loading",e.fileLoadingSlow=!1,e.fileReceivedBytes=0;let G=r.defer();v=G,h=u.timeout(()=>{!g&&E===c&&e.type==="loading"&&(e.fileLoadingSlow=!0)},1500);let j=q&&q.sha||"0";t.get(`/api/repo/${e.repoId}/file/${encodePathForUrl(I)}?v=`+j,{timeout:G.promise,onDownloadProgress:Y=>{!g&&E===c&&(e.fileReceivedBytes=Y)},transformResponse:Y=>Y}).then(Y=>{g||E!==c||(y(),e.renderFileContent(Y.data,L,s.url()+"/../",Y.headers("content-type")))},Y=>{g||E!==c||(y(),e.type="error",e.content=vr(Y))})}function _(){c++,y(),e.content="",e.file=O();let I="0";e.file&&e.file.sha&&(I=e.file.sha),e.url=`/api/repo/${e.repoId}/file/${encodePathForUrl(e.filePath)}?v=${I}`;let q=e.filePath.substring(0,e.filePath.lastIndexOf("/")+1);if(e.fileBaseUrl=`/api/repo/${e.repoId}/file/${q?encodePathForUrl(q):""}`,e.showSource=!1,e.imageSize="",e.allowScripts=!1,e.prepareFile(e.filePath),e.type=="pdf"){e.content="pdf";return}if(e.type=="media"||e.type=="audio"){e.content=e.type;return}se(e.filePath,e.file)}e.isSourceAccessError=()=>["repo_not_found","token_expired","github_app_access_required","github_app_reconnect_required","repo_saml_enforcement","repo_access_limited"].includes(e.content),e.retryContent=()=>z();function z(){c++,y(),e.files=[],e.loadedFolders={},e.content=null,e.fileCounts=null,S++,N=new Set,b=!1,e.fileSearchQuery="",e.onFileSearchChange(),e.repoId=i.repoId,e.type="loading",e.filePath=i.path||"",e.paths=e.filePath.split("/");let I=e.repoId;H(function(q){if(e.filePath){_();let L=[...new Set(e.paths.map((G,j)=>e.paths.slice(0,j).join("/")))];r.all(L.map(G=>e.getFiles(G,!0)));return}var E=r.resolve();for(let L=0;L0?e.paths.slice(0,L).join("/"):"";E=E.then(function(){return e.getFiles(G)}).then(function(){if(e.type==="error")return r.reject("error")})}E.then(function(){g||I!==e.repoId||(e.files.length==1&&e.files[0].name==""?(e.files=[],e.type="empty"):(w(),_()))})})}z()},Zc=function(e,t,s,i,o){async function r(c){t.get(`/api/pr/${e.pullRequestId}/options`).then(v=>{if(e.options=v.data,e.options.url){window.location=e.options.url;return}c&&c(v.data)},v=>{e.type="error",e.content=v.data.error})}async function u(c){t.get(`/api/pr/${e.pullRequestId}/content`).then(v=>{e.details=v.data,e.tabState={active:v.data.diff?"diff":"comments"},c&&c(v.data)},v=>{e.type="error",e.content=v.data.error})}function p(){e.pullRequestId=i.pullRequestId,e.type="loading",r(c=>{u()})}p()},xc=function(e,t,s,i,o){async function r(c){t.get(`/api/gist/${e.gistId}/options`).then(v=>{if(e.options=v.data,e.options.url){window.location=e.options.url;return}c&&c(v.data)},v=>{e.type="error",e.content=v.data.error})}async function u(c){t.get(`/api/gist/${e.gistId}/content`).then(v=>{e.details=v.data;let h=v.data&&v.data.files&&v.data.files.length;e.tabState={active:h?"files":"comments"},c&&c(v.data)},v=>{e.type="error",e.content=v.data.error})}function p(){e.gistId=i.gistId,e.type="loading",r(()=>{u()})}p()},ep=function(e,t,s){e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.conferences=[],e.loading=!0,e.error="",e.search="";let i="conferences.filterPrefs",o={filters:{status:{ready:!0,expired:!1,removed:!1}},orderBy:"name"},r=loadFilterPrefs(i)||{};e.filters={status:Object.assign({},o.filters.status,r.filters&&r.filters.status||{})},e.orderBy=r.orderBy||o.orderBy,e.watch("orderBy",()=>{saveFilterPrefs(i,{filters:e.filters,orderBy:e.orderBy})}),e.watch("filters",()=>{saveFilterPrefs(i,{filters:e.filters,orderBy:e.orderBy})},!0),e.removeConference=function(u){if(!u.removing&&confirm(`Are you sure that you want to remove the conference ${u.name}? All the repositories linked to this conference will expire.`)){u.removing=!0;let p=rt({title:`Removing ${u.name}...`,date:new Date,body:`The conference ${u.name} is going to be removed.`});e.addToast(p),t.delete(`/api/conferences/${u.conferenceID}`).then(()=>{p.title=`${u.name} is removed.`,p.body=`The conference ${u.name} is removed.`,e.loadConferences()}).catch(()=>{p.title="Unable to remove conference",p.body="Please try again. The conference has not been removed."}).finally(()=>{u.removing=!1})}},e.loadConferences=()=>(e.loading=!0,e.error="",t.get("/api/conferences/").then(u=>{e.conferences=u.data||[]},u=>{e.error="Unable to load your conferences. Please try again."}).finally(()=>{e.loading=!1})),e.loadConferences(),e.conferenceFilter=u=>{if(e.filters.status[u.status]==!1)return!1;let p=e.search.trim().toLowerCase();return!!(!p||(u.name||"").toLowerCase().includes(p)||(u.conferenceID||"").toLowerCase().includes(p))}},il=function(e,t,s,i){e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/");let o=()=>{for(let[g,k,w]of[["startDate","Starts","startDate"],["endDate","Ends","endDate"]]){let S=document.getElementById(g);if(!S)continue;let N=S.parentElement.querySelector(":scope > .date-echo");N||(N=document.createElement("p"),N.className="date-echo",N.setAttribute("aria-live","polite"),S.insertAdjacentElement("afterend",N));let b=Aa(e.options?.[w]);N.textContent=b?k+" "+b:"",N.hidden=!b}};typeof e.watchGroup=="function"&&e.watchGroup(["options.startDate","options.endDate"],()=>Ge(o));let r=(g=20)=>{let k=document.querySelector("input#name.form-control"),w=document.querySelector("input#conferenceID.form-control");w&&(w.placeholder="e.g. ICSE27"),k?k.placeholder="e.g. ICSE 2027":g>0&&setTimeout(()=>r(g-1),50)};setTimeout(()=>r(),0),e.plans=[],e.plansLoaded=!1,e.conferenceBilling=null,xi(t).then(g=>{e.conferenceBilling=g.data}).catch(()=>{}),e.conferenceTiers=()=>e.plans.filter(g=>g.id!=="free_conference").map(g=>{let k=(e.conferenceBilling?.plans||[]).find(w=>w.id===g.id)||{};return{...g,storage:g.storagePerRepo,...k,id:g.id,name:g.name}}),e.conferenceAudience=g=>({conference_workshop:"Workshops and small venues",conference:"A typical conference",conference_large:"Large or multi-track venues"})[g]||"",e.conferencePlanName=g=>tp(g),e.conferenceAmount=(g,k=g?.amount)=>new Intl.NumberFormat(void 0,{style:"currency",currency:g?.currency||"eur",minimumFractionDigits:k%100?2:0,maximumFractionDigits:2}).format(k/100),e.conferenceBytes=g=>{let k=Number(g)||0,w=Math.min(4,Math.floor(Math.log2(Math.max(k,1))/10));return`${new Intl.NumberFormat(void 0,{maximumFractionDigits:1}).format(k/1024**w)} ${["B","KB","MB","GB","TB"][w]}`},e.editionMode=!1,e.saving=!1,e.error="";function u(){return t.get("/api/conferences/"+i.conferenceId).then(g=>{e.options={...e.options,...g.data,billing:g.data.billing||{}},e.options.startDate=new Date(e.options.startDate),e.options.endDate=new Date(e.options.endDate)})}i.conferenceId&&(e.editionMode=!0,u());function p(){t.get("/api/conferences/plans").then(g=>{e.plans=g.data,e.plansLoaded=!0,!e.editionMode&&e.plans.length&&!e.plans.some(k=>k.id==e.options.plan.planID)&&(e.options.plan.planID=(e.plans.find(k=>k.id==="conference")||e.plans[0]).id),e.plan=e.plans.filter(k=>k.id==e.options.plan.planID)[0]})}p();let c=new Date;c.setDate(1),c.setMonth(c.getMonth()+1);let v=new Date(c);v.setTime(c.getTime()+179*864e5),e.options={billing:{},startDate:c,endDate:v,plan:{planID:"free_conference"},options:{link:!0,image:!0,pdf:!0,notebook:!0,update:!0,page:!0}},e.plan=null,e.watch("options.plan.planID",()=>{e.plan=e.plans.filter(g=>g.id==e.options.plan.planID)[0]});function h(){e.conference.name.setValidity("required",!0),e.conference.conferenceID.setValidity("pattern",!0),e.conference.conferenceID.setValidity("required",!0),e.conference.conferenceID.setValidity("used",!0),e.conference.startDate.setValidity("required",!0),e.conference.startDate.setValidity("invalid",!0),e.conference.endDate.setValidity("required",!0),e.conference.endDate.setValidity("invalid",!0),e.conference.setValidity("error",!0)}function y(g){switch(g){case"conf_name_missing":e.conference.name.setValidity("required",!1);break;case"conf_id_missing":e.conference.conferenceID.setValidity("required",!1);break;case"conf_id_format":e.conference.conferenceID.setValidity("pattern",!1);break;case"conf_id_used":e.conference.conferenceID.setValidity("used",!1);break;case"conf_start_date_missing":e.conference.startDate.setValidity("required",!1);break;case"conf_end_date_missing":e.conference.endDate.setValidity("required",!1);break;case"conf_start_date_invalid":e.conference.startDate.setValidity("invalid",!1);break;case"conf_end_date_invalid":e.conference.endDate.setValidity("invalid",!1);break;default:e.conference.setValidity("error",!1);break}}e.submit=function(){if(e.saving)return;e.saving=!0,e.error="";let g=JSON.parse(JSON.stringify(e.options)),k=rt({title:`Creating ${g.name}...`,date:new Date,body:`The conference ${g.conferenceID} is in creation.`});e.editionMode&&(k.title=`Updating ${g.name}...`,k.body=`The conference '${g.conferenceID}' is updating.`),e.addToast(k),h(),t.post("/api/conferences/"+(e.editionMode?g.conferenceID:""),g).then(()=>{e.editionMode?(k.title=`${g.name} updated`,k.body=`The conference '${g.conferenceID}' is updated.`):(k.title=`${g.name} created`,k.body=`The conference '${g.conferenceID}' is created.`),s.url("/conference/"+g.conferenceID)},w=>{y(w.data?.error),e.error="Unable to save the conference. Please correct any highlighted fields and try again.",e.removeToast(k)}).finally(()=>{e.saving=!1})}};function tp(e){return{free_conference:"Free (no longer offered to new conferences)",conference_workshop:"Workshop package",conference:"Conference package",conference_large:"Large conference package",premium_conference:"Premium (legacy)",unlimited_conference:"Unlimited (legacy)"}[e]||e||"Free"}var np=function(e,t,s,i){er(e,t,()=>p(),{confirmedMessage:"Payment status checked. Your conference is ready for submissions once payment is confirmed."}),e.conferencePlanName=c=>tp(c),e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.conference=null,e.search="",e.filters={status:{ready:!0,preparing:!0,error:!0,expired:!0,removed:!1}},e.orderBy="-anonymizeDate";let o=ir,r=["ready","preparing","error","expired","removed"],u={current:c=>c!=="removed",attention:c=>c==="error",removed:c=>c==="removed"};e.confView=()=>Object.keys(u).find(c=>r.every(v=>u[c](v)===(e.filters.status[v]!==!1)))||"custom",e.setConfView=c=>{r.forEach(v=>{e.filters.status[v]=(u[c]||u.current)(v)})},e.confCount=c=>(e.conference?.repositories||[]).filter(v=>u[c](o(v.status))).length,e.copyingId=null,e.copyRepoLink=async c=>{if(!c?.repoId||e.copyingId)return;let v=new URL("/r/"+c.repoId+"/",window.location.origin).href;e.copyingId=c.repoId;try{await ol(v),e.addToast({title:"Link copied",body:"The anonymous link is ready to share."})}catch{e.addToast({title:"Copy this anonymous link",body:v})}finally{e.copyingId=null}},e.extendingId=null,e.extendRepo=c=>{!c?.repoId||e.extendingId||(e.extendingId=c.repoId,t.post("/api/repo/"+c.repoId+"/extend").then(v=>{let h=v?.data?.expirationDate?` until ${new Date(v.data.expirationDate).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}`:"";e.addToast({title:`${c.repoId} is extended.`,body:`Reviewers can open it again${h}.`}),c.status="ready",v?.data?.expirationDate&&(c.options={...c.options||{},expirationDate:v.data.expirationDate}),e.extendingId=null},v=>{let h=v?.status||v?.data?.status;e.addToast({title:`Couldn't extend ${c.repoId}.`,body:h===401||h===403?"Only the repository's authors can extend this link. Ask them to extend it from My work.":"Try again in a moment."}),e.extendingId=null}))},e.repoFiler=c=>{if(e.filters.status[o(c.status)]==!1)return!1;let v=e.search.trim().toLowerCase();return!!(!v||(c.source?.fullName||"").toLowerCase().includes(v)||(c.repoId||"").toLowerCase().includes(v))};function p(){t.get("/api/conferences/"+i.conferenceId).then(c=>{e.conference=c.data})}p()},op=function(e,t){e.notificationEmail="",e.emailSaved=!1,e.saveNotificationEmail=async()=>{e.busy=!0,e.emailSaved=!1,e.connectionError="";try{let s=await t.post("/github/connections/email",{email:e.notificationEmail},{headers:{"X-CSRF-Token":e.connections.csrf}});e.notificationEmail=s.data.notificationEmail,e.user&&(e.user.notificationEmail=s.data.notificationEmail),e.emailSaved=!0}catch(s){e.connectionError=s.data?.error||"Unable to save email address."}finally{e.busy=!1}},e.connections=null,e.connectionError="",e.busy=!1,e.loadConnections=()=>t.get("/github/connections").then(s=>{e.connections=s.data,e.notificationEmail=s.data.notificationEmail||""}).catch(s=>{e.connectionError=s.data?.error||"Unable to load connections."}),e.changeConnection=async(s,i,o)=>{e.busy=!0,e.connectionError="";try{let r=await t.post("/github/connections/migrate",{type:s.type,id:s.id,connection:i,preview:o},{headers:{"X-CSRF-Token":e.connections.csrf}});o?s.eligible=r.data.eligible:await e.loadConnections()}catch(r){e.connectionError=r.data?.error||"Unable to change connection."}finally{e.busy=!1}},e.disconnectOAuth=async()=>{e.busy=!0;try{await t.post("/github/connections/disconnect-oauth",{},{headers:{"X-CSRF-Token":e.connections.csrf}}),await e.loadConnections()}catch(s){e.connectionError=s.data?.error||"Unable to disconnect OAuth."}finally{e.busy=!1}},e.loadConnections()},sp=function(e,t){e.accountRecovery=!1,t.get("/github/account-recovery").then(s=>{e.accountRecovery=s.data.required}).catch(()=>{})};typeof document<"u"&&document.addEventListener("scroll",e=>{let t=e.target;!t||!t.classList||!t.classList.contains("repo-picker-list")||t.classList.toggle("is-end",t.scrollTop+t.clientHeight>=t.scrollHeight-2)},!0);var ip=[{path:"/review-link",template:"partials/reviewConsent.htm",title:"Artifact consent \u2013 Anonymous GitHub",setup:(e,t)=>gl(e,t)},{path:"/connections",template:"partials/connections.htm",title:"GitHub connections \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>op(e,t.http)},{path:"/signin",template:"partials/signin.htm",title:"Sign in \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>sp(e,t.http)},{path:"/",template:"partials/home.htm",title:"Anonymous GitHub \u2013 Share the code, not the author",preserveExplorer:!1,setup:(e,t)=>Jc(e,t.http,t.location,t.window,t.timeout)},{path:"/dashboard",template:"partials/dashboard.htm",title:"Your anonymizations \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Xc(e,t.http,t.location,t.promises,t.window,t.quotaService)},{path:"/pr-dashboard",redirect:"/dashboard"},{path:"/anonymize/:repoId?",template:"partials/anonymize.htm",title:"New anonymization \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>br(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/pull-request-anonymize/:pullRequestId?",template:"partials/anonymize.htm",title:"Anonymize a pull request \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>br(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/gist-anonymize/:gistId?",template:"partials/anonymize.htm",title:"Anonymize a gist \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>br(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/status/:repoId",template:"partials/status.htm",title:"Repository status \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Qc(e,t.http,t.params)},{path:"/conferences",template:"partials/conferences.htm",title:"Your conferences \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>ep(e,t.http,t.location)},{path:"/conference/new",template:"partials/newConference.htm",title:"New conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>il(e,t.http,t.location,t.params)},{path:"/conference/:conferenceId/edit",template:"partials/newConference.htm",title:"Edit conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>il(e,t.http,t.location,t.params)},{path:"/conference/:conferenceId",template:"partials/conference.htm",title:"Conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>np(e,t.http,t.location,t.params)},{path:"/faq",template:"partials/faq.htm",title:"FAQ \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Wc(e,t.http)},{path:"/profile",template:"partials/profile.htm",title:"Your settings \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Kc(e,t.http,t.translate,t.timeout,t.quotaService)},{path:"/claim",template:"partials/claim.htm",title:"Claim an anonymization \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Yc(e,t.http,t.location)},{path:"/pr/:pullRequestId/:path(.*)*",template:"partials/pullRequest.htm",title:"Anonymous pull request \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Zc(e,t.http,t.location,t.params,t.html)},{path:"/gist/:gistId/:path(.*)*",template:"partials/gist.htm",title:"Anonymous gist \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>xc(e,t.http,t.location,t.params,t.html)},{path:"/r/:repoId/:path(.*)*",template:"partials/explorer.htm",title:"Anonymous repository \u2013 Anonymous GitHub",preserveExplorer:!0,setup:(e,t)=>sl(e,t.http,t.location,t.params,t.html,t.promises)},{path:"/repository/:repoId/:path(.*)*",template:"partials/explorer.htm",title:"Anonymous repository \u2013 Anonymous GitHub",preserveExplorer:!0,setup:(e,t)=>sl(e,t.http,t.location,t.params,t.html,t.promises)},{path:"/admin/",template:"partials/admin/overview.htm",title:"Admin \xB7 Overview \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>tc(e,t.http,t.location,t.interval)},{path:"/admin/repositories",template:"partials/admin/repositories.htm",title:"Admin \xB7 Repositories \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Ju(e,t.http,t.location)},{path:"/admin/users",template:"partials/admin/users.htm",title:"Admin \xB7 Users \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Xu(e,t.http,t.location)},{path:"/admin/users/:username",template:"partials/admin/user.htm",title:"Admin \xB7 User details \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Qu(e,t.http,t.location,t.params)},{path:"/admin/conferences",template:"partials/admin/conferences.htm",title:"Admin \xB7 Conferences \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Zu(e,t.http,t.location)},{path:"/admin/emails",template:"partials/admin/emails.htm",title:"Admin \xB7 Emails \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>sc(e,t.http,t.location)},{path:"/admin/billing",template:"partials/admin/billing.htm",title:"Admin \xB7 Billing \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>oc(e,t.http,t.location)},{path:"/admin/queues",template:"partials/admin/queues.htm",title:"Admin \xB7 Queues \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>xu(e,t.http,t.location,t.interval,t.timeout)},{path:"/admin/errors",template:"partials/admin/errors.htm",title:"Admin \xB7 Errors \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>ec(e,t.http,t.location,t.interval)},{path:"/404",template:"partials/404.htm",title:"Page not found \u2013 Anonymous GitHub",preserveExplorer:!1,setup:()=>{}},{path:"/:pathMatch(.*)*",template:"partials/404.htm",title:"Page not found \u2013 Anonymous GitHub",setup:()=>{}}];var Ov={class:"container paper-page admin-page overview-page emails-page"},Mv={class:"email-overview-toolbar"},Vv={class:"seg-filter",role:"group","aria-label":"History period"},qv=["aria-pressed","onClick"],Lv={class:"email-refresh"},_v={key:0},$v=["disabled"],Fv={key:0,class:"email-state email-state-error",role:"alert"},Uv=["aria-busy"],Bv={class:"ov-kpi-card"},zv={class:"ov-kpi-value"},Hv={class:"ov-kpi-card"},jv={class:"ov-kpi-value"},Gv={class:"ov-kpi-card"},Wv={class:"ov-kpi-card"},Kv={class:"ov-kpi-value"},Yv={class:"ov-kpi-sub"},Jv={key:1,class:"ov-chart-card email-chart","aria-label":"Email activity by day"},Xv={class:"ov-chart-head"},Qv={class:"ov-chart-title"},Zv={class:"email-muted"},xv={class:"email-chart-plot"},ey={class:"email-axis"},ty={class:"email-bars"},ny=["aria-label","title"],oy={class:"email-chart-dates"},sy={key:0},iy={class:"email-chart-data"},ry={class:"email-data-scroll"},ay={scope:"row"},ly={"aria-labelledby":"email-history-title",class:"email-history"},dy={class:"email-section-head"},uy={class:"email-muted"},cy={class:"email-search"},py={class:"email-status-tabs",role:"group","aria-label":"Outcome filter"},fy=["aria-pressed","onClick"],my={class:"sr-only",role:"status","aria-live":"polite","aria-atomic":"true"},hy={key:0,class:"email-state email-state-error",role:"alert"},gy=["disabled"],vy={key:1,class:"email-state"},yy={key:2,class:"email-state"},by={key:3,class:"email-footer email-pager-top"},wy=["disabled"],ky=["disabled"],Cy=["aria-busy"],Sy={class:"email-table",role:"table"},Ey={role:"rowgroup"},Ny={class:"email-recipient",role:"cell"},Ry=["title"],Ty={class:"email-result",role:"cell"},Py={key:0,class:"email-http"},Dy={class:"email-type",role:"cell"},Ay={class:"email-attempted",role:"cell"},Iy=["datetime","title"],Oy={class:"email-expand",role:"cell"},My=["aria-expanded","aria-controls","aria-label","onClick"],Vy={"aria-hidden":"true"},qy={key:0,class:"email-expanded",role:"row"},Ly={colspan:"5",role:"cell"},_y=["id","aria-label"],$y={class:"email-detail-heading"},Fy={class:"email-explanation"},Uy={class:"email-detail-grid"},By=["onClick"],zy=["onClick"],Hy=["onClick"],jy=["onClick"],Gy={key:0,class:"email-copy-feedback"},Wy={key:5,class:"email-footer"},Ky=["disabled"],Yy=["disabled"];function rp(e,t){return a(),l("div",Ov,[t[43]||(t[43]=Ce('
Admin \xA0/\xA0 Emails

Emails

',2)),n("div",Mv,[n("div",Vv,[(a(),l(V,null,X([{id:"7d",label:"7 days"},{id:"30d",label:"30 days"},{id:"90d",label:"90 days"},{id:"all",label:"All time"}],s=>n("button",{key:s.id,class:R(["seg-chip",{active:e.emailPeriod===s.id}]),"aria-pressed":e.emailPeriod===s.id,onClick:i=>{e.emailPeriod=s.id,e.applyEmailFilters()}},d(s.label),11,qv)),64))]),n("button",{class:"email-detail-button email-jump",onClick:t[0]||(t[0]=s=>e.jumpToEmailHistory())},"Search email history \u2193"),n("div",Lv,[e.emailUpdated?(a(),l("span",_v,"History updated "+d(e.emailShortTime(e.emailUpdated)),1)):f("v-if",!0),n("button",{class:"btn btn-sm",disabled:e.emailLoading||e.emailSummaryLoading,onClick:t[1]||(t[1]=s=>e.refreshEmails())},"Refresh",8,$v)])]),t[44]||(t[44]=n("p",{class:"email-basis"},"Recorded sending attempts \xB7 Provider acceptance does not confirm inbox delivery.",-1)),e.emailSummaryError?(a(),l("div",Fv,[m(d(e.emailSummaryError)+" ",1),n("button",{class:"btn btn-sm",onClick:t[2]||(t[2]=s=>e.loadEmailSummary())},"Retry summary")])):f("v-if",!0),n("section",{class:"ov-kpi-row email-kpis","aria-label":"Email summary","aria-busy":e.emailSummaryLoading},[n("div",Bv,[t[14]||(t[14]=n("div",{class:"ov-kpi-label"},"Recorded attempts",-1)),n("div",zv,d(e.emailSummary?e.emailSummary.total.toLocaleString():"\u2014"),1),t[15]||(t[15]=n("div",{class:"ov-kpi-sub"},"Selected period, search and type",-1))]),n("div",Hv,[t[16]||(t[16]=n("div",{class:"ov-kpi-label"},"Accepted by provider",-1)),n("div",jv,d(e.emailSummary?e.emailSummary.counts.accepted.toLocaleString():"\u2014"),1),t[17]||(t[17]=n("div",{class:"ov-kpi-sub"},"Delivery unverified",-1))]),n("div",Gv,[t[18]||(t[18]=n("div",{class:"ov-kpi-label"},"Rejected",-1)),n("div",{class:R(["ov-kpi-value",{"email-error-text":e.emailSummary?.counts.rejected}])},d(e.emailSummary?e.emailSummary.counts.rejected.toLocaleString():"\u2014"),3),t[19]||(t[19]=n("div",{class:"ov-kpi-sub"},"Provider returned an error",-1))]),n("div",Wv,[t[20]||(t[20]=n("div",{class:"ov-kpi-label"},"Unconfirmed",-1)),n("div",Kv,d(e.emailSummary?(e.emailSummary.counts.unknown+e.emailSummary.counts.sending).toLocaleString():"\u2014"),1),n("div",Yv,d(e.emailSummary?e.emailSummary.counts.unknown:"\u2014")+" unknown \xB7 "+d(e.emailSummary?e.emailSummary.counts.sending:"\u2014")+" pending",1)])],8,Uv),e.emailSummary?(a(),l("section",Jv,[n("div",Xv,[n("h2",Qv,[t[21]||(t[21]=m("Sending activity ",-1)),n("span",Zv,"\xB7 "+d(e.emailSummary.chartDays)+" days \xB7 UTC",1)]),t[22]||(t[22]=n("div",{class:"email-legend"},[n("span",{class:"email-outcome email-outcome-accepted"},"Accepted"),n("span",{class:"email-outcome email-outcome-rejected"},"Rejected"),n("span",{class:"email-outcome email-outcome-unknown"},"Unconfirmed")],-1))]),n("div",xv,[n("div",ey,[n("span",null,d(e.emailChartMax()),1),t[23]||(t[23]=n("span",null,"0",-1))]),n("div",ty,[(a(!0),l(V,null,X(e.emailSummary.series,s=>(a(),l("div",{key:s.date,class:"email-bar-column","aria-label":e.emailDayLabel(s)+": "+s.accepted+" accepted, "+s.rejected+" rejected, "+(s.unknown+s.sending)+" unconfirmed",title:e.emailDayLabel(s)+": "+e.emailDayTotal(s)+" attempts"},[n("div",{class:"email-bar-stack",style:Ae({height:Math.max(1,e.emailDayTotal(s)/e.emailChartMax()*100)+"%"})},[n("i",{class:"email-bar-accepted",style:Ae({flexGrow:s.accepted})},null,4),n("i",{class:"email-bar-rejected",style:Ae({flexGrow:s.rejected})},null,4),n("i",{class:"email-bar-unknown",style:Ae({flexGrow:s.unknown+s.sending})},null,4)],4)],8,ny))),128))])]),n("div",oy,[n("span",null,d(e.emailDayLabel(e.emailSummary.series[0])),1),e.emailChartTotal()?f("v-if",!0):(a(),l("span",sy,"No recorded activity in these "+d(e.emailSummary.chartDays)+" days",1)),n("span",null,d(e.emailDayLabel(e.emailSummary.series[e.emailSummary.series.length-1])),1)]),n("details",iy,[t[26]||(t[26]=n("summary",null,"View daily counts",-1)),n("div",ry,[n("table",null,[t[24]||(t[24]=n("caption",{class:"sr-only"},"Daily sending attempts in UTC",-1)),t[25]||(t[25]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Date"),n("th",{scope:"col"},"Accepted"),n("th",{scope:"col"},"Rejected"),n("th",{scope:"col"},"Unknown"),n("th",{scope:"col"},"Pending")])],-1)),n("tbody",null,[(a(!0),l(V,null,X(e.emailSummary.series,s=>(a(),l("tr",{key:s.date},[n("th",ay,d(e.emailDayLabel(s)),1),n("td",null,d(s.accepted),1),n("td",null,d(s.rejected),1),n("td",null,d(s.unknown),1),n("td",null,d(s.sending),1)]))),128))])])])])])):f("v-if",!0),n("section",ly,[n("div",dy,[t[27]||(t[27]=n("h2",{id:"email-history-title",tabindex:"-1"},"Email history",-1)),n("span",uy,"Newest first \xB7 "+d(e.emailTimezone),1)]),n("form",{class:"email-toolbar",onSubmit:t[7]||(t[7]=de(s=>e.applyEmailFilters(),["prevent"])),"aria-label":"Filter email history"},[n("label",cy,[t[28]||(t[28]=m("Search attempts",-1)),P(n("input",{class:"form-control","onUpdate:modelValue":t[3]||(t[3]=s=>e.emailSearch=s),type:"search",maxlength:"200",placeholder:"Search recipients or IDs","aria-describedby":"email-search-help"},null,512),[[nt,e.emailSearch]])]),n("label",null,[t[30]||(t[30]=m("Email type",-1)),P(n("select",{class:"form-control","onUpdate:modelValue":t[4]||(t[4]=s=>e.emailKind=s),onChange:t[5]||(t[5]=s=>e.applyEmailFilters())},[...t[29]||(t[29]=[n("option",{value:""},"All email types",-1),n("option",{value:"repository-expiration"},"Repository expiration",-1),n("option",{value:"owner-access"},"GitHub access",-1)])],544),[[Nt,e.emailKind]])]),t[31]||(t[31]=n("button",{class:"btn",type:"submit"},"Search",-1)),e.hasEmailFilters()?(a(),l("button",{key:0,class:"btn",type:"button",onClick:t[6]||(t[6]=s=>e.clearEmailFilters())},"Clear")):f("v-if",!0)],32),t[42]||(t[42]=n("p",{id:"email-search-help",class:"email-search-help"},"Search part of a recipient address, or an exact attempt, owner or resource ID.",-1)),n("div",py,[(a(),l(V,null,X(["","accepted","rejected","unknown","sending"],s=>n("button",{key:s,class:R({active:e.emailState===s}),"aria-pressed":e.emailState===s,onClick:i=>e.setEmailStatus(s)},[m(d(s?e.emailStatusLabel(s):"All attempts")+" ",1),n("span",null,d(e.emailSummary?(s?e.emailSummary.counts[s]:e.emailSummary.total).toLocaleString():"\u2014"),1)],10,fy)),64))]),n("p",my,d(e.emailAnnouncement)+" "+d(e.emailCopyMessage),1),e.emailError?(a(),l("div",hy,[n("span",null,d(e.emailError),1),n("button",{class:"btn btn-sm",disabled:e.emailLoading,onClick:t[8]||(t[8]=s=>e.retryEmails())},"Retry",8,gy)])):f("v-if",!0),e.emailLoading&&!e.emailRows.length?(a(),l("p",vy,"Loading email history\u2026")):f("v-if",!0),!e.emailLoading&&!e.emailError&&!e.emailRows.length?(a(),l("div",yy,[n("p",null,d(e.hasEmailFilters()?"No attempts match these filters. Try another recipient or a wider period.":"No attempts recorded in this period."),1),e.hasEmailFilters()?(a(),l("button",{key:0,class:"btn btn-sm",onClick:t[9]||(t[9]=s=>e.clearEmailFilters())},"Clear filters")):f("v-if",!0)])):f("v-if",!0),e.emailRows.length?(a(),l("div",by,[n("span",null,[m(d((e.emailPage-1)*25+1)+"\u2013"+d(Math.min(e.emailPage*25,e.emailRows.length)),1),e.emailTotal()!=null?(a(),l(V,{key:0},[m(" of "+d(e.emailTotal().toLocaleString()),1)],64)):f("v-if",!0),t[32]||(t[32]=m(" attempts",-1))]),n("div",null,[n("button",{class:"btn btn-sm",disabled:e.emailPage===1||e.emailLoading,onClick:t[10]||(t[10]=s=>e.emailPreviousPage())},"Previous",8,wy),n("button",{class:"btn btn-sm",disabled:e.emailLoading||!e.emailNextCursor&&e.emailPage*25>=e.emailRows.length,onClick:t[11]||(t[11]=s=>e.emailNextPage())},"Next",8,ky)])])):f("v-if",!0),e.emailRows.length?(a(),l("div",{key:4,class:"email-table-wrap","aria-busy":e.emailLoading},[n("table",Sy,[t[40]||(t[40]=n("caption",{class:"sr-only"},"Recorded email attempts. Expand a row for identifiers and outcome details.",-1)),t[41]||(t[41]=n("thead",{role:"rowgroup"},[n("tr",{role:"row"},[n("th",{scope:"col"},"Recipient"),n("th",{scope:"col"},"Outcome"),n("th",{scope:"col"},"Email type"),n("th",{scope:"col"},"Attempted"),n("th",{scope:"col"},[n("span",{class:"sr-only"},"Details")])])],-1)),n("tbody",Ey,[(a(!0),l(V,null,X(e.emailVisibleRows(),s=>(a(),l(V,{key:s._id},[n("tr",{role:"row",class:R({"email-selected":e.selectedEmailId===s._id})},[n("td",Ny,[n("span",{title:s.recipient},d(s.recipient),9,Ry)]),n("td",Ty,[n("span",{class:R(["email-outcome","email-outcome-"+s.state])},d(e.emailStatusLabel(s.state)),3),s.httpStatus?(a(),l("small",Py,d(s.httpStatus),1)):f("v-if",!0)]),n("td",Dy,d(e.emailKindLabel(s.kind)),1),n("td",Ay,[n("time",{datetime:s.createdAt,title:e.emailTime(s.createdAt)},d(e.emailShortTime(s.createdAt)),9,Iy)]),n("td",Oy,[n("button",{class:"email-detail-button","aria-expanded":e.selectedEmailId===s._id,"aria-controls":"detail-"+s._id,"aria-label":(e.selectedEmailId===s._id?"Close":"View")+" details for "+s.recipient,onClick:i=>e.toggleEmail(s)},[m(d(e.selectedEmailId===s._id?"Close":"Details")+" ",1),n("span",Vy,d(e.selectedEmailId===s._id?"\u2212":"+"),1)],8,My)])],2),e.selectedEmailId===s._id?(a(),l("tr",qy,[n("td",Ly,[n("section",{id:"detail-"+s._id,"aria-label":"Attempt details for "+s.recipient},[n("div",$y,[t[33]||(t[33]=n("h3",null,"Attempt details",-1)),n("span",{class:R(["email-outcome","email-outcome-"+s.state])},d(e.emailStatusLabel(s.state)),3)]),n("p",Fy,d(e.emailExplanation(s)),1),n("dl",Uy,[n("div",null,[t[34]||(t[34]=n("dt",null,"Recipient",-1)),n("dd",null,[m(d(s.recipient)+" ",1),n("button",{class:"email-copy",onClick:i=>e.copyEmail(s.recipient),"aria-label":"Copy recipient"},d(e.emailCopiedValue===s.recipient?"Copied":"Copy"),9,By)])]),n("div",null,[t[35]||(t[35]=n("dt",null,"Provider response",-1)),n("dd",null,d(s.httpStatus?"HTTP "+s.httpStatus:"No HTTP response recorded"),1)]),n("div",null,[t[36]||(t[36]=n("dt",null,"Attempted",-1)),n("dd",null,d(e.emailTime(s.createdAt)),1)]),n("div",null,[t[37]||(t[37]=n("dt",null,"Completed",-1)),n("dd",null,d(e.emailTime(s.completedAt)),1)]),n("div",null,[t[38]||(t[38]=n("dt",null,"Attempt ID",-1)),n("dd",null,[n("code",null,d(s._id),1),n("button",{class:"email-copy",onClick:i=>e.copyEmail(s._id),"aria-label":"Copy attempt ID"},d(e.emailCopiedValue===s._id?"Copied":"Copy"),9,zy)])]),n("div",null,[t[39]||(t[39]=n("dt",null,"Owner ID",-1)),n("dd",null,[n("code",null,d(s.ownerId),1),n("button",{class:"email-copy",onClick:i=>e.copyEmail(s.ownerId),"aria-label":"Copy owner ID"},d(e.emailCopiedValue===s.ownerId?"Copied":"Copy"),9,Hy)])]),n("div",null,[n("dt",null,"Resource \xB7 "+d(s.resourceKind),1),n("dd",null,[n("code",null,d(s.resourceId),1),n("button",{class:"email-copy",onClick:i=>e.copyEmail(s.resourceId),"aria-label":"Copy resource ID"},d(e.emailCopiedValue===s.resourceId?"Copied":"Copy"),9,jy)])])]),e.emailCopyMessage&&e.emailCopyMessage!=="Copied."?(a(),l("p",Gy,d(e.emailCopyMessage),1)):f("v-if",!0)],8,_y)])])):f("v-if",!0)],64))),128))])])],8,Cy)):f("v-if",!0),e.emailRows.length?(a(),l("div",Wy,[n("span",null,[m("Page "+d(e.emailPage),1),e.emailPageCount()?(a(),l(V,{key:0},[m(" of "+d(e.emailPageCount()),1)],64)):f("v-if",!0),m(" \xB7 "+d(e.emailTotal()==null?e.emailRows.length+" loaded":e.emailTotal().toLocaleString()+" attempts"),1)]),n("div",null,[n("button",{class:"btn btn-sm",disabled:e.emailPage===1||e.emailLoading,onClick:t[12]||(t[12]=s=>e.emailPreviousPage())},"Previous",8,Ky),n("button",{class:"btn btn-sm",disabled:e.emailLoading||!e.emailNextCursor&&e.emailPage*25>=e.emailRows.length,onClick:t[13]||(t[13]=s=>e.emailNextPage())},"Next",8,Yy)])])):f("v-if",!0)]),t[45]||(t[45]=n("details",{class:"email-about"},[n("summary",null,"What this history records"),n("p",null,"New sending attempts only; older sends are not backfilled. Accepted means the provider accepted the request, not that it reached the inbox. Check pending or unknown outcomes in Resend before considering another send. Audit storage failures can leave this history incomplete.")],-1))])}var Jy={class:"container py-4",style:{"max-width":"48rem","overflow-wrap":"anywhere"}},Xy={key:0},Qy={key:1,role:"alert"},Zy={key:2,role:"status"},xy={key:0},eb={key:1},tb=["disabled"],ob=["disabled"],sb=["disabled"],ib={key:5,class:"mt-4","aria-labelledby":"review-policy-title"},rb={id:"review-policy-title"},ab={key:0,role:"alert"},lb=["disabled"],db=["disabled"],ub=["disabled"],cb={key:6,role:"status"};function ap(e,t){return a(),l("section",Jy,[t[12]||(t[12]=n("a",{href:"/"},"Anonymous GitHub",-1)),t[13]||(t[13]=n("h1",{class:"mt-3"},"Approve artifact access",-1)),t[14]||(t[14]=n("p",null,"This records your approval as the repository owner or an authorized co-author.",-1)),e.user?.username?f("v-if",!0):(a(),l("p",Xy,[...t[6]||(t[6]=[m("Sign in first, then reopen the artifact link from your submission. ",-1),n("a",{href:"/signin"},"Sign in",-1)])])),e.error?(a(),l("p",Qy,d(e.error),1)):f("v-if",!0),e.saved?(a(),l("p",Zy,[t[7]||(t[7]=m("Consent recorded. ",-1)),e.handoffEnabled?(a(),l("span",xy,"Continue to review to finish linking.")):(a(),l("span",eb,"Artifact linking is not complete. Return to your submission to check its status."))])):f("v-if",!0),e.saved&&e.handoffEnabled?(a(),l("button",{key:3,class:"btn btn-primary",type:"button",onClick:t[0]||(t[0]=(...s)=>e.continueReview&&e.continueReview(...s)),disabled:e.busy},"Continue to review",8,tb)):f("v-if",!0),e.user?.username&&!e.saved?(a(),l("form",{key:4,onSubmit:t[2]||(t[2]=de((...s)=>e.loadPreview&&e.loadPreview(...s),["prevent"]))},[t[8]||(t[8]=n("label",{for:"review-repository"},"Anonymous repository ID",-1)),P(n("input",{id:"review-repository",class:"form-control","onUpdate:modelValue":t[1]||(t[1]=s=>e.repositoryId=s),maxlength:"128",autocomplete:"off",disabled:e.busy||e.uncertain,"aria-describedby":"review-repository-help"},null,8,ob),[[nt,e.repositoryId]]),t[9]||(t[9]=n("p",{id:"review-repository-help"},"Use the ID after /r/ in the anonymous repository URL.",-1)),n("button",{type:"submit",class:"btn btn-primary",disabled:e.busy||e.uncertain},"Preview access and retention",8,sb)],32)):f("v-if",!0),e.preview&&!e.saved?(a(),l("section",ib,[n("h2",rb,d(e.preview.repositoryName),1),n("p",null,"Access: "+d(e.preview.policy.access==="anonymous-link"?"Anyone with the anonymous link":"Restricted review access")+".",1),n("p",null,"Retain until "+d(e.preview.policy.retainUntil)+". Policy version "+d(e.preview.policy.version)+".",1),e.expired?(a(),l("p",ab,"This preview expired. Open a new artifact link from your submission.")):f("v-if",!0),n("div",null,[n("label",null,[P(n("input",{type:"checkbox","onUpdate:modelValue":t[3]||(t[3]=s=>e.acceptAccess=s),disabled:e.busy||e.uncertain||e.expired},null,8,lb),[[ma,e.acceptAccess]]),t[10]||(t[10]=m(" I approve the access policy above.",-1))])]),n("div",null,[n("label",null,[P(n("input",{type:"checkbox","onUpdate:modelValue":t[4]||(t[4]=s=>e.acceptRetention=s),disabled:e.busy||e.uncertain||e.expired},null,8,db),[[ma,e.acceptRetention]]),t[11]||(t[11]=m(" I approve retention until the date above.",-1))])]),n("button",{class:"btn btn-primary",type:"button",onClick:t[5]||(t[5]=(...s)=>e.confirmConsent&&e.confirmConsent(...s)),disabled:e.busy||e.expired||!e.acceptAccess||!e.acceptRetention},d(e.uncertain?"Retry confirmation":"Confirm consent"),9,ub)])):f("v-if",!0),e.busy?(a(),l("p",cb,"Waiting for the server\u2026")):f("v-if",!0)])}var pb={class:"container paper-page connections-page"},fb={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},mb={key:1,role:"status"},hb=["disabled"],gb={key:3},vb={key:0,class:"connection-resources"},yb=["disabled"],bb=["disabled"],wb={key:0,role:"status"},kb={class:"connections-grid"},Cb={key:0},Sb={class:"connection-title"},Eb={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},Nb={class:"connection-actions"},Rb={key:0,class:"btn btn-ink",target:"_self",href:"/github/app/install"},Tb=["disabled"],Pb={key:1,class:"connection-installations"},Db={key:0},Ab=["href"],Ib={class:"sr-only"},Ob={class:"connection-title"},Mb={key:0,target:"_self",href:"/github/login",class:"btn btn-outline-ink"},Vb={key:1,class:"connection-revoke"},qb={key:0},Lb=["disabled"],_b={class:"connection-resources"},$b={class:"connection-title"},Fb={class:"connection-count"},Ub={key:0,class:"connection-empty"},Bb={class:"connection-resource-name"},zb={key:0,class:"connection-resource-actions"},Hb=["disabled","onClick"],jb=["disabled","onClick"],Gb={key:1,class:"connection-help",role:"status"},Wb=["disabled","onClick"];function lp(e,t){return a(),l("div",pb,[t[27]||(t[27]=Ce('
My work \xA0/\xA0 GitHub connections

GitHub connections

Manage how GitHub shares your code. Your anonymizations and URLs stay the same.

',2)),e.connectionError?(a(),l("p",fb,d(e.connectionError),1)):f("v-if",!0),!e.connections&&!e.connectionError?(a(),l("p",mb,"Loading your connections\u2026")):f("v-if",!0),!e.connections&&e.connectionError?(a(),l("button",{key:2,class:"btn btn-outline-ink",disabled:e.busy,onClick:t[0]||(t[0]=s=>e.loadConnections())},"Try again",8,hb)):f("v-if",!0),e.connections?(a(),l("div",gb,[e.connections.emailNotificationsEnabled?(a(),l("section",vb,[t[6]||(t[6]=n("h2",null,"Email alerts",-1)),t[7]||(t[7]=n("p",null,"We will email you if your GitHub connection stops working or a repository becomes inaccessible. Your address is never shown on anonymous pages.",-1)),n("form",{onSubmit:t[2]||(t[2]=de(s=>e.saveNotificationEmail(),["prevent"]))},[t[5]||(t[5]=n("label",{for:"notification-email"},"Email address",-1)),P(n("input",{id:"notification-email",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[1]||(t[1]=s=>e.notificationEmail=s),disabled:e.busy},null,8,yb),[[nt,e.notificationEmail]]),n("button",{class:"btn btn-ink mt-2",type:"submit",disabled:e.busy},"Save email address",8,bb),e.emailSaved?(a(),l("p",wb,"Email address saved.")):f("v-if",!0)],32)])):f("v-if",!0),n("div",kb,[e.connections.appEnabled?(a(),l("section",Cb,[t[15]||(t[15]=n("div",{class:"connection-top"},[n("i",{class:"fab fa-github","aria-hidden":"true"}),n("span",{class:"connection-badge"},"Recommended")],-1)),n("div",Sb,[t[8]||(t[8]=n("h2",null,"GitHub App",-1)),n("span",{class:R(["connection-status",{"is-connected":e.connections.appConnected&&!e.connections.appError}])},d(e.connections.appError?"Needs attention":e.connections.appConnected?"Connected":"Not connected"),3)]),t[16]||(t[16]=n("p",null,"Read-only access to gists and the repositories you choose.",-1)),e.connections.appError?(a(),l("p",Eb,d(e.connections.appError)+". Reconnect to restore access.",1)):f("v-if",!0),n("div",Nb,[e.connections.appConnected&&!e.connections.appError?(a(),l("a",Rb,[...t[9]||(t[9]=[m("Manage repository access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])])):f("v-if",!0),n("a",{class:R(e.connections.appConnected&&!e.connections.appError?"connection-link":"btn btn-ink"),target:"_self",href:"/github/app/login"},d(e.connections.appConnected?"Reconnect account":"Connect GitHub account"),3),e.connections.appConnected?(a(),l("button",{key:1,class:"connection-link connection-refresh",title:"Refresh access",disabled:e.busy,onClick:t[3]||(t[3]=s=>e.loadConnections())},[...t[10]||(t[10]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),n("span",{class:"sr-only"},"Refresh access",-1)])],8,Tb)):f("v-if",!0)]),t[17]||(t[17]=n("p",{class:"connection-help"},"Choose repositories on GitHub. Organization access may need an administrator's approval.",-1)),e.connections.installations?.length?(a(),l("ul",Pb,[(a(!0),l(V,null,X(e.connections.installations,s=>(a(),l("li",{key:s.id},[n("div",null,[t[11]||(t[11]=n("span",{class:"connection-label"},"Installed on",-1)),t[12]||(t[12]=m()),n("strong",null,d(s.account),1),s.suspended?(a(),l("span",Db," \xB7 Suspended")):f("v-if",!0)]),e.connections.installations.length>1?(a(),l("a",{key:0,target:"_self",href:"/github/app/install?installationId="+s.id},[t[13]||(t[13]=m("Manage access ",-1)),n("span",Ib,"for "+d(s.account),1),t[14]||(t[14]=m(" \u2192",-1))],8,Ab)):f("v-if",!0)]))),128))])):f("v-if",!0)])):f("v-if",!0),n("section",null,[t[20]||(t[20]=n("div",{class:"connection-top"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-key"})]),n("span",{class:"connection-badge connection-badge-muted"},"Legacy")],-1)),n("div",Ob,[t[18]||(t[18]=n("h2",null,"GitHub OAuth",-1)),n("span",{class:R(["connection-status",{"is-connected":e.connections.oauthConnected}])},d(e.connections.oauthConnected?"Connected":"Not connected"),3)]),t[21]||(t[21]=n("p",null,"For existing OAuth anonymizations.",-1)),t[22]||(t[22]=n("p",{class:"connection-help"},"This connection uses GitHub's broader repository permissions. Existing work keeps using it until you switch below.",-1)),e.connections.oauthEnabled?(a(),l("a",Mb,d(e.connections.oauthConnected?"Reconnect OAuth":"Connect legacy OAuth"),1)):f("v-if",!0),e.connections.oauthConnected?(a(),l("div",Vb,[e.connections.gistCount?(a(),l("p",qb,d(e.connections.gistCount)+" gist(s) use your GitHub App connection when available.",1)):f("v-if",!0),t[19]||(t[19]=n("p",null,"Switch all dependent repositories before revoking access. Gists can use your GitHub App connection.",-1)),e.connections.appConnected?(a(),l("button",{key:1,class:"btn btn-sm btn-outline-danger connection-danger",disabled:e.busy||e.connections.resources.some(s=>s.connection==="oauth"),onClick:t[4]||(t[4]=s=>e.disconnectOAuth())},"Revoke OAuth access",8,Lb)):f("v-if",!0)])):f("v-if",!0)])]),n("section",_b,[n("div",$b,[t[23]||(t[23]=n("h2",null,"Repository connections",-1)),n("span",Fb,d(e.connections.resources?.length||0)+" "+d((e.connections.resources?.length||0)===1?"resource":"resources"),1)]),t[25]||(t[25]=n("p",null,"Check access, then switch each resource to the GitHub App. After reinstalling the App, reconnect existing resources here to keep their anonymous URLs and published snapshots.",-1)),e.connections.resources?.length?f("v-if",!0):(a(),l("div",Ub,[...t[24]||(t[24]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1),n("div",null,[n("h3",null,"No repository connections yet"),n("p",null,"Your repositories and pull requests will appear here once you anonymize them.")],-1),n("a",{class:"connection-link",href:"/anonymize"},"New anonymization \u2192",-1)])])),(a(!0),l(V,null,X(e.connections.resources,s=>(a(),l("div",{class:"connection-resource",key:s.type+s.id},[n("div",Bb,[n("strong",null,d(s.name||s.id),1),n("small",null,d(s.type)+" \xB7 "+d(s.id),1)]),n("span",{class:R(["connection-badge",{"connection-badge-muted":s.connection==="oauth"}])},d(s.connection==="github-app"?"Read-only App":"Legacy OAuth"),3),!["archived","removed","preparing","queue","removing","expiring"].includes(s.status)&&(s.status!=="download"||s.type==="pull-request"&&(!s.statusDate||new Date(s.statusDate).getTime()<=Date.now()-3e5))&&e.connections.appEnabled&&e.connections.appConnected?(a(),l("div",zb,[n("button",{class:"btn btn-outline-ink",disabled:e.busy,onClick:i=>e.changeConnection(s,"github-app",!0)},"Check read-only access",8,Hb),s.eligible?(a(),l("button",{key:0,class:"btn btn-ink",disabled:e.busy,onClick:i=>e.changeConnection(s,"github-app",!1)},d(s.connection==="github-app"?"Reconnect read-only access":"Switch to read-only access"),9,jb)):f("v-if",!0),s.eligible===!1?(a(),l("span",Gb,"Access unavailable. Allow this repository on GitHub, then check again.")):f("v-if",!0)])):f("v-if",!0),!["archived","removed","preparing","queue","removing","expiring"].includes(s.status)&&(s.status!=="download"||s.type==="pull-request"&&(!s.statusDate||new Date(s.statusDate).getTime()<=Date.now()-3e5))&&s.connection==="github-app"&&e.connections.oauthConnected?(a(),l("button",{key:1,class:"connection-link",disabled:e.busy,onClick:i=>e.changeConnection(s,"oauth",!1)},"Use OAuth",8,Wb)):f("v-if",!0)]))),128)),t[26]||(t[26]=n("p",{class:"connection-footnote"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})]),m(" Removing access stops new fetches from GitHub. Published content keeps its current expiration and removal settings.")],-1))])])):f("v-if",!0)])}var Kb={class:"container paper-page auth-page"},Yb={class:"auth-layout"},Jb={class:"auth-options"},Xb={key:0},Qb={key:0,class:"btn btn-ink auth-continue",target:"_self",href:"/github/login?recover=1"},Zb={key:1},xb={key:1,class:"auth-card"},e1={key:2,class:"auth-legacy"},t1={key:3,role:"status"};function dp(e,t){let s=Qe("partial-view");return a(),l(V,null,[n("div",Kb,[n("div",Yb,[t[4]||(t[4]=Ce('
Your research, ready for review

Your code.
Your identity,
protected.
Sign in to GitHub

Sign in to create and manage your anonymizations.

',1)),n("div",Jb,[e.accountRecovery?(a(),l("section",Xb,[t[0]||(t[0]=n("h2",null,"Verify your existing account",-1)),t[1]||(t[1]=n("p",null,"We found an existing account. Verify it with your previous GitHub connection to keep your anonymizations. Future sign-ins will use the GitHub App.",-1)),e.site_options?.GITHUB_OAUTH_ENABLED?(a(),l("a",Qb,"Verify with previous GitHub connection")):(a(),l("p",Zb,"Account verification is currently unavailable. Please try again later."))])):f("v-if",!0),e.site_options?.GITHUB_APP_ENABLED&&!e.accountRecovery?(a(),l("section",xb,[...t[2]||(t[2]=[Ce('

Continue with GitHub

Connect through the GitHub App with read-only repository access.

  • You choose which repositories to share
  • No permission to write to your code
Sign in with GitHubYour existing anonymizations and connections stay with your account.',5)])])):f("v-if",!0),!e.site_options?.GITHUB_APP_ENABLED&&e.site_options?.GITHUB_OAUTH_ENABLED&&!e.accountRecovery?(a(),l("section",e1,[...t[3]||(t[3]=[n("div",{class:"connection-title"},[n("h2",null,"Continue with GitHub")],-1),n("p",null,"Sign in to access your account. GitHub OAuth includes write access to private repositories.",-1),n("a",{class:"connection-link",target:"_self",href:"/github/login"},[m("Sign in with GitHub "),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-arrow-right"})])],-1)])])):f("v-if",!0),e.site_options&&!e.site_options.GITHUB_APP_ENABLED&&!e.site_options.GITHUB_OAUTH_ENABLED?(a(),l("p",t1,"GitHub sign-in is currently unavailable. Please try again later.")):f("v-if",!0)])])]),Me(s,{name:"partials/footer.htm",state:e.viewState},null,8,["state"])],64)}function up(e,t){let s=Qe("partial-view");return a(),l(V,null,[t[0]||(t[0]=Ce('
Error \xB7 404

This link
isn\u2019t here.

The anonymous mirror you\u2019re looking for has expired, been removed by its owner, or never existed. If you received this URL from an author, ask them to re-issue it.

',1)),Me(s,{name:"partials/footer.htm",state:e.viewState},null,8,["state"])],64)}var n1={class:"container paper-page admin-page"},o1={class:"seg-bar"},s1={class:"seg-filter",role:"radiogroup","aria-label":"Filter by status"},i1=["aria-checked"],r1={class:"count"},a1=["aria-checked"],l1={class:"count"},d1=["aria-checked"],u1={class:"count"},c1=["aria-checked"],p1={class:"count"},f1=["aria-checked"],m1={class:"count"},h1=["aria-checked"],g1={class:"count"},v1={class:"seg-countline",role:"status"},y1={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},b1={class:"w-100 admin-filter-toolbar","aria-label":"Conferences","accept-charset":"UTF-8"},w1={class:"admin-filter-row"},k1={class:"search-wrap"},C1={type:"search",class:"form-control",placeholder:"Search conferences\u2026",autocomplete:"off"},S1={key:0,class:"admin-search-hint"},E1={key:1,class:"admin-filter-inline","aria-label":"Pagination"},N1=["disabled"],R1={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},T1=["disabled"],P1={key:0,class:"admin-filter-row"},D1={class:"admin-active-chips"},A1={class:"key"},I1=["onClick"],O1={class:"paper-table paper-table-conferences w-100",role:"table","aria-label":"Conferences"},M1={key:0,class:"paper-table-head",role:"row"},V1={role:"columnheader"},q1={role:"columnheader"},L1={role:"columnheader"},_1={class:"paper-table-row",role:"row"},$1={class:"cell-anon",role:"cell"},F1={class:"anon-text"},U1=["textContent","href"],B1={class:"anon-sub"},z1={class:"cell-status",role:"cell"},H1=["textContent"],j1={class:"cell-views num",role:"cell"},G1=["textContent","href"],W1={class:"cell-expires",role:"cell"},K1={class:"cell-actions",role:"cell"},Y1={class:"dropdown"},J1={class:"dropdown-menu dropdown-menu-right"},X1=["href"],Q1=["href"],Z1=["href"],x1=["onClick"],ew={key:1,class:"paper-table-empty"},tw={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},nw={key:0,class:"pagination-compact"},ow=["disabled"],sw=["max"],iw=["disabled"],rw={class:"admin-filter-inline"},aw={class:"form-control form-control-sm"};function cp(e,t){let s=Pe("field"),i=Pe("form");return a(),l("div",n1,[t[55]||(t[55]=Ce('
Admin \xA0/\xA0 Conferences

Conferences

',3)),n("div",o1,[n("div",s1,[n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="all"}]),"aria-checked":e.segView()==="all",onClick:t[0]||(t[0]=o=>e.setSegView("all"))},[t[14]||(t[14]=m("All ",-1)),n("span",r1,d(e.fmt?.number(e.segCount("all"))),1)],10,i1),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="ready","is-empty":!e.segCount("ready")}]),"aria-checked":e.segView()==="ready",onClick:t[1]||(t[1]=o=>e.setSegView("ready"))},[t[15]||(t[15]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[16]||(t[16]=m("Ready ",-1)),n("span",l1,d(e.fmt?.number(e.segCount("ready"))),1)],10,a1),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="preparing","is-empty":!e.segCount("preparing")}]),"aria-checked":e.segView()==="preparing",onClick:t[2]||(t[2]=o=>e.setSegView("preparing"))},[t[17]||(t[17]=n("span",{class:"seg-dot warn","aria-hidden":"true"},null,-1)),t[18]||(t[18]=m("Preparing ",-1)),n("span",u1,d(e.fmt?.number(e.segCount("preparing"))),1)],10,d1),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="error","is-empty":!e.segCount("error")}]),"aria-checked":e.segView()==="error",onClick:t[3]||(t[3]=o=>e.setSegView("error"))},[t[19]||(t[19]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[20]||(t[20]=m("Error ",-1)),n("span",p1,d(e.fmt?.number(e.segCount("error"))),1)],10,c1),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="expired","is-empty":!e.segCount("expired")}]),"aria-checked":e.segView()==="expired",onClick:t[4]||(t[4]=o=>e.setSegView("expired"))},[t[21]||(t[21]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[22]||(t[22]=m("Expired ",-1)),n("span",m1,d(e.fmt?.number(e.segCount("expired"))),1)],10,f1),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="removed","is-empty":!e.segCount("removed")}]),"aria-checked":e.segView()==="removed",onClick:t[5]||(t[5]=o=>e.setSegView("removed"))},[t[23]||(t[23]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[24]||(t[24]=m("Removed ",-1)),n("span",g1,d(e.fmt?.number(e.segCount("removed"))),1)],10,h1)]),n("p",v1,[n("strong",null,d(e.total>=0?e.fmt.number(e.total):"\u2026"),1),t[25]||(t[25]=m(" shown",-1))])]),e.fetchError?(a(),l("div",y1,[t[26]||(t[26]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),m(" "+d(e.fetchError),1)])):f("v-if",!0),P((a(),l("form",b1,[n("div",w1,[n("div",k1,[P(n("input",C1,null,512),[[s,{state:e.viewState,set:o=>{e.query.search=o},value:e.query?.search,form:null,options:{}}]]),e.query?.search?f("v-if",!0):(a(),l("span",S1,"/"))]),t[30]||(t[30]=n("span",{class:"admin-filter-spacer"},null,-1)),e.total>0?(a(),l("button",{key:0,class:"btn btn-sm",type:"button",onClick:t[6]||(t[6]=o=>e.exportCsv())},[...t[27]||(t[27]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),m(" Export",-1)])])):f("v-if",!0),e.totalPage>1?(a(),l("span",E1,[n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[7]||(t[7]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[28]||(t[28]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,N1),n("span",R1,d(e.query?.page)+"/"+d(e.totalPage||1),1),n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[8]||(t[8]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[29]||(t[29]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,T1)])):f("v-if",!0)]),e.chips?.length?(a(),l("div",P1,[n("div",D1,[(a(!0),l(V,null,X(e.chips,(o,r)=>(a(),l("span",{class:"admin-active-chip",key:o?.key},[n("span",A1,d(o?.label),1),n("span",null,d(o?.value),1),n("button",{type:"button",onClick:u=>e.clearFilter(o.key),"aria-label":"Clear filter"},[...t[31]||(t[31]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,I1)]))),128))])])):f("v-if",!0)])),[[i,e.viewState]]),n("div",O1,[e.total!==0?(a(),l("div",M1,[n("div",V1,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="name"}]),onClick:t[9]||(t[9]=o=>e.sortBy("name"))},[t[33]||(t[33]=m("Conference ",-1)),e.sortIcon("name")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("name")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[32]||(t[32]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",q1,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="status"}]),onClick:t[10]||(t[10]=o=>e.sortBy("status"))},[t[35]||(t[35]=m("Status ",-1)),e.sortIcon("status")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[34]||(t[34]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[38]||(t[38]=n("div",{role:"columnheader",class:"num"},"Repos",-1)),n("div",L1,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="startDate"}]),onClick:t[11]||(t[11]=o=>e.sortBy("startDate"))},[t[37]||(t[37]=m("Window ",-1)),e.sortIcon("startDate")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("startDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[36]||(t[36]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[39]||(t[39]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))])):f("v-if",!0),(a(!0),l(V,null,X(e.filteredConferences,(o,r)=>(a(),l("div",_1,[n("div",$1,[t[40]||(t[40]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Conference"},[n("use",{href:"#project-icon-conference"})],-1)),n("div",F1,[n("a",{class:"repo-name",textContent:d(o?.name),href:e.safeUrl("/conference/"+o?.conferenceID)},null,8,U1),n("div",B1,[n("span",null,d(o?.conferenceID),1),n("span",null,d(e.fmt?.money(o?.price||0)),1)])])]),n("div",z1,[n("span",{class:R(["status-dot","st-"+(o?.status||"unknown")])},null,2),n("span",{textContent:d(e.fmt?.statusLabel(o?.status))},null,8,H1)]),n("div",j1,[t[41]||(t[41]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1)),n("a",{title:"Show repositories in this conference",textContent:d(e.fmt?.number(o?.repositories?.length||0)),href:e.safeUrl("/admin/?conference="+o?.conferenceID)},null,8,G1)]),n("div",W1,[t[42]||(t[42]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),m(" "+d(e.fmt?.date(o?.startDate))+" \u2013 "+d(e.fmt?.date(o?.endDate)),1)]),n("div",K1,[n("div",Y1,[t[48]||(t[48]=n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})])],-1)),n("div",J1,[n("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+o?.conferenceID+"/edit")},[...t[43]||(t[43]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),m(" Edit",-1)])],8,X1),n("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+o?.conferenceID+"/")},[...t[44]||(t[44]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),m(" View",-1)])],8,Q1),n("a",{class:"dropdown-item",href:e.safeUrl("/admin/?conference="+o?.conferenceID)},[...t[45]||(t[45]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1),m(" View repositories",-1)])],8,Z1),t[47]||(t[47]=n("div",{class:"dropdown-divider"},null,-1)),P(n("a",{class:"dropdown-item text-danger",href:"#",onClick:de(u=>e.removeConference(o),["prevent"])},[...t[46]||(t[46]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),m(" Remove",-1)])],8,x1),[[Q,o?.status!="removed"]])])])])]))),256)),e.filteredConferences?.length==0?(a(),l("div",ew,[t[49]||(t[49]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),n("span",null,d(e.total?"No conferences match the current filters.":"No conferences yet."),1)])):f("v-if",!0)]),n("div",tw,[t[54]||(t[54]=n("span",{"aria-hidden":"true"},null,-1)),e.totalPage>1?(a(),l("div",nw,[n("button",{class:"btn btn-sm",onClick:t[12]||(t[12]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[50]||(t[50]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1),m(" Previous",-1)])],8,ow),P(n("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,sw),[[s,{state:e.viewState,set:o=>{e.query.page=o},value:e.query?.page,form:null,options:{}}]]),n("span",null,"of "+d(e.totalPage),1),n("button",{class:"btn btn-sm",onClick:t[13]||(t[13]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[51]||(t[51]=[m("Next ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,iw)])):f("v-if",!0),n("span",rw,[t[53]||(t[53]=n("label",null,"Per page",-1)),P((a(),l("select",aw,[...t[52]||(t[52]=[Ce('',5)])])),[[s,{state:e.viewState,set:o=>{e.query.limit=o},value:e.query?.limit,form:null,options:{}}]])])])])}var lw={class:"container paper-page admin-page overview-page errors-page"},dw={class:"error-source-toolbar"},uw={class:"error-source-switch seg-filter",role:"group","aria-label":"Log source"},cw=["aria-pressed"],pw=["aria-pressed"],fw={class:"error-health-strip"},mw={class:"log-state",role:"status","aria-live":"polite"},hw=["disabled"],gw={class:"sr-only"},vw=["aria-busy"],yw={class:"volume-head"},bw=["href"],ww={key:0,class:"log-inspector","aria-labelledby":"log-detail-title"},kw={class:"log-inspector-heading"},Cw={class:"log-inspector-eyebrow"},Sw={id:"log-detail-title",tabindex:"-1"},Ew={key:0},Nw={class:"log-facts-strip"},Rw=["datetime"],Tw=["datetime"],Pw={class:"log-detail log-investigation-body",id:"log-detail"},Dw={class:"log-related-main"},Aw={class:"log-correlation-selector",role:"group","aria-label":"Related events correlation"},Iw=["id","aria-label","aria-pressed","onClick"],Ow={class:"log-selector-mark","aria-hidden":"true"},Mw={key:0,class:"log-meta"},Vw={class:"log-correlation-window"},qw=["aria-busy"],Lw={class:"volume-head"},_w={key:0,role:"status"},$w={key:1,class:"log-coverage"},Fw={key:2,class:"log-events"},Uw=["datetime","title"],Bw={class:"log-timeline-event"},zw={class:"log-timeline-event-title"},Hw={key:0},jw={key:1},Gw={key:2},Ww={key:0,class:"log-request-route"},Kw={key:1,class:"log-error-stack"},Yw={key:0},Jw={key:0},Xw={key:1},Qw={key:2},Zw={class:"log-event-fields"},xw=["onClick"],ek={class:"log-timeline-scope"},tk=["href"],nk={key:1,class:"log-no-trace"},ok={class:"log-evidence"},sk={class:"log-coverage"},ik={class:"log-sample-panel"},rk={class:"log-coverage"},ak={key:0,class:"log-request-route"},lk={key:1,class:"log-reproduction"},dk={key:2,class:"log-error-stack"},uk={key:0},ck={key:1},pk={key:2},fk={class:"log-sample-facts"},mk={key:0},hk={class:"log-detail-identifiers"},gk={key:0},vk={class:"log-value-reveal"},yk=["onClick"],bk={class:"log-all-fields"},wk={class:"log-raw-sample"},kk={class:"log-list-view"},Ck={class:"log-query"},Sk={key:0},Ek=["disabled"],Nk={key:0,class:"log-coverage"},Rk={class:"log-local-filters"},Tk={class:"log-search"},Pk={class:"log-coverage",role:"status",title:"Counts and first/last dates apply only to returned records, not all matching events."},Dk={key:0,class:"log-loading"},Ak={key:1,class:"log-workspace"},Ik={class:"log-results"},Ok={key:0,class:"log-table-scroll"},Mk={class:"log-table",role:"table"},Vk=["aria-label","onClick","aria-expanded"],qk={class:"log-event-title"},Lk={class:"log-meta"},_k={class:"log-service"},$k={class:"log-module"},Fk={class:"log-level"},Uk={key:0,class:"log-http"},Bk={class:"log-count"},zk=["datetime","title"],Hk={key:1,class:"admin-empty"},jk={key:2,class:"admin-empty"},Gk={key:2,class:"log-health"},Wk={key:0},Kk={key:1},Yk={key:2},Jk={key:0,class:"log-copy-status",role:"status"},Xk=["aria-busy"],Qk={key:0,class:"history-warning",role:"status"},Zk={key:1,class:"log-inspector"},xk={class:"log-inspector-heading"},e0={class:"log-inspector-eyebrow"},t0={id:"history-inspector-title",tabindex:"-1"},n0={key:0},o0={class:"log-inspector-tabs detail-tabs",role:"group","aria-label":"History event view"},s0=["aria-pressed"],i0=["aria-pressed"],r0=["aria-pressed"],a0=["aria-pressed"],l0=["aria-pressed"],d0={class:"errors-toolbar","aria-label":"Error filters"},u0={class:"seg-filter",role:"group","aria-label":"Filter by severity"},c0=["aria-pressed"],p0=["aria-pressed"],f0=["aria-pressed"],m0=["aria-pressed"],h0={class:"search-wrap"},g0={type:"search",class:"form-control","aria-label":"Search application history",placeholder:"Search history\u2026",title:"Search messages, or filter with code:repo_not_found module:route status:>=400",autocomplete:"off"},v0={key:0,class:"filter-count"},y0={class:"history-view-options"},b0={class:"history-view-controls"},w0={class:"select-wrap"},k0={id:"history-sort",class:"form-control form-control-sm"},C0={class:"select-wrap"},S0={id:"history-merge",class:"form-control form-control-sm"},E0={class:"autoref"},N0={type:"checkbox"},R0={key:0,role:"status"},T0={key:1,class:"admin-empty"},P0={key:2},D0={key:3,class:"errors-pager"},A0=["disabled"],I0={key:0,class:"errors-list-head"},O0={key:0,class:"errors-group-head"},M0={class:"errors-group-count"},V0={key:0,class:"errors-group-note"},q0=["data-history-key","aria-expanded","aria-controls","onClick"],L0={class:"col-when"},_0={class:"when-rel"},$0={class:"when-abs"},F0={class:"col-sev"},U0={class:"sev-label"},B0={class:"col-mod"},z0={class:"pill pill-module"},H0={class:"col-msg"},j0={class:"msg-code"},G0={key:0,class:"msg-context"},W0={key:1,class:"msg-detail"},K0=["title"],Y0={class:"col-count"},J0={key:0,class:"count-pill"},X0={key:1,class:"count-pill count-pill-muted"},Q0={class:"col-status"},Z0=["title"],x0={key:1,class:"status-empty",title:"No HTTP status for this event"},e2=["id"],t2={class:"detail-body"},n2={class:"detail-main"},o2={key:0},s2={key:0,class:"log-request-route"},i2={key:1,class:"log-reproduction"},r2=["onClick"],a2={key:2},l2={key:0},d2={class:"log-explanation-lead"},u2={class:"log-evidence"},c2={class:"history-technical"},p2={key:0,class:"history-fields"},f2={class:"log-value-reveal"},m2=["onClick"],h2={key:1},g2={key:2,class:"stack-pre"},v2={key:3,class:"history-occurrences","aria-label":"Stored occurrences"},y2={class:"log-evidence"},b2={class:"history-occurrence-list"},w2={class:"history-occurrence"},k2={class:"history-occurrence-heading"},C2=["datetime"],S2={class:"history-occurrence-context"},E2={key:0},N2={key:1},R2={key:0},T2={key:1},P2={key:2,class:"log-evidence"},D2={key:3,class:"log-evidence"},A2={class:"history-occurrence-record"},I2={class:"detail-actions"},O2=["onClick"],M2=["onClick"],V2=["onClick"],q2=["onClick"],L2={key:3,class:"copy-hint"},_2={class:"detail-aside"},$2={class:"aside-block"},F2=["title"],U2={class:"aside-block"},B2=["title"],z2={class:"aside-block"},H2={class:"aside-value"},j2={key:0,class:"aside-sub"},G2={key:0,class:"aside-block"},W2=["href"],K2={key:0,class:"log-value-reveal"},Y2=["onClick"],J2={key:1,class:"aside-block"},X2={class:"aside-value mono"},Q2={class:"history-management"},Z2={class:"volume-head"},x2={class:"errors-actions"},eC={role:"status"},tC={key:0},nC={class:"history-summary"},oC={key:0,class:"kpi-grid"},sC={class:"kpi-card"},iC={class:"kpi-value"},rC={key:0},aC={key:1},lC={key:2},dC={class:"kpi-card kpi-error"},uC={class:"kpi-value"},cC={class:"kpi-sub"},pC={class:"kpi-card kpi-warn"},fC={class:"kpi-value"},mC={class:"kpi-sub"},hC={class:"kpi-card kpi-info"},gC={class:"kpi-value"},vC={class:"kpi-sub"},yC={class:"kpi-value"},bC={class:"kpi-sub"},wC={key:0,class:"dropped-warn"},kC={key:1,class:"volume-chart"},CC={class:"volume-head"},SC={class:"volume-legend"},EC={key:0},NC={key:1},RC={key:2},TC={class:"volume-bars"},PC=["title"],DC={key:1},AC={key:0,class:"admin-empty"},IC=["aria-busy"],OC={class:"volume-head"},MC={id:"log-timeline-title",tabindex:"-1"},VC={key:0,class:"log-origin"},qC={key:1,role:"status"},LC={key:2,class:"log-coverage"},_C={key:3,class:"log-events"},$C=["datetime","title"],FC={class:"log-timeline-event"},UC={class:"log-timeline-event-title"},BC={key:0},zC={key:1},HC={key:2},jC={key:0,class:"log-request-route"},GC={key:1,class:"log-error-stack"},WC={key:0},KC={key:0},YC={key:1},JC={key:2},XC={class:"log-event-fields"},QC=["onClick"],ZC={class:"log-timeline-scope"},xC=["href"];function pp(e,t){let s=Pe("field"),i=Pe("form");return a(),l("div",lw,[t[117]||(t[117]=Ce('
Admin \xA0/\xA0 Errors

Errors

',2)),n("div",dw,[n("div",uw,[n("button",{id:"error-source-central",type:"button",class:R(["seg-chip",{active:e.errorSource==="central"}]),"aria-pressed":e.errorSource==="central",onClick:t[0]||(t[0]=o=>e.errorSource="central")},"Central logs",10,cw),n("button",{id:"error-source-history",type:"button",class:R(["seg-chip",{active:e.errorSource==="history"}]),"aria-pressed":e.errorSource==="history",onClick:t[1]||(t[1]=o=>e.errorSource="history")},"Application history",10,pw)]),n("div",fw,[n("p",mw,d(e.errorSource==="history"?e.redisLoading?"Loading application history\u2026":e.available===null?"Checking Redis\u2026":e.available?"Redis history is reachable.":"Redis history is unavailable. Previously loaded rows may be stale.":e.logFailure||(e.logLoading?"Loading central logs\u2026":e.logSnapshotStale?"This snapshot is stale. Refresh before assessing current health.":e.logStateText(e.logData?.state))),1),n("button",{type:"button",class:"btn btn-sm",disabled:e.errorSource==="central"?e.logLoading:e.redisLoading,onClick:t[2]||(t[2]=o=>e.errorSource==="central"?e.refreshLogs():e.refreshNow())},[m(d((e.errorSource==="central"?e.logLoading:e.redisLoading)?"Refreshing\u2026":"Refresh"),1),n("span",gw,d(e.errorSource==="central"?" central logs":" history"),1)],8,hw),e.errorSource==="central"&&(e.logFailure||["disabled","misconfigured","unreachable","busy"].includes(e.logData?.state))?(a(),l("button",{key:0,type:"button",class:"btn btn-sm",onClick:t[3]||(t[3]=o=>e.errorSource="history")},"Open application history")):f("v-if",!0)])]),P(n("section",{class:"log-investigation","aria-labelledby":"central-logs-title","aria-busy":e.logLoading},[n("div",yw,[t[31]||(t[31]=n("h2",{class:"sr-only",id:"central-logs-title"},"Central logs",-1)),e.logData?.grafanaUrl?(a(),l("a",{key:0,href:e.safeUrl(e.logData.grafanaUrl),target:"_blank",rel:"noopener noreferrer"},"Open in Grafana",8,bw)):f("v-if",!0)]),e.selectedLog?(a(),l("section",ww,[n("button",{type:"button",class:"log-back",onClick:t[4]||(t[4]=o=>e.closeLogDetail())},[...t[32]||(t[32]=[n("span",{"aria-hidden":"true"},"\u2190",-1),m(" Back to events",-1)])]),n("div",kw,[n("div",null,[n("p",Cw,d(e.selectedLog.sample.service)+" / "+d(e.selectedLog.sample.module)+" \xB7 Event sample",1),n("h2",Sw,d(e.selectedLog.sample.errorCode||e.selectedLog.sample.errorType||e.selectedLog.sample.event),1)]),n("span",{class:R(["log-severity","log-severity-"+e.logSeverity(e.selectedLog.sample)])},[m(d(e.logSeverity(e.selectedLog.sample)==="error"?"Failure":e.logSeverity(e.selectedLog.sample)==="warn"?"Warning":"Info"),1),e.selectedLog.sample.status||e.selectedLog.sample.httpStatus?(a(),l("span",Ew," \xB7 HTTP "+d(e.selectedLog.sample.status||e.selectedLog.sample.httpStatus),1)):f("v-if",!0)],2)]),n("div",Nw,[n("span",null,[n("strong",null,d(e.selectedLog.count),1),t[33]||(t[33]=m(" returned occurrences",-1))]),n("span",null,[t[34]||(t[34]=m("First ",-1)),n("time",{datetime:e.selectedLog.first},d(e.absTimeShort(e.selectedLog.first)),9,Rw)]),n("span",null,[t[35]||(t[35]=m("Last ",-1)),n("time",{datetime:e.selectedLog.last},d(e.absTimeShort(e.selectedLog.last)),9,Tw)])]),n("div",Pw,[n("div",Dw,[n("div",Aw,[t[36]||(t[36]=n("span",null,"Follow",-1)),(a(!0),l(V,null,X(["requestId","jobId"].filter(o=>e.logTraceId(e.selectedLog,o)),o=>(a(),l("button",{type:"button",class:"log-trace-button",key:o,id:"trace-selector-"+o,"aria-label":"Follow "+(o==="requestId"?"request ":"job ")+e.selectedLog.sample[o],"aria-pressed":e.traceSelection?.kind===o,onClick:r=>e.lookupTrace(o,e.selectedLog.sample[o],r.currentTarget,e.selectedLog.sample)},[m(d(o==="requestId"?"Request":"Job")+" ",1),n("span",Ow,d(e.traceSelection?.kind===o?"\u2713":"\u2192"),1)],8,Iw))),128)),!e.logTraceId(e.selectedLog,"requestId")&&!e.logTraceId(e.selectedLog,"jobId")?(a(),l("span",Mw,"No correlation ID recorded")):f("v-if",!0),n("span",Vw,d(e.logData?.window||e.logAppliedFilters.window)+" window",1)]),e.traceSelection?(a(),l("section",{key:0,class:"log-timeline","aria-labelledby":"log-timeline-title","aria-busy":e.traceLoading},[n("div",Lw,[t[37]||(t[37]=n("h3",{id:"log-timeline-title",tabindex:"-1"},"Related events",-1)),n("button",{type:"button",class:"btn btn-sm",onClick:t[5]||(t[5]=o=>e.closeTrace())},"Hide events")]),e.traceLoading||e.trace?.state!=="ready"?(a(),l("p",_w,d(e.traceLoading?"Loading related events\u2026":e.trace?.state==="empty"?"No related events returned in this window.":e.logStateText(e.trace?.state)),1)):f("v-if",!0),e.trace&&!e.traceLoading?(a(),l("p",$w,d(e.trace.events?.length||0)+" events returned \xB7 "+d(e.absTime(e.trace.start))+" \u2013 "+d(e.absTime(e.trace.end))+" \xB7 200-event cap. All services and releases.",1)):f("v-if",!0),e.trace?.events?.length?(a(),l("ol",Fw,[(a(!0),l(V,null,X(e.trace.events,(o,r)=>(a(),l("li",{key:r},[n("time",{datetime:o.timestamp,title:o.timestamp},d(e.absTimeShort(o.timestamp)),9,Uw),n("div",Bw,[n("div",zw,[n("strong",null,d(o.errorCode||o.errorType||o.event),1),n("span",{class:R(["log-severity","log-severity-"+e.logSeverity(o)])},d(o.status||o.httpStatus?"HTTP "+(o.status||o.httpStatus):o.severity||"Event"),3)]),n("p",null,[m(d(o.service),1),o.module?(a(),l("span",Hw," / "+d(o.module),1)):f("v-if",!0),o.ms!==void 0?(a(),l("span",jw," \xB7 "+d(o.ms)+" ms",1)):f("v-if",!0),o.attempt!==void 0?(a(),l("span",Gw," \xB7 attempt "+d(o.attempt),1)):f("v-if",!0)]),o.route?(a(),l("p",Ww,[n("code",null,d(o.method)+" "+d(o.requestPath||o.route),1)])):f("v-if",!0),o.errorStack||o.causeStack?(a(),l("details",Kw,[n("summary",null,[t[38]||(t[38]=m("Exception frames",-1)),o.errorType?(a(),l("span",Yw," \xB7 "+d(o.errorType),1)):f("v-if",!0)]),o.errorStack?(a(),l("pre",Jw,d(o.errorStack),1)):f("v-if",!0),o.causeType?(a(),l("p",Xw,"Caused by "+d(o.causeType),1)):f("v-if",!0),o.causeStack?(a(),l("pre",Qw,d(o.causeStack),1)):f("v-if",!0)])):f("v-if",!0),n("details",Zw,[t[39]||(t[39]=n("summary",null,"Event fields",-1)),n("pre",null,d(JSON.stringify(o,null,2)),1),n("button",{type:"button",class:"btn btn-sm",onClick:u=>e.copyLogValue(JSON.stringify(o,null,2))},"Copy JSON",8,xw)])])]))),128))])):f("v-if",!0),n("details",ek,[t[40]||(t[40]=n("summary",null,"Query scope",-1)),n("p",null,"Earliest matching events for the selected "+d(e.traceSelection.kind==="jobId"?"job":"request")+" ID. Service and release filters do not narrow this timeline.",1)]),e.trace?.grafanaUrl?(a(),l("a",{key:3,href:e.safeUrl(e.trace.grafanaUrl),target:"_blank",rel:"noopener noreferrer"},"Open in Grafana",8,tk)):f("v-if",!0)],8,qw)):f("v-if",!0),e.traceSelection?f("v-if",!0):(a(),l("div",nk,[n("h3",null,d(e.logTraceId(e.selectedLog,"requestId")||e.logTraceId(e.selectedLog,"jobId")?"Related events hidden":"This sample has no correlation ID"),1),n("p",null,d(e.logExplanation(e.selectedLog.sample)),1),n("p",ok,d(e.logEvidence(e.selectedLog.sample)),1),n("p",sk,d(e.logTraceId(e.selectedLog,"requestId")||e.logTraceId(e.selectedLog,"jobId")?"Choose Request or Job above to load related events.":"The recorded fields are available in the sample panel. Related events cannot be looked up for this record."),1)]))]),n("aside",ik,[t[51]||(t[51]=n("h3",null,"Event sample",-1)),n("p",rk,"One of "+d(e.selectedLog.count)+" returned occurrences. IDs can differ across the group.",1),e.selectedLog.sample.route?(a(),l("p",ak,[n("code",null,d(e.selectedLog.sample.method)+" "+d(e.selectedLog.sample.route),1)])):f("v-if",!0),e.selectedLog.sample.requestPath?(a(),l("section",lk,[t[43]||(t[43]=n("h3",null,"Reproduce this request",-1)),n("dl",null,[n("div",null,[t[41]||(t[41]=n("dt",null,"Anonymous repository ID",-1)),n("dd",null,[n("code",null,d(e.selectedLog.sample.repoId),1)])]),n("div",null,[t[42]||(t[42]=n("dt",null,"Request path \xB7 query excluded",-1)),n("dd",null,[n("code",null,d(e.selectedLog.sample.requestPath),1)])])]),n("button",{type:"button",class:"btn btn-sm",onClick:t[6]||(t[6]=o=>e.copyLogValue(e.selectedLog.sample.requestPath))},"Copy request path")])):f("v-if",!0),e.selectedLog.sample.errorStack||e.selectedLog.sample.causeStack?(a(),l("details",dk,[n("summary",null,"Exception frames \xB7 "+d(e.selectedLog.sample.errorType),1),e.selectedLog.sample.errorStack?(a(),l("pre",uk,d(e.selectedLog.sample.errorStack),1)):f("v-if",!0),e.selectedLog.sample.causeType?(a(),l("p",ck,"Caused by "+d(e.selectedLog.sample.causeType),1)):f("v-if",!0),e.selectedLog.sample.causeStack?(a(),l("pre",pk,d(e.selectedLog.sample.causeStack),1)):f("v-if",!0)])):f("v-if",!0),n("dl",fk,[n("div",null,[t[44]||(t[44]=n("dt",null,"Service",-1)),n("dd",null,d(e.selectedLog.sample.service),1)]),n("div",null,[t[45]||(t[45]=n("dt",null,"Module",-1)),n("dd",null,d(e.selectedLog.sample.module||"Not recorded"),1)]),n("div",null,[t[46]||(t[46]=n("dt",null,"Event",-1)),n("dd",null,d(e.selectedLog.sample.event),1)]),e.selectedLog.sample.release?(a(),l("div",mk,[t[47]||(t[47]=n("dt",null,"Release",-1)),n("dd",null,d(e.selectedLog.sample.release),1)])):f("v-if",!0)]),n("dl",hk,[(a(),l(V,null,X(["requestId","jobId"],o=>(a(),l(V,{key:o},[e.logTraceId(e.selectedLog,o)?(a(),l("div",gk,[n("dt",null,d(o==="requestId"?"Request ID":"Job ID"),1),n("dd",null,[n("details",vk,[n("summary",null,d(e.compactLogValue(e.selectedLog.sample[o])),1),n("span",null,d(e.selectedLog.sample[o]),1)]),n("button",{type:"button",class:"log-copy-value",onClick:r=>e.copyLogValue(e.selectedLog.sample[o])},"Copy full ID",8,yk)])])):f("v-if",!0)],64))),64))]),n("details",bk,[n("summary",null,[t[48]||(t[48]=m("All sample fields ",-1)),n("span",null,d(Object.keys(e.selectedLog.sample).length),1)]),t[50]||(t[50]=n("p",{class:"log-coverage"},"Admin API fields only. Failed file requests may include their anonymous repository ID and pathname. Query strings are excluded; exception frames include recognized application code only.",-1)),n("dl",null,[(a(!0),l(V,null,X(e.selectedLog.sample,(o,r)=>P((a(),l("div",{key:r},[n("dt",null,d(r),1),n("dd",null,d(o),1)])),[[Q,!["requestId","jobId"].includes(r)]])),128))]),n("details",wk,[t[49]||(t[49]=n("summary",null,"Raw sample",-1)),n("pre",null,d(JSON.stringify(e.selectedLog.sample,null,2)),1),n("button",{class:"btn btn-sm",type:"button",onClick:t[7]||(t[7]=o=>e.copyLogValue(JSON.stringify(e.selectedLog.sample,null,2)))},"Copy JSON")])])])])])):f("v-if",!0),P(n("div",kk,[n("details",Ck,[n("summary",null,[m("Window: "+d(e.logAppliedFilters.window)+" \xB7 "+d(e.logAppliedFilters.service||"All services"),1),e.logAppliedFilters.release?(a(),l("span",Sk," \xB7 "+d(e.logAppliedFilters.release),1)):f("v-if",!0),t[52]||(t[52]=n("span",{class:"log-query-hint"},"Time & service",-1))]),t[58]||(t[58]=m()),n("form",{class:"errors-toolbar log-filters",onSubmit:t[11]||(t[11]=de(o=>e.refreshLogs(),["prevent"]))},[n("label",null,[t[54]||(t[54]=m("Time window ",-1)),P(n("select",{class:"form-control","onUpdate:modelValue":t[8]||(t[8]=o=>e.logFilters.window=o),id:"log-window"},[...t[53]||(t[53]=[n("option",{value:"15m"},"Last 15 minutes",-1),n("option",{value:"1h"},"Last hour",-1),n("option",{value:"6h"},"Last 6 hours",-1),n("option",{value:"24h"},"Last 24 hours",-1)])],512),[[Nt,e.logFilters.window]])]),n("label",null,[t[56]||(t[56]=m("Service ",-1)),P(n("select",{class:"form-control","onUpdate:modelValue":t[9]||(t[9]=o=>e.logFilters.service=o),id:"log-service"},[...t[55]||(t[55]=[Ce('',8)])],512),[[Nt,e.logFilters.service]])]),n("label",null,[t[57]||(t[57]=m("Release SHA ",-1)),P(n("input",{class:"form-control",id:"log-release","onUpdate:modelValue":t[10]||(t[10]=o=>e.logFilters.release=o),maxlength:"40",placeholder:"All releases",pattern:"[a-f0-9]{7,40}|unknown",autocomplete:"off"},null,512),[[nt,e.logFilters.release]])]),n("button",{class:"btn btn-sm",type:"submit",disabled:e.logLoading},d(e.logLoading?"Loading\u2026":"Refresh logs"),9,Ek)],32),e.logData?.captured!==void 0?(a(),l("p",Nk,d(e.logData.captured)+" records returned \xB7 1,000-record cap \xB7 "+d(e.absTime(e.logData.start))+" to "+d(e.absTime(e.logData.end)),1)):f("v-if",!0)]),n("div",Rk,[n("label",Tk,[t[59]||(t[59]=m("Search returned groups",-1)),P(n("input",{class:"form-control",type:"search","onUpdate:modelValue":t[12]||(t[12]=o=>e.logView.search=o),placeholder:"Event, service, code or sample ID"},null,512),[[nt,e.logView.search]])]),n("label",null,[t[61]||(t[61]=m("Severity",-1)),P(n("select",{class:"form-control","onUpdate:modelValue":t[13]||(t[13]=o=>e.logView.severity=o)},[...t[60]||(t[60]=[n("option",{value:""},"All severities",-1),n("option",{value:"error"},"Failure / HTTP 5xx",-1),n("option",{value:"warn"},"Warning",-1),n("option",{value:"info"},"Info",-1)])],512),[[Nt,e.logView.severity]])]),n("label",null,[t[63]||(t[63]=m("Sort",-1)),P(n("select",{class:"form-control","onUpdate:modelValue":t[14]||(t[14]=o=>e.logView.sort=o)},[...t[62]||(t[62]=[n("option",{value:"recent"},"Most recent",-1),n("option",{value:"count"},"Most frequent",-1)])],512),[[Nt,e.logView.sort]])])]),n("p",Pk,d(e.filteredLogGroups().length)+" of "+d(e.logData?.groups?.length||0)+" returned groups \xB7 "+d(e.logData?.captured??0)+" records \xB7 1,000-record cap.",1),e.logLoading?(a(),l("div",Dk,"Loading event groups\u2026")):(a(),l("div",Ak,[n("div",Ik,[e.filteredLogGroups().length?(a(),l("div",Ok,[n("table",Mk,[t[66]||(t[66]=n("caption",{class:"sr-only"},"Returned events grouped by service, module, code, severity and status. Select an event for sample details.",-1)),t[67]||(t[67]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Event"),n("th",{scope:"col"},"Severity"),n("th",{scope:"col"},"Count"),n("th",{scope:"col"},"Last seen")])],-1)),n("tbody",null,[(a(!0),l(V,null,X(e.filteredLogGroups(),o=>(a(),l("tr",{key:o.fingerprint,class:R({"log-selected":e.selectedLog?.fingerprint===o.fingerprint})},[n("td",null,[n("button",{class:"log-event-button",type:"button","aria-label":"Inspect "+(o.sample.errorCode||o.sample.errorType||o.sample.event),onClick:r=>e.selectLog(o,r.currentTarget),"aria-expanded":e.selectedLog?.fingerprint===o.fingerprint,"aria-controls":"log-detail"},[n("span",qk,[n("strong",null,d(o.sample.errorCode||o.sample.errorType||o.sample.event),1),t[64]||(t[64]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-arrow-right"})],-1))]),n("span",Lk,[n("span",_k,d(o.sample.service),1),n("span",$k," / "+d(o.sample.module),1)])],8,Vk)]),n("td",Fk,[n("span",{class:R(["log-severity","log-severity-"+e.logSeverity(o.sample)])},d(e.logSeverity(o.sample)==="error"?"Failure":e.logSeverity(o.sample)==="warn"?"Warning":"Info"),3),o.sample.status||o.sample.httpStatus?(a(),l("span",Uk,"HTTP "+d(o.sample.status||o.sample.httpStatus),1)):f("v-if",!0)]),n("td",Bk,[t[65]||(t[65]=n("span",{class:"sr-only"},"Count ",-1)),m(d(o.count),1)]),n("td",null,[n("time",{datetime:o.last,title:e.absTime(o.last)},d(e.relTime(o.last)),9,zk)])],2))),128))])])])):e.logData?.groups?.length?(a(),l("div",Hk,[t[68]||(t[68]=m("No returned groups match these filters. ",-1)),n("button",{class:"btn btn-sm",onClick:t[15]||(t[15]=o=>{e.logView.search="",e.logView.severity=""})},"Reset filters")])):(a(),l("div",jk,d(e.logData?.state==="empty"?"No warnings, errors or HTTP 5xx returned in this window.":"No central events available. Refresh logs or open Application history."),1))])])),e.logData?.telemetry?(a(),l("details",Gk,[t[70]||(t[70]=n("summary",null,[m("Telemetry details "),n("span",null,"90 seconds before last check")],-1)),e.logData.telemetry.missing?.length?(a(),l("p",Wk,"Missing or stale: "+d(e.logData.telemetry.missing.join(", "))+". Expected one API, four streamers and three queues.",1)):(a(),l("p",Kk,"Expected API, streamer and queue heartbeats were present at the last check.")),e.logData.telemetry.partial?(a(),l("p",Yk,"Telemetry coverage is partial; absence and drop totals may be incomplete.")):f("v-if",!0),n("p",null,"Collector: "+d(e.logData.telemetry.collector.state)+" \xB7 dropped events since collector start: "+d(e.logData.telemetry.collector.dropped??"unknown")+". Intentional filtering is excluded.",1),n("details",null,[t[69]||(t[69]=n("summary",null,"Application drop counters and last telemetry",-1)),n("ul",null,[(a(!0),l(V,null,X(e.logData.telemetry.instances,(o,r)=>(a(),l("li",{key:r},d(o.service)+" \xB7 "+d(o.instance||"unknown instance")+" \xB7 "+d(o.dropped??"unknown")+" dropped since process start \xB7 last seen "+d(e.absTime(o.last)),1))),128))])])])):f("v-if",!0)],512),[[Q,!e.selectedLog]])],8,vw),[[Q,e.errorSource==="central"]]),e.logCopyStatus?(a(),l("p",Jk,d(e.logCopyStatus),1)):f("v-if",!0),P(n("section",{class:"history-source","aria-busy":e.redisLoading},[t[112]||(t[112]=n("h2",{class:"sr-only"},"Application history",-1)),e.redisCollecting!==!0?(a(),l("p",Qk,d(e.redisCollecting===!1?"Collection is off; retained history is not receiving new events.":"Collection status is unknown."),1)):f("v-if",!0),e.historySelected?(a(),l("div",Zk,[n("button",{type:"button",class:"log-back",onClick:t[16]||(t[16]=o=>e.closeHistory())},"\u2190 Back to history"),n("div",xk,[n("div",null,[n("p",e0,d(e.historySelected.module)+" \xB7 Application history",1),n("h2",t0,d(e.historySelected.displayMessage),1)]),n("span",{class:R(["log-severity","log-severity-"+e.historySelected._bucket])},[m(d(e.historySelected._bucket),1),e.historySelected._status?(a(),l("span",n0," \xB7 HTTP "+d(e.historySelected._status),1)):f("v-if",!0)],2)]),n("div",o0,[n("button",{type:"button","aria-pressed":e.historyView==="overview"&&(!e.detailTab[e.historySelected._key]||e.detailTab[e.historySelected._key]==="summary"),class:R({active:e.historyView==="overview"&&(!e.detailTab[e.historySelected._key]||e.detailTab[e.historySelected._key]==="summary")}),onClick:t[17]||(t[17]=o=>{e.historyView="overview",e.detailTab[e.historySelected._key]="summary"})},"Overview",10,s0),n("button",{type:"button","aria-pressed":e.historyView==="timeline",class:R({active:e.historyView==="timeline"}),onClick:t[18]||(t[18]=o=>e.showHistoryTimeline(o.currentTarget))},"Timeline",10,i0),n("button",{type:"button","aria-pressed":e.historyView==="overview"&&e.detailTab[e.historySelected._key]==="raw",class:R({active:e.historyView==="overview"&&e.detailTab[e.historySelected._key]==="raw"}),onClick:t[19]||(t[19]=o=>{e.historyView="overview",e.detailTab[e.historySelected._key]="raw"})},"Raw",10,r0),e.historySelected._stack?(a(),l("button",{key:0,type:"button","aria-pressed":e.historyView==="overview"&&e.detailTab[e.historySelected._key]==="stack",class:R({active:e.historyView==="overview"&&e.detailTab[e.historySelected._key]==="stack"}),onClick:t[20]||(t[20]=o=>{e.historyView="overview",e.detailTab[e.historySelected._key]="stack"})},"Stack",10,a0)):f("v-if",!0),e.historySelected.count>1?(a(),l("button",{key:1,type:"button","aria-pressed":e.historyView==="overview"&&e.detailTab[e.historySelected._key]==="related",class:R({active:e.historyView==="overview"&&e.detailTab[e.historySelected._key]==="related"}),onClick:t[21]||(t[21]=o=>{e.historyView="overview",e.detailTab[e.historySelected._key]="related"})},"Occurrences ("+d(e.historySelected.count)+")",11,l0)):f("v-if",!0)])])):f("v-if",!0),P(n("div",null,[P((a(),l("form",d0,[n("div",u0,[n("button",{type:"button",class:R(["seg-chip",{active:(e.query?.bucket||"")===""}]),"aria-pressed":(e.query?.bucket||"")==="",onClick:t[22]||(t[22]=o=>e.setBucket(""))},"All ",10,c0),n("button",{type:"button",class:R(["seg-chip",{active:(e.query?.bucket||"")==="error","is-empty":!e.stats?.severity?.error}]),"aria-pressed":(e.query?.bucket||"")==="error",onClick:t[23]||(t[23]=o=>e.setBucket("error"))},[...t[71]||(t[71]=[n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1),m("Error ",-1)])],10,p0),n("button",{type:"button",class:R(["seg-chip",{active:(e.query?.bucket||"")==="warn","is-empty":!e.stats?.severity?.warn}]),"aria-pressed":(e.query?.bucket||"")==="warn",onClick:t[24]||(t[24]=o=>e.setBucket("warn"))},[...t[72]||(t[72]=[n("span",{class:"seg-dot warn","aria-hidden":"true"},null,-1),m("Warning ",-1)])],10,f0),n("button",{type:"button",class:R(["seg-chip",{active:(e.query?.bucket||"")==="info","is-empty":!e.stats?.severity?.info}]),"aria-pressed":(e.query?.bucket||"")==="info",onClick:t[25]||(t[25]=o=>e.setBucket("info"))},[...t[73]||(t[73]=[n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1),m("Info ",-1)])],10,m0)]),n("div",h0,[t[74]||(t[74]=n("svg",{class:"ui-icon search-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)),P(n("input",g0,null,512),[[s,{state:e.viewState,set:o=>{e.query.search=o},value:e.query?.search,form:null,options:{}}]]),e.parsedFilterCount?(a(),l("span",v0,d(e.parsedFilterCount)+" filter"+d(e.parsedFilterCount>1?"s":""),1)):f("v-if",!0)]),n("details",y0,[t[80]||(t[80]=n("summary",null,"View options",-1)),n("div",b0,[n("div",w0,[t[76]||(t[76]=n("label",{for:"history-sort"},"Sort",-1)),P((a(),l("select",k0,[...t[75]||(t[75]=[n("option",{value:"recent"},"Most recent",-1),n("option",{value:"count"},"Most frequent",-1)])])),[[s,{state:e.viewState,set:o=>{e.query.sort=o},value:e.query?.sort,form:null,options:{}}]])]),n("div",C0,[t[78]||(t[78]=n("label",{for:"history-merge",title:"Rows are always sectioned by severity. This merges repeated events inside each section."},"Merge",-1)),P((a(),l("select",S0,[...t[77]||(t[77]=[n("option",{value:""},"Don't merge",-1),n("option",{value:"code"},"Same error",-1),n("option",{value:"module"},"Same module",-1)])])),[[s,{state:e.viewState,set:o=>{e.query.group=o},value:e.query?.group,form:null,options:{}}]])]),n("label",E0,[P(n("input",N0,null,512),[[s,{state:e.viewState,set:o=>{e.query.autoRefresh=o},value:e.query?.autoRefresh,form:null,options:{}}]]),t[79]||(t[79]=n("span",{class:"auto-refresh-label"},"Auto-refresh",-1))])])])])),[[i,e.viewState]]),e.redisLoading?(a(),l("p",R0,"Loading application history\u2026")):f("v-if",!0),!e.redisLoading&&!e.visible?.length&&e.available===!0?(a(),l("div",T0,"No matching entries in the loaded Redis history.")):f("v-if",!0),e.redisRedacted?(a(),l("p",P0,d(e.redisRedacted)+" invalid legacy records were omitted. Older valid records may still be available.",1)):f("v-if",!0),e.entries?.length||e.canLoadMore()?(a(),l("div",D0,[n("span",null,d(e.query?.group&&e.visible?.length!==e.entries?.length?e.fmt?.number(e.visible?.length)+(e.visible?.length===1?" group":" groups")+" from ":"")+d(e.fmt?.number(e.entries?.length))+" safe entries loaded \xB7 "+d(e.fmt?.number(e.redisNextOffset||e.entries?.length))+" of "+d(e.fmt?.number(e.total))+" stored records scanned",1),e.canLoadMore()?(a(),l("button",{key:0,class:"btn btn-sm",type:"button",onClick:t[26]||(t[26]=o=>e.loadMore()),disabled:e.redisLoading},"Load 250 older",8,A0)):f("v-if",!0)])):f("v-if",!0)],512),[[Q,!e.historySelected]]),e.visible?.length||e.historySelected?P((a(),l("div",{key:2,class:R(["errors-list",{"history-inspector":e.historySelected}])},[e.historySelected?f("v-if",!0):(a(),l("div",I0,[...t[81]||(t[81]=[Ce('WhenSeverityModuleMessageTotalStatus',6)])])),(a(!0),l(V,null,X(e.historySelected?[e.historySelected]:e.visible,(o,r)=>(a(),l(V,{key:o?._key},[!e.historySelected&&(r===0||e.visible[r-1]?._bucket!==o?._bucket)?(a(),l("div",O0,[n("span",{class:R(["sev-dot","sev-"+o?._bucket])},null,2),m(d(o?._bucket==="error"?"Error":o?._bucket==="warn"?"Warning":"Info"),1),n("span",M0,d(e.fmt?.number(e.visible.filter(u=>u?._bucket===o?._bucket).length)),1),r===0?(a(),l("span",V0,"By severity \xB7 "+d(e.query?.group==="code"?"repeats merged by error \xB7 ":e.query?.group==="module"?"repeats merged by module \xB7 ":"")+d(e.query?.sort==="count"?"most frequent first":"most recent first"),1)):f("v-if",!0)])):f("v-if",!0),n("div",{class:R(["errors-row",{open:e.expanded[o?._key]}])},[P(n("button",{type:"button",class:"errors-row-main","data-history-key":o?._key,"aria-expanded":!!e.expanded[o?._key],"aria-controls":"history-detail-"+r,onClick:u=>e.toggle(o,u.currentTarget)},[n("span",L0,[n("span",_0,d(e.relTime(o?.ts)),1),n("span",$0,d(e.absTimeShort(o?.ts)),1)]),n("span",F0,[n("span",{class:R(["sev-dot","sev-"+o?._bucket])},null,2),n("span",U0,d(o?._bucket==="error"?"Error":o?._bucket==="warn"?"Warning":"Info"),1)]),n("span",B0,[n("span",z0,d(o?.module),1)]),n("span",H0,[n("strong",j0,d(o?.displayMessage),1),o?.displayContext&&o?.displayContext!==o?.displayMessage?(a(),l("span",G0,d(o?.displayContext),1)):f("v-if",!0),o?._detail?(a(),l("span",W0,d(o?._detail),1)):f("v-if",!0),o?._url?(a(),l("span",{key:2,class:"msg-url",title:o?._url},d(o?._url),9,K0)):f("v-if",!0)]),n("span",Y0,[o?.count>1?(a(),l("span",J0,"\xD7"+d(o?.count),1)):f("v-if",!0),o?.count===1?(a(),l("span",X0,"\xD71")):f("v-if",!0)]),n("span",Q0,[o?._status?(a(),l("span",{key:0,class:R(["status-pill",String(o?._status).match(/^[23]/)?"status-neutral":"status-"+o?._bucket]),title:String(o?._status).match(/^2/)&&o?._bucket==="warn"?"Client closed the connection":null},d(String(o?._status).match(/^2/)&&o?._bucket==="warn"?"\u2014":o?._status),11,Z0)):f("v-if",!0),o?._status?f("v-if",!0):(a(),l("span",x0,"\u2014"))])],8,q0),[[Q,!e.historySelected]]),e.expanded[o?._key]?(a(),l("div",{key:0,class:"errors-row-detail",id:"history-detail-"+r},[n("div",t2,[n("div",n2,[!e.detailTab[o?._key]||e.detailTab[o?._key]==="summary"?(a(),l("div",o2,[t[87]||(t[87]=n("h3",null,"What happened",-1)),o.raw?.[0]?.route?(a(),l("p",s2,[n("code",null,d(o.raw[0].method)+" "+d(o.raw[0].route),1)])):f("v-if",!0),o.raw?.[0]?.requestPath?(a(),l("section",i2,[t[84]||(t[84]=n("h3",null,"Reproduce this request",-1)),n("dl",null,[n("div",null,[t[82]||(t[82]=n("dt",null,"Anonymous repository ID",-1)),n("dd",null,[n("code",null,d(o.raw[0].repoId),1)])]),n("div",null,[t[83]||(t[83]=n("dt",null,"Request path \xB7 query excluded",-1)),n("dd",null,[n("code",null,d(o.raw[0].requestPath),1)])])]),n("button",{type:"button",class:"btn btn-sm",onClick:u=>e.copyLogValue(o.raw[0].requestPath)},"Copy request path",8,r2)])):f("v-if",!0),o.raw?.[0]?.errorType?(a(),l("p",a2,[m(d(o.raw[0].errorType),1),o.raw[0].causeType?(a(),l("span",l2," \xB7 caused by "+d(o.raw[0].causeType),1)):f("v-if",!0)])):f("v-if",!0),n("p",d2,d(e.logExplanation(o.raw?.[0]||{})),1),n("p",u2,d(e.logEvidence(o.raw?.[0]||{})),1),n("details",c2,[t[85]||(t[85]=n("summary",null,"Technical fields",-1)),t[86]||(t[86]=m()),!e.detailTab[o?._key]||e.detailTab[o?._key]==="summary"?(a(),l("dl",p2,[(a(!0),l(V,null,X(e.historyDetailFields(o),([u,p])=>(a(),l("div",{key:u},[n("dt",null,d(u),1),n("dd",null,[e.isLogIdentifier(u,p)?(a(),l(V,{key:0},[n("details",f2,[n("summary",null,d(e.compactLogValue(p)),1),n("span",null,d(p),1)]),n("button",{type:"button",class:"log-copy-value",onClick:c=>e.copyLogValue(p)},"Copy full "+d(u),9,m2)],64)):(a(),l(V,{key:1},[m(d(e.logFieldText(p)),1)],64))])]))),128))])):f("v-if",!0)])])):f("v-if",!0),e.detailTab[o?._key]==="raw"?(a(),l("pre",h2,d(o?._rawJson),1)):f("v-if",!0),e.detailTab[o?._key]==="stack"?(a(),l("pre",g2,d(o?._stack),1)):f("v-if",!0),e.detailTab[o?._key]==="related"?(a(),l("section",v2,[t[89]||(t[89]=n("h3",null,"Stored occurrences",-1)),n("p",y2,d(o._related.length)+" matching records in the loaded Redis snapshot. Most recent first.",1),n("ol",b2,[(a(!0),l(V,null,X(e.historyOccurrences(o),(u,p)=>(a(),l("li",{key:p},[n("details",w2,[n("summary",null,[n("span",k2,[n("time",{datetime:u.ts},d(e.occurrenceTime(u.ts)),9,C2),n("span",{class:R(["log-severity","log-severity-"+u._bucket])},d(u._status?"HTTP "+u._status:u._bucket),3)]),n("span",S2,[m(d(u.raw?.[0]?.service||"Application")+" \xB7 "+d(u.module||"Unknown module"),1),u.raw?.[0]?.route?(a(),l("span",E2,[m(" \xB7 "+d(u.raw[0].method)+" ",1),n("code",null,d(u.raw[0].requestPath||u.raw[0].route),1)])):(a(),l("span",N2," \xB7 Route not captured"))])]),u.raw?.[0]?.errorType?(a(),l("p",R2,d(u.raw[0].errorType),1)):f("v-if",!0),u._stack?(a(),l("pre",T2,d(u._stack),1)):(a(),l("p",P2,"Exception frames were not captured.")),u.raw?.[0]?.route?f("v-if",!0):(a(),l("p",D2,"Request route was not captured.")),n("details",A2,[t[88]||(t[88]=n("summary",null,"Stored record",-1)),n("pre",null,d(u._rawJson),1)])])]))),128))])])):f("v-if",!0),n("div",I2,[e.logTraceId(o,"requestId")?(a(),l("button",{key:0,class:"btn btn-sm",type:"button",onClick:u=>e.lookupTrace("requestId",e.logTraceId(o,"requestId"),u.currentTarget,o)},"Request timeline \u2192",8,O2)):f("v-if",!0),e.logTraceId(o,"jobId")?(a(),l("button",{key:1,class:"btn btn-sm",type:"button",onClick:u=>e.lookupTrace("jobId",e.logTraceId(o,"jobId"),u.currentTarget,o)},"Job timeline \u2192",8,M2)):f("v-if",!0),o?._url?(a(),l("button",{key:2,class:"btn btn-sm",type:"button",title:"Copy a curl that reproduces the request",onClick:u=>e.copyCurl(o)},[...t[90]||(t[90]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),m(" Copy curl",-1)])],8,V2)):f("v-if",!0),n("button",{class:"btn btn-sm",type:"button",onClick:u=>e.copyJson(o)},[...t[91]||(t[91]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-clipboard"})],-1),m(" Copy JSON",-1)])],8,q2),e.copyHint?(a(),l("span",L2,d(e.copyHint),1)):f("v-if",!0)])]),n("aside",_2,[n("div",$2,[t[92]||(t[92]=n("div",{class:"aside-label"},"First seen",-1)),n("div",{class:"aside-value",title:e.absTime(o?._firstSeen)},d(e.relTime(o?._firstSeen)),9,F2)]),n("div",U2,[t[93]||(t[93]=n("div",{class:"aside-label"},"Last seen",-1)),n("div",{class:"aside-value",title:e.absTime(o?.ts)},d(e.relTime(o?.ts)),9,B2)]),n("div",z2,[t[94]||(t[94]=n("div",{class:"aside-label"},"Occurrences",-1)),n("div",H2,[m(d(o?.count),1),o?._lastHourCount?(a(),l("span",j2," \xB7 "+d(o?._lastHourCount)+" this hour",1)):f("v-if",!0)])]),o?._repoId?(a(),l("div",G2,[t[96]||(t[96]=n("div",{class:"aside-label"},"Repository",-1)),n("a",{class:"aside-value",href:e.safeUrl("/r/"+o?._repoId)},d(e.isLogIdentifier("repoId",o?._repoId)?e.compactLogValue(o?._repoId):o?._repoId),9,W2),e.isLogIdentifier("repoId",o?._repoId)?(a(),l("details",K2,[t[95]||(t[95]=n("summary",null,"Full repository ID",-1)),m(d(o?._repoId),1)])):f("v-if",!0),n("button",{type:"button",class:"log-copy-value",onClick:u=>e.copyLogValue(o?._repoId)},"Copy full repository ID",8,Y2)])):f("v-if",!0),o?._url?(a(),l("div",J2,[t[97]||(t[97]=n("div",{class:"aside-label"},"URL",-1)),n("div",X2,d(o?._url),1)])):f("v-if",!0)])])],8,e2)):f("v-if",!0)],2)],64))),128))],2)),[[Q,e.historyView!=="timeline"||!e.historySelected]]):f("v-if",!0),P(n("details",Q2,[t[110]||(t[110]=n("summary",null,"History settings, export and diagnostics",-1)),n("div",Z2,[n("div",x2,[n("button",{class:"btn btn-sm",type:"button",onClick:t[27]||(t[27]=o=>e.exportCsv())},"Export Redis CSV"),n("button",{class:"btn btn-sm btn-outline-danger",type:"button",onClick:t[28]||(t[28]=o=>e.clearAll())},"Clear Redis history")])]),n("p",eC,d(e.redisCollecting===!1?"Collection is OFF (LOG_REDIS_MIRROR=off); retained history is not receiving new events.":e.redisCollecting===!0?"The application is configured to mirror warnings and errors.":"Collection status is unknown."),1),t[111]||(t[111]=n("p",{class:"log-coverage"},"Redis mirror: hourly counters cover 24 hours; stored rows are a rotating snapshot and may cover a shorter or longer period. Counts are not combined with central logs.",-1)),e.redisStatsState!=="ready"||e.available!==!0?(a(),l("p",tC,"Redis counters are "+d(e.redisStatsState==="loading"?"loading":"unavailable")+".",1)):f("v-if",!0),n("details",nC,[t[108]||(t[108]=n("summary",null,"24-hour counters and volume",-1)),t[109]||(t[109]=m()),e.redisStatsState==="ready"&&e.available===!0?(a(),l("section",oC,[n("div",sC,[t[98]||(t[98]=n("div",{class:"kpi-label"},"Occurrences \xB7 24h",-1)),n("div",iC,d(e.fmt?.number(e.stats?.last24h??0)),1),n("div",{class:R(["kpi-sub",{up:e.stats?.delta>0,down:e.stats?.delta<0}])},[e.stats?.prev24h>=20?(a(),l("span",rC,d((e.stats?.last24h??0)-(e.stats?.prev24h??0)>=0?"+":"")+d(Math.round(((e.stats?.last24h??0)-(e.stats?.prev24h??0))/e.stats.prev24h*100))+"% vs yesterday",1)):e.stats?.prev24h!==void 0?(a(),l("span",aC,d(e.fmt?.number(e.stats?.prev24h??0))+" in prior 24h",1)):f("v-if",!0),e.stats?.prev24h?f("v-if",!0):(a(),l("span",lC,"no prior baseline"))],2)]),n("div",dC,[t[99]||(t[99]=n("div",{class:"kpi-label"},"Error",-1)),n("div",uC,d(e.fmt?.number(e.stats?.severity?.error??0)),1),n("div",cC,"5xx \xB7 "+d(e.stats?.unique?.error)+" unique",1)]),n("div",pC,[t[100]||(t[100]=n("div",{class:"kpi-label"},"Warning",-1)),n("div",fC,d(e.fmt?.number(e.stats?.severity?.warn??0)),1),n("div",mC,"4xx, aborted \xB7 "+d(e.stats?.unique?.warn)+" unique",1)]),n("div",hC,[t[101]||(t[101]=n("div",{class:"kpi-label"},"Info",-1)),n("div",gC,d(e.fmt?.number(e.stats?.severity?.info??0)),1),n("div",vC,"Auth, 404 \xB7 "+d(e.stats?.unique?.info)+" unique",1)]),n("div",{class:R(["kpi-card",{"kpi-error":e.stats?.dropped>0}])},[t[102]||(t[102]=n("div",{class:"kpi-label"},"Entries stored",-1)),n("div",yC,d(e.fmt?.number(e.total)),1),n("div",bC,[m(" rotating history \xB7 cap "+d(e.fmt?.number(e.cap))+" ",1),e.stats?.dropped>0?(a(),l("span",wC," \xB7 "+d(e.stats?.dropped)+" dropped",1)):f("v-if",!0)])],2)])):f("v-if",!0),e.redisStatsState==="ready"&&e.available===!0?(a(),l("section",kC,[n("div",CC,[t[106]||(t[106]=n("span",{class:"volume-title"},"Volume \xB7 24h \xB7 1h buckets",-1)),n("span",SC,[e.stats?.severity?.error?(a(),l("span",EC,[...t[103]||(t[103]=[n("span",{class:"dot dot-error"},null,-1),m("Error",-1)])])):f("v-if",!0),e.stats?.severity?.warn?(a(),l("span",NC,[...t[104]||(t[104]=[n("span",{class:"dot dot-warn"},null,-1),m("Warning",-1)])])):f("v-if",!0),e.stats?.severity?.info?(a(),l("span",RC,[...t[105]||(t[105]=[n("span",{class:"dot dot-info"},null,-1),m("Info",-1)])])):f("v-if",!0)])]),n("div",TC,[(a(!0),l(V,null,X(e.stats?.buckets,(o,r)=>(a(),l("div",{class:"volume-bar",key:r,title:e.bucketTitle(o)},[n("span",{class:"seg seg-error",style:Ae({height:e.barPx(o,"error")+"px"})},null,4),n("span",{class:"seg seg-warn",style:Ae({height:e.barPx(o,"warn")+"px"})},null,4),n("span",{class:"seg seg-info",style:Ae({height:e.barPx(o,"info")+"px"})},null,4)],8,PC))),128))]),t[107]||(t[107]=n("div",{class:"volume-axis","aria-hidden":"true"},[n("span",null,"24h ago"),n("span",null,"12h ago"),n("span",null,"now")],-1))])):f("v-if",!0)])],512),[[Q,!e.historySelected]])],8,Xk),[[Q,e.errorSource==="history"]]),e.errorSource==="history"&&e.historyView==="timeline"?(a(),l("div",DC,[e.traceSelection?f("v-if",!0):(a(),l("div",AC,"No request or job ID was recorded for this entry.")),e.traceSelection?(a(),l("section",{key:1,class:"log-timeline","aria-labelledby":"log-timeline-title","aria-busy":e.traceLoading},[n("div",OC,[n("h3",MC,d(e.traceSelection.kind==="jobId"?"Job":"Request")+" timeline",1),n("button",{type:"button",class:"btn btn-sm",onClick:t[29]||(t[29]=o=>e.closeTrace())},"Close timeline")]),e.traceSelection.context?(a(),l("p",VC,d(e.traceSelection.context.event)+" \xB7 "+d(e.traceSelection.context.service),1)):f("v-if",!0),e.traceLoading||e.trace?.state!=="ready"?(a(),l("p",qC,d(e.traceLoading?"Loading related events\u2026":e.trace?.state==="empty"?"No related events returned in this window.":e.logStateText(e.trace?.state)),1)):f("v-if",!0),e.trace&&!e.traceLoading?(a(),l("p",LC,d(e.trace.events?.length||0)+" events returned \xB7 "+d(e.absTime(e.trace.start))+" \u2013 "+d(e.absTime(e.trace.end))+" \xB7 200-event cap. All services and releases.",1)):f("v-if",!0),e.trace?.events?.length?(a(),l("ol",_C,[(a(!0),l(V,null,X(e.trace.events,(o,r)=>(a(),l("li",{key:r},[n("time",{datetime:o.timestamp,title:o.timestamp},d(e.absTimeShort(o.timestamp)),9,$C),n("div",FC,[n("div",UC,[n("strong",null,d(o.errorCode||o.errorType||o.event),1),n("span",{class:R(["log-severity","log-severity-"+e.logSeverity(o)])},d(o.status||o.httpStatus?"HTTP "+(o.status||o.httpStatus):o.severity||"Event"),3)]),n("p",null,[m(d(o.service),1),o.module?(a(),l("span",BC," / "+d(o.module),1)):f("v-if",!0),o.ms!==void 0?(a(),l("span",zC," \xB7 "+d(o.ms)+" ms",1)):f("v-if",!0),o.attempt!==void 0?(a(),l("span",HC," \xB7 attempt "+d(o.attempt),1)):f("v-if",!0)]),o.route?(a(),l("p",jC,[n("code",null,d(o.method)+" "+d(o.requestPath||o.route),1)])):f("v-if",!0),o.errorStack||o.causeStack?(a(),l("details",GC,[n("summary",null,[t[113]||(t[113]=m("Exception frames",-1)),o.errorType?(a(),l("span",WC," \xB7 "+d(o.errorType),1)):f("v-if",!0)]),o.errorStack?(a(),l("pre",KC,d(o.errorStack),1)):f("v-if",!0),o.causeType?(a(),l("p",YC,"Caused by "+d(o.causeType),1)):f("v-if",!0),o.causeStack?(a(),l("pre",JC,d(o.causeStack),1)):f("v-if",!0)])):f("v-if",!0),n("details",XC,[t[114]||(t[114]=n("summary",null,"Event fields",-1)),n("pre",null,d(JSON.stringify(o,null,2)),1),n("button",{type:"button",class:"btn btn-sm",onClick:u=>e.copyLogValue(JSON.stringify(o,null,2))},"Copy JSON",8,QC)])])]))),128))])):f("v-if",!0),n("details",ZC,[t[115]||(t[115]=n("summary",null,"Correlation ID and query scope",-1)),n("code",null,d(e.traceSelection.id),1),n("button",{type:"button",class:"log-copy-value",onClick:t[30]||(t[30]=o=>e.copyLogValue(e.traceSelection.id))},"Copy full ID"),t[116]||(t[116]=n("p",null,"Earliest matching events in the selected window. Service and release filters do not narrow this timeline.",-1))]),e.trace?.grafanaUrl?(a(),l("a",{key:4,href:e.safeUrl(e.trace.grafanaUrl),target:"_blank",rel:"noopener noreferrer"},"Open in Grafana",8,xC)):f("v-if",!0)],8,IC)):f("v-if",!0)])):f("v-if",!0)])}var eS={class:"container paper-page admin-page overview-page"},tS={key:0,class:"admin-empty"},nS={key:1,class:"alert alert-danger",style:{margin:"12px 0"}},oS={class:"ov-views",role:"tablist","aria-label":"Overview sections"},sS=["aria-selected","onClick"],iS={key:2},rS={key:0,class:"ov-health",role:"status"},aS={class:"ov-kpi-row"},lS={class:"ov-kpi-card"},dS={class:"ov-kpi-value"},uS={class:"ov-kpi-sub"},cS={class:"ov-kpi-card"},pS={class:"ov-kpi-sub"},fS={class:"ov-kpi-card"},mS={class:"ov-kpi-sub"},hS={class:"ov-kpi-card"},gS={class:"ov-kpi-sub"},vS={class:"ov-kpi-card"},yS={class:"ov-kpi-value"},bS={class:"ov-kpi-sub"},wS={class:"ov-daily-row"},kS={class:"ov-daily-card"},CS={class:"ov-daily-value"},SS={class:"ov-daily-card"},ES={class:"ov-daily-value"},NS={class:"ov-daily-sub"},RS={class:"ov-daily-card"},TS={class:"ov-daily-value"},PS={class:"ov-chart-card"},DS={class:"ov-chart-head"},AS={class:"ov-chart-legends"},IS={class:"ov-chart-legend"},OS={key:0,class:"ov-legend-missing"},MS={key:0,class:"ov-spark-bars ov-has-axis"},VS={class:"ov-yaxis","aria-hidden":"true"},qS=["data-tip","aria-label"],LS={key:1,class:"ov-spark-x"},_S={class:"ov-chart-card"},$S={class:"ov-chart-head"},FS={class:"ov-chart-legends"},US={class:"ov-chart-legend"},BS={key:0,class:"ov-legend-missing"},zS={key:0,class:"ov-spark-bars ov-has-axis"},HS={class:"ov-yaxis","aria-hidden":"true"},jS=["data-tip","aria-label"],GS={key:1,class:"ov-spark-x"},WS={key:0,class:"ov-chart-card"},KS={class:"ov-chart-head"},YS={class:"ov-chart-legends"},JS={class:"ov-chart-legend"},XS={key:0,class:"ov-legend-missing"},QS={key:0,class:"ov-spark-bars ov-spark-step ov-has-axis"},ZS={class:"ov-yaxis","aria-hidden":"true"},xS=["viewBox","aria-label"],eE=["d"],tE=["d"],nE={key:1,class:"ov-spark-x"},oE={class:"ov-chart-card"},sE={class:"ov-chart-head"},iE={class:"ov-chart-legends"},rE={class:"ov-chart-legend"},aE={key:0,class:"ov-legend-missing"},lE={key:0,class:"ov-spark-bars ov-has-axis"},dE={class:"ov-yaxis","aria-hidden":"true"},uE=["data-tip","aria-label"],cE={key:1,class:"ov-spark-x"},pE={class:"ov-triple-row"},fE={class:"ov-panel-card"},mE={class:"ov-panel-head"},hE={class:"ov-panel-meta"},gE={class:"ov-stacked-bar"},vE={class:"ov-bar-legend"},yE={href:"/admin/repositories",class:"ov-legend-item"},bE={class:"ov-legend-n"},wE={href:"/admin/repositories",class:"ov-legend-item"},kE={class:"ov-legend-n"},CE={href:"/admin/repositories",class:"ov-legend-item"},SE={class:"ov-legend-n"},EE={href:"/admin/repositories",class:"ov-legend-item"},NE={class:"ov-legend-n"},RE={href:"/admin/repositories",class:"ov-legend-item"},TE={class:"ov-legend-n"},PE={class:"ov-panel-card"},DE={class:"ov-panel-head"},AE={class:"ov-panel-meta"},IE={class:"ov-error-bars"},OE={class:"ov-ebar-row"},ME={class:"ov-ebar-track"},VE={class:"ov-ebar-n"},qE={class:"ov-ebar-row"},LE={class:"ov-ebar-track"},_E={class:"ov-ebar-n"},$E={key:0,class:"ov-ehours",role:"img","aria-label":"Errors per hour over the last 24 hours"},FE={class:"ov-ehours-legend"},UE={class:"ov-ehours-note"},BE={class:"ov-ehours-bars"},zE=["title"],HE={key:0,class:"ov-ehours-zero"},jE={class:"ov-ebar-note"},GE={key:0,class:"ov-panel-foot"},WE={href:"/admin/errors"},KE={class:"ov-panel-card"},YE={class:"ov-routes-table"},JE={class:"ov-route-row",href:"/admin/queues"},XE={class:"ov-route-n"},QE={class:"ov-route-n"},ZE={class:"ov-route-row",href:"/admin/queues"},xE={class:"ov-route-n"},eN={class:"ov-route-n"},tN={class:"ov-route-row",href:"/admin/queues"},nN={class:"ov-route-n"},oN={class:"ov-route-n"},sN={class:"ov-services-card"},iN={class:"ov-services-head"},rN={class:"ov-panel-meta"},aN={class:"ov-services-grid"},lN={class:"ov-svc"},dN={class:"ov-svc-info"},uN={class:"ov-svc-meta"},cN={class:"ov-svc"},pN={class:"ov-svc-info"},fN={key:0,class:"ov-svc-meta"},mN={key:1,class:"ov-svc-meta"},hN={class:"ov-svc"},gN={class:"ov-svc-info"},vN={key:0,class:"ov-svc-meta"},yN={key:1,class:"ov-svc-meta"},bN={class:"ov-svc"},wN={class:"ov-svc-info"},kN={key:0,class:"ov-svc-meta"},CN={key:1,class:"ov-svc-meta"},SN={class:"ov-svc"},EN=["title"],NN={class:"ov-svc-info"},RN={class:"ov-svc-meta"},TN={class:"ov-panel-card ov-cache","aria-labelledby":"cache-heading"},PN={class:"ov-panel-head ov-performance-head"},DN={class:"ov-performance-window"},AN={key:0,class:"ov-performance-message ov-performance-warning",role:"alert"},IN={key:1,class:"ov-performance-empty",role:"status"},ON={key:0,class:"ov-performance-note"},MN={key:1,class:"ov-performance-note"},VN={key:2,class:"ov-performance-message ov-performance-warning",role:"status"},qN={key:3,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Cache storage budgets"},LN={class:"ov-metrics-table"},_N={scope:"row",class:"ov-event-name"},$N=["title"],FN={key:0,class:"ov-metric-bad-text"},UN={key:1,class:"budget-bar","aria-hidden":"true"},BN={class:"num"},zN={class:"num"},HN={class:"num"},jN={class:"num"},GN={key:4,class:"ov-cache-rates"},WN={key:5,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Cache events and processing durations"},KN={class:"ov-metrics-table"},YN={scope:"row",class:"ov-event-name"},JN={class:"ov-event-traffic"},XN={class:"num"},QN={class:"num"},ZN={key:6,class:"ov-performance-empty",role:"status"},xN={class:"ov-performance-note"},eR={class:"ov-panel-card ov-performance","aria-labelledby":"performance-heading"},tR={class:"ov-panel-head ov-performance-head"},nR={class:"ov-performance-window"},oR={key:0,class:"ov-performance-message ov-performance-warning",role:"alert"},sR={key:1,class:"ov-performance-empty",role:"status"},iR={key:2},rR={id:"performance-routes",role:"region","aria-label":"Routes"},aR={key:0,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Route latency metrics, scroll for more columns"},lR={class:"ov-metrics-table"},dR={scope:"row",class:"ov-metric-name"},uR={class:"num"},cR={class:"num"},pR={class:"num"},fR={class:"num"},mR={class:"num"},hR={key:1,class:"ov-performance-empty"},gR={id:"performance-processes",role:"region","aria-label":"Processes"},vR={key:0,class:"ov-performance-message ov-performance-warning",role:"status"},yR={key:1,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Process resource metrics, scroll for more columns"},bR={class:"ov-metrics-table"},wR={scope:"row",class:"ov-metric-name"},kR={key:0,class:"ov-metric-warn"},CR={class:"num"},SR={class:"num"},ER={class:"num"},NR={class:"num"},RR={class:"num"},TR={class:"num"},PR={class:"num"},DR={class:"num"},AR={id:"performance-stages",role:"region","aria-label":"Work stages"},IR={key:0,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Work stage metrics, scroll for more columns"},OR={class:"ov-metrics-table"},MR={scope:"row",class:"ov-metric-name"},VR={class:"num"},qR={class:"num"},LR={class:"num"},_R={key:1,class:"ov-performance-empty"};function fp(e,t){return a(),l("div",eS,[t[95]||(t[95]=Ce('
Admin \xA0/\xA0 Overview

Overview

Live \xB7 refreshes every 30s
',2)),e.loading?(a(),l("div",tS,"Loading overview\u2026")):f("v-if",!0),e.error?(a(),l("div",nS,[t[8]||(t[8]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),m(" "+d(e.error),1)])):f("v-if",!0),n("div",oS,[(a(),l(V,null,X([{id:"summary",label:"Summary"},{id:"performance",label:"Performance"},{id:"cache",label:"Cache"}],s=>n("button",{type:"button",role:"tab",key:s.id,"aria-selected":e.ovView===s.id?"true":"false",class:R({active:e.ovView===s.id}),onClick:i=>e.setOvView(s.id)},d(s.label),11,sS)),64))]),e.data?P((a(),l("div",iS,[e.data?.system?.memPercent>90||e.data?.system?.diskPercent>90?(a(),l("div",rS,[t[10]||(t[10]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),n("span",null,[t[9]||(t[9]=n("b",null,"Server needs attention.",-1)),m(" "+d(e.healthAlert()),1)])])):f("v-if",!0),f(" \u2500\u2500 Top KPI row \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",aS,[n("div",lS,[t[11]||(t[11]=n("div",{class:"ov-kpi-label"},"Live repositories",-1)),n("div",dS,d(e.humanNum((e.data?.repos?.statusBreakdown||[]).filter(s=>s._id!=="removed"&&s._id!=="expired").reduce((s,i)=>s+(i.count||0),0))),1),n("div",uS,d(e.humanNum(((e.data?.repos?.statusBreakdown||[]).find(s=>s._id==="removed")||{}).count||0))+" removed \xB7 "+d(e.humanNum(e.data?.repos?.total))+" total",1)]),n("div",cS,[t[12]||(t[12]=n("div",{class:"ov-kpi-label"},"CPU",-1)),n("div",{class:R(["ov-kpi-value",{"ov-val-warn":e.data?.system?.cpuPercent>=75}])},d(e.data?.system?.cpuPercent)+"%",3),n("div",{class:R(["ov-meter",{warn:e.data?.system?.cpuPercent>=75,crit:e.data?.system?.cpuPercent>90}])},[n("span",{style:Ae({width:Math.min(100,e.data?.system?.cpuPercent||0)+"%"})},null,4)],2),n("div",pS,[e.data?.system?.cpuPercent>=75?(a(),l("b",{key:0,class:R(["ov-flag",{critical:e.data?.system?.cpuPercent>90}])},d(e.data?.system?.cpuPercent>90?"Critical":"High")+" \xB7 ",3)):f("v-if",!0),m(d(e.data?.system?.cpuCount)+" cores \xB7 load "+d(e.data?.system?.loadAvg?.[0]?.toFixed(1)),1)])]),n("div",fS,[t[13]||(t[13]=n("div",{class:"ov-kpi-label"},"Memory",-1)),n("div",{class:R(["ov-kpi-value",{"ov-val-warn":e.data?.system?.memPercent>=75}])},d(e.data?.system?.memPercent)+"%",3),n("div",{class:R(["ov-meter",{warn:e.data?.system?.memPercent>=75,crit:e.data?.system?.memPercent>90}])},[n("span",{style:Ae({width:Math.min(100,e.data?.system?.memPercent||0)+"%"})},null,4)],2),n("div",mS,[e.data?.system?.memPercent>=75?(a(),l("b",{key:0,class:R(["ov-flag",{critical:e.data?.system?.memPercent>90}])},d(e.data?.system?.memPercent>90?"Critical":"High")+" \xB7 ",3)):f("v-if",!0),m(d(e.humanBytes(e.data?.system?.memUsed).replace(/\s*GB$/,""))+" / "+d(e.humanBytes(e.data?.system?.memTotal)),1)])]),n("div",hS,[t[14]||(t[14]=n("div",{class:"ov-kpi-label"},"Disk",-1)),n("div",{class:R(["ov-kpi-value",{"ov-val-warn":e.data?.system?.diskPercent>=75}])},d(e.data?.system?.diskPercent)+"%",3),n("div",{class:R(["ov-meter",{warn:e.data?.system?.diskPercent>=75,crit:e.data?.system?.diskPercent>90}])},[n("span",{style:Ae({width:Math.min(100,e.data?.system?.diskPercent||0)+"%"})},null,4)],2),n("div",gS,[e.data?.system?.diskPercent>=75?(a(),l("b",{key:0,class:R(["ov-flag",{critical:e.data?.system?.diskPercent>90}])},d(e.data?.system?.diskPercent>90?"Critical":"High")+" \xB7 ",3)):f("v-if",!0),m(d(e.humanBytes(e.data?.system?.diskUsed).replace(/\s*GB$/,""))+" / "+d(e.humanBytes(e.data?.system?.diskTotal)),1),e.data?.system?.diskMount&&e.data.system.diskMount!=="/"?(a(),l(V,{key:1},[m(" \xB7 "+d(e.data?.system?.diskMount),1)],64)):f("v-if",!0)])]),n("div",vS,[t[15]||(t[15]=n("div",{class:"ov-kpi-label"},"Uptime",-1)),n("div",yS,d(e.humanDuration(e.data?.system?.uptime)),1),n("div",bS,d(e.data?.system?.nodeVersion)+" \xB7 "+d(e.data?.system?.platform),1)])]),f(" \u2500\u2500 Daily activity highlights \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",wS,[n("div",kS,[t[16]||(t[16]=n("div",{class:"ov-daily-label"},"New repos today",-1)),n("div",CS,d(e.fmt?.number(e.data?.daily?.today?.repositories||0)),1),t[17]||(t[17]=n("div",{class:"ov-daily-sub"},"so far today",-1))]),n("div",SS,[t[18]||(t[18]=n("div",{class:"ov-daily-label"},"New users today",-1)),n("div",ES,d(e.fmt?.number(e.data?.daily?.today?.users||0)),1),n("div",NS,d(e.fmt?.number(e.data?.users?.total))+" total \xB7 +"+d(e.fmt?.number(e.usersGained()))+" in 30 days",1)]),n("div",RS,[t[19]||(t[19]=n("div",{class:"ov-daily-label"},"Page views today",-1)),n("div",TS,d(e.fmt?.number(e.data?.daily?.today?.pageViews||0)),1),t[20]||(t[20]=n("div",{class:"ov-daily-sub"},"so far today",-1))])]),f(" \u2500\u2500 Daily charts \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",{class:R(["ov-chart-row",{"is-three":e.usersTiny()}])},[n("div",PS,[n("div",DS,[t[23]||(t[23]=n("span",{class:"ov-chart-title"},"Daily page views \xB7 30d",-1)),n("span",AS,[n("span",IS,[t[21]||(t[21]=n("span",{class:"ov-dot-legend ov-dot-accent"},null,-1)),m("views/day \xB7 peak "+d(e.fmt?.number(e.historyMax("dailyPageViews"))),1)]),e.historyHasMissing()?(a(),l("span",OS,[...t[22]||(t[22]=[n("span",{class:"ov-swatch-missing","aria-hidden":"true"},null,-1),m("No data",-1)])])):f("v-if",!0)])]),e.data?.history?.length?(a(),l("div",MS,[n("div",VS,[n("span",null,d(e.fmt?.number(e.axisMax("dailyPageViews"))),1),n("span",null,d(e.fmt?.number(e.axisMax("dailyPageViews")/2)),1),t[24]||(t[24]=n("span",null,"0",-1))]),(a(!0),l(V,null,X(e.data?.history,(s,i)=>(a(),l("div",{class:R(["ov-spark-col has-tip",{"is-missing":s?._empty}]),key:i,"data-tip":s?._empty?e.historyLabel(s)+": no data":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyPageViews)+(s?.dailyPageViews===1?" view":" views"),"aria-label":s?._empty?e.historyLabel(s)+": no data":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyPageViews)+(s?.dailyPageViews===1?" view":" views")},[n("span",{class:"ov-spark-fill",style:Ae({height:e.historyBarH(s,"dailyPageViews")+"px"})},null,4)],10,qS))),128))])):f("v-if",!0),e.data?.history?.length?(a(),l("div",LS,[n("span",null,d(e.historyLabel(e.data?.history[0])),1),n("span",null,d(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),n("span",null,d(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):f("v-if",!0)]),n("div",_S,[n("div",$S,[t[27]||(t[27]=n("span",{class:"ov-chart-title"},"New repos \xB7 30d",-1)),n("span",FS,[n("span",US,[t[25]||(t[25]=n("span",{class:"ov-dot-legend ov-dot-ok-fill"},null,-1)),m("repos/day \xB7 peak "+d(e.fmt?.number(e.historyMax("dailyRepositories"))),1)]),e.historyHasMissing()?(a(),l("span",BS,[...t[26]||(t[26]=[n("span",{class:"ov-swatch-missing","aria-hidden":"true"},null,-1),m("No data",-1)])])):f("v-if",!0)])]),e.data?.history?.length?(a(),l("div",zS,[n("div",HS,[n("span",null,d(e.fmt?.number(e.axisMax("dailyRepositories"))),1),n("span",null,d(e.fmt?.number(e.axisMax("dailyRepositories")/2)),1),t[28]||(t[28]=n("span",null,"0",-1))]),(a(!0),l(V,null,X(e.data?.history,(s,i)=>(a(),l("div",{class:R(["ov-spark-col has-tip",{"is-missing":s?._empty}]),key:i,"data-tip":s?._empty?e.historyLabel(s)+": no data":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyRepositories)+(s?.dailyRepositories===1?" repo":" repos"),"aria-label":s?._empty?e.historyLabel(s)+": no data":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyRepositories)+(s?.dailyRepositories===1?" repo":" repos")},[n("span",{class:"ov-spark-fill ov-spark-fill-alt",style:Ae({height:e.historyBarH(s,"dailyRepositories")+"px"})},null,4)],10,jS))),128))])):f("v-if",!0),e.data?.history?.length?(a(),l("div",GS,[n("span",null,d(e.historyLabel(e.data?.history[0])),1),n("span",null,d(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),n("span",null,d(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):f("v-if",!0)]),e.usersTiny()?f("v-if",!0):(a(),l("div",WS,[n("div",KS,[t[31]||(t[31]=n("span",{class:"ov-chart-title"},"Users \xB7 30d",-1)),n("span",YS,[n("span",JS,[t[29]||(t[29]=n("span",{class:"ov-dot-legend ov-dot-user-fill"},null,-1)),m("total users \xB7 "+d(e.fmt?.number(e.historyRange("nbUsers").max))+" now \xB7 +"+d(e.fmt?.number(Math.max(0,e.historyRange("nbUsers").max-e.usersFirst())))+" in 30 days",1)]),e.historyHasMissing()?(a(),l("span",XS,[...t[30]||(t[30]=[n("span",{class:"ov-swatch-missing","aria-hidden":"true"},null,-1),m("No data",-1)])])):f("v-if",!0)])]),e.data?.history?.length?(a(),l("div",QS,[n("div",ZS,[n("span",null,d(e.fmt?.number(e.userAxis().hi)),1),n("span",null,d(e.fmt?.number((e.userAxis().hi+e.userAxis().lo)/2)),1),n("span",null,d(e.fmt?.number(e.userAxis().lo)),1)]),(a(),l("svg",{class:"ov-step-svg",viewBox:"0 0 "+e.data.history.length+" 140",preserveAspectRatio:"none",role:"img","aria-label":"Total users over 30 days, from "+e.fmt?.number(e.usersFirst())+" to "+e.fmt?.number(e.historyRange("nbUsers").max)},[e.userAxis().lo===0?(a(),l("path",{key:0,class:"ov-step-area",d:e.userStepPath(!0)},null,8,eE)):f("v-if",!0),n("path",{class:"ov-step-line",d:e.userStepPath(!1),"vector-effect":"non-scaling-stroke"},null,8,tE)],8,xS)),e.firstDataIndex()>0?(a(),l("div",{key:0,class:"ov-step-missing",style:Ae({width:e.firstDataIndex()/e.data.history.length*100+"%"})},null,4)):f("v-if",!0)])):f("v-if",!0),e.data?.history?.length?(a(),l("div",nE,[n("span",null,d(e.historyLabel(e.data?.history[0])),1),n("span",null,d(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),n("span",null,d(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):f("v-if",!0)])),n("div",oE,[n("div",sE,[t[34]||(t[34]=n("span",{class:"ov-chart-title"},"New users \xB7 30d",-1)),n("span",iE,[n("span",rE,[t[32]||(t[32]=n("span",{class:"ov-dot-legend ov-dot-new-user-fill"},null,-1)),m("users/day \xB7 peak "+d(e.fmt?.number(e.historyMax("dailyUsers"))),1)]),e.historyHasMissing()?(a(),l("span",aE,[...t[33]||(t[33]=[n("span",{class:"ov-swatch-missing","aria-hidden":"true"},null,-1),m("No data",-1)])])):f("v-if",!0)])]),e.data?.history?.length?(a(),l("div",lE,[n("div",dE,[n("span",null,d(e.fmt?.number(e.axisMax("dailyUsers"))),1),n("span",null,d(e.fmt?.number(e.axisMax("dailyUsers")/2)),1),t[35]||(t[35]=n("span",null,"0",-1))]),(a(!0),l(V,null,X(e.data?.history,(s,i)=>(a(),l("div",{class:R(["ov-spark-col has-tip",{"is-missing":s?._empty}]),key:i,"data-tip":s?._empty?e.historyLabel(s)+": no data":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyUsers)+(s?.dailyUsers===1?" user":" users"),"aria-label":s?._empty?e.historyLabel(s)+": no data":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyUsers)+(s?.dailyUsers===1?" user":" users")},[n("span",{class:"ov-spark-fill ov-spark-fill-new-user",style:Ae({height:e.historyBarH(s,"dailyUsers")+"px"})},null,4)],10,uE))),128))])):f("v-if",!0),e.data?.history?.length?(a(),l("div",cE,[n("span",null,d(e.historyLabel(e.data?.history[0])),1),n("span",null,d(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),n("span",null,d(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):f("v-if",!0)])],2),f(" \u2500\u2500 Three-panel row: Status / Errors / Queues \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",pE,[f(" Repo status breakdown "),n("div",fE,[n("div",mE,[t[36]||(t[36]=n("span",{class:"ov-panel-title"},"Repo status",-1)),n("span",hE,d(e.fmt?.number(e.data?.repos?.total))+" total",1)]),n("div",gE,[e.barPct("ready")>0?(a(),l("span",{key:0,class:"ov-bar-seg ov-bar-ready",title:"Ready",style:Ae({width:e.barPct("ready")+"%"})},null,4)):f("v-if",!0),e.barPct("preparing")>0?(a(),l("span",{key:1,class:"ov-bar-seg ov-bar-preparing",title:"Preparing",style:Ae({width:e.barPct("preparing")+"%"})},null,4)):f("v-if",!0),e.barPct("error")>0?(a(),l("span",{key:2,class:"ov-bar-seg ov-bar-error",title:"Error",style:Ae({width:e.barPct("error")+"%"})},null,4)):f("v-if",!0),e.barPct("expired")>0?(a(),l("span",{key:3,class:"ov-bar-seg ov-bar-expired",title:"Expiring / expired",style:Ae({width:e.barPct("expired")+"%"})},null,4)):f("v-if",!0),e.barPct("removed")>0?(a(),l("span",{key:4,class:"ov-bar-seg ov-bar-removed",title:"Removing / removed",style:Ae({width:e.barPct("removed")+"%"})},null,4)):f("v-if",!0)]),n("div",vE,[n("a",yE,[t[37]||(t[37]=n("span",{class:"ov-swatch ov-bar-ready"},null,-1)),t[38]||(t[38]=m(" Ready ",-1)),n("span",bE,d(e.fmt?.number(e.statusCount("ready"))),1)]),n("a",wE,[t[39]||(t[39]=n("span",{class:"ov-swatch ov-bar-preparing"},null,-1)),t[40]||(t[40]=m(" Preparing ",-1)),n("span",kE,d(e.fmt?.number(e.statusCount("preparing")+e.statusCount("download"))),1)]),n("a",CE,[t[41]||(t[41]=n("span",{class:"ov-swatch ov-bar-error"},null,-1)),t[42]||(t[42]=m(" Error ",-1)),n("span",SE,d(e.fmt?.number(e.statusCount("error"))),1)]),n("a",EE,[t[43]||(t[43]=n("span",{class:"ov-swatch ov-bar-expired"},null,-1)),t[44]||(t[44]=m(" Expiring / expired ",-1)),n("span",NE,d(e.fmt?.number(e.statusCount("expired")+e.statusCount("expiring"))),1)]),n("a",RE,[t[45]||(t[45]=n("span",{class:"ov-swatch ov-bar-removed"},null,-1)),t[46]||(t[46]=m(" Removing / removed ",-1)),n("span",TE,d(e.fmt?.number(e.statusCount("removed")+e.statusCount("removing"))),1)])])]),f(" Error breakdown "),n("div",PE,[n("div",DE,[t[47]||(t[47]=n("span",{class:"ov-panel-title"},"Errors \xB7 24h",-1)),n("span",AE,d(e.fmt?.number(e.realErrors()))+" "+d(e.realErrors()===1?"error":"errors"),1)]),n("div",IE,[n("div",OE,[t[48]||(t[48]=n("span",{class:"ov-ebar-label"},"Error",-1)),n("span",ME,[n("span",{class:"ov-ebar-fill ov-ebar-error",style:Ae({width:e.errPct("error")+"%"})},null,4)]),n("span",VE,d(e.data?.errors?.severity?.error),1)]),n("div",qE,[t[49]||(t[49]=n("span",{class:"ov-ebar-label"},"Warning",-1)),n("span",LE,[n("span",{class:"ov-ebar-fill ov-ebar-warn",style:Ae({width:e.errPct("warn")+"%"})},null,4)]),n("span",_E,d(e.data?.errors?.severity?.warn),1)]),e.errorHours().length?(a(),l("div",$E,[n("div",FE,[t[52]||(t[52]=n("span",{class:"ov-ehours-key"},[n("span",{class:"ov-ehours-swatch is-error","aria-hidden":"true"}),m("Error")],-1)),t[53]||(t[53]=n("span",{class:"ov-ehours-key"},[n("span",{class:"ov-ehours-swatch is-warn","aria-hidden":"true"}),m("Warning")],-1)),n("span",UE,[t[50]||(t[50]=m("Per hour",-1)),t[51]||(t[51]=n("span",{class:"seg-sep","aria-hidden":"true"},"\xB7",-1)),m("peak "+d(e.fmt?.number(e.errorHoursPeak())),1)])]),n("div",BE,[(a(!0),l(V,null,X(e.errorHours(),s=>(a(),l("span",{key:s.key,class:R({"is-bad":s.bad,"is-zero":s.zero}),title:s.title},[s.zero?(a(),l("i",HE)):(a(),l(V,{key:1},[s.errPct?(a(),l("i",{key:0,class:"ov-ehours-e",style:Ae({height:s.errPct+"%"})},null,4)):f("v-if",!0),s.warnPct?(a(),l("i",{key:1,class:"ov-ehours-w",style:Ae({height:s.warnPct+"%"})},null,4)):f("v-if",!0)],64))],10,zE))),128))]),t[54]||(t[54]=n("div",{class:"ov-ehours-x"},[n("span",null,"24h ago"),n("span",null,"now")],-1))])):f("v-if",!0),n("p",jE,"Info "+d(e.fmt?.number(e.data?.errors?.severity?.info||0))+" \xB7 logged, not counted as errors",1)]),e.data?.repos?.recentErrors24h?(a(),l("div",GE,[n("a",WE,d(e.data?.repos?.recentErrors24h)+" repos in error state \u2192",1)])):f("v-if",!0)]),f(" Top routes / queues "),n("div",KE,[t[59]||(t[59]=n("div",{class:"ov-panel-head"},[n("span",{class:"ov-panel-title"},"Queues"),n("span",{class:"ov-panel-meta"},"by state")],-1)),n("div",YE,[t[58]||(t[58]=Ce('
QueueActiveWaitFailed
',1)),n("a",JE,[t[55]||(t[55]=n("span",{class:"ov-route-name"},"Download",-1)),n("span",XE,d(e.data?.queues?.download?.active),1),n("span",QE,d(e.data?.queues?.download?.waiting),1),n("span",{class:R(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.download?.failed>0}])},d(e.data?.queues?.download?.failed),3)]),n("a",ZE,[t[56]||(t[56]=n("span",{class:"ov-route-name"},"Remove",-1)),n("span",xE,d(e.data?.queues?.remove?.active),1),n("span",eN,d(e.data?.queues?.remove?.waiting),1),n("span",{class:R(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.remove?.failed>0}])},d(e.data?.queues?.remove?.failed),3)]),n("a",tN,[t[57]||(t[57]=n("span",{class:"ov-route-name"},"Cache cleanup",-1)),n("span",nN,d(e.data?.queues?.cache?.active),1),n("span",oN,d(e.data?.queues?.cache?.waiting),1),n("span",{class:R(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.cache?.failed>0}])},d(e.data?.queues?.cache?.failed),3)])])])]),f(" \u2500\u2500 Services bar \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",sN,[n("div",iN,[t[60]||(t[60]=n("span",{class:"ov-panel-title"},"Services",-1)),n("span",rN,"5 services \xB7 "+d(e.realErrors()>0?"1 needs attention":"all healthy"),1)]),n("div",aN,[n("div",lN,[t[62]||(t[62]=n("span",{class:"ov-svc-dot ov-dot-ok"},null,-1)),n("div",dN,[t[61]||(t[61]=n("span",{class:"ov-svc-name"},"web",-1)),n("span",uN,d(e.data?.system?.nodeVersion)+" \xB7 up "+d(e.humanDuration(e.data?.system?.uptime)),1)])]),n("div",cN,[n("span",{class:R(["ov-svc-dot",e.queueTotal(e.data?.queues?.download)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),n("div",pN,[t[63]||(t[63]=n("span",{class:"ov-svc-name"},"download",-1)),e.queueTotal(e.data?.queues?.download)?(a(),l("span",fN,d(e.queueTotal(e.data?.queues?.download))+" "+d(e.queueTotal(e.data?.queues?.download)===1?"job":"jobs"),1)):f("v-if",!0),e.queueTotal(e.data?.queues?.download)?f("v-if",!0):(a(),l("span",mN,"idle"))])]),n("div",hN,[n("span",{class:R(["ov-svc-dot",e.queueTotal(e.data?.queues?.cache)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),n("div",gN,[t[64]||(t[64]=n("span",{class:"ov-svc-name"},"cache",-1)),e.queueTotal(e.data?.queues?.cache)?(a(),l("span",vN,d(e.queueTotal(e.data?.queues?.cache))+" "+d(e.queueTotal(e.data?.queues?.cache)===1?"job":"jobs"),1)):f("v-if",!0),e.queueTotal(e.data?.queues?.cache)?f("v-if",!0):(a(),l("span",yN,"idle"))])]),n("div",bN,[n("span",{class:R(["ov-svc-dot",e.queueTotal(e.data?.queues?.remove)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),n("div",wN,[t[65]||(t[65]=n("span",{class:"ov-svc-name"},"remove",-1)),e.queueTotal(e.data?.queues?.remove)?(a(),l("span",kN,d(e.queueTotal(e.data?.queues?.remove))+" "+d(e.queueTotal(e.data?.queues?.remove)===1?"job":"jobs"),1)):f("v-if",!0),e.queueTotal(e.data?.queues?.remove)?f("v-if",!0):(a(),l("span",CN,"idle"))])]),n("div",SN,[n("span",{class:R(["ov-svc-dot",e.realErrors()>0?"ov-dot-warn":"ov-dot-ok"]),title:e.realErrors()>0?"Errors in the last 24 hours":"No errors in the last 24 hours"},null,10,EN),n("div",NN,[t[66]||(t[66]=n("span",{class:"ov-svc-name"},"errors",-1)),n("span",RN,d(e.fmt?.number(e.realErrors()))+" / 24h",1)])])])])],512)),[[Q,e.ovView==="summary"]]):f("v-if",!0),P(n("section",TN,[n("div",PN,[t[71]||(t[71]=n("div",null,[n("h2",{class:"ov-panel-title",id:"cache-heading"},"Cache"),n("p",{class:"ov-performance-note"},"Shared storage, repeated reads and anonymization work")],-1)),n("div",DN,[t[69]||(t[69]=n("label",{for:"cache-window"},"Time range",-1)),P(n("select",{id:"cache-window",class:"form-control form-control-sm","onUpdate:modelValue":t[0]||(t[0]=s=>e.cacheMinutes=s),onChange:t[1]||(t[1]=s=>e.loadCache())},[...t[67]||(t[67]=[n("option",{value:15},"Last 15 minutes",-1),n("option",{value:60},"Last hour",-1),n("option",{value:1440},"Last 24 hours",-1),n("option",{value:10080},"Last 7 days",-1)])],544),[[Nt,e.cacheMinutes,void 0,{number:!0}]]),t[70]||(t[70]=n("label",{for:"cache-traffic"},"Traffic",-1)),P(n("select",{id:"cache-traffic",class:"form-control form-control-sm","onUpdate:modelValue":t[2]||(t[2]=s=>e.cacheTraffic=s)},[...t[68]||(t[68]=[Ce('',6)])],512),[[Nt,e.cacheTraffic]])])]),e.cacheError?(a(),l("div",AN,[n("span",null,d(e.cacheError),1),n("button",{type:"button",class:"btn btn-sm",onClick:t[3]||(t[3]=s=>e.loadCache())},"Retry")])):f("v-if",!0),!e.cacheReport&&!e.cacheError?(a(),l("p",IN,"Loading cache monitoring\u2026")):f("v-if",!0),e.cacheReport?.available?(a(),l(V,{key:2},[e.cacheReport.enabled?f("v-if",!0):(a(),l("p",ON,"Shared blob storage is disabled. Inspection and legacy-cache activity are still measured.")),e.cacheReport.filesystemSupported?f("v-if",!0):(a(),l("p",MN,"Shared blobs require a local filesystem. The configured storage continues to use its existing cache.")),e.cacheReport.dropped?(a(),l("p",VN,d(e.cacheReport.dropped)+" telemetry events were dropped. Totals may be incomplete.",1)):f("v-if",!0),e.cacheReport.source?(a(),l("div",qN,[n("table",LN,[t[72]||(t[72]=n("caption",{class:"sr-only"},"Current shared-cache storage and byte budgets",-1)),t[73]||(t[73]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Pool"),n("th",{scope:"col",class:"num"},"Allocated / budget"),n("th",{scope:"col",class:"num"},"Reserved for fills"),n("th",{scope:"col",class:"num"},"Original bytes"),n("th",{scope:"col",class:"num"},"Blobs"),n("th",{scope:"col",class:"num"},"Active readers")])],-1)),n("tbody",null,[(a(!0),l(V,null,X([{name:"Source blobs",data:e.cacheReport.source},{name:"Transformed output",data:e.cacheReport.results}],s=>P((a(),l("tr",{key:s.name},[n("th",_N,d(s.name),1),n("td",{class:R(["num budget-cell",{"is-over":s.data?.budgetBytes&&s.data?.allocatedBytes>s.data?.budgetBytes}]),title:s.data?.budgetBytes?Math.round(100*(s.data?.allocatedBytes||0)/s.data.budgetBytes)+"% of budget":null},[s.data?.budgetBytes&&s.data?.allocatedBytes>s.data?.budgetBytes?(a(),l("span",FN,"Over budget \xB7 ")):f("v-if",!0),m(d(e.humanBytes(s.data?.allocatedBytes))+" / "+d(e.humanBytes(s.data?.budgetBytes)),1),s.data?.budgetBytes?(a(),l("span",UN,[n("i",{style:Ae({width:Math.min(100,Math.round(100*(s.data?.allocatedBytes||0)/s.data.budgetBytes))+"%"})},null,4)])):f("v-if",!0)],10,$N),n("td",BN,d(e.humanBytes(s.data?.reservedBytes)),1),n("td",zN,d(e.humanBytes(s.data?.originalBytes)),1),n("td",HN,d(e.fmt?.number(s.data?.blobs)),1),n("td",jN,d(e.fmt?.number(s.data?.activeReaders)),1)])),[[Q,s.data]])),128))])])])):f("v-if",!0),e.cacheReport.source?(a(),l("dl",GN,[n("div",null,[t[74]||(t[74]=n("dt",null,"Source request hit rate",-1)),n("dd",null,d(e.cacheRate("source","count")),1)]),n("div",null,[t[75]||(t[75]=n("dt",null,"Source byte hit rate",-1)),n("dd",null,d(e.cacheRate("source","bytes")),1)]),n("div",null,[t[76]||(t[76]=n("dt",null,"Decision hit rate",-1)),n("dd",null,d(e.cacheRate("decision","count")),1)])])):f("v-if",!0),t[79]||(t[79]=n("p",{class:"ov-performance-note"},"Reuse counts measure consecutive reads of the same blob within each interval. Codec timings are elapsed stream time, not CPU time; eviction times measure how long a blob was idle. Known monitors are identified by request metadata; other automation may remain in file reads.",-1)),e.cacheRows().length?(a(),l("div",WN,[n("table",KN,[t[77]||(t[77]=n("caption",{class:"sr-only"},"Cache events for the selected time range and traffic",-1)),t[78]||(t[78]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Event"),n("th",{scope:"col"},"Traffic"),n("th",{scope:"col",class:"num"},"Count"),n("th",{scope:"col",class:"num"},"Bytes"),n("th",{scope:"col",class:"num"},"Mean measured time"),n("th",{scope:"col",class:"num"},"p95 bound")])],-1)),n("tbody",null,[(a(!0),l(V,null,X(e.cacheRows(),s=>(a(),l("tr",{key:s.name+":"+s.traffic},[n("th",YN,d(e.cacheEventName(s.name)),1),n("td",JN,d(s.traffic),1),n("td",XN,d(e.fmt?.number(s.count)),1),n("td",QN,d(e.humanBytes(s.bytes)),1),n("td",{class:R(["num",{"ov-muted":!s.ms}])},d(s.ms?e.fmt.duration(s.ms/s.count):"Not timed"),3),n("td",{class:R(["num",{"ov-muted":!s.ms}])},d(e.cacheP95(s)),3)]))),128))])])])):(a(),l("p",ZN,"No cache events in this time range for the selected traffic.")),n("p",xN,"Updated "+d(e.sampleAge(e.cacheReport))+" seconds ago. Minute history is retained for 48 hours; hourly history for 30 days.",1)],64)):f("v-if",!0)],512),[[Q,e.ovView==="cache"]]),P(n("section",eR,[n("div",tR,[t[84]||(t[84]=n("div",null,[n("h2",{class:"ov-panel-title",id:"performance-heading"},"Request performance"),n("p",{class:"ov-performance-note"},"Request latency and process health")],-1)),n("div",nR,[e.performance?.available?(a(),l(V,{key:0},[t[81]||(t[81]=n("label",{for:"performance-view"},"Show",-1)),P(n("select",{id:"performance-view",class:"form-control form-control-sm","onUpdate:modelValue":t[4]||(t[4]=s=>e.performanceTab=s),"aria-label":"Performance metrics"},[...t[80]||(t[80]=[n("option",{value:"routes"},"Routes",-1),n("option",{value:"processes"},"Processes",-1),n("option",{value:"stages"},"Work stages",-1)])],512),[[Nt,e.performanceTab]])],64)):f("v-if",!0),t[83]||(t[83]=n("label",{for:"performance-window"},"Time range",-1)),P(n("select",{id:"performance-window",class:"form-control form-control-sm","onUpdate:modelValue":t[5]||(t[5]=s=>e.performanceMinutes=s),onChange:t[6]||(t[6]=s=>e.loadPerformance()),"aria-label":"Performance time range"},[...t[82]||(t[82]=[n("option",{value:15},"Last 15 minutes",-1),n("option",{value:60},"Last hour",-1)])],544),[[Nt,e.performanceMinutes,void 0,{number:!0}]])])]),e.performanceError?(a(),l("div",oR,[t[85]||(t[85]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),n("span",null,d(e.performanceError),1),n("button",{type:"button",class:"btn btn-sm",onClick:t[7]||(t[7]=s=>e.loadPerformance())},"Retry")])):f("v-if",!0),!e.performance&&!e.performanceError?(a(),l("p",sR,"Loading performance monitoring\u2026")):f("v-if",!0),e.performance?.available?(a(),l("div",iR,[P(n("div",rR,[e.performance.routes?.length?(a(),l("div",aR,[n("table",lR,[t[86]||(t[86]=n("caption",{class:"sr-only"},"Route latency for the selected time range",-1)),t[87]||(t[87]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Route"),n("th",{scope:"col",class:"num"},"Requests"),n("th",{scope:"col",class:"num"},"Average"),n("th",{scope:"col",class:"num"},"First byte p95"),n("th",{scope:"col",class:"num"},"p95"),n("th",{scope:"col",class:"num"},"p99"),n("th",{scope:"col",class:"num"},"Interrupted"),n("th",{scope:"col",class:"num"},"5xx"),n("th",{scope:"col",class:"num"},"Slow")])],-1)),n("tbody",null,[(a(!0),l(V,null,X(e.performance.routes,s=>(a(),l("tr",{key:s.service+s.method+s.route},[n("th",dR,[n("span",null,d(s.route),1),n("small",null,d(s.service)+" \xB7 "+d(s.method),1)]),n("td",uR,d(e.fmt.number(s.count)),1),n("td",cR,d(e.formatMs(s.avgMs)),1),n("td",pR,d(e.firstByteBound(s)),1),n("td",fR,d(e.latencyBound(s,"p95UpperMs")),1),n("td",mR,d(e.latencyBound(s,"p99UpperMs")),1),n("td",{class:R(["num",{"ov-metric-warn":s.aborted>0}])},d(e.fmt.number(s.aborted)),3),n("td",{class:R(["num",{"ov-metric-bad":s.errors>0}])},d(e.fmt.number(s.errors)),3),n("td",{class:R(["num",{"ov-metric-warn":s.slow>0}])},d(e.fmt.number(s.slow)),3)]))),128))])])])):(a(),l("p",hR,"No recorded requests in this time range yet."))],512),[[Q,e.performanceTab==="routes"]]),P(n("div",gR,[t[91]||(t[91]=n("p",{class:"ov-performance-note"},"API and streamer processes \xB7 latest sample per instance",-1)),e.performance.instances?.length?(a(),l("div",yR,[n("table",bR,[t[89]||(t[89]=n("caption",{class:"sr-only"},"API and streamer process resource usage",-1)),t[90]||(t[90]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Process"),n("th",{scope:"col",class:"num"},"RSS / limit"),n("th",{scope:"col",class:"num"},"CPU"),n("th",{scope:"col",class:"num"},"Event loop p95"),n("th",{scope:"col",class:"num"},"Active requests"),n("th",{scope:"col",class:"num"},"Sockets / CLOSE_WAIT"),n("th",{scope:"col",class:"num"},"Workers / waiting"),n("th",{scope:"col",class:"num"},"Sample age"),n("th",{scope:"col",class:"num"},"Dropped batches / metrics")])],-1)),n("tbody",null,[(a(!0),l(V,null,X(e.performance.instances,s=>(a(),l("tr",{key:s.instance,class:R({"ov-metric-warning-row":e.performanceWarning(s)})},[n("th",wR,[n("span",null,d(s.instance),1),e.performanceWarning(s)?(a(),l("small",kR,[...t[88]||(t[88]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1),m(" Needs attention",-1)])])):f("v-if",!0)]),n("td",CR,[m(d(e.humanBytes(s.memory.rss))+" / "+d(e.humanBytes(s.memoryLimitBytes)),1),n("small",null,"Peak "+d(e.humanBytes(e.peakRss(s))),1)]),n("td",SR,d(s.cpuPercent==null?"Unavailable":s.cpuPercent.toFixed(1)+"%"),1),n("td",ER,d(s.eventLoop?.p95Ms==null?"Not applicable":e.fmt.duration(s.eventLoop.p95Ms)),1),n("td",NR,d(s.activeRequests),1),n("td",RR,d(s.sockets?.descriptors??"Unavailable")+" / "+d(s.sockets?.closeWait??"Unavailable"),1),n("td",TR,d(s.workers?.running??0)+" / "+d(s.workers?.waiting??0),1),n("td",PR,d(e.sampleAge(s))+" s",1),n("td",DR,d(s.droppedBatches)+" / "+d(s.droppedMetrics),1)],2))),128))])])])):(a(),l("div",vR,"No recent process samples. Monitoring coverage is incomplete."))],512),[[Q,e.performanceTab==="processes"]]),P(n("div",AR,[e.performance.stages?.some(s=>s.metric!=="first_byte")?(a(),l("div",IR,[n("table",OR,[t[92]||(t[92]=n("caption",{class:"sr-only"},"Work stages and cache results",-1)),t[93]||(t[93]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Work stage"),n("th",{scope:"col",class:"num"},"Samples"),n("th",{scope:"col",class:"num"},"Average"),n("th",{scope:"col",class:"num"},"p95")])],-1)),n("tbody",null,[(a(!0),l(V,null,X(e.performance.stages.filter(s=>s.metric!=="first_byte"),s=>(a(),l("tr",{key:s.service+s.metric},[n("th",MR,[n("span",null,d(s.metric),1),n("small",null,d(s.service),1)]),n("td",VR,d(e.fmt.number(s.count)),1),n("td",qR,d(e.formatMs(s.avgMs)),1),n("td",LR,d(e.latencyBound(s,"p95UpperMs")),1)]))),128))])])])):(a(),l("p",_R,"No recorded work stages or cache results in this time range yet."))],512),[[Q,e.performanceTab==="stages"]]),t[94]||(t[94]=n("details",{class:"ov-performance-help"},[n("summary",null,"How to read these metrics"),n("p",null,"Latency includes upstream waits and response transfer. Percentiles show histogram bucket upper bounds, not exact timings. Process rows marked \u201CNeeds attention\u201D have stale samples, dropped monitoring data, CLOSE_WAIT sockets, high event loop delay, or high memory usage.")],-1))])):f("v-if",!0)],512),[[Q,e.ovView==="performance"]])])}var $R={class:"container paper-page admin-page"},FR={class:"q-header"},UR={class:"q-header-actions"},BR={class:"q-cards"},zR=["aria-pressed","onKeydown","onClick"],HR={class:"q-card-head"},jR=["title"],GR=["textContent"],WR=["textContent"],KR={class:"q-card-sub"},YR={class:"q-card-failed"},JR={key:0,class:"q-card-bar"},XR={key:0,class:"q-detail"},QR={class:"q-throughput"},ZR={class:"q-range-btns"},xR={class:"q-section-label"},eT={key:0,class:"q-section-right"},tT={class:"q-chart-wrap"},nT={key:0,class:"q-chart-empty"},oT={class:"q-stats-panel"},sT={class:"q-section-label"},iT={class:"q-stats-grid"},rT={class:"q-stat"},aT=["textContent"],lT={class:"q-stat"},dT=["textContent"],uT={class:"q-stat"},cT=["textContent"],pT={class:"q-stat"},fT=["textContent"],mT={class:"q-stat"},hT=["textContent"],gT={class:"q-stat"},vT=["textContent"],yT={class:"q-stats-actions"},bT=["disabled"],wT={class:"q-danger-group"},kT={class:"q-jobs"},CT={class:"q-jobs-header"},ST={class:"q-section-label"},ET={class:"seg-filter",role:"radiogroup","aria-label":"Filter jobs by state"},NT=["aria-checked"],RT={class:"count"},TT=["aria-checked"],PT={class:"count"},DT=["aria-checked"],AT={class:"count"},IT=["aria-checked"],OT={class:"count"},MT=["aria-checked"],VT={class:"count"},qT=["aria-checked"],LT={class:"count"},_T={class:"q-search-row"},$T={type:"search",class:"form-control",placeholder:"Search by job/repo id\u2026",autocomplete:"off"},FT={class:"q-auto-refresh"},UT={type:"checkbox"},BT={key:0,class:"q-table"},zT=["onClick"],HT={class:"q-cell-state"},jT=["textContent"],GT=["textContent"],WT=["title"],KT=["textContent","href"],YT=["title","textContent"],JT=["textContent"],XT=["textContent"],QT={class:"q-cell-progress"},ZT=["aria-label"],xT=["textContent"],eP={class:"q-cell-actions"},tP=["onClick"],nP=["onClick"],oP={key:0,class:"q-detail-row"},sP={colspan:"7"},iP={class:"q-job-detail"},rP={class:"q-job-detail-grid"},aP={class:"q-job-detail-item"},lP={class:"q-job-detail-value"},dP=["textContent","href"],uP={class:"q-job-detail-item"},cP={class:"q-job-detail-value"},pP=["textContent"],fP={key:0,class:"q-job-detail-item"},mP=["textContent"],hP={key:1,class:"q-job-detail-item"},gP=["textContent"],vP={key:2,class:"q-job-detail-item"},yP={class:"q-job-detail-value"},bP={key:3,class:"q-job-detail-item"},wP=["textContent"],kP={key:4,class:"q-job-detail-item"},CP=["textContent"],SP={key:5,class:"q-job-detail-item"},EP=["textContent"],NP={key:6,class:"q-job-detail-item"},RP=["textContent"],TP={key:7,class:"q-job-detail-item"},PP=["textContent"],DP={key:0,class:"q-job-detail-error"},AP=["textContent"],IP={key:1},OP=["textContent"],MP={class:"q-job-detail-actions"},VP=["onClick"],qP=["onClick"],LP=["href"],_P={key:1,class:"paper-table-empty",style:{border:"1px solid var(--border-color)","border-radius":"10px",background:"var(--paper-card)"}},$P={key:0},FP={key:1};function mp(e,t){let s=Pe("field");return a(),l("div",$R,[t[71]||(t[71]=n("div",{class:"paper-crumbs"},[m("Admin \xA0/\xA0 "),n("span",{class:"here"},"Queues")],-1)),n("div",FR,[t[18]||(t[18]=n("h1",{class:"paper-page-title"},"Queues",-1)),n("div",UR,[n("button",{class:"btn btn-sm",onClick:t[0]||(t[0]=i=>e.pauseAll())},"Pause all queues")])]),t[72]||(t[72]=Ce('',1)),f(" Queue overview cards "),n("div",BR,[(a(!0),l(V,null,X(e.queueList,(i,o)=>(a(),l("div",{class:R(["q-card",{selected:e.selectedQueue==i?.key,paused:i?.paused}]),role:"button",tabindex:"0","aria-pressed":e.selectedQueue===i.key,onKeydown:[_t(de(r=>e.selectQueue(i.key),["prevent"]),["enter"]),_t(de(r=>e.selectQueue(i.key),["prevent"]),["space"])],onClick:r=>e.selectQueue(i.key)},[n("div",HR,[n("span",{class:R(["q-dot",{"q-dot-red":i?.paused||i?.counts?.failed>0,"q-dot-idle":!i?.counts?.active&&!i?.counts?.waiting}]),title:i?.paused?"Paused":i?.counts?.failed>0?i.counts.failed+" failed jobs":i?.counts?.active||i?.counts?.waiting?"Running":"Idle"},null,10,jR),n("span",{class:"q-card-name",textContent:d(i?.label)},null,8,GR)]),n("div",{class:"q-card-count",textContent:d((i?.counts?.waiting||0)+(i?.counts?.active||0)+(i?.counts?.delayed||0))},null,8,WR),n("div",KR,[n("span",null,[m("waiting \xB7 "+d(i?.counts?.active||0)+" active",1),i?.counts?.failed?(a(),l(V,{key:0},[t[19]||(t[19]=m(" \xB7 ",-1)),n("b",YR,d(i.counts.failed)+" failed",1)],64)):f("v-if",!0),i?.paused?(a(),l(V,{key:1},[t[20]||(t[20]=m(" \xB7 ",-1)),t[21]||(t[21]=n("b",{class:"q-card-failed"},"paused",-1))],64)):f("v-if",!0)]),i?.counts?.active?(a(),l("div",JR,[n("div",{class:"q-card-bar-fill",style:Ae({width:i?.counts?.active/((i?.counts?.waiting||0)+(i?.counts?.active||0)+(i?.counts?.delayed||0)||1)*100+"%"})},null,4)])):f("v-if",!0)])],42,zR))),256))]),f(" Detail: throughput chart + stats panel "),e.selectedStats?(a(),l("div",XR,[n("div",QR,[n("div",ZR,[n("button",{class:R(["btn btn-sm",{active:e.range=="1h"}]),onClick:t[1]||(t[1]=i=>e.setRange("1h"))},"1h",2),n("button",{class:R(["btn btn-sm",{active:e.range=="6h"}]),onClick:t[2]||(t[2]=i=>e.setRange("6h"))},"6h",2),n("button",{class:R(["btn btn-sm",{active:e.range=="24h"}]),onClick:t[3]||(t[3]=i=>e.setRange("24h"))},"24h",2),n("button",{class:R(["btn btn-sm",{active:e.range=="7d"}]),onClick:t[4]||(t[4]=i=>e.setRange("7d"))},"7d",2)]),n("div",xR,[m("Throughput \xB7 "+d(e.selectedQueue)+" ",1),(e.selectedStats?.completed24h||0)+(e.selectedStats?.failed24h||0)>0?(a(),l("span",eT,[t[23]||(t[23]=n("span",{class:"q-legend-completed"},"\u25CF",-1)),t[24]||(t[24]=m(" Completed ",-1)),t[25]||(t[25]=n("span",{class:"q-legend-failed"},"\u25CF",-1)),t[26]||(t[26]=m(" Failed ",-1)),(e.selectedStats?.completed24h||0)+(e.selectedStats?.failed24h||0)>0?(a(),l(V,{key:0},[t[22]||(t[22]=n("span",{class:"q-legend-exec","aria-hidden":"true"},null,-1)),m(" Avg time \xB7 "+d(e.range),1)],64)):f("v-if",!0)])):f("v-if",!0)]),n("div",tT,[t[28]||(t[28]=n("canvas",{id:"q-throughput-chart",height:"180"},null,-1)),(e.selectedStats?.completed24h||0)+(e.selectedStats?.failed24h||0)===0?(a(),l("div",nT,[...t[27]||(t[27]=[n("strong",null,"No jobs processed in this window",-1),n("span",null,"Completed and failed jobs will chart here.",-1)])])):f("v-if",!0),t[29]||(t[29]=n("div",{id:"q-chart-tooltip",class:"q-chart-tooltip",style:{display:"none"}},null,-1)),t[30]||(t[30]=n("div",{id:"q-chart-crosshair",class:"q-chart-crosshair",style:{display:"none"}},null,-1))])]),n("div",oT,[n("div",sT,"Stats \xB7 "+d(e.selectedQueue),1),n("div",iT,[n("div",rT,[t[31]||(t[31]=n("div",{class:"q-stat-label"},"Waiting",-1)),n("div",{class:"q-stat-value",textContent:d(e.selectedStats?.counts?.waiting||0)},null,8,aT)]),n("div",lT,[t[32]||(t[32]=n("div",{class:"q-stat-label"},"Active",-1)),n("div",{class:"q-stat-value",textContent:d(e.selectedStats?.counts?.active||0)},null,8,dT)]),n("div",uT,[t[33]||(t[33]=n("div",{class:"q-stat-label"},"Completed (24h)",-1)),n("div",{class:"q-stat-value",textContent:d(e.fmt?.number(e.selectedStats?.completed24h))},null,8,cT)]),n("div",pT,[t[34]||(t[34]=n("div",{class:"q-stat-label"},"Failed (24h)",-1)),n("div",{class:"q-stat-value",textContent:d(e.selectedStats?.failed24h||0)},null,8,fT)]),n("div",mT,[t[35]||(t[35]=n("div",{class:"q-stat-label"},"Delayed",-1)),n("div",{class:"q-stat-value",textContent:d(e.selectedStats?.counts?.delayed||0)},null,8,hT)]),n("div",gT,[t[36]||(t[36]=n("div",{class:"q-stat-label"},"Workers",-1)),n("div",{class:"q-stat-value",textContent:d(e.selectedStats?.workers||0)},null,8,vT)])]),n("div",yT,[n("button",{class:"btn btn-sm",onClick:t[5]||(t[5]=i=>e.togglePause())},d(e.selectedStats?.paused?"Resume "+e.selectedQueue:"Pause "+e.selectedQueue),1),n("button",{class:"btn btn-sm",onClick:t[6]||(t[6]=i=>e.retryFailed()),disabled:!e.selectedStats?.counts?.failed},"Retry failed",8,bT),n("span",wT,[n("button",{class:"btn btn-sm btn-outline-danger",onClick:t[7]||(t[7]=i=>e.drainSelected())},"Drain"),n("button",{class:"btn btn-sm btn-outline-danger",onClick:t[8]||(t[8]=i=>e.emptyQueue())},"Empty")])])])])):f("v-if",!0),e.actionError?(a(),l("div",{key:1,class:"q-toast-error",onClick:t[9]||(t[9]=i=>e.actionError=null)},[t[37]||(t[37]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1)),m(" "+d(e.actionError),1)])):f("v-if",!0),f(" Jobs table "),n("div",kT,[n("div",CT,[n("div",ST,"All jobs \xB7 "+d(e.selectedQueue),1),n("div",ET,[n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="all"}]),"aria-checked":e.segView()==="all",onClick:t[10]||(t[10]=i=>e.setSegView("all"))},[t[38]||(t[38]=m("All ",-1)),n("span",RT,d(e.fmt?.number(e.segCount("all"))),1)],10,NT),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="active","is-empty":!e.segCount("active")}]),"aria-checked":e.segView()==="active",onClick:t[11]||(t[11]=i=>e.setSegView("active"))},[t[39]||(t[39]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[40]||(t[40]=m("Active ",-1)),n("span",PT,d(e.fmt?.number(e.segCount("active"))),1)],10,TT),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="waiting","is-empty":!e.segCount("waiting")}]),"aria-checked":e.segView()==="waiting",onClick:t[12]||(t[12]=i=>e.setSegView("waiting"))},[t[41]||(t[41]=n("span",{class:"seg-dot warn","aria-hidden":"true"},null,-1)),t[42]||(t[42]=m("Waiting ",-1)),n("span",AT,d(e.fmt?.number(e.segCount("waiting"))),1)],10,DT),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="delayed","is-empty":!e.segCount("delayed")}]),"aria-checked":e.segView()==="delayed",onClick:t[13]||(t[13]=i=>e.setSegView("delayed"))},[t[43]||(t[43]=n("span",{class:"seg-dot warn","aria-hidden":"true"},null,-1)),t[44]||(t[44]=m("Delayed ",-1)),n("span",OT,d(e.fmt?.number(e.segCount("delayed"))),1)],10,IT),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="failed","is-empty":!e.segCount("failed")}]),"aria-checked":e.segView()==="failed",onClick:t[14]||(t[14]=i=>e.setSegView("failed"))},[t[45]||(t[45]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[46]||(t[46]=m("Failed ",-1)),n("span",VT,d(e.fmt?.number(e.segCount("failed"))),1)],10,MT),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="completed","is-empty":!e.segCount("completed")}]),"aria-checked":e.segView()==="completed",onClick:t[15]||(t[15]=i=>e.setSegView("completed"))},[t[47]||(t[47]=n("span",{class:"seg-dot done","aria-hidden":"true"},null,-1)),t[48]||(t[48]=m("Completed ",-1)),n("span",LT,d(e.fmt?.number(e.segCount("completed"))),1)],10,qT)])]),n("div",_T,[P(n("input",$T,null,512),[[s,{state:e.viewState,set:i=>{e.query.search=i},value:e.query?.search,form:null,options:{}}]]),n("label",FT,[P(n("input",UT,null,512),[[s,{state:e.viewState,set:i=>{e.query.autoRefresh=i},value:e.query?.autoRefresh,form:null,options:{}}]]),t[49]||(t[49]=n("span",{class:"auto-refresh-label"},"Auto-refresh",-1))]),n("button",{class:"btn btn-sm btn-icon",type:"button",title:"Refresh now",onClick:t[16]||(t[16]=i=>e.refreshNow()),"aria-label":"Refresh"},[...t[50]||(t[50]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1)])])]),e.filteredJobs().length>0?(a(),l("table",BT,[t[69]||(t[69]=n("thead",null,[n("tr",null,[n("th",null,"State"),n("th",null,"Job"),n("th",null,"Detail"),n("th",null,"Attempts"),n("th",{class:"q-th-num"},"Duration"),n("th",null,"Progress"),n("th")])],-1)),(a(!0),l(V,null,X(e.filteredJobs(),(i,o)=>(a(),l("tbody",null,[n("tr",{style:{cursor:"pointer"},class:R({"q-row-failed":i?._state=="failed","q-row-expanded":e.expanded[i?.id]}),onClick:r=>e.toggleJob(i)},[n("td",HT,[n("span",{textContent:d(i?._state),class:R("q-state-badge q-state-"+i?._state)},null,10,jT),i?._state=="delayed"&&i?.delayUntil?(a(),l("span",{key:0,class:"q-delay-hint",textContent:d(e.delayCountdown(i?.delayUntil))},null,8,GT)):f("v-if",!0)]),n("td",{class:"q-cell-id",title:"job:"+i?.id+(i?.name&&i?.name!==i?.id?" \xB7 "+i.name:"")+(i?.data?.repoId&&i?.data?.repoId!==i?.id?" \xB7 "+i.data.repoId:"")},[(a(),l("svg",{class:R(["ui-icon q-chevron",{"q-chevron-open":e.expanded[i?.id]}]),"aria-hidden":"true"},[...t[51]||(t[51]=[n("use",{href:"#ui-icon-chevron-right"},null,-1)])],2)),n("a",{target:"_blank",class:"q-job-link",textContent:d(i?.data?.repoId||i?.id),onClick:t[17]||(t[17]=r=>r.stopPropagation()),href:e.safeUrl("/r/"+(i?.data?.repoId||i?.id))},null,8,KT)],8,WT),n("td",{class:R(["q-cell-detail",{"is-error":i?._state=="failed"}]),title:i?._state=="failed"?i?.failedReason:"",textContent:d(e.jobDetail(i))},null,10,YT),n("td",{class:"q-cell-num",textContent:d(i?.attemptsMade||1)},null,8,JT),n("td",{class:"q-cell-num q-cell-duration",textContent:d(e.jobDuration(i))},null,8,XT),n("td",QT,[n("div",{class:R(["q-progress-wrap",{"is-indeterminate":e.jobProgressPct(i)===null}]),"aria-label":e.jobProgressPct(i)===null?"Progress not reported":e.jobProgressPct(i)+"% done"},[n("div",{class:"q-progress-bar",style:Ae({"--pct":(e.jobProgressPct(i)||0)+"%"})},null,4),n("span",{class:"q-progress-label",textContent:d(e.jobProgressPct(i)===null?"\u2014":e.jobProgressPct(i)+"%")},null,8,xT)],10,ZT)]),n("td",eP,[i?._state=="failed"?(a(),l("button",{key:0,class:"btn btn-sm btn-icon",title:"Retry",onClick:r=>{e.retryJob(i),r.stopPropagation()},"aria-label":"Retry job"},[...t[52]||(t[52]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1)])],8,tP)):f("v-if",!0),n("button",{class:"btn btn-sm btn-icon",title:"Remove","aria-label":"Remove job",onClick:r=>{e.removeJob(i),r.stopPropagation()}},[...t[53]||(t[53]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1)])],8,nP)])],10,zT),e.expanded[i?.id]?(a(),l("tr",oP,[n("td",sP,[n("div",iP,[n("div",rP,[n("div",aP,[t[54]||(t[54]=n("span",{class:"q-job-detail-label"},"Job id",-1)),n("span",lP,[n("a",{target:"_blank",textContent:d(i?.id),href:e.safeUrl("/r/"+i?.id)},null,8,dP)])]),n("div",uP,[t[55]||(t[55]=n("span",{class:"q-job-detail-label"},"State",-1)),n("span",cP,[n("span",{textContent:d(i?._state),class:R("q-state-badge q-state-"+i?._state)},null,10,pP)])]),i?.data?.repoId?(a(),l("div",fP,[t[56]||(t[56]=n("span",{class:"q-job-detail-label"},"Repo ID",-1)),n("span",{class:"q-job-detail-value",textContent:d(i?.data?.repoId)},null,8,mP)])):f("v-if",!0),i?.timestamp?(a(),l("div",hP,[t[57]||(t[57]=n("span",{class:"q-job-detail-label"},"Created",-1)),n("span",{class:"q-job-detail-value",textContent:d(e.humanTime(i?.timestamp))},null,8,gP)])):f("v-if",!0),i?._state=="delayed"&&i?.delayUntil?(a(),l("div",vP,[t[58]||(t[58]=n("span",{class:"q-job-detail-label"},"Retry at",-1)),n("span",yP,d(e.humanTime(i?.delayUntil))+" ("+d(e.delayCountdown(i?.delayUntil))+")",1)])):f("v-if",!0),i?.processedOn?(a(),l("div",bP,[t[59]||(t[59]=n("span",{class:"q-job-detail-label"},"Processed",-1)),n("span",{class:"q-job-detail-value",textContent:d(e.humanTime(i?.processedOn))},null,8,wP)])):f("v-if",!0),i?.finishedOn?(a(),l("div",kP,[t[60]||(t[60]=n("span",{class:"q-job-detail-label"},"Finished",-1)),n("span",{class:"q-job-detail-value",textContent:d(e.humanTime(i?.finishedOn))},null,8,CP)])):f("v-if",!0),i?.attemptsMade?(a(),l("div",SP,[t[61]||(t[61]=n("span",{class:"q-job-detail-label"},"Attempts",-1)),n("span",{class:"q-job-detail-value",textContent:d(i?.attemptsMade)},null,8,EP)])):f("v-if",!0),i?.progress&&i?.progress?.status?(a(),l("div",NP,[t[62]||(t[62]=n("span",{class:"q-job-detail-label"},"Status",-1)),n("span",{class:"q-job-detail-value",textContent:d(i?.progress?.status)},null,8,RP)])):f("v-if",!0),e.jobProgressPct(i)!==null?(a(),l("div",TP,[t[63]||(t[63]=n("span",{class:"q-job-detail-label"},"Progress",-1)),n("span",{class:"q-job-detail-value",textContent:d(e.jobProgressPct(i)+"%")},null,8,PP)])):f("v-if",!0)]),i?.failedReason?(a(),l("div",DP,[t[64]||(t[64]=n("span",{class:"q-job-detail-label"},"Error",-1)),n("div",{class:"q-error-reason",textContent:d(i?.failedReason)},null,8,AP)])):f("v-if",!0),i?.stacktrace?.length?(a(),l("div",IP,[t[65]||(t[65]=n("span",{class:"q-job-detail-label"},"Stacktrace",-1)),(a(!0),l(V,null,X(i?.stacktrace,(r,u)=>(a(),l("pre",{class:"q-error-stack",key:u},[n("code",{textContent:d(r)},null,8,OP)]))),128))])):f("v-if",!0),n("div",MP,[i?._state=="failed"?(a(),l("button",{key:0,class:"btn btn-sm",onClick:r=>e.retryJob(i)},[...t[66]||(t[66]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),m(" Retry",-1)])],8,VP)):f("v-if",!0),n("button",{class:"btn btn-sm",onClick:r=>e.removeJob(i)},[...t[67]||(t[67]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),m(" Remove",-1)])],8,qP),n("a",{class:"btn btn-sm",target:"_blank",href:e.safeUrl("/r/"+i?.id)},[...t[68]||(t[68]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1),m(" View repo",-1)])],8,LP)])])])])):f("v-if",!0)]))),256))])):f("v-if",!0),e.filteredJobs().length==0?(a(),l("div",_P,[t[70]||(t[70]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1)),e.query?.search?f("v-if",!0):(a(),l("span",$P,"No jobs in the "+d(e.selectedQueue)+" queue.",1)),e.query?.search?(a(),l("span",FP,"No jobs match the current filters.")):f("v-if",!0)])):f("v-if",!0)])])}var UP={class:"container paper-page admin-page"},BP={class:"seg-bar"},zP={class:"seg-filter",role:"radiogroup","aria-label":"Filter by status"},HP=["aria-checked"],jP={class:"count"},GP=["aria-checked"],WP={class:"count"},KP=["aria-checked"],YP={class:"count"},JP=["aria-checked"],XP={class:"count"},QP=["aria-checked"],ZP={class:"count"},xP=["aria-checked"],e4={class:"count"},t4={class:"seg-countline",role:"status"},n4={class:"seg-meta"},o4={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},s4={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},i4=["aria-expanded"],r4={class:"search-wrap"},a4={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repositories\u2026",autocomplete:"off"},l4={key:0,class:"admin-search-hint"},d4={class:"admin-filter-inline"},u4={type:"text",class:"form-control form-control-sm",placeholder:"username"},c4={class:"admin-filter-inline"},p4={type:"text",class:"form-control form-control-sm",placeholder:"ID"},f4={key:0,class:"admin-filter-inline","aria-label":"Pagination"},m4=["disabled"],h4={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},g4=["disabled"],v4={key:0,class:"admin-filter-row"},y4={class:"admin-active-chips"},b4={class:"key"},w4=["onClick"],k4={key:1,class:"bulk-bar"},C4={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},S4={class:"paper-table-head",role:"row"},E4={role:"columnheader",style:{width:"28px"}},N4=["checked"],R4={role:"columnheader"},T4={role:"columnheader"},P4={role:"columnheader",class:"num"},D4={role:"columnheader"},A4={role:"cell",style:{width:"28px"}},I4={type:"checkbox","aria-label":"Select repository"},O4={class:"cell-anon",role:"cell"},M4={class:"anon-text"},V4=["textContent","href"],q4=["title"],L4=["href"],_4=["textContent"],$4=["textContent"],F4=["data-meta-label"],U4=["title","textContent","href"],B4=["data-meta-label"],z4=["textContent","href"],H4=["data-meta-label"],j4={key:3,class:"meta-item"},G4={class:"meta-item"},W4={class:"cell-status",role:"cell"},K4={class:"status-line"},Y4=["textContent"],J4=["textContent","title"],X4=["data-unit"],Q4=["textContent"],Z4={class:"cell-expires",role:"cell"},x4=["textContent"],eD={class:"cell-actions",role:"cell"},tD={class:"dropdown"},nD={class:"dropdown-menu dropdown-menu-right"},oD=["href"],sD=["href"],iD=["href"],rD=["onClick"],aD=["onClick"],lD=["onClick"],dD=["onClick"],uD=["onClick"],cD=["onClick"],pD={key:0,class:"paper-table-empty"},fD={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},mD={key:0,class:"pagination-compact"},hD=["disabled"],gD=["max"],vD=["disabled"],yD={class:"admin-filter-inline"},bD={class:"form-control form-control-sm"};function hp(e,t){let s=Pe("field"),i=Pe("form");return a(),l("div",UP,[t[80]||(t[80]=Ce('
Admin \xA0/\xA0 Repositories

Repositories

',3)),n("div",BP,[n("div",zP,[n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="all"}]),"aria-checked":e.segView()==="all",onClick:t[0]||(t[0]=o=>e.setSegView("all"))},[t[21]||(t[21]=m("All ",-1)),n("span",jP,d(e.fmt?.number(e.segCount("all"))),1)],10,HP),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="ready","is-empty":!e.segCount("ready")}]),"aria-checked":e.segView()==="ready",onClick:t[1]||(t[1]=o=>e.setSegView("ready"))},[t[22]||(t[22]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[23]||(t[23]=m("Ready ",-1)),n("span",WP,d(e.fmt?.number(e.segCount("ready"))),1)],10,GP),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="preparing","is-empty":!e.segCount("preparing")}]),"aria-checked":e.segView()==="preparing",onClick:t[2]||(t[2]=o=>e.setSegView("preparing"))},[t[24]||(t[24]=n("span",{class:"seg-dot warn","aria-hidden":"true"},null,-1)),t[25]||(t[25]=m("Preparing ",-1)),n("span",YP,d(e.fmt?.number(e.segCount("preparing"))),1)],10,KP),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="error","is-empty":!e.segCount("error")}]),"aria-checked":e.segView()==="error",onClick:t[3]||(t[3]=o=>e.setSegView("error"))},[t[26]||(t[26]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[27]||(t[27]=m("Error ",-1)),n("span",XP,d(e.fmt?.number(e.segCount("error"))),1)],10,JP),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="expired","is-empty":!e.segCount("expired")}]),"aria-checked":e.segView()==="expired",onClick:t[4]||(t[4]=o=>e.setSegView("expired"))},[t[28]||(t[28]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[29]||(t[29]=m("Expiring / expired ",-1)),n("span",ZP,d(e.fmt?.number(e.segCount("expired"))),1)],10,QP),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="removed","is-empty":!e.segCount("removed")}]),"aria-checked":e.segView()==="removed",onClick:t[5]||(t[5]=o=>e.setSegView("removed"))},[t[30]||(t[30]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[31]||(t[31]=m("Removing / removed ",-1)),n("span",e4,d(e.fmt?.number(e.segCount("removed"))),1)],10,xP)]),n("p",t4,[n("strong",null,d(e.total>=0?e.fmt.number(e.total):"\u2026"),1),t[32]||(t[32]=m(" shown",-1)),t[33]||(t[33]=n("span",{class:"seg-sep"},"\xB7",-1)),n("span",n4,d(e.fmt?.humanFileSize(e.totalSize))+" on disk",1)])]),e.fetchError?(a(),l("div",o4,[t[34]||(t[34]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),m(" "+d(e.fetchError),1)])):f("v-if",!0),P((a(),l("form",s4,[f(" Row 1: search + scoped inputs + headline actions "),n("button",{type:"button",class:"btn btn-sm admin-filters-toggle",onClick:t[6]||(t[6]=o=>e.filtersOpen=!e.filtersOpen),"aria-expanded":e.filtersOpen?"true":"false"},"Filters",8,i4),n("div",{class:R(["admin-filter-row",{"is-open":e.filtersOpen}])},[n("div",r4,[P(n("input",a4,null,512),[[s,{state:e.viewState,set:o=>{e.query.search=o},value:e.query?.search,form:null,options:{}}]]),e.query?.search?f("v-if",!0):(a(),l("span",l4,"/"))]),n("span",d4,[t[35]||(t[35]=n("label",null,"Owner",-1)),P(n("input",u4,null,512),[[s,{state:e.viewState,set:o=>{e.query.owner=o},value:e.query?.owner,form:null,options:{}}]])]),n("span",c4,[t[36]||(t[36]=n("label",null,"Conference",-1)),P(n("input",p4,null,512),[[s,{state:e.viewState,set:o=>{e.query.conference=o},value:e.query?.conference,form:null,options:{}}]])]),t[40]||(t[40]=n("span",{class:"admin-filter-spacer"},null,-1)),n("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[7]||(t[7]=o=>e.exportCsv())},[...t[37]||(t[37]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),m(" Export",-1)])]),e.totalPage>1?(a(),l("span",f4,[n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[8]||(t[8]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[38]||(t[38]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,m4),n("span",h4,d(e.query?.page)+"/"+d(e.totalPage||1),1),n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[9]||(t[9]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[39]||(t[39]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,g4)])):f("v-if",!0)],2),f(" Row 2: appears only when there are active filter chips "),e.chips?.length?(a(),l("div",v4,[n("div",y4,[(a(!0),l(V,null,X(e.chips,(o,r)=>(a(),l("span",{class:"admin-active-chip",key:o?.key},[n("span",b4,d(o?.label),1),n("span",null,d(o?.value),1),n("button",{type:"button","aria-label":"Remove filter",onClick:u=>e.clearFilter(o.key)},[...t[41]||(t[41]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,w4)]))),128))])])):f("v-if",!0)])),[[i,e.viewState]]),e.selectedCount()>0?(a(),l("div",k4,[n("span",null,[n("strong",null,d(e.selectedCount()),1),t[42]||(t[42]=m(" selected",-1))]),n("button",{class:"btn btn-sm",type:"button",onClick:t[10]||(t[10]=o=>e.bulkRefresh())},[...t[43]||(t[43]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),m(" Force refresh",-1)])]),n("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[11]||(t[11]=o=>e.bulkRemoveCache())},[...t[44]||(t[44]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),m(" Remove cache",-1)])]),n("button",{class:"btn btn-sm",type:"button",onClick:t[12]||(t[12]=o=>e.clearSelection())},"Clear")])):f("v-if",!0),n("div",C4,[n("div",S4,[n("div",E4,[n("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[13]||(t[13]=o=>e.selectAllOnPage()),checked:e.allSelected},null,8,N4)]),n("div",R4,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[14]||(t[14]=o=>e.sortBy("source.repositoryName"))},[t[46]||(t[46]=m("Repository ",-1)),e.sortIcon("source.repositoryName")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("source.repositoryName")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[45]||(t[45]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",T4,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="status"}]),onClick:t[15]||(t[15]=o=>e.sortBy("status"))},[t[48]||(t[48]=m("Status ",-1)),e.sortIcon("status")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[47]||(t[47]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",P4,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[16]||(t[16]=o=>e.sortBy("pageView"))},[t[50]||(t[50]=m("Views ",-1)),e.sortIcon("pageView")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("pageView")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[49]||(t[49]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",D4,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[17]||(t[17]=o=>e.sortBy("anonymizeDate"))},[t[52]||(t[52]=m("Anonymized ",-1)),e.sortIcon("anonymizeDate")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("anonymizeDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[51]||(t[51]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[53]||(t[53]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(a(!0),l(V,null,X(e.filteredRepositories,(o,r)=>(a(),l("div",{class:R(["paper-table-row",{"repo-inactive":o?.status=="expired"||o?.status=="removed","repo-error":o?.status=="error","row-selected":e.selected[o?.repoId]}]),role:"row"},[n("div",A4,[P(n("input",I4,null,512),[[s,{state:e.viewState,set:u=>{e.selected[o.repoId]=u},value:e.selected[o?.repoId],form:null,options:{}}]])]),n("div",O4,[t[56]||(t[56]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[n("use",{href:"#project-type-repo"})],-1)),n("div",M4,[n("a",{class:"repo-name",target:"_blank",textContent:d(o?.repoId),href:e.safeUrl("/r/"+o?.repoId)},null,8,V4),n("div",{class:"anon-sub anon-meta","data-meta-fit":"",title:[o?.source?.fullName||o?.source?.repositoryName,o?.options?.update?"branch "+o?.source?.branch:"commit "+o?.source?.commit?.substring(0,7),o?.conference?"conference "+o?.conference:"",o?.size?.storage>0?e.fmt?.humanFileSize(o?.size?.storage):"",e.fmt?.number(o?.options?.terms?.length)+(o?.options?.terms?.length===1?" term":" terms")].filter(Boolean).join(" \xB7 ")},[n("a",{class:"src-path",href:e.safeUrl("https://github.com/"+o?.source?.repositoryName+"/")},[(o?.source?.repositoryName||"").includes("/")?(a(),l("span",{key:0,class:"src-owner",textContent:d((u=>u.length>16?u.slice(0,14)+"\u2026":u)((o?.source?.repositoryName||"").split("/")[0]))},null,8,_4)):f("v-if",!0),n("span",{class:"src-repo",textContent:d((o?.source?.repositoryName||"").includes("/")?"/"+(o?.source?.repositoryName||"").split("/").slice(1).join("/"):o?.source?.repositoryName)},null,8,$4)],8,L4),o?.options?.update?f("v-if",!0):(a(),l("span",{key:0,class:"meta-item","data-meta-label":"commit "+(o?.source?.commit||"").substring(0,7)},[n("a",{class:"mono-hash",title:o?.source?.commit,textContent:d(o?.source?.commit?.substring(0,7)),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.commit)},null,8,U4)],8,F4)),o?.options?.update?(a(),l("span",{key:1,class:"meta-item","data-meta-label":"branch "+(o?.source?.branch||"")},[n("a",{textContent:d(o?.source?.branch),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.branch)},null,8,z4)],8,B4)):f("v-if",!0),o?.conference?(a(),l("span",{key:2,class:"meta-item meta-conf","data-meta-label":"conference "+o?.conference},[t[54]||(t[54]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),m(" "+d(o?.conference),1)],8,H4)):f("v-if",!0),o?.size?.storage>0?(a(),l("span",j4,d(e.fmt?.humanFileSize(o?.size?.storage)),1)):f("v-if",!0),n("span",G4,d(e.fmt?.number(o?.options?.terms?.length))+" "+d(o?.options?.terms?.length===1?"term":"terms"),1),t[55]||(t[55]=n("span",{class:"meta-more",hidden:""},null,-1))],8,q4)])]),n("div",W4,[n("span",K4,[n("span",{class:R(["status-dot","st-"+(o?.status||"unknown")])},null,2),n("span",{textContent:d(e.fmt?.statusLabel(o?.status))},null,8,Y4)]),o?.statusMessage?(a(),l("span",{key:0,class:"status-sub",textContent:d(e.fmt?.statusMsg(o?.statusMessage)),title:o?.statusMessage},null,8,J4)):f("v-if",!0)]),n("div",{class:"cell-views num",role:"cell","data-unit":(o?.pageView||0)===1?"view":"views"},[t[57]||(t[57]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1)),t[58]||(t[58]=m()),n("span",{textContent:d(e.fmt?.number(o?.pageView||0))},null,8,Q4)],8,X4),n("div",Z4,[t[59]||(t[59]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),t[60]||(t[60]=m()),n("span",{textContent:d((e.fmt?.humanTime(o?.anonymizeDate)||"").replace(/^on /,""))},null,8,x4)]),n("div",eD,[n("div",tD,[t[72]||(t[72]=n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})])],-1)),n("div",nD,[n("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+o?.repoId)},[...t[61]||(t[61]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),m(" Edit",-1)])],8,oD),n("a",{class:"dropdown-item",href:e.safeUrl("/r/"+o?.repoId+"/")},[...t[62]||(t[62]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),m(" View repo",-1)])],8,sD),o?.options?.page&&o?.status=="ready"?(a(),l("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+o?.repoId+"/")},[...t[63]||(t[63]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),m(" View page",-1)])],8,iD)):f("v-if",!0),n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.fetchGithubInfo(o),["prevent"])},[...t[64]||(t[64]=[n("i",{class:"fab fa-github"},null,-1),m(" Live GitHub info",-1)])],8,rD),t[70]||(t[70]=n("div",{class:"dropdown-divider"},null,-1)),P(n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.updateRepository(o),["prevent"])},[...t[65]||(t[65]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),m(" Force update",-1)])],8,aD),[[Q,o?.status=="ready"||o?.status=="error"]]),P(n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.updateRepository(o),["prevent"])},[...t[66]||(t[66]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),m(" Enable",-1)])],8,lD),[[Q,o?.status=="removed"]]),P(n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.showStatusMessage(o),["prevent"])},[...t[67]||(t[67]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1),m(" View status message",-1)])],8,dD),[[Q,o?.statusMessage]]),t[71]||(t[71]=n("div",{class:"dropdown-divider"},null,-1)),n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.removeCache(o),["prevent"])},[...t[68]||(t[68]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),m(" Remove cache",-1)])],8,uD),P(n("a",{class:"dropdown-item text-danger",href:"#",onClick:de(u=>e.removeRepository(o),["prevent"])},[...t[69]||(t[69]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),m(" Remove",-1)])],8,cD),[[Q,o?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(a(),l("div",pD,[t[73]||(t[73]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),t[74]||(t[74]=n("span",null,"No repositories match the current filters.",-1)),e.query.ready&&e.query.expired&&e.query.removed&&e.query.error&&e.query.preparing?f("v-if",!0):(a(),l("button",{key:0,type:"button",class:"btn btn-sm btn-outline-ink",onClick:t[18]||(t[18]=o=>e.showAllStatuses())},"Show all statuses"))])):f("v-if",!0)]),n("div",fD,[t[79]||(t[79]=n("span",{"aria-hidden":"true"},null,-1)),e.totalPage>1?(a(),l("div",mD,[n("button",{class:"btn btn-sm",onClick:t[19]||(t[19]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[75]||(t[75]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1),m(" Previous ",-1)])],8,hD),P(n("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},"aria-label":"Page",max:e.totalPage},null,8,gD),[[s,{state:e.viewState,set:o=>{e.query.page=o},value:e.query?.page,form:null,options:{}}]]),n("span",null,"of "+d(e.totalPage),1),n("button",{class:"btn btn-sm",onClick:t[20]||(t[20]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[76]||(t[76]=[m(" Next ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,vD)])):f("v-if",!0),n("span",yD,[t[78]||(t[78]=n("label",null,"Per page",-1)),P((a(),l("select",bD,[...t[77]||(t[77]=[Ce('',5)])])),[[s,{state:e.viewState,set:o=>{e.query.limit=o},value:e.query?.limit,form:null,options:{}}]])])])])}var wD={class:"container paper-page admin-page"},kD={class:"paper-crumbs"},CD={class:"here"},SD={class:"paper-page-title"},ED={key:0,class:"user-detail-card"},ND={class:"user-header"},RD=["src"],TD={class:"user-header-status"},PD={class:"status-dot-wrap"},DD=["textContent"],AD={key:0,class:"type-badge type-repo"},ID={class:"user-actions",style:{"margin-top":"4px"}},OD={class:"user-detail-grid"},MD={class:"detail-value mono-id"},VD={class:"detail-value"},qD=["href"],LD={class:"detail-value"},_D={class:"detail-value"},$D={key:0},FD={key:1,class:"text-muted"},UD={class:"detail-value"},BD={key:0,style:{"margin-top":"20px"}},zD={class:"paper-table w-100",style:{"margin-top":"10px"}},HD={class:"paper-table-row",style:{"grid-template-columns":"1fr 160px"}},jD={class:"cell-anon",role:"cell"},GD={class:"anon-text"},WD=["textContent"],KD={class:"cell-expires",role:"cell"},YD={key:1,class:"admin-section-header"},JD={class:"section-count"},XD={key:2,class:"user-detail-card"},QD={type:"text",class:"form-control",placeholder:"Token name (e.g. dev-laptop)",required:""},ZD={key:0,class:"alert alert-warning",role:"alert"},xD={style:{"white-space":"pre-wrap","word-break":"break-all",margin:"8px 0 0","font-family":"var(--font-mono)","font-size":"0.85rem"}},eA={key:1,class:"paper-table w-100"},tA={class:"paper-table-row",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},nA=["textContent"],oA=["textContent"],sA={role:"cell"},iA={key:0},rA={key:1,class:"text-muted"},aA={role:"cell"},lA=["onClick"],dA={key:2,class:"paper-table-empty"},uA={class:"admin-section-header"},cA={class:"section-count"},pA={class:"seg-bar"},fA={class:"seg-filter",role:"radiogroup","aria-label":"Filter by status"},mA=["aria-checked"],hA={class:"count"},gA=["aria-checked"],vA={class:"count"},yA=["aria-checked"],bA={class:"count"},wA=["aria-checked"],kA={class:"count"},CA=["aria-checked"],SA={class:"count"},EA=["aria-checked"],NA={class:"count"},RA={class:"seg-countline",role:"status"},TA={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},PA={class:"admin-filter-row"},DA={class:"search-wrap"},AA={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repositories or errors\u2026",autocomplete:"off"},IA={key:3,class:"bulk-bar"},OA={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},MA={class:"paper-table-head",role:"row"},VA={role:"columnheader",style:{width:"28px"}},qA=["checked"],LA={role:"columnheader"},_A={role:"columnheader"},$A={role:"columnheader",class:"num"},FA={role:"columnheader"},UA={role:"cell",style:{width:"28px"}},BA={type:"checkbox","aria-label":"Select repository"},zA={class:"cell-anon",role:"cell"},HA={class:"anon-text"},jA=["textContent","href"],GA=["title"],WA=["href"],KA=["textContent"],YA=["textContent"],JA=["data-meta-label"],XA=["title","textContent","href"],QA=["data-meta-label"],ZA=["textContent","href"],xA=["data-meta-label"],e3={key:3,class:"meta-item"},t3={class:"meta-item"},n3={class:"cell-status",role:"cell"},o3={class:"status-line"},s3=["textContent"],i3=["textContent","title"],r3=["data-unit","textContent"],a3=["textContent"],l3={class:"cell-actions",role:"cell"},d3={class:"dropdown"},u3={class:"dropdown-menu dropdown-menu-right"},c3=["href"],p3=["href"],f3=["href"],m3=["onClick"],h3=["onClick"],g3=["onClick"],v3=["onClick"],y3=["onClick"],b3=["onClick"],w3={key:0,class:"paper-table-empty"};function gp(e,t){let s=Pe("field"),i=Pe("form");return a(),l("div",wD,[n("div",kD,[t[23]||(t[23]=n("a",{href:"/admin/"},"Admin",-1)),t[24]||(t[24]=m(" \xA0/\xA0 ",-1)),t[25]||(t[25]=n("a",{href:"/admin/users"},"Users",-1)),t[26]||(t[26]=m(" \xA0/\xA0 ",-1)),n("span",CD,d(e.userInfo?.username||"Profile"),1)]),n("h1",SD,d(e.userInfo?.username||"User"),1),t[93]||(t[93]=Ce('',1)),e.userInfo?(a(),l("div",ED,[n("div",ND,[e.userInfo?.photo?(a(),l("img",{key:0,width:"56",height:"56",src:e.safeUrl(e.userInfo?.photo)},null,8,RD)):f("v-if",!0),n("div",null,[n("div",TD,[n("span",PD,[n("span",{class:R(["status-dot","st-"+(e.userInfo?.status||"unknown")])},null,2),n("span",{textContent:d(e.fmt?.title(e.userInfo?.status))},null,8,DD)]),e.userInfo?.isAdmin?(a(),l("span",AD,"Admin")):f("v-if",!0)]),n("div",ID,[e.userInfo?.status!=="banned"&&e.userInfo?.username!==e.user?.username?(a(),l("button",{key:0,class:"btn btn-sm btn-outline-danger",onClick:t[0]||(t[0]=o=>e.banUser())},[...t[27]||(t[27]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-ban"})],-1),m(" Ban",-1)])])):f("v-if",!0),e.userInfo?.status==="banned"||e.userInfo?.status==="removed"?(a(),l("button",{key:1,class:"btn btn-sm",onClick:t[1]||(t[1]=o=>e.activateUser())},[...t[28]||(t[28]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),m(" Activate",-1)])])):f("v-if",!0),e.userInfo?.isAdmin?f("v-if",!0):(a(),l("button",{key:2,class:"btn btn-sm",onClick:t[2]||(t[2]=o=>e.promoteUser())},[...t[29]||(t[29]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user-shield"})],-1),m(" Promote to admin",-1)])])),e.userInfo?.isAdmin&&e.userInfo?.username!==e.user?.username?(a(),l("button",{key:3,class:"btn btn-sm btn-outline-ink",onClick:t[3]||(t[3]=o=>e.demoteUser())},[...t[30]||(t[30]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user-minus"})],-1),m(" Remove admin",-1)])])):f("v-if",!0)])])]),n("div",OD,[t[33]||(t[33]=n("div",{class:"detail-label"},"ID",-1)),n("div",MD,d(e.userInfo?._id),1),t[34]||(t[34]=n("div",{class:"detail-label"},"Email",-1)),n("div",{class:R(["detail-value",{"is-empty":!e.userInfo?.emails?.[0]?.email}])},d(e.userInfo?.emails?.[0]?.email||"Not shared"),3),t[35]||(t[35]=n("div",{class:"detail-label"},"Access token",-1)),n("div",{class:R(["detail-value",{"is-empty":!e.userInfo?.accessTokens?.github}]),style:{"font-family":"var(--font-mono)","font-size":"0.85rem"}},d(e.userInfo?.accessTokens?.github||"Not stored"),3),t[36]||(t[36]=n("div",{class:"detail-label"},"GitHub",-1)),n("div",VD,[n("a",{target:"_blank",href:e.safeUrl("https://github.com/"+e.userInfo?.username)},[t[31]||(t[31]=n("i",{class:"fab fa-github"},null,-1)),m(" "+d(e.userInfo?.username),1)],8,qD)]),t[37]||(t[37]=n("div",{class:"detail-label"},"Created",-1)),n("div",LD,d(e.fmt?.humanTime(e.userInfo?.dateOfEntry)),1),t[38]||(t[38]=n("div",{class:"detail-label"},"Last connection",-1)),n("div",_D,[e.userInfo?.accessTokenDates?.github?(a(),l("span",$D,d(e.fmt?.humanTime(e.userInfo?.accessTokenDates?.github)),1)):f("v-if",!0),e.userInfo?.accessTokenDates?.github?f("v-if",!0):(a(),l("span",FD,"Not recorded (GitHub App sign-in)"))]),t[39]||(t[39]=n("div",{class:"detail-label"},"GitHub repos",-1)),n("div",UD,[m(d(e.userInfo?.repositories?.length?e.userInfo.repositories.length+" repositories":"Not synced")+" ",1),e.userInfo?.repositories?.length?(a(),l("button",{key:0,class:"btn btn-sm ml-2",onClick:t[4]||(t[4]=o=>e.showRepos=!e.showRepos)},d(e.showRepos?"Hide repos":"Show repos"),1)):f("v-if",!0),n("button",{class:"btn btn-sm ml-1",onClick:t[5]||(t[5]=o=>e.getGitHubRepositories())},[...t[32]||(t[32]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),m(" Refresh ",-1)])])])]),e.showRepos?(a(),l("div",BD,[t[42]||(t[42]=n("div",{class:"paper-section-eyebrow"},"GitHub repositories",-1)),n("div",zD,[(a(!0),l(V,null,X(e.userInfo?.repositories,(o,r)=>(a(),l("div",HD,[n("div",jD,[t[40]||(t[40]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[n("use",{href:"#project-type-repo"})],-1)),n("div",GD,[n("span",{class:"repo-name",textContent:d(o?.name)},null,8,WD)])]),n("div",KD,[t[41]||(t[41]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-database"})],-1)),m(" "+d(e.fmt?.humanFileSize(o?.size)),1)])]))),256))])])):f("v-if",!0)])):f("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(a(),l("div",YD,[t[43]||(t[43]=n("h2",null,[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-key"})]),m(" API tokens")],-1)),n("span",JD,d(e.tokens?.length),1)])):f("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(a(),l("div",XD,[t[49]||(t[49]=n("p",{class:"paper-page-lede"},[m("Personal API tokens for this admin account. Send as "),n("code",null,"Authorization: Bearer "),m(" to authenticate without GitHub OAuth (useful for development).")],-1)),P((a(),l("form",{class:"d-flex",style:{gap:"8px","margin-bottom":"12px"},onSubmit:t[6]||(t[6]=de(o=>e.submitForm(o,()=>{e.createToken()}),["prevent"]))},[P(n("input",QD,null,512),[[s,{state:e.viewState,set:o=>{e.tokenForm.name=o},value:e.tokenForm?.name,form:null,options:{}}]]),t[44]||(t[44]=n("button",{type:"submit",class:"btn btn-ink"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-plus"})]),m(" Generate")],-1))],32)),[[i,e.viewState]]),e.tokenForm?.plaintext?(a(),l("div",ZD,[t[45]||(t[45]=n("strong",null,"Copy this token now \u2014 it will not be shown again:",-1)),n("pre",xD,d(e.tokenForm?.plaintext),1),n("button",{class:"btn btn-sm",onClick:t[7]||(t[7]=o=>e.tokenForm.plaintext=null)},"Dismiss")])):f("v-if",!0),e.tokens?.length?(a(),l("div",eA,[t[47]||(t[47]=n("div",{class:"paper-table-head",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},[n("div",{role:"columnheader"},"Name"),n("div",{role:"columnheader"},"Created"),n("div",{role:"columnheader"},"Last used"),n("div",{role:"columnheader","aria-label":"Actions"})],-1)),(a(!0),l(V,null,X(e.tokens,(o,r)=>(a(),l("div",tA,[n("div",{role:"cell",textContent:d(o?.name)},null,8,nA),n("div",{role:"cell",textContent:d(e.fmt?.humanTime(o?.createdAt))},null,8,oA),n("div",sA,[o?.lastUsedAt?(a(),l("span",iA,d(e.fmt?.humanTime(o?.lastUsedAt)),1)):f("v-if",!0),o?.lastUsedAt?f("v-if",!0):(a(),l("span",rA,"never"))]),n("div",aA,[n("button",{class:"btn btn-sm text-danger btn-icon",title:"Revoke","aria-label":"Revoke token",onClick:u=>e.revokeToken(o)},[...t[46]||(t[46]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1)])],8,lA)])]))),256))])):f("v-if",!0),e.tokens?.length?f("v-if",!0):(a(),l("div",dA,[...t[48]||(t[48]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1),n("span",null,"No tokens yet.",-1)])]))])):f("v-if",!0),n("div",uA,[t[50]||(t[50]=n("h2",null,[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})]),m(" Anonymized repositories")],-1)),n("span",cA,d(e.repositories?.length),1)]),n("div",pA,[n("div",fA,[n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="all"}]),"aria-checked":e.segView()==="all",onClick:t[8]||(t[8]=o=>e.setSegView("all"))},[t[51]||(t[51]=m("All ",-1)),n("span",hA,d(e.fmt?.number(e.segCount("all"))),1)],10,mA),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="ready","is-empty":!e.segCount("ready")}]),"aria-checked":e.segView()==="ready",onClick:t[9]||(t[9]=o=>e.setSegView("ready"))},[t[52]||(t[52]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[53]||(t[53]=m("Ready ",-1)),n("span",vA,d(e.fmt?.number(e.segCount("ready"))),1)],10,gA),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="preparing","is-empty":!e.segCount("preparing")}]),"aria-checked":e.segView()==="preparing",onClick:t[10]||(t[10]=o=>e.setSegView("preparing"))},[t[54]||(t[54]=n("span",{class:"seg-dot warn","aria-hidden":"true"},null,-1)),t[55]||(t[55]=m("Preparing ",-1)),n("span",bA,d(e.fmt?.number(e.segCount("preparing"))),1)],10,yA),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="error","is-empty":!e.segCount("error")}]),"aria-checked":e.segView()==="error",onClick:t[11]||(t[11]=o=>e.setSegView("error"))},[t[56]||(t[56]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[57]||(t[57]=m("Error ",-1)),n("span",kA,d(e.fmt?.number(e.segCount("error"))),1)],10,wA),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="expired","is-empty":!e.segCount("expired")}]),"aria-checked":e.segView()==="expired",onClick:t[12]||(t[12]=o=>e.setSegView("expired"))},[t[58]||(t[58]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[59]||(t[59]=m("Expiring / expired ",-1)),n("span",SA,d(e.fmt?.number(e.segCount("expired"))),1)],10,CA),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="removed","is-empty":!e.segCount("removed")}]),"aria-checked":e.segView()==="removed",onClick:t[13]||(t[13]=o=>e.setSegView("removed"))},[t[60]||(t[60]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[61]||(t[61]=m("Removing / removed ",-1)),n("span",NA,d(e.fmt?.number(e.segCount("removed"))),1)],10,EA)]),n("p",RA,[n("strong",null,d(e.fmt.number(e.filteredRepositories?.length||0)),1),t[62]||(t[62]=m(" shown",-1))])]),P((a(),l("form",TA,[n("div",PA,[n("div",DA,[P(n("input",AA,null,512),[[s,{state:e.viewState,set:o=>{e.search=o},value:e.search,form:null,options:{}}]])]),t[64]||(t[64]=n("span",{class:"admin-filter-spacer"},null,-1)),n("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[14]||(t[14]=o=>e.exportCsv())},[...t[63]||(t[63]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),m(" Export",-1)])])])])),[[i,e.viewState]]),e.selectedCount()>0?(a(),l("div",IA,[n("span",null,[n("strong",null,d(e.selectedCount()),1),t[65]||(t[65]=m(" selected",-1))]),n("button",{class:"btn btn-sm",type:"button",onClick:t[15]||(t[15]=o=>e.bulkRefresh())},[...t[66]||(t[66]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),m(" Force refresh",-1)])]),n("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[16]||(t[16]=o=>e.bulkRemoveCache())},[...t[67]||(t[67]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),m(" Remove cache",-1)])]),n("button",{class:"btn btn-sm",type:"button",onClick:t[17]||(t[17]=o=>e.clearSelection())},"Clear")])):f("v-if",!0),n("div",OA,[n("div",MA,[n("div",VA,[n("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[18]||(t[18]=o=>e.selectAllOnPage()),checked:e.allSelected},null,8,qA)]),n("div",LA,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[19]||(t[19]=o=>e.sortBy("source.repositoryName"))},[t[69]||(t[69]=m("Repository ",-1)),e.sortIcon("source.repositoryName")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("source.repositoryName")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[68]||(t[68]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",_A,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="status"}]),onClick:t[20]||(t[20]=o=>e.sortBy("status"))},[t[71]||(t[71]=m("Status ",-1)),e.sortIcon("status")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[70]||(t[70]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",$A,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[21]||(t[21]=o=>e.sortBy("pageView"))},[t[73]||(t[73]=m("Views ",-1)),e.sortIcon("pageView")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("pageView")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[72]||(t[72]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",FA,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[22]||(t[22]=o=>e.sortBy("anonymizeDate"))},[t[75]||(t[75]=m("Anonymized ",-1)),e.sortIcon("anonymizeDate")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("anonymizeDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[74]||(t[74]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[76]||(t[76]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(a(!0),l(V,null,X(e.filteredRepositories,(o,r)=>(a(),l("div",{class:R(["paper-table-row",{"repo-inactive":o?.status=="expired"||o?.status=="removed","repo-error":o?.status=="error","row-selected":e.selected[o?.repoId]}]),role:"row"},[n("div",UA,[P(n("input",BA,null,512),[[s,{state:e.viewState,set:u=>{e.selected[o.repoId]=u},value:e.selected[o?.repoId],form:null,options:{}}]])]),n("div",zA,[t[79]||(t[79]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[n("use",{href:"#project-type-repo"})],-1)),n("div",HA,[n("a",{class:"repo-name",target:"_blank",textContent:d(o?.repoId),href:e.safeUrl("/r/"+o?.repoId)},null,8,jA),n("div",{class:"anon-sub anon-meta","data-meta-fit":"",title:[o?.source?.fullName||o?.source?.repositoryName,o?.options?.update?"branch "+o?.source?.branch:"commit "+o?.source?.commit?.substring(0,7),o?.conference?"conference "+o?.conference:"",o?.size?.storage>0?e.fmt?.humanFileSize(o?.size?.storage):"",e.fmt?.number(o?.options?.terms?.length)+(o?.options?.terms?.length===1?" term":" terms")].filter(Boolean).join(" \xB7 ")},[n("a",{class:"src-path",href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/")},[(o?.source?.fullName||"").includes("/")?(a(),l("span",{key:0,class:"src-owner",textContent:d((u=>u.length>16?u.slice(0,14)+"\u2026":u)((o?.source?.fullName||"").split("/")[0]))},null,8,KA)):f("v-if",!0),n("span",{class:"src-repo",textContent:d((o?.source?.fullName||"").includes("/")?"/"+(o?.source?.fullName||"").split("/").slice(1).join("/"):o?.source?.fullName)},null,8,YA)],8,WA),o?.options?.update?f("v-if",!0):(a(),l("span",{key:0,class:"meta-item","data-meta-label":"commit "+(o?.source?.commit||"").substring(0,7)},[n("a",{class:"mono-hash",title:o?.source?.commit,textContent:d(o?.source?.commit?.substring(0,7)),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.commit)},null,8,XA)],8,JA)),o?.options?.update?(a(),l("span",{key:1,class:"meta-item","data-meta-label":"branch "+(o?.source?.branch||"")},[n("a",{textContent:d(o?.source?.branch),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.branch)},null,8,ZA)],8,QA)):f("v-if",!0),o?.conference?(a(),l("span",{key:2,class:"meta-item meta-conf","data-meta-label":"conference "+o?.conference},[t[77]||(t[77]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),m(" "+d(o?.conference),1)],8,xA)):f("v-if",!0),o?.size?.storage>0?(a(),l("span",e3,d(e.fmt?.humanFileSize(o?.size?.storage)),1)):f("v-if",!0),n("span",t3,d(e.fmt?.number(o?.options?.terms?.length))+" "+d(o?.options?.terms?.length===1?"term":"terms"),1),t[78]||(t[78]=n("span",{class:"meta-more",hidden:""},null,-1))],8,GA)])]),n("div",n3,[n("span",o3,[n("span",{class:R(["status-dot","st-"+(o?.status||"unknown")])},null,2),n("span",{textContent:d(e.fmt?.statusLabel(o?.status))},null,8,s3)]),o?.statusMessage?(a(),l("span",{key:0,class:"status-sub",textContent:d(e.fmt?.statusMsg(o?.statusMessage)),title:o?.statusMessage},null,8,i3)):f("v-if",!0)]),n("div",{class:"cell-views num",role:"cell","data-unit":(o?.pageView||0)===1?"view":"views",textContent:d(e.fmt?.number(o?.pageView||0))},null,8,r3),n("div",{class:"cell-expires",role:"cell",textContent:d(e.fmt?.humanTime(o?.anonymizeDate))},null,8,a3),n("div",l3,[n("div",d3,[t[91]||(t[91]=n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})])],-1)),n("div",u3,[n("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+o?.repoId)},[...t[80]||(t[80]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),m(" Edit",-1)])],8,c3),n("a",{class:"dropdown-item",href:e.safeUrl("/r/"+o?.repoId+"/")},[...t[81]||(t[81]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),m(" View repo",-1)])],8,p3),o?.options?.page&&o?.status=="ready"?(a(),l("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+o?.repoId+"/")},[...t[82]||(t[82]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),m(" View page",-1)])],8,f3)):f("v-if",!0),n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.fetchGithubInfo(o),["prevent"])},[...t[83]||(t[83]=[n("i",{class:"fab fa-github"},null,-1),m(" Live GitHub info",-1)])],8,m3),t[89]||(t[89]=n("div",{class:"dropdown-divider"},null,-1)),P(n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.updateRepository(o),["prevent"])},[...t[84]||(t[84]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),m(" Force update",-1)])],8,h3),[[Q,o?.status=="ready"||o?.status=="error"]]),P(n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.updateRepository(o),["prevent"])},[...t[85]||(t[85]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),m(" Enable",-1)])],8,g3),[[Q,o?.status=="removed"]]),P(n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.showStatusMessage(o),["prevent"])},[...t[86]||(t[86]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1),m(" View status message",-1)])],8,v3),[[Q,o?.statusMessage]]),t[90]||(t[90]=n("div",{class:"dropdown-divider"},null,-1)),n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.removeCache(o),["prevent"])},[...t[87]||(t[87]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),m(" Remove cache",-1)])],8,y3),P(n("a",{class:"dropdown-item text-danger",href:"#",onClick:de(u=>e.removeRepository(o),["prevent"])},[...t[88]||(t[88]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),m(" Remove",-1)])],8,b3),[[Q,o?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(a(),l("div",w3,[...t[92]||(t[92]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1),n("span",null,"No repositories match the current filters.",-1)])])):f("v-if",!0)])])}var k3={class:"container paper-page admin-page"},C3={class:"seg-bar"},S3={class:"seg-filter",role:"radiogroup","aria-label":"Filter by status"},E3=["aria-checked"],N3={class:"count"},R3=["aria-checked"],T3={class:"count"},P3=["aria-checked"],D3={class:"count"},A3=["aria-checked"],I3={class:"count"},O3={class:"seg-countline",role:"status"},M3={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},V3={class:"w-100 admin-filter-toolbar","aria-label":"Users","accept-charset":"UTF-8"},q3={class:"admin-filter-row"},L3={class:"search-wrap"},_3={type:"search",class:"form-control","aria-label":"Search users",placeholder:"Search username or email\u2026",autocomplete:"off"},$3={key:0,class:"admin-search-hint"},F3={class:"admin-filter-inline"},U3={class:"form-control form-control-sm"},B3={key:0,class:"admin-filter-inline","aria-label":"Pagination"},z3=["disabled"],H3={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},j3=["disabled"],G3={key:0,class:"admin-filter-row"},W3={class:"admin-active-chips"},K3={class:"key"},Y3=["onClick"],J3={key:1,class:"bulk-bar"},X3={class:"paper-table w-100",role:"table","aria-label":"Users",style:{"--cols":"28px minmax(280px, 2.4fr) 100px 140px 140px 52px"}},Q3={class:"paper-table-head admin-users-row",role:"row"},Z3={role:"columnheader",style:{width:"28px"}},x3=["checked"],eI={role:"columnheader"},tI={role:"columnheader"},nI={role:"cell",style:{width:"28px"}},oI={type:"checkbox","aria-label":"Select user"},sI={class:"cell-anon",role:"cell"},iI=["src"],rI={key:1,class:"avatar-fallback","aria-hidden":"true"},aI={class:"anon-text"},lI={class:"user-name-line"},dI=["textContent","href"],uI=["href","title","aria-label"],cI={class:"anon-sub meta-dots"},pI=["title"],fI={key:1},mI={class:"cell-views num",role:"cell"},hI=["title","textContent","href"],gI={class:"cell-status",role:"cell"},vI=["textContent"],yI={class:"cell-status",role:"cell"},bI={key:0,class:"role-pill"},wI={key:1,class:"empty-dash"},kI={class:"cell-actions",role:"cell"},CI={class:"dropdown"},SI={class:"dropdown-menu dropdown-menu-right"},EI=["href"],NI=["href"],RI=["onClick"],TI=["onClick"],PI={key:0,class:"paper-table-empty"},DI={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},AI={key:0,class:"pagination-compact"},II=["disabled"],OI=["max"],MI=["disabled"],VI={class:"admin-filter-inline"},qI={class:"form-control form-control-sm"};function vp(e,t){let s=Pe("field"),i=Pe("form");return a(),l("div",k3,[t[53]||(t[53]=Ce('
Admin \xA0/\xA0 Users

Users

',3)),n("div",C3,[n("div",S3,[n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:!e.query?.status}]),"aria-checked":!e.query?.status,onClick:t[0]||(t[0]=o=>{e.query.status="",e.query.page=1})},[t[14]||(t[14]=m("All ",-1)),n("span",N3,d(e.fmt?.number(e.statusCountFor("active")+e.statusCountFor("banned")+e.statusCountFor("removed"))),1)],10,E3),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.query?.status==="active","is-empty":!e.statusCountFor("active")}]),"aria-checked":e.query?.status==="active",onClick:t[1]||(t[1]=o=>{e.query.status="active",e.query.page=1})},[t[15]||(t[15]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[16]||(t[16]=m("Active ",-1)),n("span",T3,d(e.fmt?.number(e.statusCountFor("active"))),1)],10,R3),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.query?.status==="banned","is-empty":!e.statusCountFor("banned")}]),"aria-checked":e.query?.status==="banned",onClick:t[2]||(t[2]=o=>{e.query.status="banned",e.query.page=1})},[t[17]||(t[17]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[18]||(t[18]=m("Banned ",-1)),n("span",D3,d(e.fmt?.number(e.statusCountFor("banned"))),1)],10,P3),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.query?.status==="removed","is-empty":!e.statusCountFor("removed")}]),"aria-checked":e.query?.status==="removed",onClick:t[3]||(t[3]=o=>{e.query.status="removed",e.query.page=1})},[t[19]||(t[19]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[20]||(t[20]=m("Removed ",-1)),n("span",I3,d(e.fmt?.number(e.statusCountFor("removed"))),1)],10,A3)]),n("p",O3,[n("strong",null,d(e.total>=0?e.fmt.number(e.total):"\u2026"),1),t[21]||(t[21]=m(" shown",-1))])]),e.fetchError?(a(),l("div",M3,[t[22]||(t[22]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),m(" "+d(e.fetchError),1)])):f("v-if",!0),P((a(),l("form",V3,[n("div",q3,[n("div",L3,[P(n("input",_3,null,512),[[s,{state:e.viewState,set:o=>{e.query.search=o},value:e.query?.search,form:null,options:{}}]]),e.query?.search?f("v-if",!0):(a(),l("span",$3,"/"))]),n("span",F3,[t[24]||(t[24]=n("label",null,"Role",-1)),P((a(),l("select",U3,[...t[23]||(t[23]=[n("option",{value:""},"Any",-1),n("option",{value:"admin"},"Admin",-1)])])),[[s,{state:e.viewState,set:o=>{e.query.role=o},value:e.query?.role,form:null,options:{}}]])]),t[28]||(t[28]=n("span",{class:"admin-filter-spacer"},null,-1)),n("button",{class:"btn btn-sm",type:"button",onClick:t[4]||(t[4]=o=>e.exportCsv())},[...t[25]||(t[25]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),m(" Export",-1)])]),e.totalPage>1?(a(),l("span",B3,[n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[5]||(t[5]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[26]||(t[26]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,z3),n("span",H3,d(e.query?.page)+"/"+d(e.totalPage||1),1),n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[6]||(t[6]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[27]||(t[27]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,j3)])):f("v-if",!0)]),e.chips?.length?(a(),l("div",G3,[n("div",W3,[(a(!0),l(V,null,X(e.chips,(o,r)=>(a(),l("span",{class:"admin-active-chip",key:o?.key},[n("span",K3,d(o?.label),1),n("span",null,d(o?.value),1),n("button",{type:"button",onClick:u=>e.clearFilter(o.key),"aria-label":"Clear filter"},[...t[29]||(t[29]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,Y3)]))),128))])])):f("v-if",!0)])),[[i,e.viewState]]),e.selectedCount()>0?(a(),l("div",J3,[n("span",null,[n("strong",null,d(e.selectedCount()),1),t[30]||(t[30]=m(" selected",-1))]),n("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[7]||(t[7]=o=>e.bulkBan())},[...t[31]||(t[31]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-ban"})],-1),m(" Ban",-1)])]),n("button",{class:"btn btn-sm",type:"button",onClick:t[8]||(t[8]=o=>{e.selected={},e.allSelected=!1})},"Clear")])):f("v-if",!0),n("div",X3,[n("div",Q3,[n("div",Z3,[n("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[9]||(t[9]=o=>e.selectAllOnPage()),checked:e.allSelected},null,8,x3)]),n("div",eI,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="username"}]),onClick:t[10]||(t[10]=o=>e.sortBy("username"))},[t[33]||(t[33]=m("User ",-1)),e.sortIcon("username")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("username")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[32]||(t[32]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[36]||(t[36]=n("div",{role:"columnheader",class:"num",title:"Repositories discovered on the user's GitHub account"},"GitHub repos",-1)),n("div",tI,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="status"}]),onClick:t[11]||(t[11]=o=>e.sortBy("status"))},[t[35]||(t[35]=m("Status ",-1)),e.sortIcon("status")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[34]||(t[34]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[37]||(t[37]=n("div",{role:"columnheader"},"Role",-1)),t[38]||(t[38]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(a(!0),l(V,null,X(e.filteredUsers,(o,r)=>(a(),l("div",{class:R(["paper-table-row admin-users-row",{"row-selected":e.selected[o?.username]}]),role:"row"},[n("div",nI,[P(n("input",oI,null,512),[[s,{state:e.viewState,set:u=>{e.selected[o.username]=u},value:e.selected[o?.username],form:null,options:{}}]])]),n("div",sI,[o?.photo?(a(),l("img",{key:0,width:"28",height:"28",class:"rounded-circle",style:{"flex-shrink":"0"},src:e.safeUrl(o?.photo)},null,8,iI)):(a(),l("span",rI,d((o?.username||"?").charAt(0).toUpperCase()),1)),n("div",aI,[n("span",lI,[n("a",{class:"repo-name",textContent:d(o?.username),href:e.safeUrl("/admin/users/"+o?.username)},null,8,dI),n("a",{class:"user-gh-link",target:"_blank",rel:"noopener",href:e.safeUrl("https://github.com/"+o?.username),title:o?.username+" on GitHub","aria-label":o?.username+" on GitHub"},[...t[39]||(t[39]=[n("i",{class:"fab fa-github","aria-hidden":"true"},null,-1)])],8,uI)]),n("div",cI,[o?.emails?.[0]?.email?(a(),l("span",{key:0,class:"meta-email meta-tail",title:o?.emails?.[0]?.email},d(o?.emails?.[0]?.email),9,pI)):f("v-if",!0),o?.dateOfEntry?(a(),l("span",fI,"Joined "+d(e.fmt?.humanTime(o?.dateOfEntry)),1)):f("v-if",!0)])])]),n("div",mI,[t[40]||(t[40]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1)),n("a",{title:o?.repoCount?"Show this user\u2019s repositories":"Repositories not synced yet",textContent:d(o?.repoCount?e.fmt?.number(o.repoCount):"Not synced"),class:R({"is-unsynced":!o?.repoCount}),href:e.safeUrl("/admin/repositories?owner="+o?.username)},null,10,hI)]),n("div",gI,[n("span",{class:R(["status-dot","st-"+(o?.status||"unknown")])},null,2),n("span",{textContent:d(e.fmt?.title(o?.status))},null,8,vI)]),n("div",yI,[o?.isAdmin?(a(),l("span",bI,"Admin")):f("v-if",!0),o?.isAdmin?f("v-if",!0):(a(),l("span",wI,"\u2014"))]),n("div",kI,[n("div",CI,[t[46]||(t[46]=n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})])],-1)),n("div",SI,[n("a",{class:"dropdown-item",href:e.safeUrl("/admin/users/"+o?.username)},[...t[41]||(t[41]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),m(" View details",-1)])],8,EI),n("a",{class:"dropdown-item",href:e.safeUrl("/admin/repositories?owner="+o?.username)},[...t[42]||(t[42]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1),m(" View repositories",-1)])],8,NI),t[45]||(t[45]=n("div",{class:"dropdown-divider"},null,-1)),P(n("a",{class:"dropdown-item text-danger",href:"#",onClick:de(u=>e.banUser(o),["prevent"])},[...t[43]||(t[43]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-ban"})],-1),m(" Ban",-1)])],8,RI),[[Q,o?.status=="active"]]),P(n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.activateUser(o),["prevent"])},[...t[44]||(t[44]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),m(" Activate",-1)])],8,TI),[[Q,o?.status=="removed"||o?.status=="banned"]])])])])],2))),256)),e.filteredUsers?.length==0?(a(),l("div",PI,[...t[47]||(t[47]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1),n("span",null,"No users match the current filters.",-1)])])):f("v-if",!0)]),n("div",DI,[t[52]||(t[52]=n("span",{"aria-hidden":"true"},null,-1)),e.totalPage>1?(a(),l("div",AI,[n("button",{class:"btn btn-sm",onClick:t[12]||(t[12]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[48]||(t[48]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1),m(" Previous",-1)])],8,II),P(n("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,OI),[[s,{state:e.viewState,set:o=>{e.query.page=o},value:e.query?.page,form:null,options:{}}]]),n("span",null,"of "+d(e.totalPage),1),n("button",{class:"btn btn-sm",onClick:t[13]||(t[13]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[49]||(t[49]=[m("Next ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,MI)])):f("v-if",!0),n("span",VI,[t[51]||(t[51]=n("label",null,"Per page",-1)),P((a(),l("select",qI,[...t[50]||(t[50]=[n("option",{value:"10"},"10",-1),n("option",{value:"25"},"25",-1),n("option",{value:"50"},"50",-1),n("option",{value:"100"},"100",-1)])])),[[s,{state:e.viewState,set:o=>{e.query.limit=o},value:e.query?.limit,form:null,options:{}}]])])])])}var LI={class:"anonymize-landing"},_I={class:"anonymize-landing-inner"},$I={class:"form-group mt-4 mb-2"},FI={class:"source-url-label-row"},UI={key:0,class:"repo-access","aria-label":"GitHub access"},BI={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},zI=["aria-pressed","disabled"],HI=["aria-pressed","disabled"],jI={key:1,class:"connection-badge"},GI={class:"landing-url-row"},WI={id:"sourceUrl-landing",onblur:"this.scrollLeft=0",type:"text",class:"form-control form-control-lg",placeholder:"https://github.com/owner/repository"},KI=["aria-disabled"],YI={key:0,class:"text-danger",role:"alert"},JI={class:"repo-picker","aria-labelledby":"repo-picker-title"},XI={class:"repo-picker-head"},QI={class:"repo-picker-title"},ZI={key:0,class:"repo-picker-count",role:"status"},xI=["title"],eO={class:"repo-picker-tools"},tO=["aria-busy","title"],nO={key:0,class:"repo-picker-list","aria-busy":"true","aria-label":"Loading your repositories"},oO={class:"repo-picker-row is-skeleton","aria-hidden":"true"},sO={key:1,class:"repo-picker-list"},iO=["title"],rO={class:"repo-picker-owner"},aO={class:"repo-picker-repo"},lO=["onClick","aria-label"],dO={key:2,class:"repo-picker-state",role:"status"},uO={key:3,class:"repo-picker-state"},cO={key:4,class:"repo-picker-state",role:"alert"},pO={key:5,class:"repo-picker-pagination","aria-label":"Repository pages"},fO=["disabled"],mO={class:"repo-picker-count",role:"status"},hO=["disabled"],gO={key:6,class:"repo-picker-access"},vO={key:1,class:"connection-link",href:"/connections"},yO={class:"anonymize-workspace"},bO={class:"anonymize-topbar"},wO={class:"anonymize-topbar-inner"},kO={class:"paper-crumbs"},CO={class:"here"},SO={class:"anonymize-topbar-head"},EO={class:"paper-page-title anonymize-topbar-title"},NO={key:0},RO={key:1},TO={class:"paper-page-lede anonymize-topbar-lede"},PO={key:0,class:"task-trail flow-trail","aria-label":"Anonymization steps"},DO={key:0,class:"alert alert-info",role:"status"},AO={key:1,class:"alert alert-info",role:"status"},IO={key:1},OO={class:"anonymize-mobile-tabs",role:"tablist","aria-label":"Anonymization workspace"},MO=["aria-selected","tabindex"],VO=["aria-selected","tabindex"],qO={class:"anonymize-split"},LO=["role","aria-labelledby"],_O={class:"form needs-validation paper-settings-main",name:"anonymize",novalidate:""},$O={class:"anonymize-fields"},FO={class:"paper-settings-section"},UO={class:"form-group"},BO={class:"source-url-label-row"},zO={key:0,class:"repo-access","aria-label":"GitHub access"},HO={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},jO=["aria-pressed","disabled"],GO=["aria-pressed","disabled"],WO={key:1,class:"connection-badge"},KO=["disabled"],YO={key:0,class:"source-summary"},JO={key:1,class:"source-error",role:"alert"},XO={class:"invalid-feedback"},QO={key:0,class:"source-error-note"},ZO={key:1,class:"repo-access-controls"},xO={key:1,class:"btn btn-ink",href:"/connections"},e5={key:2,class:"btn btn-ink",href:"/dashboard"},t5={key:0,class:"repo-access-details","aria-label":"Previous repository configuration"},n5={key:0,class:"form-group"},o5=["value"],s5={key:1},i5={class:"repo-access-controls"},r5=["href"],a5={key:1,class:"repo-access-details","aria-label":"Publication"},l5={class:"repo-access-note"},d5={key:2,class:"form-text text-muted source-public-note"},u5=["open"],c5={key:0,class:"repair-step"},p5=["disabled"],f5={key:0,role:"status"},m5={class:"repair-step"},h5={key:0,role:"status"},g5={key:4,class:"form-grid-2"},v5={class:"form-group"},y5={class:"input-group"},b5={class:"form-control",id:"branch",name:"branch"},w5=["textContent","value"],k5={class:"input-group-append"},C5={class:"form-group"},S5=["disabled"],E5={class:"invalid-feedback"},N5={class:"invalid-feedback"},R5={class:"form-check-input",type:"checkbox",id:"update",name:"update","aria-describedby":"update-help"},T5={class:"form-check-label",for:"update"},P5={key:0,class:"paid-tag"},D5={key:0,class:"form-text text-muted",id:"update-help"},A5={key:1,class:"form-text text-muted auto-update-paid",id:"update-help"},I5={class:"paper-settings-section"},O5={class:"form-group"},M5=["disabled"],V5={class:"form-text text-muted anon-url-echo"},q5={class:"anon-url-id"},L5={class:"invalid-feedback"},_5={class:"form-group"},$5=["disabled"],F5={class:"form-text text-muted anon-url-echo"},U5={class:"anon-url-id"},B5={class:"invalid-feedback"},z5={class:"form-group"},H5=["disabled"],j5={class:"form-text text-muted anon-url-echo"},G5={class:"anon-url-id"},W5={class:"invalid-feedback"},K5={class:"form-group"},Y5=["rows"],J5={class:"redaction-syntax"},X5={class:"form-text text-muted"},Q5=["onClick"],Z5={key:0,class:"term-hint-more"},x5={class:"invalid-feedback"},e8={class:"preserve-row"},t8={class:"preserve-row-text"},n8={class:"preserve-row-value"},o8=["disabled"],s8={class:"preserve-tree"},i8={key:0,class:"preserve-status"},r8={key:1,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},a8=["aria-expanded","aria-label","onClick"],l8={key:1,class:"preserve-caret-space"},d8=["id","aria-label","checked",".indeterminate","disabled","onChange"],u8=["for","onClick"],c8={key:2,class:"preserve-note"},p8={key:0,class:"preserve-status"},f8={key:0,class:"preserve-status"},m8=["open"],h8={class:"preserve-foot"},g8={class:"preserve-count","aria-live":"polite"},v8={class:"preserve-actions"},y8={class:"paper-settings-section"},b8={class:"form-check"},w8={class:"form-check-input",type:"checkbox",id:"link",name:"link"},k8={class:"form-check"},C8={class:"form-check-input",type:"checkbox",id:"image",name:"image"},S8={class:"form-check"},E8={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},N8={class:"form-check"},R8={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},T8={class:"form-check"},P8=["disabled"],D8={key:0,class:"form-text text-muted"},A8={key:1,class:"form-text text-muted"},I8={key:0,class:"form-text text-muted"},O8={class:"form-check"},M8={class:"form-check-input",type:"checkbox",id:"title-gist",name:"title-gist"},V8={class:"form-check"},q8={class:"form-check-input",type:"checkbox",id:"content-gist",name:"content-gist"},L8={class:"form-check"},_8={class:"form-check-input",type:"checkbox",id:"comments-gist",name:"comments-gist"},$8={class:"form-check"},F8={class:"form-check-input",type:"checkbox",id:"username-gist",name:"username-gist"},U8={class:"form-check"},B8={class:"form-check-input",type:"checkbox",id:"date-gist",name:"date-gist"},z8={class:"form-check"},H8={class:"form-check-input",type:"checkbox",id:"origin-gist",name:"origin-gist"},j8={class:"form-check"},G8={class:"form-check-input",type:"checkbox",id:"title",name:"title"},W8={class:"form-check"},K8={class:"form-check-input",type:"checkbox",id:"body",name:"body"},Y8={class:"form-check"},J8={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},X8={class:"form-check"},Q8={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},Z8={class:"form-check"},x8={class:"form-check-input",type:"checkbox",id:"username",name:"username"},e6={class:"form-check"},t6={class:"form-check-input",type:"checkbox",id:"date",name:"date"},n6={class:"form-check"},o6={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},s6={class:"paper-settings-section hosting-settings",id:"repository-hosting","aria-labelledby":"hosting-heading"},i6={class:"form-group conference-field"},r6=["href"],a6={class:"invalid-feedback"},l6={class:"form-text text-muted"},d6={key:0,class:"hosting-usage"},u6={key:0},c6={key:1},p6={key:2},f6={key:1,class:"hosting-limit auto-update-note",role:"status"},m6={key:2,class:"hosting-payment"},h6={key:0,class:"hosting-limit",role:"status"},g6={key:1,class:"hosting-options"},v6={class:"hosting-options-title"},y6=["value","checked","onChange"],b6={class:"hosting-option-body"},w6={key:0,class:"hosting-cycle billing-toggle",role:"radiogroup","aria-label":"Billing frequency"},k6=["aria-checked","onClick"],C6={key:0,class:"billing-toggle-save"},S6={class:"hosting-option-price"},E6={key:2,role:"status"},N6={key:3,class:"hosting-terms"},R6={key:4,class:"hosting-terms"},T6={key:5,class:"capacity-options"},P6=["disabled"],D6={key:3,class:"hosting-subhead"},A6={class:"expiration-choices"},I6={class:"expiration-choice"},O6=["checked","disabled"],M6={key:0,class:"dated-options"},V6={key:0,class:"hosting-date"},q6=["min","max"],L6={key:0,class:"date-echo","aria-live":"polite"},_6={class:"invalid-feedback"},$6={class:"invalid-feedback"},F6={class:"hosting-property"},U6={key:1,class:"expiration-choice"},B6=["checked","disabled"],z6={key:0},H6={key:4,class:"form-text text-muted"},j6={key:5,class:"inline-hosting"},G6={key:0,role:"alert",class:"text-danger"},W6={key:1,role:"alert",class:"text-danger"},K6=["disabled"],Y6={key:2,role:"status"},J6={key:3,role:"status",class:"form-text text-muted"},X6={key:4,class:"hosting-terms"},Q6={key:5,class:"hosting-terms"},Z6={key:6,class:"repository-pass"},x6=["disabled","onClick"],eM={class:"paper-settings-section"},tM={class:"form-group"},nM={style:{position:"relative"}},oM={type:"text",id:"coauthorSearch",class:"form-control",placeholder:"Search GitHub username\u2026",autocomplete:"off"},sM={class:"dropdown-menu show",style:{display:"block","max-height":"220px","overflow-y":"auto",width:"100%"}},iM=["onClick"],rM=["src"],aM=["textContent"],lM=["textContent"],dM={class:"coauthor-list"},uM={class:"coauthor-row d-flex align-items-center",style:{padding:"6px 0",gap:"8px"}},cM=["src"],pM=["textContent","href"],fM=["onClick"],mM={class:"form-text text-muted"},hM=["textContent"],gM={class:"anonymize-submit-bar"},vM=["disabled"],yM=["disabled"],bM=["disabled"],wM=["disabled"],kM=["disabled"],CM=["disabled"],SM={key:5,class:"submit-reason",role:"status"},EM={key:6,class:"checkout-return-note"},NM={key:7,class:"draft-status",role:"status"},RM={key:8,class:"draft-status"},TM=["role","aria-labelledby"],PM={class:"rp-caption"},DM=["aria-expanded"],AM=["title"],IM={class:"redact-slot","aria-hidden":"true"},OM={key:2,class:"rp-count rp-count-none"},MM=["href"],VM=["aria-pressed"],qM={class:"rp-open-icon",viewBox:"0 0 16 16","aria-hidden":"true"},LM={key:0,d:"M9.5 2.5h4v4M13.5 2.5 9 7M6.5 13.5h-4v-4M2.5 13.5 7 9"},_M={key:1,d:"M13.5 6.5h-4v-4M9.5 6.5 14 2M2.5 9.5h4v4M6.5 9.5 2 14"},$M={class:"rp-window"},FM={class:"rp-chrome","aria-hidden":"true"},UM={class:"rp-url"},BM={class:"rp-bar","aria-hidden":"true"},zM={key:0,class:"rp-bar-id"},HM={key:1,class:"rp-bar-kind"},jM={class:"leftCol-head"},GM={class:"leftCol-body"},WM={key:0,class:"rp-state rp-loading",role:"status"},KM={class:"rp-state-text"},YM={class:"rp-state rp-error"},JM={key:0,class:"rp-state-actions"},XM={key:1,class:"btn btn-ink btn-sm",href:"/connections"},QM={key:2,class:"btn btn-ink btn-sm",href:"/dashboard"},ZM={class:"rp-state rp-error",role:"alert"},xM={class:"rp-state-actions"},eV={class:"rp-state rp-error",role:"alert"},tV={class:"rp-state-actions"},nV={key:4,class:"rp-state rp-empty"},oV={key:6,class:"anonymize-preview-body"},sV={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},iV={class:"pr-title mb-1"},rV={key:0},aV=["textContent"],lV={key:0},dV={key:1},uV={key:2},cV={class:"pr-comments mt-3"},pV={class:"pr-comment"},fV={class:"pr-comment-head"},mV=["textContent"],hV={key:0,class:"pr-comment-date"},gV={key:3},vV={class:"pr-comments"},yV={class:"pr-comment"},bV={class:"pr-comment-head"},wV={key:0,class:"pr-comment-author"},kV=["textContent"],CV=["textContent"],SV={key:0,class:"pr-comment-body"},EV={key:7,class:"anonymize-preview-body"},NV={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},RV={class:"pr-title mb-1"},TV={key:0},PV=["textContent"],DV={key:0},AV={key:1,class:"pr-body"},IV={key:2,class:"paper-tabs",role:"tablist"},OV=["aria-selected","tabindex"],MV=["aria-selected","tabindex"],VV=["textContent"],qV={key:3,class:"anonymize-preview-status"},LV={class:"paper-tab-content"},_V={key:0,role:"tabpanel",id:"preview-pr-diff-panel","aria-labelledby":"preview-pr-diff-tab"},$V=["innerHTML"],FV={key:1,role:"tabpanel",id:"preview-pr-comments-panel","aria-labelledby":"preview-pr-comments-tab"},UV={class:"pr-comments"},BV={class:"pr-comment"},zV={class:"pr-comment-head"},HV={key:0,class:"pr-comment-author"},jV=["textContent"],GV=["textContent"],WV={key:0,class:"pr-comment-body"},KV={key:8,class:"rp-more"},YV=["href"],JV={key:2,class:"rp-more-btn is-hint","aria-hidden":"true"};function yp(e,t){let s=Qe("tree"),i=Qe("partial-view"),o=Qe("gist-file"),r=Qe("markdown"),u=Pe("field"),p=Pe("form");return a(),l("div",{class:R(["anonymize-page h-100",{"mobile-preview-active":e.mobilePane==="preview","preview-expanded":e.previewExpanded}])},[f(" ===== STATE 1: No URL \u2014 centered input ===== "),P(n("div",LI,[n("div",_I,[t[72]||(t[72]=Ce('
My work \xA0/\xA0 New anonymization

New anonymization

Paste a repository, pull request, or gist URL, or pick one of your repositories. You\u2019ll choose the terms to redact next.

  1. 1. Repository
  2. 2. Review and hosting
  3. 3. Review link
',2)),n("div",$I,[n("div",FI,[t[63]||(t[63]=n("label",{class:"paper-field-label",for:"sourceUrl-landing"},"Source URL",-1)),!e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(a(),l("aside",UI,[!e.isUpdate&&e.detectedType!=="gist"?(a(),l("div",BI,[n("button",{type:"button","aria-pressed":e.githubConnection==="github-app",disabled:e.githubConnection==="github-app",onClick:t[0]||(t[0]=c=>e.chooseGitHubConnection("github-app"))},[...t[62]||(t[62]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),m(),n("span",{class:"sr-only"},"Read-only ",-1),m("GitHub App",-1)])],8,zI),n("button",{type:"button","aria-pressed":e.githubConnection==="oauth",disabled:e.githubConnection==="oauth",onClick:t[1]||(t[1]=c=>e.chooseGitHubConnection("oauth"))},"Legacy OAuth",8,HI)])):f("v-if",!0),e.isUpdate||e.detectedType==="gist"?(a(),l("span",jI,d((e.detectedType==="gist"?e.githubConnections?.gistConnection==="github-app":e.githubConnection==="github-app")?"Read-only GitHub App":"Legacy OAuth"),1)):f("v-if",!0)])):f("v-if",!0)]),n("div",GI,[P(n("input",WI,null,512),[[u,{state:e.viewState,set:c=>{e.sourceUrl=c},value:e.sourceUrl,form:null,options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]]),n("button",{type:"button",class:"btn btn-primary landing-continue","aria-disabled":e.sourceUrl?.trim()?null:"true",onClick:t[2]||(t[2]=c=>e.sourceUrl?.trim()&&e.urlSelected())},"Continue",8,KI)])]),e.sourceUrlError?(a(),l("p",YI,d(e.sourceUrlError),1)):f("v-if",!0),t[73]||(t[73]=n("small",{class:"form-text landing-help",style:{color:"var(--ink-muted)"}}," Repository, pull request (\u2026/pull/42) and gist (gist.github.com/\u2026) URLs are all accepted. ",-1)),n("section",JI,[n("div",XI,[n("div",QI,[t[64]||(t[64]=n("h2",{id:"repo-picker-title"},"Your repositories",-1)),e.userReposStatus==="loading"?(a(),l("span",ZI,d(e.userRepoFilter.trim()?"Searching repositories\u2026":"Loading repositories\u2026"),1)):e.userReposStatus==="ready"&&e.userReposUpdatedLabel()?(a(),l("span",{key:1,class:"repo-picker-count repo-picker-updated",role:"status",title:e.userReposUpdatedTitle()},d(e.userReposUpdatedLabel()),9,xI)):f("v-if",!0)]),n("div",eO,[P(n("input",{type:"search",class:"form-control repo-picker-filter",placeholder:"Search repositories\u2026","aria-label":"Search your repositories",autocomplete:"off",maxlength:"200","onUpdate:modelValue":t[3]||(t[3]=c=>e.userRepoFilter=c)},null,512),[[nt,e.userRepoFilter]]),e.userReposStatus==="ready"?(a(),l("button",{key:0,type:"button",class:R(["btn btn-icon repo-picker-refresh",{"is-busy":e.userReposSyncing}]),"aria-busy":e.userReposSyncing?"true":null,onClick:t[4]||(t[4]=c=>e.refreshUserRepos()),title:e.userReposWebhooks?"Refresh from GitHub":"Refresh from GitHub to see new repositories","aria-label":"Refresh your repositories from GitHub"},[...t[65]||(t[65]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1)])],10,tO)):f("v-if",!0)])]),e.userReposStatus==="loading"||e.userReposStatus==="idle"?(a(),l("ul",nO,[(a(),l(V,null,X([1,2,3,4],(c,v)=>n("li",oO,[n("span",{class:"skeleton skeleton-line",style:Ae({width:34+c*9+"%"})},null,4)])),64))])):f("v-if",!0),e.userReposStatus==="ready"&&e.userRepos.length>0?(a(),l("ul",sO,[(a(!0),l(V,null,X(e.userRepos,(c,v)=>(a(),l("li",{key:c.id||c.fullName,class:"repo-picker-row"},[t[67]||(t[67]=n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1)),n("span",{class:"repo-picker-name",title:c.fullName},[n("span",rO,[m(d(c.fullName.split("/")[0]),1),t[66]||(t[66]=n("span",{class:"repo-picker-slash"},"/",-1))]),n("span",aO,d(c.fullName.split("/").slice(1).join("/")),1)],8,iO),n("button",{type:"button",class:"btn btn-outline-ink btn-sm repo-picker-select",onClick:h=>e.selectUserRepo(c),"aria-label":"Select "+c.fullName},"Select",8,lO)]))),128))])):f("v-if",!0),e.userReposStatus==="ready"&&e.userRepos.length===0&&e.userRepoFilter.trim()?(a(),l("p",dO,d(e.userRepoNext!==null?"No matches yet. Continue searching the remaining repositories.":e.userRepoPage>1?"No more matching repositories.":"No matching repositories found."),1)):f("v-if",!0),e.userReposStatus==="ready"&&e.userRepos.length===0&&!e.userRepoFilter.trim()?(a(),l("p",uO,"No repositories found. Paste a URL above, or grant access below.")):f("v-if",!0),e.userReposStatus==="error"?(a(),l("p",cO,[t[68]||(t[68]=m("Your repositories could not be loaded. ",-1)),n("button",{type:"button",class:"task-text-button",onClick:t[5]||(t[5]=c=>e.loadUserRepos())},"Try again")])):f("v-if",!0),e.userRepoPage>1||e.userRepoNext!==null?(a(),l("nav",pO,[n("button",{type:"button",class:"btn btn-outline-ink btn-sm",disabled:e.userRepoPage===1||e.userReposStatus==="loading",onClick:t[6]||(t[6]=c=>e.changeUserRepoPage(-1))},"Previous",8,fO),n("span",mO,"Page "+d(e.userRepoPage),1),n("button",{type:"button",class:"btn btn-outline-ink btn-sm",disabled:e.userRepoNext===null||e.userReposStatus!=="ready",onClick:t[7]||(t[7]=c=>e.changeUserRepoPage(1))},d(e.userRepoFilter.trim()&&!e.userRepos.length?"Continue search":"Next"),9,hO)])):f("v-if",!0),!e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.userReposStatus==="ready"?(a(),l("p",gO,[t[71]||(t[71]=m("Don\u2019t see your repository? ",-1)),e.githubConnection!=="oauth"?(a(),l("button",{key:0,type:"button",class:"connection-link",onClick:t[8]||(t[8]=c=>e.grantGitHubAccess())},[...t[69]||(t[69]=[m("Manage GitHub access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])])):(a(),l("a",vO,[...t[70]||(t[70]=[m("Manage GitHub access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])]))])):f("v-if",!0)])])],512),[[Q,!e.workspaceOpen&&!e.isUpdate]]),f(" ===== STATE 2: URL provided \u2014 form (left) + preview (right) ===== "),P(n("div",yO,[n("header",bO,[n("div",wO,[n("div",kO,[t[74]||(t[74]=n("a",{href:"/dashboard"},"My work",-1)),t[75]||(t[75]=m(" \xA0/\xA0 ",-1)),n("span",CO,d(e.isUpdate?"Edit anonymization":"New anonymization"),1)]),n("div",SO,[n("h1",EO,[e.isUpdate?f("v-if",!0):(a(),l("span",NO,"New anonymization")),e.isUpdate?(a(),l("span",RO,"Edit anonymization")):f("v-if",!0)]),P(n("span",{class:R(["type-badge",{"type-repo":e.detectedType==="repo","type-pr":e.detectedType==="pr","type-gist":e.detectedType==="gist"}])},d(e.detectedType==="repo"?"Repository":e.detectedType==="pr"?"Pull request":"Gist"),3),[[Q,e.detectedType]])]),n("p",TO,d(e.isUpdate?"Changes apply to the existing anonymous link; reviewers keep the same URL.":"Choose the terms to redact, what reviewers see, and when the link expires."),1),e.isUpdate?f("v-if",!0):(a(),l("ol",PO,[...t[76]||(t[76]=[n("li",null,"1. Repository",-1),n("li",{"aria-current":"step"},"2. Review and hosting",-1),n("li",null,"3. Review link",-1)])]))])]),e.detectedType==="gist"&&e.gistAppRequired?(a(),l("aside",DO,[t[77]||(t[77]=n("p",null,"Reconnect your GitHub account to read this gist. Your draft will be restored when you return.",-1)),n("button",{type:"button",class:"btn btn-ink",onClick:t[9]||(t[9]=c=>e.connectGistApp())},"Connect GitHub App to access gists")])):f("v-if",!0),e.detectedType==="gist"&&e.gistOAuthRequired?(a(),l("aside",AO,[t[78]||(t[78]=n("p",null,"Connect GitHub OAuth to access gists. Your account and existing anonymizations stay the same, and your draft will be restored when you return.",-1)),t[79]||(t[79]=n("p",null,"GitHub's legacy OAuth connection includes write access to private repositories.",-1)),e.githubConnections?.oauthEnabled?(a(),l("button",{key:0,type:"button",class:"btn btn-ink",onClick:t[10]||(t[10]=c=>e.connectGistOAuth())},"Connect GitHub OAuth to access gists")):(a(),l("p",IO,"GitHub OAuth is currently unavailable. Please try again later."))])):f("v-if",!0),n("nav",OO,[n("button",{id:"workspace-settings-tab",role:"tab",type:"button","aria-selected":e.mobilePane==="settings","aria-controls":"workspace-settings",tabindex:e.mobilePane==="settings"?0:-1,onKeydown:t[11]||(t[11]=c=>e.previewTabKeydown(c)),onClick:t[12]||(t[12]=c=>e.selectMobilePane("settings"))},[...t[80]||(t[80]=[n("span",{class:"tab-label"},"Settings",-1)])],40,MO),n("button",{id:"workspace-preview-tab",role:"tab",type:"button","aria-selected":e.mobilePane==="preview","aria-controls":"workspace-preview",tabindex:e.mobilePane==="preview"?0:-1,onKeydown:t[13]||(t[13]=c=>e.previewTabKeydown(c)),onClick:t[14]||(t[14]=c=>e.selectMobilePane("preview"))},[...t[81]||(t[81]=[n("span",{class:"tab-label"},"Reviewer preview",-1)])],40,VO)]),n("div",qO,[f(" Form column (left) "),n("div",{id:"workspace-settings",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-settings-tab":null,class:"anonymize-form-col overflow-auto"},[P((a(),l("form",_O,[n("div",$O,[n("section",FO,[t[100]||(t[100]=n("h2",{class:"paper-section-eyebrow"},"Source & access",-1)),n("div",UO,[n("div",BO,[t[83]||(t[83]=n("label",{class:"paper-field-label",for:"sourceUrl"},"Source URL",-1)),e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(a(),l("aside",zO,[!e.isUpdate&&e.detectedType!=="gist"?(a(),l("div",HO,[n("button",{type:"button","aria-pressed":e.githubConnection==="github-app",disabled:e.githubConnection==="github-app",onClick:t[15]||(t[15]=c=>e.chooseGitHubConnection("github-app"))},[...t[82]||(t[82]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),m(),n("span",{class:"sr-only"},"Read-only ",-1),m("GitHub App",-1)])],8,jO),n("button",{type:"button","aria-pressed":e.githubConnection==="oauth",disabled:e.githubConnection==="oauth",onClick:t[16]||(t[16]=c=>e.chooseGitHubConnection("oauth"))},"Legacy OAuth",8,GO)])):f("v-if",!0),e.isUpdate||e.detectedType==="gist"?(a(),l("span",WO,d((e.detectedType==="gist"?e.githubConnections?.gistConnection==="github-app":e.githubConnection==="github-app")?"Read-only GitHub App":"Legacy OAuth"),1)):f("v-if",!0)])):f("v-if",!0)]),P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.anonymize?.sourceUrl?.invalid}]),name:"sourceUrl",id:"sourceUrl",onblur:"this.scrollLeft=0",disabled:e.isUpdate&&e.detectedType!=="repo",placeholder:"Paste a GitHub repo or pull request URL"},null,10,KO),[[u,{state:e.viewState,set:c=>{e.sourceUrl=c},value:e.sourceUrl,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]]),e.sourceSummary()&&!e.anonymize?.sourceUrl?.invalid?(a(),l("p",YO,[t[84]||(t[84]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check"})],-1)),m(d(e.sourceSummary()),1)])):f("v-if",!0),e.sourceProblem()&&e.sourceProblem().kind!=="connect"?(a(),l("div",JO,[n("p",XO,d(e.sourceProblem().text),1),e.sourceProblem().note?(a(),l("p",QO,d(e.sourceProblem().note),1)):f("v-if",!0),e.sourceProblem().manage||e.sourceProblem().retry||e.sourceProblem().dashboard?(a(),l("div",ZO,[e.sourceProblem().manage==="app"?(a(),l("button",{key:0,type:"button",class:"btn btn-ink",onClick:t[17]||(t[17]=c=>e.grantGitHubAccess())},[...t[85]||(t[85]=[m("Manage GitHub access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])])):f("v-if",!0),e.sourceProblem().manage==="link"?(a(),l("a",xO,"Manage GitHub access")):f("v-if",!0),e.sourceProblem().dashboard?(a(),l("a",e5,"Open My work")):f("v-if",!0),e.sourceProblem().retry?(a(),l("button",{key:3,type:"button",class:"btn btn-outline-ink",onClick:t[18]||(t[18]=c=>e.urlSelected(!0))},"Try again")):f("v-if",!0)])):f("v-if",!0)])):f("v-if",!0)]),!e.isUpdate&&e.previousConfigurations.length?(a(),l("aside",t5,[t[87]||(t[87]=n("p",{role:"status"},"You have already anonymized this repository. Use the existing configuration to keep its anonymous link and avoid creating another repository.",-1)),e.previousConfigurations.length>1?(a(),l("div",n5,[t[86]||(t[86]=n("label",{class:"paper-field-label",for:"previousConfiguration"},"Previous anonymization",-1)),P(n("select",{id:"previousConfiguration",class:"form-control","onUpdate:modelValue":t[19]||(t[19]=c=>e.previousConfigurationId=c)},[(a(!0),l(V,null,X(e.previousConfigurations,c=>(a(),l("option",{key:c.repoId,value:c.repoId},d(c.repoId),9,o5))),128))],512),[[Nt,e.previousConfigurationId]])])):(a(),l("p",s5,d(e.previousConfigurationId),1)),t[88]||(t[88]=n("p",null,"You can review and update its settings before saving.",-1)),n("div",i5,[n("a",{class:"btn btn-ink",href:e.existingConfigurationUrl()},"Use existing configuration",8,r5),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[20]||(t[20]=c=>e.previousConfigurations=[])},"Create a separate one")])])):f("v-if",!0),e.details&&e.sourceIsPrivate()?(a(),l("aside",a5,[n("div",l5,[n("span",null,[t[89]||(t[89]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1)),m(" "+d(e.detectedType==="gist"?"This secret gist will be published at a public link.":"Selected content will be published, including content from private repositories."),1)])])])):e.details?(a(),l("p",d5,"Anonymized content is public.")):f("v-if",!0),e.isUpdate&&e.detectedType==="repo"&&e.role==="owner"&&e.sourceUrl==="https://github.com/"+e._originalFullName?(a(),l("details",{key:3,class:"repair-disclosure",open:!!(e.error||e.sourceError||e.accessRepairMessage||e.reconnectRepositoryId)},[t[93]||(t[93]=n("summary",null,"Connection problems?",-1)),e.accessRepairAllowed&&e.githubConnections?.appEnabled&&e.githubConnection==="github-app"&&e.sourceUrl==="https://github.com/"+e._originalFullName?(a(),l("div",c5,[t[91]||(t[91]=n("p",null,"If this repository became private or its App installation changed, repair its access here. This keeps the same anonymous URL and published commit.",-1)),n("button",{type:"button",class:"btn btn-outline-ink",disabled:e.repairingGitHubAccess,onClick:t[21]||(t[21]=c=>e.repairGitHubAccess())},"Repair GitHub access",8,p5),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[22]||(t[22]=c=>e.grantGitHubAccess())},[...t[90]||(t[90]=[m("Manage GitHub access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])]),e.accessRepairMessage?(a(),l("p",f5,d(e.accessRepairMessage),1)):f("v-if",!0)])):f("v-if",!0),n("div",m5,[t[92]||(t[92]=n("p",null,"If you deleted and recreated this repository, reconnect it before choosing a branch.",-1)),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[23]||(t[23]=c=>e.reconnectSource())},"Reconnect source repository"),e.reconnectRepositoryId?(a(),l("p",h5,"Source reloaded. Review the branch, commit, and anonymization preview, then save to replace the published snapshot.")):f("v-if",!0)])],8,u5)):f("v-if",!0),e.detectedType==="repo"?P((a(),l("div",g5,[n("div",v5,[t[95]||(t[95]=n("label",{class:"paper-field-label",for:"branch"},"Branch",-1)),n("div",y5,[P((a(),l("select",b5,[(a(!0),l(V,null,X(e.branches,(c,v)=>(a(),l("option",{textContent:d(c?.name),value:c?.name},null,8,w5))),256))])),[[u,{state:e.viewState,set:c=>{e.source.branch=c},value:e.source?.branch,form:"anonymize",options:{}}]]),n("div",k5,[n("button",{class:"btn btn-icon refresh-branches",type:"button",title:"Refresh branches",onClick:t[24]||(t[24]=c=>e.getBranches(!0)),"aria-label":"Refresh branches"},[...t[94]||(t[94]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1)])])])])]),n("div",C5,[t[96]||(t[96]=n("label",{class:"paper-field-label",for:"commit"},"Commit",-1)),P(n("input",{class:R(["form-control",{"is-invalid":e.anonymize?.commit?.invalid}]),id:"commit",disabled:e.options.update,name:"commit",pattern:"[a-fA-Z0-9]{6,}",required:""},null,10,S5),[[u,{state:e.viewState,set:c=>{e.source.commit=c},value:e.source?.commit,form:"anonymize",options:{}}]]),P(n("div",E5," The commit SHA is not valid. ",512),[[Q,e.anonymize?.commit?.errors?.pattern||e.anonymize?.commit?.errors?.required]]),P(n("div",N5," This commit no longer exists in the repository. Click refresh to get the latest. ",512),[[Q,e.anonymize?.commit?.errors?.exists]])])],512)),[[Q,e.sourceReady()]]):f("v-if",!0),P(n("div",{class:R(["form-check auto-update-check",{"is-paid":!e.liveUpdatesIncluded()}])},[P(n("input",R5,null,512),[[u,{state:e.viewState,set:c=>{e.options.update=c},value:e.options?.update,form:"anonymize",options:{}}]]),n("label",T5,[t[97]||(t[97]=m("Auto-update from GitHub",-1)),e.liveUpdatesIncluded()?f("v-if",!0):(a(),l("span",P5,"Paid"))]),e.liveUpdatesIncluded()?(a(),l("small",D5,"Follows the latest version, at most once an hour.")):(a(),l("small",A5,[t[98]||(t[98]=m("Needs Live updates",-1)),e.liveUpdatesPrice()?(a(),l(V,{key:0},[m(" \xB7 "+d(e.liveUpdatesPrice()),1)],64)):f("v-if",!0),t[99]||(t[99]=m(", a Paper pack or an author subscription. ",-1)),n("a",{href:"#repository-hosting",onClick:t[25]||(t[25]=de(c=>e.showHostingOptions(),["prevent"]))},"Hosting options")]))],2),[[Q,e.detectedType&&e.sourceReady()]])]),P(n("section",I5,[t[134]||(t[134]=n("h2",{class:"paper-section-eyebrow"},"Anonymization",-1)),P(n("div",O5,[t[105]||(t[105]=n("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.anonymize?.repoId?.invalid}]),name:"repoId",id:"repoId",disabled:e.isUpdate},null,10,M5),[[u,{state:e.viewState,set:c=>{e.repoId=c},value:e.repoId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),n("small",V5,[t[101]||(t[101]=m("anonymous.4open.science/",-1)),t[102]||(t[102]=n("wbr",null,null,-1)),t[103]||(t[103]=m("r/",-1)),t[104]||(t[104]=n("wbr",null,null,-1)),n("span",q5,d(e.repoId),1)]),P(n("div",L5,"ID can only contain letters and numbers.",512),[[Q,e.anonymize?.repoId?.errors?.format]]),P(n("div",{class:"invalid-feedback"},d(e.repoId)+" is already used.",513),[[Q,e.anonymize?.repoId?.errors?.used]])],512),[[Q,e.detectedType==="repo"]]),P(n("div",_5,[t[110]||(t[110]=n("label",{class:"paper-field-label",for:"pullRequestId"},"Anonymized pull request ID",-1)),P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId",disabled:e.isUpdate},null,10,$5),[[u,{state:e.viewState,set:c=>{e.pullRequestId=c},value:e.pullRequestId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),n("small",F5,[t[106]||(t[106]=m("anonymous.4open.science/",-1)),t[107]||(t[107]=n("wbr",null,null,-1)),t[108]||(t[108]=m("pr/",-1)),t[109]||(t[109]=n("wbr",null,null,-1)),n("span",U5,d(e.pullRequestId),1)]),P(n("div",B5,"ID can only contain letters and numbers.",512),[[Q,e.anonymize?.pullRequestId?.errors?.format]]),P(n("div",{class:"invalid-feedback"},d(e.pullRequestId)+" is already used.",513),[[Q,e.anonymize?.pullRequestId?.errors?.used]])],512),[[Q,e.detectedType==="pr"]]),P(n("div",z5,[t[115]||(t[115]=n("label",{class:"paper-field-label",for:"gistId"},"Anonymized gist ID",-1)),P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.anonymize?.gistId?.invalid}]),name:"gistId",id:"gistId",disabled:e.isUpdate},null,10,H5),[[u,{state:e.viewState,set:c=>{e.gistId=c},value:e.gistId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),n("small",j5,[t[111]||(t[111]=m("anonymous.4open.science/",-1)),t[112]||(t[112]=n("wbr",null,null,-1)),t[113]||(t[113]=m("gist/",-1)),t[114]||(t[114]=n("wbr",null,null,-1)),n("span",G5,d(e.gistId),1)]),P(n("div",W5,"ID can only contain letters and numbers.",512),[[Q,e.anonymize?.gistId?.errors?.format]]),P(n("div",{class:"invalid-feedback"},d(e.gistId)+" is already used.",513),[[Q,e.anonymize?.gistId?.errors?.used]])],512),[[Q,e.detectedType==="gist"]]),n("div",K5,[t[126]||(t[126]=n("label",{class:"paper-field-label",for:"terms"},"Terms to redact",-1)),P(n("textarea",{class:R(["form-control terms-input",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:Math.min(14,Math.max(4,String(e.terms||"").split(` `).length+1)),placeholder:`Jane Smith MIT CSAIL jane.smith@example.org`},null,10,Y5),[[u,{state:e.viewState,set:c=>{e.terms=c},value:e.terms,form:"anonymize",options:{debounce:250}}]]),t[127]||(t[127]=n("small",{class:"form-text text-muted"},"One term per line.",-1)),n("details",J5,[t[122]||(t[122]=n("summary",null,"Regex & replacement syntax",-1)),t[123]||(t[123]=m()),n("small",X5,[t[116]||(t[116]=m("Regex is supported. Replaced by ",-1)),n("code",null,d(e.site_options?.ANONYMIZATION_MASK)+"-[N]",1),t[117]||(t[117]=m(", or use ",-1)),t[118]||(t[118]=n("code",null,"term=>replacement",-1)),t[119]||(t[119]=m(" to pick your own (e.g. ",-1)),t[120]||(t[120]=n("code",null,"Anonymous=>ABC",-1)),t[121]||(t[121]=m(").",-1))])]),(a(!0),l(V,null,X((e.termHints||[]).slice(0,3),c=>(a(),l("div",{class:"term-hint",key:c.line},[n("span",null,[t[124]||(t[124]=m("In ",-1)),n("code",null,d(c.term),1),t[125]||(t[125]=m(", ",-1)),n("code",null,d(c.symbols.join(" ")),1),m(" "+d(c.symbols.length>1?"are regex symbols":"is a regex symbol")+", so it may not match the text as written.",1)]),n("button",{type:"button",class:"btn btn-outline-ink btn-sm",onClick:v=>e.matchTermAsWritten(c.line)},"Match as written",8,Q5)]))),128)),(e.termHints||[]).length>3?(a(),l("div",Z5,d(e.termHints.length-3)+" more "+d(e.termHints.length-3===1?"term uses":"terms use")+" regex symbols.",1)):f("v-if",!0),P(n("div",x5,"Terms are in an invalid format.",512),[[Q,e.anonymize?.terms?.errors?.format]])]),P(n("div",e8,[n("div",t8,[t[128]||(t[128]=n("span",{class:"paper-field-label",id:"preserve-files-label"},"Unredacted files",-1)),n("span",n8,d(e.preserveSummary()),1)]),n("button",{type:"button",class:"btn btn-outline-ink btn-sm","aria-describedby":"preserve-files-label",disabled:!e.source?.commit,onClick:t[26]||(t[26]=c=>e.openPreserveFiles())},d((e.options?.preserveFiles||[]).length?"Edit":"Choose files"),9,o8)],512),[[Q,e.detectedType==="repo"]]),e.preserve?.open?(a(),l("dialog",{key:0,id:"preserve-files-dialog",class:"preserve-dialog","aria-labelledby":"preserve-files-title",onCancel:t[31]||(t[31]=de(c=>e.closePreserveFiles(),["prevent"]))},[n("form",{onSubmit:t[30]||(t[30]=de(c=>e.savePreserveFiles(),["prevent"]))},[t[132]||(t[132]=n("h2",{id:"preserve-files-title"},"Leave files unredacted",-1)),t[133]||(t[133]=n("p",{class:"preserve-intro"},"Checked files are shown exactly as written, for example a bibliography where redacted self-citations would reveal you. File names are still redacted.",-1)),P(n("input",{type:"search",id:"preserve-files-search",class:"form-control",placeholder:"Search files","aria-label":"Search files",autocomplete:"off","onUpdate:modelValue":t[27]||(t[27]=c=>e.preserve.search=c)},null,512),[[nt,e.preserve.search]]),n("div",s8,[e.preserve.loading?(a(),l("p",i8,"Loading files from GitHub\u2026")):e.preserve.error?(a(),l("p",r8,d(e.preserve.error),1)):(a(),l(V,{key:2},[(a(!0),l(V,null,X(e.preserveRows(),(c,v)=>(a(),l("div",{class:"preserve-item",key:c.kind+":"+c.path,style:Ae({paddingLeft:c.depth*18+6+"px"})},[c.kind==="dir"?(a(),l("button",{key:0,type:"button",class:"preserve-caret","aria-expanded":c.open?"true":"false","aria-label":(c.open?"Collapse ":"Expand ")+c.label,onClick:h=>e.togglePreserveDir(c.path)},d(c.open?"\u25BE":"\u25B8"),9,a8)):(a(),l("span",l8)),n("input",{type:"checkbox",id:"pf-"+v,"aria-label":c.kind==="dir"?"Leave folder "+c.path+" unredacted":null,checked:c.state==="all",".indeterminate":c.state==="some",disabled:c.locked,onChange:h=>c.kind==="dir"?e.togglePreserveFolder(c.path):e.togglePreserveFile(c.path)},null,40,d8),n("label",{for:c.kind==="file"?"pf-"+v:null,class:"preserve-name",onClick:h=>c.kind==="dir"&&e.togglePreserveDir(c.path)},d(c.label),9,u8),c.note?(a(),l("span",c8,d(c.note),1)):f("v-if",!0)],4))),128)),!e.preserve.loading&&!e.preserveRows().length?(a(),l("p",p8,d(e.preserve.search?"No file matches your search.":"No text files in this commit."),1)):f("v-if",!0)],64))]),e.preserve.truncated?(a(),l("p",f8,"This repository has too many files to list them all. Use a pattern for files you cannot find.")):f("v-if",!0),n("details",{class:"preserve-patterns",open:e.preserve.patternsOpen},[t[129]||(t[129]=n("summary",null,"Patterns",-1)),P(n("textarea",{class:"form-control",rows:"3","aria-label":"Patterns",placeholder:`*.bib -paper/appendix/**`,"onUpdate:modelValue":t[28]||(t[28]=c=>e.preserve.patterns=c)},null,512),[[nt,e.preserve.patterns]]),t[130]||(t[130]=n("small",{class:"form-text text-muted"},[m("One per line, as in .gitignore: "),n("code",null,"*.bib"),m(" matches in any folder; "),n("code",null,"/refs.bib"),m(" and "),n("code",null,"paper/refs.bib"),m(" match from the repository root; a folder name such as "),n("code",null,"drafts/"),m(" covers everything inside it; "),n("code",null,"!private.bib"),m(" excludes again.")],-1))],8,m8),n("div",h8,[n("span",g8,d(e.preserve.loading||e.preserve.error?"":e.preserveCount()+(e.preserveCount()===1?" file":" files")+" will be shown as written"),1),n("span",v8,[n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[29]||(t[29]=c=>e.closePreserveFiles())},"Cancel"),t[131]||(t[131]=n("button",{type:"submit",class:"btn btn-ink"},"Save",-1))])])],32)],32)):f("v-if",!0)],512),[[Q,e.detectedType&&e.sourceReady()]]),P(n("section",y8,[t[154]||(t[154]=n("h2",{class:"paper-section-eyebrow"},"Display",-1)),P(n("div",null,[n("div",b8,[P(n("input",w8,null,512),[[u,{state:e.viewState,set:c=>{e.options.link=c},value:e.options?.link,form:"anonymize",options:{}}]]),t[135]||(t[135]=n("label",{class:"form-check-label",for:"link"},"Keep links",-1))]),n("div",k8,[P(n("input",C8,null,512),[[u,{state:e.viewState,set:c=>{e.options.image=c},value:e.options?.image,form:"anonymize",options:{}}]]),t[136]||(t[136]=n("label",{class:"form-check-label",for:"image"},"Display images",-1))]),n("div",S8,[P(n("input",E8,null,512),[[u,{state:e.viewState,set:c=>{e.options.pdf=c},value:e.options?.pdf,form:"anonymize",options:{}}]]),t[137]||(t[137]=n("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1))]),n("div",N8,[P(n("input",R8,null,512),[[u,{state:e.viewState,set:c=>{e.options.notebook=c},value:e.options?.notebook,form:"anonymize",options:{}}]]),t[138]||(t[138]=n("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1))]),n("div",T8,[P(n("input",{class:"form-check-input",type:"checkbox",id:"page",name:"page",disabled:!e.details?.hasPage||e.details?.pageSource&&e.details?.pageSource?.branch!==e.source?.branch},null,8,P8),[[u,{state:e.viewState,set:c=>{e.options.page=c},value:e.options?.page,form:"anonymize",options:{}}]]),t[139]||(t[139]=n("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),e.details?.hasPage?f("v-if",!0):(a(),l("small",D8,d(e.fmt?.translate("WARNINGS.page_not_enabled_on_repo")),1)),e.details?.hasPage&&e.details?.pageSource?.branch&&e.source?.branch&&e.details.pageSource.branch!==e.source.branch?(a(),l("small",A8,d(e.fmt?.translate("WARNINGS.page_branch_mismatch",{pageBranch:e.details?.pageSource?.branch,selectedBranch:e.source?.branch})),1)):f("v-if",!0)])],512),[[Q,e.detectedType==="repo"]]),e.detectedType==="repo"&&(e.options.image||e.options.pdf)?(a(),l("p",I8,[...t[140]||(t[140]=[m("Images and PDFs are served unchanged. Review their contents and metadata before sharing. ",-1),n("a",{href:"/faq#formats"},"Supported formats",-1)])])):f("v-if",!0),P(n("div",null,[n("div",O8,[P(n("input",M8,null,512),[[u,{state:e.viewState,set:c=>{e.options.title=c},value:e.options?.title,form:"anonymize",options:{}}]]),t[141]||(t[141]=n("label",{class:"form-check-label",for:"title-gist"},"Gist description",-1))]),n("div",V8,[P(n("input",q8,null,512),[[u,{state:e.viewState,set:c=>{e.options.content=c},value:e.options?.content,form:"anonymize",options:{}}]]),t[142]||(t[142]=n("label",{class:"form-check-label",for:"content-gist"},"File contents",-1))]),n("div",L8,[P(n("input",_8,null,512),[[u,{state:e.viewState,set:c=>{e.options.comments=c},value:e.options?.comments,form:"anonymize",options:{}}]]),t[143]||(t[143]=n("label",{class:"form-check-label",for:"comments-gist"},"Comments",-1))]),n("div",$8,[P(n("input",F8,null,512),[[u,{state:e.viewState,set:c=>{e.options.username=c},value:e.options?.username,form:"anonymize",options:{}}]]),t[144]||(t[144]=n("label",{class:"form-check-label",for:"username-gist"},"Usernames",-1))]),n("div",U8,[P(n("input",B8,null,512),[[u,{state:e.viewState,set:c=>{e.options.date=c},value:e.options?.date,form:"anonymize",options:{}}]]),t[145]||(t[145]=n("label",{class:"form-check-label",for:"date-gist"},"Dates",-1))]),n("div",z8,[P(n("input",H8,null,512),[[u,{state:e.viewState,set:c=>{e.options.origin=c},value:e.options?.origin,form:"anonymize",options:{}}]]),t[146]||(t[146]=n("label",{class:"form-check-label",for:"origin-gist"},"Source gist ID",-1))])],512),[[Q,e.detectedType==="gist"]]),P(n("div",null,[n("div",j8,[P(n("input",G8,null,512),[[u,{state:e.viewState,set:c=>{e.options.title=c},value:e.options?.title,form:"anonymize",options:{}}]]),t[147]||(t[147]=n("label",{class:"form-check-label",for:"title"},"PR title",-1))]),n("div",W8,[P(n("input",K8,null,512),[[u,{state:e.viewState,set:c=>{e.options.body=c},value:e.options?.body,form:"anonymize",options:{}}]]),t[148]||(t[148]=n("label",{class:"form-check-label",for:"body"},"PR body",-1))]),n("div",Y8,[P(n("input",J8,null,512),[[u,{state:e.viewState,set:c=>{e.options.diff=c},value:e.options?.diff,form:"anonymize",options:{}}]]),t[149]||(t[149]=n("label",{class:"form-check-label",for:"diff"},"Diff",-1))]),n("div",X8,[P(n("input",Q8,null,512),[[u,{state:e.viewState,set:c=>{e.options.comments=c},value:e.options?.comments,form:"anonymize",options:{}}]]),t[150]||(t[150]=n("label",{class:"form-check-label",for:"comments"},"Comments",-1))]),n("div",Z8,[P(n("input",x8,null,512),[[u,{state:e.viewState,set:c=>{e.options.username=c},value:e.options?.username,form:"anonymize",options:{}}]]),t[151]||(t[151]=n("label",{class:"form-check-label",for:"username"},"Usernames",-1))]),n("div",e6,[P(n("input",t6,null,512),[[u,{state:e.viewState,set:c=>{e.options.date=c},value:e.options?.date,form:"anonymize",options:{}}]]),t[152]||(t[152]=n("label",{class:"form-check-label",for:"date"},"Dates",-1))]),n("div",n6,[P(n("input",o6,null,512),[[u,{state:e.viewState,set:c=>{e.options.origin=c},value:e.options?.origin,form:"anonymize",options:{}}]]),t[153]||(t[153]=n("label",{class:"form-check-label",for:"origin"},"Project name",-1))])],512),[[Q,e.detectedType==="pr"]])],512),[[Q,e.detectedType&&e.sourceReady()]]),P(n("section",s6,[t[171]||(t[171]=n("h2",{class:"paper-section-eyebrow",id:"hosting-heading"},"Hosting & expiration",-1)),n("div",i6,[t[155]||(t[155]=n("label",{class:"paper-field-label",for:"conference"},[m("Conference code "),n("span",{class:"paper-optional"},"(optional)")],-1)),P(n("input",{class:R(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[u,{state:e.viewState,set:c=>{e.conference=c},value:e.conference,form:"anonymize",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),P(n("p",{class:R(["conference-hosting",{"is-covered":e.conferenceHosting()}]),role:"status"},[n("a",{target:"_blank",href:e.safeUrl(e.conference_data?.url)},d(e.conference_data?.name),9,r6),e.conferenceHosting()?(a(),l(V,{key:0},[m(" hosts this repository until "+d(e.fmt?.date(e.conference_data?.endDate))+", with automatic updates. You don't pay anything.",1)],64)):e.billing?.enabled&&e.detectedType==="repo"?(a(),l(V,{key:1},[m(" runs until "+d(e.fmt?.date(e.conference_data?.endDate))+". It doesn't pay for hosting, so this repository uses your own allowance.",1)],64)):(a(),l(V,{key:2},[m(" runs until "+d(e.fmt?.date(e.conference_data?.endDate))+".",1)],64))],2),[[Q,e.conference_data]]),P(n("div",a6,"The conference is not activated.",512),[[Q,e.anonymize?.conference?.errors?.activated]]),P(n("small",l6,"Submitting to a conference? Its code applies the venue's settings, and a paid conference hosts the repository for you.",512),[[Q,!e.conference_data]])]),e.detectedType==="repo"&&e.billing?.enabled&&!e.conferenceHosting()?(a(),l("p",d6,[e.isUpdate&&e.role!=="owner"?(a(),l("span",u6,"Uses the owner's hosting")):e.hasAuthorHosting()?(a(),l("span",c6,"Your author subscription is active.")):e.hostingQuota?.repository?(a(),l("span",p6,d(e.hostingQuota.repository.used)+" of "+d(e.hostingQuota.repository.total)+" active repositories \xB7 Free",1)):f("v-if",!0)])):f("v-if",!0),e.detectedType==="repo"&&e.options?.update&&!e.liveUpdatesIncluded()?(a(),l("p",f6,[t[156]||(t[156]=m("Automatic updates need a paid option. On free hosting, the link keeps the version you create until you refresh it from My work. Once it exists, add Live updates",-1)),e.liveUpdatesPrice()?(a(),l(V,{key:0},[m(" ("+d(e.liveUpdatesPrice())+" once)",1)],64)):f("v-if",!0),t[157]||(t[157]=m(" or a Paper pack in ",-1)),t[158]||(t[158]=n("a",{href:"/profile?billing=1"},"Settings \u203A Hosting & billing",-1)),t[159]||(t[159]=m(", or take an author subscription.",-1))])):f("v-if",!0),e.detectedType==="repo"&&e.billing?.enabled?(a(),l("div",m6,[e.hostingNeedsPayment()&&!e.billingPending?(a(),l(V,{key:0},[e.options.expirationMode!=="never"||e.hostingQuotaBlocked?(a(),l("p",h6,d(e.options.update&&!e.hostingQuotaBlocked&&e.hostingQuota?.repository?.used(a(),l("label",{class:R(["hosting-option",{"is-selected":e.hostingChoice()===c.id||c.interval&&e.authorPlans().some(v=>v.id===e.hostingChoice())}]),key:c.id},[n("input",{type:"radio",name:"hosting-plan",value:c.id,checked:e.hostingChoice()===c.id||c.interval&&e.authorPlans().some(v=>v.id===e.hostingChoice()),onChange:v=>e.hostingPlan=c.interval?e.hostingSubscriptionPlan().id:c.id},null,40,y6),n("span",b6,[n("strong",null,d(e.hostingOptionName(c)),1),n("small",null,d(e.hostingOptionBlurb(c)),1),c.interval&&e.authorPlans().length>1&&e.authorPlans().some(v=>v.id===e.hostingChoice())?(a(),l("span",w6,[(a(!0),l(V,null,X(e.authorPlans(),v=>(a(),l("button",{type:"button",role:"radio",key:v.id,"aria-checked":e.hostingSubscriptionPlan().id===v.id?"true":"false",class:R({"is-on":e.hostingSubscriptionPlan().id===v.id}),onClick:de(h=>{e.hostingCycle=v.id,e.hostingPlan=v.id},["prevent"])},[m(d(v.interval==="year"?"Yearly":"Monthly"),1),v.interval==="year"&&e.hostingAnnualSavings()?(a(),l("span",C6,"\u2212"+d(e.hostingAnnualSavings())+"%",1)):f("v-if",!0)],10,k6))),128))])):f("v-if",!0)]),n("span",S6,[n("strong",null,d(e.billingAmount(c.interval?e.hostingSubscriptionPlan():c)),1),n("small",null,d(c.interval?"per "+e.hostingSubscriptionPlan().interval:"once"),1)])],2))),128))])):(a(),l("p",E6,"New purchases are temporarily unavailable. Your draft is kept.")),e.authorPlans().some(c=>c.id===e.hostingChoice())?(a(),l("p",N6,"Renews "+d(e.hostingChoice()==="author_annual"?"yearly":"monthly")+" until you cancel. Tax shown at checkout.",1)):(a(),l("p",R6,"One-time payment, nothing renews. Tax shown at checkout.")),e.options.expirationMode!=="never"?(a(),l("details",T6,[t[160]||(t[160]=n("summary",null,"Keep using free hosting",-1)),t[161]||(t[161]=n("p",null,"Remove a repository you no longer need, or enter the code of a paid conference above. Removing a repository affects its review link.",-1)),t[162]||(t[162]=n("a",{href:"/dashboard"},"Review my repositories",-1)),n("button",{type:"button",class:"task-text-button",onClick:t[32]||(t[32]=c=>e.anonymizeRepo(c)),disabled:e.sourceLoading||e.billingBusy},"Recheck capacity and submit",8,P6)])):f("v-if",!0)],64)):f("v-if",!0)])):f("v-if",!0),e.hostingNeedsPayment()&&!e.billingPending?(a(),l("h4",D6,"Expiration")):f("v-if",!0),n("fieldset",A6,[t[168]||(t[168]=n("legend",{class:"sr-only"},"Expiration",-1)),n("label",I6,[n("input",{type:"radio",name:"expiration-choice",checked:e.options.expirationMode!=="never",onChange:t[33]||(t[33]=c=>e.useDatedHosting()),disabled:e.billingPending},null,40,O6),t[163]||(t[163]=n("span",null,"Expire on a date",-1))]),e.options.expirationMode!=="never"?(a(),l("div",M6,[e.options?.expirationMode!=="never"?(a(),l("div",V6,[t[164]||(t[164]=n("label",{class:"paper-field-label",for:"expirationDate"},"Expires",-1)),P(n("input",{class:R(["form-control",{"is-invalid":e.anonymize?.expirationDate?.invalid}]),type:"date",name:"expirationDate",id:"expirationDate",required:"",min:e.minExpirationDate,max:e.maxExpirationDate},null,10,q6),[[u,{state:e.viewState,set:c=>{e.options.expirationDate=c},value:e.options?.expirationDate,form:"anonymize",options:{}}]]),e.fmt?.dateEcho(e.options?.expirationDate)?(a(),l("p",L6,"Expires "+d(e.fmt?.dateEcho(e.options?.expirationDate)),1)):f("v-if",!0),P(n("div",_6,"Pick a date in the future.",512),[[Q,e.anonymize?.expirationDate?.errors?.min]]),P(n("div",{class:"invalid-feedback"},"Pick a date on or before "+d(e.fmt?.date(e.maxExpirationDate))+".",513),[[Q,e.anonymize?.expirationDate?.errors?.max]]),P(n("div",$6,"Enter a valid expiration date.",512),[[Q,e.anonymize?.expirationDate?.errors?.required||e.anonymize?.expirationDate?.errors?.date]])])):f("v-if",!0),n("div",F6,[t[166]||(t[166]=n("label",{for:"expiration"},"Then",-1)),P(n("select",{id:"expiration",class:"form-control","onUpdate:modelValue":t[34]||(t[34]=c=>e.options.expirationMode=c)},[...t[165]||(t[165]=[n("option",{value:"remove"},"Remove content",-1),n("option",{value:"redirect"},"Redirect to GitHub",-1)])],512),[[Nt,e.options.expirationMode]])])])):f("v-if",!0),e.detectedType==="repo"?(a(),l("label",U6,[n("input",{type:"radio",name:"expiration-choice",checked:e.options.expirationMode==="never",onChange:t[35]||(t[35]=c=>e.options.expirationMode="never"),disabled:e.billingPending},null,40,B6),n("span",null,[t[167]||(t[167]=m("Never expire",-1)),(e.options.expirationMode!=="never"||e.hasAuthorHosting()||e.repositoryGrants("repo_never").length)&&!(e.hostingNeedsPayment()&&e.hostingOptionPlans().length)?(a(),l("small",z6,d(e.neverExpireTag()),1)):f("v-if",!0)])])):f("v-if",!0)]),e.options.expirationMode==="redirect"?(a(),l("p",H6,"Visitors will be redirected to the original GitHub source on this date, revealing its identity.")):f("v-if",!0),e.detectedType==="repo"&&e.billing?.enabled?(a(),l("div",j6,[e.taskValidationError?(a(),l("p",G6,d(e.taskValidationError),1)):f("v-if",!0),e.billingError?(a(),l("p",W6,[m(d(e.billingError)+" ",1),n("button",{type:"button",class:"task-text-button",onClick:t[36]||(t[36]=c=>e.loadBilling()),disabled:e.billingBusy},"Reload billing",8,K6)])):f("v-if",!0),e.billingPending?(a(),l("div",Y6,[...t[169]||(t[169]=[n("p",null,[n("strong",null,"Confirming your payment\u2026")],-1),n("p",{class:"form-text text-muted"},"Your draft is saved. Please do not pay again.",-1)])])):e.billingNotice?(a(),l("p",J6,d(e.billingNotice),1)):e.options.expirationMode==="never"&&!e.billingPending&&!e.hasAuthorHosting()&&e.repositoryGrants("repo_never").length?(a(),l("p",X6,"No scheduled expiration. Paid once for this repository.")):e.options.expirationMode==="never"&&!e.billingPending?(a(),l("p",Q6,"No scheduled expiration while subscribed. A 90-day grace period applies if paid access ends.")):f("v-if",!0),e.isUpdate&&e.role==="owner"&&!e.hasAuthorHosting()&&!e.hostingNeedsPayment()&&e.repositoryAddonPlans().length?(a(),l("details",Z6,[t[170]||(t[170]=n("summary",null,"Pay once for just this repository",-1)),(a(!0),l(V,null,X(e.repositoryAddonPlans(),c=>(a(),l("div",{key:c.id},[n("p",null,[n("strong",null,d(c.name),1),m(" \xB7 "+d(e.billingPrice(c))+". "+d(c.description),1)]),n("button",{type:"button",class:"btn btn-outline-ink",disabled:e.billingBusy||e.hostingSaving||e.sourceLoading||e.billing.checkoutEnabled===!1||e.billingPending,onClick:v=>e.checkoutRepository(c.id)},"Buy "+d(c.name.toLowerCase()),9,x6)]))),128))])):f("v-if",!0)])):f("v-if",!0)],512),[[Q,e.detectedType&&e.sourceReady()]]),P(n("section",eM,[t[175]||(t[175]=n("h2",{class:"paper-section-eyebrow"},"Co-authors",-1)),t[176]||(t[176]=n("p",{class:"form-text text-muted",style:{"margin-bottom":"8px"}}," Co-authors can view and edit these settings. They cannot delete the anonymization or manage co-authors. ",-1)),P(n("div",tM,[t[172]||(t[172]=n("label",{class:"paper-field-label",for:"coauthorSearch"},"Add a GitHub user",-1)),n("div",nM,[P(n("input",oM,null,512),[[u,{state:e.viewState,set:c=>{e.coauthorSearch=c},value:e.coauthorSearch,form:"anonymize",options:{debounce:300},change:()=>{e.searchCoauthors()}}]]),P(n("div",sM,[(a(!0),l(V,null,X(e.coauthorResults,(c,v)=>(a(),l("a",{href:"#",class:"dropdown-item d-flex align-items-center",onClick:de(h=>e.addCoauthor(c,h),["prevent"])},[n("img",{alt:"",style:{width:"22px",height:"22px","border-radius":"50%","margin-right":"8px"},src:e.safeUrl(c?.photo)},null,8,rM),n("span",{textContent:d(c?.username)},null,8,aM)],8,iM))),256))],512),[[Q,e.coauthorResults?.length>0]])]),P(n("small",{class:"form-text text-muted",textContent:d(e.coauthorError)},null,8,lM),[[Q,e.coauthorError]])],512),[[Q,e.role==="owner"||e.role==="admin"]]),n("div",dM,[(a(!0),l(V,null,X(e.coauthors,(c,v)=>(a(),l("div",uM,[c?.photo?(a(),l("img",{key:0,alt:"",style:{width:"24px",height:"24px","border-radius":"50%"},src:e.safeUrl(c?.photo)},null,8,cM)):f("v-if",!0),n("a",{target:"_blank",textContent:d(c?.username),href:e.safeUrl("https://github.com/"+c?.username)},null,8,pM),t[174]||(t[174]=n("span",{class:"type-badge type-coauthor"},"Co-author",-1)),P(n("button",{type:"button",class:"btn btn-sm btn-icon",style:{"margin-left":"auto"},title:"Remove co-author",onClick:h=>e.removeCoauthor(c),"aria-label":"Remove co-author"},[...t[173]||(t[173]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,fM),[[Q,e.role==="owner"||e.role==="admin"]])]))),256)),P(n("div",mM," No co-authors yet. ",512),[[Q,!e.coauthors||e.coauthors?.length===0]])])],512),[[Q,e.isUpdate&&e.detectedType==="repo"]]),e.error?(a(),l("div",{key:0,class:"alert alert-danger",role:"alert",textContent:d(e.error)},null,8,hM)):f("v-if",!0)]),n("button",{type:"button",class:"btn btn-outline-ink mobile-preview-jump",onClick:t[37]||(t[37]=c=>e.selectMobilePane("preview"))},[...t[177]||(t[177]=[m("Review preview ",-1),n("span",{"aria-hidden":"true"},"\u2192",-1)])]),P(n("div",gM,[e.detectedType==="repo"?(a(),l(V,{key:0},[e.billingPending?(a(),l("button",{key:0,type:"button",class:"btn btn-ink",onClick:t[38]||(t[38]=c=>e.refreshBilling()),disabled:e.billingBusy},"Check payment status",8,vM)):(a(),l("button",{key:1,type:"submit",class:"btn btn-ink",disabled:e.sourceLoading||!e.sourceReady()||e.billingBusy||e.hostingSaving||e.billingLoading||e.hostingNeedsPayment()&&(!e.authorPlans().length&&!e.hostingOneTime()||e.billing?.checkoutEnabled===!1),onClick:t[39]||(t[39]=de(c=>e.submitForm(c,()=>{e.submitRepository(c)}),["prevent"]))},d(e.hostingSaving?"Saving draft\u2026":e.hostingNeedsPayment()?"Continue to checkout":e.isUpdate?"Save changes":"Create anonymous link"),9,yM))],64)):f("v-if",!0),e.detectedType==="pr"&&!e.isUpdate?(a(),l("button",{key:1,type:"submit",disabled:e.sourceLoading||!e.details,class:"btn btn-ink",onClick:t[40]||(t[40]=de(c=>e.submitForm(c,()=>{e.anonymizePullRequest(c)}),["prevent"]))}," Create anonymous link ",8,bM)):f("v-if",!0),e.detectedType==="pr"&&e.isUpdate?(a(),l("button",{key:2,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[41]||(t[41]=de(c=>e.submitForm(c,()=>{e.anonymizePullRequest(c)}),["prevent"]))}," Save changes ",8,wM)):f("v-if",!0),e.detectedType==="gist"&&!e.isUpdate?(a(),l("button",{key:3,type:"submit",disabled:e.sourceLoading||!e.details,class:"btn btn-ink",onClick:t[42]||(t[42]=de(c=>e.submitForm(c,()=>{e.anonymizeGist(c)}),["prevent"]))}," Create anonymous link ",8,kM)):f("v-if",!0),e.detectedType==="gist"&&e.isUpdate?(a(),l("button",{key:4,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[43]||(t[43]=de(c=>e.submitForm(c,()=>{e.anonymizeGist(c)}),["prevent"]))}," Save changes ",8,CM)):f("v-if",!0),e.submitBlockedReason()?(a(),l("p",SM,d(e.submitBlockedReason()),1)):f("v-if",!0),e.hostingNeedsPayment()&&!e.billingPending?(a(),l("p",EM,"You pay in Stripe, then come back here to finish.")):f("v-if",!0),e.draftRestored?(a(),l("div",NM,[t[178]||(t[178]=m("Your unsaved draft was restored. ",-1)),n("button",{type:"button",class:"draft-discard",onClick:t[44]||(t[44]=c=>e.discardDraft())},"Discard draft")])):e.unsavedChanges&&e.sourceReady()?(a(),l("div",RM,[m(d(e.draftSaved?"Draft saved \xB7":"Unsaved changes \xB7")+" ",1),n("button",{type:"button",class:"draft-discard",onClick:t[45]||(t[45]=c=>e.discardDraft())},d(e.isUpdate?"Restore saved":"Discard"),1)])):f("v-if",!0)],512),[[Q,e.detectedType]])])),[[p,e.viewState]])],8,LO),f(' Preview column (right): "What reviewers will see", a miniature reviewer window '),e.detectedType?(a(),l("div",{key:0,id:"workspace-preview",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-preview-tab":null,class:"anonymize-preview-col reviewer-preview"},[n("div",PM,[t[181]||(t[181]=n("span",{class:"rp-title"},"What reviewers will see",-1)),e.detectedType==="repo"&&e.details?(a(),l("button",{key:0,type:"button",class:"rp-open",onClick:t[46]||(t[46]=c=>e.previewViewer.sidebarCollapsed=!e.previewViewer.sidebarCollapsed),"aria-expanded":!e.previewViewer.sidebarCollapsed,"aria-controls":"preview-file-tree"},"Files",8,DM)):f("v-if",!0),e.previewStatus==="ready"&&e.previewRedactions()>0?(a(),l("span",{key:1,class:"rp-count",title:e.previewRedactions()+" redacted terms in this preview"},[n("span",IM,[n("i",null,d(e.previewRedactions()),1)]),t[179]||(t[179]=m(" redacted",-1))],8,AM)):e.previewStatus==="ready"&&!String(e.terms||"").trim()?(a(),l("span",OM,"No terms yet")):e.previewStatus==="ready"&&e.previewPreserved()?(a(),l("button",{key:3,type:"button",class:"rp-count rp-count-none",onClick:t[47]||(t[47]=c=>e.openPreserveFiles()),title:"Change it in Leave files unredacted"},d(e.previewName(e.previewFile?e.previewFile.slice(e.previewFile.lastIndexOf("/")+1):e.readmeName()))+" left unredacted",1)):f("v-if",!0),t[182]||(t[182]=n("span",{class:"rp-spacer"},null,-1)),e.isUpdate&&e.previewUrl()?(a(),l("a",{key:4,class:"rp-open is-external",href:e.safeUrl(e.previewPath()),target:"_blank",rel:"noopener"},[...t[180]||(t[180]=[m("Open reviewer page ",-1),n("span",{"aria-hidden":"true"},"\u2197",-1)])],8,MM)):(a(),l("button",{key:5,type:"button",class:"rp-open is-toggle",onClick:t[48]||(t[48]=c=>e.previewExpanded=!e.previewExpanded),"aria-pressed":!!e.previewExpanded},[(a(),l("svg",qM,[e.previewExpanded?(a(),l("path",_M)):(a(),l("path",LM))])),m(d(e.previewExpanded?"Back to settings":"Expand preview"),1)],8,VM))]),n("div",$M,[n("div",FM,[t[183]||(t[183]=n("i",null,null,-1)),t[184]||(t[184]=n("i",null,null,-1)),t[185]||(t[185]=n("i",null,null,-1)),n("span",UM,d(e.previewUrl()||"anonymous.4open.science"),1)]),n("div",BM,[t[186]||(t[186]=n("span",{class:"vb-logo"},[m("Anonymous "),n("em",null,"GitHub")],-1)),e.previewId()?(a(),l("span",zM,d(e.previewId()),1)):f("v-if",!0),e.detectedType!=="repo"?(a(),l("span",HM,d(e.detectedType==="pr"?"Pull request":"Gist"),1)):f("v-if",!0)]),n("div",{class:R(["rp-body",{"reviewer-explorer":e.detectedType==="repo","no-tree":e.detectedType==="repo"&&!e.details}])},[e.detectedType==="repo"?P((a(),l("aside",{key:0,id:"preview-file-tree",class:R(["leftCol",{collapsed:e.previewViewer.sidebarCollapsed}]),"aria-label":"Files reviewers will see"},[n("div",jM,[t[188]||(t[188]=n("span",{class:"leftCol-eyebrow"},"Files",-1)),n("button",{type:"button",class:"leftCol-close","aria-label":"Close files",onClick:t[49]||(t[49]=c=>e.previewViewer.sidebarCollapsed=!0)},[...t[187]||(t[187]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])])]),n("div",GM,[Me(s,{class:"files",file:e.previewTreeFiles(),page:e.previewViewer,"selected-path":"/"+e.previewPathName(e.previewOpenPath()),onSelect:t[50]||(t[50]=c=>e.selectPreviewPath(c))},null,8,["file","page","selected-path"])])],2)),[[Q,e.details]]):f("v-if",!0),e.detectedType==="repo"?P((a(),l("div",{key:1,class:"leftCol-backdrop",onClick:t[51]||(t[51]=c=>e.previewViewer.sidebarCollapsed=!0)},null,512)),[[Q,!e.previewViewer.sidebarCollapsed]]):f("v-if",!0),n("div",{class:R(e.detectedType==="repo"?"explorer-main":"rp-main")},[n("div",{class:R(e.detectedType==="repo"?"explorer-content":"rp-document")},[f(" Loading: skeleton inside the window "),e.previewStatus==="loading"||e.sourceLoading&&e.previewStatus!=="ready"&&e.previewStatus!=="error"?(a(),l("div",WM,[n("span",KM,d(e.previewDoc.loading?"Loading "+e.previewName(e.previewFile.slice(e.previewFile.lastIndexOf("/")+1))+" from GitHub\u2026":e.previewStatus==="loading"?"Updating the anonymized preview\u2026":e.detectedType==="pr"?"Loading the pull request from GitHub\u2026":e.detectedType==="gist"?"Loading the gist from GitHub\u2026":"Loading the repository from GitHub\u2026"),1),t[189]||(t[189]=Ce('',7))])):!e.details&&e.sourceProblem()?(a(),l(V,{key:1},[f(" The source itself could not be loaded: the form's message, with the same actions "),n("div",YM,[n("strong",null,d(e.sourceProblem().title),1),n("p",null,d(e.sourceProblem().text),1),e.sourceProblem().manage||e.sourceProblem().retry||e.sourceProblem().dashboard?(a(),l("div",JM,[e.sourceProblem().manage==="app"?(a(),l("button",{key:0,type:"button",class:"btn btn-ink btn-sm",onClick:t[52]||(t[52]=c=>e.grantGitHubAccess())},[...t[190]||(t[190]=[m("Manage GitHub access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])])):f("v-if",!0),e.sourceProblem().manage==="link"?(a(),l("a",XM,"Manage GitHub access")):f("v-if",!0),e.sourceProblem().dashboard?(a(),l("a",QM,"Open My work")):f("v-if",!0),e.sourceProblem().retry?(a(),l("button",{key:3,type:"button",class:"btn btn-outline-ink btn-sm",onClick:t[53]||(t[53]=c=>e.urlSelected(!0))},"Try again")):f("v-if",!0)])):f("v-if",!0)])],2112)):e.previewStatus==="error"&&e.previewDoc.loadError?(a(),l(V,{key:2},[f(" The open file could not be read from GitHub "),n("div",ZM,[n("strong",null,"Couldn't load "+d(e.previewName(e.previewFile.slice(e.previewFile.lastIndexOf("/")+1))),1),n("p",null,d(e.previewDoc.loadError),1),n("div",xM,[n("button",{class:"btn btn-ink btn-sm",type:"button",onClick:t[54]||(t[54]=c=>e.retryPreview())},"Retry"),n("button",{class:"btn btn-outline-ink btn-sm",type:"button",onClick:t[55]||(t[55]=c=>e.openPreviewFile(""))},"Back to the README")])])],2112)):e.previewStatus==="error"?(a(),l(V,{key:3},[f(" The anonymized preview failed "),n("div",eV,[t[191]||(t[191]=n("strong",null,"Couldn't apply the redactions",-1)),t[192]||(t[192]=n("p",null,"Unable to generate the anonymized preview. The latest redactions have not been verified.",-1)),n("div",tV,[n("button",{class:"btn btn-ink btn-sm",type:"button",onClick:t[56]||(t[56]=c=>e.retryPreview())},"Retry preview")])])],2112)):e.detectedType==="repo"&&!e.previewFile&&!e.readme&&e.previewStatus==="idle"?(a(),l("div",nV,[...t[193]||(t[193]=[n("strong",null,"No README",-1),n("p",null,"Reviewers land on the file list. Open the files you will share and check them before sending the link.",-1)])])):e.detectedType==="repo"&&e.previewStatus==="ready"?(a(),Jt(i,{key:5,name:"partials/pageView.htm",state:e.previewViewer},null,8,["state"])):e.detectedType==="gist"&&e.previewStatus==="ready"?(a(),l("div",oV,[n("div",sV,[n("h2",iV,[e.options?.title?(a(),l("span",rV,d(e.anonymizeGistContent(e.details?.gist?.description)||"Untitled gist"),1)):f("v-if",!0),n("span",{class:R(["badge",{"badge-success":e.details?.gist?.isPublic,"badge-secondary":!e.details?.gist?.isPublic}])},d(e.details?.gist?.isPublic?"public":"secret"),3)]),e.options?.date?(a(),l("small",{key:0,textContent:d(e.fmt?.date(e.details?.gist?.updatedDate))},null,8,aV)):f("v-if",!0)]),e.options?.origin?(a(),l("small",lV,"Gist ID: "+d(e.details?.source?.gistId),1)):f("v-if",!0),e.options?.username&&e.details?.gist?.ownerLogin?(a(),l("small",dV,"By @"+d(e.anonymizeGistContent(e.details?.gist?.ownerLogin)),1)):f("v-if",!0),e.options?.content&&e.previewGistFiles?.length?(a(),l("div",uV,[n("ul",cV,[(a(!0),l(V,null,X(e.previewGistFiles,(c,v)=>(a(),l("li",pV,[n("div",fV,[n("strong",{textContent:d(c?.filename)},null,8,mV),c?.language?(a(),l("span",hV,d(c?.language),1)):f("v-if",!0)]),Me(o,{file:c,terms:e.terms,options:e.options},null,8,["file","terms","options"])]))),256))])])):f("v-if",!0),e.options?.comments&&e.details?.gist?.comments&&e.details?.gist?.comments?.length?(a(),l("div",gV,[t[196]||(t[196]=n("h3",{class:"paper-section-eyebrow mt-3"},"Comments",-1)),n("ul",vV,[(a(!0),l(V,null,X(e.details?.gist?.comments,(c,v)=>(a(),l("li",yV,[n("div",bV,[e.options?.username?(a(),l("span",wV,[t[194]||(t[194]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})],-1)),t[195]||(t[195]=m(" @",-1)),n("span",{textContent:d(e.anonymizeGistContent(c?.author))},null,8,kV)])):f("v-if",!0),e.options?.date?(a(),l("span",{key:1,class:"pr-comment-date",textContent:d(e.fmt?.date(c?.updatedDate))},null,8,CV)):f("v-if",!0)]),e.options?.body?(a(),l("div",SV,[Me(r,{content:e.anonymizeGistContent(c?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):f("v-if",!0)]))),256))])])):f("v-if",!0)])):e.detectedType==="pr"&&e.previewStatus==="ready"?(a(),l("div",EV,[n("div",NV,[n("h2",RV,[e.options?.title?(a(),l("span",TV,d(e.anonymizePrContent(e.details?.pullRequest?.title)),1)):f("v-if",!0),n("span",{class:R(["badge",{"badge-success":e.details?.pullRequest?.merged,"badge-warning":e.details?.pullRequest?.state=="open","badge-danger":e.details?.pullRequest?.state=="closed"&&!e.details?.pullRequest?.merged}])},d(e.fmt?.title(e.details?.pullRequest?.merged?"merged":e.details?.pullRequest?.state)),3)]),e.options?.date?(a(),l("small",{key:0,textContent:d(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,PV)):f("v-if",!0)]),e.options?.origin?(a(),l("small",DV,"Pull Request on "+d(e.details?.pullRequest?.baseRepositoryFullName),1)):f("v-if",!0),e.options?.body?(a(),l("div",AV,[Me(r,{content:e.anonymizePrContent(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):f("v-if",!0),e.options?.diff||e.options?.comments?(a(),l("nav",IV,[e.options?.diff?(a(),l("button",{key:0,class:R(["paper-tab",{active:e.prTabState?.active=="diff"}]),type:"button",role:"tab",id:"preview-pr-diff-tab","aria-selected":e.prTabState?.active==="diff","aria-controls":"preview-pr-diff-panel",tabindex:e.prTabState?.active==="diff"?0:-1,onKeydown:t[57]||(t[57]=c=>e.previewTabKeydown(c)),onClick:t[58]||(t[58]=c=>e.prTabState.active="diff")},[...t[197]||(t[197]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),m(" Diff ",-1)])],42,OV)):f("v-if",!0),e.options?.comments?(a(),l("button",{key:1,class:R(["paper-tab",{active:e.prTabState?.active=="comments"}]),type:"button",role:"tab",id:"preview-pr-comments-tab","aria-selected":e.prTabState?.active==="comments","aria-controls":"preview-pr-comments-panel",tabindex:e.prTabState?.active==="comments"?0:-1,onKeydown:t[59]||(t[59]=c=>e.previewTabKeydown(c)),onClick:t[60]||(t[60]=c=>e.prTabState.active="comments")},[t[198]||(t[198]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1)),n("span",{textContent:d(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,VV)],42,MV)):f("v-if",!0)])):f("v-if",!0),!e.options?.diff&&!e.options?.comments?(a(),l("div",qV,"Diff and comments are hidden by your display settings.")):f("v-if",!0),n("div",LV,[e.options?.diff&&e.prTabState?.active=="diff"?(a(),l("div",_V,[n("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.anonymizePrContent(e.details?.pullRequest?.diff)))},null,8,$V)])):f("v-if",!0),e.options?.comments&&e.prTabState?.active=="comments"?(a(),l("div",FV,[n("ul",UV,[(a(!0),l(V,null,X(e.details?.pullRequest?.comments,(c,v)=>(a(),l("li",BV,[n("div",zV,[e.options?.username?(a(),l("span",HV,[t[199]||(t[199]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})],-1)),t[200]||(t[200]=m(" @",-1)),n("span",{textContent:d(e.anonymizePrContent(c?.author))},null,8,jV)])):f("v-if",!0),e.options?.date?(a(),l("span",{key:1,class:"pr-comment-date",textContent:d(e.fmt?.date(c?.updatedDate))},null,8,GV)):f("v-if",!0)]),e.options?.body?(a(),l("div",WV,[Me(r,{content:e.anonymizePrContent(c?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):f("v-if",!0)]))),256))])])):f("v-if",!0)])])):f("v-if",!0),f(" More below: a fade with a way to keep reading (hidden by CSS once the window is scrolled to the end) "),e.previewStatus==="ready"&&!(e.detectedType==="repo"&&e.previewFile&&e.previewDoc.note)?(a(),l("div",KV,[e.isUpdate&&e.previewUrl()?(a(),l("a",{key:0,class:"rp-more-btn",href:e.safeUrl(e.previewPath()),target:"_blank",rel:"noopener"},[...t[201]||(t[201]=[m("Continue reading on the reviewer page ",-1),n("span",{"aria-hidden":"true"},"\u2197",-1)])],8,YV)):e.previewExpanded?(a(),l("span",JV,"Scroll for more")):(a(),l("button",{key:1,type:"button",class:"rp-more-btn",onClick:t[61]||(t[61]=c=>e.previewExpanded=!0)},"Continue reading in the expanded preview"))])):f("v-if",!0)],2)],2)],2)])],8,TM)):f("v-if",!0)])],512),[[Q,e.workspaceOpen||e.isUpdate]])],2)}var XV={class:"container-fluid h-100 anonymize-page"},QV={class:"row h-100 flex-column flex-md-row"},ZV={class:"col-md sidePanel shadow overflow-auto anonymize-form-col"},xV={class:"form-group"},eq={class:"form-group"},tq={class:"form-check"},nq={class:"form-check-input",type:"checkbox",id:"update",name:"update"},oq={class:"form-group"},sq={class:"form-text text-muted"},iq=["href"],rq={class:"invalid-feedback"},aq={class:"form-text text-muted"},lq={class:"form-group"},dq={id:"idHelp",class:"form-text text-muted"},uq={class:"invalid-feedback"},cq={class:"form-group"},pq={class:"invalid-feedback"},fq={class:"form-group"},mq={class:"form-control",id:"expiration",name:"expiration"},hq={class:"form-group",id:"expiration-date-form"},gq={class:"form-control",type:"date",name:"expirationDate",id:"expirationDate"},vq={key:0,class:"date-echo","aria-live":"polite"},yq={class:"accordion mb-3",id:"options"},bq={class:"card"},wq={id:"collapseOne",class:"collapse show","aria-labelledby":"headingOne","data-parent":"#options"},kq={class:"card-body"},Cq={class:"form-group mb-0"},Sq={class:"form-check"},Eq={class:"form-check-input",type:"checkbox",id:"link",name:"link"},Nq={class:"form-check"},Rq={class:"form-check-input",type:"checkbox",id:"image",name:"image"},Tq={class:"form-check"},Pq={class:"form-check-input",type:"checkbox",id:"date",name:"date"},Dq={class:"form-check"},Aq={class:"form-check-input",type:"checkbox",id:"username",name:"username"},Iq={class:"form-check"},Oq={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},Mq={class:"form-check"},Vq={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},qq={class:"form-check"},Lq={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},_q={class:"form-check"},$q={class:"form-check-input",type:"checkbox",id:"title",name:"title"},Fq={class:"form-check"},Uq={class:"form-check-input",type:"checkbox",id:"body",name:"body"},Bq=["textContent"],zq={class:"anonymize-submit-bar"},Hq={key:0,class:"col-md-8 p-2 overflow-auto anonymize-preview-col"},jq={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},Gq={class:"pr-title mb-1"},Wq={key:0},Kq=["textContent"],Yq={key:0},Jq={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},Xq={class:"nav nav-tabs",id:"myTab",role:"tablist"},Qq={key:0,class:"nav-item",role:"presentation"},Zq={key:1,class:"nav-item",role:"presentation"},xq=["textContent"],eL={class:"tab-content",id:"pills-tabContent"},tL={class:"tab-pane show active",id:"pills-diff",role:"tabpanel","aria-labelledby":"pills-diff-tab"},nL={key:0,class:"pr-diff shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},oL={style:{"overflow-x":"auto"}},sL=["innerHTML"],iL={key:0,class:"pr-comments list-group"},rL={class:"pr-comment list-group-item"},aL={class:"d-flex w-100 justify-content-between flex-wrap"},lL={key:0,class:"mb-1"},dL=["textContent"],uL={class:"mb-1"};function yp(e,t){let s=Qe("markdown"),i=Pe("field"),o=Pe("form");return a(),l("div",XV,[n("div",QV,[n("div",ZV,[n("div",{class:R(["p-0 py-2 m-auto",{card:!e.pullRequestUrl,container:e.pullRequestUrl}])},[P((a(),l("form",{class:R(["form needs-validation",{"card-body":!e.pullRequestUrl}]),name:"anonymizeForm",novalidate:""},[t[30]||(t[30]=Ce('
Anonymize \xA0/\xA0 Pull request

Anonymize a pull request

Fill in the details \u2014 it only takes a minute.

Source
',4)),f(" pullRequestUrl "),n("div",xV,[t[2]||(t[2]=n("label",{for:"pullRequestUrl"},"URL of your pull request",-1)),P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.anonymize?.pullRequestUrl?.invalid}]),name:"pullRequestUrl",id:"pullRequestUrl",placeholder:"https://github.com/owner/repo/pull/123"},null,2),[[i,{state:e.viewState,set:r=>{e.pullRequestUrl=r},value:e.pullRequestUrl,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.pullRequestSelected()}}]]),P(n("div",{class:"invalid-feedback"},d(e.pullRequestUrl)+" is not accessible. Some organizations are restricting the access to the repositories. ",513),[[Q,e.anonymize?.pullRequestUrl?.errors?.access]]),P(n("div",{class:"invalid-feedback"},d(e.pullRequestUrl)+" does not exist or is not accessible ",513),[[Q,e.anonymize?.pullRequestUrl?.errors?.missing]]),P(n("div",{class:"invalid-feedback"},d(e.pullRequestUrl)+" is already anonymized ",513),[[Q,e.anonymize?.pullRequestUrl?.errors?.used]])]),P(n("div",null,[n("div",eq,[n("div",tq,[P(n("input",nq,null,512),[[i,{state:e.viewState,set:r=>{e.options.update=r},value:e.options?.update,form:"anonymizeForm",options:{}}]]),t[3]||(t[3]=n("label",{class:"form-check-label",for:"update"},"Auto update",-1)),t[4]||(t[4]=n("small",{id:"updateHelp",class:"form-text text-muted"},"Automatically update the anonymized pull request with the latest updates. The pull request is updated once per day maximum.",-1))])]),t[26]||(t[26]=n("div",{class:"paper-section-eyebrow anonymize-section-title"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})]),m(" Conference ID ")],-1)),f(" Conference "),n("div",oq,[t[5]||(t[5]=n("label",{for:"conference"},[m("Conference ID "),n("span",{class:"text-muted"},"(Optional)")],-1)),P(n("input",{class:R(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[i,{state:e.viewState,set:r=>{e.conference=r},value:e.conference,form:"anonymizeForm",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),P(n("small",sq,[n("a",{target:"_target",href:e.safeUrl(e.conference_data?.url)},d(e.conference_data?.name),9,iq),m(" will expire on "+d(e.fmt?.date(e.conference_data?.endDate))+".",1)],512),[[Q,e.conference_data]]),P(n("div",rq," The conference is not activated. ",512),[[Q,e.anonymize?.conference?.errors?.activated]]),P(n("small",aq," Use the Conference ID that your conference provided you. This will update automatically the anonymization options based on the conference preferences. ",512),[[Q,!e.conference_data]])]),t[27]||(t[27]=n("div",{class:"paper-section-eyebrow anonymize-section-title"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})]),m(" Anonymization Options ")],-1)),f(" Pull Request ID "),n("div",lq,[t[6]||(t[6]=n("label",{for:"pullRequestId"},"Anonymized pull request id",-1)),P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId"},null,2),[[i,{state:e.viewState,set:r=>{e.pullRequestId=r},value:e.pullRequestId,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),n("small",dq,"Id used in the url: https://anonymous.4open.science/r/"+d(e.pullRequestId),1),P(n("div",uq," Repository id can only contain letters and numbers ",512),[[Q,e.anonymize?.pullRequestId?.errors?.format]]),P(n("div",{class:"invalid-feedback"},d(e.pullRequestId)+" is already used ",513),[[Q,e.anonymize?.pullRequestId?.errors?.used]])]),f(" Terms "),n("div",cq,[t[7]||(t[7]=n("label",{for:"terms"},"Terms to anonymize",-1)),P(n("textarea",{class:R(["form-control",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:"3"},null,2),[[i,{state:e.viewState,set:r=>{e.terms=r},value:e.terms,form:"anonymizeForm",options:{debounce:250}}]]),t[8]||(t[8]=n("small",{id:"termsHelp",class:"form-text text-muted"},"One term per line. Each term will be replaced by XXX.",-1)),P(n("div",pq," Terms are in an invalid format ",512),[[Q,e.anonymize?.terms?.errors?.format]])]),n("div",fq,[t[10]||(t[10]=n("label",{for:"expiration"},"Expiration strategy",-1)),P((a(),l("select",mq,[...t[9]||(t[9]=[n("option",{value:"never",selected:""},"Never expire",-1),n("option",{value:"redirect"}," Redirect to GitHub when expired ",-1),n("option",{value:"remove"},"Remove when expired",-1)])])),[[i,{state:e.viewState,set:r=>{e.options.expirationMode=r},value:e.options?.expirationMode,form:"anonymizeForm",options:{}}]]),t[11]||(t[11]=n("small",{class:"form-text text-muted"},"Define the expiration strategy for the anonymized repository.",-1))]),P(n("div",hq,[t[12]||(t[12]=n("label",{for:"expirationDate"},"Expiration date of the anonymized repository",-1)),P(n("input",gq,null,512),[[i,{state:e.viewState,set:r=>{e.options.expirationDate=r},value:e.options?.expirationDate,form:"anonymizeForm",options:{}}]]),e.fmt?.dateEcho(e.options?.expirationDate)?(a(),l("p",vq,"Expires "+d(e.fmt?.dateEcho(e.options?.expirationDate)),1)):f("v-if",!0),P(n("small",{class:"form-text text-muted"},"After "+d(e.fmt?.date(e.options?.expirationDate))+", the repository will be removed and the visitor will not be able to see the content of the repository.",513),[[Q,e.options?.expirationMode=="remove"]]),P(n("small",{class:"form-text text-muted"},"After "+d(e.fmt?.date(e.options?.expirationDate))+", the visitors of the anonymized repository will be redirected to "+d(e.pullRequestUrl)+".",513),[[Q,e.options?.expirationMode=="redirect"]])],512),[[Q,e.options?.expirationMode!="never"]]),n("div",yq,[n("div",bq,[t[25]||(t[25]=Ce('

',1)),n("div",wq,[n("div",kq,[n("div",Cq,[n("div",Sq,[P(n("input",Eq,null,512),[[i,{state:e.viewState,set:r=>{e.options.link=r},value:e.options?.link,form:"anonymizeForm",options:{}}]]),t[13]||(t[13]=n("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[14]||(t[14]=n("small",{class:"form-text text-muted"},"Keep or remove all the links.",-1))]),n("div",Nq,[P(n("input",Rq,null,512),[[i,{state:e.viewState,set:r=>{e.options.image=r},value:e.options?.image,form:"anonymizeForm",options:{}}]]),t[15]||(t[15]=n("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[16]||(t[16]=n("small",{class:"form-text text-muted"},"Images are not anonymized",-1))]),n("div",Tq,[P(n("input",Pq,null,512),[[i,{state:e.viewState,set:r=>{e.options.date=r},value:e.options?.date,form:"anonymizeForm",options:{}}]]),t[17]||(t[17]=n("label",{class:"form-check-label",for:"date"},"Display dates",-1)),t[18]||(t[18]=n("small",{class:"form-text text-muted"},"Display the date of the Pull Request and the date of the comments.",-1))]),n("div",Dq,[P(n("input",Aq,null,512),[[i,{state:e.viewState,set:r=>{e.options.username=r},value:e.options?.username,form:"anonymizeForm",options:{}}]]),t[19]||(t[19]=n("label",{class:"form-check-label",for:"username"},"Display username",-1))]),n("div",Iq,[P(n("input",Oq,null,512),[[i,{state:e.viewState,set:r=>{e.options.comments=r},value:e.options?.comments,form:"anonymizeForm",options:{}}]]),t[20]||(t[20]=n("label",{class:"form-check-label",for:"comments"},"Display comments",-1))]),n("div",Mq,[P(n("input",Vq,null,512),[[i,{state:e.viewState,set:r=>{e.options.diff=r},value:e.options?.diff,form:"anonymizeForm",options:{}}]]),t[21]||(t[21]=n("label",{class:"form-check-label",for:"diff"},"Display diff",-1))]),n("div",qq,[P(n("input",Lq,null,512),[[i,{state:e.viewState,set:r=>{e.options.origin=r},value:e.options?.origin,form:"anonymizeForm",options:{}}]]),t[22]||(t[22]=n("label",{class:"form-check-label",for:"origin"},"Display the project name",-1))]),n("div",_q,[P(n("input",$q,null,512),[[i,{state:e.viewState,set:r=>{e.options.title=r},value:e.options?.title,form:"anonymizeForm",options:{}}]]),t[23]||(t[23]=n("label",{class:"form-check-label",for:"title"},"Display the PR title",-1))]),n("div",Fq,[P(n("input",Uq,null,512),[[i,{state:e.viewState,set:r=>{e.options.body=r},value:e.options?.body,form:"anonymizeForm",options:{}}]]),t[24]||(t[24]=n("label",{class:"form-check-label",for:"body"},"Display the PR body and comment bodies",-1))])])])])])])],512),[[Q,e.pullRequestUrl]]),e.error?(a(),l("div",{key:0,class:"alert alert-danger",role:"alert",textContent:d(e.error)},null,8,Bq)):f("v-if",!0),P(n("div",zq,[e.isUpdate?f("v-if",!0):(a(),l("button",{key:0,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[0]||(t[0]=de(r=>e.submitForm(r,()=>{e.anonymizePullRequest(r)}),["prevent"]))},[...t[28]||(t[28]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),m(" Anonymize ",-1)])])),e.isUpdate?(a(),l("button",{key:1,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[1]||(t[1]=de(r=>e.submitForm(r,()=>{e.updatePullRequest(r)}),["prevent"]))},[...t[29]||(t[29]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-save"})],-1),m(" Update ",-1)])])):f("v-if",!0)],512),[[Q,e.pullRequestUrl]])],2)),[[o,e.viewState]])],2)]),e.details?(a(),l("div",Hq,[n("div",jq,[n("h2",Gq,[e.options?.title?(a(),l("span",Wq,d(e.anonymize(e.details?.pullRequest?.title)),1)):f("v-if",!0),n("span",{class:R(["badge",{"badge-success":e.details?.pullRequest?.merged,"badge-warning":e.details?.pullRequest?.state=="open","badge-danger":e.details?.pullRequest?.state=="closed"&&!e.details?.pullRequest?.merged}])},d(e.fmt?.title(e.details?.pullRequest?.merged?"merged":e.details?.pullRequest?.state)),3)]),e.options?.date?(a(),l("small",{key:0,textContent:d(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,Kq)):f("v-if",!0)]),e.options?.origin?(a(),l("small",Yq,"Pull Request on "+d(e.details?.pullRequest?.baseRepositoryFullName),1)):f("v-if",!0),e.options?.body?(a(),l("div",Jq,[Me(s,{content:e.anonymize(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):f("v-if",!0),n("ul",Xq,[e.options?.diff?(a(),l("li",Qq,[...t[31]||(t[31]=[n("button",{class:"nav-link active",id:"pills-diff-tab","data-toggle":"pill","data-target":"#pills-diff",type:"button",role:"tab","aria-controls":"pills-diff","aria-selected":"true"}," Diff ",-1)])])):f("v-if",!0),e.options?.comments?(a(),l("li",Zq,[n("button",{class:R(["nav-link",{active:!e.options?.diff}]),id:"pills-comments-tab","data-toggle":"pill","data-target":"#pills-comments",type:"button",role:"tab","aria-controls":"pills-comments","aria-selected":"false"},[n("span",{textContent:d(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comment",one:"One Comment",other:"{} Comments"}))},null,8,xq)],2)])):f("v-if",!0)]),n("div",eL,[n("div",tL,[e.options?.diff?(a(),l("div",nL,[n("pre",oL,[n("code",{innerHTML:e.sanitize(e.fmt?.diff(e.anonymize(e.details?.pullRequest?.diff)))},null,8,sL)])])):f("v-if",!0)]),n("div",{class:R(["tab-pane",{"show active":!e.options?.diff}]),id:"pills-comments",role:"tabpanel","aria-labelledby":"pills-comments-tab"},[e.options?.comments?(a(),l("ul",iL,[(a(!0),l(V,null,X(e.details?.pullRequest?.comments,(r,u)=>(a(),l("li",rL,[n("div",aL,[e.options?.username?(a(),l("h5",lL," @"+d(e.anonymize(r?.author)),1)):f("v-if",!0),e.options?.date?(a(),l("small",{key:1,textContent:d(e.fmt?.date(r?.updatedDate))},null,8,dL)):f("v-if",!0)]),n("p",uL,[e.options?.body?(a(),Jt(s,{key:0,class:"pr-comment-body",content:e.anonymize(r?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])):f("v-if",!0)])]))),256))])):f("v-if",!0)],2)])])):f("v-if",!0)])])}var cL={class:"container paper-page claim-page"},pL={class:"paper-settings-main claim-form"},fL={class:"form-group"},mL={class:"invalid-feedback"},hL={class:"form-group"};function bp(e,t){let s=Pe("field"),i=Pe("form");return a(),l("div",cL,[t[6]||(t[6]=Ce('
My work \xA0/\xA0 Claim

Claim an anonymization

Take ownership of an existing anonymized repository so it appears on your dashboard.

',3)),n("div",pL,[t[5]||(t[5]=n("p",{class:"paper-section-copy"},"Use this when an anonymization was created by a co-author or from another account. You must have access to the GitHub repository it was made from.",-1)),P((a(),l("form",{class:"form needs-validation",name:"claimForm",novalidate:"",onSubmit:t[0]||(t[0]=de(o=>e.submitForm(o,()=>{e.claim()}),["prevent"]))},[n("div",fL,[t[1]||(t[1]=n("label",{class:"paper-field-label",for:"repoUrl"},"GitHub repository URL",-1)),P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.claimForm?.repoUrl?.invalid&&(e.claimForm?.repoUrl?.touched||e.claimForm?.submitted)}]),name:"repoUrl",id:"repoUrl",placeholder:"https://github.com/owner/repository",required:""},null,2),[[s,{state:e.viewState,set:o=>{e.repoUrl=o},value:e.repoUrl,form:"claimForm",options:{}}]]),P(n("div",mL," No anonymization matches this repository and ID. Check both values and that you can access the repository on GitHub. ",512),[[Q,e.claimForm?.repoUrl?.errors?.not_found]])]),n("div",hL,[t[2]||(t[2]=n("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.claimForm?.repoId?.invalid&&(e.claimForm?.repoId?.touched||e.claimForm?.submitted)}]),name:"repoId",id:"repoId",placeholder:"e.g. my-paper-7F2A","aria-describedby":"idHelp",required:""},null,2),[[s,{state:e.viewState,set:o=>{e.repoId=o},value:e.repoId,form:"claimForm",options:{}}]]),t[3]||(t[3]=n("small",{id:"idHelp",class:"form-text text-muted"},[m("The ID is the last part of the anonymized URL: "),n("code",null,"anonymous.4open.science/r/"),m(".")],-1))]),t[4]||(t[4]=n("button",{id:"submit",type:"submit",class:"btn btn-ink"}," Claim anonymization ",-1))],32)),[[i,e.viewState]])])])}var gL={class:"container page paper-page conference-page"},vL={class:"paper-crumbs"},yL={class:"here"},bL={class:"d-flex align-items-end flex-wrap",style:{gap:"12px","justify-content":"space-between"}},wL={class:"conf-title-row"},kL=["textContent"],CL={key:0,class:"conf-status"},SL=["textContent"],EL={key:0,class:"paper-page-lede"},NL=["textContent","href"],RL={class:"d-flex align-items-center flex-wrap",style:{gap:"10px"}},TL=["href"],PL={class:"paper-meta-rule"},DL=["textContent"],AL=["textContent"],IL={key:0},OL={key:0,class:"conference-payment-status",role:"status"},ML=["disabled"],VL={key:1,role:"alert"},qL={key:2,class:"paper-settings-section","aria-labelledby":"conference-payment-heading"},LL={key:0,role:"status"},_L={key:1,role:"alert"},$L=["onClick","disabled"],FL={class:"dashboard-meta conf-view-meta"},UL={class:"dashboard-view-tabs",role:"group","aria-label":"Repository view"},BL=["aria-pressed"],zL=["aria-pressed","aria-label"],HL=["aria-pressed"],jL={class:"attention-count"},GL={class:"dashboard-count",role:"status"},WL={class:"search-wrap"},KL={type:"search",id:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repositories\u2026",autocomplete:"off"},YL={class:"dashboard-filter-controls"},JL={class:"dropdown"},XL={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},QL={class:"filter-btn-value"},ZL={class:"dropdown-menu","aria-labelledby":"dropdownSort"},xL={class:"form-check dropdown-item"},e_={class:"form-check-input",type:"radio",name:"sort",id:"anonymizeDate",value:"-anonymizeDate"},t_={class:"form-check dropdown-item"},n_={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"repoId"},o_={class:"form-check dropdown-item"},s_={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},i_={class:"form-check dropdown-item"},r_={class:"form-check-input",type:"radio",name:"sort",id:"sortViews",value:"-pageView"},a_={class:"dashboard-page conf-rows"},l_={class:"cell-anon",role:"cell"},d_={class:"anon-text"},u_={class:"anon-title"},c_=["title","href"],p_={class:"rn-owner"},f_={class:"rn-repo"},m_={class:"anon-sub"},h_=["title"],g_={class:"id-head"},v_={class:"id-tail"},y_=["title"],b_={class:"dashboard-row-meta",role:"presentation"},w_={class:"cell-status",role:"cell"},k_={class:"status-line"},C_=["textContent"],S_=["textContent","title"],E_=["href"],N_=["onClick","disabled"],R_={key:3,class:"status-sub status-sub-date"},T_=["data-unit","aria-label"],P_={class:"cell-expires",role:"cell"},D_={key:0,class:"expires-never"},A_=["textContent"],I_={key:2,class:"expires-past"},O_={key:3,class:"empty-dash","aria-label":"Not applicable"},M_={class:"cell-actions",role:"cell"},V_=["onClick","disabled","title","aria-label"],q_={class:"sr-only","aria-live":"polite"},L_={class:"project-type-svg","aria-hidden":"true"},__=["href"],$_={class:"copy-url-label","aria-hidden":"true"},F_=["href","aria-label"],U_={class:"dropdown"},B_=["aria-label"],z_={class:"dropdown-menu dropdown-menu-right"},H_=["href"],j_=["href"],G_=["href"],W_={key:0,class:"paper-table-empty"},K_={key:0},Y_={key:1},J_={key:2,class:"paper-table-empty-actions"};function wp(e,t){let s=Pe("field"),i=Pe("form");return a(),l("div",gL,[n("div",null,[n("div",vL,[t[6]||(t[6]=n("a",{href:"/dashboard"},"My work",-1)),t[7]||(t[7]=m(" \xA0/\xA0 ",-1)),t[8]||(t[8]=n("a",{href:"/conferences"},"Conferences",-1)),t[9]||(t[9]=m(" \xA0/\xA0 ",-1)),n("span",yL,d(e.conference?.conferenceID),1)]),n("div",bL,[n("div",null,[n("div",wL,[n("h1",{class:"paper-page-title",textContent:d(e.conference?.name)},null,8,kL),e.conference?.status?(a(),l("span",CL,[n("span",{class:R(["status-dot","status-"+e.conference?.status]),"aria-hidden":"true"},null,2),n("span",{textContent:d(e.fmt?.statusLabel(e.conference?.status))},null,8,SL)])):f("v-if",!0)]),e.conference?.url?(a(),l("p",EL,[n("a",{target:"_blank",rel:"noopener",textContent:d(e.conference?.url),href:e.safeUrl(e.conference?.url)},null,8,NL)])):f("v-if",!0)]),n("div",RL,[n("a",{class:"btn btn-outline-ink",href:e.safeUrl("/conference/"+e.conference?.conferenceID+"/edit")},[...t[10]||(t[10]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),m(" Edit conference",-1)])],8,TL)])]),n("div",PL,[n("span",null,[t[11]||(t[11]=m("ID ",-1)),n("b",{class:"commit-hash",textContent:d(e.conference?.conferenceID)},null,8,DL)]),n("span",null,[t[12]||(t[12]=m("Review window ",-1)),n("b",null,d(e.fmt?.date(e.conference?.startDate,"mediumDate"))+" \u2013 "+d(e.fmt?.date(e.conference?.endDate,"mediumDate")),1)]),n("span",null,[t[13]||(t[13]=m("Repositories ",-1)),n("b",null,d(e.fmt?.number(e.conference?.repositories?.length)),1)]),n("span",null,[t[14]||(t[14]=m("Plan ",-1)),n("b",{textContent:d(e.conferencePlanName(e.conference?.plan?.planID))},null,8,AL)]),e.conference?.price?(a(),l("span",IL,[t[15]||(t[15]=m("Cost so far ",-1)),n("b",null,d(e.fmt?.money(e.conference?.price)),1)])):f("v-if",!0)]),e.billingNotice?(a(),l("div",OL,[n("p",null,d(e.billingNotice),1),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[0]||(t[0]=o=>e.refreshBilling()),disabled:e.billingBusy},"Check payment status",8,ML)])):f("v-if",!0),e.billingError&&e.conference?.status!=="pending_payment"?(a(),l("p",VL,d(e.billingError),1)):f("v-if",!0),e.conference?.status==="pending_payment"?(a(),l("section",qL,[t[16]||(t[16]=n("h2",{id:"conference-payment-heading"},"Activate your review package",-1)),t[17]||(t[17]=n("p",null,"This conference is waiting for payment. Authors can join after payment is confirmed. Checkout returns to this conference. Authors within the package do not pay separately.",-1)),e.billingLoading?(a(),l("p",LL,"Loading payment options\u2026")):f("v-if",!0),e.billingError?(a(),l("p",_L,d(e.billingError),1)):f("v-if",!0),(a(!0),l(V,null,X((e.billing?.plans||[]).filter(o=>o.id===e.conference?.plan?.planID),o=>(a(),l("div",{key:o.id},[n("p",null,[n("strong",null,d(o.name)+" package",1),m(": "+d(e.billingPrice(o))+" for up to "+d(o.repositories)+" repositories and "+d(e.billingBytes(o.storage))+" of source files during the review window. Taxes, if applicable, appear at checkout.",1)]),n("button",{type:"button",class:"btn btn-primary",onClick:r=>e.checkout(o.id,e.conference.conferenceID),disabled:e.billingBusy||e.billingPending||e.billing?.checkoutEnabled===!1},d(e.billingBusy?"Please wait\u2026":"Pay for review package"),9,$L)]))),128)),t[18]||(t[18]=n("p",null,[n("a",{href:"/profile#settings-billing"},"Manage invoices")],-1))])):f("v-if",!0),n("div",FL,[n("div",UL,[n("button",{type:"button","aria-pressed":e.confView()==="current",onClick:t[1]||(t[1]=o=>e.setConfView("current")),title:"Every repository except removed links"},"Current",8,BL),e.confCount("attention")>0||e.confView()==="attention"?(a(),l("button",{key:0,type:"button","aria-pressed":e.confView()==="attention",onClick:t[2]||(t[2]=o=>e.setConfView("attention")),"aria-label":"Needs attention "+e.confCount("attention")},[t[19]||(t[19]=n("span",{class:"dashboard-attention-prefix"},"Needs ",-1)),t[20]||(t[20]=n("span",null,"attention",-1)),t[21]||(t[21]=m()),n("span",{class:R(["attention-count",{"has-attention":e.confCount("attention")>0}])},d(e.fmt?.number(e.confCount("attention"))),3)],8,zL)):f("v-if",!0),e.confCount("removed")>0||e.confView()==="removed"?(a(),l("button",{key:1,type:"button","aria-pressed":e.confView()==="removed",onClick:t[3]||(t[3]=o=>e.setConfView("removed")),title:"Links reviewers can no longer open"},[t[22]||(t[22]=m("Removed ",-1)),n("span",jL,d(e.fmt?.number(e.confCount("removed"))),1)],8,HL)):f("v-if",!0)]),n("span",GL,d(e.search.trim()?e.fmt?.number(e.filteredRepositories?.length||0)+" shown":e.fmt?.number(e.filteredRepositories?.length||0)+((e.filteredRepositories?.length||0)===1?" repository":" repositories")),1)]),P((a(),l("form",{class:"w-100 conf-repo-toolbar","aria-label":"Filter repositories","accept-charset":"UTF-8",onSubmit:t[4]||(t[4]=de(o=>e.submitForm(o,()=>{o.preventDefault()}),["prevent"]))},[n("div",WL,[P(n("input",KL,null,512),[[s,{state:e.viewState,set:o=>{e.search=o},value:e.search,form:null,options:{}}]])]),n("div",YL,[n("div",JL,[n("button",XL,[t[23]||(t[23]=n("span",{class:"filter-btn-label"},"Sort",-1)),n("span",QL,d({"-anonymizeDate":"Anonymize date",repoId:"ID","-status":"Status","-pageView":"Views"}[e.orderBy]||"Custom"),1)]),n("div",ZL,[t[28]||(t[28]=n("h6",{class:"dropdown-header"},"Order by",-1)),n("div",xL,[P(n("input",e_,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[24]||(t[24]=n("label",{class:"form-check-label",for:"anonymizeDate"},"Anonymize date",-1))]),n("div",t_,[P(n("input",n_,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[25]||(t[25]=n("label",{class:"form-check-label",for:"sortID"},"ID",-1))]),n("div",o_,[P(n("input",s_,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[26]||(t[26]=n("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),n("div",i_,[P(n("input",r_,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[27]||(t[27]=n("label",{class:"form-check-label",for:"sortViews"},"Views",-1))])])])])],32)),[[i,e.viewState]]),n("div",a_,[n("div",{class:R(["paper-table paper-table-dashboard paper-table-conf w-100",{"is-removed-view":e.confView()==="removed"}]),role:"table","aria-label":"Repositories"},[t[37]||(t[37]=n("div",{class:"paper-table-head",role:"row"},[n("div",{role:"columnheader"},"Repository"),n("div",{role:"columnheader"},"Status"),n("div",{role:"columnheader",class:"num"},"Views"),n("div",{role:"columnheader"},"Expires"),n("div",{role:"columnheader"},[n("span",{class:"sr-only"},"Actions")])],-1)),(a(!0),l(V,null,X(e.filteredRepositories,(o,r)=>(a(),l("div",{class:R(["paper-table-row",{"repo-inactive":o?.status=="expired"||o?.status=="removed","repo-error":o?.status=="error"}]),role:"row",key:o?.repoId},[n("div",l_,[t[30]||(t[30]=n("span",{class:"project-type-icon",role:"img","aria-label":"Repository",title:"Repository"},[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})])],-1)),n("div",d_,[n("div",u_,[n("a",{class:"repo-name",title:o?.source?.fullName,href:e.safeUrl("/r/"+o?.repoId+"/")},[(o?.source?.fullName||"").indexOf("/")>0?(a(),l(V,{key:0},[n("span",p_,d(o.source.fullName.slice(0,o.source.fullName.indexOf("/")+1)),1),t[29]||(t[29]=n("wbr",null,null,-1)),n("span",f_,d(o.source.fullName.slice(o.source.fullName.indexOf("/")+1)),1)],64)):(a(),l(V,{key:1},[m(d(o?.source?.fullName||o?.repoId),1)],64))],8,c_)]),n("div",m_,[n("code",{class:"anonymous-id",title:o?.repoId},[(o?.repoId||"").length>14?(a(),l(V,{key:0},[n("span",g_,d(o.repoId.slice(0,-6)),1),n("span",v_,d(o.repoId.slice(-6)),1)],64)):(a(),l(V,{key:1},[m(d(o?.repoId),1)],64))],8,h_),o?.source?.commit?(a(),l("span",{key:0,class:"commit-hash",title:o.source.commit},d(o.source.commit.substring(0,7)),9,y_)):f("v-if",!0)])])]),n("div",b_,[n("div",w_,[n("div",k_,[n("span",{class:R(["status-dot","status-"+(o?.status=="error"?"error":o?.status=="ready"?"ready":o?.status=="expired"||o?.status=="removed"?o?.status:"progress")]),"aria-hidden":"true"},null,2),n("span",{class:"status-word",textContent:d(e.fmt?.statusLabel(o?.status))},null,8,C_)]),o?.status=="error"&&o?.statusMessage?(a(),l("div",{key:0,class:"status-sub status-sub-error",textContent:d(e.fmt?.statusMsg(o?.statusMessage)),title:o?.statusMessage},null,8,S_)):f("v-if",!0),o?.status=="error"?(a(),l("a",{key:1,class:"project-attention-action",href:e.safeUrl("/status/"+o?.repoId)},"View status",8,E_)):f("v-if",!0),o?.status=="expired"?(a(),l("button",{key:2,type:"button",class:"project-attention-action",onClick:de(u=>e.extendRepo(o),["stop"]),disabled:e.extendingId===o?.repoId,title:"Reviewers can no longer open this link"},"Extend 6 months",8,N_)):f("v-if",!0),o?.anonymizeDate&&o?.status!="error"&&o?.status!="expired"?(a(),l("div",R_,"anonymized "+d(e.fmt?.humanTime(o?.anonymizeDate)),1)):f("v-if",!0)]),n("div",{class:"cell-views num",role:"cell","data-unit":(o?.pageView||0)===1?"view":"views","aria-label":e.fmt?.number(o?.pageView||0)+((o?.pageView||0)===1?" view":" views")},[t[31]||(t[31]=n("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1)),n("span",null,d(e.fmt?.number(o?.pageView||0)),1)],8,T_),n("div",P_,[t[33]||(t[33]=n("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),o?.status=="ready"&&(o?.options?.expirationMode==="never"||!o?.options?.expirationDate)?(a(),l("span",D_,"No expiry")):f("v-if",!0),o?.status=="ready"&&o?.options?.expirationMode!=="never"&&o?.options?.expirationDate?(a(),l("span",{key:1,textContent:d((e.fmt?.humanTime(o?.options?.expirationDate)||"").replace(/^on /,""))},null,8,A_)):f("v-if",!0),o?.status=="expired"?(a(),l("span",I_,[t[32]||(t[32]=n("span",{class:"expires-past-prefix"},"Expired ",-1)),m(d(e.fmt?.shortDate(o?.options?.expirationDate)),1)])):f("v-if",!0),o?.status!="ready"&&o?.status!="expired"?(a(),l("span",O_,"\u2014")):f("v-if",!0)])]),n("div",M_,[o?.status!="expired"&&o?.status!="removed"?(a(),l("button",{key:0,type:"button",class:"copy-url",onClick:de(u=>e.copyRepoLink(o),["stop"]),disabled:!!e.copyingId,title:"Copy link: /r/"+o?.repoId+"/","aria-label":"Copy anonymous link for "+o?.repoId},[n("span",q_,d(e.copyingId===o?.repoId?"Link copied":""),1),(a(),l("svg",L_,[n("use",{href:e.copyingId===o?.repoId?"#ui-icon-check":"#project-icon-copy"},null,8,__)])),n("span",$_,d(e.copyingId===o?.repoId?"Copied":"Copy link"),1)],8,V_)):f("v-if",!0),o?.status!="expired"&&o?.status!="removed"?(a(),l("a",{key:1,class:"row-edit row-open",href:e.safeUrl("/r/"+o?.repoId+"/"),target:"_blank",rel:"noopener",title:"Open what reviewers see","aria-label":"Open anonymous page for "+o?.repoId},[...t[34]||(t[34]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])],8,F_)):f("v-if",!0),n("div",U_,[n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions for "+o?.repoId},[...t[35]||(t[35]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})],-1)])],8,B_),n("div",z_,[n("a",{class:"dropdown-item",href:e.safeUrl("/r/"+o?.repoId+"/")},"View",8,H_),n("a",{class:"dropdown-item",href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/"),target:"_blank",rel:"noopener"},"Open source on GitHub",8,j_),n("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+o?.repoId)},"Edit",8,G_)])])])],2))),128)),e.filteredRepositories?.length==0?(a(),l("div",W_,[t[36]||(t[36]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),e.conference?.repositories?.length?f("v-if",!0):(a(),l("span",K_,"No repository has been submitted to this conference yet.")),e.conference?.repositories?.length?(a(),l("span",Y_,"Nothing matches the current filters.")):f("v-if",!0),e.conference?.repositories?.length?(a(),l("div",J_,[n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[5]||(t[5]=o=>{e.search="",e.setConfView("current")})},"Clear filters")])):f("v-if",!0)])):f("v-if",!0)],2)])])])}var X_={class:"container page paper-page conferences-page"},Q_={class:"row"},Z_={class:"w-100"},x_={class:"d-flex align-items-start justify-content-between flex-wrap page-head-row page-head page-head-main",style:{gap:"12px"}},e$={key:0,href:"/conference/new",class:"btn btn-primary"},t$={class:"search-wrap"},n$={type:"search",id:"search",class:"form-control","aria-label":"Search conferences",placeholder:"Search by name or ID\u2026",autocomplete:"off"},o$={class:"dashboard-filter-controls"},s$={class:"dropdown"},i$={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},r$={class:"filter-btn-value"},a$={class:"dropdown-menu","aria-labelledby":"dropdownSort"},l$={class:"form-check dropdown-item"},d$={class:"form-check-input",type:"radio",name:"sort",id:"sortName",value:"name"},u$={class:"form-check dropdown-item"},c$={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"conferenceID"},p$={class:"form-check dropdown-item"},f$={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},m$={class:"dropdown"},h$={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},g$={key:0,class:"filter-btn-value"},v$={key:1,class:"filter-btn-value"},y$={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},b$={class:"form-check dropdown-item"},w$=["id"],k$=["for"],C$={key:1,class:"dashboard-meta"},S$={class:"dashboard-count"},E$={key:0},N$={key:0},R$={key:1},T$={key:0,class:"filter-chip"},P$=["onClick","aria-label"],D$={key:0,class:"conference-feedback",role:"alert"},A$={key:1,class:"conference-feedback",role:"status"},I$={class:"paper-table paper-table-conferences w-100",role:"table","aria-label":"Conferences"},O$={class:"cell-anon",role:"cell"},M$={class:"anon-text"},V$=["textContent","href"],q$={class:"anon-sub"},L$={class:"anon-source"},_$=["textContent"],$$={key:0},F$=["textContent","href"],U$={class:"cell-status",role:"cell"},B$={class:"status-line"},z$=["textContent"],H$={class:"cell-views num",role:"cell"},j$=["textContent"],G$={class:"cell-expires",role:"cell"},W$={key:0},K$={key:1,class:"empty-dash","aria-label":"No review window"},Y$={class:"cell-actions",role:"cell"},J$={class:"dropdown"},X$=["disabled","aria-label"],Q$={class:"dropdown-menu dropdown-menu-right"},Z$=["href"],x$=["href"],eF={key:0},tF=["onClick"],nF={key:0,class:"paper-table-empty"},oF={key:0,class:"empty-icon","aria-hidden":"true"},sF={key:1,class:"ui-icon","aria-hidden":"true"},iF={key:3},rF={class:"paper-table-empty-actions"},aF={key:0,href:"/conference/new",class:"btn btn-primary conf-empty-new"};function kp(e,t){let s=Pe("field"),i=Pe("form");return a(),l("div",X_,[n("div",Q_,[n("div",Z_,[n("div",x_,[t[4]||(t[4]=n("div",null,[n("h1",{class:"paper-page-title"},[m("Your "),n("em",null,"conferences")]),n("p",{class:"paper-page-lede"},"Group anonymizations by venue, give chairs a shared dashboard, and set one expiry for every submission.")],-1)),e.conferences&&e.conferences.length==0?f("v-if",!0):(a(),l("a",e$,[...t[3]||(t[3]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#project-icon-plus"})],-1),m(" New conference ",-1)])]))]),e.conferences?.length>0?P((a(),l("form",{key:0,class:"w-100 dashboard-filter-row","aria-label":"Filter conferences","accept-charset":"UTF-8",onSubmit:t[0]||(t[0]=de(o=>e.submitForm(o,()=>{o.preventDefault()}),["prevent"]))},[n("div",t$,[P(n("input",n$,null,512),[[s,{state:e.viewState,set:o=>{e.search=o},value:e.search,form:null,options:{}}]])]),n("div",o$,[n("div",s$,[n("button",i$,[t[5]||(t[5]=n("span",{class:"filter-btn-label"},"Sort",-1)),n("span",r$,d({name:"Name",conferenceID:"ID","-status":"Status"}[e.orderBy]||"Custom"),1)]),n("div",a$,[t[9]||(t[9]=n("h6",{class:"dropdown-header"},"Order by",-1)),n("div",l$,[P(n("input",d$,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[6]||(t[6]=n("label",{class:"form-check-label",for:"sortName"},"Name",-1))]),n("div",u$,[P(n("input",c$,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[7]||(t[7]=n("label",{class:"form-check-label",for:"sortID"},"ID",-1))]),n("div",p$,[P(n("input",f$,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[8]||(t[8]=n("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))])])]),n("div",m$,[n("button",h$,[t[10]||(t[10]=n("span",{class:"filter-btn-label"},"Status",-1)),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?(a(),l("span",g$,"All")):f("v-if",!0),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?f("v-if",!0):(a(),l("span",v$,d((e.filters?.status?.ready?0:1)+(e.filters?.status?.expired?0:1)+(e.filters?.status?.removed?0:1))+" hidden ",1))]),n("div",y$,[t[11]||(t[11]=n("h6",{class:"dropdown-header"},"Show statuses",-1)),(a(!0),l(V,null,X(e.statusLabels,(o,r,u)=>(a(),l("div",b$,[P(n("input",{class:"form-check-input",type:"checkbox",id:"status-"+r},null,8,w$),[[s,{state:e.viewState,set:p=>{e.filters.status[r]=p},value:e.filters?.status[r],form:null,options:{}}]]),n("label",{class:"form-check-label",for:"status-"+r},d(o),9,k$)]))),256))])])])],32)),[[i,e.viewState]]):f("v-if",!0),e.conferences?.length>0?(a(),l("div",C$,[n("span",S$,[e.filteredConferences?.length===e.conferences?.length?(a(),l("span",E$,[m(d(e.fmt?.number(e.conferences?.length))+" conference",1),e.conferences?.length!==1?(a(),l("span",N$,"s")):f("v-if",!0)])):f("v-if",!0),e.filteredConferences?.length!==e.conferences?.length?(a(),l("span",R$,d(e.fmt?.number(e.filteredConferences?.length))+" of "+d(e.fmt?.number(e.conferences?.length))+" shown",1)):f("v-if",!0)]),(a(!0),l(V,null,X(e.filters?.status,(o,r,u)=>(a(),l(V,null,[o===!1?(a(),l("span",T$,[m(" Hiding "+d(e.statusLabels[r])+" ",1),n("button",{type:"button",class:"filter-chip-close",onClick:p=>{e.filters.status[r]=!0},"aria-label":"Show "+e.statusLabels[r]+" again"},"\xD7",8,P$)])):f("v-if",!0)],64))),256))])):f("v-if",!0)]),e.error?(a(),l("div",D$,[n("span",null,d(e.error),1),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[1]||(t[1]=o=>e.loadConferences())},"Retry")])):f("v-if",!0),e.loading?(a(),l("div",A$,"Loading conferences\u2026")):f("v-if",!0),n("div",I$,[t[28]||(t[28]=n("div",{class:"paper-table-head",role:"row"},[n("div",{role:"columnheader"},"Conference"),n("div",{role:"columnheader"},"Status"),n("div",{role:"columnheader",class:"num"},"Repos"),n("div",{role:"columnheader"},"Review window"),n("div",{role:"columnheader"},[n("span",{class:"sr-only"},"Actions")])],-1)),(a(!0),l(V,null,X(e.filteredConferences,(o,r)=>(a(),l("div",{class:R(["paper-table-row row-clickable",{"repo-inactive":o?.status=="expired"||o?.status=="removed"}]),role:"row",key:o?.conferenceID},[n("div",O$,[t[14]||(t[14]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Conference"},[n("use",{href:"#project-icon-conference"})],-1)),n("div",M$,[n("a",{class:"repo-name",textContent:d(o?.name),href:e.safeUrl("/conference/"+o?.conferenceID)},null,8,V$),n("div",q$,[n("span",L$,[t[13]||(t[13]=m("ID ",-1)),n("span",{class:"commit-hash",textContent:d(o?.conferenceID)},null,8,_$),o?.url?(a(),l("span",$$,[t[12]||(t[12]=m(" \xB7 ",-1)),n("a",{target:"_blank",rel:"noopener",textContent:d(e.fmt?.limitTo(o?.url,60)),href:e.safeUrl(o?.url)},null,8,F$)])):f("v-if",!0)])])])]),n("div",U$,[n("div",B$,[n("span",{class:R(["status-dot","status-"+o?.status]),"aria-hidden":"true"},null,2),n("span",{class:"status-word",textContent:d(e.fmt?.statusLabel(o?.status))},null,8,z$)])]),n("div",H$,[t[15]||(t[15]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1)),t[16]||(t[16]=m()),n("span",{textContent:d(e.fmt?.number(o?.nbRepositories||0))},null,8,j$)]),n("div",G$,[t[17]||(t[17]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),o?.startDate?(a(),l("span",W$,d(e.fmt?.date(o?.startDate,"mediumDate"))+" \u2013 "+d(e.fmt?.date(o?.endDate,"mediumDate")),1)):f("v-if",!0),o?.startDate?f("v-if",!0):(a(),l("span",K$,"\u2014"))]),n("div",Y$,[n("div",J$,[n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",disabled:o?.removing,"aria-label":"Actions for "+o?.name},[...t[18]||(t[18]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})],-1)])],8,X$),n("div",Q$,[n("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+o?.conferenceID+"/")},[...t[19]||(t[19]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),m(" View ",-1)])],8,Z$),n("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+o?.conferenceID+"/edit")},[...t[20]||(t[20]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),m(" Edit ",-1)])],8,x$),o?.status!="removed"?(a(),l("div",eF,[t[22]||(t[22]=n("div",{class:"dropdown-divider"},null,-1)),n("button",{type:"button",class:"dropdown-item dropdown-item-danger",onClick:u=>e.removeConference(o)},[...t[21]||(t[21]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),m(" Remove ",-1)])],8,tF)])):f("v-if",!0)])])])],2))),128)),!e.loading&&!e.error&&e.filteredConferences?.length==0?(a(),l("div",nF,[e.conferences?.length==0?(a(),l("span",oF,[...t[23]||(t[23]=[n("svg",{class:"ui-icon"},[n("use",{href:"#project-icon-conference"})],-1)])])):f("v-if",!0),e.conferences?.length>0?(a(),l("svg",sF,[...t[24]||(t[24]=[n("use",{href:"#project-icon-inbox"},null,-1)])])):f("v-if",!0),e.conferences?.length==0?(a(),l(V,{key:2},[t[25]||(t[25]=n("strong",{class:"empty-title"},"No conferences yet",-1)),t[26]||(t[26]=n("span",null,"Create one to group submissions for a venue, share a dashboard with chairs, and set a single expiry date.",-1))],64)):f("v-if",!0),e.conferences?.length>0?(a(),l("span",iF,"Nothing matches the current filters.")):f("v-if",!0),n("div",rF,[e.conferences?.length==0?(a(),l("a",aF,[...t[27]||(t[27]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-plus"})],-1),m(" New conference",-1)])])):f("v-if",!0),e.conferences?.length>0?(a(),l("button",{key:1,type:"button",class:"btn btn-outline-ink",onClick:t[2]||(t[2]=o=>{e.search="",e.filters.status.ready=!0,e.filters.status.expired=!0,e.filters.status.removed=!0})},"Clear filters")):f("v-if",!0)])])):f("v-if",!0)])])])}var lF={class:"container page dashboard-page paper-page"},dF={class:"row"},uF={class:"w-100"},cF={class:"dashboard-heading page-head page-head-main"},pF={class:"dashboard-title-line"},fF={key:0,class:"dashboard-count-head","aria-hidden":"true"},mF={key:0},hF={class:"dashboard-heading-actions"},gF=["open"],vF=["aria-expanded"],yF=["stroke-dasharray"],bF={key:1,d:"M7 12c0-4 4-4 5 0s5 4 5 0-4-4-5 0-5 4-5 0",class:"quota-ring-unlimited"},wF={key:0,class:"quota-summary-value"},kF={key:0},CF={class:"quota-panel",id:"dashboard-usage"},SF={class:"quota-panel-heading"},EF={key:1,class:"quota-loading",role:"status"},NF={key:0,class:"dashboard-meta"},RF={key:0,class:"dashboard-view-tabs",role:"group","aria-label":"Project view"},TF=["aria-pressed"],PF=["aria-pressed","aria-label"],DF=["aria-pressed","aria-label"],AF={key:0,class:"attention-count"},IF={key:0},OF={key:0},MF={key:1},VF={class:"search-wrap"},qF={type:"search",id:"search",class:"form-control","aria-label":"Search anonymizations",placeholder:"Search projects\u2026",autocomplete:"off"},LF=["aria-expanded"],_F={class:"btn-group",role:"group","aria-label":"Type"},$F=["aria-pressed"],FF=["aria-pressed"],UF=["aria-pressed"],BF=["aria-pressed"],zF={class:"dropdown"},HF={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},jF={class:"filter-btn-value"},GF={class:"sr-only"},WF={class:"dropdown-menu","aria-labelledby":"dropdownSort"},KF={class:"form-check dropdown-item"},YF=["onClick","checked","id"],JF=["for"],XF=["inert"],QF={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},ZF={class:"filter-btn-value"},xF={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},e7={key:0,class:"form-check dropdown-item"},t7=["id"],n7=["for"],o7={key:1,class:"dashboard-active-filters dashboard-active-filters-row"},s7=["onClick","aria-label","title"],i7=["aria-busy"],r7={class:"paper-table-head",role:"row"},a7=["aria-sort"],l7=["aria-sort"],d7=["aria-sort"],u7=["aria-sort"],c7={key:0,class:"paper-table-row paper-table-skeleton",role:"row","aria-hidden":"true"},p7=["onClick"],f7={class:"cell-anon",role:"cell"},m7=["aria-label","title"],h7={class:"project-type-svg","aria-hidden":"true"},g7=["href"],v7={class:"anon-text"},y7={class:"anon-title"},b7=["title","href"],w7={class:"rn-owner"},k7={class:"rn-repo"},C7={key:1,class:"repo-name repo-name-static"},S7={class:"rn-owner"},E7={class:"rn-repo"},N7={key:2,class:"type-badge type-coauthor",title:"You are a co-author on this anonymization"},R7={key:0,class:"anon-sub"},T7=["title"],P7={class:"id-head"},D7={class:"id-tail"},A7=["title"],I7=["title"],O7=["textContent"],M7={class:"dashboard-row-meta",role:"presentation"},V7={class:"cell-status",role:"cell"},q7={class:"status-line"},L7=["textContent"],_7=["onClick"],$7=["textContent","title"],F7=["title"],U7=["href"],B7={key:3,class:"status-action-line"},z7={key:0,class:"status-stuck"},H7=["onClick","data-project-actions","aria-controls","aria-expanded"],j7=["onClick"],G7={key:5,class:"status-sub status-sub-date status-sub-removed"},W7={key:6,class:"status-sub status-sub-date"},K7=["data-unit","aria-label"],Y7={class:"cell-expires",role:"cell"},J7={key:0,class:"expires-never"},X7=["textContent"],Q7=["title"],Z7={key:3,class:"expires-past"},x7={key:4,class:"expires-past"},eU={key:5,class:"empty-dash","aria-label":"Not applicable"},tU={class:"cell-actions",role:"cell"},nU=["onClick","disabled","title","aria-label"],oU={class:"sr-only","aria-live":"polite"},sU={class:"project-type-svg","aria-hidden":"true"},iU=["href"],rU={class:"copy-url-label","aria-hidden":"true"},aU=["href","aria-label"],lU=["href","title","aria-label"],dU=["title","aria-label"],uU=["title","aria-label"],cU=["aria-label"],pU={key:6,class:"dropdown is-disabled"},fU=["aria-label"],mU={key:7,class:"dropdown"},hU=["data-project-actions","aria-label"],gU={class:"dropdown-menu dropdown-menu-right"},vU=["onClick","aria-controls","aria-expanded"],yU=["href"],bU=["href"],wU=["onClick","disabled"],kU=["href"],CU=["onClick"],SU=["onClick"],EU=["onClick"],NU={key:5},RU=["onClick"],TU={key:1,class:"project-details-row",role:"row"},PU=["id","onKeydown"],DU={class:"project-details-heading"},AU=["onClick"],IU={class:"project-details-list"},OU={key:0},MU={key:1},VU={key:0},qU={key:2},LU={key:0,class:"project-progress-help"},_U=["href"],$U=["onSubmit"],FU=["for"],UU=["id"],BU={class:"project-name-controls"},zU=["id","aria-describedby","disabled"],HU=["disabled"],jU={key:0,class:"project-name-error",role:"alert"},GU={key:1,role:"status"},WU={key:0,class:"paper-table-empty"},KU={key:0},YU={key:1},JU={class:"paper-table-empty-actions"},XU={key:1,href:"/anonymize",class:"btn btn-ink"},QU={key:0,class:"dashboard-pagination"},ZU={key:0,role:"alert"},xU=["disabled"];function Cp(e,t){let s=Qe("quota-usage"),i=Pe("field"),o=Pe("form");return a(),l("div",lF,[n("div",dF,[n("div",uF,[n("div",cF,[n("div",null,[n("div",pF,[t[27]||(t[27]=n("h1",{class:"paper-page-title"},"My work",-1)),!e.loading&&e.isPlainView()?(a(),l("span",fF,[m(d(e.fmt?.number(e.dashboardTotals?.filtered??e.filteredItems?.length))+" project",1),(e.dashboardTotals?.filtered??e.filteredItems?.length)!==1?(a(),l("span",mF,"s")):f("v-if",!0)])):f("v-if",!0)]),t[28]||(t[28]=n("p",{class:"paper-page-lede"},"Manage your anonymous links.",-1))]),n("div",hF,[n("details",{class:"dashboard-quota",open:e.quotaExpanded,onToggle:t[1]||(t[1]=r=>e.quotaExpanded=r.target.open),onKeydown:t[2]||(t[2]=_t(de(r=>e.closeQuota(),["prevent","stop"]),["esc"]))},[n("summary",{"aria-controls":"dashboard-usage","aria-expanded":e.quotaExpanded,class:R(e.quota?"quota-level-"+e.quota.repository.level:""),style:Ae(e.quota&&!e.quota.repository.unlimited?{"--quota-pct":e.quota.repository.percent+"%"}:null)},[(a(),l("svg",{class:R(["quota-summary-ring",e.quota?"quota-"+e.quota.repository.level:""]),viewBox:"0 0 24 24","aria-hidden":"true"},[t[29]||(t[29]=n("circle",{class:"quota-ring-track",cx:"12",cy:"12",r:"9"},null,-1)),e.quota&&!e.quota.repository.unlimited?(a(),l("circle",{key:0,class:"quota-ring-fill",cx:"12",cy:"12",r:"9",pathLength:"100","stroke-dasharray":e.quota.repository.percent+" 100"},null,8,yF)):f("v-if",!0),e.quota?.repository.unlimited?(a(),l("path",bF)):f("v-if",!0)],2)),t[31]||(t[31]=n("span",{class:"quota-summary-label"},"Usage",-1)),e.quota?(a(),l("span",wF,[m(d(e.fmt.number(e.quota.repository.used)),1),e.quota.repository.unlimited?f("v-if",!0):(a(),l("span",kF," / "+d(e.fmt.number(e.quota.repository.total)),1)),t[30]||(t[30]=m(" repos",-1))])):f("v-if",!0),t[32]||(t[32]=n("svg",{class:"project-type-svg quota-summary-chevron","aria-hidden":"true"},[n("use",{href:"#project-icon-chevron"})],-1))],14,vF),n("div",CF,[n("div",SF,[t[34]||(t[34]=n("h2",null,"Account usage",-1)),n("button",{type:"button",class:"project-close","aria-label":"Close usage",onClick:t[0]||(t[0]=r=>e.closeQuota())},[...t[33]||(t[33]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])])]),e.quota?(a(),Jt(s,{key:0,quota:e.quota,fmt:e.fmt},null,8,["quota","fmt"])):(a(),l("p",EF,"Loading usage\u2026"))])],40,gF),t[35]||(t[35]=Ce('New anonymization',1))])]),f(" Result count + active filter chips "),e.loading?f("v-if",!0):(a(),l("div",NF,[e.showViewTabs()?(a(),l("div",RF,[n("button",{type:"button","aria-pressed":e.statusView()==="active",onClick:t[3]||(t[3]=r=>e.setStatusView("active")),title:"Every project except removed links"},"Current",8,TF),e.attentionCount()>0||e.statusView()==="attention"?(a(),l("button",{key:0,type:"button","aria-pressed":e.statusView()==="attention",onClick:t[4]||(t[4]=r=>e.setStatusView("attention")),"aria-label":"Needs attention "+e.attentionCount()},[t[36]||(t[36]=n("span",{class:"dashboard-attention-prefix"},"Needs ",-1)),t[37]||(t[37]=n("span",null,"attention",-1)),t[38]||(t[38]=m()),n("span",{class:R(["attention-count",{"has-attention":e.attentionCount()>0}])},d(e.attentionCount()),3)],8,PF)):f("v-if",!0),e.removedCount>0||e.statusView()==="removed"||e.removedCount==null&&e.dashboardTotals?.total>e.dashboardTotals?.filtered?(a(),l("button",{key:1,type:"button","aria-pressed":e.statusView()==="removed",onClick:t[5]||(t[5]=r=>e.setStatusView("removed")),"aria-label":"Removed "+(e.removedCount??""),title:"Links reviewers can no longer open"},[t[39]||(t[39]=m("Removed ",-1)),e.removedCount!=null?(a(),l("span",AF,d(e.fmt?.number(e.removedCount)),1)):f("v-if",!0)],8,DF)):f("v-if",!0)])):f("v-if",!0),n("span",{class:R(["dashboard-count",{"is-plain":e.isPlainView()}])},[e.isPlainView()?(a(),l("span",IF,[m(d(e.fmt?.number(e.dashboardTotals?.filtered??e.filteredItems?.length))+" project",1),(e.dashboardTotals?.filtered??e.filteredItems?.length)!==1?(a(),l("span",OF,"s")):f("v-if",!0)])):(a(),l("span",MF,d(e.fmt?.number(e.dashboardTotals?.filtered??e.filteredItems?.length))+" shown",1))],2)])),f(" Search + filters "),P((a(),l("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter anonymizations","accept-charset":"UTF-8",onSubmit:t[13]||(t[13]=de(r=>e.submitForm(r,()=>{r.preventDefault()}),["prevent"]))},[n("div",VF,[P(n("input",qF,null,512),[[i,{state:e.viewState,set:r=>{e.search=r},value:e.search,form:null,options:{}}]])]),n("button",{class:"btn dashboard-filters-toggle",type:"button","aria-expanded":e.filtersExpanded,"aria-controls":"dashboard-filter-controls",onClick:t[6]||(t[6]=r=>e.filtersExpanded=!e.filtersExpanded)},[...t[40]||(t[40]=[m("Filters",-1),n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-filter"})],-1)])],8,LF),n("div",{id:"dashboard-filter-controls",class:R(["dashboard-filter-controls",{expanded:e.filtersExpanded}])},[n("div",_F,[n("button",{type:"button",class:R(["btn",{"btn-primary":e.typeFilter==="all"}]),onClick:t[7]||(t[7]=r=>e.typeFilter="all"),"aria-pressed":e.typeFilter==="all"},"All",10,$F),n("button",{type:"button",class:R(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="repo"}]),title:"Repositories",onClick:t[8]||(t[8]=r=>e.typeFilter="repo"),"aria-pressed":e.typeFilter==="repo"},[...t[41]||(t[41]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1),n("span",{class:"type-filter-label"},"Repos",-1)])],10,FF),n("button",{type:"button",class:R(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="pr"}]),title:"Pull requests",onClick:t[9]||(t[9]=r=>e.typeFilter="pr"),"aria-pressed":e.typeFilter==="pr"},[...t[42]||(t[42]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-type-pr"})],-1),n("span",{class:"type-filter-label"},"PRs",-1)])],10,UF),n("button",{type:"button",class:R(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="gist"}]),title:"Gists",onClick:t[10]||(t[10]=r=>e.typeFilter="gist"),"aria-pressed":e.typeFilter==="gist"},[...t[43]||(t[43]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-type-gist"})],-1),n("span",{class:"type-filter-label"},"Gists",-1)])],10,BF)]),n("div",{id:"dashboard-extra-filters",class:R(["dashboard-extra-filters",{expanded:e.filtersExpanded}])},[n("div",zF,[n("button",HF,[t[45]||(t[45]=n("span",{class:"filter-btn-label"},"Sort",-1)),n("span",jF,d(e.sortLabel()),1),(a(),l("svg",{class:R(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[44]||(t[44]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)),n("span",GF,d(e.sortDesc()?"descending":"ascending"),1)]),n("div",WF,[t[46]||(t[46]=n("h6",{class:"dropdown-header"},"Order by",-1)),(a(!0),l(V,null,X(e.sortFields,(r,u,p)=>(a(),l("div",KF,[n("input",{class:"form-check-input",type:"radio",name:"sort",onClick:c=>e.setSort(u,r.defaultDesc),checked:e.isSortedBy(u),id:"sort-"+p},null,8,YF),n("label",{class:"form-check-label",for:"sort-"+p},d(r?.label),9,JF)]))),256)),t[47]||(t[47]=n("div",{class:"dropdown-divider"},null,-1)),n("button",{type:"button",class:"dropdown-item",onClick:t[11]||(t[11]=r=>e.toggleSortDirection())},d(e.sortDesc()?"Switch to ascending":"Switch to descending"),1)])]),n("div",{class:R(["dropdown dashboard-status-filter",{"is-view-hidden":e.statusView()==="removed"}]),inert:e.statusView()==="removed"?!0:null},[n("button",QF,[t[48]||(t[48]=n("span",{class:"filter-btn-label"},"Status",-1)),n("span",ZF,d(e.statusChipKeys().length===0?"Any":e.statusChipKeys().length===1?"Hiding "+(e.statusKeyLabels[e.statusChipKeys()[0]]||"").toLowerCase():e.statusChipKeys().length+" hidden"),1)]),n("div",xF,[t[49]||(t[49]=n("h6",{class:"dropdown-header"},"Show statuses",-1)),n("button",{type:"button",class:R(["dropdown-item status-preset",{active:e.statusChipKeys().length===0}]),onClick:t[12]||(t[12]=r=>e.statusChipKeys().forEach(u=>{e.filters.status[u]=!0}))},"Any status",2),t[50]||(t[50]=n("div",{class:"dropdown-divider"},null,-1)),(a(!0),l(V,null,X(e.statusKeyLabels,(r,u,p)=>(a(),l(V,{key:u},[u!=="removed"?(a(),l("div",e7,[P(n("input",{class:"form-check-input",type:"checkbox",id:"status-"+u},null,8,t7),[[i,{state:e.viewState,set:c=>{e.filters.status[u]=c},value:e.filters?.status[u],form:null,options:{}}]]),n("label",{class:"form-check-label",for:"status-"+u},d(r),9,n7)])):f("v-if",!0)],64))),128))])],10,XF)],2)],2)],32)),[[o,e.viewState]]),!e.loading&&e.showClearFilters()?(a(),l("div",o7,[(a(!0),l(V,null,X(e.statusChipKeys(),r=>(a(),l("button",{key:r,type:"button",class:"filter-chip",onClick:u=>e.filters.status[r]=!0,"aria-label":"Show "+e.statusKeyLabels[r]+" again",title:"Show "+e.statusKeyLabels[r]+" again"},[m("Hiding "+d((e.statusKeyLabels[r]||"").toLowerCase()),1),t[51]||(t[51]=n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1))],8,s7))),128)),e.typeFilter!=="all"?(a(),l("button",{key:0,type:"button",class:"filter-chip",onClick:t[14]||(t[14]=r=>e.typeFilter="all"),"aria-label":"Show all project types"},[m(d(e.typeFilter==="repo"?"Repositories":e.typeFilter==="pr"?"Pull requests":"Gists"),1),t[52]||(t[52]=n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1))])):f("v-if",!0),e.showClearFilters()?(a(),l("button",{key:1,type:"button",class:"btn-link-inline",onClick:t[15]||(t[15]=r=>e.clearFilters())},"Clear filters")):f("v-if",!0)])):f("v-if",!0)]),f(" Table "),n("div",{class:R(["paper-table paper-table-dashboard",{"is-removed-view":e.statusView()==="removed"}]),role:"table","aria-label":"Anonymizations","aria-busy":e.loading},[n("div",r7,[n("div",{role:"columnheader","aria-sort":e.isSortedBy("_label")?e.sortDesc()?"descending":"ascending":"none"},[n("button",{type:"button",class:R(["sortable",{active:e.isSortedBy("_label")}]),onClick:t[16]||(t[16]=r=>e.setSort("_label"))},[t[54]||(t[54]=m(" Project ",-1)),e.isSortedBy("_label")?(a(),l("svg",{key:0,class:R(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[53]||(t[53]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)],8,a7),n("div",{role:"columnheader","aria-sort":e.isSortedBy("status")?e.sortDesc()?"descending":"ascending":"none"},[n("button",{type:"button",class:R(["sortable",{active:e.isSortedBy("status")}]),onClick:t[17]||(t[17]=r=>e.setSort("status"))},[t[56]||(t[56]=m(" Status ",-1)),e.isSortedBy("status")?(a(),l("svg",{key:0,class:R(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[55]||(t[55]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)],8,l7),n("div",{role:"columnheader",class:"num","aria-sort":e.isSortedBy("pageView")?e.sortDesc()?"descending":"ascending":"none"},[n("button",{type:"button",class:R(["sortable",{active:e.isSortedBy("pageView")}]),onClick:t[18]||(t[18]=r=>e.setSort("pageView"))},[t[58]||(t[58]=m(" Views ",-1)),e.isSortedBy("pageView")?(a(),l("svg",{key:0,class:R(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[57]||(t[57]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)],8,d7),n("div",{role:"columnheader","aria-sort":e.isSortedBy("options.expirationDate")?e.sortDesc()?"descending":"ascending":"none"},[n("button",{type:"button",class:R(["sortable",{active:e.isSortedBy("options.expirationDate")}]),onClick:t[19]||(t[19]=r=>e.setSort("options.expirationDate"))},[t[60]||(t[60]=m(" Expires ",-1)),e.isSortedBy("options.expirationDate")?(a(),l("svg",{key:0,class:R(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[59]||(t[59]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)],8,u7),t[61]||(t[61]=n("div",{role:"columnheader",class:"col-link"},[n("span",{class:"sr-only"},"Actions")],-1))]),f(" Loading skeleton: keeps the layout stable while the three lists load "),(a(),l(V,null,X([1,2,3,4],(r,u)=>(a(),l(V,null,[e.loading?(a(),l("div",c7,[...t[62]||(t[62]=[n("div",{class:"cell-anon",role:"cell"},[n("span",{class:"skeleton skeleton-badge"}),n("div",{class:"anon-text"},[n("span",{class:"skeleton skeleton-line",style:{width:"38%"}}),n("span",{class:"skeleton skeleton-line skeleton-line-sm",style:{width:"56%"}})])],-1),n("div",{class:"cell-status",role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"60%"}})],-1),n("div",{class:"cell-views num",role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"40%"}})],-1),n("div",{class:"cell-expires",role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"55%"}})],-1),n("div",{class:"cell-actions",role:"cell"},null,-1)])])):f("v-if",!0)],64))),64)),(a(!0),l(V,null,X(e.filteredItems,(r,u)=>(a(),l(V,{key:r?._type+":"+(r?._id||u)},[e.loading?f("v-if",!0):(a(),l("div",{key:0,class:R(["paper-table-row",{"repo-inactive":r?._statusKey=="expired"||r?._statusKey=="removed","repo-error":r?.status=="error","row-clickable":!!r?._viewUrl}]),role:"row",onClick:p=>e.openItem(r,p)},[n("div",f7,[n("span",{class:"project-type-icon",role:"img","aria-label":r?._type==="repo"?"Repository":r?._type==="pr"?"Pull request":"Gist",title:r?._type==="repo"?"Repository":r?._type==="pr"?"Pull request":"Gist"},[(a(),l("svg",h7,[n("use",{href:"#project-type-"+r._type},null,8,g7)]))],8,m7),n("div",v7,[n("div",y7,[r?._viewUrl?(a(),l("a",{key:0,class:"repo-name",title:r._label,href:e.safeUrl(r?._viewUrl)},[(r?._label||"").indexOf("/")>0?(a(),l(V,{key:0},[n("span",w7,d(r._label.slice(0,r._label.indexOf("/")+1)),1),t[63]||(t[63]=n("wbr",null,null,-1)),n("span",k7,d(r._label.slice(r._label.indexOf("/")+1)),1)],64)):(a(),l(V,{key:1},[m(d(r?._label),1)],64))],8,b7)):f("v-if",!0),r?._viewUrl?f("v-if",!0):(a(),l("span",C7,[(r?._label||"").indexOf("/")>0?(a(),l(V,{key:0},[n("span",S7,d(r._label.slice(0,r._label.indexOf("/")+1)),1),t[64]||(t[64]=n("wbr",null,null,-1)),n("span",E7,d(r._label.slice(r._label.indexOf("/")+1)),1)],64)):(a(),l(V,{key:1},[m(d(r?._label),1)],64))])),r?.role==="coauthor"?(a(),l("span",N7,"Co-author")):f("v-if",!0)]),r?._id||r?._type==="repo"&&r?.source?.commit||r?.conference?(a(),l("div",R7,[r?._id?(a(),l("code",{key:0,class:"anonymous-id",title:r._id},[r._id.length>14?(a(),l(V,{key:0},[n("span",P7,d(r._id.slice(0,-6)),1),n("span",D7,d(r._id.slice(-6)),1)],64)):(a(),l(V,{key:1},[m(d(r._id),1)],64))],8,T7)):f("v-if",!0),r?._type==="repo"&&r?.source?.commit?(a(),l("span",{key:1,class:"commit-hash",title:r.source.commit},d(r.source.commit.substring(0,7)),9,A7)):f("v-if",!0),r?.conference?(a(),l("span",{key:2,class:"cell-conf conf-tag",title:"Conference: "+r.conference},[t[65]||(t[65]=n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),n("span",{class:"conf-name",textContent:d(r?.conference)},null,8,O7)],8,I7)):f("v-if",!0)])):f("v-if",!0)])]),n("div",M7,[n("div",V7,[n("div",q7,[n("span",{class:R(["status-dot","status-"+r?._statusKey]),"aria-hidden":"true"},null,2),n("span",{class:"status-word",textContent:d(e.fmt?.statusLabel(r?.status))},null,8,L7),r?.status=="removed"?(a(),l(V,{key:0},[t[66]||(t[66]=n("span",{class:"seg-sep status-removed-sep","aria-hidden":"true"},"\xB7",-1)),n("button",{type:"button",class:"project-attention-action status-enable",onClick:de(p=>e.refreshItem(r),["stop"]),title:"Reviewers can no longer open this link"},"Enable again",8,_7)],64)):f("v-if",!0)]),r?.status=="error"&&r?.statusMessage?(a(),l("div",{key:0,class:"status-sub status-sub-error",textContent:d(e.fmt?.statusMsg(r?.statusMessage)),title:r?.statusMessage},null,8,$7)):f("v-if",!0),r?._stale?(a(),l("div",{key:1,class:"status-sub status-sub-warn",title:"Last activity "+e.fmt?.humanTime(r?.anonymizeDate||r?.lastView)},d(e.idleText(r)),9,F7)):f("v-if",!0),r.status==="error"&&r._editUrl?(a(),l("a",{key:2,class:"project-attention-action",href:e.safeUrl(r._editUrl)},"Fix source",8,U7)):f("v-if",!0),r._stale||r._broken?(a(),l("div",B7,[r._stale&&!r._broken?(a(),l("span",z7,[...t[67]||(t[67]=[m("May be stuck",-1),n("span",{"aria-hidden":"true"}," \xB7 ",-1)])])):f("v-if",!0),r._stale||r._broken?(a(),l("button",{key:1,type:"button",class:"project-attention-action",onClick:de(p=>e.showProjectDetails(r),["stop"]),"data-project-actions":r._broken?encodeURIComponent(r._type+":"+r._id):null,"aria-controls":r._broken?e.projectDetailsId(r):null,"aria-expanded":r._broken?e.selectedProject===r:null},d(r._broken?"Review details":"Check progress"),9,H7)):f("v-if",!0)])):f("v-if",!0),r?.status=="expired"?(a(),l("button",{key:4,type:"button",class:"project-attention-action",onClick:de(p=>e.extendItem(r),["stop"]),title:"Reviewers can no longer open this link"},"Extend 6 months",8,j7)):f("v-if",!0),r?.status=="removed"&&r?.anonymizeDate?(a(),l("div",G7,"anonymized "+d(e.fmt?.humanTime(r?.anonymizeDate)),1)):f("v-if",!0),r?.status!="error"&&r?.status!="expired"&&r?.status!="removed"&&!r?._stale&&r?.anonymizeDate?(a(),l("div",W7," anonymized "+d(e.fmt?.humanTime(r?.anonymizeDate)),1)):f("v-if",!0)]),n("div",{class:"cell-views num",role:"cell","data-unit":r.pageView===1?"view":"views","aria-label":e.fmt.number(r.pageView)+(r.pageView===1?" view":" views")},[t[68]||(t[68]=n("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1)),n("span",null,d(e.fmt.number(r.pageView)),1)],8,K7),n("div",Y7,[t[72]||(t[72]=n("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),r?._expiry?.kind==="never"?(a(),l("span",J7,"No expiry")):f("v-if",!0),r?._expiry?.kind==="date"&&!r?._expiry?.soon?(a(),l("span",{key:1,textContent:d((e.fmt?.humanTime(r?._expiry?.date)||"").replace(/^on /,""))},null,8,X7)):f("v-if",!0),r?._expiry?.kind==="date"&&r?._expiry?.soon?(a(),l("span",{key:2,class:"expires-soon",title:"Expires "+e.fmt?.humanTime(r?._expiry?.date)},[t[69]||(t[69]=n("svg",{class:"project-type-svg expires-soon-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),t[70]||(t[70]=n("span",{class:"expires-soon-prefix"},"Expires ",-1)),m(d(r._expiry.soon),1)],8,Q7)):f("v-if",!0),r?._expiry?.kind==="expired"&&r?._expiry?.date?(a(),l("span",Z7,[t[71]||(t[71]=n("span",{class:"expires-past-prefix"},"Expired ",-1)),m(d(r?._expiry?.label||e.fmt?.humanTime(r?._expiry?.date)),1)])):f("v-if",!0),r?._expiry?.kind==="expired"&&!r?._expiry?.date?(a(),l("span",x7,"Expired")):f("v-if",!0),r?._expiry?.kind==="none"?(a(),l("span",eU,"\u2014")):f("v-if",!0)])]),n("div",tU,[r._viewUrl&&!(r?._statusKey=="expired"||r?._statusKey=="removed")?(a(),l("button",{key:0,type:"button",class:"copy-url",onClick:de(p=>e.copyLink(r),["stop"]),disabled:!!e.copyingId,title:"Copy link: "+r._viewUrl,"aria-label":"Copy anonymous link for "+r._label},[n("span",oU,d(e.copyingId===r._type+":"+r._id?"Link copied":""),1),(a(),l("svg",sU,[n("use",{href:e.copyingId===r._type+":"+r._id?"#ui-icon-check":"#project-icon-copy"},null,8,iU)])),n("span",rU,d(e.copyingId===r._type+":"+r._id?"Copied":"Copy link"),1)],8,nU)):f("v-if",!0),r._viewUrl&&!(r?._statusKey=="expired"||r?._statusKey=="removed")?(a(),l("a",{key:1,class:"row-edit row-open",href:e.safeUrl(r._viewUrl),target:"_blank",rel:"noopener",title:"Open what reviewers see","aria-label":"Open anonymous page for "+r._label},[...t[73]||(t[73]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])],8,aU)):f("v-if",!0),r?._editUrl&&!r?._broken&&r?._statusKey!="removed"?(a(),l("a",{key:2,class:"row-edit",href:e.safeUrl(r._editUrl),title:"Edit "+r._name,"aria-label":"Edit "+r._name},[...t[74]||(t[74]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1)])],8,lU)):f("v-if",!0),!(r._viewUrl&&!(r?._statusKey=="expired"||r?._statusKey=="removed"))&&r?._statusKey!="removed"&&r?._statusKey!="expired"?(a(),l("button",{key:3,type:"button",class:"copy-url is-disabled","aria-disabled":"true",onClick:t[20]||(t[20]=de(()=>{},["stop"])),title:r?._statusKey=="expired"?"Link expired: reviewers can no longer open it":r?._statusKey=="removed"?"Link offline: reviewers can no longer open it":"No link: this record is incomplete","aria-label":"Copy link unavailable for "+r._label},[...t[75]||(t[75]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-copy"})],-1),n("span",{class:"copy-url-label","aria-hidden":"true"},"Copy link",-1)])],8,dU)):f("v-if",!0),!(r._viewUrl&&!(r?._statusKey=="expired"||r?._statusKey=="removed"))&&r?._statusKey!="removed"&&r?._statusKey!="expired"?(a(),l("button",{key:4,type:"button",class:"row-edit row-open is-disabled","aria-disabled":"true",onClick:t[21]||(t[21]=de(()=>{},["stop"])),title:r?._statusKey=="expired"?"Link expired: reviewers can no longer open it":r?._statusKey=="removed"?"Link offline: reviewers can no longer open it":"No link: this record is incomplete","aria-label":"Open unavailable for "+r._label},[...t[76]||(t[76]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])],8,uU)):f("v-if",!0),r?._editUrl&&!r?._broken?f("v-if",!0):(a(),l("button",{key:5,type:"button",class:"row-edit is-disabled","aria-disabled":"true",onClick:t[22]||(t[22]=de(()=>{},["stop"])),title:"Can't edit: this record is incomplete","aria-label":"Edit unavailable for "+r._label},[...t[77]||(t[77]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1)])],8,cU)),r?._broken?(a(),l("div",pU,[n("button",{type:"button",class:"btn btn-icon-dots is-disabled","aria-disabled":"true",onClick:t[23]||(t[23]=de(()=>{},["stop"])),title:"No actions: this record is incomplete. Use Review details.","aria-label":"No actions available for "+r._label},[...t[78]||(t[78]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})],-1)])],8,fU)])):f("v-if",!0),r?._broken?f("v-if",!0):(a(),l("div",mU,[n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","data-project-actions":encodeURIComponent(r._type+":"+r._id),"aria-label":"Actions for "+r?._name},[...t[79]||(t[79]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})],-1)])],8,hU),n("div",gU,[n("button",{type:"button",class:"dropdown-item",onClick:p=>e.showProjectDetails(r),"aria-controls":e.projectDetailsId(r),"aria-expanded":e.selectedProject===r},"Project details & name",8,vU),n("a",{class:"dropdown-item",href:e.safeUrl(r?._viewUrl)}," View ",8,yU),r?._type==="repo"&&r?.options?.page&&r?.status=="ready"?(a(),l("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+r?.repoId+"/")}," View page ",8,bU)):f("v-if",!0),r?._viewUrl?(a(),l("button",{key:1,type:"button",class:"dropdown-item",onClick:p=>e.copyLink(r),disabled:!!e.copyingId}," Copy anonymous link ",8,wU)):f("v-if",!0),n("a",{class:"dropdown-item",href:e.safeUrl(r?._editUrl)}," Edit ",8,kU),r?.status=="ready"||r?.status=="error"?(a(),l("button",{key:2,type:"button",class:"dropdown-item",onClick:p=>e.refreshItem(r)}," Force update ",8,CU)):f("v-if",!0),r?.status=="removed"?(a(),l("button",{key:3,type:"button",class:"dropdown-item",onClick:p=>e.refreshItem(r)}," Enable ",8,SU)):f("v-if",!0),r?.status=="expired"?(a(),l("button",{key:4,type:"button",class:"dropdown-item",onClick:p=>e.extendItem(r)}," Extend 6 months ",8,EU)):f("v-if",!0),(r?.status=="ready"||r?.status=="expired"||r?.status=="error")&&r?.role!=="coauthor"?(a(),l("div",NU,[t[80]||(t[80]=n("div",{class:"dropdown-divider"},null,-1)),n("button",{type:"button",class:"dropdown-item dropdown-item-danger",onClick:p=>e.removeItem(r)}," Remove ",8,RU)])):f("v-if",!0)])]))])],10,p7)),!e.loading&&e.selectedProject===r?(a(),l("div",TU,[n("div",{class:"project-details",role:"cell","aria-colspan":"5",id:e.projectDetailsId(r),tabindex:"-1",onKeydown:_t(de(p=>e.closeProjectDetails(r),["stop"]),["esc"])},[n("div",DU,[t[82]||(t[82]=n("h2",null,"Project details",-1)),n("button",{type:"button",class:"project-close",onClick:p=>e.closeProjectDetails(r),"aria-label":"Close project details"},[...t[81]||(t[81]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,AU)]),n("dl",IU,[n("div",null,[t[83]||(t[83]=n("dt",null,"Source",-1)),n("dd",null,d(r._source||"Not available"),1)]),n("div",null,[t[84]||(t[84]=n("dt",null,"Anonymous ID",-1)),n("dd",null,[n("code",null,d(r._id||"Missing identifier"),1)])]),r.source?.commit?(a(),l("div",OU,[t[85]||(t[85]=n("dt",null,"Commit",-1)),n("dd",null,[n("code",null,d(r.source.commit),1)])])):f("v-if",!0),r.conference?(a(),l("div",MU,[t[86]||(t[86]=n("dt",null,"Conference",-1)),n("dd",null,d(r.conference),1)])):f("v-if",!0),n("div",null,[t[87]||(t[87]=n("dt",null,"Status",-1)),n("dd",null,[m(d(e.fmt.statusLabel(r.status)),1),r.statusMessage?(a(),l("span",VU," \xB7 "+d(e.fmt.statusMsg(r.statusMessage)),1)):f("v-if",!0)])]),r.anonymizeDate?(a(),l("div",qU,[t[88]||(t[88]=n("dt",null,"Last anonymized",-1)),n("dd",null,d(e.fmt.humanTime(r.anonymizeDate)),1)])):f("v-if",!0)]),r._stale?(a(),l("p",LU,"This download has not progressed recently. Check the source access and selected branch before retrying.")):f("v-if",!0),r._editUrl?(a(),l("a",{key:1,class:"project-attention-action",href:e.safeUrl(r._editUrl)},d(e.needsAttention(r)?"Check source settings":"Edit anonymization settings"),9,_U)):f("v-if",!0),r._id?(a(),l("form",{key:2,class:"project-name-form",onSubmit:de(p=>e.saveProjectName(r),["prevent"])},[n("label",{for:"project-name-"+r._type+"-"+r._id},"Project name",8,FU),n("p",{id:"project-name-help-"+r._type+"-"+r._id},"Only you see this name. Leave it blank to use the default.",8,UU),n("div",BU,[P(n("input",{class:"form-control",type:"text",id:"project-name-"+r._type+"-"+r._id,"aria-describedby":"project-name-help-"+r._type+"-"+r._id,maxlength:"100","onUpdate:modelValue":t[24]||(t[24]=p=>e.projectName=p),disabled:e.nameSaving},null,8,zU),[[nt,e.projectName]]),n("button",{class:"btn btn-ink",type:"submit",disabled:e.nameSaving},d(e.nameSaving?"Saving\u2026":"Save name"),9,HU)]),e.nameError?(a(),l("p",jU,d(e.nameError),1)):f("v-if",!0),e.nameMessage?(a(),l("p",GU,d(e.nameMessage),1)):f("v-if",!0)],40,$U)):f("v-if",!0)],40,PU)])):f("v-if",!0)],64))),128)),!e.loading&&e.filteredItems?.length==0?(a(),l("div",WU,[t[90]||(t[90]=n("svg",{class:"project-type-svg project-empty-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),e.hasProjects()?f("v-if",!0):(a(),l("span",KU,"You have no anonymizations yet.")),e.hasProjects()?(a(),l("span",YU,"Nothing matches the current filters.")):f("v-if",!0),n("div",JU,[e.hasActiveFilters()?(a(),l("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[25]||(t[25]=r=>e.clearFilters())},"Clear filters")):f("v-if",!0),e.hasProjects()?f("v-if",!0):(a(),l("a",XU,[...t[89]||(t[89]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-plus"})],-1),m(" New anonymization",-1)])]))])])):f("v-if",!0)],10,i7)]),e.dashboardCursor||e.dashboardError?(a(),l("div",QU,[e.dashboardError?(a(),l("p",ZU,d(e.dashboardError),1)):f("v-if",!0),e.dashboardCursor?(a(),l("button",{key:1,type:"button",class:"btn",onClick:t[26]||(t[26]=r=>e.loadMoreProjects()),disabled:e.loadingMore},d(e.loadingMore?"Loading\u2026":"Load more projects"),9,xU)):f("v-if",!0)])):f("v-if",!0)])}var e9={class:"viewer-bar"},t9={class:"vb-left"},n9=["aria-label","title"],o9=["href","title"],s9={class:"vb-artifact-id"},i9={class:"vb-right"},r9=["title"],a9={class:"vb-help"},l9=["aria-expanded"],d9={key:0,class:"acct-menu vb-help-menu",role:"menu"},u9=["aria-label","title"],c9={class:"ui-icon","aria-hidden":"true"},p9=["href"],f9={key:1,class:"acct"},m9=["aria-label","aria-expanded"],h9=["src"],g9={key:1,class:"acct-initial"},v9={key:0,class:"acct-menu",role:"menu"},y9={class:"acct-menu-head"},b9={key:2,class:"vb-signin",href:"/signin",target:"_self"},w9={key:0,class:"vb-context"},k9=["href","title"],C9={key:0,class:"vb-context-date"},S9=["aria-label"],E9={class:"ui-icon","aria-hidden":"true"},N9=["href"],R9=["textContent"],T9={class:"leftCol-head"},P9={class:"leftCol-search"},D9={class:"tree-search-box"},A9=["href"],I9={type:"text",class:"tree-search-input",placeholder:"Search files","aria-label":"Search files"},O9=["title","href"],M9={class:"leftCol-body"},V9={key:0,class:"paper-inline-warning",role:"alert"},q9={key:1,class:"paper-inline-warning",role:"alert"},L9={class:"explorer-main"},_9={class:"breadcrumb paths","aria-label":"Path"},$9={class:"breadcrumb-item breadcrumb-root"},F9=["href","title","textContent"],U9=["aria-current","textContent"],B9=["aria-label","title"],z9={class:"ui-icon","aria-hidden":"true"},H9=["href"],j9={class:"status-bar-actions"},G9=["href"],W9={class:"d-none d-md-inline"},K9={class:"ui-icon","aria-hidden":"true"},Y9=["href"],J9={class:"d-none d-md-inline"},X9=["href"],Q9={class:"explorer-content"};function Sp(e,t){let s=Qe("tree"),i=Qe("partial-view"),o=Pe("field");return a(),l("div",{class:R(["explorer-page",{"files-hidden":e.sidebarHidden}]),style:Ae({"--sidebar-w":e.sidebarWidth+"px"})},[n("header",e9,[n("div",t9,[t[15]||(t[15]=n("a",{class:"vb-logo",href:"/"},[m("Anonymous "),n("em",null,"GitHub")],-1)),n("button",{type:"button",class:"vb-icon vb-sidebar","aria-label":e.sidebarHidden?"Show file tree":"Hide file tree",title:e.sidebarHidden?"Show file tree":"Hide file tree",onClick:t[0]||(t[0]=r=>e.sidebarHidden=!e.sidebarHidden)},[...t[13]||(t[13]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sidebar"})],-1)])],8,n9),e.repoId?(a(),l("a",{key:0,class:"vb-artifact",href:e.safeUrl("/r/"+e.repoId+"/"),title:"Anonymous artifact "+e.repoId},[t[14]||(t[14]=n("span",{class:"sr-only"},"Artifact ",-1)),n("span",s9,d(e.repoId),1)],8,o9)):f("v-if",!0)]),n("div",i9,[e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("span",{key:0,class:"vb-snapshot",title:(e.options?.expirationDate?"Available until "+e.fmt?.date(e.options.expirationDate)+". ":"")+(e.options?.anonymizedAt&&!e.options?.publishedAt?"Older repositories have no recorded publication date. The source commit date does not establish when files became available here.":(e.options?.sourceCommitDate?"Source commit ":e.options?.anonymizedAt?"Anonymized ":"Updated ")+e.fmt?.date(e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)+(e.options?.publishedAt?" \xB7 snapshot ready "+e.fmt?.date(e.options.publishedAt):""))},[t[16]||(t[16]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),t[17]||(t[17]=n("span",null,"Snapshot",-1)),n("span",null,d(e.fmt?.date(e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)),1)],8,r9)):f("v-if",!0),t[25]||(t[25]=n("a",{class:"vb-support",href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener",title:"Support Anonymous GitHub \u2014 help keep it free for researchers"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-heart"})]),n("span",null,"Support")],-1)),n("div",a9,[n("button",{type:"button",class:"vb-help-btn","aria-haspopup":"true","aria-expanded":e.helpOpen?"true":"false",onClick:t[1]||(t[1]=de(r=>e.helpOpen=!e.helpOpen,["stop"]))},[...t[18]||(t[18]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})],-1),n("span",null,"Help",-1)])],8,l9),e.helpOpen?(a(),l("div",d9,[...t[19]||(t[19]=[n("a",{role:"menuitem",href:"/faq"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})]),n("span",null,[m("FAQ"),n("small",null,"How anonymization works")])],-1),n("a",{role:"menuitem",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",target:"_blank",rel:"noopener"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-bug"})]),n("span",null,[m("Report a bug"),n("small",null,"About this service, not the paper")])],-1)])])):f("v-if",!0)]),n("button",{type:"button",class:"vb-icon","aria-label":e.isDarkMode?"Switch to light mode":"Switch to dark mode",title:e.isDarkMode?"Light mode":"Dark mode",onClick:t[2]||(t[2]=r=>e.darkMode(!e.isDarkMode))},[(a(),l("svg",c9,[n("use",{href:e.isDarkMode?"#ui-icon-sun":"#ui-icon-moon"},null,8,p9)]))],8,u9),e.user?(a(),l("div",f9,[n("button",{type:"button",class:"acct-chip","aria-haspopup":"true","aria-label":"Account: "+e.user?.username,"aria-expanded":e.accountOpen?"true":"false",onClick:t[3]||(t[3]=de(r=>e.accountOpen=!e.accountOpen,["stop"]))},[e.user?.photo?(a(),l("img",{key:0,src:e.safeUrl(e.user.photo),alt:"",width:"26",height:"26"},null,8,h9)):(a(),l("span",g9,d((e.user?.username||"?").charAt(0).toUpperCase()),1))],8,m9),e.accountOpen?(a(),l("div",v9,[n("div",y9,[t[20]||(t[20]=m("Signed in as ",-1)),n("b",null,"@"+d(e.user?.username),1)]),t[21]||(t[21]=n("a",{role:"menuitem",href:"/dashboard"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-grid"})]),m("My work")],-1)),t[22]||(t[22]=n("a",{role:"menuitem",href:"/profile"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})]),m("Settings")],-1)),t[23]||(t[23]=n("a",{role:"menuitem",href:"/api/user/logout",target:"_self"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-logout"})]),m("Sign out")],-1))])):f("v-if",!0)])):(a(),l("a",b9,[...t[24]||(t[24]=[n("i",{class:"fab fa-github","aria-hidden":"true"},null,-1),m("Sign in",-1)])]))])]),e.repoId?(a(),l("div",w9,[n("a",{class:"vb-context-id",href:e.safeUrl("/r/"+e.repoId+"/"),title:"Anonymous artifact "+e.repoId},d(e.repoId),9,k9),e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("span",C9,"Snapshot "+d(e.fmt?.date(e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)),1)):f("v-if",!0)])):f("v-if",!0),P(n("button",{class:"sidebar-toggle",onClick:t[4]||(t[4]=r=>e.sidebarCollapsed=!e.sidebarCollapsed),"aria-label":e.sidebarCollapsed?"Show files":"Hide files"},[(a(),l("svg",E9,[n("use",{href:e.sidebarCollapsed?"#ui-icon-folder":"#project-icon-close"},null,8,N9)])),n("span",{textContent:d(e.sidebarCollapsed?"Files":"Close")},null,8,R9)],8,S9),[[Q,e.files?.length]]),P(n("div",{class:R(["leftCol",{collapsed:e.sidebarCollapsed}])},[n("div",T9,[t[27]||(t[27]=n("span",{class:"leftCol-eyebrow"},"Files",-1)),n("button",{class:"leftCol-close","aria-label":"Close files",onClick:t[5]||(t[5]=r=>e.sidebarCollapsed=!0)},[...t[26]||(t[26]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])])]),n("div",P9,[n("div",D9,[(a(),l("svg",{class:R(["ui-icon tree-search-icon",{"fa-spin":e.fileSearchLoading}]),"aria-hidden":"true"},[n("use",{href:e.fileSearchLoading?"#ui-icon-spinner":"#ui-icon-search"},null,8,A9)],2)),P(n("input",I9,null,512),[[o,{state:e.viewState,set:r=>{e.fileSearchQuery=r},value:e.fileSearchQuery,form:null,options:{debounce:300},change:()=>{e.onFileSearchChange()}}]]),P(n("kbd",{class:"tree-search-kbd"},d(e.isMac?"\u2318":"Ctrl+")+"K",513),[[Q,!e.fileSearchQuery]]),P(n("button",{class:"tree-search-clear","aria-label":"Clear search",onClick:t[6]||(t[6]=r=>{e.fileSearchQuery="",e.onFileSearchChange()})},"\xD7",512),[[Q,e.fileSearchQuery]])]),e.options?.download?(a(),l("a",{key:0,target:"_self",class:"search-zip","aria-label":"Download repository as ZIP",title:"Download the repository (snapshot "+e.fmt?.date(e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)+") as ZIP",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[28]||(t[28]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),n("span",{class:"search-zip-label","aria-hidden":"true"},"ZIP",-1)])],8,O9)):f("v-if",!0)]),n("div",M9,[e.options?.truncatedFolders?.length>0?(a(),l("div",V9,[t[29]||(t[29]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),m(" "+d(e.fmt?.translate("WARNINGS.repo_truncated")),1)])):f("v-if",!0),e.options?.hasSubmodules?(a(),l("div",q9,[t[30]||(t[30]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),m(" "+d(e.fmt?.translate("WARNINGS.submodules_not_included")),1)])):f("v-if",!0),Me(s,{class:"files",file:e.files,"search-query":e.fileSearchQuery,"search-results":e.fileSearchResults,page:e.viewState},null,8,["file","search-query","search-results","page"])])],2),[[Q,e.files?.length]]),P(n("div",{class:"leftCol-resizer",role:"separator","aria-orientation":"vertical","aria-label":"Resize file tree",title:"Drag to resize",onPointerdown:t[7]||(t[7]=r=>e.startSidebarResize(r))},null,544),[[Q,e.files?.length&&!e.sidebarHidden]]),P(n("div",{class:"leftCol-backdrop",onClick:t[8]||(t[8]=r=>e.sidebarCollapsed=!0)},null,512),[[Q,e.files?.length&&!e.sidebarCollapsed]]),n("div",L9,[P(n("div",{class:R(["status-bar",{"is-redundant":["code","text","html"].includes(e.type)&&e.content!=null||e.fileFrame()}])},[P(n("button",{type:"button",class:"btn btn-sm status-files-btn","aria-label":"Show files",title:"Show files",onClick:t[9]||(t[9]=r=>e.sidebarHidden?e.sidebarHidden=!1:e.sidebarCollapsed=!1)},[...t[31]||(t[31]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-folder"})],-1),n("span",null,"Files",-1)])],512),[[Q,e.files?.length]]),n("ol",_9,[n("li",$9,[n("a",{href:e.safeUrl("/r/"+e.repoId+"/"),title:e.repoId,textContent:d(/^[0-9a-f]{8}-[0-9a-f]{4}-/i.test(e.repoId||"")?"repository":e.repoId)},null,8,F9)]),(a(!0),l(V,null,X(e.paths,(r,u)=>(a(),l("li",{class:"breadcrumb-item","aria-current":u===e.paths.length-1?"page":null,textContent:d(r)},null,8,U9))),256))]),P(n("button",{type:"button",class:"btn btn-sm btn-icon-only btn-ghost copy-path-btn","aria-label":e.pathCopied?"Path copied":"Copy path",title:e.pathCopied?"Path copied":"Copy path",onClick:t[10]||(t[10]=r=>e.copyPath())},[(a(),l("svg",z9,[n("use",{href:e.pathCopied?"#ui-icon-check":"#project-icon-copy"},null,8,H9)]))],8,B9),[[Q,e.filePath]]),n("div",j9,[e.options?.isAdmin||e.options?.isOwner?(a(),l("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[32]||(t[32]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),n("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,G9)):f("v-if",!0),e.type=="html-doc"&&!e.showSource?(a(),l("button",{key:1,class:R(["btn btn-sm",{"btn-active":e.allowScripts}]),"aria-label":"Allow this document to run JavaScript",title:"Scripts in this file are blocked by default. Enable them only if you trust the repository \u2014 the document stays isolated from your session either way.",onClick:t[11]||(t[11]=r=>e.toggleAllowScripts())},[t[33]||(t[33]=n("i",{class:"fab fa-js"},null,-1)),n("span",W9,d(e.allowScripts?"JS on":"JS off"),1)],2)):f("v-if",!0),e.type=="html-doc"?(a(),l("button",{key:2,class:"btn btn-sm","aria-label":"Toggle between the rendered document and its source",title:"Toggle between the rendered document and its source",onClick:t[12]||(t[12]=r=>e.toggleSource())},[(a(),l("svg",K9,[n("use",{href:e.showSource?"#project-icon-eye":"#ui-icon-code"},null,8,Y9)])),n("span",J9,d(e.showSource?"Rendered":"Source"),1)])):f("v-if",!0),e.options?.hasWebsite?(a(),l("a",{key:3,target:"_self",class:"btn btn-sm","aria-label":"Website",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[34]||(t[34]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),n("span",{class:"d-none d-md-inline"}," Website",-1)])],8,X9)):f("v-if",!0)])],2),[[Q,e.type!="error"||e.files?.length]]),n("div",Q9,[Me(i,{name:"partials/pageView.htm",state:e.viewState},null,8,["state"])])])],6)}var Z9={class:"paper-faq"},x9={class:"paper-faq-body"},eB={class:"paper-faq-toc"},tB={class:"faq-search",role:"search"},nB={class:"faq-search-field"},oB={id:"faq-search-status",class:"faq-search-status","aria-live":"polite"},sB={key:0,class:"faq-search-empty"},iB={class:"faq-search-empty-actions"};function Ep(e,t){let s=Qe("partial-view"),i=Pe("paper-scrollspy");return a(),l(V,null,[n("div",Z9,[t[12]||(t[12]=n("div",{class:"paper-faq-hero"},[n("div",{class:"paper-faq-eyebrow"},"Help"),n("h1",{class:"paper-faq-title"},[m("Mirrors, redaction, and "),n("em",null,"what reviewers see.")]),n("p",{class:"paper-faq-lede"}," How to set up an anonymous mirror, what it hides, and how long it stays online. ")],-1)),n("div",x9,[P((a(),l("aside",eB,[...t[5]||(t[5]=[Ce('
Contents
',2)])])),[[i]]),n("section",{class:R(["faq-section",{"faq-searching":!!e.faqQuery.trim()}]),"aria-label":"FAQs"},[n("div",tB,[t[7]||(t[7]=n("label",{for:"faq-search-input"},"Search questions",-1)),n("div",nB,[t[6]||(t[6]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)),P(n("input",{id:"faq-search-input",type:"search",class:"form-control","onUpdate:modelValue":t[0]||(t[0]=o=>e.faqQuery=o),onInput:t[1]||(t[1]=o=>e.filterFaq()),onSearch:t[2]||(t[2]=o=>e.filterFaq()),onKeydown:t[3]||(t[3]=_t(o=>e.clearFaqSearch(),["esc"])),placeholder:"e.g. expiry, pull request, PDF",autocomplete:"off",spellcheck:"false","aria-describedby":"faq-search-status"},null,544),[[nt,e.faqQuery]])]),n("p",oB,[e.faqQuery.trim()&&e.faqResults?(a(),l(V,{key:0},[m(d(e.faqResults===1?"1 result":e.faqResults+" results"),1)],64)):f("v-if",!0)])]),e.faqQuery.trim()&&e.faqResults===0?(a(),l("div",sB,[n("strong",null,"No questions match \u201C"+d(e.faqQuery.trim())+"\u201D.",1),t[9]||(t[9]=n("p",null,"Try a shorter word, or ask us directly.",-1)),n("div",iB,[n("button",{type:"button",class:"btn btn-outline-ink btn-sm",onClick:t[4]||(t[4]=o=>e.clearFaqSearch())},"Clear search"),t[8]||(t[8]=n("a",{class:"btn btn-link btn-sm",target:"_blank",rel:"noopener",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml"},"Open an issue",-1))])])):f("v-if",!0),t[10]||(t[10]=n("div",{class:"faq-list"},[f(" General "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})]),m("General ")]),n("div",{class:"panel-group",id:"faq-general",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingWhatIs"},[n("h3",{class:"panel-title"},[n("a",{role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#whatIs","aria-expanded":"true","aria-controls":"whatIs"}," What is Anonymous GitHub? ")])]),n("div",{id:"whatIs",class:"panel-collapse collapse show",role:"tabpanel","aria-labelledby":"headingWhatIs"},[n("div",{class:"panel-body p-3"},[n("p",null," Anonymous GitHub is an open-source tool with free hosting and optional paid plans that anonymizes GitHub repositories and pull requests for double-anonymous (double-blind) peer review. It replaces identifying information, such as the repository owner, organization name, and custom terms, so that reviewers cannot determine the identity of the authors through the code repository. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingHowWork"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#howWork","aria-expanded":"false","aria-controls":"howWork"}," How does Anonymous GitHub work? ")])]),n("div",{id:"howWork",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingHowWork"},[n("div",{class:"panel-body p-3"},[n("p",null," Anonymous GitHub either downloads the complete repository and anonymizes the content, or proxies requests to GitHub on the fly. In both cases, the original and anonymized versions of files are cached on the server. The system automatically detects and replaces the repository owner, organization name, and repository name. You can also specify additional custom terms to anonymize using one-per-line regex patterns. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingScope"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#scope","aria-expanded":"false","aria-controls":"scope"}," What is the scope of anonymization? ")])]),n("div",{id:"scope",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingScope"},[n("div",{class:"panel-body p-3"},[n("p",null," In double-anonymous peer review, the boundary of anonymization is the paper plus its online appendix, not the entire internet. Searching for any part of the paper or the online appendix can be considered a deliberate attempt to break anonymity. Anonymous GitHub anonymizes the repository owner, organization, repository name, file and directory names, and file contents across all text-based file types. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingCost"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#cost","aria-expanded":"false","aria-controls":"cost"}," How much does it cost? ")])]),n("div",{id:"cost",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCost"},[n("div",{class:"panel-body p-3"},[n("p",null," A free account includes 5 owned repositories and 5 GiB of source files. Optional paid plans offer more capacity, automatic refresh, and, with an author subscription, never-expiring repositories. Reviewers can read shared repositories without an account or payment. "),n("p",null,[m(" See "),n("a",{href:"/profile#settings-billing"},"Plans and billing"),m(" for available plans and current prices. Offers depend on whether payments are enabled on this instance; the checkout shows the amount before you pay. Subscriptions help fund hosting, storage, backups, and continued maintenance. ")]),n("p",null,[m(" You can also support development through "),n("a",{href:"https://github.com/sponsors/tdurieux/",target:"_blank",rel:"noopener"},"GitHub Sponsors"),m(" or "),n("a",{href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener"},"Ko-fi"),m(". Donations are separate from subscriptions and do not automatically unlock paid features. ")])])])])]),f(" Plans and billing "),n("h4",{class:"faq-cat",id:"faq-plans-title"},"Plans and billing"),n("div",{class:"panel-group",id:"faq-plans",role:"tablist","aria-label":"Plans and billing","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingWhyPaid"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#whyPaid","aria-expanded":"false","aria-controls":"whyPaid"},"Why is Anonymous GitHub no longer completely free?")])]),n("div",{id:"whyPaid",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingWhyPaid"},[n("div",{class:"panel-body p-3"},[n("p",null,"Anonymous GitHub started as a small free service and was paid for out of pocket. Three things have changed since then:"),n("ul",null,[n("li",null,[n("strong",null,"Servers cost much more."),m(" Every hosted repository needs storage, bandwidth and backups, and these costs have risen sharply.")]),n("li",null,[n("strong",null,"Many more people use it."),m(" More users means more repositories to store and keep up to date, more support requests and more maintenance.")]),n("li",null,[n("strong",null,"AI has made security work heavier."),m(" AI-driven scrapers and automated abuse send far more traffic than before. Blocking them and keeping hosted content safe takes constant work.")])]),n("p",null,"The core service stays free: anonymizing a repository, sharing the link and reviewer access cost nothing, and reviewers never need an account. Most authors never need to pay. The paid options are small one-time payments for one repository, plus an optional subscription for heavy users. They are priced to cover running costs, not to make a profit."),n("p",null,[m("The source code remains open, so you can still "),n("a",{href:"#faq-hosting"},"host your own instance"),m(" for free.")])])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingFreePlan"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#freePlan","aria-expanded":"false","aria-controls":"freePlan"},"What is included in a free account?")])]),n("div",{id:"freePlan",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingFreePlan"},[n("div",{class:"panel-body p-3"},[n("p",null,"The default free allowance is 5 repositories you own and 5 GiB of source files in total. Core anonymization and reviewer access remain free. You can manually refresh a repository within your allowance and choose a dated expiration up to 5 months ahead, then extend it again before it expires. Repositories submitted to a conference can stay online until the end of its review window."),n("p",null,"Repositories shared with you as a co-author do not use your own slots. Gists and pull requests are not included in these repository quotas. The usage shown in your account is the allowance available on this instance.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingAuthorPlans"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#authorPlans","aria-expanded":"false","aria-controls":"authorPlans"},"What do monthly and annual author subscriptions include?")])]),n("div",{id:"authorPlans",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingAuthorPlans"},[n("div",{class:"panel-body p-3"},[n("p",null,[m("Both include 20 owned repositories and 40 GiB of source files in total. They also allow automatic refresh when enabled in repository settings and let the owner choose "),n("strong",null,"Never expire"),m(".")]),n("p",null,[m("Monthly and annual plans offer the same features with different billing periods. They renew automatically until you cancel renewal. Current prices are shown in "),n("a",{href:"/profile#settings-billing"},"Plans and billing"),m(".")]),n("p",null,"Paid plans do not change how anonymization works. File-size limits and other service safeguards still apply. Review your anonymized content before sharing it.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingReviewPass"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#reviewPass","aria-expanded":"false","aria-controls":"reviewPass"},"Can I pay for one repository without subscribing?")])]),n("div",{id:"reviewPass",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingReviewPass"},[n("div",{class:"panel-body p-3"},[n("p",null,"Yes. These one-time add-ons apply to a single repository you own. None of them renews automatically:"),n("ul",null,[n("li",null,[n("strong",null,"Paper pack"),m(": an extra repository, automatic updates for 180 days and one more year before it expires, in a single payment. It covers what one paper usually needs during review.")]),n("li",null,[n("strong",null,"Extra repository"),m(": host one more repository once your free repositories are used up. It has its own 2 GiB allowance and does not count toward your free repositories. It lasts as long as the repository exists.")]),n("li",null,[n("strong",null,"Live updates"),m(": automatic refresh for 180 days, with a separate 2 GiB allowance.")]),n("li",null,[n("strong",null,"Extended expiration"),m(": choose an expiration date up to one year after purchase. Buying it again adds another year.")]),n("li",null,[n("strong",null,"Never expire"),m(": the repository has no expiration date. A full refund or a payment dispute ends it after a 90-day grace period.")])]),n("p",null,[m("When your free allowance is full, the Extra repository and Paper pack options are offered as you create the repository. You can also buy an add-on from the repository's edit page, or enter the anonymized ID of an existing repository in "),n("a",{href:"/profile#settings-billing"},"Plans and billing"),m(". Current prices are shown there.")])])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingConferencePlans"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#conferencePlans","aria-expanded":"false","aria-controls":"conferencePlans"},"Can a conference or lab pay for a group?")])]),n("div",{id:"conferencePlans",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingConferencePlans"},[n("div",{class:"panel-body p-3"},[n("p",null,"A conference review package provides a shared allowance for a review window of up to 180 days, with automatic updates for every submission. It comes in three sizes: Workshop (25 repositories, 10 GiB), Conference (100 repositories, 50 GiB) and Large conference (400 repositories, 200 GiB). Choose the size when you create the conference; it cannot change afterwards. The organizer pays once and authors pay nothing (the price is shown when you create the conference); the package does not renew automatically. A lab organizing a review can use this shared package too."),n("p",null,"New conferences no longer have a free plan: every new conference is a review package. Conferences created earlier keep working as before. The conference must be activated by payment before authors can submit under its Conference ID. Eligible repositories use the conference allowance before an author's personal allowance, so authors do not each need a subscription for that capacity."),n("p",null,"The package has a fixed review window. Never expire still requires the repository owner's author subscription or a Never expire add-on for that repository.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingPaidCoauthors"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#paidCoauthors","aria-expanded":"false","aria-controls":"paidCoauthors"},"Does every co-author need to pay?")])]),n("div",{id:"paidCoauthors",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPaidCoauthors"},[n("div",{class:"panel-body p-3"},[n("p",null,"No. Co-authors can collaborate without buying a subscription. A shared repository uses its owner's allowance, unless a repository pass or paid conference covers it. It does not consume each co-author's personal allowance."),n("p",null,"A co-author's subscription does not increase the owner's allowance. If the owner's available capacity is exhausted, a co-author's refresh or edit may also be blocked. Reviewers never need a paid account.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingCapacity"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#capacity","aria-expanded":"false","aria-controls":"capacity"},"What counts toward my allowance, and what happens at the limit?")])]),n("div",{id:"capacity",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCapacity"},[n("div",{class:"panel-body p-3"},[n("p",null,"The repository limit counts work you own. Storage counts the source-file sizes reserved for those repositories, not just files a reviewer opens. Archived or failed repositories can still reserve capacity, and a refresh does not automatically reduce a previous storage reservation."),n("p",null,"At the repository limit you cannot add another repository to that allowance. An edit or refresh must also fit the available storage. Remove work you no longer need, add an Extra repository for the new one, choose a subscription, or use an eligible conference allowance."),n("p",null,"Removing a repository releases its reservation when capacity is next checked. Expired repositories may continue to reserve capacity until cleanup. Reaching a limit does not itself delete existing review links.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingNeverExpire"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#neverExpire","aria-expanded":"false","aria-controls":"neverExpire"},"What happens to Never expire repositories if I stop subscribing?")])]),n("div",{id:"neverExpire",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingNeverExpire"},[n("div",{class:"panel-body p-3"},[n("p",null,[m("Never expire is available to monthly and annual author subscribers, or for one repository with the one-time Never expire add-on. If a subscription ends, these repositories remain available for a "),n("strong",null,"90-day grace period"),m(", then expire and their hosted content is removed.")]),n("p",null,"Renewing during the grace period keeps them active. After expiration, you must renew and explicitly reactivate the repository; restoring content also requires access to its GitHub source. A repository does not become public on GitHub when it expires."),n("p",null,"Existing never-expiring repositories created before this billing policy retain their settings. Never expire is not a guarantee of perpetual service availability.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingCancelPlan"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#cancelPlan","aria-expanded":"false","aria-controls":"cancelPlan"},"How do I cancel, and what happens after paid access ends?")])]),n("div",{id:"cancelPlan",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCancelPlan"},[n("div",{class:"panel-body p-3"},[n("p",null,[m("Open "),n("a",{href:"/profile#settings-billing"},"Plans and billing"),m(" and choose "),n("strong",null,"Manage billing and invoices"),m(" to manage renewal. Cancelling renewal keeps subscription benefits until the end of the paid period.")]),n("p",null,"After paid access ends, repositories fall back to another eligible allowance or the free allowance. Automatic refresh pauses on the free allowance; manual refresh remains available within its limits. Existing review links keep their configured expiration dates, except paid Never expire repositories, which follow the 90-day grace period described above."),n("p",null,"A repository pass or conference package ends after its paid window without automatic renewal.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingRefunds"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#refunds","aria-expanded":"false","aria-controls":"refunds"},"Can I get a refund?")])]),n("div",{id:"refunds",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingRefunds"},[n("div",{class:"panel-body p-3"},[n("p",null,[m("Refunds are handled case by case. "),n("a",{href:"mailto:tdurieux@anonymous.4open.science"},"Email the maintainer"),m(" with the date of the payment and the repository it was for.")]),n("p",null,"A full refund ends what that payment bought. For a Paper pack, this means all three parts: the extra repository, automatic updates and the extended expiration. A Never expire repository then expires after a 90-day grace period. A partial refund keeps your access."),n("p",null,"To stop a subscription, cancel its renewal instead of asking for a refund. You keep access until the end of the period you paid for.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingPaymentHandling"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#paymentHandling","aria-expanded":"false","aria-controls":"paymentHandling"},"How are payments handled?")])]),n("div",{id:"paymentHandling",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPaymentHandling"},[n("div",{class:"panel-body p-3"},[n("p",null,[m("Stripe processes checkout and billing management. Anonymous GitHub does not store your card details. You can access billing management and invoices from "),n("a",{href:"/profile#settings-billing"},"Plans and billing"),m(".")]),n("p",null,[m("Paid access is activated after payment is confirmed. If checkout succeeds but your account has not updated, choose "),n("strong",null,"Refresh payment status"),m(" before trying another purchase. If paid plans are unavailable on this instance, no checkout is offered.")])])])])]),f(" Features "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#project-icon-filter"})]),m("Features ")]),n("div",{class:"panel-group",id:"faq-features",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingFormats"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#formats","aria-expanded":"false","aria-controls":"formats"}," Which file formats are supported? ")])]),n("div",{id:"formats",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingFormats"},[n("div",{class:"panel-body p-3"},[n("p",null," Anonymous GitHub can display and render a wide variety of file types: "),n("ul",null,[n("li",null,[n("strong",null,"Text and source code"),m(": displayed with syntax highlighting")]),n("li",null,[n("strong",null,"Markdown"),m(": rendered as formatted HTML")]),n("li",null,[n("strong",null,"Images"),m(" (PNG, JPG, SVG, etc.): displayed inline")]),n("li",null,[n("strong",null,"PDFs"),m(": rendered directly in the browser")]),n("li",null,[n("strong",null,"Jupyter Notebooks"),m(": rendered with code cells and outputs")])]),n("p",null," Only text-based files are anonymized. Anonymous GitHub analyzes the content of each file to determine whether it is textual or binary. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingPR"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#pullRequests","aria-expanded":"false","aria-controls":"pullRequests"}," Can I anonymize pull requests? ")])]),n("div",{id:"pullRequests",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPR"},[n("div",{class:"panel-body p-3"},[n("p",null," Yes. In addition to full repositories, Anonymous GitHub supports anonymizing individual pull requests. Simply paste the URL of a GitHub pull request when creating a new anonymized repository, and the system will automatically detect that it is a pull request and anonymize it accordingly. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingConference"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#conference","aria-expanded":"false","aria-controls":"conference"}," What is the Conference ID feature? ")])]),n("div",{id:"conference",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingConference"},[n("div",{class:"panel-body p-3"},[n("p",null," When creating an anonymized repository, you can associate it with a Conference ID. This allows conferences to define default anonymization settings (such as expiration dates) that are automatically applied to repositories submitted under that conference. If your conference provides a Conference ID, enter it during the anonymization setup. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingExpiration"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#expiration","aria-expanded":"false","aria-controls":"expiration"}," What happens when an anonymized repository expires? ")])]),n("div",{id:"expiration",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingExpiration"},[n("div",{class:"panel-body p-3"},[n("p",null," You can configure one of three expiration strategies when creating your anonymized repository: "),n("ul",null,[n("li",null,[n("strong",null,"Never expire"),m(": with a monthly or annual author subscription, no scheduled expiration while subscribed. A 90-day grace period applies after paid access ends. See "),n("a",{href:"#neverExpire"},"the subscription expiration policy"),m(".")]),n("li",null,[n("strong",null,"Redirect to GitHub"),m(": after expiration, visitors are redirected to the original GitHub repository.")]),n("li",null,[n("strong",null,"Remove content"),m(": after expiration, the anonymized content is deleted from the server.")])])])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingDownload"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#download","aria-expanded":"false","aria-controls":"download"}," Can I download an anonymized repository? ")])]),n("div",{id:"download",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingDownload"},[n("div",{class:"panel-body p-3"},[n("p",null," Yes. Anonymized repositories can be downloaded as a ZIP file. This is useful if reviewers want to build or test the code locally. The downloaded archive contains the fully anonymized version of the repository. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingUpdates"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#updates","aria-expanded":"false","aria-controls":"updates"}," Are updates to the original repository reflected in the anonymized version? ")])]),n("div",{id:"updates",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingUpdates"},[n("div",{class:"panel-body p-3"},[n("p",null," You can refresh the anonymized repository from GitHub without creating a new share link. Free accounts can request a manual refresh within their allowance. Automatic refresh requires an eligible paid allowance and must be enabled in repository settings. It pauses when the repository falls back to the free allowance. "),n("p",null," After changing files or contributor names, review your anonymization terms before sharing the updated content. If GitHub access is revoked or the source is deleted, the service cannot fetch updates. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingCLI"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#cli","aria-expanded":"false","aria-controls":"cli"}," Is there a command-line tool? ")])]),n("div",{id:"cli",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCLI"},[n("div",{class:"panel-body p-3"},[n("p",null," Yes. Anonymous GitHub provides a CLI tool that lets you anonymize repositories locally, generating an anonymized ZIP file on your machine. Install it via npm: "),n("pre",{style:{"background-color":"var(--hover-bg-color)",padding:"12px","border-radius":"4px","margin-top":"8px",color:"var(--color)"}},[n("code",null,`npm install -g @tdurieux/anonymous_github -anonymous_github`)])])])])]),f(" Limitations "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})]),m("Limitations ")]),n("div",{class:"panel-group",id:"faq-limitations",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingLimitation"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-limitations",href:"#limitation","aria-expanded":"false","aria-controls":"limitation"}," What are the limitations of Anonymous GitHub? ")])]),n("div",{id:"limitation",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingLimitation"},[n("div",{class:"panel-body p-3"},[n("ul",null,[n("li",null," Anonymous GitHub only anonymizes text-based files. Binary files (compiled executables, archives, etc.) are served as-is without anonymization. "),n("li",null," Files larger than 8 MB are not supported. "),n("li",null," Static site generators (such as Jekyll) used with GitHub Pages are not fully supported, although Markdown files are converted to HTML. "),n("li",null," The anonymization of terms within source code may change the behavior of the program (e.g., if a replaced term appears in a string literal or identifier). ")])])])])]),f(" Privacy and security "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})]),m("Privacy and security ")]),n("div",{class:"panel-group",id:"faq-privacy",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingData"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#data","aria-expanded":"false","aria-controls":"data"}," How is my data handled? ")])]),n("div",{id:"data",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingData"},[n("div",{class:"panel-body p-3"},[n("p",null," Repository data is used to provide the anonymization service. If you purchase a plan, Stripe processes payment and billing information. When a repository is removed or expires, only its configuration is retained. This makes it easy to restore the repository if needed and ensures that no future repository reuses the same ID. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingPermissions"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#permissions","aria-expanded":"false","aria-controls":"permissions"}," Why does GitHub say Anonymous GitHub asks for write access? ")])]),n("div",{id:"permissions",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPermissions"},[n("div",{class:"panel-body p-3"},[n("p",null,[m("The GitHub App has read-only access to the repositories you choose. You can change repository access on your "),n("a",{href:"/connections"},"GitHub connections"),m(" page.")]),n("p",null,"Legacy GitHub OAuth includes write access to private repositories because GitHub's OAuth scopes do not offer a read-only option for them. Existing OAuth anonymizations and gists can still use this connection."),n("p",null,"Anonymous GitHub reads repository content. It never pushes, modifies, or deletes files on GitHub.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingViewer"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#viewer","aria-expanded":"false","aria-controls":"viewer"}," Can repository owners see who viewed their anonymized repository? ")])]),n("div",{id:"viewer",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingViewer"},[n("div",{class:"panel-body p-3"},[n("p",null," No. Only the total number of views is tracked as an incremental counter. It is not possible for the repository owner or for Anonymous GitHub to identify individual viewers. Reviewer anonymity is fully preserved. ")])])])]),f(" Self-hosting "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#project-icon-storage"})]),m("Self"),n("span",{class:"serif-hy"},"-"),m("hosting ")]),n("div",{class:"panel-group",id:"faq-hosting",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingDeploy"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-hosting",href:"#deploy","aria-expanded":"false","aria-controls":"deploy"}," Can I deploy my own instance? ")])]),n("div",{id:"deploy",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingDeploy"},[n("div",{class:"panel-body p-3"},[n("p",null,[m(" Yes. Anonymous GitHub is fully open source (GPL-3.0) and supports Docker-based deployment. Billing is optional and disabled by default for self-hosted instances; paid hosted plans are not required to run your own server. You will need to configure a GitHub OAuth app and provide a GitHub token. Detailed setup instructions are available on the "),n("a",{href:"https://github.com/tdurieux/anonymous_github/",target:"_blank"},"GitHub repository"),m(". ")]),n("p",null," The basic steps are: "),n("ol",null,[n("li",null,"Clone the repository and install dependencies"),n("li",null,[m("Create a "),n("code",null,".env"),m(" file with your GitHub token, OAuth client ID, and client secret")]),n("li",null,[m("Run "),n("code",null,"docker-compose up -d")])])])])])])],-1))],2),t[11]||(t[11]=n("aside",{class:"paper-faq-help","aria-label":"More help"},[n("div",{class:"paper-faq-help-card"},[n("strong",null,"Still stuck?"),n("p",null,"Open an issue on GitHub about the service. For a paper's content, contact the conference instead."),n("a",{class:"btn btn-outline-ink btn-sm",target:"_blank",rel:"noopener",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml"},"Open an issue")])],-1))])]),Me(s,{name:"partials/footer.htm",state:e.viewState},null,8,["state"])],64)}var rB={class:"pr-page"},aB={class:"container paper-page pr-page-inner"},lB={class:"pr-header"},dB={class:"pr-title-row"},uB={class:"paper-page-title pr-title"},cB=["textContent"],pB={key:1,class:"text-muted"},fB=["href"],mB={class:"pr-header-meta"},hB={key:0,class:"pr-meta-item"},gB=["textContent"],vB={key:1,class:"pr-meta-item"},yB=["textContent"],bB={key:2,class:"pr-meta-item"},wB=["textContent"],kB={key:0,class:"paper-tabs",role:"tablist"},CB=["aria-selected","tabindex"],SB=["textContent"],EB=["aria-selected","tabindex"],NB=["textContent"],RB={class:"paper-tab-content"},TB={key:0,role:"tabpanel",id:"gist-files-panel","aria-labelledby":"gist-files-tab"},PB={class:"pr-comments"},DB={class:"pr-comment"},AB={class:"pr-comment-head"},IB=["textContent"],OB={key:0,class:"pr-comment-date"},MB={key:0,class:"paper-table-empty"},VB={key:1,role:"tabpanel",id:"gist-comments-panel","aria-labelledby":"gist-comments-tab"},qB={class:"pr-comments"},LB={class:"pr-comment"},_B={class:"pr-comment-head"},$B={key:0,class:"pr-comment-author"},FB=["textContent"],UB=["textContent"],BB={key:0,class:"pr-comment-body"},zB={key:0,class:"paper-table-empty"};function Np(e,t){let s=Qe("gist-file"),i=Qe("markdown");return a(),l("div",rB,[n("div",aB,[t[17]||(t[17]=n("div",{class:"paper-crumbs"},[n("a",{href:"/dashboard"},"Reviewer"),m(" \xA0/\xA0 "),n("span",{class:"here"},"Gist")],-1)),n("header",lB,[n("div",dB,[n("h1",uB,[e.details?.description?(a(),l("span",{key:0,textContent:d(e.details?.description)},null,8,cB)):f("v-if",!0),e.details?.description?f("v-if",!0):(a(),l("span",pB,"Untitled gist"))]),e.options?.isAdmin||e.options?.isOwner?(a(),l("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/gist-anonymize/"+e.gistId)},[...t[4]||(t[4]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),n("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,fB)):f("v-if",!0)]),n("div",mB,[n("span",{class:R(["paper-pill",{good:e.details?.isPublic,warn:!e.details?.isPublic}])},d(e.details?.isPublic?"Public":"Secret"),3),e.details?.ownerLogin?(a(),l("span",hB,[t[5]||(t[5]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})],-1)),t[6]||(t[6]=m(" @",-1)),n("span",{textContent:d(e.details?.ownerLogin)},null,8,gB)])):f("v-if",!0),e.details?.updatedDate?(a(),l("span",vB,[t[7]||(t[7]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),t[8]||(t[8]=m()),n("span",{textContent:d(e.fmt?.date(e.details?.updatedDate))},null,8,yB)])):f("v-if",!0),e.details?.anonymizeDate?(a(),l("span",bB,[t[9]||(t[9]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1)),t[10]||(t[10]=m(" Anonymized ",-1)),n("span",{textContent:d(e.fmt?.date(e.details?.anonymizeDate))},null,8,wB)])):f("v-if",!0)])]),e.details?.files&&e.details?.files?.length||e.details?.comments&&e.details?.comments?.length?(a(),l("nav",kB,[e.details?.files?(a(),l("button",{key:0,class:R(["paper-tab",{active:e.tabState?.active=="files"}]),type:"button",role:"tab",id:"gist-files-tab","aria-selected":e.tabState?.active==="files","aria-controls":"gist-files-panel",tabindex:e.tabState?.active==="files"?0:-1,onKeydown:t[0]||(t[0]=o=>e.previewTabKeydown(o)),onClick:t[1]||(t[1]=o=>e.tabState.active="files")},[t[11]||(t[11]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-gist"})],-1)),n("span",{textContent:d(e.fmt.plural(e.details?.files?.length,{0:"No files",one:"1 file",other:"{} files"}))},null,8,SB)],42,CB)):f("v-if",!0),e.details?.comments?(a(),l("button",{key:1,class:R(["paper-tab",{active:e.tabState?.active=="comments"}]),type:"button",role:"tab",id:"gist-comments-tab","aria-selected":e.tabState?.active==="comments","aria-controls":"gist-comments-panel",tabindex:e.tabState?.active==="comments"?0:-1,onKeydown:t[2]||(t[2]=o=>e.previewTabKeydown(o)),onClick:t[3]||(t[3]=o=>e.tabState.active="comments")},[t[12]||(t[12]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1)),n("span",{textContent:d(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,NB)],42,EB)):f("v-if",!0)])):f("v-if",!0),n("div",RB,[e.details?.files&&e.tabState?.active=="files"?(a(),l("div",TB,[n("ul",PB,[(a(!0),l(V,null,X(e.details?.files,(o,r)=>(a(),l("li",DB,[n("div",AB,[n("strong",{textContent:d(o?.filename)},null,8,IB),o?.language?(a(),l("span",OB,d(o?.language),1)):f("v-if",!0)]),Me(s,{file:o},null,8,["file"])]))),256)),e.details?.files?.length?f("v-if",!0):(a(),l("li",MB,[...t[13]||(t[13]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-file"})],-1),n("span",null,"No files in this gist.",-1)])]))])])):f("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(a(),l("div",VB,[n("ul",qB,[(a(!0),l(V,null,X(e.details?.comments,(o,r)=>(a(),l("li",LB,[n("div",_B,[o?.author?(a(),l("span",$B,[t[14]||(t[14]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})],-1)),t[15]||(t[15]=m(" @",-1)),n("span",{textContent:d(o?.author)},null,8,FB)])):f("v-if",!0),o?.updatedDate?(a(),l("span",{key:1,class:"pr-comment-date",textContent:d(e.fmt?.date(o?.updatedDate))},null,8,UB)):f("v-if",!0)]),o?.body?(a(),l("div",BB,[Me(i,{content:o?.body},null,8,["content"])])):f("v-if",!0)]))),256)),e.details?.comments?.length?f("v-if",!0):(a(),l("li",zB,[...t[16]||(t[16]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1),n("span",null,"No comments on this gist.",-1)])]))])])):f("v-if",!0)])])])}var HB={key:0,class:"nav-support",href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener",title:"Donate on Ko-fi to help cover hosting costs","aria-label":"Donate on Ko-fi to help cover hosting costs"},jB={key:1,class:"nav-heart-m",href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener","aria-label":"Support Anonymous GitHub",title:"Support Anonymous GitHub"},GB=["aria-label","title"],WB={class:"ui-icon","aria-hidden":"true"},KB=["href"],YB={key:3,class:"nav-signin-m",href:"/signin",target:"_self","aria-label":"Sign in with GitHub"},JB={class:"collapse navbar-collapse",id:"navbarSupportedContent"},XB={class:"navbar-nav mr-auto smooth-scroll"},QB={key:0,class:"nav-item nav-home-item"},ZB={key:1,class:"nav-item"},xB={key:2,class:"nav-item"},ez={key:3,class:"nav-item"},tz={class:"nav-item"},nz={key:4,class:"nav-item"},oz={class:"navbar-nav"},sz={key:0,class:"nav-item d-lg-none"},iz={key:1,class:"nav-item"},rz={key:2,class:"nav-item"},az={key:3,class:"nav-item nav-signin-item"},lz={key:4,class:"nav-item"},dz={key:5,class:"nav-item dropdown user-chip-wrap"},uz={class:"nav-link user-chip dropdown-toggle",href:"#",id:"navbarDropdownMenuLink",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},cz=["src"],pz={class:"user-chip-name"},fz={class:"dropdown-menu dropdown-menu-right user-menu","aria-labelledby":"navbarDropdownMenuLink"},mz={class:"dropdown-header"},hz={key:0,class:"dropdown-item um-extra",href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener"},gz=["innerHTML"],vz=["disabled"],yz={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},bz={class:"email-prompt-actions"},wz=["disabled"],kz=["disabled"],Cz=["disabled"];function Rp(e,t){return a(),l(V,null,[n("nav",{class:R(["navbar navbar-expand-lg",{"navbar-dark":e.isDarkMode}])},[t[28]||(t[28]=n("a",{class:"navbar-brand",href:"/"},[m("Anonymous "),n("em",null,"GitHub")],-1)),e.headerShowSupport?(a(),l("a",HB,[...t[9]||(t[9]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-heart"})],-1),n("span",{class:"nav-support-label"},"Support",-1)])])):f("v-if",!0),/^\/(r|w|pr|gist)\//.test(e.path||"")?f("v-if",!0):(a(),l("a",jB,[...t[10]||(t[10]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-heart"})],-1)])])),/^\/(r|w|pr|gist)\//.test(e.path||"")?f("v-if",!0):(a(),l("button",{key:2,type:"button",class:"nav-theme-m","aria-label":e.isDarkMode?"Switch to light mode":"Switch to dark mode",title:e.isDarkMode?"Switch to light mode":"Switch to dark mode",onClick:t[0]||(t[0]=s=>e.darkMode(!e.isDarkMode))},[(a(),l("svg",WB,[n("use",{href:e.isDarkMode?"#ui-icon-sun":"#ui-icon-moon"},null,8,KB)]))],8,GB)),!e.user&&!/^\/(r|w|pr|gist)\//.test(e.path||"")?(a(),l("a",YB,[...t[11]||(t[11]=[n("i",{class:"fab fa-github","aria-hidden":"true"},null,-1),m("Sign in",-1)])])):f("v-if",!0),t[29]||(t[29]=n("button",{class:"navbar-toggler",type:"button","data-toggle":"collapse","data-target":"#navbarSupportedContent","aria-controls":"navbarSupportedContent","aria-expanded":"false","aria-label":"Toggle navigation"},[n("span",{class:"navbar-toggler-icon"})],-1)),n("div",JB,[n("ul",XB,[e.user?f("v-if",!0):(a(),l("li",QB,[n("a",{class:R(["nav-link",{active:e.path=="/"}]),href:"/"},[...t[12]||(t[12]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-home"})],-1),m(" Home ",-1)])],2)])),e.user?(a(),l("li",ZB,[n("a",{class:R(["nav-link",{active:e.path=="/dashboard"}]),href:"/dashboard"},[...t[13]||(t[13]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-grid"})],-1),m(" My work ",-1)])],2)])):f("v-if",!0),e.user?(a(),l("li",xB,[n("a",{class:R(["nav-link",{active:e.path=="/anonymize"||e.path=="/pull-request-anonymize"}]),href:"/anonymize"},[...t[14]||(t[14]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),m(" Anonymize ",-1)])],2)])):f("v-if",!0),e.user?(a(),l("li",ez,[n("a",{class:R(["nav-link",{active:e.path=="/conferences"||e.path?.startsWith("/conference/")}]),href:"/conferences"},[...t[15]||(t[15]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1),m(" Conferences ",-1)])],2)])):f("v-if",!0),n("li",tz,[n("a",{class:R(["nav-link",{active:e.path=="/faq"}]),href:"/faq"},[...t[16]||(t[16]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})],-1),m("FAQ",-1)])],2)]),e.user&&e.user?.isAdmin?(a(),l("li",nz,[n("a",{class:R(["nav-link",{active:e.path?.indexOf("/admin")===0}]),href:"/admin/"},[...t[17]||(t[17]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-user-shield"})],-1),m(" Admin ",-1)])],2)])):f("v-if",!0)]),n("ul",oz,[e.user||!e.isReviewerRoute?(a(),l("li",sz,[...t[18]||(t[18]=[n("a",{class:"nav-link nav-icon",target:"_blank",href:"https://github.com/tdurieux/anonymous_github/",title:"Anonymous GitHub source code","aria-label":"Anonymous GitHub source code on GitHub",rel:"noopener","data-offset":"30"},[n("i",{class:"fab fa-github","aria-hidden":"true"})],-1)])])):f("v-if",!0),f(` "Report a bug" is about this service. Reviewers who land on an +paper/appendix/**`,"onUpdate:modelValue":t[28]||(t[28]=c=>e.preserve.patterns=c)},null,512),[[nt,e.preserve.patterns]]),t[130]||(t[130]=n("small",{class:"form-text text-muted"},[m("One per line, as in .gitignore: "),n("code",null,"*.bib"),m(" matches in any folder; "),n("code",null,"/refs.bib"),m(" and "),n("code",null,"paper/refs.bib"),m(" match from the repository root; a folder name such as "),n("code",null,"drafts/"),m(" covers everything inside it; "),n("code",null,"!private.bib"),m(" excludes again.")],-1))],8,m8),n("div",h8,[n("span",g8,d(e.preserve.loading||e.preserve.error?"":e.preserveCount()+(e.preserveCount()===1?" file":" files")+" will be shown as written"),1),n("span",v8,[n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[29]||(t[29]=c=>e.closePreserveFiles())},"Cancel"),t[131]||(t[131]=n("button",{type:"submit",class:"btn btn-ink"},"Save",-1))])])],32)],32)):f("v-if",!0)],512),[[Q,e.detectedType&&e.sourceReady()]]),P(n("section",y8,[t[154]||(t[154]=n("h2",{class:"paper-section-eyebrow"},"Display",-1)),P(n("div",null,[n("div",b8,[P(n("input",w8,null,512),[[u,{state:e.viewState,set:c=>{e.options.link=c},value:e.options?.link,form:"anonymize",options:{}}]]),t[135]||(t[135]=n("label",{class:"form-check-label",for:"link"},"Keep links",-1))]),n("div",k8,[P(n("input",C8,null,512),[[u,{state:e.viewState,set:c=>{e.options.image=c},value:e.options?.image,form:"anonymize",options:{}}]]),t[136]||(t[136]=n("label",{class:"form-check-label",for:"image"},"Display images",-1))]),n("div",S8,[P(n("input",E8,null,512),[[u,{state:e.viewState,set:c=>{e.options.pdf=c},value:e.options?.pdf,form:"anonymize",options:{}}]]),t[137]||(t[137]=n("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1))]),n("div",N8,[P(n("input",R8,null,512),[[u,{state:e.viewState,set:c=>{e.options.notebook=c},value:e.options?.notebook,form:"anonymize",options:{}}]]),t[138]||(t[138]=n("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1))]),n("div",T8,[P(n("input",{class:"form-check-input",type:"checkbox",id:"page",name:"page",disabled:!e.details?.hasPage||e.details?.pageSource&&e.details?.pageSource?.branch!==e.source?.branch},null,8,P8),[[u,{state:e.viewState,set:c=>{e.options.page=c},value:e.options?.page,form:"anonymize",options:{}}]]),t[139]||(t[139]=n("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),e.details?.hasPage?f("v-if",!0):(a(),l("small",D8,d(e.fmt?.translate("WARNINGS.page_not_enabled_on_repo")),1)),e.details?.hasPage&&e.details?.pageSource?.branch&&e.source?.branch&&e.details.pageSource.branch!==e.source.branch?(a(),l("small",A8,d(e.fmt?.translate("WARNINGS.page_branch_mismatch",{pageBranch:e.details?.pageSource?.branch,selectedBranch:e.source?.branch})),1)):f("v-if",!0)])],512),[[Q,e.detectedType==="repo"]]),e.detectedType==="repo"&&(e.options.image||e.options.pdf)?(a(),l("p",I8,[...t[140]||(t[140]=[m("Images and PDFs are served unchanged. Review their contents and metadata before sharing. ",-1),n("a",{href:"/faq#formats"},"Supported formats",-1)])])):f("v-if",!0),P(n("div",null,[n("div",O8,[P(n("input",M8,null,512),[[u,{state:e.viewState,set:c=>{e.options.title=c},value:e.options?.title,form:"anonymize",options:{}}]]),t[141]||(t[141]=n("label",{class:"form-check-label",for:"title-gist"},"Gist description",-1))]),n("div",V8,[P(n("input",q8,null,512),[[u,{state:e.viewState,set:c=>{e.options.content=c},value:e.options?.content,form:"anonymize",options:{}}]]),t[142]||(t[142]=n("label",{class:"form-check-label",for:"content-gist"},"File contents",-1))]),n("div",L8,[P(n("input",_8,null,512),[[u,{state:e.viewState,set:c=>{e.options.comments=c},value:e.options?.comments,form:"anonymize",options:{}}]]),t[143]||(t[143]=n("label",{class:"form-check-label",for:"comments-gist"},"Comments",-1))]),n("div",$8,[P(n("input",F8,null,512),[[u,{state:e.viewState,set:c=>{e.options.username=c},value:e.options?.username,form:"anonymize",options:{}}]]),t[144]||(t[144]=n("label",{class:"form-check-label",for:"username-gist"},"Usernames",-1))]),n("div",U8,[P(n("input",B8,null,512),[[u,{state:e.viewState,set:c=>{e.options.date=c},value:e.options?.date,form:"anonymize",options:{}}]]),t[145]||(t[145]=n("label",{class:"form-check-label",for:"date-gist"},"Dates",-1))]),n("div",z8,[P(n("input",H8,null,512),[[u,{state:e.viewState,set:c=>{e.options.origin=c},value:e.options?.origin,form:"anonymize",options:{}}]]),t[146]||(t[146]=n("label",{class:"form-check-label",for:"origin-gist"},"Source gist ID",-1))])],512),[[Q,e.detectedType==="gist"]]),P(n("div",null,[n("div",j8,[P(n("input",G8,null,512),[[u,{state:e.viewState,set:c=>{e.options.title=c},value:e.options?.title,form:"anonymize",options:{}}]]),t[147]||(t[147]=n("label",{class:"form-check-label",for:"title"},"PR title",-1))]),n("div",W8,[P(n("input",K8,null,512),[[u,{state:e.viewState,set:c=>{e.options.body=c},value:e.options?.body,form:"anonymize",options:{}}]]),t[148]||(t[148]=n("label",{class:"form-check-label",for:"body"},"PR body",-1))]),n("div",Y8,[P(n("input",J8,null,512),[[u,{state:e.viewState,set:c=>{e.options.diff=c},value:e.options?.diff,form:"anonymize",options:{}}]]),t[149]||(t[149]=n("label",{class:"form-check-label",for:"diff"},"Diff",-1))]),n("div",X8,[P(n("input",Q8,null,512),[[u,{state:e.viewState,set:c=>{e.options.comments=c},value:e.options?.comments,form:"anonymize",options:{}}]]),t[150]||(t[150]=n("label",{class:"form-check-label",for:"comments"},"Comments",-1))]),n("div",Z8,[P(n("input",x8,null,512),[[u,{state:e.viewState,set:c=>{e.options.username=c},value:e.options?.username,form:"anonymize",options:{}}]]),t[151]||(t[151]=n("label",{class:"form-check-label",for:"username"},"Usernames",-1))]),n("div",e6,[P(n("input",t6,null,512),[[u,{state:e.viewState,set:c=>{e.options.date=c},value:e.options?.date,form:"anonymize",options:{}}]]),t[152]||(t[152]=n("label",{class:"form-check-label",for:"date"},"Dates",-1))]),n("div",n6,[P(n("input",o6,null,512),[[u,{state:e.viewState,set:c=>{e.options.origin=c},value:e.options?.origin,form:"anonymize",options:{}}]]),t[153]||(t[153]=n("label",{class:"form-check-label",for:"origin"},"Project name",-1))])],512),[[Q,e.detectedType==="pr"]])],512),[[Q,e.detectedType&&e.sourceReady()]]),P(n("section",s6,[t[171]||(t[171]=n("h2",{class:"paper-section-eyebrow",id:"hosting-heading"},"Hosting & expiration",-1)),n("div",i6,[t[155]||(t[155]=n("label",{class:"paper-field-label",for:"conference"},[m("Conference code "),n("span",{class:"paper-optional"},"(optional)")],-1)),P(n("input",{class:R(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[u,{state:e.viewState,set:c=>{e.conference=c},value:e.conference,form:"anonymize",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),P(n("p",{class:R(["conference-hosting",{"is-covered":e.conferenceHosting()}]),role:"status"},[n("a",{target:"_blank",href:e.safeUrl(e.conference_data?.url)},d(e.conference_data?.name),9,r6),e.conferenceHosting()?(a(),l(V,{key:0},[m(" hosts this repository until "+d(e.fmt?.date(e.conference_data?.endDate))+", with automatic updates. You don't pay anything.",1)],64)):e.billing?.enabled&&e.detectedType==="repo"?(a(),l(V,{key:1},[m(" runs until "+d(e.fmt?.date(e.conference_data?.endDate))+". It doesn't pay for hosting, so this repository uses your own allowance.",1)],64)):(a(),l(V,{key:2},[m(" runs until "+d(e.fmt?.date(e.conference_data?.endDate))+".",1)],64))],2),[[Q,e.conference_data]]),P(n("div",a6,"The conference is not activated.",512),[[Q,e.anonymize?.conference?.errors?.activated]]),P(n("small",l6,"Submitting to a conference? Its code applies the venue's settings, and a paid conference hosts the repository for you.",512),[[Q,!e.conference_data]])]),e.detectedType==="repo"&&e.billing?.enabled&&!e.conferenceHosting()?(a(),l("p",d6,[e.isUpdate&&e.role!=="owner"?(a(),l("span",u6,"Uses the owner's hosting")):e.hasAuthorHosting()?(a(),l("span",c6,"Your author subscription is active.")):e.hostingQuota?.repository?(a(),l("span",p6,d(e.hostingQuota.repository.used)+" of "+d(e.hostingQuota.repository.total)+" active repositories \xB7 Free",1)):f("v-if",!0)])):f("v-if",!0),e.detectedType==="repo"&&e.options?.update&&!e.liveUpdatesIncluded()?(a(),l("p",f6,[t[156]||(t[156]=m("Automatic updates need a paid option. On free hosting, the link keeps the version you create until you refresh it from My work. Once it exists, add Live updates",-1)),e.liveUpdatesPrice()?(a(),l(V,{key:0},[m(" ("+d(e.liveUpdatesPrice())+" once)",1)],64)):f("v-if",!0),t[157]||(t[157]=m(" or a Paper pack in ",-1)),t[158]||(t[158]=n("a",{href:"/profile?billing=1"},"Settings \u203A Hosting & billing",-1)),t[159]||(t[159]=m(", or take an author subscription.",-1))])):f("v-if",!0),e.detectedType==="repo"&&e.billing?.enabled?(a(),l("div",m6,[e.hostingNeedsPayment()&&!e.billingPending?(a(),l(V,{key:0},[e.options.expirationMode!=="never"||e.hostingQuotaBlocked?(a(),l("p",h6,d(e.options.update&&!e.hostingQuotaBlocked&&e.hostingQuota?.repository?.used(a(),l("label",{class:R(["hosting-option",{"is-selected":e.hostingChoice()===c.id||c.interval&&e.authorPlans().some(v=>v.id===e.hostingChoice())}]),key:c.id},[n("input",{type:"radio",name:"hosting-plan",value:c.id,checked:e.hostingChoice()===c.id||c.interval&&e.authorPlans().some(v=>v.id===e.hostingChoice()),onChange:v=>e.hostingPlan=c.interval?e.hostingSubscriptionPlan().id:c.id},null,40,y6),n("span",b6,[n("strong",null,d(e.hostingOptionName(c)),1),n("small",null,d(e.hostingOptionBlurb(c)),1),c.interval&&e.authorPlans().length>1&&e.authorPlans().some(v=>v.id===e.hostingChoice())?(a(),l("span",w6,[(a(!0),l(V,null,X(e.authorPlans(),v=>(a(),l("button",{type:"button",role:"radio",key:v.id,"aria-checked":e.hostingSubscriptionPlan().id===v.id?"true":"false",class:R({"is-on":e.hostingSubscriptionPlan().id===v.id}),onClick:de(h=>{e.hostingCycle=v.id,e.hostingPlan=v.id},["prevent"])},[m(d(v.interval==="year"?"Yearly":"Monthly"),1),v.interval==="year"&&e.hostingAnnualSavings()?(a(),l("span",C6,"\u2212"+d(e.hostingAnnualSavings())+"%",1)):f("v-if",!0)],10,k6))),128))])):f("v-if",!0)]),n("span",S6,[n("strong",null,d(e.billingAmount(c.interval?e.hostingSubscriptionPlan():c)),1),n("small",null,d(c.interval?"per "+e.hostingSubscriptionPlan().interval:"once"),1)])],2))),128))])):(a(),l("p",E6,"New purchases are temporarily unavailable. Your draft is kept.")),e.authorPlans().some(c=>c.id===e.hostingChoice())?(a(),l("p",N6,"Renews "+d(e.hostingChoice()==="author_annual"?"yearly":"monthly")+" until you cancel. Tax shown at checkout.",1)):(a(),l("p",R6,"One-time payment, nothing renews. Tax shown at checkout.")),e.options.expirationMode!=="never"?(a(),l("details",T6,[t[160]||(t[160]=n("summary",null,"Keep using free hosting",-1)),t[161]||(t[161]=n("p",null,"Remove a repository you no longer need, or enter the code of a paid conference above. Removing a repository affects its review link.",-1)),t[162]||(t[162]=n("a",{href:"/dashboard"},"Review my repositories",-1)),n("button",{type:"button",class:"task-text-button",onClick:t[32]||(t[32]=c=>e.anonymizeRepo(c)),disabled:e.sourceLoading||e.billingBusy},"Recheck capacity and submit",8,P6)])):f("v-if",!0)],64)):f("v-if",!0)])):f("v-if",!0),e.hostingNeedsPayment()&&!e.billingPending?(a(),l("h4",D6,"Expiration")):f("v-if",!0),n("fieldset",A6,[t[168]||(t[168]=n("legend",{class:"sr-only"},"Expiration",-1)),n("label",I6,[n("input",{type:"radio",name:"expiration-choice",checked:e.options.expirationMode!=="never",onChange:t[33]||(t[33]=c=>e.useDatedHosting()),disabled:e.billingPending},null,40,O6),t[163]||(t[163]=n("span",null,"Expire on a date",-1))]),e.options.expirationMode!=="never"?(a(),l("div",M6,[e.options?.expirationMode!=="never"?(a(),l("div",V6,[t[164]||(t[164]=n("label",{class:"paper-field-label",for:"expirationDate"},"Expires",-1)),P(n("input",{class:R(["form-control",{"is-invalid":e.anonymize?.expirationDate?.invalid}]),type:"date",name:"expirationDate",id:"expirationDate",required:"",min:e.minExpirationDate,max:e.maxExpirationDate},null,10,q6),[[u,{state:e.viewState,set:c=>{e.options.expirationDate=c},value:e.options?.expirationDate,form:"anonymize",options:{}}]]),e.fmt?.dateEcho(e.options?.expirationDate)?(a(),l("p",L6,"Expires "+d(e.fmt?.dateEcho(e.options?.expirationDate)),1)):f("v-if",!0),P(n("div",_6,"Pick a date in the future.",512),[[Q,e.anonymize?.expirationDate?.errors?.min]]),P(n("div",{class:"invalid-feedback"},"Pick a date on or before "+d(e.fmt?.date(e.maxExpirationDate))+".",513),[[Q,e.anonymize?.expirationDate?.errors?.max]]),P(n("div",$6,"Enter a valid expiration date.",512),[[Q,e.anonymize?.expirationDate?.errors?.required||e.anonymize?.expirationDate?.errors?.date]])])):f("v-if",!0),n("div",F6,[t[166]||(t[166]=n("label",{for:"expiration"},"Then",-1)),P(n("select",{id:"expiration",class:"form-control","onUpdate:modelValue":t[34]||(t[34]=c=>e.options.expirationMode=c)},[...t[165]||(t[165]=[n("option",{value:"remove"},"Remove content",-1),n("option",{value:"redirect"},"Redirect to GitHub",-1)])],512),[[Nt,e.options.expirationMode]])])])):f("v-if",!0),e.detectedType==="repo"?(a(),l("label",U6,[n("input",{type:"radio",name:"expiration-choice",checked:e.options.expirationMode==="never",onChange:t[35]||(t[35]=c=>e.options.expirationMode="never"),disabled:e.billingPending},null,40,B6),n("span",null,[t[167]||(t[167]=m("Never expire",-1)),(e.options.expirationMode!=="never"||e.hasAuthorHosting()||e.repositoryGrants("repo_never").length)&&!(e.hostingNeedsPayment()&&e.hostingOptionPlans().length)?(a(),l("small",z6,d(e.neverExpireTag()),1)):f("v-if",!0)])])):f("v-if",!0)]),e.options.expirationMode==="redirect"?(a(),l("p",H6,"Visitors will be redirected to the original GitHub source on this date, revealing its identity.")):f("v-if",!0),e.detectedType==="repo"&&e.billing?.enabled?(a(),l("div",j6,[e.taskValidationError?(a(),l("p",G6,d(e.taskValidationError),1)):f("v-if",!0),e.billingError?(a(),l("p",W6,[m(d(e.billingError)+" ",1),n("button",{type:"button",class:"task-text-button",onClick:t[36]||(t[36]=c=>e.loadBilling()),disabled:e.billingBusy},"Reload billing",8,K6)])):f("v-if",!0),e.billingPending?(a(),l("div",Y6,[...t[169]||(t[169]=[n("p",null,[n("strong",null,"Confirming your payment\u2026")],-1),n("p",{class:"form-text text-muted"},"Your draft is saved. Please do not pay again.",-1)])])):e.billingNotice?(a(),l("p",J6,d(e.billingNotice),1)):e.options.expirationMode==="never"&&!e.billingPending&&!e.hasAuthorHosting()&&e.repositoryGrants("repo_never").length?(a(),l("p",X6,"No scheduled expiration. Paid once for this repository.")):e.options.expirationMode==="never"&&!e.billingPending?(a(),l("p",Q6,"No scheduled expiration while subscribed. A 90-day grace period applies if paid access ends.")):f("v-if",!0),e.isUpdate&&e.role==="owner"&&!e.hasAuthorHosting()&&!e.hostingNeedsPayment()&&e.repositoryAddonPlans().length?(a(),l("details",Z6,[t[170]||(t[170]=n("summary",null,"Pay once for just this repository",-1)),(a(!0),l(V,null,X(e.repositoryAddonPlans(),c=>(a(),l("div",{key:c.id},[n("p",null,[n("strong",null,d(c.name),1),m(" \xB7 "+d(e.billingPrice(c))+". "+d(c.description),1)]),n("button",{type:"button",class:"btn btn-outline-ink",disabled:e.billingBusy||e.hostingSaving||e.sourceLoading||e.billing.checkoutEnabled===!1||e.billingPending,onClick:v=>e.checkoutRepository(c.id)},"Buy "+d(c.name.toLowerCase()),9,x6)]))),128))])):f("v-if",!0)])):f("v-if",!0)],512),[[Q,e.detectedType&&e.sourceReady()]]),P(n("section",eM,[t[175]||(t[175]=n("h2",{class:"paper-section-eyebrow"},"Co-authors",-1)),t[176]||(t[176]=n("p",{class:"form-text text-muted",style:{"margin-bottom":"8px"}}," Co-authors can view and edit these settings. They cannot delete the anonymization or manage co-authors. ",-1)),P(n("div",tM,[t[172]||(t[172]=n("label",{class:"paper-field-label",for:"coauthorSearch"},"Add a GitHub user",-1)),n("div",nM,[P(n("input",oM,null,512),[[u,{state:e.viewState,set:c=>{e.coauthorSearch=c},value:e.coauthorSearch,form:"anonymize",options:{debounce:300},change:()=>{e.searchCoauthors()}}]]),P(n("div",sM,[(a(!0),l(V,null,X(e.coauthorResults,(c,v)=>(a(),l("a",{href:"#",class:"dropdown-item d-flex align-items-center",onClick:de(h=>e.addCoauthor(c,h),["prevent"])},[n("img",{alt:"",style:{width:"22px",height:"22px","border-radius":"50%","margin-right":"8px"},src:e.safeUrl(c?.photo)},null,8,rM),n("span",{textContent:d(c?.username)},null,8,aM)],8,iM))),256))],512),[[Q,e.coauthorResults?.length>0]])]),P(n("small",{class:"form-text text-muted",textContent:d(e.coauthorError)},null,8,lM),[[Q,e.coauthorError]])],512),[[Q,e.role==="owner"||e.role==="admin"]]),n("div",dM,[(a(!0),l(V,null,X(e.coauthors,(c,v)=>(a(),l("div",uM,[c?.photo?(a(),l("img",{key:0,alt:"",style:{width:"24px",height:"24px","border-radius":"50%"},src:e.safeUrl(c?.photo)},null,8,cM)):f("v-if",!0),n("a",{target:"_blank",textContent:d(c?.username),href:e.safeUrl("https://github.com/"+c?.username)},null,8,pM),t[174]||(t[174]=n("span",{class:"type-badge type-coauthor"},"Co-author",-1)),P(n("button",{type:"button",class:"btn btn-sm btn-icon",style:{"margin-left":"auto"},title:"Remove co-author",onClick:h=>e.removeCoauthor(c),"aria-label":"Remove co-author"},[...t[173]||(t[173]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,fM),[[Q,e.role==="owner"||e.role==="admin"]])]))),256)),P(n("div",mM," No co-authors yet. ",512),[[Q,!e.coauthors||e.coauthors?.length===0]])])],512),[[Q,e.isUpdate&&e.detectedType==="repo"]]),e.error?(a(),l("div",{key:0,class:"alert alert-danger",role:"alert",textContent:d(e.error)},null,8,hM)):f("v-if",!0)]),n("button",{type:"button",class:"btn btn-outline-ink mobile-preview-jump",onClick:t[37]||(t[37]=c=>e.selectMobilePane("preview"))},[...t[177]||(t[177]=[m("Review preview ",-1),n("span",{"aria-hidden":"true"},"\u2192",-1)])]),P(n("div",gM,[e.detectedType==="repo"?(a(),l(V,{key:0},[e.billingPending?(a(),l("button",{key:0,type:"button",class:"btn btn-ink",onClick:t[38]||(t[38]=c=>e.refreshBilling()),disabled:e.billingBusy},"Check payment status",8,vM)):(a(),l("button",{key:1,type:"submit",class:"btn btn-ink",disabled:e.sourceLoading||!e.sourceReady()||e.billingBusy||e.hostingSaving||e.billingLoading||e.hostingNeedsPayment()&&(!e.authorPlans().length&&!e.hostingOneTime()||e.billing?.checkoutEnabled===!1),onClick:t[39]||(t[39]=de(c=>e.submitForm(c,()=>{e.submitRepository(c)}),["prevent"]))},d(e.hostingSaving?"Saving draft\u2026":e.hostingNeedsPayment()?"Continue to checkout":e.isUpdate?"Save changes":"Create anonymous link"),9,yM))],64)):f("v-if",!0),e.detectedType==="pr"&&!e.isUpdate?(a(),l("button",{key:1,type:"submit",disabled:e.sourceLoading||!e.details,class:"btn btn-ink",onClick:t[40]||(t[40]=de(c=>e.submitForm(c,()=>{e.anonymizePullRequest(c)}),["prevent"]))}," Create anonymous link ",8,bM)):f("v-if",!0),e.detectedType==="pr"&&e.isUpdate?(a(),l("button",{key:2,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[41]||(t[41]=de(c=>e.submitForm(c,()=>{e.anonymizePullRequest(c)}),["prevent"]))}," Save changes ",8,wM)):f("v-if",!0),e.detectedType==="gist"&&!e.isUpdate?(a(),l("button",{key:3,type:"submit",disabled:e.sourceLoading||!e.details,class:"btn btn-ink",onClick:t[42]||(t[42]=de(c=>e.submitForm(c,()=>{e.anonymizeGist(c)}),["prevent"]))}," Create anonymous link ",8,kM)):f("v-if",!0),e.detectedType==="gist"&&e.isUpdate?(a(),l("button",{key:4,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[43]||(t[43]=de(c=>e.submitForm(c,()=>{e.anonymizeGist(c)}),["prevent"]))}," Save changes ",8,CM)):f("v-if",!0),e.submitBlockedReason()?(a(),l("p",SM,d(e.submitBlockedReason()),1)):f("v-if",!0),e.hostingNeedsPayment()&&!e.billingPending?(a(),l("p",EM,"You pay in Stripe, then come back here to finish.")):f("v-if",!0),e.draftRestored?(a(),l("div",NM,[t[178]||(t[178]=m("Your unsaved draft was restored. ",-1)),n("button",{type:"button",class:"draft-discard",onClick:t[44]||(t[44]=c=>e.discardDraft())},"Discard draft")])):e.unsavedChanges&&e.sourceReady()?(a(),l("div",RM,[m(d(e.draftSaved?"Draft saved \xB7":"Unsaved changes \xB7")+" ",1),n("button",{type:"button",class:"draft-discard",onClick:t[45]||(t[45]=c=>e.discardDraft())},d(e.isUpdate?"Restore saved":"Discard"),1)])):f("v-if",!0)],512),[[Q,e.detectedType]])])),[[p,e.viewState]])],8,LO),f(' Preview column (right): "What reviewers will see", a miniature reviewer window '),e.detectedType?(a(),l("div",{key:0,id:"workspace-preview",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-preview-tab":null,class:"anonymize-preview-col reviewer-preview"},[n("div",PM,[t[181]||(t[181]=n("span",{class:"rp-title"},"What reviewers will see",-1)),e.detectedType==="repo"&&e.details?(a(),l("button",{key:0,type:"button",class:"rp-open",onClick:t[46]||(t[46]=c=>e.previewViewer.sidebarCollapsed=!e.previewViewer.sidebarCollapsed),"aria-expanded":!e.previewViewer.sidebarCollapsed,"aria-controls":"preview-file-tree"},"Files",8,DM)):f("v-if",!0),e.previewStatus==="ready"&&e.previewRedactions()>0?(a(),l("span",{key:1,class:"rp-count",title:e.previewRedactions()+" redacted terms in this preview"},[n("span",IM,[n("i",null,d(e.previewRedactions()),1)]),t[179]||(t[179]=m(" redacted",-1))],8,AM)):e.previewStatus==="ready"&&!String(e.terms||"").trim()?(a(),l("span",OM,"No terms yet")):e.previewStatus==="ready"&&e.previewPreserved()?(a(),l("button",{key:3,type:"button",class:"rp-count rp-count-none",onClick:t[47]||(t[47]=c=>e.openPreserveFiles()),title:"Change it in Leave files unredacted"},d(e.previewName(e.previewFile?e.previewFile.slice(e.previewFile.lastIndexOf("/")+1):e.readmeName()))+" left unredacted",1)):f("v-if",!0),t[182]||(t[182]=n("span",{class:"rp-spacer"},null,-1)),e.isUpdate&&e.previewUrl()?(a(),l("a",{key:4,class:"rp-open is-external",href:e.safeUrl(e.previewPath()),target:"_blank",rel:"noopener"},[...t[180]||(t[180]=[m("Open reviewer page ",-1),n("span",{"aria-hidden":"true"},"\u2197",-1)])],8,MM)):(a(),l("button",{key:5,type:"button",class:"rp-open is-toggle",onClick:t[48]||(t[48]=c=>e.previewExpanded=!e.previewExpanded),"aria-pressed":!!e.previewExpanded},[(a(),l("svg",qM,[e.previewExpanded?(a(),l("path",_M)):(a(),l("path",LM))])),m(d(e.previewExpanded?"Back to settings":"Expand preview"),1)],8,VM))]),n("div",$M,[n("div",FM,[t[183]||(t[183]=n("i",null,null,-1)),t[184]||(t[184]=n("i",null,null,-1)),t[185]||(t[185]=n("i",null,null,-1)),n("span",UM,d(e.previewUrl()||"anonymous.4open.science"),1)]),n("div",BM,[t[186]||(t[186]=n("span",{class:"vb-logo"},[m("Anonymous "),n("em",null,"GitHub")],-1)),e.previewId()?(a(),l("span",zM,d(e.previewId()),1)):f("v-if",!0),e.detectedType!=="repo"?(a(),l("span",HM,d(e.detectedType==="pr"?"Pull request":"Gist"),1)):f("v-if",!0)]),n("div",{class:R(["rp-body",{"reviewer-explorer":e.detectedType==="repo","no-tree":e.detectedType==="repo"&&!e.details}])},[e.detectedType==="repo"?P((a(),l("aside",{key:0,id:"preview-file-tree",class:R(["leftCol",{collapsed:e.previewViewer.sidebarCollapsed}]),"aria-label":"Files reviewers will see"},[n("div",jM,[t[188]||(t[188]=n("span",{class:"leftCol-eyebrow"},"Files",-1)),n("button",{type:"button",class:"leftCol-close","aria-label":"Close files",onClick:t[49]||(t[49]=c=>e.previewViewer.sidebarCollapsed=!0)},[...t[187]||(t[187]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])])]),n("div",GM,[Me(s,{class:"files",file:e.previewTreeFiles(),page:e.previewViewer,"selected-path":"/"+e.previewPathName(e.previewOpenPath()),onSelect:t[50]||(t[50]=c=>e.selectPreviewPath(c))},null,8,["file","page","selected-path"])])],2)),[[Q,e.details]]):f("v-if",!0),e.detectedType==="repo"?P((a(),l("div",{key:1,class:"leftCol-backdrop",onClick:t[51]||(t[51]=c=>e.previewViewer.sidebarCollapsed=!0)},null,512)),[[Q,!e.previewViewer.sidebarCollapsed]]):f("v-if",!0),n("div",{class:R(e.detectedType==="repo"?"explorer-main":"rp-main")},[n("div",{class:R(e.detectedType==="repo"?"explorer-content":"rp-document")},[f(" Loading: skeleton inside the window "),e.previewStatus==="loading"||e.sourceLoading&&e.previewStatus!=="ready"&&e.previewStatus!=="error"?(a(),l("div",WM,[n("span",KM,d(e.previewDoc.loading?"Loading "+e.previewName(e.previewFile.slice(e.previewFile.lastIndexOf("/")+1))+" from GitHub\u2026":e.previewStatus==="loading"?"Updating the anonymized preview\u2026":e.detectedType==="pr"?"Loading the pull request from GitHub\u2026":e.detectedType==="gist"?"Loading the gist from GitHub\u2026":"Loading the repository from GitHub\u2026"),1),t[189]||(t[189]=Ce('',7))])):!e.details&&e.sourceProblem()?(a(),l(V,{key:1},[f(" The source itself could not be loaded: the form's message, with the same actions "),n("div",YM,[n("strong",null,d(e.sourceProblem().title),1),n("p",null,d(e.sourceProblem().text),1),e.sourceProblem().manage||e.sourceProblem().retry||e.sourceProblem().dashboard?(a(),l("div",JM,[e.sourceProblem().manage==="app"?(a(),l("button",{key:0,type:"button",class:"btn btn-ink btn-sm",onClick:t[52]||(t[52]=c=>e.grantGitHubAccess())},[...t[190]||(t[190]=[m("Manage GitHub access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])])):f("v-if",!0),e.sourceProblem().manage==="link"?(a(),l("a",XM,"Manage GitHub access")):f("v-if",!0),e.sourceProblem().dashboard?(a(),l("a",QM,"Open My work")):f("v-if",!0),e.sourceProblem().retry?(a(),l("button",{key:3,type:"button",class:"btn btn-outline-ink btn-sm",onClick:t[53]||(t[53]=c=>e.urlSelected(!0))},"Try again")):f("v-if",!0)])):f("v-if",!0)])],2112)):e.previewStatus==="error"&&e.previewDoc.loadError?(a(),l(V,{key:2},[f(" The open file could not be read from GitHub "),n("div",ZM,[n("strong",null,"Couldn't load "+d(e.previewName(e.previewFile.slice(e.previewFile.lastIndexOf("/")+1))),1),n("p",null,d(e.previewDoc.loadError),1),n("div",xM,[n("button",{class:"btn btn-ink btn-sm",type:"button",onClick:t[54]||(t[54]=c=>e.retryPreview())},"Retry"),n("button",{class:"btn btn-outline-ink btn-sm",type:"button",onClick:t[55]||(t[55]=c=>e.openPreviewFile(""))},"Back to the README")])])],2112)):e.previewStatus==="error"?(a(),l(V,{key:3},[f(" The anonymized preview failed "),n("div",eV,[t[191]||(t[191]=n("strong",null,"Couldn't apply the redactions",-1)),t[192]||(t[192]=n("p",null,"Unable to generate the anonymized preview. The latest redactions have not been verified.",-1)),n("div",tV,[n("button",{class:"btn btn-ink btn-sm",type:"button",onClick:t[56]||(t[56]=c=>e.retryPreview())},"Retry preview")])])],2112)):e.detectedType==="repo"&&!e.previewFile&&!e.readme&&e.previewStatus==="idle"?(a(),l("div",nV,[...t[193]||(t[193]=[n("strong",null,"No README",-1),n("p",null,"Reviewers land on the file list. Open the files you will share and check them before sending the link.",-1)])])):e.detectedType==="repo"&&e.previewStatus==="ready"?(a(),Xt(i,{key:5,name:"partials/pageView.htm",state:e.previewViewer},null,8,["state"])):e.detectedType==="gist"&&e.previewStatus==="ready"?(a(),l("div",oV,[n("div",sV,[n("h2",iV,[e.options?.title?(a(),l("span",rV,d(e.anonymizeGistContent(e.details?.gist?.description)||"Untitled gist"),1)):f("v-if",!0),n("span",{class:R(["badge",{"badge-success":e.details?.gist?.isPublic,"badge-secondary":!e.details?.gist?.isPublic}])},d(e.details?.gist?.isPublic?"public":"secret"),3)]),e.options?.date?(a(),l("small",{key:0,textContent:d(e.fmt?.date(e.details?.gist?.updatedDate))},null,8,aV)):f("v-if",!0)]),e.options?.origin?(a(),l("small",lV,"Gist ID: "+d(e.details?.source?.gistId),1)):f("v-if",!0),e.options?.username&&e.details?.gist?.ownerLogin?(a(),l("small",dV,"By @"+d(e.anonymizeGistContent(e.details?.gist?.ownerLogin)),1)):f("v-if",!0),e.options?.content&&e.previewGistFiles?.length?(a(),l("div",uV,[n("ul",cV,[(a(!0),l(V,null,X(e.previewGistFiles,(c,v)=>(a(),l("li",pV,[n("div",fV,[n("strong",{textContent:d(c?.filename)},null,8,mV),c?.language?(a(),l("span",hV,d(c?.language),1)):f("v-if",!0)]),Me(o,{file:c,terms:e.terms,options:e.options},null,8,["file","terms","options"])]))),256))])])):f("v-if",!0),e.options?.comments&&e.details?.gist?.comments&&e.details?.gist?.comments?.length?(a(),l("div",gV,[t[196]||(t[196]=n("h3",{class:"paper-section-eyebrow mt-3"},"Comments",-1)),n("ul",vV,[(a(!0),l(V,null,X(e.details?.gist?.comments,(c,v)=>(a(),l("li",yV,[n("div",bV,[e.options?.username?(a(),l("span",wV,[t[194]||(t[194]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})],-1)),t[195]||(t[195]=m(" @",-1)),n("span",{textContent:d(e.anonymizeGistContent(c?.author))},null,8,kV)])):f("v-if",!0),e.options?.date?(a(),l("span",{key:1,class:"pr-comment-date",textContent:d(e.fmt?.date(c?.updatedDate))},null,8,CV)):f("v-if",!0)]),e.options?.body?(a(),l("div",SV,[Me(r,{content:e.anonymizeGistContent(c?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):f("v-if",!0)]))),256))])])):f("v-if",!0)])):e.detectedType==="pr"&&e.previewStatus==="ready"?(a(),l("div",EV,[n("div",NV,[n("h2",RV,[e.options?.title?(a(),l("span",TV,d(e.anonymizePrContent(e.details?.pullRequest?.title)),1)):f("v-if",!0),n("span",{class:R(["badge",{"badge-success":e.details?.pullRequest?.merged,"badge-warning":e.details?.pullRequest?.state=="open","badge-danger":e.details?.pullRequest?.state=="closed"&&!e.details?.pullRequest?.merged}])},d(e.fmt?.title(e.details?.pullRequest?.merged?"merged":e.details?.pullRequest?.state)),3)]),e.options?.date?(a(),l("small",{key:0,textContent:d(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,PV)):f("v-if",!0)]),e.options?.origin?(a(),l("small",DV,"Pull Request on "+d(e.details?.pullRequest?.baseRepositoryFullName),1)):f("v-if",!0),e.options?.body?(a(),l("div",AV,[Me(r,{content:e.anonymizePrContent(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):f("v-if",!0),e.options?.diff||e.options?.comments?(a(),l("nav",IV,[e.options?.diff?(a(),l("button",{key:0,class:R(["paper-tab",{active:e.prTabState?.active=="diff"}]),type:"button",role:"tab",id:"preview-pr-diff-tab","aria-selected":e.prTabState?.active==="diff","aria-controls":"preview-pr-diff-panel",tabindex:e.prTabState?.active==="diff"?0:-1,onKeydown:t[57]||(t[57]=c=>e.previewTabKeydown(c)),onClick:t[58]||(t[58]=c=>e.prTabState.active="diff")},[...t[197]||(t[197]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),m(" Diff ",-1)])],42,OV)):f("v-if",!0),e.options?.comments?(a(),l("button",{key:1,class:R(["paper-tab",{active:e.prTabState?.active=="comments"}]),type:"button",role:"tab",id:"preview-pr-comments-tab","aria-selected":e.prTabState?.active==="comments","aria-controls":"preview-pr-comments-panel",tabindex:e.prTabState?.active==="comments"?0:-1,onKeydown:t[59]||(t[59]=c=>e.previewTabKeydown(c)),onClick:t[60]||(t[60]=c=>e.prTabState.active="comments")},[t[198]||(t[198]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1)),n("span",{textContent:d(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,VV)],42,MV)):f("v-if",!0)])):f("v-if",!0),!e.options?.diff&&!e.options?.comments?(a(),l("div",qV,"Diff and comments are hidden by your display settings.")):f("v-if",!0),n("div",LV,[e.options?.diff&&e.prTabState?.active=="diff"?(a(),l("div",_V,[n("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.anonymizePrContent(e.details?.pullRequest?.diff)))},null,8,$V)])):f("v-if",!0),e.options?.comments&&e.prTabState?.active=="comments"?(a(),l("div",FV,[n("ul",UV,[(a(!0),l(V,null,X(e.details?.pullRequest?.comments,(c,v)=>(a(),l("li",BV,[n("div",zV,[e.options?.username?(a(),l("span",HV,[t[199]||(t[199]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})],-1)),t[200]||(t[200]=m(" @",-1)),n("span",{textContent:d(e.anonymizePrContent(c?.author))},null,8,jV)])):f("v-if",!0),e.options?.date?(a(),l("span",{key:1,class:"pr-comment-date",textContent:d(e.fmt?.date(c?.updatedDate))},null,8,GV)):f("v-if",!0)]),e.options?.body?(a(),l("div",WV,[Me(r,{content:e.anonymizePrContent(c?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):f("v-if",!0)]))),256))])])):f("v-if",!0)])])):f("v-if",!0),f(" More below: a fade with a way to keep reading (hidden by CSS once the window is scrolled to the end) "),e.previewStatus==="ready"&&!(e.detectedType==="repo"&&e.previewFile&&e.previewDoc.note)?(a(),l("div",KV,[e.isUpdate&&e.previewUrl()?(a(),l("a",{key:0,class:"rp-more-btn",href:e.safeUrl(e.previewPath()),target:"_blank",rel:"noopener"},[...t[201]||(t[201]=[m("Continue reading on the reviewer page ",-1),n("span",{"aria-hidden":"true"},"\u2197",-1)])],8,YV)):e.previewExpanded?(a(),l("span",JV,"Scroll for more")):(a(),l("button",{key:1,type:"button",class:"rp-more-btn",onClick:t[61]||(t[61]=c=>e.previewExpanded=!0)},"Continue reading in the expanded preview"))])):f("v-if",!0)],2)],2)],2)])],8,TM)):f("v-if",!0)])],512),[[Q,e.workspaceOpen||e.isUpdate]])],2)}var XV={class:"container-fluid h-100 anonymize-page"},QV={class:"row h-100 flex-column flex-md-row"},ZV={class:"col-md sidePanel shadow overflow-auto anonymize-form-col"},xV={class:"form-group"},eq={class:"form-group"},tq={class:"form-check"},nq={class:"form-check-input",type:"checkbox",id:"update",name:"update"},oq={class:"form-group"},sq={class:"form-text text-muted"},iq=["href"],rq={class:"invalid-feedback"},aq={class:"form-text text-muted"},lq={class:"form-group"},dq={id:"idHelp",class:"form-text text-muted"},uq={class:"invalid-feedback"},cq={class:"form-group"},pq={class:"invalid-feedback"},fq={class:"form-group"},mq={class:"form-control",id:"expiration",name:"expiration"},hq={class:"form-group",id:"expiration-date-form"},gq={class:"form-control",type:"date",name:"expirationDate",id:"expirationDate"},vq={key:0,class:"date-echo","aria-live":"polite"},yq={class:"accordion mb-3",id:"options"},bq={class:"card"},wq={id:"collapseOne",class:"collapse show","aria-labelledby":"headingOne","data-parent":"#options"},kq={class:"card-body"},Cq={class:"form-group mb-0"},Sq={class:"form-check"},Eq={class:"form-check-input",type:"checkbox",id:"link",name:"link"},Nq={class:"form-check"},Rq={class:"form-check-input",type:"checkbox",id:"image",name:"image"},Tq={class:"form-check"},Pq={class:"form-check-input",type:"checkbox",id:"date",name:"date"},Dq={class:"form-check"},Aq={class:"form-check-input",type:"checkbox",id:"username",name:"username"},Iq={class:"form-check"},Oq={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},Mq={class:"form-check"},Vq={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},qq={class:"form-check"},Lq={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},_q={class:"form-check"},$q={class:"form-check-input",type:"checkbox",id:"title",name:"title"},Fq={class:"form-check"},Uq={class:"form-check-input",type:"checkbox",id:"body",name:"body"},Bq=["textContent"],zq={class:"anonymize-submit-bar"},Hq={key:0,class:"col-md-8 p-2 overflow-auto anonymize-preview-col"},jq={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},Gq={class:"pr-title mb-1"},Wq={key:0},Kq=["textContent"],Yq={key:0},Jq={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},Xq={class:"nav nav-tabs",id:"myTab",role:"tablist"},Qq={key:0,class:"nav-item",role:"presentation"},Zq={key:1,class:"nav-item",role:"presentation"},xq=["textContent"],eL={class:"tab-content",id:"pills-tabContent"},tL={class:"tab-pane show active",id:"pills-diff",role:"tabpanel","aria-labelledby":"pills-diff-tab"},nL={key:0,class:"pr-diff shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},oL={style:{"overflow-x":"auto"}},sL=["innerHTML"],iL={key:0,class:"pr-comments list-group"},rL={class:"pr-comment list-group-item"},aL={class:"d-flex w-100 justify-content-between flex-wrap"},lL={key:0,class:"mb-1"},dL=["textContent"],uL={class:"mb-1"};function bp(e,t){let s=Qe("markdown"),i=Pe("field"),o=Pe("form");return a(),l("div",XV,[n("div",QV,[n("div",ZV,[n("div",{class:R(["p-0 py-2 m-auto",{card:!e.pullRequestUrl,container:e.pullRequestUrl}])},[P((a(),l("form",{class:R(["form needs-validation",{"card-body":!e.pullRequestUrl}]),name:"anonymizeForm",novalidate:""},[t[30]||(t[30]=Ce('
Anonymize \xA0/\xA0 Pull request

Anonymize a pull request

Fill in the details \u2014 it only takes a minute.

Source
',4)),f(" pullRequestUrl "),n("div",xV,[t[2]||(t[2]=n("label",{for:"pullRequestUrl"},"URL of your pull request",-1)),P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.anonymize?.pullRequestUrl?.invalid}]),name:"pullRequestUrl",id:"pullRequestUrl",placeholder:"https://github.com/owner/repo/pull/123"},null,2),[[i,{state:e.viewState,set:r=>{e.pullRequestUrl=r},value:e.pullRequestUrl,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.pullRequestSelected()}}]]),P(n("div",{class:"invalid-feedback"},d(e.pullRequestUrl)+" is not accessible. Some organizations are restricting the access to the repositories. ",513),[[Q,e.anonymize?.pullRequestUrl?.errors?.access]]),P(n("div",{class:"invalid-feedback"},d(e.pullRequestUrl)+" does not exist or is not accessible ",513),[[Q,e.anonymize?.pullRequestUrl?.errors?.missing]]),P(n("div",{class:"invalid-feedback"},d(e.pullRequestUrl)+" is already anonymized ",513),[[Q,e.anonymize?.pullRequestUrl?.errors?.used]])]),P(n("div",null,[n("div",eq,[n("div",tq,[P(n("input",nq,null,512),[[i,{state:e.viewState,set:r=>{e.options.update=r},value:e.options?.update,form:"anonymizeForm",options:{}}]]),t[3]||(t[3]=n("label",{class:"form-check-label",for:"update"},"Auto update",-1)),t[4]||(t[4]=n("small",{id:"updateHelp",class:"form-text text-muted"},"Automatically update the anonymized pull request with the latest updates. The pull request is updated once per day maximum.",-1))])]),t[26]||(t[26]=n("div",{class:"paper-section-eyebrow anonymize-section-title"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})]),m(" Conference ID ")],-1)),f(" Conference "),n("div",oq,[t[5]||(t[5]=n("label",{for:"conference"},[m("Conference ID "),n("span",{class:"text-muted"},"(Optional)")],-1)),P(n("input",{class:R(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[i,{state:e.viewState,set:r=>{e.conference=r},value:e.conference,form:"anonymizeForm",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),P(n("small",sq,[n("a",{target:"_target",href:e.safeUrl(e.conference_data?.url)},d(e.conference_data?.name),9,iq),m(" will expire on "+d(e.fmt?.date(e.conference_data?.endDate))+".",1)],512),[[Q,e.conference_data]]),P(n("div",rq," The conference is not activated. ",512),[[Q,e.anonymize?.conference?.errors?.activated]]),P(n("small",aq," Use the Conference ID that your conference provided you. This will update automatically the anonymization options based on the conference preferences. ",512),[[Q,!e.conference_data]])]),t[27]||(t[27]=n("div",{class:"paper-section-eyebrow anonymize-section-title"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})]),m(" Anonymization Options ")],-1)),f(" Pull Request ID "),n("div",lq,[t[6]||(t[6]=n("label",{for:"pullRequestId"},"Anonymized pull request id",-1)),P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId"},null,2),[[i,{state:e.viewState,set:r=>{e.pullRequestId=r},value:e.pullRequestId,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),n("small",dq,"Id used in the url: https://anonymous.4open.science/r/"+d(e.pullRequestId),1),P(n("div",uq," Repository id can only contain letters and numbers ",512),[[Q,e.anonymize?.pullRequestId?.errors?.format]]),P(n("div",{class:"invalid-feedback"},d(e.pullRequestId)+" is already used ",513),[[Q,e.anonymize?.pullRequestId?.errors?.used]])]),f(" Terms "),n("div",cq,[t[7]||(t[7]=n("label",{for:"terms"},"Terms to anonymize",-1)),P(n("textarea",{class:R(["form-control",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:"3"},null,2),[[i,{state:e.viewState,set:r=>{e.terms=r},value:e.terms,form:"anonymizeForm",options:{debounce:250}}]]),t[8]||(t[8]=n("small",{id:"termsHelp",class:"form-text text-muted"},"One term per line. Each term will be replaced by XXX.",-1)),P(n("div",pq," Terms are in an invalid format ",512),[[Q,e.anonymize?.terms?.errors?.format]])]),n("div",fq,[t[10]||(t[10]=n("label",{for:"expiration"},"Expiration strategy",-1)),P((a(),l("select",mq,[...t[9]||(t[9]=[n("option",{value:"never",selected:""},"Never expire",-1),n("option",{value:"redirect"}," Redirect to GitHub when expired ",-1),n("option",{value:"remove"},"Remove when expired",-1)])])),[[i,{state:e.viewState,set:r=>{e.options.expirationMode=r},value:e.options?.expirationMode,form:"anonymizeForm",options:{}}]]),t[11]||(t[11]=n("small",{class:"form-text text-muted"},"Define the expiration strategy for the anonymized repository.",-1))]),P(n("div",hq,[t[12]||(t[12]=n("label",{for:"expirationDate"},"Expiration date of the anonymized repository",-1)),P(n("input",gq,null,512),[[i,{state:e.viewState,set:r=>{e.options.expirationDate=r},value:e.options?.expirationDate,form:"anonymizeForm",options:{}}]]),e.fmt?.dateEcho(e.options?.expirationDate)?(a(),l("p",vq,"Expires "+d(e.fmt?.dateEcho(e.options?.expirationDate)),1)):f("v-if",!0),P(n("small",{class:"form-text text-muted"},"After "+d(e.fmt?.date(e.options?.expirationDate))+", the repository will be removed and the visitor will not be able to see the content of the repository.",513),[[Q,e.options?.expirationMode=="remove"]]),P(n("small",{class:"form-text text-muted"},"After "+d(e.fmt?.date(e.options?.expirationDate))+", the visitors of the anonymized repository will be redirected to "+d(e.pullRequestUrl)+".",513),[[Q,e.options?.expirationMode=="redirect"]])],512),[[Q,e.options?.expirationMode!="never"]]),n("div",yq,[n("div",bq,[t[25]||(t[25]=Ce('

',1)),n("div",wq,[n("div",kq,[n("div",Cq,[n("div",Sq,[P(n("input",Eq,null,512),[[i,{state:e.viewState,set:r=>{e.options.link=r},value:e.options?.link,form:"anonymizeForm",options:{}}]]),t[13]||(t[13]=n("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[14]||(t[14]=n("small",{class:"form-text text-muted"},"Keep or remove all the links.",-1))]),n("div",Nq,[P(n("input",Rq,null,512),[[i,{state:e.viewState,set:r=>{e.options.image=r},value:e.options?.image,form:"anonymizeForm",options:{}}]]),t[15]||(t[15]=n("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[16]||(t[16]=n("small",{class:"form-text text-muted"},"Images are not anonymized",-1))]),n("div",Tq,[P(n("input",Pq,null,512),[[i,{state:e.viewState,set:r=>{e.options.date=r},value:e.options?.date,form:"anonymizeForm",options:{}}]]),t[17]||(t[17]=n("label",{class:"form-check-label",for:"date"},"Display dates",-1)),t[18]||(t[18]=n("small",{class:"form-text text-muted"},"Display the date of the Pull Request and the date of the comments.",-1))]),n("div",Dq,[P(n("input",Aq,null,512),[[i,{state:e.viewState,set:r=>{e.options.username=r},value:e.options?.username,form:"anonymizeForm",options:{}}]]),t[19]||(t[19]=n("label",{class:"form-check-label",for:"username"},"Display username",-1))]),n("div",Iq,[P(n("input",Oq,null,512),[[i,{state:e.viewState,set:r=>{e.options.comments=r},value:e.options?.comments,form:"anonymizeForm",options:{}}]]),t[20]||(t[20]=n("label",{class:"form-check-label",for:"comments"},"Display comments",-1))]),n("div",Mq,[P(n("input",Vq,null,512),[[i,{state:e.viewState,set:r=>{e.options.diff=r},value:e.options?.diff,form:"anonymizeForm",options:{}}]]),t[21]||(t[21]=n("label",{class:"form-check-label",for:"diff"},"Display diff",-1))]),n("div",qq,[P(n("input",Lq,null,512),[[i,{state:e.viewState,set:r=>{e.options.origin=r},value:e.options?.origin,form:"anonymizeForm",options:{}}]]),t[22]||(t[22]=n("label",{class:"form-check-label",for:"origin"},"Display the project name",-1))]),n("div",_q,[P(n("input",$q,null,512),[[i,{state:e.viewState,set:r=>{e.options.title=r},value:e.options?.title,form:"anonymizeForm",options:{}}]]),t[23]||(t[23]=n("label",{class:"form-check-label",for:"title"},"Display the PR title",-1))]),n("div",Fq,[P(n("input",Uq,null,512),[[i,{state:e.viewState,set:r=>{e.options.body=r},value:e.options?.body,form:"anonymizeForm",options:{}}]]),t[24]||(t[24]=n("label",{class:"form-check-label",for:"body"},"Display the PR body and comment bodies",-1))])])])])])])],512),[[Q,e.pullRequestUrl]]),e.error?(a(),l("div",{key:0,class:"alert alert-danger",role:"alert",textContent:d(e.error)},null,8,Bq)):f("v-if",!0),P(n("div",zq,[e.isUpdate?f("v-if",!0):(a(),l("button",{key:0,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[0]||(t[0]=de(r=>e.submitForm(r,()=>{e.anonymizePullRequest(r)}),["prevent"]))},[...t[28]||(t[28]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),m(" Anonymize ",-1)])])),e.isUpdate?(a(),l("button",{key:1,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[1]||(t[1]=de(r=>e.submitForm(r,()=>{e.updatePullRequest(r)}),["prevent"]))},[...t[29]||(t[29]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-save"})],-1),m(" Update ",-1)])])):f("v-if",!0)],512),[[Q,e.pullRequestUrl]])],2)),[[o,e.viewState]])],2)]),e.details?(a(),l("div",Hq,[n("div",jq,[n("h2",Gq,[e.options?.title?(a(),l("span",Wq,d(e.anonymize(e.details?.pullRequest?.title)),1)):f("v-if",!0),n("span",{class:R(["badge",{"badge-success":e.details?.pullRequest?.merged,"badge-warning":e.details?.pullRequest?.state=="open","badge-danger":e.details?.pullRequest?.state=="closed"&&!e.details?.pullRequest?.merged}])},d(e.fmt?.title(e.details?.pullRequest?.merged?"merged":e.details?.pullRequest?.state)),3)]),e.options?.date?(a(),l("small",{key:0,textContent:d(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,Kq)):f("v-if",!0)]),e.options?.origin?(a(),l("small",Yq,"Pull Request on "+d(e.details?.pullRequest?.baseRepositoryFullName),1)):f("v-if",!0),e.options?.body?(a(),l("div",Jq,[Me(s,{content:e.anonymize(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):f("v-if",!0),n("ul",Xq,[e.options?.diff?(a(),l("li",Qq,[...t[31]||(t[31]=[n("button",{class:"nav-link active",id:"pills-diff-tab","data-toggle":"pill","data-target":"#pills-diff",type:"button",role:"tab","aria-controls":"pills-diff","aria-selected":"true"}," Diff ",-1)])])):f("v-if",!0),e.options?.comments?(a(),l("li",Zq,[n("button",{class:R(["nav-link",{active:!e.options?.diff}]),id:"pills-comments-tab","data-toggle":"pill","data-target":"#pills-comments",type:"button",role:"tab","aria-controls":"pills-comments","aria-selected":"false"},[n("span",{textContent:d(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comment",one:"One Comment",other:"{} Comments"}))},null,8,xq)],2)])):f("v-if",!0)]),n("div",eL,[n("div",tL,[e.options?.diff?(a(),l("div",nL,[n("pre",oL,[n("code",{innerHTML:e.sanitize(e.fmt?.diff(e.anonymize(e.details?.pullRequest?.diff)))},null,8,sL)])])):f("v-if",!0)]),n("div",{class:R(["tab-pane",{"show active":!e.options?.diff}]),id:"pills-comments",role:"tabpanel","aria-labelledby":"pills-comments-tab"},[e.options?.comments?(a(),l("ul",iL,[(a(!0),l(V,null,X(e.details?.pullRequest?.comments,(r,u)=>(a(),l("li",rL,[n("div",aL,[e.options?.username?(a(),l("h5",lL," @"+d(e.anonymize(r?.author)),1)):f("v-if",!0),e.options?.date?(a(),l("small",{key:1,textContent:d(e.fmt?.date(r?.updatedDate))},null,8,dL)):f("v-if",!0)]),n("p",uL,[e.options?.body?(a(),Xt(s,{key:0,class:"pr-comment-body",content:e.anonymize(r?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])):f("v-if",!0)])]))),256))])):f("v-if",!0)],2)])])):f("v-if",!0)])])}var cL={class:"container paper-page claim-page"},pL={class:"paper-settings-main claim-form"},fL={class:"form-group"},mL={class:"invalid-feedback"},hL={class:"form-group"};function wp(e,t){let s=Pe("field"),i=Pe("form");return a(),l("div",cL,[t[6]||(t[6]=Ce('
My work \xA0/\xA0 Claim

Claim an anonymization

Take ownership of an existing anonymized repository so it appears on your dashboard.

',3)),n("div",pL,[t[5]||(t[5]=n("p",{class:"paper-section-copy"},"Use this when an anonymization was created by a co-author or from another account. You must have access to the GitHub repository it was made from.",-1)),P((a(),l("form",{class:"form needs-validation",name:"claimForm",novalidate:"",onSubmit:t[0]||(t[0]=de(o=>e.submitForm(o,()=>{e.claim()}),["prevent"]))},[n("div",fL,[t[1]||(t[1]=n("label",{class:"paper-field-label",for:"repoUrl"},"GitHub repository URL",-1)),P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.claimForm?.repoUrl?.invalid&&(e.claimForm?.repoUrl?.touched||e.claimForm?.submitted)}]),name:"repoUrl",id:"repoUrl",placeholder:"https://github.com/owner/repository",required:""},null,2),[[s,{state:e.viewState,set:o=>{e.repoUrl=o},value:e.repoUrl,form:"claimForm",options:{}}]]),P(n("div",mL," No anonymization matches this repository and ID. Check both values and that you can access the repository on GitHub. ",512),[[Q,e.claimForm?.repoUrl?.errors?.not_found]])]),n("div",hL,[t[2]||(t[2]=n("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.claimForm?.repoId?.invalid&&(e.claimForm?.repoId?.touched||e.claimForm?.submitted)}]),name:"repoId",id:"repoId",placeholder:"e.g. my-paper-7F2A","aria-describedby":"idHelp",required:""},null,2),[[s,{state:e.viewState,set:o=>{e.repoId=o},value:e.repoId,form:"claimForm",options:{}}]]),t[3]||(t[3]=n("small",{id:"idHelp",class:"form-text text-muted"},[m("The ID is the last part of the anonymized URL: "),n("code",null,"anonymous.4open.science/r/"),m(".")],-1))]),t[4]||(t[4]=n("button",{id:"submit",type:"submit",class:"btn btn-ink"}," Claim anonymization ",-1))],32)),[[i,e.viewState]])])])}var gL={class:"container page paper-page conference-page"},vL={class:"paper-crumbs"},yL={class:"here"},bL={class:"d-flex align-items-end flex-wrap",style:{gap:"12px","justify-content":"space-between"}},wL={class:"conf-title-row"},kL=["textContent"],CL={key:0,class:"conf-status"},SL=["textContent"],EL={key:0,class:"paper-page-lede"},NL=["textContent","href"],RL={class:"d-flex align-items-center flex-wrap",style:{gap:"10px"}},TL=["href"],PL={class:"paper-meta-rule"},DL=["textContent"],AL=["textContent"],IL={key:0},OL={key:0,class:"conference-payment-status",role:"status"},ML=["disabled"],VL={key:1,role:"alert"},qL={key:2,class:"paper-settings-section","aria-labelledby":"conference-payment-heading"},LL={key:0,role:"status"},_L={key:1,role:"alert"},$L=["onClick","disabled"],FL={class:"dashboard-meta conf-view-meta"},UL={class:"dashboard-view-tabs",role:"group","aria-label":"Repository view"},BL=["aria-pressed"],zL=["aria-pressed","aria-label"],HL=["aria-pressed"],jL={class:"attention-count"},GL={class:"dashboard-count",role:"status"},WL={class:"search-wrap"},KL={type:"search",id:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repositories\u2026",autocomplete:"off"},YL={class:"dashboard-filter-controls"},JL={class:"dropdown"},XL={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},QL={class:"filter-btn-value"},ZL={class:"dropdown-menu","aria-labelledby":"dropdownSort"},xL={class:"form-check dropdown-item"},e_={class:"form-check-input",type:"radio",name:"sort",id:"anonymizeDate",value:"-anonymizeDate"},t_={class:"form-check dropdown-item"},n_={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"repoId"},o_={class:"form-check dropdown-item"},s_={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},i_={class:"form-check dropdown-item"},r_={class:"form-check-input",type:"radio",name:"sort",id:"sortViews",value:"-pageView"},a_={class:"dashboard-page conf-rows"},l_={class:"cell-anon",role:"cell"},d_={class:"anon-text"},u_={class:"anon-title"},c_=["title","href"],p_={class:"rn-owner"},f_={class:"rn-repo"},m_={class:"anon-sub"},h_=["title"],g_={class:"id-head"},v_={class:"id-tail"},y_=["title"],b_={class:"dashboard-row-meta",role:"presentation"},w_={class:"cell-status",role:"cell"},k_={class:"status-line"},C_=["textContent"],S_=["textContent","title"],E_=["href"],N_=["onClick","disabled"],R_={key:3,class:"status-sub status-sub-date"},T_=["data-unit","aria-label"],P_={class:"cell-expires",role:"cell"},D_={key:0,class:"expires-never"},A_=["textContent"],I_={key:2,class:"expires-past"},O_={key:3,class:"empty-dash","aria-label":"Not applicable"},M_={class:"cell-actions",role:"cell"},V_=["onClick","disabled","title","aria-label"],q_={class:"sr-only","aria-live":"polite"},L_={class:"project-type-svg","aria-hidden":"true"},__=["href"],$_={class:"copy-url-label","aria-hidden":"true"},F_=["href","aria-label"],U_={class:"dropdown"},B_=["aria-label"],z_={class:"dropdown-menu dropdown-menu-right"},H_=["href"],j_=["href"],G_=["href"],W_={key:0,class:"paper-table-empty"},K_={key:0},Y_={key:1},J_={key:2,class:"paper-table-empty-actions"};function kp(e,t){let s=Pe("field"),i=Pe("form");return a(),l("div",gL,[n("div",null,[n("div",vL,[t[6]||(t[6]=n("a",{href:"/dashboard"},"My work",-1)),t[7]||(t[7]=m(" \xA0/\xA0 ",-1)),t[8]||(t[8]=n("a",{href:"/conferences"},"Conferences",-1)),t[9]||(t[9]=m(" \xA0/\xA0 ",-1)),n("span",yL,d(e.conference?.conferenceID),1)]),n("div",bL,[n("div",null,[n("div",wL,[n("h1",{class:"paper-page-title",textContent:d(e.conference?.name)},null,8,kL),e.conference?.status?(a(),l("span",CL,[n("span",{class:R(["status-dot","status-"+e.conference?.status]),"aria-hidden":"true"},null,2),n("span",{textContent:d(e.fmt?.statusLabel(e.conference?.status))},null,8,SL)])):f("v-if",!0)]),e.conference?.url?(a(),l("p",EL,[n("a",{target:"_blank",rel:"noopener",textContent:d(e.conference?.url),href:e.safeUrl(e.conference?.url)},null,8,NL)])):f("v-if",!0)]),n("div",RL,[n("a",{class:"btn btn-outline-ink",href:e.safeUrl("/conference/"+e.conference?.conferenceID+"/edit")},[...t[10]||(t[10]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),m(" Edit conference",-1)])],8,TL)])]),n("div",PL,[n("span",null,[t[11]||(t[11]=m("ID ",-1)),n("b",{class:"commit-hash",textContent:d(e.conference?.conferenceID)},null,8,DL)]),n("span",null,[t[12]||(t[12]=m("Review window ",-1)),n("b",null,d(e.fmt?.date(e.conference?.startDate,"mediumDate"))+" \u2013 "+d(e.fmt?.date(e.conference?.endDate,"mediumDate")),1)]),n("span",null,[t[13]||(t[13]=m("Repositories ",-1)),n("b",null,d(e.fmt?.number(e.conference?.repositories?.length)),1)]),n("span",null,[t[14]||(t[14]=m("Plan ",-1)),n("b",{textContent:d(e.conferencePlanName(e.conference?.plan?.planID))},null,8,AL)]),e.conference?.price?(a(),l("span",IL,[t[15]||(t[15]=m("Cost so far ",-1)),n("b",null,d(e.fmt?.money(e.conference?.price)),1)])):f("v-if",!0)]),e.billingNotice?(a(),l("div",OL,[n("p",null,d(e.billingNotice),1),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[0]||(t[0]=o=>e.refreshBilling()),disabled:e.billingBusy},"Check payment status",8,ML)])):f("v-if",!0),e.billingError&&e.conference?.status!=="pending_payment"?(a(),l("p",VL,d(e.billingError),1)):f("v-if",!0),e.conference?.status==="pending_payment"?(a(),l("section",qL,[t[16]||(t[16]=n("h2",{id:"conference-payment-heading"},"Activate your review package",-1)),t[17]||(t[17]=n("p",null,"This conference is waiting for payment. Authors can join after payment is confirmed. Checkout returns to this conference. Authors within the package do not pay separately.",-1)),e.billingLoading?(a(),l("p",LL,"Loading payment options\u2026")):f("v-if",!0),e.billingError?(a(),l("p",_L,d(e.billingError),1)):f("v-if",!0),(a(!0),l(V,null,X((e.billing?.plans||[]).filter(o=>o.id===e.conference?.plan?.planID),o=>(a(),l("div",{key:o.id},[n("p",null,[n("strong",null,d(o.name)+" package",1),m(": "+d(e.billingPrice(o))+" for up to "+d(o.repositories)+" repositories and "+d(e.billingBytes(o.storage))+" of source files during the review window. Taxes, if applicable, appear at checkout.",1)]),n("button",{type:"button",class:"btn btn-primary",onClick:r=>e.checkout(o.id,e.conference.conferenceID),disabled:e.billingBusy||e.billingPending||e.billing?.checkoutEnabled===!1},d(e.billingBusy?"Please wait\u2026":"Pay for review package"),9,$L)]))),128)),t[18]||(t[18]=n("p",null,[n("a",{href:"/profile#settings-billing"},"Manage invoices")],-1))])):f("v-if",!0),n("div",FL,[n("div",UL,[n("button",{type:"button","aria-pressed":e.confView()==="current",onClick:t[1]||(t[1]=o=>e.setConfView("current")),title:"Every repository except removed links"},"Current",8,BL),e.confCount("attention")>0||e.confView()==="attention"?(a(),l("button",{key:0,type:"button","aria-pressed":e.confView()==="attention",onClick:t[2]||(t[2]=o=>e.setConfView("attention")),"aria-label":"Needs attention "+e.confCount("attention")},[t[19]||(t[19]=n("span",{class:"dashboard-attention-prefix"},"Needs ",-1)),t[20]||(t[20]=n("span",null,"attention",-1)),t[21]||(t[21]=m()),n("span",{class:R(["attention-count",{"has-attention":e.confCount("attention")>0}])},d(e.fmt?.number(e.confCount("attention"))),3)],8,zL)):f("v-if",!0),e.confCount("removed")>0||e.confView()==="removed"?(a(),l("button",{key:1,type:"button","aria-pressed":e.confView()==="removed",onClick:t[3]||(t[3]=o=>e.setConfView("removed")),title:"Links reviewers can no longer open"},[t[22]||(t[22]=m("Removed ",-1)),n("span",jL,d(e.fmt?.number(e.confCount("removed"))),1)],8,HL)):f("v-if",!0)]),n("span",GL,d(e.search.trim()?e.fmt?.number(e.filteredRepositories?.length||0)+" shown":e.fmt?.number(e.filteredRepositories?.length||0)+((e.filteredRepositories?.length||0)===1?" repository":" repositories")),1)]),P((a(),l("form",{class:"w-100 conf-repo-toolbar","aria-label":"Filter repositories","accept-charset":"UTF-8",onSubmit:t[4]||(t[4]=de(o=>e.submitForm(o,()=>{o.preventDefault()}),["prevent"]))},[n("div",WL,[P(n("input",KL,null,512),[[s,{state:e.viewState,set:o=>{e.search=o},value:e.search,form:null,options:{}}]])]),n("div",YL,[n("div",JL,[n("button",XL,[t[23]||(t[23]=n("span",{class:"filter-btn-label"},"Sort",-1)),n("span",QL,d({"-anonymizeDate":"Anonymize date",repoId:"ID","-status":"Status","-pageView":"Views"}[e.orderBy]||"Custom"),1)]),n("div",ZL,[t[28]||(t[28]=n("h6",{class:"dropdown-header"},"Order by",-1)),n("div",xL,[P(n("input",e_,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[24]||(t[24]=n("label",{class:"form-check-label",for:"anonymizeDate"},"Anonymize date",-1))]),n("div",t_,[P(n("input",n_,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[25]||(t[25]=n("label",{class:"form-check-label",for:"sortID"},"ID",-1))]),n("div",o_,[P(n("input",s_,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[26]||(t[26]=n("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),n("div",i_,[P(n("input",r_,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[27]||(t[27]=n("label",{class:"form-check-label",for:"sortViews"},"Views",-1))])])])])],32)),[[i,e.viewState]]),n("div",a_,[n("div",{class:R(["paper-table paper-table-dashboard paper-table-conf w-100",{"is-removed-view":e.confView()==="removed"}]),role:"table","aria-label":"Repositories"},[t[37]||(t[37]=n("div",{class:"paper-table-head",role:"row"},[n("div",{role:"columnheader"},"Repository"),n("div",{role:"columnheader"},"Status"),n("div",{role:"columnheader",class:"num"},"Views"),n("div",{role:"columnheader"},"Expires"),n("div",{role:"columnheader"},[n("span",{class:"sr-only"},"Actions")])],-1)),(a(!0),l(V,null,X(e.filteredRepositories,(o,r)=>(a(),l("div",{class:R(["paper-table-row",{"repo-inactive":o?.status=="expired"||o?.status=="removed","repo-error":o?.status=="error"}]),role:"row",key:o?.repoId},[n("div",l_,[t[30]||(t[30]=n("span",{class:"project-type-icon",role:"img","aria-label":"Repository",title:"Repository"},[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})])],-1)),n("div",d_,[n("div",u_,[n("a",{class:"repo-name",title:o?.source?.fullName,href:e.safeUrl("/r/"+o?.repoId+"/")},[(o?.source?.fullName||"").indexOf("/")>0?(a(),l(V,{key:0},[n("span",p_,d(o.source.fullName.slice(0,o.source.fullName.indexOf("/")+1)),1),t[29]||(t[29]=n("wbr",null,null,-1)),n("span",f_,d(o.source.fullName.slice(o.source.fullName.indexOf("/")+1)),1)],64)):(a(),l(V,{key:1},[m(d(o?.source?.fullName||o?.repoId),1)],64))],8,c_)]),n("div",m_,[n("code",{class:"anonymous-id",title:o?.repoId},[(o?.repoId||"").length>14?(a(),l(V,{key:0},[n("span",g_,d(o.repoId.slice(0,-6)),1),n("span",v_,d(o.repoId.slice(-6)),1)],64)):(a(),l(V,{key:1},[m(d(o?.repoId),1)],64))],8,h_),o?.source?.commit?(a(),l("span",{key:0,class:"commit-hash",title:o.source.commit},d(o.source.commit.substring(0,7)),9,y_)):f("v-if",!0)])])]),n("div",b_,[n("div",w_,[n("div",k_,[n("span",{class:R(["status-dot","status-"+(o?.status=="error"?"error":o?.status=="ready"?"ready":o?.status=="expired"||o?.status=="removed"?o?.status:"progress")]),"aria-hidden":"true"},null,2),n("span",{class:"status-word",textContent:d(e.fmt?.statusLabel(o?.status))},null,8,C_)]),o?.status=="error"&&o?.statusMessage?(a(),l("div",{key:0,class:"status-sub status-sub-error",textContent:d(e.fmt?.statusMsg(o?.statusMessage)),title:o?.statusMessage},null,8,S_)):f("v-if",!0),o?.status=="error"?(a(),l("a",{key:1,class:"project-attention-action",href:e.safeUrl("/status/"+o?.repoId)},"View status",8,E_)):f("v-if",!0),o?.status=="expired"?(a(),l("button",{key:2,type:"button",class:"project-attention-action",onClick:de(u=>e.extendRepo(o),["stop"]),disabled:e.extendingId===o?.repoId,title:"Reviewers can no longer open this link"},"Extend 6 months",8,N_)):f("v-if",!0),o?.anonymizeDate&&o?.status!="error"&&o?.status!="expired"?(a(),l("div",R_,"anonymized "+d(e.fmt?.humanTime(o?.anonymizeDate)),1)):f("v-if",!0)]),n("div",{class:"cell-views num",role:"cell","data-unit":(o?.pageView||0)===1?"view":"views","aria-label":e.fmt?.number(o?.pageView||0)+((o?.pageView||0)===1?" view":" views")},[t[31]||(t[31]=n("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1)),n("span",null,d(e.fmt?.number(o?.pageView||0)),1)],8,T_),n("div",P_,[t[33]||(t[33]=n("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),o?.status=="ready"&&(o?.options?.expirationMode==="never"||!o?.options?.expirationDate)?(a(),l("span",D_,"No expiry")):f("v-if",!0),o?.status=="ready"&&o?.options?.expirationMode!=="never"&&o?.options?.expirationDate?(a(),l("span",{key:1,textContent:d((e.fmt?.humanTime(o?.options?.expirationDate)||"").replace(/^on /,""))},null,8,A_)):f("v-if",!0),o?.status=="expired"?(a(),l("span",I_,[t[32]||(t[32]=n("span",{class:"expires-past-prefix"},"Expired ",-1)),m(d(e.fmt?.shortDate(o?.options?.expirationDate)),1)])):f("v-if",!0),o?.status!="ready"&&o?.status!="expired"?(a(),l("span",O_,"\u2014")):f("v-if",!0)])]),n("div",M_,[o?.status!="expired"&&o?.status!="removed"?(a(),l("button",{key:0,type:"button",class:"copy-url",onClick:de(u=>e.copyRepoLink(o),["stop"]),disabled:!!e.copyingId,title:"Copy link: /r/"+o?.repoId+"/","aria-label":"Copy anonymous link for "+o?.repoId},[n("span",q_,d(e.copyingId===o?.repoId?"Link copied":""),1),(a(),l("svg",L_,[n("use",{href:e.copyingId===o?.repoId?"#ui-icon-check":"#project-icon-copy"},null,8,__)])),n("span",$_,d(e.copyingId===o?.repoId?"Copied":"Copy link"),1)],8,V_)):f("v-if",!0),o?.status!="expired"&&o?.status!="removed"?(a(),l("a",{key:1,class:"row-edit row-open",href:e.safeUrl("/r/"+o?.repoId+"/"),target:"_blank",rel:"noopener",title:"Open what reviewers see","aria-label":"Open anonymous page for "+o?.repoId},[...t[34]||(t[34]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])],8,F_)):f("v-if",!0),n("div",U_,[n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions for "+o?.repoId},[...t[35]||(t[35]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})],-1)])],8,B_),n("div",z_,[n("a",{class:"dropdown-item",href:e.safeUrl("/r/"+o?.repoId+"/")},"View",8,H_),n("a",{class:"dropdown-item",href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/"),target:"_blank",rel:"noopener"},"Open source on GitHub",8,j_),n("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+o?.repoId)},"Edit",8,G_)])])])],2))),128)),e.filteredRepositories?.length==0?(a(),l("div",W_,[t[36]||(t[36]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),e.conference?.repositories?.length?f("v-if",!0):(a(),l("span",K_,"No repository has been submitted to this conference yet.")),e.conference?.repositories?.length?(a(),l("span",Y_,"Nothing matches the current filters.")):f("v-if",!0),e.conference?.repositories?.length?(a(),l("div",J_,[n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[5]||(t[5]=o=>{e.search="",e.setConfView("current")})},"Clear filters")])):f("v-if",!0)])):f("v-if",!0)],2)])])])}var X_={class:"container page paper-page conferences-page"},Q_={class:"row"},Z_={class:"w-100"},x_={class:"d-flex align-items-start justify-content-between flex-wrap page-head-row page-head page-head-main",style:{gap:"12px"}},e$={key:0,href:"/conference/new",class:"btn btn-primary"},t$={class:"search-wrap"},n$={type:"search",id:"search",class:"form-control","aria-label":"Search conferences",placeholder:"Search by name or ID\u2026",autocomplete:"off"},o$={class:"dashboard-filter-controls"},s$={class:"dropdown"},i$={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},r$={class:"filter-btn-value"},a$={class:"dropdown-menu","aria-labelledby":"dropdownSort"},l$={class:"form-check dropdown-item"},d$={class:"form-check-input",type:"radio",name:"sort",id:"sortName",value:"name"},u$={class:"form-check dropdown-item"},c$={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"conferenceID"},p$={class:"form-check dropdown-item"},f$={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},m$={class:"dropdown"},h$={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},g$={key:0,class:"filter-btn-value"},v$={key:1,class:"filter-btn-value"},y$={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},b$={class:"form-check dropdown-item"},w$=["id"],k$=["for"],C$={key:1,class:"dashboard-meta"},S$={class:"dashboard-count"},E$={key:0},N$={key:0},R$={key:1},T$={key:0,class:"filter-chip"},P$=["onClick","aria-label"],D$={key:0,class:"conference-feedback",role:"alert"},A$={key:1,class:"conference-feedback",role:"status"},I$={class:"paper-table paper-table-conferences w-100",role:"table","aria-label":"Conferences"},O$={class:"cell-anon",role:"cell"},M$={class:"anon-text"},V$=["textContent","href"],q$={class:"anon-sub"},L$={class:"anon-source"},_$=["textContent"],$$={key:0},F$=["textContent","href"],U$={class:"cell-status",role:"cell"},B$={class:"status-line"},z$=["textContent"],H$={class:"cell-views num",role:"cell"},j$=["textContent"],G$={class:"cell-expires",role:"cell"},W$={key:0},K$={key:1,class:"empty-dash","aria-label":"No review window"},Y$={class:"cell-actions",role:"cell"},J$={class:"dropdown"},X$=["disabled","aria-label"],Q$={class:"dropdown-menu dropdown-menu-right"},Z$=["href"],x$=["href"],eF={key:0},tF=["onClick"],nF={key:0,class:"paper-table-empty"},oF={key:0,class:"empty-icon","aria-hidden":"true"},sF={key:1,class:"ui-icon","aria-hidden":"true"},iF={key:3},rF={class:"paper-table-empty-actions"},aF={key:0,href:"/conference/new",class:"btn btn-primary conf-empty-new"};function Cp(e,t){let s=Pe("field"),i=Pe("form");return a(),l("div",X_,[n("div",Q_,[n("div",Z_,[n("div",x_,[t[4]||(t[4]=n("div",null,[n("h1",{class:"paper-page-title"},[m("Your "),n("em",null,"conferences")]),n("p",{class:"paper-page-lede"},"Group anonymizations by venue, give chairs a shared dashboard, and set one expiry for every submission.")],-1)),e.conferences&&e.conferences.length==0?f("v-if",!0):(a(),l("a",e$,[...t[3]||(t[3]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#project-icon-plus"})],-1),m(" New conference ",-1)])]))]),e.conferences?.length>0?P((a(),l("form",{key:0,class:"w-100 dashboard-filter-row","aria-label":"Filter conferences","accept-charset":"UTF-8",onSubmit:t[0]||(t[0]=de(o=>e.submitForm(o,()=>{o.preventDefault()}),["prevent"]))},[n("div",t$,[P(n("input",n$,null,512),[[s,{state:e.viewState,set:o=>{e.search=o},value:e.search,form:null,options:{}}]])]),n("div",o$,[n("div",s$,[n("button",i$,[t[5]||(t[5]=n("span",{class:"filter-btn-label"},"Sort",-1)),n("span",r$,d({name:"Name",conferenceID:"ID","-status":"Status"}[e.orderBy]||"Custom"),1)]),n("div",a$,[t[9]||(t[9]=n("h6",{class:"dropdown-header"},"Order by",-1)),n("div",l$,[P(n("input",d$,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[6]||(t[6]=n("label",{class:"form-check-label",for:"sortName"},"Name",-1))]),n("div",u$,[P(n("input",c$,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[7]||(t[7]=n("label",{class:"form-check-label",for:"sortID"},"ID",-1))]),n("div",p$,[P(n("input",f$,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[8]||(t[8]=n("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))])])]),n("div",m$,[n("button",h$,[t[10]||(t[10]=n("span",{class:"filter-btn-label"},"Status",-1)),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?(a(),l("span",g$,"All")):f("v-if",!0),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?f("v-if",!0):(a(),l("span",v$,d((e.filters?.status?.ready?0:1)+(e.filters?.status?.expired?0:1)+(e.filters?.status?.removed?0:1))+" hidden ",1))]),n("div",y$,[t[11]||(t[11]=n("h6",{class:"dropdown-header"},"Show statuses",-1)),(a(!0),l(V,null,X(e.statusLabels,(o,r,u)=>(a(),l("div",b$,[P(n("input",{class:"form-check-input",type:"checkbox",id:"status-"+r},null,8,w$),[[s,{state:e.viewState,set:p=>{e.filters.status[r]=p},value:e.filters?.status[r],form:null,options:{}}]]),n("label",{class:"form-check-label",for:"status-"+r},d(o),9,k$)]))),256))])])])],32)),[[i,e.viewState]]):f("v-if",!0),e.conferences?.length>0?(a(),l("div",C$,[n("span",S$,[e.filteredConferences?.length===e.conferences?.length?(a(),l("span",E$,[m(d(e.fmt?.number(e.conferences?.length))+" conference",1),e.conferences?.length!==1?(a(),l("span",N$,"s")):f("v-if",!0)])):f("v-if",!0),e.filteredConferences?.length!==e.conferences?.length?(a(),l("span",R$,d(e.fmt?.number(e.filteredConferences?.length))+" of "+d(e.fmt?.number(e.conferences?.length))+" shown",1)):f("v-if",!0)]),(a(!0),l(V,null,X(e.filters?.status,(o,r,u)=>(a(),l(V,null,[o===!1?(a(),l("span",T$,[m(" Hiding "+d(e.statusLabels[r])+" ",1),n("button",{type:"button",class:"filter-chip-close",onClick:p=>{e.filters.status[r]=!0},"aria-label":"Show "+e.statusLabels[r]+" again"},"\xD7",8,P$)])):f("v-if",!0)],64))),256))])):f("v-if",!0)]),e.error?(a(),l("div",D$,[n("span",null,d(e.error),1),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[1]||(t[1]=o=>e.loadConferences())},"Retry")])):f("v-if",!0),e.loading?(a(),l("div",A$,"Loading conferences\u2026")):f("v-if",!0),n("div",I$,[t[28]||(t[28]=n("div",{class:"paper-table-head",role:"row"},[n("div",{role:"columnheader"},"Conference"),n("div",{role:"columnheader"},"Status"),n("div",{role:"columnheader",class:"num"},"Repos"),n("div",{role:"columnheader"},"Review window"),n("div",{role:"columnheader"},[n("span",{class:"sr-only"},"Actions")])],-1)),(a(!0),l(V,null,X(e.filteredConferences,(o,r)=>(a(),l("div",{class:R(["paper-table-row row-clickable",{"repo-inactive":o?.status=="expired"||o?.status=="removed"}]),role:"row",key:o?.conferenceID},[n("div",O$,[t[14]||(t[14]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Conference"},[n("use",{href:"#project-icon-conference"})],-1)),n("div",M$,[n("a",{class:"repo-name",textContent:d(o?.name),href:e.safeUrl("/conference/"+o?.conferenceID)},null,8,V$),n("div",q$,[n("span",L$,[t[13]||(t[13]=m("ID ",-1)),n("span",{class:"commit-hash",textContent:d(o?.conferenceID)},null,8,_$),o?.url?(a(),l("span",$$,[t[12]||(t[12]=m(" \xB7 ",-1)),n("a",{target:"_blank",rel:"noopener",textContent:d(e.fmt?.limitTo(o?.url,60)),href:e.safeUrl(o?.url)},null,8,F$)])):f("v-if",!0)])])])]),n("div",U$,[n("div",B$,[n("span",{class:R(["status-dot","status-"+o?.status]),"aria-hidden":"true"},null,2),n("span",{class:"status-word",textContent:d(e.fmt?.statusLabel(o?.status))},null,8,z$)])]),n("div",H$,[t[15]||(t[15]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1)),t[16]||(t[16]=m()),n("span",{textContent:d(e.fmt?.number(o?.nbRepositories||0))},null,8,j$)]),n("div",G$,[t[17]||(t[17]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),o?.startDate?(a(),l("span",W$,d(e.fmt?.date(o?.startDate,"mediumDate"))+" \u2013 "+d(e.fmt?.date(o?.endDate,"mediumDate")),1)):f("v-if",!0),o?.startDate?f("v-if",!0):(a(),l("span",K$,"\u2014"))]),n("div",Y$,[n("div",J$,[n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",disabled:o?.removing,"aria-label":"Actions for "+o?.name},[...t[18]||(t[18]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})],-1)])],8,X$),n("div",Q$,[n("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+o?.conferenceID+"/")},[...t[19]||(t[19]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),m(" View ",-1)])],8,Z$),n("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+o?.conferenceID+"/edit")},[...t[20]||(t[20]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),m(" Edit ",-1)])],8,x$),o?.status!="removed"?(a(),l("div",eF,[t[22]||(t[22]=n("div",{class:"dropdown-divider"},null,-1)),n("button",{type:"button",class:"dropdown-item dropdown-item-danger",onClick:u=>e.removeConference(o)},[...t[21]||(t[21]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),m(" Remove ",-1)])],8,tF)])):f("v-if",!0)])])])],2))),128)),!e.loading&&!e.error&&e.filteredConferences?.length==0?(a(),l("div",nF,[e.conferences?.length==0?(a(),l("span",oF,[...t[23]||(t[23]=[n("svg",{class:"ui-icon"},[n("use",{href:"#project-icon-conference"})],-1)])])):f("v-if",!0),e.conferences?.length>0?(a(),l("svg",sF,[...t[24]||(t[24]=[n("use",{href:"#project-icon-inbox"},null,-1)])])):f("v-if",!0),e.conferences?.length==0?(a(),l(V,{key:2},[t[25]||(t[25]=n("strong",{class:"empty-title"},"No conferences yet",-1)),t[26]||(t[26]=n("span",null,"Create one to group submissions for a venue, share a dashboard with chairs, and set a single expiry date.",-1))],64)):f("v-if",!0),e.conferences?.length>0?(a(),l("span",iF,"Nothing matches the current filters.")):f("v-if",!0),n("div",rF,[e.conferences?.length==0?(a(),l("a",aF,[...t[27]||(t[27]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-plus"})],-1),m(" New conference",-1)])])):f("v-if",!0),e.conferences?.length>0?(a(),l("button",{key:1,type:"button",class:"btn btn-outline-ink",onClick:t[2]||(t[2]=o=>{e.search="",e.filters.status.ready=!0,e.filters.status.expired=!0,e.filters.status.removed=!0})},"Clear filters")):f("v-if",!0)])])):f("v-if",!0)])])])}var lF={class:"container page dashboard-page paper-page"},dF={class:"row"},uF={class:"w-100"},cF={class:"dashboard-heading page-head page-head-main"},pF={class:"dashboard-title-line"},fF={key:0,class:"dashboard-count-head","aria-hidden":"true"},mF={key:0},hF={class:"dashboard-heading-actions"},gF=["open"],vF=["aria-expanded"],yF=["stroke-dasharray"],bF={key:1,d:"M7 12c0-4 4-4 5 0s5 4 5 0-4-4-5 0-5 4-5 0",class:"quota-ring-unlimited"},wF={key:0,class:"quota-summary-value"},kF={key:0},CF={class:"quota-panel",id:"dashboard-usage"},SF={class:"quota-panel-heading"},EF={key:1,class:"quota-loading",role:"status"},NF={key:0,class:"dashboard-meta"},RF={key:0,class:"dashboard-view-tabs",role:"group","aria-label":"Project view"},TF=["aria-pressed"],PF=["aria-pressed","aria-label"],DF=["aria-pressed","aria-label"],AF={key:0,class:"attention-count"},IF={key:0},OF={key:0},MF={key:1},VF={class:"search-wrap"},qF={type:"search",id:"search",class:"form-control","aria-label":"Search anonymizations",placeholder:"Search projects\u2026",autocomplete:"off"},LF=["aria-expanded"],_F={class:"btn-group",role:"group","aria-label":"Type"},$F=["aria-pressed"],FF=["aria-pressed"],UF=["aria-pressed"],BF=["aria-pressed"],zF={class:"dropdown"},HF={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},jF={class:"filter-btn-value"},GF={class:"sr-only"},WF={class:"dropdown-menu","aria-labelledby":"dropdownSort"},KF={class:"form-check dropdown-item"},YF=["onClick","checked","id"],JF=["for"],XF=["inert"],QF={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},ZF={class:"filter-btn-value"},xF={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},e7={key:0,class:"form-check dropdown-item"},t7=["id"],n7=["for"],o7={key:1,class:"dashboard-active-filters dashboard-active-filters-row"},s7=["onClick","aria-label","title"],i7=["aria-busy"],r7={class:"paper-table-head",role:"row"},a7=["aria-sort"],l7=["aria-sort"],d7=["aria-sort"],u7=["aria-sort"],c7={key:0,class:"paper-table-row paper-table-skeleton",role:"row","aria-hidden":"true"},p7=["onClick"],f7={class:"cell-anon",role:"cell"},m7=["aria-label","title"],h7={class:"project-type-svg","aria-hidden":"true"},g7=["href"],v7={class:"anon-text"},y7={class:"anon-title"},b7=["title","href"],w7={class:"rn-owner"},k7={class:"rn-repo"},C7={key:1,class:"repo-name repo-name-static"},S7={class:"rn-owner"},E7={class:"rn-repo"},N7={key:2,class:"type-badge type-coauthor",title:"You are a co-author on this anonymization"},R7={key:0,class:"anon-sub"},T7=["title"],P7={class:"id-head"},D7={class:"id-tail"},A7=["title"],I7=["title"],O7=["textContent"],M7={class:"dashboard-row-meta",role:"presentation"},V7={class:"cell-status",role:"cell"},q7={class:"status-line"},L7=["textContent"],_7=["onClick"],$7=["textContent","title"],F7=["title"],U7=["href"],B7={key:3,class:"status-action-line"},z7={key:0,class:"status-stuck"},H7=["onClick","data-project-actions","aria-controls","aria-expanded"],j7=["onClick"],G7={key:5,class:"status-sub status-sub-date status-sub-removed"},W7={key:6,class:"status-sub status-sub-date"},K7=["data-unit","aria-label"],Y7={class:"cell-expires",role:"cell"},J7={key:0,class:"expires-never"},X7=["textContent"],Q7=["title"],Z7={key:3,class:"expires-past"},x7={key:4,class:"expires-past"},eU={key:5,class:"empty-dash","aria-label":"Not applicable"},tU={class:"cell-actions",role:"cell"},nU=["onClick","disabled","title","aria-label"],oU={class:"sr-only","aria-live":"polite"},sU={class:"project-type-svg","aria-hidden":"true"},iU=["href"],rU={class:"copy-url-label","aria-hidden":"true"},aU=["href","aria-label"],lU=["href","title","aria-label"],dU=["title","aria-label"],uU=["title","aria-label"],cU=["aria-label"],pU={key:6,class:"dropdown is-disabled"},fU=["aria-label"],mU={key:7,class:"dropdown"},hU=["data-project-actions","aria-label"],gU={class:"dropdown-menu dropdown-menu-right"},vU=["onClick","aria-controls","aria-expanded"],yU=["href"],bU=["href"],wU=["onClick","disabled"],kU=["href"],CU=["onClick"],SU=["onClick"],EU=["onClick"],NU={key:5},RU=["onClick"],TU={key:1,class:"project-details-row",role:"row"},PU=["id","onKeydown"],DU={class:"project-details-heading"},AU=["onClick"],IU={class:"project-details-list"},OU={key:0},MU={key:1},VU={key:0},qU={key:2},LU={key:0,class:"project-progress-help"},_U=["href"],$U=["onSubmit"],FU=["for"],UU=["id"],BU={class:"project-name-controls"},zU=["id","aria-describedby","disabled"],HU=["disabled"],jU={key:0,class:"project-name-error",role:"alert"},GU={key:1,role:"status"},WU={key:0,class:"paper-table-empty"},KU={key:0},YU={key:1},JU={class:"paper-table-empty-actions"},XU={key:1,href:"/anonymize",class:"btn btn-ink"},QU={key:0,class:"dashboard-pagination"},ZU={key:0,role:"alert"},xU=["disabled"];function Sp(e,t){let s=Qe("quota-usage"),i=Pe("field"),o=Pe("form");return a(),l("div",lF,[n("div",dF,[n("div",uF,[n("div",cF,[n("div",null,[n("div",pF,[t[27]||(t[27]=n("h1",{class:"paper-page-title"},"My work",-1)),!e.loading&&e.isPlainView()?(a(),l("span",fF,[m(d(e.fmt?.number(e.dashboardTotals?.filtered??e.filteredItems?.length))+" project",1),(e.dashboardTotals?.filtered??e.filteredItems?.length)!==1?(a(),l("span",mF,"s")):f("v-if",!0)])):f("v-if",!0)]),t[28]||(t[28]=n("p",{class:"paper-page-lede"},"Manage your anonymous links.",-1))]),n("div",hF,[n("details",{class:"dashboard-quota",open:e.quotaExpanded,onToggle:t[1]||(t[1]=r=>e.quotaExpanded=r.target.open),onKeydown:t[2]||(t[2]=_t(de(r=>e.closeQuota(),["prevent","stop"]),["esc"]))},[n("summary",{"aria-controls":"dashboard-usage","aria-expanded":e.quotaExpanded,class:R(e.quota?"quota-level-"+e.quota.repository.level:""),style:Ae(e.quota&&!e.quota.repository.unlimited?{"--quota-pct":e.quota.repository.percent+"%"}:null)},[(a(),l("svg",{class:R(["quota-summary-ring",e.quota?"quota-"+e.quota.repository.level:""]),viewBox:"0 0 24 24","aria-hidden":"true"},[t[29]||(t[29]=n("circle",{class:"quota-ring-track",cx:"12",cy:"12",r:"9"},null,-1)),e.quota&&!e.quota.repository.unlimited?(a(),l("circle",{key:0,class:"quota-ring-fill",cx:"12",cy:"12",r:"9",pathLength:"100","stroke-dasharray":e.quota.repository.percent+" 100"},null,8,yF)):f("v-if",!0),e.quota?.repository.unlimited?(a(),l("path",bF)):f("v-if",!0)],2)),t[31]||(t[31]=n("span",{class:"quota-summary-label"},"Usage",-1)),e.quota?(a(),l("span",wF,[m(d(e.fmt.number(e.quota.repository.used)),1),e.quota.repository.unlimited?f("v-if",!0):(a(),l("span",kF," / "+d(e.fmt.number(e.quota.repository.total)),1)),t[30]||(t[30]=m(" repos",-1))])):f("v-if",!0),t[32]||(t[32]=n("svg",{class:"project-type-svg quota-summary-chevron","aria-hidden":"true"},[n("use",{href:"#project-icon-chevron"})],-1))],14,vF),n("div",CF,[n("div",SF,[t[34]||(t[34]=n("h2",null,"Account usage",-1)),n("button",{type:"button",class:"project-close","aria-label":"Close usage",onClick:t[0]||(t[0]=r=>e.closeQuota())},[...t[33]||(t[33]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])])]),e.quota?(a(),Xt(s,{key:0,quota:e.quota,fmt:e.fmt},null,8,["quota","fmt"])):(a(),l("p",EF,"Loading usage\u2026"))])],40,gF),t[35]||(t[35]=Ce('New anonymization',1))])]),f(" Result count + active filter chips "),e.loading?f("v-if",!0):(a(),l("div",NF,[e.showViewTabs()?(a(),l("div",RF,[n("button",{type:"button","aria-pressed":e.statusView()==="active",onClick:t[3]||(t[3]=r=>e.setStatusView("active")),title:"Every project except removed links"},"Current",8,TF),e.attentionCount()>0||e.statusView()==="attention"?(a(),l("button",{key:0,type:"button","aria-pressed":e.statusView()==="attention",onClick:t[4]||(t[4]=r=>e.setStatusView("attention")),"aria-label":"Needs attention "+e.attentionCount()},[t[36]||(t[36]=n("span",{class:"dashboard-attention-prefix"},"Needs ",-1)),t[37]||(t[37]=n("span",null,"attention",-1)),t[38]||(t[38]=m()),n("span",{class:R(["attention-count",{"has-attention":e.attentionCount()>0}])},d(e.attentionCount()),3)],8,PF)):f("v-if",!0),e.removedCount>0||e.statusView()==="removed"||e.removedCount==null&&e.dashboardTotals?.total>e.dashboardTotals?.filtered?(a(),l("button",{key:1,type:"button","aria-pressed":e.statusView()==="removed",onClick:t[5]||(t[5]=r=>e.setStatusView("removed")),"aria-label":"Removed "+(e.removedCount??""),title:"Links reviewers can no longer open"},[t[39]||(t[39]=m("Removed ",-1)),e.removedCount!=null?(a(),l("span",AF,d(e.fmt?.number(e.removedCount)),1)):f("v-if",!0)],8,DF)):f("v-if",!0)])):f("v-if",!0),n("span",{class:R(["dashboard-count",{"is-plain":e.isPlainView()}])},[e.isPlainView()?(a(),l("span",IF,[m(d(e.fmt?.number(e.dashboardTotals?.filtered??e.filteredItems?.length))+" project",1),(e.dashboardTotals?.filtered??e.filteredItems?.length)!==1?(a(),l("span",OF,"s")):f("v-if",!0)])):(a(),l("span",MF,d(e.fmt?.number(e.dashboardTotals?.filtered??e.filteredItems?.length))+" shown",1))],2)])),f(" Search + filters "),P((a(),l("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter anonymizations","accept-charset":"UTF-8",onSubmit:t[13]||(t[13]=de(r=>e.submitForm(r,()=>{r.preventDefault()}),["prevent"]))},[n("div",VF,[P(n("input",qF,null,512),[[i,{state:e.viewState,set:r=>{e.search=r},value:e.search,form:null,options:{}}]])]),n("button",{class:"btn dashboard-filters-toggle",type:"button","aria-expanded":e.filtersExpanded,"aria-controls":"dashboard-filter-controls",onClick:t[6]||(t[6]=r=>e.filtersExpanded=!e.filtersExpanded)},[...t[40]||(t[40]=[m("Filters",-1),n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-filter"})],-1)])],8,LF),n("div",{id:"dashboard-filter-controls",class:R(["dashboard-filter-controls",{expanded:e.filtersExpanded}])},[n("div",_F,[n("button",{type:"button",class:R(["btn",{"btn-primary":e.typeFilter==="all"}]),onClick:t[7]||(t[7]=r=>e.typeFilter="all"),"aria-pressed":e.typeFilter==="all"},"All",10,$F),n("button",{type:"button",class:R(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="repo"}]),title:"Repositories",onClick:t[8]||(t[8]=r=>e.typeFilter="repo"),"aria-pressed":e.typeFilter==="repo"},[...t[41]||(t[41]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1),n("span",{class:"type-filter-label"},"Repos",-1)])],10,FF),n("button",{type:"button",class:R(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="pr"}]),title:"Pull requests",onClick:t[9]||(t[9]=r=>e.typeFilter="pr"),"aria-pressed":e.typeFilter==="pr"},[...t[42]||(t[42]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-type-pr"})],-1),n("span",{class:"type-filter-label"},"PRs",-1)])],10,UF),n("button",{type:"button",class:R(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="gist"}]),title:"Gists",onClick:t[10]||(t[10]=r=>e.typeFilter="gist"),"aria-pressed":e.typeFilter==="gist"},[...t[43]||(t[43]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-type-gist"})],-1),n("span",{class:"type-filter-label"},"Gists",-1)])],10,BF)]),n("div",{id:"dashboard-extra-filters",class:R(["dashboard-extra-filters",{expanded:e.filtersExpanded}])},[n("div",zF,[n("button",HF,[t[45]||(t[45]=n("span",{class:"filter-btn-label"},"Sort",-1)),n("span",jF,d(e.sortLabel()),1),(a(),l("svg",{class:R(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[44]||(t[44]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)),n("span",GF,d(e.sortDesc()?"descending":"ascending"),1)]),n("div",WF,[t[46]||(t[46]=n("h6",{class:"dropdown-header"},"Order by",-1)),(a(!0),l(V,null,X(e.sortFields,(r,u,p)=>(a(),l("div",KF,[n("input",{class:"form-check-input",type:"radio",name:"sort",onClick:c=>e.setSort(u,r.defaultDesc),checked:e.isSortedBy(u),id:"sort-"+p},null,8,YF),n("label",{class:"form-check-label",for:"sort-"+p},d(r?.label),9,JF)]))),256)),t[47]||(t[47]=n("div",{class:"dropdown-divider"},null,-1)),n("button",{type:"button",class:"dropdown-item",onClick:t[11]||(t[11]=r=>e.toggleSortDirection())},d(e.sortDesc()?"Switch to ascending":"Switch to descending"),1)])]),n("div",{class:R(["dropdown dashboard-status-filter",{"is-view-hidden":e.statusView()==="removed"}]),inert:e.statusView()==="removed"?!0:null},[n("button",QF,[t[48]||(t[48]=n("span",{class:"filter-btn-label"},"Status",-1)),n("span",ZF,d(e.statusChipKeys().length===0?"Any":e.statusChipKeys().length===1?"Hiding "+(e.statusKeyLabels[e.statusChipKeys()[0]]||"").toLowerCase():e.statusChipKeys().length+" hidden"),1)]),n("div",xF,[t[49]||(t[49]=n("h6",{class:"dropdown-header"},"Show statuses",-1)),n("button",{type:"button",class:R(["dropdown-item status-preset",{active:e.statusChipKeys().length===0}]),onClick:t[12]||(t[12]=r=>e.statusChipKeys().forEach(u=>{e.filters.status[u]=!0}))},"Any status",2),t[50]||(t[50]=n("div",{class:"dropdown-divider"},null,-1)),(a(!0),l(V,null,X(e.statusKeyLabels,(r,u,p)=>(a(),l(V,{key:u},[u!=="removed"?(a(),l("div",e7,[P(n("input",{class:"form-check-input",type:"checkbox",id:"status-"+u},null,8,t7),[[i,{state:e.viewState,set:c=>{e.filters.status[u]=c},value:e.filters?.status[u],form:null,options:{}}]]),n("label",{class:"form-check-label",for:"status-"+u},d(r),9,n7)])):f("v-if",!0)],64))),128))])],10,XF)],2)],2)],32)),[[o,e.viewState]]),!e.loading&&e.showClearFilters()?(a(),l("div",o7,[(a(!0),l(V,null,X(e.statusChipKeys(),r=>(a(),l("button",{key:r,type:"button",class:"filter-chip",onClick:u=>e.filters.status[r]=!0,"aria-label":"Show "+e.statusKeyLabels[r]+" again",title:"Show "+e.statusKeyLabels[r]+" again"},[m("Hiding "+d((e.statusKeyLabels[r]||"").toLowerCase()),1),t[51]||(t[51]=n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1))],8,s7))),128)),e.typeFilter!=="all"?(a(),l("button",{key:0,type:"button",class:"filter-chip",onClick:t[14]||(t[14]=r=>e.typeFilter="all"),"aria-label":"Show all project types"},[m(d(e.typeFilter==="repo"?"Repositories":e.typeFilter==="pr"?"Pull requests":"Gists"),1),t[52]||(t[52]=n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1))])):f("v-if",!0),e.showClearFilters()?(a(),l("button",{key:1,type:"button",class:"btn-link-inline",onClick:t[15]||(t[15]=r=>e.clearFilters())},"Clear filters")):f("v-if",!0)])):f("v-if",!0)]),f(" Table "),n("div",{class:R(["paper-table paper-table-dashboard",{"is-removed-view":e.statusView()==="removed"}]),role:"table","aria-label":"Anonymizations","aria-busy":e.loading},[n("div",r7,[n("div",{role:"columnheader","aria-sort":e.isSortedBy("_label")?e.sortDesc()?"descending":"ascending":"none"},[n("button",{type:"button",class:R(["sortable",{active:e.isSortedBy("_label")}]),onClick:t[16]||(t[16]=r=>e.setSort("_label"))},[t[54]||(t[54]=m(" Project ",-1)),e.isSortedBy("_label")?(a(),l("svg",{key:0,class:R(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[53]||(t[53]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)],8,a7),n("div",{role:"columnheader","aria-sort":e.isSortedBy("status")?e.sortDesc()?"descending":"ascending":"none"},[n("button",{type:"button",class:R(["sortable",{active:e.isSortedBy("status")}]),onClick:t[17]||(t[17]=r=>e.setSort("status"))},[t[56]||(t[56]=m(" Status ",-1)),e.isSortedBy("status")?(a(),l("svg",{key:0,class:R(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[55]||(t[55]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)],8,l7),n("div",{role:"columnheader",class:"num","aria-sort":e.isSortedBy("pageView")?e.sortDesc()?"descending":"ascending":"none"},[n("button",{type:"button",class:R(["sortable",{active:e.isSortedBy("pageView")}]),onClick:t[18]||(t[18]=r=>e.setSort("pageView"))},[t[58]||(t[58]=m(" Views ",-1)),e.isSortedBy("pageView")?(a(),l("svg",{key:0,class:R(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[57]||(t[57]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)],8,d7),n("div",{role:"columnheader","aria-sort":e.isSortedBy("options.expirationDate")?e.sortDesc()?"descending":"ascending":"none"},[n("button",{type:"button",class:R(["sortable",{active:e.isSortedBy("options.expirationDate")}]),onClick:t[19]||(t[19]=r=>e.setSort("options.expirationDate"))},[t[60]||(t[60]=m(" Expires ",-1)),e.isSortedBy("options.expirationDate")?(a(),l("svg",{key:0,class:R(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[59]||(t[59]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)],8,u7),t[61]||(t[61]=n("div",{role:"columnheader",class:"col-link"},[n("span",{class:"sr-only"},"Actions")],-1))]),f(" Loading skeleton: keeps the layout stable while the three lists load "),(a(),l(V,null,X([1,2,3,4],(r,u)=>(a(),l(V,null,[e.loading?(a(),l("div",c7,[...t[62]||(t[62]=[n("div",{class:"cell-anon",role:"cell"},[n("span",{class:"skeleton skeleton-badge"}),n("div",{class:"anon-text"},[n("span",{class:"skeleton skeleton-line",style:{width:"38%"}}),n("span",{class:"skeleton skeleton-line skeleton-line-sm",style:{width:"56%"}})])],-1),n("div",{class:"cell-status",role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"60%"}})],-1),n("div",{class:"cell-views num",role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"40%"}})],-1),n("div",{class:"cell-expires",role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"55%"}})],-1),n("div",{class:"cell-actions",role:"cell"},null,-1)])])):f("v-if",!0)],64))),64)),(a(!0),l(V,null,X(e.filteredItems,(r,u)=>(a(),l(V,{key:r?._type+":"+(r?._id||u)},[e.loading?f("v-if",!0):(a(),l("div",{key:0,class:R(["paper-table-row",{"repo-inactive":r?._statusKey=="expired"||r?._statusKey=="removed","repo-error":r?.status=="error","row-clickable":!!r?._viewUrl}]),role:"row",onClick:p=>e.openItem(r,p)},[n("div",f7,[n("span",{class:"project-type-icon",role:"img","aria-label":r?._type==="repo"?"Repository":r?._type==="pr"?"Pull request":"Gist",title:r?._type==="repo"?"Repository":r?._type==="pr"?"Pull request":"Gist"},[(a(),l("svg",h7,[n("use",{href:"#project-type-"+r._type},null,8,g7)]))],8,m7),n("div",v7,[n("div",y7,[r?._viewUrl?(a(),l("a",{key:0,class:"repo-name",title:r._label,href:e.safeUrl(r?._viewUrl)},[(r?._label||"").indexOf("/")>0?(a(),l(V,{key:0},[n("span",w7,d(r._label.slice(0,r._label.indexOf("/")+1)),1),t[63]||(t[63]=n("wbr",null,null,-1)),n("span",k7,d(r._label.slice(r._label.indexOf("/")+1)),1)],64)):(a(),l(V,{key:1},[m(d(r?._label),1)],64))],8,b7)):f("v-if",!0),r?._viewUrl?f("v-if",!0):(a(),l("span",C7,[(r?._label||"").indexOf("/")>0?(a(),l(V,{key:0},[n("span",S7,d(r._label.slice(0,r._label.indexOf("/")+1)),1),t[64]||(t[64]=n("wbr",null,null,-1)),n("span",E7,d(r._label.slice(r._label.indexOf("/")+1)),1)],64)):(a(),l(V,{key:1},[m(d(r?._label),1)],64))])),r?.role==="coauthor"?(a(),l("span",N7,"Co-author")):f("v-if",!0)]),r?._id||r?._type==="repo"&&r?.source?.commit||r?.conference?(a(),l("div",R7,[r?._id?(a(),l("code",{key:0,class:"anonymous-id",title:r._id},[r._id.length>14?(a(),l(V,{key:0},[n("span",P7,d(r._id.slice(0,-6)),1),n("span",D7,d(r._id.slice(-6)),1)],64)):(a(),l(V,{key:1},[m(d(r._id),1)],64))],8,T7)):f("v-if",!0),r?._type==="repo"&&r?.source?.commit?(a(),l("span",{key:1,class:"commit-hash",title:r.source.commit},d(r.source.commit.substring(0,7)),9,A7)):f("v-if",!0),r?.conference?(a(),l("span",{key:2,class:"cell-conf conf-tag",title:"Conference: "+r.conference},[t[65]||(t[65]=n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),n("span",{class:"conf-name",textContent:d(r?.conference)},null,8,O7)],8,I7)):f("v-if",!0)])):f("v-if",!0)])]),n("div",M7,[n("div",V7,[n("div",q7,[n("span",{class:R(["status-dot","status-"+r?._statusKey]),"aria-hidden":"true"},null,2),n("span",{class:"status-word",textContent:d(e.fmt?.statusLabel(r?.status))},null,8,L7),r?.status=="removed"?(a(),l(V,{key:0},[t[66]||(t[66]=n("span",{class:"seg-sep status-removed-sep","aria-hidden":"true"},"\xB7",-1)),n("button",{type:"button",class:"project-attention-action status-enable",onClick:de(p=>e.refreshItem(r),["stop"]),title:"Reviewers can no longer open this link"},"Enable again",8,_7)],64)):f("v-if",!0)]),r?.status=="error"&&r?.statusMessage?(a(),l("div",{key:0,class:"status-sub status-sub-error",textContent:d(e.fmt?.statusMsg(r?.statusMessage)),title:r?.statusMessage},null,8,$7)):f("v-if",!0),r?._stale?(a(),l("div",{key:1,class:"status-sub status-sub-warn",title:"Last activity "+e.fmt?.humanTime(r?.anonymizeDate||r?.lastView)},d(e.idleText(r)),9,F7)):f("v-if",!0),r.status==="error"&&r._editUrl?(a(),l("a",{key:2,class:"project-attention-action",href:e.safeUrl(r._editUrl)},"Fix source",8,U7)):f("v-if",!0),r._stale||r._broken?(a(),l("div",B7,[r._stale&&!r._broken?(a(),l("span",z7,[...t[67]||(t[67]=[m("May be stuck",-1),n("span",{"aria-hidden":"true"}," \xB7 ",-1)])])):f("v-if",!0),r._stale||r._broken?(a(),l("button",{key:1,type:"button",class:"project-attention-action",onClick:de(p=>e.showProjectDetails(r),["stop"]),"data-project-actions":r._broken?encodeURIComponent(r._type+":"+r._id):null,"aria-controls":r._broken?e.projectDetailsId(r):null,"aria-expanded":r._broken?e.selectedProject===r:null},d(r._broken?"Review details":"Check progress"),9,H7)):f("v-if",!0)])):f("v-if",!0),r?.status=="expired"?(a(),l("button",{key:4,type:"button",class:"project-attention-action",onClick:de(p=>e.extendItem(r),["stop"]),title:"Reviewers can no longer open this link"},"Extend 6 months",8,j7)):f("v-if",!0),r?.status=="removed"&&r?.anonymizeDate?(a(),l("div",G7,"anonymized "+d(e.fmt?.humanTime(r?.anonymizeDate)),1)):f("v-if",!0),r?.status!="error"&&r?.status!="expired"&&r?.status!="removed"&&!r?._stale&&r?.anonymizeDate?(a(),l("div",W7," anonymized "+d(e.fmt?.humanTime(r?.anonymizeDate)),1)):f("v-if",!0)]),n("div",{class:"cell-views num",role:"cell","data-unit":r.pageView===1?"view":"views","aria-label":e.fmt.number(r.pageView)+(r.pageView===1?" view":" views")},[t[68]||(t[68]=n("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1)),n("span",null,d(e.fmt.number(r.pageView)),1)],8,K7),n("div",Y7,[t[72]||(t[72]=n("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),r?._expiry?.kind==="never"?(a(),l("span",J7,"No expiry")):f("v-if",!0),r?._expiry?.kind==="date"&&!r?._expiry?.soon?(a(),l("span",{key:1,textContent:d((e.fmt?.humanTime(r?._expiry?.date)||"").replace(/^on /,""))},null,8,X7)):f("v-if",!0),r?._expiry?.kind==="date"&&r?._expiry?.soon?(a(),l("span",{key:2,class:"expires-soon",title:"Expires "+e.fmt?.humanTime(r?._expiry?.date)},[t[69]||(t[69]=n("svg",{class:"project-type-svg expires-soon-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),t[70]||(t[70]=n("span",{class:"expires-soon-prefix"},"Expires ",-1)),m(d(r._expiry.soon),1)],8,Q7)):f("v-if",!0),r?._expiry?.kind==="expired"&&r?._expiry?.date?(a(),l("span",Z7,[t[71]||(t[71]=n("span",{class:"expires-past-prefix"},"Expired ",-1)),m(d(r?._expiry?.label||e.fmt?.humanTime(r?._expiry?.date)),1)])):f("v-if",!0),r?._expiry?.kind==="expired"&&!r?._expiry?.date?(a(),l("span",x7,"Expired")):f("v-if",!0),r?._expiry?.kind==="none"?(a(),l("span",eU,"\u2014")):f("v-if",!0)])]),n("div",tU,[r._viewUrl&&!(r?._statusKey=="expired"||r?._statusKey=="removed")?(a(),l("button",{key:0,type:"button",class:"copy-url",onClick:de(p=>e.copyLink(r),["stop"]),disabled:!!e.copyingId,title:"Copy link: "+r._viewUrl,"aria-label":"Copy anonymous link for "+r._label},[n("span",oU,d(e.copyingId===r._type+":"+r._id?"Link copied":""),1),(a(),l("svg",sU,[n("use",{href:e.copyingId===r._type+":"+r._id?"#ui-icon-check":"#project-icon-copy"},null,8,iU)])),n("span",rU,d(e.copyingId===r._type+":"+r._id?"Copied":"Copy link"),1)],8,nU)):f("v-if",!0),r._viewUrl&&!(r?._statusKey=="expired"||r?._statusKey=="removed")?(a(),l("a",{key:1,class:"row-edit row-open",href:e.safeUrl(r._viewUrl),target:"_blank",rel:"noopener",title:"Open what reviewers see","aria-label":"Open anonymous page for "+r._label},[...t[73]||(t[73]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])],8,aU)):f("v-if",!0),r?._editUrl&&!r?._broken&&r?._statusKey!="removed"?(a(),l("a",{key:2,class:"row-edit",href:e.safeUrl(r._editUrl),title:"Edit "+r._name,"aria-label":"Edit "+r._name},[...t[74]||(t[74]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1)])],8,lU)):f("v-if",!0),!(r._viewUrl&&!(r?._statusKey=="expired"||r?._statusKey=="removed"))&&r?._statusKey!="removed"&&r?._statusKey!="expired"?(a(),l("button",{key:3,type:"button",class:"copy-url is-disabled","aria-disabled":"true",onClick:t[20]||(t[20]=de(()=>{},["stop"])),title:r?._statusKey=="expired"?"Link expired: reviewers can no longer open it":r?._statusKey=="removed"?"Link offline: reviewers can no longer open it":"No link: this record is incomplete","aria-label":"Copy link unavailable for "+r._label},[...t[75]||(t[75]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-copy"})],-1),n("span",{class:"copy-url-label","aria-hidden":"true"},"Copy link",-1)])],8,dU)):f("v-if",!0),!(r._viewUrl&&!(r?._statusKey=="expired"||r?._statusKey=="removed"))&&r?._statusKey!="removed"&&r?._statusKey!="expired"?(a(),l("button",{key:4,type:"button",class:"row-edit row-open is-disabled","aria-disabled":"true",onClick:t[21]||(t[21]=de(()=>{},["stop"])),title:r?._statusKey=="expired"?"Link expired: reviewers can no longer open it":r?._statusKey=="removed"?"Link offline: reviewers can no longer open it":"No link: this record is incomplete","aria-label":"Open unavailable for "+r._label},[...t[76]||(t[76]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])],8,uU)):f("v-if",!0),r?._editUrl&&!r?._broken?f("v-if",!0):(a(),l("button",{key:5,type:"button",class:"row-edit is-disabled","aria-disabled":"true",onClick:t[22]||(t[22]=de(()=>{},["stop"])),title:"Can't edit: this record is incomplete","aria-label":"Edit unavailable for "+r._label},[...t[77]||(t[77]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1)])],8,cU)),r?._broken?(a(),l("div",pU,[n("button",{type:"button",class:"btn btn-icon-dots is-disabled","aria-disabled":"true",onClick:t[23]||(t[23]=de(()=>{},["stop"])),title:"No actions: this record is incomplete. Use Review details.","aria-label":"No actions available for "+r._label},[...t[78]||(t[78]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})],-1)])],8,fU)])):f("v-if",!0),r?._broken?f("v-if",!0):(a(),l("div",mU,[n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","data-project-actions":encodeURIComponent(r._type+":"+r._id),"aria-label":"Actions for "+r?._name},[...t[79]||(t[79]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})],-1)])],8,hU),n("div",gU,[n("button",{type:"button",class:"dropdown-item",onClick:p=>e.showProjectDetails(r),"aria-controls":e.projectDetailsId(r),"aria-expanded":e.selectedProject===r},"Project details & name",8,vU),n("a",{class:"dropdown-item",href:e.safeUrl(r?._viewUrl)}," View ",8,yU),r?._type==="repo"&&r?.options?.page&&r?.status=="ready"?(a(),l("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+r?.repoId+"/")}," View page ",8,bU)):f("v-if",!0),r?._viewUrl?(a(),l("button",{key:1,type:"button",class:"dropdown-item",onClick:p=>e.copyLink(r),disabled:!!e.copyingId}," Copy anonymous link ",8,wU)):f("v-if",!0),n("a",{class:"dropdown-item",href:e.safeUrl(r?._editUrl)}," Edit ",8,kU),r?.status=="ready"||r?.status=="error"?(a(),l("button",{key:2,type:"button",class:"dropdown-item",onClick:p=>e.refreshItem(r)}," Force update ",8,CU)):f("v-if",!0),r?.status=="removed"?(a(),l("button",{key:3,type:"button",class:"dropdown-item",onClick:p=>e.refreshItem(r)}," Enable ",8,SU)):f("v-if",!0),r?.status=="expired"?(a(),l("button",{key:4,type:"button",class:"dropdown-item",onClick:p=>e.extendItem(r)}," Extend 6 months ",8,EU)):f("v-if",!0),(r?.status=="ready"||r?.status=="expired"||r?.status=="error")&&r?.role!=="coauthor"?(a(),l("div",NU,[t[80]||(t[80]=n("div",{class:"dropdown-divider"},null,-1)),n("button",{type:"button",class:"dropdown-item dropdown-item-danger",onClick:p=>e.removeItem(r)}," Remove ",8,RU)])):f("v-if",!0)])]))])],10,p7)),!e.loading&&e.selectedProject===r?(a(),l("div",TU,[n("div",{class:"project-details",role:"cell","aria-colspan":"5",id:e.projectDetailsId(r),tabindex:"-1",onKeydown:_t(de(p=>e.closeProjectDetails(r),["stop"]),["esc"])},[n("div",DU,[t[82]||(t[82]=n("h2",null,"Project details",-1)),n("button",{type:"button",class:"project-close",onClick:p=>e.closeProjectDetails(r),"aria-label":"Close project details"},[...t[81]||(t[81]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,AU)]),n("dl",IU,[n("div",null,[t[83]||(t[83]=n("dt",null,"Source",-1)),n("dd",null,d(r._source||"Not available"),1)]),n("div",null,[t[84]||(t[84]=n("dt",null,"Anonymous ID",-1)),n("dd",null,[n("code",null,d(r._id||"Missing identifier"),1)])]),r.source?.commit?(a(),l("div",OU,[t[85]||(t[85]=n("dt",null,"Commit",-1)),n("dd",null,[n("code",null,d(r.source.commit),1)])])):f("v-if",!0),r.conference?(a(),l("div",MU,[t[86]||(t[86]=n("dt",null,"Conference",-1)),n("dd",null,d(r.conference),1)])):f("v-if",!0),n("div",null,[t[87]||(t[87]=n("dt",null,"Status",-1)),n("dd",null,[m(d(e.fmt.statusLabel(r.status)),1),r.statusMessage?(a(),l("span",VU," \xB7 "+d(e.fmt.statusMsg(r.statusMessage)),1)):f("v-if",!0)])]),r.anonymizeDate?(a(),l("div",qU,[t[88]||(t[88]=n("dt",null,"Last anonymized",-1)),n("dd",null,d(e.fmt.humanTime(r.anonymizeDate)),1)])):f("v-if",!0)]),r._stale?(a(),l("p",LU,"This download has not progressed recently. Check the source access and selected branch before retrying.")):f("v-if",!0),r._editUrl?(a(),l("a",{key:1,class:"project-attention-action",href:e.safeUrl(r._editUrl)},d(e.needsAttention(r)?"Check source settings":"Edit anonymization settings"),9,_U)):f("v-if",!0),r._id?(a(),l("form",{key:2,class:"project-name-form",onSubmit:de(p=>e.saveProjectName(r),["prevent"])},[n("label",{for:"project-name-"+r._type+"-"+r._id},"Project name",8,FU),n("p",{id:"project-name-help-"+r._type+"-"+r._id},"Only you see this name. Leave it blank to use the default.",8,UU),n("div",BU,[P(n("input",{class:"form-control",type:"text",id:"project-name-"+r._type+"-"+r._id,"aria-describedby":"project-name-help-"+r._type+"-"+r._id,maxlength:"100","onUpdate:modelValue":t[24]||(t[24]=p=>e.projectName=p),disabled:e.nameSaving},null,8,zU),[[nt,e.projectName]]),n("button",{class:"btn btn-ink",type:"submit",disabled:e.nameSaving},d(e.nameSaving?"Saving\u2026":"Save name"),9,HU)]),e.nameError?(a(),l("p",jU,d(e.nameError),1)):f("v-if",!0),e.nameMessage?(a(),l("p",GU,d(e.nameMessage),1)):f("v-if",!0)],40,$U)):f("v-if",!0)],40,PU)])):f("v-if",!0)],64))),128)),!e.loading&&e.filteredItems?.length==0?(a(),l("div",WU,[t[90]||(t[90]=n("svg",{class:"project-type-svg project-empty-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),e.hasProjects()?f("v-if",!0):(a(),l("span",KU,"You have no anonymizations yet.")),e.hasProjects()?(a(),l("span",YU,"Nothing matches the current filters.")):f("v-if",!0),n("div",JU,[e.hasActiveFilters()?(a(),l("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[25]||(t[25]=r=>e.clearFilters())},"Clear filters")):f("v-if",!0),e.hasProjects()?f("v-if",!0):(a(),l("a",XU,[...t[89]||(t[89]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-plus"})],-1),m(" New anonymization",-1)])]))])])):f("v-if",!0)],10,i7)]),e.dashboardCursor||e.dashboardError?(a(),l("div",QU,[e.dashboardError?(a(),l("p",ZU,d(e.dashboardError),1)):f("v-if",!0),e.dashboardCursor?(a(),l("button",{key:1,type:"button",class:"btn",onClick:t[26]||(t[26]=r=>e.loadMoreProjects()),disabled:e.loadingMore},d(e.loadingMore?"Loading\u2026":"Load more projects"),9,xU)):f("v-if",!0)])):f("v-if",!0)])}var e9={class:"viewer-bar"},t9={class:"vb-left"},n9=["aria-label","title"],o9=["href","title"],s9={class:"vb-artifact-id"},i9={class:"vb-right"},r9=["title"],a9={class:"vb-help"},l9=["aria-expanded"],d9={key:0,class:"acct-menu vb-help-menu",role:"menu"},u9=["aria-label","title"],c9={class:"ui-icon","aria-hidden":"true"},p9=["href"],f9={key:1,class:"acct"},m9=["aria-label","aria-expanded"],h9=["src"],g9={key:1,class:"acct-initial"},v9={key:0,class:"acct-menu",role:"menu"},y9={class:"acct-menu-head"},b9={key:2,class:"vb-signin",href:"/signin",target:"_self"},w9={key:0,class:"vb-context"},k9=["href","title"],C9={key:0,class:"vb-context-date"},S9=["aria-label"],E9={class:"ui-icon","aria-hidden":"true"},N9=["href"],R9=["textContent"],T9={class:"leftCol-head"},P9={class:"leftCol-search"},D9={class:"tree-search-box"},A9=["href"],I9={type:"text",class:"tree-search-input",placeholder:"Search files","aria-label":"Search files"},O9=["title","href"],M9={class:"leftCol-body"},V9={key:0,class:"paper-inline-warning",role:"alert"},q9={key:1,class:"paper-inline-warning",role:"alert"},L9={class:"explorer-main"},_9={class:"breadcrumb paths","aria-label":"Path"},$9={class:"breadcrumb-item breadcrumb-root"},F9=["href","title","textContent"],U9=["aria-current","textContent"],B9=["aria-label","title"],z9={class:"ui-icon","aria-hidden":"true"},H9=["href"],j9={class:"status-bar-actions"},G9=["href"],W9={class:"d-none d-md-inline"},K9={class:"ui-icon","aria-hidden":"true"},Y9=["href"],J9={class:"d-none d-md-inline"},X9=["href"],Q9={class:"explorer-content"};function Ep(e,t){let s=Qe("tree"),i=Qe("partial-view"),o=Pe("field");return a(),l("div",{class:R(["explorer-page",{"files-hidden":e.sidebarHidden}]),style:Ae({"--sidebar-w":e.sidebarWidth+"px"})},[n("header",e9,[n("div",t9,[t[15]||(t[15]=n("a",{class:"vb-logo",href:"/"},[m("Anonymous "),n("em",null,"GitHub")],-1)),n("button",{type:"button",class:"vb-icon vb-sidebar","aria-label":e.sidebarHidden?"Show file tree":"Hide file tree",title:e.sidebarHidden?"Show file tree":"Hide file tree",onClick:t[0]||(t[0]=r=>e.sidebarHidden=!e.sidebarHidden)},[...t[13]||(t[13]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sidebar"})],-1)])],8,n9),e.repoId?(a(),l("a",{key:0,class:"vb-artifact",href:e.safeUrl("/r/"+e.repoId+"/"),title:"Anonymous artifact "+e.repoId},[t[14]||(t[14]=n("span",{class:"sr-only"},"Artifact ",-1)),n("span",s9,d(e.repoId),1)],8,o9)):f("v-if",!0)]),n("div",i9,[e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("span",{key:0,class:"vb-snapshot",title:(e.options?.expirationDate?"Available until "+e.fmt?.date(e.options.expirationDate)+". ":"")+(e.options?.anonymizedAt&&!e.options?.publishedAt?"Older repositories have no recorded publication date. The source commit date does not establish when files became available here.":(e.options?.sourceCommitDate?"Source commit ":e.options?.anonymizedAt?"Anonymized ":"Updated ")+e.fmt?.date(e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)+(e.options?.publishedAt?" \xB7 snapshot ready "+e.fmt?.date(e.options.publishedAt):""))},[t[16]||(t[16]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),t[17]||(t[17]=n("span",null,"Snapshot",-1)),n("span",null,d(e.fmt?.date(e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)),1)],8,r9)):f("v-if",!0),t[25]||(t[25]=n("a",{class:"vb-support",href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener",title:"Support Anonymous GitHub \u2014 help keep it free for researchers"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-heart"})]),n("span",null,"Support")],-1)),n("div",a9,[n("button",{type:"button",class:"vb-help-btn","aria-haspopup":"true","aria-expanded":e.helpOpen?"true":"false",onClick:t[1]||(t[1]=de(r=>e.helpOpen=!e.helpOpen,["stop"]))},[...t[18]||(t[18]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})],-1),n("span",null,"Help",-1)])],8,l9),e.helpOpen?(a(),l("div",d9,[...t[19]||(t[19]=[n("a",{role:"menuitem",href:"/faq"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})]),n("span",null,[m("FAQ"),n("small",null,"How anonymization works")])],-1),n("a",{role:"menuitem",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",target:"_blank",rel:"noopener"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-bug"})]),n("span",null,[m("Report a bug"),n("small",null,"About this service, not the paper")])],-1)])])):f("v-if",!0)]),n("button",{type:"button",class:"vb-icon","aria-label":e.isDarkMode?"Switch to light mode":"Switch to dark mode",title:e.isDarkMode?"Light mode":"Dark mode",onClick:t[2]||(t[2]=r=>e.darkMode(!e.isDarkMode))},[(a(),l("svg",c9,[n("use",{href:e.isDarkMode?"#ui-icon-sun":"#ui-icon-moon"},null,8,p9)]))],8,u9),e.user?(a(),l("div",f9,[n("button",{type:"button",class:"acct-chip","aria-haspopup":"true","aria-label":"Account: "+e.user?.username,"aria-expanded":e.accountOpen?"true":"false",onClick:t[3]||(t[3]=de(r=>e.accountOpen=!e.accountOpen,["stop"]))},[e.user?.photo?(a(),l("img",{key:0,src:e.safeUrl(e.user.photo),alt:"",width:"26",height:"26"},null,8,h9)):(a(),l("span",g9,d((e.user?.username||"?").charAt(0).toUpperCase()),1))],8,m9),e.accountOpen?(a(),l("div",v9,[n("div",y9,[t[20]||(t[20]=m("Signed in as ",-1)),n("b",null,"@"+d(e.user?.username),1)]),t[21]||(t[21]=n("a",{role:"menuitem",href:"/dashboard"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-grid"})]),m("My work")],-1)),t[22]||(t[22]=n("a",{role:"menuitem",href:"/profile"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})]),m("Settings")],-1)),t[23]||(t[23]=n("a",{role:"menuitem",href:"/api/user/logout",target:"_self"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-logout"})]),m("Sign out")],-1))])):f("v-if",!0)])):(a(),l("a",b9,[...t[24]||(t[24]=[n("i",{class:"fab fa-github","aria-hidden":"true"},null,-1),m("Sign in",-1)])]))])]),e.repoId?(a(),l("div",w9,[n("a",{class:"vb-context-id",href:e.safeUrl("/r/"+e.repoId+"/"),title:"Anonymous artifact "+e.repoId},d(e.repoId),9,k9),e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("span",C9,"Snapshot "+d(e.fmt?.date(e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)),1)):f("v-if",!0)])):f("v-if",!0),P(n("button",{class:"sidebar-toggle",onClick:t[4]||(t[4]=r=>e.sidebarCollapsed=!e.sidebarCollapsed),"aria-label":e.sidebarCollapsed?"Show files":"Hide files"},[(a(),l("svg",E9,[n("use",{href:e.sidebarCollapsed?"#ui-icon-folder":"#project-icon-close"},null,8,N9)])),n("span",{textContent:d(e.sidebarCollapsed?"Files":"Close")},null,8,R9)],8,S9),[[Q,e.files?.length]]),P(n("div",{class:R(["leftCol",{collapsed:e.sidebarCollapsed}])},[n("div",T9,[t[27]||(t[27]=n("span",{class:"leftCol-eyebrow"},"Files",-1)),n("button",{class:"leftCol-close","aria-label":"Close files",onClick:t[5]||(t[5]=r=>e.sidebarCollapsed=!0)},[...t[26]||(t[26]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])])]),n("div",P9,[n("div",D9,[(a(),l("svg",{class:R(["ui-icon tree-search-icon",{"fa-spin":e.fileSearchLoading}]),"aria-hidden":"true"},[n("use",{href:e.fileSearchLoading?"#ui-icon-spinner":"#ui-icon-search"},null,8,A9)],2)),P(n("input",I9,null,512),[[o,{state:e.viewState,set:r=>{e.fileSearchQuery=r},value:e.fileSearchQuery,form:null,options:{debounce:300},change:()=>{e.onFileSearchChange()}}]]),P(n("kbd",{class:"tree-search-kbd"},d(e.isMac?"\u2318":"Ctrl+")+"K",513),[[Q,!e.fileSearchQuery]]),P(n("button",{class:"tree-search-clear","aria-label":"Clear search",onClick:t[6]||(t[6]=r=>{e.fileSearchQuery="",e.onFileSearchChange()})},"\xD7",512),[[Q,e.fileSearchQuery]])]),e.options?.download?(a(),l("a",{key:0,target:"_self",class:"search-zip","aria-label":"Download repository as ZIP",title:"Download the repository (snapshot "+e.fmt?.date(e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)+") as ZIP",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[28]||(t[28]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),n("span",{class:"search-zip-label","aria-hidden":"true"},"ZIP",-1)])],8,O9)):f("v-if",!0)]),n("div",M9,[e.options?.truncatedFolders?.length>0?(a(),l("div",V9,[t[29]||(t[29]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),m(" "+d(e.fmt?.translate("WARNINGS.repo_truncated")),1)])):f("v-if",!0),e.options?.hasSubmodules?(a(),l("div",q9,[t[30]||(t[30]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),m(" "+d(e.fmt?.translate("WARNINGS.submodules_not_included")),1)])):f("v-if",!0),Me(s,{class:"files",file:e.files,"search-query":e.fileSearchQuery,"search-results":e.fileSearchResults,page:e.viewState},null,8,["file","search-query","search-results","page"])])],2),[[Q,e.files?.length]]),P(n("div",{class:"leftCol-resizer",role:"separator","aria-orientation":"vertical","aria-label":"Resize file tree",title:"Drag to resize",onPointerdown:t[7]||(t[7]=r=>e.startSidebarResize(r))},null,544),[[Q,e.files?.length&&!e.sidebarHidden]]),P(n("div",{class:"leftCol-backdrop",onClick:t[8]||(t[8]=r=>e.sidebarCollapsed=!0)},null,512),[[Q,e.files?.length&&!e.sidebarCollapsed]]),n("div",L9,[P(n("div",{class:R(["status-bar",{"is-redundant":["code","text","html"].includes(e.type)&&e.content!=null||e.fileFrame()}])},[P(n("button",{type:"button",class:"btn btn-sm status-files-btn","aria-label":"Show files",title:"Show files",onClick:t[9]||(t[9]=r=>e.sidebarHidden?e.sidebarHidden=!1:e.sidebarCollapsed=!1)},[...t[31]||(t[31]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-folder"})],-1),n("span",null,"Files",-1)])],512),[[Q,e.files?.length]]),n("ol",_9,[n("li",$9,[n("a",{href:e.safeUrl("/r/"+e.repoId+"/"),title:e.repoId,textContent:d(/^[0-9a-f]{8}-[0-9a-f]{4}-/i.test(e.repoId||"")?"repository":e.repoId)},null,8,F9)]),(a(!0),l(V,null,X(e.paths,(r,u)=>(a(),l("li",{class:"breadcrumb-item","aria-current":u===e.paths.length-1?"page":null,textContent:d(r)},null,8,U9))),256))]),P(n("button",{type:"button",class:"btn btn-sm btn-icon-only btn-ghost copy-path-btn","aria-label":e.pathCopied?"Path copied":"Copy path",title:e.pathCopied?"Path copied":"Copy path",onClick:t[10]||(t[10]=r=>e.copyPath())},[(a(),l("svg",z9,[n("use",{href:e.pathCopied?"#ui-icon-check":"#project-icon-copy"},null,8,H9)]))],8,B9),[[Q,e.filePath]]),n("div",j9,[e.options?.isAdmin||e.options?.isOwner?(a(),l("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[32]||(t[32]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),n("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,G9)):f("v-if",!0),e.type=="html-doc"&&!e.showSource?(a(),l("button",{key:1,class:R(["btn btn-sm",{"btn-active":e.allowScripts}]),"aria-label":"Allow this document to run JavaScript",title:"Scripts in this file are blocked by default. Enable them only if you trust the repository \u2014 the document stays isolated from your session either way.",onClick:t[11]||(t[11]=r=>e.toggleAllowScripts())},[t[33]||(t[33]=n("i",{class:"fab fa-js"},null,-1)),n("span",W9,d(e.allowScripts?"JS on":"JS off"),1)],2)):f("v-if",!0),e.type=="html-doc"?(a(),l("button",{key:2,class:"btn btn-sm","aria-label":"Toggle between the rendered document and its source",title:"Toggle between the rendered document and its source",onClick:t[12]||(t[12]=r=>e.toggleSource())},[(a(),l("svg",K9,[n("use",{href:e.showSource?"#project-icon-eye":"#ui-icon-code"},null,8,Y9)])),n("span",J9,d(e.showSource?"Rendered":"Source"),1)])):f("v-if",!0),e.options?.hasWebsite?(a(),l("a",{key:3,target:"_self",class:"btn btn-sm","aria-label":"Website",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[34]||(t[34]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),n("span",{class:"d-none d-md-inline"}," Website",-1)])],8,X9)):f("v-if",!0)])],2),[[Q,e.type!="error"||e.files?.length]]),n("div",Q9,[Me(i,{name:"partials/pageView.htm",state:e.viewState},null,8,["state"])])])],6)}var Z9={class:"paper-faq"},x9={class:"paper-faq-body"},eB={class:"paper-faq-toc"},tB={class:"faq-search",role:"search"},nB={class:"faq-search-field"},oB={id:"faq-search-status",class:"faq-search-status","aria-live":"polite"},sB={key:0,class:"faq-search-empty"},iB={class:"faq-search-empty-actions"};function Np(e,t){let s=Qe("partial-view"),i=Pe("paper-scrollspy");return a(),l(V,null,[n("div",Z9,[t[12]||(t[12]=n("div",{class:"paper-faq-hero"},[n("div",{class:"paper-faq-eyebrow"},"Help"),n("h1",{class:"paper-faq-title"},[m("Mirrors, redaction, and "),n("em",null,"what reviewers see.")]),n("p",{class:"paper-faq-lede"}," How to set up an anonymous mirror, what it hides, and how long it stays online. ")],-1)),n("div",x9,[P((a(),l("aside",eB,[...t[5]||(t[5]=[Ce('
Contents
',2)])])),[[i]]),n("section",{class:R(["faq-section",{"faq-searching":!!e.faqQuery.trim()}]),"aria-label":"FAQs"},[n("div",tB,[t[7]||(t[7]=n("label",{for:"faq-search-input"},"Search questions",-1)),n("div",nB,[t[6]||(t[6]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)),P(n("input",{id:"faq-search-input",type:"search",class:"form-control","onUpdate:modelValue":t[0]||(t[0]=o=>e.faqQuery=o),onInput:t[1]||(t[1]=o=>e.filterFaq()),onSearch:t[2]||(t[2]=o=>e.filterFaq()),onKeydown:t[3]||(t[3]=_t(o=>e.clearFaqSearch(),["esc"])),placeholder:"e.g. expiry, pull request, PDF",autocomplete:"off",spellcheck:"false","aria-describedby":"faq-search-status"},null,544),[[nt,e.faqQuery]])]),n("p",oB,[e.faqQuery.trim()&&e.faqResults?(a(),l(V,{key:0},[m(d(e.faqResults===1?"1 result":e.faqResults+" results"),1)],64)):f("v-if",!0)])]),e.faqQuery.trim()&&e.faqResults===0?(a(),l("div",sB,[n("strong",null,"No questions match \u201C"+d(e.faqQuery.trim())+"\u201D.",1),t[9]||(t[9]=n("p",null,"Try a shorter word, or ask us directly.",-1)),n("div",iB,[n("button",{type:"button",class:"btn btn-outline-ink btn-sm",onClick:t[4]||(t[4]=o=>e.clearFaqSearch())},"Clear search"),t[8]||(t[8]=n("a",{class:"btn btn-link btn-sm",target:"_blank",rel:"noopener",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml"},"Open an issue",-1))])])):f("v-if",!0),t[10]||(t[10]=n("div",{class:"faq-list"},[f(" General "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})]),m("General ")]),n("div",{class:"panel-group",id:"faq-general",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingWhatIs"},[n("h3",{class:"panel-title"},[n("a",{role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#whatIs","aria-expanded":"true","aria-controls":"whatIs"}," What is Anonymous GitHub? ")])]),n("div",{id:"whatIs",class:"panel-collapse collapse show",role:"tabpanel","aria-labelledby":"headingWhatIs"},[n("div",{class:"panel-body p-3"},[n("p",null," Anonymous GitHub is an open-source tool with free hosting and optional paid plans that anonymizes GitHub repositories and pull requests for double-anonymous (double-blind) peer review. It replaces identifying information, such as the repository owner, organization name, and custom terms, so that reviewers cannot determine the identity of the authors through the code repository. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingHowWork"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#howWork","aria-expanded":"false","aria-controls":"howWork"}," How does Anonymous GitHub work? ")])]),n("div",{id:"howWork",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingHowWork"},[n("div",{class:"panel-body p-3"},[n("p",null," Anonymous GitHub either downloads the complete repository and anonymizes the content, or proxies requests to GitHub on the fly. In both cases, the original and anonymized versions of files are cached on the server. The system automatically detects and replaces the repository owner, organization name, and repository name. You can also specify additional custom terms to anonymize using one-per-line regex patterns. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingScope"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#scope","aria-expanded":"false","aria-controls":"scope"}," What is the scope of anonymization? ")])]),n("div",{id:"scope",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingScope"},[n("div",{class:"panel-body p-3"},[n("p",null," In double-anonymous peer review, the boundary of anonymization is the paper plus its online appendix, not the entire internet. Searching for any part of the paper or the online appendix can be considered a deliberate attempt to break anonymity. Anonymous GitHub anonymizes the repository owner, organization, repository name, file and directory names, and file contents across all text-based file types. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingCost"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#cost","aria-expanded":"false","aria-controls":"cost"}," How much does it cost? ")])]),n("div",{id:"cost",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCost"},[n("div",{class:"panel-body p-3"},[n("p",null," A free account includes 5 owned repositories and 5 GiB of source files. Optional paid plans offer more capacity, automatic refresh, and, with an author subscription, never-expiring repositories. Reviewers can read shared repositories without an account or payment. "),n("p",null,[m(" See "),n("a",{href:"/profile#settings-billing"},"Plans and billing"),m(" for available plans and current prices. Offers depend on whether payments are enabled on this instance; the checkout shows the amount before you pay. Subscriptions help fund hosting, storage, backups, and continued maintenance. ")]),n("p",null,[m(" You can also support development through "),n("a",{href:"https://github.com/sponsors/tdurieux/",target:"_blank",rel:"noopener"},"GitHub Sponsors"),m(" or "),n("a",{href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener"},"Ko-fi"),m(". Donations are separate from subscriptions and do not automatically unlock paid features. ")])])])])]),f(" Plans and billing "),n("h4",{class:"faq-cat",id:"faq-plans-title"},"Plans and billing"),n("div",{class:"panel-group",id:"faq-plans",role:"tablist","aria-label":"Plans and billing","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingWhyPaid"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#whyPaid","aria-expanded":"false","aria-controls":"whyPaid"},"Why is Anonymous GitHub no longer completely free?")])]),n("div",{id:"whyPaid",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingWhyPaid"},[n("div",{class:"panel-body p-3"},[n("p",null,"Anonymous GitHub started as a small free service and was paid for out of pocket. Three things have changed since then:"),n("ul",null,[n("li",null,[n("strong",null,"Servers cost much more."),m(" Every hosted repository needs storage, bandwidth and backups, and these costs have risen sharply.")]),n("li",null,[n("strong",null,"Many more people use it."),m(" More users means more repositories to store and keep up to date, more support requests and more maintenance.")]),n("li",null,[n("strong",null,"AI has made security work heavier."),m(" AI-driven scrapers and automated abuse send far more traffic than before. Blocking them and keeping hosted content safe takes constant work.")])]),n("p",null,"The core service stays free: anonymizing a repository, sharing the link and reviewer access cost nothing, and reviewers never need an account. Most authors never need to pay. The paid options are small one-time payments for one repository, plus an optional subscription for heavy users. They are priced to cover running costs, not to make a profit."),n("p",null,[m("The source code remains open, so you can still "),n("a",{href:"#faq-hosting"},"host your own instance"),m(" for free.")])])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingFreePlan"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#freePlan","aria-expanded":"false","aria-controls":"freePlan"},"What is included in a free account?")])]),n("div",{id:"freePlan",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingFreePlan"},[n("div",{class:"panel-body p-3"},[n("p",null,"The default free allowance is 5 repositories you own and 5 GiB of source files in total. Core anonymization and reviewer access remain free. You can manually refresh a repository within your allowance and choose a dated expiration up to 5 months ahead, then extend it again before it expires. Repositories submitted to a conference can stay online until the end of its review window."),n("p",null,"Repositories shared with you as a co-author do not use your own slots. Gists and pull requests are not included in these repository quotas. The usage shown in your account is the allowance available on this instance.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingAuthorPlans"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#authorPlans","aria-expanded":"false","aria-controls":"authorPlans"},"What do monthly and annual author subscriptions include?")])]),n("div",{id:"authorPlans",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingAuthorPlans"},[n("div",{class:"panel-body p-3"},[n("p",null,[m("Both include 20 owned repositories and 40 GiB of source files in total. They also allow automatic refresh when enabled in repository settings and let the owner choose "),n("strong",null,"Never expire"),m(".")]),n("p",null,[m("Monthly and annual plans offer the same features with different billing periods. They renew automatically until you cancel renewal. Current prices are shown in "),n("a",{href:"/profile#settings-billing"},"Plans and billing"),m(".")]),n("p",null,"Paid plans do not change how anonymization works. File-size limits and other service safeguards still apply. Review your anonymized content before sharing it.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingReviewPass"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#reviewPass","aria-expanded":"false","aria-controls":"reviewPass"},"Can I pay for one repository without subscribing?")])]),n("div",{id:"reviewPass",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingReviewPass"},[n("div",{class:"panel-body p-3"},[n("p",null,"Yes. These one-time add-ons apply to a single repository you own. None of them renews automatically:"),n("ul",null,[n("li",null,[n("strong",null,"Paper pack"),m(": an extra repository, automatic updates for 180 days and one more year before it expires, in a single payment. It covers what one paper usually needs during review.")]),n("li",null,[n("strong",null,"Extra repository"),m(": host one more repository once your free repositories are used up. It has its own 2 GiB allowance and does not count toward your free repositories. It lasts as long as the repository exists.")]),n("li",null,[n("strong",null,"Live updates"),m(": automatic refresh for 180 days, with a separate 2 GiB allowance.")]),n("li",null,[n("strong",null,"Extended expiration"),m(": choose an expiration date up to one year after purchase. Buying it again adds another year.")]),n("li",null,[n("strong",null,"Never expire"),m(": the repository has no expiration date. A full refund or a payment dispute ends it after a 90-day grace period.")])]),n("p",null,[m("When your free allowance is full, the Extra repository and Paper pack options are offered as you create the repository. You can also buy an add-on from the repository's edit page, or enter the anonymized ID of an existing repository in "),n("a",{href:"/profile#settings-billing"},"Plans and billing"),m(". Current prices are shown there.")])])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingConferencePlans"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#conferencePlans","aria-expanded":"false","aria-controls":"conferencePlans"},"Can a conference or lab pay for a group?")])]),n("div",{id:"conferencePlans",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingConferencePlans"},[n("div",{class:"panel-body p-3"},[n("p",null,"A conference review package provides a shared allowance for a review window of up to 180 days, with automatic updates for every submission. It comes in three sizes: Workshop (25 repositories, 10 GiB), Conference (100 repositories, 50 GiB) and Large conference (400 repositories, 200 GiB). Choose the size when you create the conference; it cannot change afterwards. The organizer pays once and authors pay nothing (the price is shown when you create the conference); the package does not renew automatically. A lab organizing a review can use this shared package too."),n("p",null,"New conferences no longer have a free plan: every new conference is a review package. Conferences created earlier keep working as before. The conference must be activated by payment before authors can submit under its Conference ID. Eligible repositories use the conference allowance before an author's personal allowance, so authors do not each need a subscription for that capacity."),n("p",null,"The package has a fixed review window. Never expire still requires the repository owner's author subscription or a Never expire add-on for that repository.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingPaidCoauthors"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#paidCoauthors","aria-expanded":"false","aria-controls":"paidCoauthors"},"Does every co-author need to pay?")])]),n("div",{id:"paidCoauthors",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPaidCoauthors"},[n("div",{class:"panel-body p-3"},[n("p",null,"No. Co-authors can collaborate without buying a subscription. A shared repository uses its owner's allowance, unless a repository pass or paid conference covers it. It does not consume each co-author's personal allowance."),n("p",null,"A co-author's subscription does not increase the owner's allowance. If the owner's available capacity is exhausted, a co-author's refresh or edit may also be blocked. Reviewers never need a paid account.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingCapacity"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#capacity","aria-expanded":"false","aria-controls":"capacity"},"What counts toward my allowance, and what happens at the limit?")])]),n("div",{id:"capacity",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCapacity"},[n("div",{class:"panel-body p-3"},[n("p",null,"The repository limit counts work you own. Storage counts the source-file sizes reserved for those repositories, not just files a reviewer opens. Archived or failed repositories can still reserve capacity, and a refresh does not automatically reduce a previous storage reservation."),n("p",null,"At the repository limit you cannot add another repository to that allowance. An edit or refresh must also fit the available storage. Remove work you no longer need, add an Extra repository for the new one, choose a subscription, or use an eligible conference allowance."),n("p",null,"Removing a repository releases its reservation when capacity is next checked. Expired repositories may continue to reserve capacity until cleanup. Reaching a limit does not itself delete existing review links.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingNeverExpire"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#neverExpire","aria-expanded":"false","aria-controls":"neverExpire"},"What happens to Never expire repositories if I stop subscribing?")])]),n("div",{id:"neverExpire",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingNeverExpire"},[n("div",{class:"panel-body p-3"},[n("p",null,[m("Never expire is available to monthly and annual author subscribers, or for one repository with the one-time Never expire add-on. If a subscription ends, these repositories remain available for a "),n("strong",null,"90-day grace period"),m(", then expire and their hosted content is removed.")]),n("p",null,"Renewing during the grace period keeps them active. After expiration, you must renew and explicitly reactivate the repository; restoring content also requires access to its GitHub source. A repository does not become public on GitHub when it expires."),n("p",null,"Existing never-expiring repositories created before this billing policy retain their settings. Never expire is not a guarantee of perpetual service availability.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingCancelPlan"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#cancelPlan","aria-expanded":"false","aria-controls":"cancelPlan"},"How do I cancel, and what happens after paid access ends?")])]),n("div",{id:"cancelPlan",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCancelPlan"},[n("div",{class:"panel-body p-3"},[n("p",null,[m("Open "),n("a",{href:"/profile#settings-billing"},"Plans and billing"),m(" and choose "),n("strong",null,"Manage billing and invoices"),m(" to manage renewal. Cancelling renewal keeps subscription benefits until the end of the paid period.")]),n("p",null,"After paid access ends, repositories fall back to another eligible allowance or the free allowance. Automatic refresh pauses on the free allowance; manual refresh remains available within its limits. Existing review links keep their configured expiration dates, except paid Never expire repositories, which follow the 90-day grace period described above."),n("p",null,"A repository pass or conference package ends after its paid window without automatic renewal.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingRefunds"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#refunds","aria-expanded":"false","aria-controls":"refunds"},"Can I get a refund?")])]),n("div",{id:"refunds",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingRefunds"},[n("div",{class:"panel-body p-3"},[n("p",null,[m("Refunds are handled case by case. "),n("a",{href:"mailto:tdurieux@anonymous.4open.science"},"Email the maintainer"),m(" with the date of the payment and the repository it was for.")]),n("p",null,"A full refund ends what that payment bought. For a Paper pack, this means all three parts: the extra repository, automatic updates and the extended expiration. A Never expire repository then expires after a 90-day grace period. A partial refund keeps your access."),n("p",null,"To stop a subscription, cancel its renewal instead of asking for a refund. You keep access until the end of the period you paid for.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingPaymentHandling"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#paymentHandling","aria-expanded":"false","aria-controls":"paymentHandling"},"How are payments handled?")])]),n("div",{id:"paymentHandling",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPaymentHandling"},[n("div",{class:"panel-body p-3"},[n("p",null,[m("Stripe processes checkout and billing management. Anonymous GitHub does not store your card details. You can access billing management and invoices from "),n("a",{href:"/profile#settings-billing"},"Plans and billing"),m(".")]),n("p",null,[m("Paid access is activated after payment is confirmed. If checkout succeeds but your account has not updated, choose "),n("strong",null,"Refresh payment status"),m(" before trying another purchase. If paid plans are unavailable on this instance, no checkout is offered.")])])])])]),f(" Features "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#project-icon-filter"})]),m("Features ")]),n("div",{class:"panel-group",id:"faq-features",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingFormats"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#formats","aria-expanded":"false","aria-controls":"formats"}," Which file formats are supported? ")])]),n("div",{id:"formats",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingFormats"},[n("div",{class:"panel-body p-3"},[n("p",null," Anonymous GitHub can display and render a wide variety of file types: "),n("ul",null,[n("li",null,[n("strong",null,"Text and source code"),m(": displayed with syntax highlighting")]),n("li",null,[n("strong",null,"Markdown"),m(": rendered as formatted HTML")]),n("li",null,[n("strong",null,"Images"),m(" (PNG, JPG, SVG, etc.): displayed inline")]),n("li",null,[n("strong",null,"PDFs"),m(": rendered directly in the browser")]),n("li",null,[n("strong",null,"Jupyter Notebooks"),m(": rendered with code cells and outputs")])]),n("p",null," Only text-based files are anonymized. Anonymous GitHub analyzes the content of each file to determine whether it is textual or binary. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingPR"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#pullRequests","aria-expanded":"false","aria-controls":"pullRequests"}," Can I anonymize pull requests? ")])]),n("div",{id:"pullRequests",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPR"},[n("div",{class:"panel-body p-3"},[n("p",null," Yes. In addition to full repositories, Anonymous GitHub supports anonymizing individual pull requests. Simply paste the URL of a GitHub pull request when creating a new anonymized repository, and the system will automatically detect that it is a pull request and anonymize it accordingly. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingConference"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#conference","aria-expanded":"false","aria-controls":"conference"}," What is the Conference ID feature? ")])]),n("div",{id:"conference",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingConference"},[n("div",{class:"panel-body p-3"},[n("p",null," When creating an anonymized repository, you can associate it with a Conference ID. This allows conferences to define default anonymization settings (such as expiration dates) that are automatically applied to repositories submitted under that conference. If your conference provides a Conference ID, enter it during the anonymization setup. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingExpiration"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#expiration","aria-expanded":"false","aria-controls":"expiration"}," What happens when an anonymized repository expires? ")])]),n("div",{id:"expiration",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingExpiration"},[n("div",{class:"panel-body p-3"},[n("p",null," You can configure one of three expiration strategies when creating your anonymized repository: "),n("ul",null,[n("li",null,[n("strong",null,"Never expire"),m(": with a monthly or annual author subscription, no scheduled expiration while subscribed. A 90-day grace period applies after paid access ends. See "),n("a",{href:"#neverExpire"},"the subscription expiration policy"),m(".")]),n("li",null,[n("strong",null,"Redirect to GitHub"),m(": after expiration, visitors are redirected to the original GitHub repository.")]),n("li",null,[n("strong",null,"Remove content"),m(": after expiration, the anonymized content is deleted from the server.")])])])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingDownload"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#download","aria-expanded":"false","aria-controls":"download"}," Can I download an anonymized repository? ")])]),n("div",{id:"download",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingDownload"},[n("div",{class:"panel-body p-3"},[n("p",null," Yes. Anonymized repositories can be downloaded as a ZIP file. This is useful if reviewers want to build or test the code locally. The downloaded archive contains the fully anonymized version of the repository. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingUpdates"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#updates","aria-expanded":"false","aria-controls":"updates"}," Are updates to the original repository reflected in the anonymized version? ")])]),n("div",{id:"updates",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingUpdates"},[n("div",{class:"panel-body p-3"},[n("p",null," You can refresh the anonymized repository from GitHub without creating a new share link. Free accounts can request a manual refresh within their allowance. Automatic refresh requires an eligible paid allowance and must be enabled in repository settings. It pauses when the repository falls back to the free allowance. "),n("p",null," After changing files or contributor names, review your anonymization terms before sharing the updated content. If GitHub access is revoked or the source is deleted, the service cannot fetch updates. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingCLI"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#cli","aria-expanded":"false","aria-controls":"cli"}," Is there a command-line tool? ")])]),n("div",{id:"cli",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCLI"},[n("div",{class:"panel-body p-3"},[n("p",null," Yes. Anonymous GitHub provides a CLI tool that lets you anonymize repositories locally, generating an anonymized ZIP file on your machine. Install it via npm: "),n("pre",{style:{"background-color":"var(--hover-bg-color)",padding:"12px","border-radius":"4px","margin-top":"8px",color:"var(--color)"}},[n("code",null,`npm install -g @tdurieux/anonymous_github +anonymous_github`)])])])])]),f(" Limitations "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})]),m("Limitations ")]),n("div",{class:"panel-group",id:"faq-limitations",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingLimitation"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-limitations",href:"#limitation","aria-expanded":"false","aria-controls":"limitation"}," What are the limitations of Anonymous GitHub? ")])]),n("div",{id:"limitation",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingLimitation"},[n("div",{class:"panel-body p-3"},[n("ul",null,[n("li",null," Anonymous GitHub only anonymizes text-based files. Binary files (compiled executables, archives, etc.) are served as-is without anonymization. "),n("li",null," Files larger than 8 MB are not supported. "),n("li",null," Static site generators (such as Jekyll) used with GitHub Pages are not fully supported, although Markdown files are converted to HTML. "),n("li",null," The anonymization of terms within source code may change the behavior of the program (e.g., if a replaced term appears in a string literal or identifier). ")])])])])]),f(" Privacy and security "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})]),m("Privacy and security ")]),n("div",{class:"panel-group",id:"faq-privacy",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingData"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#data","aria-expanded":"false","aria-controls":"data"}," How is my data handled? ")])]),n("div",{id:"data",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingData"},[n("div",{class:"panel-body p-3"},[n("p",null," Repository data is used to provide the anonymization service. If you purchase a plan, Stripe processes payment and billing information. When a repository is removed or expires, only its configuration is retained. This makes it easy to restore the repository if needed and ensures that no future repository reuses the same ID. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingPermissions"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#permissions","aria-expanded":"false","aria-controls":"permissions"}," Why does GitHub say Anonymous GitHub asks for write access? ")])]),n("div",{id:"permissions",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPermissions"},[n("div",{class:"panel-body p-3"},[n("p",null,[m("The GitHub App has read-only access to the repositories you choose. You can change repository access on your "),n("a",{href:"/connections"},"GitHub connections"),m(" page.")]),n("p",null,"Legacy GitHub OAuth includes write access to private repositories because GitHub's OAuth scopes do not offer a read-only option for them. Existing OAuth anonymizations and gists can still use this connection."),n("p",null,"Anonymous GitHub reads repository content. It never pushes, modifies, or deletes files on GitHub.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingViewer"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#viewer","aria-expanded":"false","aria-controls":"viewer"}," Can repository owners see who viewed their anonymized repository? ")])]),n("div",{id:"viewer",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingViewer"},[n("div",{class:"panel-body p-3"},[n("p",null," No. Only the total number of views is tracked as an incremental counter. It is not possible for the repository owner or for Anonymous GitHub to identify individual viewers. Reviewer anonymity is fully preserved. ")])])])]),f(" Self-hosting "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#project-icon-storage"})]),m("Self"),n("span",{class:"serif-hy"},"-"),m("hosting ")]),n("div",{class:"panel-group",id:"faq-hosting",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingDeploy"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-hosting",href:"#deploy","aria-expanded":"false","aria-controls":"deploy"}," Can I deploy my own instance? ")])]),n("div",{id:"deploy",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingDeploy"},[n("div",{class:"panel-body p-3"},[n("p",null,[m(" Yes. Anonymous GitHub is fully open source (GPL-3.0) and supports Docker-based deployment. Billing is optional and disabled by default for self-hosted instances; paid hosted plans are not required to run your own server. You will need to configure a GitHub OAuth app and provide a GitHub token. Detailed setup instructions are available on the "),n("a",{href:"https://github.com/tdurieux/anonymous_github/",target:"_blank"},"GitHub repository"),m(". ")]),n("p",null," The basic steps are: "),n("ol",null,[n("li",null,"Clone the repository and install dependencies"),n("li",null,[m("Create a "),n("code",null,".env"),m(" file with your GitHub token, OAuth client ID, and client secret")]),n("li",null,[m("Run "),n("code",null,"docker-compose up -d")])])])])])])],-1))],2),t[11]||(t[11]=n("aside",{class:"paper-faq-help","aria-label":"More help"},[n("div",{class:"paper-faq-help-card"},[n("strong",null,"Still stuck?"),n("p",null,"Open an issue on GitHub about the service. For a paper's content, contact the conference instead."),n("a",{class:"btn btn-outline-ink btn-sm",target:"_blank",rel:"noopener",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml"},"Open an issue")])],-1))])]),Me(s,{name:"partials/footer.htm",state:e.viewState},null,8,["state"])],64)}var rB={class:"pr-page"},aB={class:"container paper-page pr-page-inner"},lB={class:"pr-header"},dB={class:"pr-title-row"},uB={class:"paper-page-title pr-title"},cB=["textContent"],pB={key:1,class:"text-muted"},fB=["href"],mB={class:"pr-header-meta"},hB={key:0,class:"pr-meta-item"},gB=["textContent"],vB={key:1,class:"pr-meta-item"},yB=["textContent"],bB={key:2,class:"pr-meta-item"},wB=["textContent"],kB={key:0,class:"paper-tabs",role:"tablist"},CB=["aria-selected","tabindex"],SB=["textContent"],EB=["aria-selected","tabindex"],NB=["textContent"],RB={class:"paper-tab-content"},TB={key:0,role:"tabpanel",id:"gist-files-panel","aria-labelledby":"gist-files-tab"},PB={class:"pr-comments"},DB={class:"pr-comment"},AB={class:"pr-comment-head"},IB=["textContent"],OB={key:0,class:"pr-comment-date"},MB={key:0,class:"paper-table-empty"},VB={key:1,role:"tabpanel",id:"gist-comments-panel","aria-labelledby":"gist-comments-tab"},qB={class:"pr-comments"},LB={class:"pr-comment"},_B={class:"pr-comment-head"},$B={key:0,class:"pr-comment-author"},FB=["textContent"],UB=["textContent"],BB={key:0,class:"pr-comment-body"},zB={key:0,class:"paper-table-empty"};function Rp(e,t){let s=Qe("gist-file"),i=Qe("markdown");return a(),l("div",rB,[n("div",aB,[t[17]||(t[17]=n("div",{class:"paper-crumbs"},[n("a",{href:"/dashboard"},"Reviewer"),m(" \xA0/\xA0 "),n("span",{class:"here"},"Gist")],-1)),n("header",lB,[n("div",dB,[n("h1",uB,[e.details?.description?(a(),l("span",{key:0,textContent:d(e.details?.description)},null,8,cB)):f("v-if",!0),e.details?.description?f("v-if",!0):(a(),l("span",pB,"Untitled gist"))]),e.options?.isAdmin||e.options?.isOwner?(a(),l("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/gist-anonymize/"+e.gistId)},[...t[4]||(t[4]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),n("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,fB)):f("v-if",!0)]),n("div",mB,[n("span",{class:R(["paper-pill",{good:e.details?.isPublic,warn:!e.details?.isPublic}])},d(e.details?.isPublic?"Public":"Secret"),3),e.details?.ownerLogin?(a(),l("span",hB,[t[5]||(t[5]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})],-1)),t[6]||(t[6]=m(" @",-1)),n("span",{textContent:d(e.details?.ownerLogin)},null,8,gB)])):f("v-if",!0),e.details?.updatedDate?(a(),l("span",vB,[t[7]||(t[7]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),t[8]||(t[8]=m()),n("span",{textContent:d(e.fmt?.date(e.details?.updatedDate))},null,8,yB)])):f("v-if",!0),e.details?.anonymizeDate?(a(),l("span",bB,[t[9]||(t[9]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1)),t[10]||(t[10]=m(" Anonymized ",-1)),n("span",{textContent:d(e.fmt?.date(e.details?.anonymizeDate))},null,8,wB)])):f("v-if",!0)])]),e.details?.files&&e.details?.files?.length||e.details?.comments&&e.details?.comments?.length?(a(),l("nav",kB,[e.details?.files?(a(),l("button",{key:0,class:R(["paper-tab",{active:e.tabState?.active=="files"}]),type:"button",role:"tab",id:"gist-files-tab","aria-selected":e.tabState?.active==="files","aria-controls":"gist-files-panel",tabindex:e.tabState?.active==="files"?0:-1,onKeydown:t[0]||(t[0]=o=>e.previewTabKeydown(o)),onClick:t[1]||(t[1]=o=>e.tabState.active="files")},[t[11]||(t[11]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-gist"})],-1)),n("span",{textContent:d(e.fmt.plural(e.details?.files?.length,{0:"No files",one:"1 file",other:"{} files"}))},null,8,SB)],42,CB)):f("v-if",!0),e.details?.comments?(a(),l("button",{key:1,class:R(["paper-tab",{active:e.tabState?.active=="comments"}]),type:"button",role:"tab",id:"gist-comments-tab","aria-selected":e.tabState?.active==="comments","aria-controls":"gist-comments-panel",tabindex:e.tabState?.active==="comments"?0:-1,onKeydown:t[2]||(t[2]=o=>e.previewTabKeydown(o)),onClick:t[3]||(t[3]=o=>e.tabState.active="comments")},[t[12]||(t[12]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1)),n("span",{textContent:d(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,NB)],42,EB)):f("v-if",!0)])):f("v-if",!0),n("div",RB,[e.details?.files&&e.tabState?.active=="files"?(a(),l("div",TB,[n("ul",PB,[(a(!0),l(V,null,X(e.details?.files,(o,r)=>(a(),l("li",DB,[n("div",AB,[n("strong",{textContent:d(o?.filename)},null,8,IB),o?.language?(a(),l("span",OB,d(o?.language),1)):f("v-if",!0)]),Me(s,{file:o},null,8,["file"])]))),256)),e.details?.files?.length?f("v-if",!0):(a(),l("li",MB,[...t[13]||(t[13]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-file"})],-1),n("span",null,"No files in this gist.",-1)])]))])])):f("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(a(),l("div",VB,[n("ul",qB,[(a(!0),l(V,null,X(e.details?.comments,(o,r)=>(a(),l("li",LB,[n("div",_B,[o?.author?(a(),l("span",$B,[t[14]||(t[14]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})],-1)),t[15]||(t[15]=m(" @",-1)),n("span",{textContent:d(o?.author)},null,8,FB)])):f("v-if",!0),o?.updatedDate?(a(),l("span",{key:1,class:"pr-comment-date",textContent:d(e.fmt?.date(o?.updatedDate))},null,8,UB)):f("v-if",!0)]),o?.body?(a(),l("div",BB,[Me(i,{content:o?.body},null,8,["content"])])):f("v-if",!0)]))),256)),e.details?.comments?.length?f("v-if",!0):(a(),l("li",zB,[...t[16]||(t[16]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1),n("span",null,"No comments on this gist.",-1)])]))])])):f("v-if",!0)])])])}var HB={key:0,class:"nav-support",href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener",title:"Donate on Ko-fi to help cover hosting costs","aria-label":"Donate on Ko-fi to help cover hosting costs"},jB={key:1,class:"nav-heart-m",href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener","aria-label":"Support Anonymous GitHub",title:"Support Anonymous GitHub"},GB=["aria-label","title"],WB={class:"ui-icon","aria-hidden":"true"},KB=["href"],YB={key:3,class:"nav-signin-m",href:"/signin",target:"_self","aria-label":"Sign in with GitHub"},JB={class:"collapse navbar-collapse",id:"navbarSupportedContent"},XB={class:"navbar-nav mr-auto smooth-scroll"},QB={key:0,class:"nav-item nav-home-item"},ZB={key:1,class:"nav-item"},xB={key:2,class:"nav-item"},ez={key:3,class:"nav-item"},tz={class:"nav-item"},nz={key:4,class:"nav-item"},oz={class:"navbar-nav"},sz={key:0,class:"nav-item d-lg-none"},iz={key:1,class:"nav-item"},rz={key:2,class:"nav-item"},az={key:3,class:"nav-item nav-signin-item"},lz={key:4,class:"nav-item"},dz={key:5,class:"nav-item dropdown user-chip-wrap"},uz={class:"nav-link user-chip dropdown-toggle",href:"#",id:"navbarDropdownMenuLink",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},cz=["src"],pz={class:"user-chip-name"},fz={class:"dropdown-menu dropdown-menu-right user-menu","aria-labelledby":"navbarDropdownMenuLink"},mz={class:"dropdown-header"},hz={key:0,class:"dropdown-item um-extra",href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener"},gz=["innerHTML"],vz=["disabled"],yz={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},bz={class:"email-prompt-actions"},wz=["disabled"],kz=["disabled"],Cz=["disabled"];function Tp(e,t){return a(),l(V,null,[n("nav",{class:R(["navbar navbar-expand-lg",{"navbar-dark":e.isDarkMode}])},[t[28]||(t[28]=n("a",{class:"navbar-brand",href:"/"},[m("Anonymous "),n("em",null,"GitHub")],-1)),e.headerShowSupport?(a(),l("a",HB,[...t[9]||(t[9]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-heart"})],-1),n("span",{class:"nav-support-label"},"Support",-1)])])):f("v-if",!0),/^\/(r|w|pr|gist)\//.test(e.path||"")?f("v-if",!0):(a(),l("a",jB,[...t[10]||(t[10]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-heart"})],-1)])])),/^\/(r|w|pr|gist)\//.test(e.path||"")?f("v-if",!0):(a(),l("button",{key:2,type:"button",class:"nav-theme-m","aria-label":e.isDarkMode?"Switch to light mode":"Switch to dark mode",title:e.isDarkMode?"Switch to light mode":"Switch to dark mode",onClick:t[0]||(t[0]=s=>e.darkMode(!e.isDarkMode))},[(a(),l("svg",WB,[n("use",{href:e.isDarkMode?"#ui-icon-sun":"#ui-icon-moon"},null,8,KB)]))],8,GB)),!e.user&&!/^\/(r|w|pr|gist)\//.test(e.path||"")?(a(),l("a",YB,[...t[11]||(t[11]=[n("i",{class:"fab fa-github","aria-hidden":"true"},null,-1),m("Sign in",-1)])])):f("v-if",!0),t[29]||(t[29]=n("button",{class:"navbar-toggler",type:"button","data-toggle":"collapse","data-target":"#navbarSupportedContent","aria-controls":"navbarSupportedContent","aria-expanded":"false","aria-label":"Toggle navigation"},[n("span",{class:"navbar-toggler-icon"})],-1)),n("div",JB,[n("ul",XB,[e.user?f("v-if",!0):(a(),l("li",QB,[n("a",{class:R(["nav-link",{active:e.path=="/"}]),href:"/"},[...t[12]||(t[12]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-home"})],-1),m(" Home ",-1)])],2)])),e.user?(a(),l("li",ZB,[n("a",{class:R(["nav-link",{active:e.path=="/dashboard"}]),href:"/dashboard"},[...t[13]||(t[13]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-grid"})],-1),m(" My work ",-1)])],2)])):f("v-if",!0),e.user?(a(),l("li",xB,[n("a",{class:R(["nav-link",{active:e.path=="/anonymize"||e.path=="/pull-request-anonymize"}]),href:"/anonymize"},[...t[14]||(t[14]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),m(" Anonymize ",-1)])],2)])):f("v-if",!0),e.user?(a(),l("li",ez,[n("a",{class:R(["nav-link",{active:e.path=="/conferences"||e.path?.startsWith("/conference/")}]),href:"/conferences"},[...t[15]||(t[15]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1),m(" Conferences ",-1)])],2)])):f("v-if",!0),n("li",tz,[n("a",{class:R(["nav-link",{active:e.path=="/faq"}]),href:"/faq"},[...t[16]||(t[16]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})],-1),m("FAQ",-1)])],2)]),e.user&&e.user?.isAdmin?(a(),l("li",nz,[n("a",{class:R(["nav-link",{active:e.path?.indexOf("/admin")===0}]),href:"/admin/"},[...t[17]||(t[17]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-user-shield"})],-1),m(" Admin ",-1)])],2)])):f("v-if",!0)]),n("ul",oz,[e.user||!e.isReviewerRoute?(a(),l("li",sz,[...t[18]||(t[18]=[n("a",{class:"nav-link nav-icon",target:"_blank",href:"https://github.com/tdurieux/anonymous_github/",title:"Anonymous GitHub source code","aria-label":"Anonymous GitHub source code on GitHub",rel:"noopener","data-offset":"30"},[n("i",{class:"fab fa-github","aria-hidden":"true"})],-1)])])):f("v-if",!0),f(` "Report a bug" is about this service. Reviewers who land on an anonymized repository often think it is about the paper, so the - label names the service and the tooltip says who to contact. `),n("li",{class:R(["nav-item nav-extra-item d-none d-lg-block",{"in-user-menu":!!e.user?.username}])},[...t[19]||(t[19]=[n("a",{class:"nav-link",target:"_blank",rel:"noopener",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",title:"Report a problem with the Anonymous GitHub service. Questions about an anonymized repository or paper go to its authors.","data-offset":"30"},[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-bug"})]),m("Report a bug ")],-1)])],2),n("li",{class:R(["nav-item nav-support-item nav-extra-item d-none d-lg-block",{"in-user-menu":!!e.user?.username}])},[...t[20]||(t[20]=[n("a",{class:"nav-link nav-support-inline",href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener",title:"Donate on Ko-fi to help cover hosting costs"},[n("svg",{class:"ui-icon nav-heart","aria-hidden":"true"},[n("use",{href:"#ui-icon-heart"})]),m("Support ")],-1)])],2),e.isDarkMode?f("v-if",!0):(a(),l("li",iz,[n("button",{type:"button",class:"nav-link nav-icon",title:"Switch to dark mode","aria-label":"Switch to dark mode",onClick:t[1]||(t[1]=s=>{e.darkMode(!0)})},[...t[21]||(t[21]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-moon"})],-1)])])])),e.isDarkMode?(a(),l("li",rz,[n("button",{type:"button",class:"nav-link nav-icon",title:"Switch to light mode","aria-label":"Switch to light mode",onClick:t[2]||(t[2]=s=>{e.darkMode(!1)})},[...t[22]||(t[22]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sun"})],-1)])])])):f("v-if",!0),!e.user&&!e.isReviewerRoute?(a(),l("li",az,[...t[23]||(t[23]=[n("a",{class:"nav-link btn-signin",target:"_self",href:"/signin","data-offset":"30"},[n("i",{class:"fab fa-github mr-1"}),m(" Sign in ")],-1)])])):f("v-if",!0),e.user?.username&&e.headerCanUpgrade&&!e.headerBillingPending?(a(),l("li",lz,[n("a",{class:"nav-link nav-upgrade",href:"/profile?upgrade=1",onClick:t[3]||(t[3]=de(s=>e.openHeaderUpgrade(),["prevent"]))},"Upgrade")])):f("v-if",!0),e.user?(a(),l("li",dz,[n("a",uz,[e.user?.photo?(a(),l("img",{key:0,width:"22",height:"22",class:"rounded-circle",src:e.safeUrl(e.user?.photo)},null,8,cz)):f("v-if",!0),n("span",pz,d(e.user?.username),1)]),n("div",fz,[n("h6",mz,"Signed in as @"+d(e.user?.username),1),t[25]||(t[25]=Ce('SettingsDefaults, quotas, accountGitHub connectionsRepository access and OAuthClaim an anonymizationAttach an existing mirror to your accountReport a bugAbout this service, not a paperSource code',6)),e.headerShowSupport?(a(),l("a",hz,[...t[24]||(t[24]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-heart"})],-1),n("span",null,"Support the project",-1)])])):f("v-if",!0),t[26]||(t[26]=n("div",{class:"dropdown-divider"},null,-1)),t[27]||(t[27]=n("a",{class:"dropdown-item",href:"/api/user/logout",target:"_self"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-logout"})]),n("span",null,"Sign out")],-1))])])):f("v-if",!0)])])],2),e.generalMessage?(a(),l("div",{key:0,class:"navbar shadow generalMessage",innerHTML:e.sanitize(e.generalMessage)},null,8,gz)):f("v-if",!0),e.emailPromptOpen?(a(),l("dialog",{key:1,id:"email-prompt",class:"email-prompt","aria-labelledby":"email-prompt-title","aria-describedby":"email-prompt-reason",onCancel:t[8]||(t[8]=de(s=>e.respondToEmailPrompt("later"),["prevent"]))},[n("form",{onSubmit:t[7]||(t[7]=de(s=>e.respondToEmailPrompt("save"),["prevent"]))},[t[30]||(t[30]=n("h2",{id:"email-prompt-title"},"Stay informed about access problems",-1)),t[31]||(t[31]=n("p",{id:"email-prompt-reason"},"Get email alerts when your GitHub token or repository access fails.",-1)),t[32]||(t[32]=n("label",{for:"email-prompt-address"},"Email address",-1)),P(n("input",{id:"email-prompt-address",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[4]||(t[4]=s=>e.emailPromptAddress=s),disabled:e.emailPromptBusy},null,8,vz),[[nt,e.emailPromptAddress]]),e.emailPromptError?(a(),l("p",yz,d(e.emailPromptError),1)):f("v-if",!0),n("div",bz,[n("button",{type:"button",class:"btn btn-outline-ink",disabled:e.emailPromptBusy,onClick:t[5]||(t[5]=s=>e.respondToEmailPrompt("later"))},"Remind me later",8,wz),n("button",{type:"button",class:"btn btn-outline-ink",disabled:e.emailPromptBusy,onClick:t[6]||(t[6]=s=>e.respondToEmailPrompt("never"))},"Never",8,kz),n("button",{type:"submit",class:"btn btn-ink",disabled:e.emailPromptBusy},d(e.emailPromptBusy?"Saving\u2026":"Save"),9,Cz)])],32)],32)):f("v-if",!0)],64)}var Sz={class:"paper-landing"},Ez={class:"paper-hero"},Nz={class:"paper-hero-copy"},Rz={class:"paper-cta-row"},Tz={key:0,href:"/signin",target:"_self",class:"btn-hero"},Pz={key:1,href:"/anonymize",class:"btn-hero"},Dz={class:"paper-stats-meta"},Az={key:0,class:"paper-stats-meta-left"},Iz={key:0,class:"paper-stats-grid"},Oz={class:"paper-stat-label"},Mz={key:0,class:"paper-stat-delta"},Vz={class:"demo paper-wrap","aria-label":"Try redaction"},qz={class:"demo-terms"},Lz={class:"demo-panes"},_z={class:"pane"},$z={class:"demo-input-wrap"},Fz={class:"pane-body demo-backdrop","aria-hidden":"true"},Uz={key:0,class:"demo-match"},Bz={class:"pane pane-after"},zz={class:"pane-header"},Hz={class:"pane-url"},jz={class:"meta-redact"},Gz={class:"pane-body demo-output","aria-live":"polite"},Wz=["title"],Kz={class:"paper-features paper-wrap","aria-label":"Product features"},Yz={class:"paper-features-list",role:"tablist","aria-label":"Features","aria-orientation":"vertical"},Jz=["onClick","onKeydown","id","aria-controls","aria-selected","tabindex"],Xz={class:"paper-eyebrow"},Qz={class:"pf-num"},Zz={class:"pf-name"},xz={class:"paper-feature-title"},eH={key:0,class:"serif-hy"},tH={class:"paper-feature-more"},nH={class:"paper-feature-title paper-feature-title-m","aria-hidden":"true"},oH={key:0,class:"serif-hy"},sH=["href","target"],iH={class:"paper-features-stage"},rH=["id","aria-labelledby"],aH={class:"paper-frame"},lH={class:"paper-frame-bar","aria-hidden":"true"},dH={class:"url"},uH=["aria-label"],cH={key:0,class:"fm-form"},pH={key:1,class:"fm-viewer"},fH={key:2,class:"fm-dash"};function Tp(e,t){let s=Qe("partial-view");return a(),l("div",Sz,[f(" Hero: copy on the left, the product on the right "),n("section",Ez,[n("div",Nz,[t[5]||(t[5]=n("div",{class:"paper-eyebrow"},"For double-anonymous peer review",-1)),t[6]||(t[6]=n("h1",{class:"hero-title"},[m(" Share the code,"),n("br"),n("span",{class:"accent"},"not the author.")],-1)),t[7]||(t[7]=n("p",{class:"hero-subtitle"}," Anonymous GitHub makes a read-only mirror of your repository, pull request, or gist. It redacts the terms you choose in text files, so reviewers can browse your artifact through an anonymous link. ",-1)),n("div",Rz,[e.user?f("v-if",!0):(a(),l("a",Tz,[...t[3]||(t[3]=[n("i",{class:"fab fa-github mr-2","aria-hidden":"true"},null,-1),m("Sign in with GitHub ",-1)])])),e.user?(a(),l("a",Pz," Anonymize a repository \u2192 ")):f("v-if",!0),t[4]||(t[4]=n("a",{class:"paper-link-arrow",target:"_self",href:"https://anonymous.4open.science/r/840c8c57-3c32-451e-bf12-0e20be300389/"},"See an anonymized repository \u2192",-1))]),t[8]||(t[8]=n("ul",{class:"paper-reassure"},[n("li",null,"Free, open source"),n("li",null,"Read-only access"),n("li",null,"Set an expiry date")],-1)),t[9]||(t[9]=n("p",{class:"paper-proof-mobile"},"Used by authors at ICSE \xB7 FSE \xB7 OOPSLA",-1))]),t[10]||(t[10]=n("div",{class:"paper-hero-shot"},[n("div",{class:"paper-frame"},[n("div",{class:"paper-frame-bar","aria-hidden":"true"},[n("span",{class:"dots"},[n("i"),n("i"),n("i")]),n("span",{class:"url"},"anonymous.4open.science/r/paper-7f2a")]),n("div",{class:"hero-mock",role:"img","aria-label":"A reviewer browsing an anonymized repository: the author, affiliation, and email in the README are replaced by anonymous terms"},[n("div",{class:"hero-mock-tree","aria-hidden":"true"},[n("div",{class:"hero-mock-tree-title"},"Files"),n("div",{class:"hero-mock-row is-folder"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M1.5 3.5h4l1.5 1.5h7.5v8h-13z"})]),m("data")]),n("div",{class:"hero-mock-row is-folder"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M1.5 3.5h4l1.5 1.5h7.5v8h-13z"})]),m("experiments")]),n("div",{class:"hero-mock-row is-folder"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M1.5 3.5h4l1.5 1.5h7.5v8h-13z"})]),m("src")]),n("div",{class:"hero-mock-row"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M3.5 1.5h6l3 3v10h-9z"})]),m("LICENSE")]),n("div",{class:"hero-mock-row is-active"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M3.5 1.5h6l3 3v10h-9z"})]),m("README.md")]),n("div",{class:"hero-mock-row"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M3.5 1.5h6l3 3v10h-9z"})]),m("requirements.txt")])]),n("div",{class:"hero-mock-doc","aria-hidden":"true"},[n("div",{class:"hero-mock-doc-bar"},[n("strong",null,"README.md"),n("span",{class:"hero-mock-count"},"3 redacted")]),n("div",{class:"hero-mock-doc-body"},[n("div",{class:"hero-mock-h1"},"DeepLearnUtils"),n("p",null,[m("Developed by "),n("span",{class:"redact",role:"img","aria-label":"Redacted term 1"},[n("i",null,"1")]),m(" at "),n("span",{class:"redact",role:"img","aria-label":"Redacted term 2"},[n("i",null,"2")]),m(".")]),n("p",{class:"hm-opt"},"Utilities for reproducing the paper\u2019s experiments."),n("div",{class:"hero-mock-h2 hm-opt"},"Quick start"),n("pre",{class:"hm-opt"},`pip install -r requirements.txt + label names the service and the tooltip says who to contact. `),n("li",{class:R(["nav-item nav-extra-item d-none d-lg-block",{"in-user-menu":!!e.user?.username}])},[...t[19]||(t[19]=[n("a",{class:"nav-link",target:"_blank",rel:"noopener",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",title:"Report a problem with the Anonymous GitHub service. Questions about an anonymized repository or paper go to its authors.","data-offset":"30"},[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-bug"})]),m("Report a bug ")],-1)])],2),n("li",{class:R(["nav-item nav-support-item nav-extra-item d-none d-lg-block",{"in-user-menu":!!e.user?.username}])},[...t[20]||(t[20]=[n("a",{class:"nav-link nav-support-inline",href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener",title:"Donate on Ko-fi to help cover hosting costs"},[n("svg",{class:"ui-icon nav-heart","aria-hidden":"true"},[n("use",{href:"#ui-icon-heart"})]),m("Support ")],-1)])],2),e.isDarkMode?f("v-if",!0):(a(),l("li",iz,[n("button",{type:"button",class:"nav-link nav-icon",title:"Switch to dark mode","aria-label":"Switch to dark mode",onClick:t[1]||(t[1]=s=>{e.darkMode(!0)})},[...t[21]||(t[21]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-moon"})],-1)])])])),e.isDarkMode?(a(),l("li",rz,[n("button",{type:"button",class:"nav-link nav-icon",title:"Switch to light mode","aria-label":"Switch to light mode",onClick:t[2]||(t[2]=s=>{e.darkMode(!1)})},[...t[22]||(t[22]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sun"})],-1)])])])):f("v-if",!0),!e.user&&!e.isReviewerRoute?(a(),l("li",az,[...t[23]||(t[23]=[n("a",{class:"nav-link btn-signin",target:"_self",href:"/signin","data-offset":"30"},[n("i",{class:"fab fa-github mr-1"}),m(" Sign in ")],-1)])])):f("v-if",!0),e.user?.username&&e.headerCanUpgrade&&!e.headerBillingPending?(a(),l("li",lz,[n("a",{class:"nav-link nav-upgrade",href:"/profile?upgrade=1",onClick:t[3]||(t[3]=de(s=>e.openHeaderUpgrade(),["prevent"]))},"Upgrade")])):f("v-if",!0),e.user?(a(),l("li",dz,[n("a",uz,[e.user?.photo?(a(),l("img",{key:0,width:"22",height:"22",class:"rounded-circle",src:e.safeUrl(e.user?.photo)},null,8,cz)):f("v-if",!0),n("span",pz,d(e.user?.username),1)]),n("div",fz,[n("h6",mz,"Signed in as @"+d(e.user?.username),1),t[25]||(t[25]=Ce('SettingsDefaults, quotas, accountGitHub connectionsRepository access and OAuthClaim an anonymizationAttach an existing mirror to your accountReport a bugAbout this service, not a paperSource code',6)),e.headerShowSupport?(a(),l("a",hz,[...t[24]||(t[24]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-heart"})],-1),n("span",null,"Support the project",-1)])])):f("v-if",!0),t[26]||(t[26]=n("div",{class:"dropdown-divider"},null,-1)),t[27]||(t[27]=n("a",{class:"dropdown-item",href:"/api/user/logout",target:"_self"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-logout"})]),n("span",null,"Sign out")],-1))])])):f("v-if",!0)])])],2),e.generalMessage?(a(),l("div",{key:0,class:"navbar shadow generalMessage",innerHTML:e.sanitize(e.generalMessage)},null,8,gz)):f("v-if",!0),e.emailPromptOpen?(a(),l("dialog",{key:1,id:"email-prompt",class:"email-prompt","aria-labelledby":"email-prompt-title","aria-describedby":"email-prompt-reason",onCancel:t[8]||(t[8]=de(s=>e.respondToEmailPrompt("later"),["prevent"]))},[n("form",{onSubmit:t[7]||(t[7]=de(s=>e.respondToEmailPrompt("save"),["prevent"]))},[t[30]||(t[30]=n("h2",{id:"email-prompt-title"},"Stay informed about access problems",-1)),t[31]||(t[31]=n("p",{id:"email-prompt-reason"},"Get email alerts when your GitHub token or repository access fails.",-1)),t[32]||(t[32]=n("label",{for:"email-prompt-address"},"Email address",-1)),P(n("input",{id:"email-prompt-address",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[4]||(t[4]=s=>e.emailPromptAddress=s),disabled:e.emailPromptBusy},null,8,vz),[[nt,e.emailPromptAddress]]),e.emailPromptError?(a(),l("p",yz,d(e.emailPromptError),1)):f("v-if",!0),n("div",bz,[n("button",{type:"button",class:"btn btn-outline-ink",disabled:e.emailPromptBusy,onClick:t[5]||(t[5]=s=>e.respondToEmailPrompt("later"))},"Remind me later",8,wz),n("button",{type:"button",class:"btn btn-outline-ink",disabled:e.emailPromptBusy,onClick:t[6]||(t[6]=s=>e.respondToEmailPrompt("never"))},"Never",8,kz),n("button",{type:"submit",class:"btn btn-ink",disabled:e.emailPromptBusy},d(e.emailPromptBusy?"Saving\u2026":"Save"),9,Cz)])],32)],32)):f("v-if",!0)],64)}var Sz={class:"paper-landing"},Ez={class:"paper-hero"},Nz={class:"paper-hero-copy"},Rz={class:"paper-cta-row"},Tz={key:0,href:"/signin",target:"_self",class:"btn-hero"},Pz={key:1,href:"/anonymize",class:"btn-hero"},Dz={class:"paper-stats-meta"},Az={key:0,class:"paper-stats-meta-left"},Iz={key:0,class:"paper-stats-grid"},Oz={class:"paper-stat-label"},Mz={key:0,class:"paper-stat-delta"},Vz={class:"demo paper-wrap","aria-label":"Try redaction"},qz={class:"demo-terms"},Lz={class:"demo-panes"},_z={class:"pane"},$z={class:"demo-input-wrap"},Fz={class:"pane-body demo-backdrop","aria-hidden":"true"},Uz={key:0,class:"demo-match"},Bz={class:"pane pane-after"},zz={class:"pane-header"},Hz={class:"pane-url"},jz={class:"meta-redact"},Gz={class:"pane-body demo-output","aria-live":"polite"},Wz=["title"],Kz={class:"paper-features paper-wrap","aria-label":"Product features"},Yz={class:"paper-features-list",role:"tablist","aria-label":"Features","aria-orientation":"vertical"},Jz=["onClick","onKeydown","id","aria-controls","aria-selected","tabindex"],Xz={class:"paper-eyebrow"},Qz={class:"pf-num"},Zz={class:"pf-name"},xz={class:"paper-feature-title"},eH={key:0,class:"serif-hy"},tH={class:"paper-feature-more"},nH={class:"paper-feature-title paper-feature-title-m","aria-hidden":"true"},oH={key:0,class:"serif-hy"},sH=["href","target"],iH={class:"paper-features-stage"},rH=["id","aria-labelledby"],aH={class:"paper-frame"},lH={class:"paper-frame-bar","aria-hidden":"true"},dH={class:"url"},uH=["aria-label"],cH={key:0,class:"fm-form"},pH={key:1,class:"fm-viewer"},fH={key:2,class:"fm-dash"};function Pp(e,t){let s=Qe("partial-view");return a(),l("div",Sz,[f(" Hero: copy on the left, the product on the right "),n("section",Ez,[n("div",Nz,[t[5]||(t[5]=n("div",{class:"paper-eyebrow"},"For double-anonymous peer review",-1)),t[6]||(t[6]=n("h1",{class:"hero-title"},[m(" Share the code,"),n("br"),n("span",{class:"accent"},"not the author.")],-1)),t[7]||(t[7]=n("p",{class:"hero-subtitle"}," Anonymous GitHub makes a read-only mirror of your repository, pull request, or gist. It redacts the terms you choose in text files, so reviewers can browse your artifact through an anonymous link. ",-1)),n("div",Rz,[e.user?f("v-if",!0):(a(),l("a",Tz,[...t[3]||(t[3]=[n("i",{class:"fab fa-github mr-2","aria-hidden":"true"},null,-1),m("Sign in with GitHub ",-1)])])),e.user?(a(),l("a",Pz," Anonymize a repository \u2192 ")):f("v-if",!0),t[4]||(t[4]=n("a",{class:"paper-link-arrow",target:"_self",href:"https://anonymous.4open.science/r/840c8c57-3c32-451e-bf12-0e20be300389/"},"See an anonymized repository \u2192",-1))]),t[8]||(t[8]=n("ul",{class:"paper-reassure"},[n("li",null,"Free, open source"),n("li",null,"Read-only access"),n("li",null,"Set an expiry date")],-1)),t[9]||(t[9]=n("p",{class:"paper-proof-mobile"},"Used by authors at ICSE \xB7 FSE \xB7 OOPSLA",-1))]),t[10]||(t[10]=n("div",{class:"paper-hero-shot"},[n("div",{class:"paper-frame"},[n("div",{class:"paper-frame-bar","aria-hidden":"true"},[n("span",{class:"dots"},[n("i"),n("i"),n("i")]),n("span",{class:"url"},"anonymous.4open.science/r/paper-7f2a")]),n("div",{class:"hero-mock",role:"img","aria-label":"A reviewer browsing an anonymized repository: the author, affiliation, and email in the README are replaced by anonymous terms"},[n("div",{class:"hero-mock-tree","aria-hidden":"true"},[n("div",{class:"hero-mock-tree-title"},"Files"),n("div",{class:"hero-mock-row is-folder"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M1.5 3.5h4l1.5 1.5h7.5v8h-13z"})]),m("data")]),n("div",{class:"hero-mock-row is-folder"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M1.5 3.5h4l1.5 1.5h7.5v8h-13z"})]),m("experiments")]),n("div",{class:"hero-mock-row is-folder"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M1.5 3.5h4l1.5 1.5h7.5v8h-13z"})]),m("src")]),n("div",{class:"hero-mock-row"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M3.5 1.5h6l3 3v10h-9z"})]),m("LICENSE")]),n("div",{class:"hero-mock-row is-active"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M3.5 1.5h6l3 3v10h-9z"})]),m("README.md")]),n("div",{class:"hero-mock-row"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M3.5 1.5h6l3 3v10h-9z"})]),m("requirements.txt")])]),n("div",{class:"hero-mock-doc","aria-hidden":"true"},[n("div",{class:"hero-mock-doc-bar"},[n("strong",null,"README.md"),n("span",{class:"hero-mock-count"},"3 redacted")]),n("div",{class:"hero-mock-doc-body"},[n("div",{class:"hero-mock-h1"},"DeepLearnUtils"),n("p",null,[m("Developed by "),n("span",{class:"redact",role:"img","aria-label":"Redacted term 1"},[n("i",null,"1")]),m(" at "),n("span",{class:"redact",role:"img","aria-label":"Redacted term 2"},[n("i",null,"2")]),m(".")]),n("p",{class:"hm-opt"},"Utilities for reproducing the paper\u2019s experiments."),n("div",{class:"hero-mock-h2 hm-opt"},"Quick start"),n("pre",{class:"hm-opt"},`pip install -r requirements.txt python experiments/run.py`),n("p",null,[m("Contact: "),n("span",{class:"redact",role:"img","aria-label":"Redacted term 3"},[n("i",null,"3")])])])])])])],-1))]),f(" Live stats "),n("section",{class:R(["paper-stats paper-wrap",{"is-empty":e.statsEmpty()}]),id:"metrics","aria-label":"Usage over the last 60 days"},[n("div",Dz,[e.statsEmpty()?f("v-if",!0):(a(),l("div",Az,[...t[11]||(t[11]=[n("span",{class:"paper-stats-dot","aria-hidden":"true"},null,-1),m(),n("span",null,[m("Live \xB7 last 60 days"),n("span",{class:"paper-stats-daily"}," \xB7 updated daily")],-1)])])),t[12]||(t[12]=n("div",{class:"paper-stats-meta-right"},"Used by authors at ICSE \xB7 FSE \xB7 OOPSLA",-1))]),e.statsEmpty()?f("v-if",!0):(a(),l("div",Iz,[(a(!0),l(V,null,X(e.cards,(i,o)=>(a(),l("div",{class:"paper-stat-card",key:i?.key},[n("div",{class:R(["paper-stat-value",{"is-pending":!e.stat}])},d(e.stat?e.fmt?.bigNum(i?.total):"\u2014"),3),n("div",Oz,d(i?.label),1),e.history[i?.key].bars?.length>1&&e.history[i?.key].deltaToday>0?(a(),l("div",Mz," +"+d(e.fmt?.number(e.history[i?.key].deltaToday))+" today ",1)):f("v-if",!0)]))),128))]))],2),f(" Before / after "),t[22]||(t[22]=n("section",{class:"paper-section-head paper-wrap"},[n("div",null,[n("div",{class:"paper-eyebrow"},"Try it"),n("h2",null,[m("The same repository, "),n("em",null,"minus you.")])]),n("p",null," Names, affiliations, emails, and any term you list are replaced across the README, source files, notebooks, and PDF links. Reviewers browse the real thing, not a zip. ")],-1)),n("div",Vz,[n("div",qz,[t[13]||(t[13]=n("label",{for:"demo-terms"},[m("Terms to redact "),n("span",null,[m("comma-separated"),n("span",{class:"dt-try"},", try adding your own")])],-1)),P(n("textarea",{id:"demo-terms",class:"demo-terms-input",rows:"1","onUpdate:modelValue":t[0]||(t[0]=i=>e.demoTerms=i),spellcheck:"false",autocomplete:"off",onKeydown:t[1]||(t[1]=_t(de(()=>{},["prevent"]),["enter"]))},null,544),[[nt,e.demoTerms]])]),n("div",Lz,[n("div",_z,[t[15]||(t[15]=n("div",{class:"pane-header"},[n("span",{class:"pane-label"},[m("Your repository "),n("span",{class:"pane-edit-hint"},"\xB7 editable")]),n("span",{class:"pane-url"},"github.com/jane-smith/DeepLearnUtils")],-1)),n("div",$z,[n("div",Fz,[(a(!0),l(V,null,X(e.demoParts(),(i,o)=>(a(),l(V,{key:o},[i.redacted?(a(),l("mark",Uz,d(i.original),1)):(a(),l(V,{key:1},[m(d(i.text),1)],64))],64))),128)),t[14]||(t[14]=m("\u200B",-1))]),P(n("textarea",{class:"pane-body demo-input","onUpdate:modelValue":t[2]||(t[2]=i=>e.demoText=i),spellcheck:"false","aria-label":"Sample README to anonymize"},null,512),[[nt,e.demoText]])])]),n("div",Bz,[n("div",zz,[t[16]||(t[16]=n("span",{class:"pane-label"},"What reviewers see",-1)),n("span",Hz,[n("span",jz,d(e.demoCount())+" redacted",1)])]),n("div",Gz,[(a(!0),l(V,null,X(e.demoParts(),(i,o)=>(a(),l(V,{key:o},[i.redacted?(a(),l("span",{key:0,class:"redact-chip",title:"Replaces \u201C"+i.original+"\u201D"},d(i.text),9,Wz)):(a(),l(V,{key:1},[m(d(i.text),1)],64))],64))),128))])])])]),f(" What you get: one screenshot, three tabs "),t[23]||(t[23]=n("section",{class:"paper-section-head paper-wrap",id:"about"},[n("div",null,[n("div",{class:"paper-eyebrow"},"What you get"),n("h2",null,"Anonymize, review, manage.")]),n("p",null," Terms are redacted in text files. Enabled images and PDFs are served unchanged, so review them for identifying content before sharing. Monitor your mirror, update it, or remove it when the review is over. ")],-1)),n("section",Kz,[n("div",Yz,[(a(!0),l(V,null,X(e.features,(i,o)=>(a(),l("div",{class:R(["paper-feature",{"is-on":e.feature===i?.key}]),key:i?.key},[n("button",{type:"button",class:"paper-feature-tab",role:"tab",onClick:r=>e.selectFeature(i.key),onKeydown:r=>e.featureKeydown(r,o),id:"feature-tab-"+i?.key,"aria-controls":"feature-panel-"+i?.key,"aria-selected":e.feature===i?.key,tabindex:e.feature===i?.key?0:-1},[n("span",Xz,[n("span",Qz,d(i?.num),1),t[17]||(t[17]=n("span",{class:"pf-sep"}," \xB7 ",-1)),n("span",Zz,d(i?.eyebrow),1)]),n("span",xz,[m(d(i?.title.split("-")[0]),1),i?.title.includes("-")?(a(),l("span",eH,"-")):f("v-if",!0),m(d(i?.title.split("-").slice(1).join("-"))+" "+d(i?.accent),1)])],40,Jz),n("div",tH,[n("span",nH,[m(d(i?.title.split("-")[0]),1),i?.title.includes("-")?(a(),l("span",oH,"-")):f("v-if",!0),m(d(i?.title.split("-").slice(1).join("-"))+" "+d(i?.accent),1)]),n("p",null,d(i?.text),1),n("a",{class:"paper-link-arrow",href:e.safeUrl(e.featureHref(i)),target:e.featureTarget(i)},d(i?.cta)+" \u2192",9,sH)])],2))),128))]),n("div",iH,[(a(!0),l(V,null,X(e.features,(i,o)=>P((a(),l("div",{class:"paper-feature-panel",role:"tabpanel",key:i?.key,id:"feature-panel-"+i?.key,"aria-labelledby":"feature-tab-"+i?.key},[n("div",aH,[n("div",lH,[t[18]||(t[18]=n("span",{class:"dots"},[n("i"),n("i"),n("i")],-1)),n("span",dH,d(i?.url),1)]),n("div",{class:R(["feat-mock","is-"+i?.key]),role:"img","aria-label":i?.alt},[i?.key==="anonymize"?(a(),l("div",cH,[...t[19]||(t[19]=[Ce('
GitHub repository
github.com/jane-smith/DeepLearnUtils
Terms to redact
Jane SmithMIT CSAILjane.smith@mit.edu+ Add term
Reviewers can see
ImagesPDFsLinksNotebooks
Expires
Mar 31, 2027
Anonymize repository
',6)])])):i?.key==="review"?(a(),l("div",pH,[...t[20]||(t[20]=[Ce(`
data
src
train.py
README.md
LICENSE
train.py48 lines \xB7 Python
1# Training loop for DeepLearnUtils
 2# Author: XXXX-1, XXXX-2
 3import torch
@@ -57,18 +57,18 @@ python experiments/run.py`),n("p",null,[m("Contact: "),n("span",{class:"redact",
 7    model = build_model(config)
 8    for epoch in range(config.epochs):
 9        loss = step(model)
-10        log("epoch %d: %.3f", epoch, loss)
`,2)])])):(a(),l("div",fH,[...t[21]||(t[21]=[Ce('
ProjectStatusViewsExpires
DeepLearnUtilspaper-7f2a \xB7 ICSE 2027Ready41Mar 31, 2027
vision-bench#212pull request \xB7 FSE 2027Ready12Never
graph-repairgr-91abUpdating5Jan 5, 2027
JarSiftOOPSLA 2025Expired72Sep 28, 2026
',5)])]))],10,uH)])],8,rH)),[[Q,e.feature===i?.key]])),128))])]),f(" FAQ teaser "),t[24]||(t[24]=Ce('
Before you sign in

The questions that come up most.

Read the full FAQ \u2192
What access does GitHub sign-in require?

The GitHub App has read-only access to gists and the repositories you choose. Legacy OAuth uses broader permissions. Anonymous GitHub never writes to your repositories.

Which file formats are supported?

Source code with syntax highlighting, Markdown, Jupyter notebooks, PDFs, images, and GitHub Pages sites. Text files are anonymized; enabled images and PDFs are served unchanged.

What happens when an anonymized repository expires?

You choose: the mirror is removed, or visitors are redirected to the original GitHub repository once the review is over.

Ready for review?

Create an anonymous mirror in a couple of minutes. Reviewers just open the link.

',2)),Me(s,{name:"partials/footer.htm",state:e.viewState},null,8,["state"])])}var mH={class:"paper-empty"},hH={class:"paper-empty-inner"},gH={key:0,class:"paper-eyebrow"},vH={key:1,class:"paper-eyebrow"},yH={key:2,class:"paper-empty-title"},bH=["textContent"];function Pp(e,t){return a(),l("div",mH,[n("div",hH,[e.error?f("v-if",!0):(a(),l("div",gH,"Working")),e.error?(a(),l("div",vH,"Error")):f("v-if",!0),e.error?f("v-if",!0):(a(),l("h1",yH,[...t[0]||(t[0]=[m(" Loading",-1),n("span",{class:"dot-anim"},"\u2026",-1)])])),e.error?(a(),l("h1",{key:3,class:"paper-empty-title",textContent:d(e.fmt.translate(e.error))},null,8,bH)):f("v-if",!0)])])}var wH={class:"container paper-page paper-settings"},kH={class:"paper-crumbs"},CH={class:"here"},SH={class:"paper-page-title"},EH={class:"paper-settings-body"},NH={class:"paper-settings-toc"},RH={href:"#conf-billing"},TH={class:"form needs-validation paper-settings-main",name:"conference",novalidate:""},PH={id:"conf-basics",class:"paper-settings-section"},DH={class:"form-group"},AH={class:"invalid-feedback"},IH={class:"invalid-feedback"},OH={class:"form-group"},MH={class:"invalid-feedback"},VH={class:"form-group"},qH={class:"invalid-feedback"},LH={class:"invalid-feedback"},_H={id:"conf-window",class:"paper-settings-section"},$H={class:"form-grid-2"},FH={class:"form-group"},UH={class:"invalid-feedback"},BH={class:"invalid-feedback"},zH={class:"form-group"},HH={class:"invalid-feedback"},jH={class:"invalid-feedback"},GH={id:"conf-rendering",class:"paper-settings-section"},WH={class:"form-check"},KH={class:"form-check-input",type:"checkbox",id:"link",name:"link"},YH={class:"form-check"},JH={class:"form-check-input",type:"checkbox",id:"image",name:"image"},XH={class:"form-check"},QH={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},ZH={class:"form-check"},xH={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},ej={id:"conf-features",class:"paper-settings-section"},tj={class:"form-check"},nj={class:"form-check-input",type:"checkbox",id:"update",name:"update"},oj={class:"form-check"},sj={class:"form-check-input",type:"checkbox",id:"page",name:"page"},ij={id:"conf-plan",class:"paper-settings-section"},rj={key:0,class:"paper-section-copy"},aj={class:"conference-tiers",role:"radiogroup","aria-label":"Review package size"},lj=["value","checked","onChange"],dj={class:"conference-tier-head"},uj={key:0,class:"conference-tier-pill"},cj={class:"conference-tier-who"},pj={key:0,class:"conference-tier-price"},fj={class:"conference-tier-size"},mj={key:1,class:"conference-tier-per"},hj={key:2,class:"paper-plan-grid"},gj=["value"],vj=["textContent"],yj={class:"paper-plan-price"},bj=["innerHTML"],wj={key:3,class:"settings-notice",role:"status"},kj={key:0,id:"conf-billing",class:"paper-settings-section"},Cj={class:"form-group"},Sj={class:"form-group"},Ej={class:"form-group"},Nj={class:"form-group"},Rj={class:"form-grid-3"},Tj={class:"form-group"},Pj={class:"form-group"},Dj={class:"form-group"},Aj={class:"form-group"},Ij={class:"paper-settings-footer"},Oj=["textContent"],Mj=["textContent"],Vj=["disabled"];function Dp(e,t){let s=Pe("paper-scrollspy"),i=Pe("field"),o=Pe("form");return a(),l("div",wH,[n("div",kH,[t[1]||(t[1]=n("a",{href:"/dashboard"},"My work",-1)),t[2]||(t[2]=m(" \xA0/\xA0 ",-1)),t[3]||(t[3]=n("a",{href:"/conferences"},"Conferences",-1)),t[4]||(t[4]=m(" \xA0/\xA0 ",-1)),n("span",CH,d(e.editionMode?"Edit":"New"),1)]),n("h1",SH,[m(d(e.editionMode?"Edit":"Create a")+" ",1),t[5]||(t[5]=n("em",null,"conference",-1))]),t[44]||(t[44]=n("p",{class:"paper-page-lede"}," Give chairs access to every anonymization submitted to a venue. One payment hosts every submission, so authors don't pay during the review window. ",-1)),n("div",EH,[P((a(),l("aside",NH,[t[7]||(t[7]=n("div",{class:"paper-settings-toc-head"},"On this page",-1)),n("nav",null,[t[6]||(t[6]=Ce('BasicsReview windowRendering defaultsFeaturesPlan',5)),P(n("a",RH,"Billing",512),[[Q,e.plan?.pricePerRepo>0]])])])),[[s]]),P((a(),l("form",TH,[n("section",PH,[t[12]||(t[12]=n("div",{class:"paper-section-eyebrow"},"Basics",-1)),n("div",DH,[t[8]||(t[8]=n("label",{class:"paper-field-label",for:"name"},"Conference name",-1)),P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.name?.invalid&&(e.conference?.name?.touched||e.conference?.submitted)}]),name:"name",id:"name",required:"",placeholder:"e.g. International Conference on Software Engineering"},null,2),[[i,{state:e.viewState,set:r=>{e.options.name=r},value:e.options?.name,form:"conference",options:{}}]]),P(n("div",AH," The name of the conference is invalid. ",512),[[Q,e.conference?.name?.errors?.invalid]]),P(n("div",IH," The name of the conference is required. ",512),[[Q,e.conference?.name?.errors?.required]])]),n("div",OH,[t[9]||(t[9]=n("label",{class:"paper-field-label",for:"url"},"Website",-1)),P(n("input",{type:"url",class:R(["form-control",{"is-invalid":e.conference?.url?.invalid&&(e.conference?.url?.touched||e.conference?.submitted)}]),name:"url",id:"url",placeholder:"https://example.org"},null,2),[[i,{state:e.viewState,set:r=>{e.options.url=r},value:e.options?.url,form:"conference",options:{}}]]),P(n("div",MH," The url of the conference is invalid. ",512),[[Q,e.conference?.url?.errors?.url]])]),n("div",VH,[t[10]||(t[10]=n("label",{class:"paper-field-label",for:"conferenceID"},"Conference ID",-1)),P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.conferenceID?.invalid&&(e.conference?.conferenceID?.touched||e.conference?.submitted)}]),name:"conferenceID",id:"conferenceID",required:"",pattern:"[a-zA-Z0-9\\-_]{3,10}",placeholder:"ICSE26"},null,2),[[i,{state:e.viewState,set:r=>{e.options.conferenceID=r},value:e.options?.conferenceID,form:"conference",options:{}}]]),t[11]||(t[11]=n("small",{class:"form-text text-muted"},[m("3\u201310 characters, letters, numbers, "),n("code",null,"-"),m(" and "),n("code",null,"_"),m(". Authors reference this when they anonymize.")],-1)),P(n("div",{class:"invalid-feedback"}," The conference ID '"+d(e.options?.conferenceID)+"' is already used. ",513),[[Q,e.conference?.conferenceID?.errors?.used]]),P(n("div",qH," The conference ID is required. ",512),[[Q,e.conference?.conferenceID?.errors?.required]]),P(n("div",LH," The format of the conference ID is incorrect ([a-zA-Z0-9-_]{3,10}). ",512),[[Q,e.conference?.conferenceID?.errors?.pattern]])])]),n("section",_H,[t[17]||(t[17]=n("div",{class:"paper-section-eyebrow"},"Review window",-1)),n("div",$H,[n("div",FH,[t[13]||(t[13]=n("label",{class:"paper-field-label",for:"startDate"},"Start date",-1)),P(n("input",{type:"date",class:R(["form-control",{"is-invalid":e.conference?.startDate?.invalid&&(e.conference?.startDate?.touched||e.conference?.submitted)}]),name:"startDate",id:"startDate",required:""},null,2),[[i,{state:e.viewState,set:r=>{e.options.startDate=r},value:e.options?.startDate,form:"conference",options:{}}]]),t[14]||(t[14]=n("small",{class:"form-text text-muted"},"Beginning of the review process.",-1)),P(n("div",UH," Start date is required. ",512),[[Q,e.conference?.startDate?.errors?.required]]),P(n("div",BH," Start date must be before end date. ",512),[[Q,e.conference?.startDate?.errors?.invalid]])]),n("div",zH,[t[15]||(t[15]=n("label",{class:"paper-field-label",for:"endDate"},"End date",-1)),P(n("input",{type:"date",class:R(["form-control",{"is-invalid":e.conference?.endDate?.invalid&&(e.conference?.endDate?.touched||e.conference?.submitted)}]),name:"endDate",id:"endDate",required:""},null,2),[[i,{state:e.viewState,set:r=>{e.options.endDate=r},value:e.options?.endDate,form:"conference",options:{}}]]),t[16]||(t[16]=n("small",{class:"form-text text-muted"},"All repositories expire on this date.",-1)),P(n("div",HH," End date is required. ",512),[[Q,e.conference?.endDate?.errors?.required]]),P(n("div",jH," End date is invalid. ",512),[[Q,e.conference?.endDate?.errors?.invalid]])])])]),n("section",GH,[t[26]||(t[26]=n("div",{class:"paper-section-eyebrow"},"Rendering defaults",-1)),n("div",WH,[P(n("input",KH,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.link=r},value:e.options?.options?.link,form:"conference",options:{}}]]),t[18]||(t[18]=n("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[19]||(t[19]=n("small",{class:"form-text text-muted"},"Keep or remove all links from text files.",-1))]),n("div",YH,[P(n("input",JH,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.image=r},value:e.options?.options?.image,form:"conference",options:{}}]]),t[20]||(t[20]=n("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[21]||(t[21]=n("small",{class:"form-text text-muted"},"Images are not anonymized.",-1))]),n("div",XH,[P(n("input",QH,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.pdf=r},value:e.options?.options?.pdf,form:"conference",options:{}}]]),t[22]||(t[22]=n("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[23]||(t[23]=n("small",{class:"form-text text-muted"},"PDFs are not anonymized.",-1))]),n("div",ZH,[P(n("input",xH,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.notebook=r},value:e.options?.options?.notebook,form:"conference",options:{}}]]),t[24]||(t[24]=n("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1)),t[25]||(t[25]=n("small",{class:"form-text text-muted"},"Render Jupyter notebooks instead of raw JSON.",-1))])]),n("section",ej,[t[31]||(t[31]=n("div",{class:"paper-section-eyebrow"},"Features",-1)),n("div",tj,[P(n("input",nj,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.update=r},value:e.options?.options?.update,form:"conference",options:{}}]]),t[27]||(t[27]=n("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[28]||(t[28]=n("small",{class:"form-text text-muted"},"Pull the latest commit automatically (hourly maximum).",-1))]),n("div",oj,[P(n("input",sj,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.page=r},value:e.options?.options?.page,form:"conference",options:{}}]]),t[29]||(t[29]=n("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),t[30]||(t[30]=n("small",{class:"form-text text-muted"},"Enable anonymized GitHub pages.",-1))])]),n("section",ij,[t[35]||(t[35]=n("div",{class:"paper-section-eyebrow"},"Plan",-1)),e.editionMode?(a(),l("p",rj,d(e.conferencePlanName(e.options?.plan?.planID))+". The plan and review dates can't change after creation.",1)):e.conferenceTiers().length?(a(),l(V,{key:1},[t[33]||(t[33]=n("p",{class:"paper-section-copy"},"Pick the package that fits the number of submissions you expect. One payment hosts every submission, so authors don't pay.",-1)),n("div",aj,[(a(!0),l(V,null,X(e.conferenceTiers(),r=>(a(),l("label",{class:R(["conference-tier",{"is-selected":e.options?.plan?.planID===r.id}]),key:r.id},[n("input",{type:"radio",name:"planPicker",value:r.id,checked:e.options?.plan?.planID===r.id,onChange:u=>e.options.plan.planID=r.id},null,40,lj),n("span",dj,[n("strong",null,d(r.name),1),r.id==="conference"&&e.conferenceTiers().length>1?(a(),l("span",uj,"Most common")):f("v-if",!0)]),n("span",cj,d(e.conferenceAudience(r.id)),1),r.amount!=null?(a(),l("span",pj,[n("strong",null,d(e.conferenceAmount(r)),1),t[32]||(t[32]=m(" once",-1))])):f("v-if",!0),n("span",fj,"Up to "+d(r.repositories)+" papers \xB7 "+d(e.conferenceBytes(r.storage)),1),r.amount!=null&&r.repositories?(a(),l("span",mj,"About "+d(e.conferenceAmount(r,r.amount/r.repositories))+" per paper",1)):f("v-if",!0)],2))),128))]),t[34]||(t[34]=Ce('

Every package includes

  • A review window of up to 180 days
  • Automatic updates for every submission
  • Links stay online until the review window ends
  • A dashboard of every submission for chairs

Nothing renews \xB7 Tax shown at checkout \xB7 Expecting more submissions? Email tdurieux@anonymous.4open.science

Create the conference, then pay from its page. Authors can submit once the payment is confirmed.

',2))],64)):e.plans.length?(a(),l("div",hj,[(a(!0),l(V,null,X(e.plans,r=>(a(),l("label",{class:R(["paper-plan-card",{selected:e.options?.plan?.planID==r?.id}]),key:r.id},[P(n("input",{type:"radio",name:"planPicker",value:r?.id},null,8,gj),[[i,{state:e.viewState,set:u=>{e.options.plan.planID=u},value:e.options?.plan?.planID,form:"conference",options:{}}]]),n("div",{class:"paper-plan-head",textContent:d(r?.name)},null,8,vj),n("div",yj,d(r.pricePerRepo>0?e.fmt?.number(r.pricePerRepo,2)+" \u20AC per repository":"Free"),1),n("div",{class:"paper-plan-desc",innerHTML:e.sanitize(r?.description)},null,8,bj)],2))),128))])):e.plansLoaded?(a(),l("p",wj,"New conferences are unavailable right now. Please try again later.")):f("v-if",!0)]),e.plan?.pricePerRepo>0?(a(),l("section",kj,[t[43]||(t[43]=n("div",{class:"paper-section-eyebrow"},"Billing",-1)),n("div",Cj,[t[36]||(t[36]=n("label",{class:"paper-field-label",for:"billing_name"},"Name",-1)),P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.billing_name?.invalid&&(e.conference?.billing_name?.touched||e.conference?.submitted)}]),name:"billing_name",id:"billing_name",required:"",placeholder:"First & last name"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.name=r},value:e.options?.billing?.name,form:"conference",options:{}}]])]),n("div",Sj,[t[37]||(t[37]=n("label",{class:"paper-field-label",for:"email"},"Email",-1)),P(n("input",{type:"email",class:R(["form-control",{"is-invalid":e.conference?.email?.invalid&&(e.conference?.email?.touched||e.conference?.submitted)}]),name:"email",id:"email",required:"",placeholder:"you@example.org"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.email=r},value:e.options?.billing?.email,form:"conference",options:{}}]])]),n("div",Ej,[t[38]||(t[38]=n("label",{class:"paper-field-label",for:"inputAddress"},"Address",-1)),P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.inputAddress?.invalid&&(e.conference?.inputAddress?.touched||e.conference?.submitted)}]),name:"inputAddress",id:"inputAddress",required:"",placeholder:"1234 Main St"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.address=r},value:e.options?.billing?.address,form:"conference",options:{}}]])]),n("div",Nj,[P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.inputAddress2?.invalid&&(e.conference?.inputAddress2?.touched||e.conference?.submitted)}]),name:"inputAddress2",id:"inputAddress2",placeholder:"Apartment, studio, or floor"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.address2=r},value:e.options?.billing?.address2,form:"conference",options:{}}]])]),n("div",Rj,[n("div",Tj,[t[39]||(t[39]=n("label",{class:"paper-field-label",for:"city"},"City",-1)),P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.city?.invalid&&(e.conference?.city?.touched||e.conference?.submitted)}]),name:"city",id:"city",required:"",placeholder:"City"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.city=r},value:e.options?.billing?.city,form:"conference",options:{}}]])]),n("div",Pj,[t[40]||(t[40]=n("label",{class:"paper-field-label",for:"country"},"Country",-1)),P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.country?.invalid&&(e.conference?.country?.touched||e.conference?.submitted)}]),name:"country",id:"country",required:"",placeholder:"Country"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.country=r},value:e.options?.billing?.country,form:"conference",options:{}}]])]),n("div",Dj,[t[41]||(t[41]=n("label",{class:"paper-field-label",for:"zip"},"Zip",-1)),P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.zip?.invalid&&(e.conference?.zip?.touched||e.conference?.submitted)}]),name:"zip",id:"zip",required:"",placeholder:"Zip"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.zip=r},value:e.options?.billing?.zip,form:"conference",options:{}}]])])]),n("div",Aj,[t[42]||(t[42]=n("label",{class:"paper-field-label",for:"vat"},"VAT number",-1)),P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.vat?.invalid&&(e.conference?.vat?.touched||e.conference?.submitted)}]),name:"vat",id:"vat",placeholder:"VAT Number"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.vat=r},value:e.options?.billing?.vat,form:"conference",options:{}}]])])])):f("v-if",!0),n("div",Ij,[e.error?(a(),l("div",{key:0,class:"alert alert-danger",role:"alert",textContent:d(e.error)},null,8,Oj)):f("v-if",!0),e.message?(a(),l("div",{key:1,class:"alert alert-success",role:"alert",textContent:d(e.message)},null,8,Mj)):f("v-if",!0),n("button",{id:"send",disabled:e.saving,type:"submit",class:"btn btn-ink",onClick:t[0]||(t[0]=de(r=>e.submitForm(r,()=>{e.submit(r)}),["prevent"]))},d(e.saving?e.editionMode?"Updating\u2026":"Creating\u2026":e.editionMode?"Update conference":"Create conference"),9,Vj)])])),[[o,e.viewState]])])])}var qj={key:0,class:"dir-card","aria-label":"Repository files"},Lj=["onClick"],_j={class:"dir-name"},$j=["href"],Fj={class:"dir-name"},Uj={class:"dir-meta"},Bj={class:"file-card-head"},zj={class:"file-card-path"},Hj={class:"breadcrumb paths","aria-label":"Path"},jj={class:"breadcrumb-item breadcrumb-root"},Gj=["href","title","textContent"],Wj=["aria-current"],Kj=["aria-label"],Yj={class:"mobile-sub ms"},Jj=["title"],Xj={class:"ms-item"},Qj={key:1,class:"ms-item"},Zj={key:2,class:"ms-item"},xj=["aria-label","title"],eG={class:"ui-icon","aria-hidden":"true"},tG=["href"],nG={key:0,class:"file-card-meta"},oG=["title"],sG={class:"meta-extra"},iG={key:1,class:"file-card-meta"},rG=["title"],aG={class:"file-card-actions"},lG={key:0,class:"csv-toggle seg-filter",role:"radiogroup","aria-label":"CSV view"},dG=["aria-checked"],uG=["aria-checked"],cG={key:1,class:"symbols"},pG=["aria-expanded"],fG={key:0,class:"symbols-menu",role:"menu"},mG={class:"symbols-head"},hG=["onClick"],gG={class:"symbols-name"},vG={class:"symbols-line"},yG=["title"],bG={key:3,class:"tb-view",role:"group","aria-label":"View tools"},wG=["title"],kG=["aria-pressed"],CG=["title"],SG={key:4,class:"tb-file",role:"group","aria-label":"File actions"},EG=["target","title","href"],NG=["aria-label","title"],RG={class:"ui-icon","aria-hidden":"true"},TG=["href"],PG=["target","href","download"],DG=["aria-label"],AG={class:"ui-icon","aria-hidden":"true"},IG=["href"],OG={key:6,class:"tb-toc-m"},MG=["aria-expanded"],VG=["onClick"],qG={class:"tb-more"},LG=["aria-expanded"],_G={viewBox:"0 0 24 24",class:"ui-icon","aria-hidden":"true",style:{fill:"currentColor",stroke:"none"}},$G={key:0,class:"tb-menu-note"},FG={key:1,class:"tb-menu-note tb-menu-meta"},UG={key:2,class:"tb-menu-sep"},BG={key:4,class:"tb-menu-sep"},zG=["aria-checked"],HG={key:0,class:"tb-menu-check"},jG={class:"ui-icon","aria-hidden":"true"},GG=["href"],WG={key:9,class:"tb-menu-sep"},KG=["target","href"],YG=["target","href"],JG=["target","href","download"],XG=["target","href"],QG=["href"],ZG=["target","href"],xG=["placeholder","aria-invalid"],eW=["aria-label"],tW={class:"csv-table"},nW=["aria-label"],oW={class:"csv-rownum"},sW=["aria-label"],iW={key:1,class:"file-card-body"},rW={key:2,class:"md-find-bar",role:"search"},aW=["value"],lW={class:"md-find-nav"},dW=["disabled"],uW=["disabled"],cW={class:"md-find-count","aria-live":"polite"},pW=["aria-pressed"],fW={key:3,class:"reading-layout"},mW=["innerHTML"],hW={key:0,class:"readme-toc","aria-label":"On this page"},gW={class:"toc-rail"},vW=["href","onClick"],yW={class:"file-card-head"},bW={class:"file-card-path"},wW={class:"breadcrumb paths","aria-label":"Path"},kW={class:"breadcrumb-item breadcrumb-root"},CW=["href","title","textContent"],SW=["aria-current"],EW=["aria-label"],NW={class:"mobile-sub ms"},RW=["title"],TW={class:"ms-item"},PW={key:1,class:"ms-item"},DW={key:2,class:"ms-item"},AW=["aria-label","title"],IW={class:"ui-icon","aria-hidden":"true"},OW=["href"],MW={class:"file-card-meta"},VW=["title"],qW={class:"file-card-actions"},LW={key:0,class:"file-card-state",title:"Files over the size limit can't be previewed or downloaded from this link"},_W={key:1,class:"tb-file",role:"group","aria-label":"File actions"},$W=["target","title","href"],FW=["target","href","download"],UW={class:"tb-more"},BW=["aria-expanded"],zW={viewBox:"0 0 24 24",class:"ui-icon","aria-hidden":"true",style:{fill:"currentColor",stroke:"none"}},HW={key:0,class:"tb-menu-note"},jW={key:1,class:"tb-menu-sep"},GW=["target","href"],WW=["target","href","download"],KW=["target","href"],YW={key:0,class:"media-stage"},JW=["src","alt"],XW={key:1,class:"media-stage"},QW=["src"],ZW={key:2,class:"media-stage is-audio"},xW=["src"],eK={key:4,class:"notebook-body"},tK={key:5,class:"file-state"},nK={class:"file-state-msg"},oK={key:0,class:"file-state-actions"},sK=["target","href","download"],iK={key:6,class:"file-state",role:"alert"},rK={class:"file-state-title"},aK={key:0,class:"file-state-msg"},lK={key:1,class:"file-state-msg"},dK={key:2,class:"file-state-actions"},uK=["href"],cK={key:7,class:"file-state"},pK={key:4,class:"file-error container d-flex h-100"},fK={class:"paper-ratelimit-card m-auto",style:{"max-width":"520px"}},mK={class:"paper-error-msg"},hK={key:5,class:"file-error container d-flex h-100"},gK={class:"viewer-error paper-error-card file-error-card m-auto",role:"alert","aria-labelledby":"viewer-error-title"},vK={id:"viewer-error-title",class:"paper-empty-title"},yK={class:"paper-error-actions"},bK={key:0,href:"/",class:"btn btn-sm"},wK={key:1,href:"/faq",class:"btn btn-sm"},kK={key:2,class:"btn btn-outline-ink",href:"/dashboard"},CK={key:6,class:"viewer-loading","aria-busy":"true"},SK={class:"viewer-loading-status",role:"status","aria-live":"polite"},EK={class:"viewer-loading-name sr-only"},NK={key:0},RK={class:"viewer-loading-lines","aria-hidden":"true"},TK={key:7,class:"file-error container d-flex h-100"},PK={key:8,class:"file-error container d-flex h-100"};function Ap(e,t){let s=Qe("html-doc"),i=Qe("pdfviewer"),o=Qe("notebook"),r=Pe("code-editor");return a(),l(V,null,[e.sidebarHidden&&e.type=="html"&&e.content!=null&&e.paths?.length===1&&/^readme/i.test(e.paths[0]||"")&&e.files?.length?(a(),l("section",qj,[t[46]||(t[46]=n("header",{class:"dir-card-head"},[n("span",{class:"dir-card-title"},"Files"),n("span",{class:"dir-card-sub"},"Snapshot of the repository at review time")],-1)),n("ul",{class:R(["dir-list",{"is-expanded":e.dirExpanded}])},[(a(!0),l(V,null,X(e.rootEntries(),u=>(a(),l("li",{key:u.name},[u.size==null?(a(),l("button",{key:0,type:"button",class:"dir-row",onClick:p=>e.revealFolder(u.name)},[t[43]||(t[43]=n("svg",{class:"dir-icon",viewBox:"0 0 16 16","aria-hidden":"true"},[n("path",{d:"M1.5 3.5h4l1.5 1.5h7.5v8h-13z"})],-1)),n("span",_j,d(u.name),1),t[44]||(t[44]=n("span",{class:"dir-meta"},"Folder",-1))],8,Lj)):(a(),l("a",{key:1,class:R(["dir-row",{"is-current":u.name===e.paths[0]}]),href:e.safeUrl("/r/"+e.repoId+"/"+encodeURIComponent(u.name))},[t[45]||(t[45]=n("svg",{class:"dir-icon",viewBox:"0 0 16 16","aria-hidden":"true"},[n("path",{d:"M3.5 1.5h6l3 3v10h-9z"})],-1)),n("span",Fj,d(u.name),1),n("span",Uj,d(e.formatSize(u.size)),1)],10,$j))]))),128))],2),!e.dirExpanded&&e.files.length>8?(a(),l("button",{key:0,type:"button",class:"dir-more",onClick:t[0]||(t[0]=u=>e.dirExpanded=!0)},"Show all "+d(e.files.length)+" items",1)):f("v-if",!0)])):f("v-if",!0),(e.type=="text"||e.type=="code"||e.type=="html"||e.type=="html-doc"&&e.showSource)&&e.content!=null?(a(),l("section",{key:1,class:R(["file-card",{"is-code":e.type!="html","no-wrap":!e.wrapLines}])},[n("header",Bj,[n("div",zj,[n("button",{type:"button",class:R(["btn btn-sm btn-icon-only btn-ghost card-files-btn",{"is-needed":e.sidebarHidden}]),title:"Show file tree",onClick:t[1]||(t[1]=u=>e.sidebarHidden?e.sidebarHidden=!1:e.sidebarCollapsed=!1)},[...t[47]||(t[47]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sidebar"})],-1),n("span",{class:"card-files-label"},"Files",-1)])],2),n("ol",Hj,[n("li",jj,[n("a",{href:e.safeUrl("/r/"+e.repoId+"/"),title:e.repoId,textContent:d(/^[0-9a-f]{8}-[0-9a-f]{4}-/i.test(e.repoId||"")?"repository":e.repoId)},null,8,Gj)]),(a(!0),l(V,null,X(e.paths,(u,p)=>(a(),l("li",{class:"breadcrumb-item","aria-current":p===e.paths.length-1?"page":null},[(a(!0),l(V,null,X(e.redactParts(u),(c,v)=>(a(),l(V,{key:v},[c.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+c.n},[n("i",null,d(c.n),1)],8,Kj)):(a(),l(V,{key:1},[m(d(c.t),1)],64))],64))),128))],8,Wj))),256))]),n("span",Yj,[e.redactionCount()?(a(),l("b",{key:0,class:"ms-item ms-redact",title:e.redactionCount()+" redacted terms"},[m(d(e.redactionCount()),1),t[48]||(t[48]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,Jj)):f("v-if",!0),n("span",Xj,d(e.type=="html"?"Markdown":e.languageName||"Text"),1),e.fileSize(e.filePath)!=null?(a(),l("span",Qj,d(e.formatSize(e.fileSize(e.filePath))),1)):f("v-if",!0),e.type!="html"&&typeof e.content=="string"?(a(),l("span",Zj,d(e.fmt?.number(e.content.split(` +10 log("epoch %d: %.3f", epoch, loss)`,2)])])):(a(),l("div",fH,[...t[21]||(t[21]=[Ce('
ProjectStatusViewsExpires
DeepLearnUtilspaper-7f2a \xB7 ICSE 2027Ready41Mar 31, 2027
vision-bench#212pull request \xB7 FSE 2027Ready12Never
graph-repairgr-91abUpdating5Jan 5, 2027
JarSiftOOPSLA 2025Expired72Sep 28, 2026
',5)])]))],10,uH)])],8,rH)),[[Q,e.feature===i?.key]])),128))])]),f(" FAQ teaser "),t[24]||(t[24]=Ce('
Before you sign in

The questions that come up most.

Read the full FAQ \u2192
What access does GitHub sign-in require?

The GitHub App has read-only access to gists and the repositories you choose. Legacy OAuth uses broader permissions. Anonymous GitHub never writes to your repositories.

Which file formats are supported?

Source code with syntax highlighting, Markdown, Jupyter notebooks, PDFs, images, and GitHub Pages sites. Text files are anonymized; enabled images and PDFs are served unchanged.

What happens when an anonymized repository expires?

You choose: the mirror is removed, or visitors are redirected to the original GitHub repository once the review is over.

Ready for review?

Create an anonymous mirror in a couple of minutes. Reviewers just open the link.

',2)),Me(s,{name:"partials/footer.htm",state:e.viewState},null,8,["state"])])}var mH={class:"paper-empty"},hH={class:"paper-empty-inner"},gH={key:0,class:"paper-eyebrow"},vH={key:1,class:"paper-eyebrow"},yH={key:2,class:"paper-empty-title"},bH=["textContent"];function Dp(e,t){return a(),l("div",mH,[n("div",hH,[e.error?f("v-if",!0):(a(),l("div",gH,"Working")),e.error?(a(),l("div",vH,"Error")):f("v-if",!0),e.error?f("v-if",!0):(a(),l("h1",yH,[...t[0]||(t[0]=[m(" Loading",-1),n("span",{class:"dot-anim"},"\u2026",-1)])])),e.error?(a(),l("h1",{key:3,class:"paper-empty-title",textContent:d(e.fmt.translate(e.error))},null,8,bH)):f("v-if",!0)])])}var wH={class:"container paper-page paper-settings"},kH={class:"paper-crumbs"},CH={class:"here"},SH={class:"paper-page-title"},EH={class:"paper-settings-body"},NH={class:"paper-settings-toc"},RH={href:"#conf-billing"},TH={class:"form needs-validation paper-settings-main",name:"conference",novalidate:""},PH={id:"conf-basics",class:"paper-settings-section"},DH={class:"form-group"},AH={class:"invalid-feedback"},IH={class:"invalid-feedback"},OH={class:"form-group"},MH={class:"invalid-feedback"},VH={class:"form-group"},qH={class:"invalid-feedback"},LH={class:"invalid-feedback"},_H={id:"conf-window",class:"paper-settings-section"},$H={class:"form-grid-2"},FH={class:"form-group"},UH={class:"invalid-feedback"},BH={class:"invalid-feedback"},zH={class:"form-group"},HH={class:"invalid-feedback"},jH={class:"invalid-feedback"},GH={id:"conf-rendering",class:"paper-settings-section"},WH={class:"form-check"},KH={class:"form-check-input",type:"checkbox",id:"link",name:"link"},YH={class:"form-check"},JH={class:"form-check-input",type:"checkbox",id:"image",name:"image"},XH={class:"form-check"},QH={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},ZH={class:"form-check"},xH={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},ej={id:"conf-features",class:"paper-settings-section"},tj={class:"form-check"},nj={class:"form-check-input",type:"checkbox",id:"update",name:"update"},oj={class:"form-check"},sj={class:"form-check-input",type:"checkbox",id:"page",name:"page"},ij={id:"conf-plan",class:"paper-settings-section"},rj={key:0,class:"paper-section-copy"},aj={class:"conference-tiers",role:"radiogroup","aria-label":"Review package size"},lj=["value","checked","onChange"],dj={class:"conference-tier-head"},uj={key:0,class:"conference-tier-pill"},cj={class:"conference-tier-who"},pj={key:0,class:"conference-tier-price"},fj={class:"conference-tier-size"},mj={key:1,class:"conference-tier-per"},hj={key:2,class:"paper-plan-grid"},gj=["value"],vj=["textContent"],yj={class:"paper-plan-price"},bj=["innerHTML"],wj={key:3,class:"settings-notice",role:"status"},kj={key:0,id:"conf-billing",class:"paper-settings-section"},Cj={class:"form-group"},Sj={class:"form-group"},Ej={class:"form-group"},Nj={class:"form-group"},Rj={class:"form-grid-3"},Tj={class:"form-group"},Pj={class:"form-group"},Dj={class:"form-group"},Aj={class:"form-group"},Ij={class:"paper-settings-footer"},Oj=["textContent"],Mj=["textContent"],Vj=["disabled"];function Ap(e,t){let s=Pe("paper-scrollspy"),i=Pe("field"),o=Pe("form");return a(),l("div",wH,[n("div",kH,[t[1]||(t[1]=n("a",{href:"/dashboard"},"My work",-1)),t[2]||(t[2]=m(" \xA0/\xA0 ",-1)),t[3]||(t[3]=n("a",{href:"/conferences"},"Conferences",-1)),t[4]||(t[4]=m(" \xA0/\xA0 ",-1)),n("span",CH,d(e.editionMode?"Edit":"New"),1)]),n("h1",SH,[m(d(e.editionMode?"Edit":"Create a")+" ",1),t[5]||(t[5]=n("em",null,"conference",-1))]),t[44]||(t[44]=n("p",{class:"paper-page-lede"}," Give chairs access to every anonymization submitted to a venue. One payment hosts every submission, so authors don't pay during the review window. ",-1)),n("div",EH,[P((a(),l("aside",NH,[t[7]||(t[7]=n("div",{class:"paper-settings-toc-head"},"On this page",-1)),n("nav",null,[t[6]||(t[6]=Ce('BasicsReview windowRendering defaultsFeaturesPlan',5)),P(n("a",RH,"Billing",512),[[Q,e.plan?.pricePerRepo>0]])])])),[[s]]),P((a(),l("form",TH,[n("section",PH,[t[12]||(t[12]=n("div",{class:"paper-section-eyebrow"},"Basics",-1)),n("div",DH,[t[8]||(t[8]=n("label",{class:"paper-field-label",for:"name"},"Conference name",-1)),P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.name?.invalid&&(e.conference?.name?.touched||e.conference?.submitted)}]),name:"name",id:"name",required:"",placeholder:"e.g. International Conference on Software Engineering"},null,2),[[i,{state:e.viewState,set:r=>{e.options.name=r},value:e.options?.name,form:"conference",options:{}}]]),P(n("div",AH," The name of the conference is invalid. ",512),[[Q,e.conference?.name?.errors?.invalid]]),P(n("div",IH," The name of the conference is required. ",512),[[Q,e.conference?.name?.errors?.required]])]),n("div",OH,[t[9]||(t[9]=n("label",{class:"paper-field-label",for:"url"},"Website",-1)),P(n("input",{type:"url",class:R(["form-control",{"is-invalid":e.conference?.url?.invalid&&(e.conference?.url?.touched||e.conference?.submitted)}]),name:"url",id:"url",placeholder:"https://example.org"},null,2),[[i,{state:e.viewState,set:r=>{e.options.url=r},value:e.options?.url,form:"conference",options:{}}]]),P(n("div",MH," The url of the conference is invalid. ",512),[[Q,e.conference?.url?.errors?.url]])]),n("div",VH,[t[10]||(t[10]=n("label",{class:"paper-field-label",for:"conferenceID"},"Conference ID",-1)),P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.conferenceID?.invalid&&(e.conference?.conferenceID?.touched||e.conference?.submitted)}]),name:"conferenceID",id:"conferenceID",required:"",pattern:"[a-zA-Z0-9\\-_]{3,10}",placeholder:"ICSE26"},null,2),[[i,{state:e.viewState,set:r=>{e.options.conferenceID=r},value:e.options?.conferenceID,form:"conference",options:{}}]]),t[11]||(t[11]=n("small",{class:"form-text text-muted"},[m("3\u201310 characters, letters, numbers, "),n("code",null,"-"),m(" and "),n("code",null,"_"),m(". Authors reference this when they anonymize.")],-1)),P(n("div",{class:"invalid-feedback"}," The conference ID '"+d(e.options?.conferenceID)+"' is already used. ",513),[[Q,e.conference?.conferenceID?.errors?.used]]),P(n("div",qH," The conference ID is required. ",512),[[Q,e.conference?.conferenceID?.errors?.required]]),P(n("div",LH," The format of the conference ID is incorrect ([a-zA-Z0-9-_]{3,10}). ",512),[[Q,e.conference?.conferenceID?.errors?.pattern]])])]),n("section",_H,[t[17]||(t[17]=n("div",{class:"paper-section-eyebrow"},"Review window",-1)),n("div",$H,[n("div",FH,[t[13]||(t[13]=n("label",{class:"paper-field-label",for:"startDate"},"Start date",-1)),P(n("input",{type:"date",class:R(["form-control",{"is-invalid":e.conference?.startDate?.invalid&&(e.conference?.startDate?.touched||e.conference?.submitted)}]),name:"startDate",id:"startDate",required:""},null,2),[[i,{state:e.viewState,set:r=>{e.options.startDate=r},value:e.options?.startDate,form:"conference",options:{}}]]),t[14]||(t[14]=n("small",{class:"form-text text-muted"},"Beginning of the review process.",-1)),P(n("div",UH," Start date is required. ",512),[[Q,e.conference?.startDate?.errors?.required]]),P(n("div",BH," Start date must be before end date. ",512),[[Q,e.conference?.startDate?.errors?.invalid]])]),n("div",zH,[t[15]||(t[15]=n("label",{class:"paper-field-label",for:"endDate"},"End date",-1)),P(n("input",{type:"date",class:R(["form-control",{"is-invalid":e.conference?.endDate?.invalid&&(e.conference?.endDate?.touched||e.conference?.submitted)}]),name:"endDate",id:"endDate",required:""},null,2),[[i,{state:e.viewState,set:r=>{e.options.endDate=r},value:e.options?.endDate,form:"conference",options:{}}]]),t[16]||(t[16]=n("small",{class:"form-text text-muted"},"All repositories expire on this date.",-1)),P(n("div",HH," End date is required. ",512),[[Q,e.conference?.endDate?.errors?.required]]),P(n("div",jH," End date is invalid. ",512),[[Q,e.conference?.endDate?.errors?.invalid]])])])]),n("section",GH,[t[26]||(t[26]=n("div",{class:"paper-section-eyebrow"},"Rendering defaults",-1)),n("div",WH,[P(n("input",KH,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.link=r},value:e.options?.options?.link,form:"conference",options:{}}]]),t[18]||(t[18]=n("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[19]||(t[19]=n("small",{class:"form-text text-muted"},"Keep or remove all links from text files.",-1))]),n("div",YH,[P(n("input",JH,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.image=r},value:e.options?.options?.image,form:"conference",options:{}}]]),t[20]||(t[20]=n("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[21]||(t[21]=n("small",{class:"form-text text-muted"},"Images are not anonymized.",-1))]),n("div",XH,[P(n("input",QH,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.pdf=r},value:e.options?.options?.pdf,form:"conference",options:{}}]]),t[22]||(t[22]=n("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[23]||(t[23]=n("small",{class:"form-text text-muted"},"PDFs are not anonymized.",-1))]),n("div",ZH,[P(n("input",xH,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.notebook=r},value:e.options?.options?.notebook,form:"conference",options:{}}]]),t[24]||(t[24]=n("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1)),t[25]||(t[25]=n("small",{class:"form-text text-muted"},"Render Jupyter notebooks instead of raw JSON.",-1))])]),n("section",ej,[t[31]||(t[31]=n("div",{class:"paper-section-eyebrow"},"Features",-1)),n("div",tj,[P(n("input",nj,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.update=r},value:e.options?.options?.update,form:"conference",options:{}}]]),t[27]||(t[27]=n("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[28]||(t[28]=n("small",{class:"form-text text-muted"},"Pull the latest commit automatically (hourly maximum).",-1))]),n("div",oj,[P(n("input",sj,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.page=r},value:e.options?.options?.page,form:"conference",options:{}}]]),t[29]||(t[29]=n("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),t[30]||(t[30]=n("small",{class:"form-text text-muted"},"Enable anonymized GitHub pages.",-1))])]),n("section",ij,[t[35]||(t[35]=n("div",{class:"paper-section-eyebrow"},"Plan",-1)),e.editionMode?(a(),l("p",rj,d(e.conferencePlanName(e.options?.plan?.planID))+". The plan and review dates can't change after creation.",1)):e.conferenceTiers().length?(a(),l(V,{key:1},[t[33]||(t[33]=n("p",{class:"paper-section-copy"},"Pick the package that fits the number of submissions you expect. One payment hosts every submission, so authors don't pay.",-1)),n("div",aj,[(a(!0),l(V,null,X(e.conferenceTiers(),r=>(a(),l("label",{class:R(["conference-tier",{"is-selected":e.options?.plan?.planID===r.id}]),key:r.id},[n("input",{type:"radio",name:"planPicker",value:r.id,checked:e.options?.plan?.planID===r.id,onChange:u=>e.options.plan.planID=r.id},null,40,lj),n("span",dj,[n("strong",null,d(r.name),1),r.id==="conference"&&e.conferenceTiers().length>1?(a(),l("span",uj,"Most common")):f("v-if",!0)]),n("span",cj,d(e.conferenceAudience(r.id)),1),r.amount!=null?(a(),l("span",pj,[n("strong",null,d(e.conferenceAmount(r)),1),t[32]||(t[32]=m(" once",-1))])):f("v-if",!0),n("span",fj,"Up to "+d(r.repositories)+" papers \xB7 "+d(e.conferenceBytes(r.storage)),1),r.amount!=null&&r.repositories?(a(),l("span",mj,"About "+d(e.conferenceAmount(r,r.amount/r.repositories))+" per paper",1)):f("v-if",!0)],2))),128))]),t[34]||(t[34]=Ce('

Every package includes

  • A review window of up to 180 days
  • Automatic updates for every submission
  • Links stay online until the review window ends
  • A dashboard of every submission for chairs

Nothing renews \xB7 Tax shown at checkout \xB7 Expecting more submissions? Email tdurieux@anonymous.4open.science

Create the conference, then pay from its page. Authors can submit once the payment is confirmed.

',2))],64)):e.plans.length?(a(),l("div",hj,[(a(!0),l(V,null,X(e.plans,r=>(a(),l("label",{class:R(["paper-plan-card",{selected:e.options?.plan?.planID==r?.id}]),key:r.id},[P(n("input",{type:"radio",name:"planPicker",value:r?.id},null,8,gj),[[i,{state:e.viewState,set:u=>{e.options.plan.planID=u},value:e.options?.plan?.planID,form:"conference",options:{}}]]),n("div",{class:"paper-plan-head",textContent:d(r?.name)},null,8,vj),n("div",yj,d(r.pricePerRepo>0?e.fmt?.number(r.pricePerRepo,2)+" \u20AC per repository":"Free"),1),n("div",{class:"paper-plan-desc",innerHTML:e.sanitize(r?.description)},null,8,bj)],2))),128))])):e.plansLoaded?(a(),l("p",wj,"New conferences are unavailable right now. Please try again later.")):f("v-if",!0)]),e.plan?.pricePerRepo>0?(a(),l("section",kj,[t[43]||(t[43]=n("div",{class:"paper-section-eyebrow"},"Billing",-1)),n("div",Cj,[t[36]||(t[36]=n("label",{class:"paper-field-label",for:"billing_name"},"Name",-1)),P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.billing_name?.invalid&&(e.conference?.billing_name?.touched||e.conference?.submitted)}]),name:"billing_name",id:"billing_name",required:"",placeholder:"First & last name"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.name=r},value:e.options?.billing?.name,form:"conference",options:{}}]])]),n("div",Sj,[t[37]||(t[37]=n("label",{class:"paper-field-label",for:"email"},"Email",-1)),P(n("input",{type:"email",class:R(["form-control",{"is-invalid":e.conference?.email?.invalid&&(e.conference?.email?.touched||e.conference?.submitted)}]),name:"email",id:"email",required:"",placeholder:"you@example.org"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.email=r},value:e.options?.billing?.email,form:"conference",options:{}}]])]),n("div",Ej,[t[38]||(t[38]=n("label",{class:"paper-field-label",for:"inputAddress"},"Address",-1)),P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.inputAddress?.invalid&&(e.conference?.inputAddress?.touched||e.conference?.submitted)}]),name:"inputAddress",id:"inputAddress",required:"",placeholder:"1234 Main St"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.address=r},value:e.options?.billing?.address,form:"conference",options:{}}]])]),n("div",Nj,[P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.inputAddress2?.invalid&&(e.conference?.inputAddress2?.touched||e.conference?.submitted)}]),name:"inputAddress2",id:"inputAddress2",placeholder:"Apartment, studio, or floor"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.address2=r},value:e.options?.billing?.address2,form:"conference",options:{}}]])]),n("div",Rj,[n("div",Tj,[t[39]||(t[39]=n("label",{class:"paper-field-label",for:"city"},"City",-1)),P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.city?.invalid&&(e.conference?.city?.touched||e.conference?.submitted)}]),name:"city",id:"city",required:"",placeholder:"City"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.city=r},value:e.options?.billing?.city,form:"conference",options:{}}]])]),n("div",Pj,[t[40]||(t[40]=n("label",{class:"paper-field-label",for:"country"},"Country",-1)),P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.country?.invalid&&(e.conference?.country?.touched||e.conference?.submitted)}]),name:"country",id:"country",required:"",placeholder:"Country"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.country=r},value:e.options?.billing?.country,form:"conference",options:{}}]])]),n("div",Dj,[t[41]||(t[41]=n("label",{class:"paper-field-label",for:"zip"},"Zip",-1)),P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.zip?.invalid&&(e.conference?.zip?.touched||e.conference?.submitted)}]),name:"zip",id:"zip",required:"",placeholder:"Zip"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.zip=r},value:e.options?.billing?.zip,form:"conference",options:{}}]])])]),n("div",Aj,[t[42]||(t[42]=n("label",{class:"paper-field-label",for:"vat"},"VAT number",-1)),P(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.vat?.invalid&&(e.conference?.vat?.touched||e.conference?.submitted)}]),name:"vat",id:"vat",placeholder:"VAT Number"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.vat=r},value:e.options?.billing?.vat,form:"conference",options:{}}]])])])):f("v-if",!0),n("div",Ij,[e.error?(a(),l("div",{key:0,class:"alert alert-danger",role:"alert",textContent:d(e.error)},null,8,Oj)):f("v-if",!0),e.message?(a(),l("div",{key:1,class:"alert alert-success",role:"alert",textContent:d(e.message)},null,8,Mj)):f("v-if",!0),n("button",{id:"send",disabled:e.saving,type:"submit",class:"btn btn-ink",onClick:t[0]||(t[0]=de(r=>e.submitForm(r,()=>{e.submit(r)}),["prevent"]))},d(e.saving?e.editionMode?"Updating\u2026":"Creating\u2026":e.editionMode?"Update conference":"Create conference"),9,Vj)])])),[[o,e.viewState]])])])}var qj={key:0,class:"dir-card","aria-label":"Repository files"},Lj=["onClick"],_j={class:"dir-name"},$j=["href"],Fj={class:"dir-name"},Uj={class:"dir-meta"},Bj={class:"file-card-head"},zj={class:"file-card-path"},Hj={class:"breadcrumb paths","aria-label":"Path"},jj={class:"breadcrumb-item breadcrumb-root"},Gj=["href","title","textContent"],Wj=["aria-current"],Kj=["aria-label"],Yj={class:"mobile-sub ms"},Jj=["title"],Xj={class:"ms-item"},Qj={key:1,class:"ms-item"},Zj={key:2,class:"ms-item"},xj=["aria-label","title"],eG={class:"ui-icon","aria-hidden":"true"},tG=["href"],nG={key:0,class:"file-card-meta"},oG=["title"],sG={class:"meta-extra"},iG={key:1,class:"file-card-meta"},rG=["title"],aG={class:"file-card-actions"},lG={key:0,class:"csv-toggle seg-filter",role:"radiogroup","aria-label":"CSV view"},dG=["aria-checked"],uG=["aria-checked"],cG={key:1,class:"symbols"},pG=["aria-expanded"],fG={key:0,class:"symbols-menu",role:"menu"},mG={class:"symbols-head"},hG=["onClick"],gG={class:"symbols-name"},vG={class:"symbols-line"},yG=["title"],bG={key:3,class:"tb-view",role:"group","aria-label":"View tools"},wG=["title"],kG=["aria-pressed"],CG=["title"],SG={key:4,class:"tb-file",role:"group","aria-label":"File actions"},EG=["target","title","href"],NG=["aria-label","title"],RG={class:"ui-icon","aria-hidden":"true"},TG=["href"],PG=["target","href","download"],DG=["aria-label"],AG={class:"ui-icon","aria-hidden":"true"},IG=["href"],OG={key:6,class:"tb-toc-m"},MG=["aria-expanded"],VG=["onClick"],qG={class:"tb-more"},LG=["aria-expanded"],_G={viewBox:"0 0 24 24",class:"ui-icon","aria-hidden":"true",style:{fill:"currentColor",stroke:"none"}},$G={key:0,class:"tb-menu-note"},FG={key:1,class:"tb-menu-note tb-menu-meta"},UG={key:2,class:"tb-menu-sep"},BG={key:4,class:"tb-menu-sep"},zG=["aria-checked"],HG={key:0,class:"tb-menu-check"},jG={class:"ui-icon","aria-hidden":"true"},GG=["href"],WG={key:9,class:"tb-menu-sep"},KG=["target","href"],YG=["target","href"],JG=["target","href","download"],XG=["target","href"],QG=["href"],ZG=["target","href"],xG=["placeholder","aria-invalid"],eW=["aria-label"],tW={class:"csv-table"},nW=["aria-label"],oW={class:"csv-rownum"},sW=["aria-label"],iW={key:1,class:"file-card-body"},rW={key:2,class:"md-find-bar",role:"search"},aW=["value"],lW={class:"md-find-nav"},dW=["disabled"],uW=["disabled"],cW={class:"md-find-count","aria-live":"polite"},pW=["aria-pressed"],fW={key:3,class:"reading-layout"},mW=["innerHTML"],hW={key:0,class:"readme-toc","aria-label":"On this page"},gW={class:"toc-rail"},vW=["href","onClick"],yW={class:"file-card-head"},bW={class:"file-card-path"},wW={class:"breadcrumb paths","aria-label":"Path"},kW={class:"breadcrumb-item breadcrumb-root"},CW=["href","title","textContent"],SW=["aria-current"],EW=["aria-label"],NW={class:"mobile-sub ms"},RW=["title"],TW={class:"ms-item"},PW={key:1,class:"ms-item"},DW={key:2,class:"ms-item"},AW=["aria-label","title"],IW={class:"ui-icon","aria-hidden":"true"},OW=["href"],MW={class:"file-card-meta"},VW=["title"],qW={class:"file-card-actions"},LW={key:0,class:"file-card-state",title:"Files over the size limit can't be previewed or downloaded from this link"},_W={key:1,class:"tb-file",role:"group","aria-label":"File actions"},$W=["target","title","href"],FW=["target","href","download"],UW={class:"tb-more"},BW=["aria-expanded"],zW={viewBox:"0 0 24 24",class:"ui-icon","aria-hidden":"true",style:{fill:"currentColor",stroke:"none"}},HW={key:0,class:"tb-menu-note"},jW={key:1,class:"tb-menu-sep"},GW=["target","href"],WW=["target","href","download"],KW=["target","href"],YW={key:0,class:"media-stage"},JW=["src","alt"],XW={key:1,class:"media-stage"},QW=["src"],ZW={key:2,class:"media-stage is-audio"},xW=["src"],eK={key:4,class:"notebook-body"},tK={key:5,class:"file-state"},nK={class:"file-state-msg"},oK={key:0,class:"file-state-actions"},sK=["target","href","download"],iK={key:6,class:"file-state",role:"alert"},rK={class:"file-state-title"},aK={key:0,class:"file-state-msg"},lK={key:1,class:"file-state-msg"},dK={key:2,class:"file-state-actions"},uK=["href"],cK={key:7,class:"file-state"},pK={key:4,class:"file-error container d-flex h-100"},fK={class:"paper-ratelimit-card m-auto",style:{"max-width":"520px"}},mK={class:"paper-error-msg"},hK={key:5,class:"file-error container d-flex h-100"},gK={class:"viewer-error paper-error-card file-error-card m-auto",role:"alert","aria-labelledby":"viewer-error-title"},vK={id:"viewer-error-title",class:"paper-empty-title"},yK={class:"paper-error-actions"},bK={key:0,href:"/",class:"btn btn-sm"},wK={key:1,href:"/faq",class:"btn btn-sm"},kK={key:2,class:"btn btn-outline-ink",href:"/dashboard"},CK={key:6,class:"viewer-loading","aria-busy":"true"},SK={class:"viewer-loading-status",role:"status","aria-live":"polite"},EK={class:"viewer-loading-name sr-only"},NK={key:0},RK={class:"viewer-loading-lines","aria-hidden":"true"},TK={key:7,class:"file-error container d-flex h-100"},PK={key:8,class:"file-error container d-flex h-100"};function Ip(e,t){let s=Qe("html-doc"),i=Qe("pdfviewer"),o=Qe("notebook"),r=Pe("code-editor");return a(),l(V,null,[e.sidebarHidden&&e.type=="html"&&e.content!=null&&e.paths?.length===1&&/^readme/i.test(e.paths[0]||"")&&e.files?.length?(a(),l("section",qj,[t[46]||(t[46]=n("header",{class:"dir-card-head"},[n("span",{class:"dir-card-title"},"Files"),n("span",{class:"dir-card-sub"},"Snapshot of the repository at review time")],-1)),n("ul",{class:R(["dir-list",{"is-expanded":e.dirExpanded}])},[(a(!0),l(V,null,X(e.rootEntries(),u=>(a(),l("li",{key:u.name},[u.size==null?(a(),l("button",{key:0,type:"button",class:"dir-row",onClick:p=>e.revealFolder(u.name)},[t[43]||(t[43]=n("svg",{class:"dir-icon",viewBox:"0 0 16 16","aria-hidden":"true"},[n("path",{d:"M1.5 3.5h4l1.5 1.5h7.5v8h-13z"})],-1)),n("span",_j,d(u.name),1),t[44]||(t[44]=n("span",{class:"dir-meta"},"Folder",-1))],8,Lj)):(a(),l("a",{key:1,class:R(["dir-row",{"is-current":u.name===e.paths[0]}]),href:e.safeUrl("/r/"+e.repoId+"/"+encodeURIComponent(u.name))},[t[45]||(t[45]=n("svg",{class:"dir-icon",viewBox:"0 0 16 16","aria-hidden":"true"},[n("path",{d:"M3.5 1.5h6l3 3v10h-9z"})],-1)),n("span",Fj,d(u.name),1),n("span",Uj,d(e.formatSize(u.size)),1)],10,$j))]))),128))],2),!e.dirExpanded&&e.files.length>8?(a(),l("button",{key:0,type:"button",class:"dir-more",onClick:t[0]||(t[0]=u=>e.dirExpanded=!0)},"Show all "+d(e.files.length)+" items",1)):f("v-if",!0)])):f("v-if",!0),(e.type=="text"||e.type=="code"||e.type=="html"||e.type=="html-doc"&&e.showSource)&&e.content!=null?(a(),l("section",{key:1,class:R(["file-card",{"is-code":e.type!="html","no-wrap":!e.wrapLines}])},[n("header",Bj,[n("div",zj,[n("button",{type:"button",class:R(["btn btn-sm btn-icon-only btn-ghost card-files-btn",{"is-needed":e.sidebarHidden}]),title:"Show file tree",onClick:t[1]||(t[1]=u=>e.sidebarHidden?e.sidebarHidden=!1:e.sidebarCollapsed=!1)},[...t[47]||(t[47]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sidebar"})],-1),n("span",{class:"card-files-label"},"Files",-1)])],2),n("ol",Hj,[n("li",jj,[n("a",{href:e.safeUrl("/r/"+e.repoId+"/"),title:e.repoId,textContent:d(/^[0-9a-f]{8}-[0-9a-f]{4}-/i.test(e.repoId||"")?"repository":e.repoId)},null,8,Gj)]),(a(!0),l(V,null,X(e.paths,(u,p)=>(a(),l("li",{class:"breadcrumb-item","aria-current":p===e.paths.length-1?"page":null},[(a(!0),l(V,null,X(e.redactParts(u),(c,v)=>(a(),l(V,{key:v},[c.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+c.n},[n("i",null,d(c.n),1)],8,Kj)):(a(),l(V,{key:1},[m(d(c.t),1)],64))],64))),128))],8,Wj))),256))]),n("span",Yj,[e.redactionCount()?(a(),l("b",{key:0,class:"ms-item ms-redact",title:e.redactionCount()+" redacted terms"},[m(d(e.redactionCount()),1),t[48]||(t[48]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,Jj)):f("v-if",!0),n("span",Xj,d(e.type=="html"?"Markdown":e.languageName||"Text"),1),e.fileSize(e.filePath)!=null?(a(),l("span",Qj,d(e.formatSize(e.fileSize(e.filePath))),1)):f("v-if",!0),e.type!="html"&&typeof e.content=="string"?(a(),l("span",Zj,d(e.fmt?.number(e.content.split(` `).length))+" lines",1)):f("v-if",!0)]),P(n("button",{type:"button",class:"btn btn-sm btn-icon-only btn-ghost copy-path-btn","aria-label":e.pathCopied?"Path copied":"Copy file path",title:e.pathCopied?"Path copied":"Copy file path",onClick:t[2]||(t[2]=u=>e.copyPath())},[(a(),l("svg",eG,[n("use",{href:e.pathCopied?"#ui-icon-check":"#ui-icon-link"},null,8,tG)]))],8,xj),[[Q,e.filePath]])]),e.type!="html"&&typeof e.content=="string"?(a(),l("span",nG,[e.redactionCount()?(a(),l(V,{key:0},[n("span",{class:"meta-redact",title:e.redactionCount()+" redacted terms"},[m(d(e.redactionCount()),1),t[49]||(t[49]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,oG),t[50]||(t[50]=n("span",{class:"sep"},"\xB7",-1))],64)):f("v-if",!0),m(d(e.languageName||"Text"),1),n("span",sG,[t[51]||(t[51]=n("span",{class:"sep"},"\xB7",-1)),m(d(e.content.length<1024?e.content.length+" B":(e.content.length/1024).toFixed(1)+" KB"),1)]),t[52]||(t[52]=n("span",{class:"sep"},"\xB7",-1)),m(d(e.fmt?.number(e.content.split(` `).length))+" lines",1)])):f("v-if",!0),e.type=="html"?(a(),l("span",iG,[e.redactionCount()?(a(),l(V,{key:0},[n("span",{class:"meta-redact",title:e.redactionCount()+" redacted terms"},[m(d(e.redactionCount()),1),t[53]||(t[53]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,rG),t[54]||(t[54]=n("span",{class:"sep"},"\xB7",-1))],64)):f("v-if",!0),t[56]||(t[56]=m("Markdown",-1)),e.fileSize(e.filePath)!=null?(a(),l(V,{key:1},[t[55]||(t[55]=n("span",{class:"sep"},"\xB7",-1)),m(d(e.formatSize(e.fileSize(e.filePath))),1)],64)):f("v-if",!0)])):f("v-if",!0),e.preview&&e.previewPreserved()?(a(),l("button",{key:2,type:"button",class:"rp-preserved-tag",onClick:t[3]||(t[3]=u=>e.openPreserveFiles())},"Left unredacted")):f("v-if",!0),n("div",aG,[e.isCsv()?(a(),l("div",lG,[n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.csvView==="table"}]),"aria-checked":e.csvView==="table",onClick:t[4]||(t[4]=u=>e.csvView="table")},"Table",10,dG),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.csvView==="raw"}]),"aria-checked":e.csvView==="raw",onClick:t[5]||(t[5]=u=>e.csvView="raw"),title:"Show the file as text with line numbers"},"Text",10,uG)])):f("v-if",!0),e.type!="html"&&e.symbols().length>1?(a(),l("div",cG,[n("button",{type:"button",class:R(["btn btn-sm btn-ghost btn-symbols",{"is-on":e.symbolsOpen}]),"aria-expanded":e.symbolsOpen?"true":"false","aria-haspopup":"true",title:"Symbols in this file",onClick:t[6]||(t[6]=u=>e.symbolsOpen=!e.symbolsOpen)},[...t[57]||(t[57]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-list"})],-1),n("span",{class:"btn-find-label"},"Symbols",-1)])],10,pG),e.symbolsOpen?(a(),l("div",fG,[n("div",mG,d(e.symbols().length)+" "+d(e.symbols().length===1?"symbol":"symbols"),1),(a(!0),l(V,null,X(e.symbols(),u=>(a(),l("button",{type:"button",class:"symbols-item",role:"menuitem",key:u.line+u.name,onClick:p=>e.goToSymbol(u.line)},[n("span",{class:R(["symbols-kind","is-"+u.kind])},d(u.kind==="class"?"C":u.kind==="function"?"\u0192":"v"),3),n("span",gG,d(u.name),1),n("span",vG,d(u.line),1)],8,hG))),128))])):f("v-if",!0)])):f("v-if",!0),e.type=="html"?(a(),l("button",{key:2,type:"button",class:R(["btn btn-sm btn-ghost btn-icon-only btn-find btn-md-find",{"is-on":e.mdFindOpen}]),"aria-label":"Find on this page",title:"Find on this page ("+(e.isMac?"\u2318":"Ctrl+")+"F)",onClick:t[7]||(t[7]=u=>e.toggleMdFind())},[...t[58]||(t[58]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)])],10,yG)):f("v-if",!0),e.type!="html"&&!(e.isCsv()&&e.csvView==="table")?(a(),l("div",bG,[e.type!="html"?(a(),l("button",{key:0,type:"button",class:"btn btn-sm btn-ghost btn-icon-only btn-goto","aria-label":"Go to line",title:"Go to line ("+(e.isMac?"\u2318":"Ctrl+")+"G)",onClick:t[8]||(t[8]=u=>e.gotoLine())},[...t[59]||(t[59]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-goto"})],-1)])],8,wG)):f("v-if",!0),e.type!="html"?(a(),l("button",{key:1,type:"button",class:R(["btn btn-sm btn-icon-only btn-ghost btn-toggle",{"is-on":e.wrapLines}]),"aria-pressed":e.wrapLines?"true":"false","aria-label":"Wrap lines",title:"Wrap lines (Alt+Z)",onClick:t[9]||(t[9]=u=>e.toggleWrap())},[...t[60]||(t[60]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-wrap"})],-1)])],10,kG)):f("v-if",!0),e.type!="html"?(a(),l("button",{key:2,type:"button",class:"btn btn-sm btn-ghost btn-icon-only btn-find","aria-label":"Find in file",title:"Find in file ("+(e.isMac?"\u2318":"Ctrl+")+"F)",onClick:t[10]||(t[10]=u=>e.findInFile())},[...t[61]||(t[61]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)])],8,CG)):f("v-if",!0)])):f("v-if",!0),!e.preview||e.url?(a(),l("div",SG,[n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn",title:e.type=="html"?"Open the Markdown source":"Open the raw file",href:e.safeUrl(e.url)},"Raw",8,EG),typeof e.content=="string"?(a(),l("button",{key:0,type:"button",class:"tb-seg-btn tb-seg-icon","aria-label":e.contentCopied?"Copied":"Copy file contents",title:e.contentCopied?"Copied":"Copy file contents",onClick:t[11]||(t[11]=u=>e.copyContent())},[(a(),l("svg",RG,[n("use",{href:e.contentCopied?"#ui-icon-check":"#project-icon-copy"},null,8,TG)]))],8,NG)):f("v-if",!0),n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn tb-seg-icon","aria-label":"Download file",title:"Download file",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[62]||(t[62]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1)])],8,PG)])):f("v-if",!0),typeof e.content=="string"?(a(),l("button",{key:5,type:"button",class:"btn btn-sm btn-icon-only btn-ghost tb-copy-m","aria-label":e.contentCopied?"Copied":"Copy file contents",onClick:t[12]||(t[12]=u=>e.copyContent())},[(a(),l("svg",AG,[n("use",{href:e.contentCopied?"#ui-icon-check":"#project-icon-copy"},null,8,IG)]))],8,DG)):f("v-if",!0),e.type=="html"&&e.readmeToc().length>=3?(a(),l("div",OG,[n("button",{type:"button",class:R(["btn btn-sm btn-icon-only btn-ghost tb-toc-btn",{"is-on":e.tocOpen}]),"aria-label":"On this page",title:"On this page","aria-haspopup":"true","aria-expanded":e.tocOpen?"true":"false",onClick:t[13]||(t[13]=de(u=>{e.tocOpen=!e.tocOpen,e.moreOpen=!1},["stop"]))},[...t[63]||(t[63]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-outline"})],-1)])],10,MG),e.tocOpen?(a(),l("div",{key:0,class:"tb-menu tb-toc-menu",role:"menu",onClick:t[15]||(t[15]=u=>e.tocOpen=!1)},[t[64]||(t[64]=n("div",{class:"tb-menu-label"},"On this page",-1)),n("button",{type:"button",role:"menuitem",class:R(["tb-menu-toc","lvl-2",{"is-active":!e.activeHeading}]),onClick:t[14]||(t[14]=u=>e.scrollToHeading(null))},"Introduction",2),(a(!0),l(V,null,X(e.readmeToc(),u=>(a(),l("button",{type:"button",role:"menuitem",key:"m-"+u.id,class:R(["tb-menu-toc","lvl-"+u.level,{"is-active":e.activeHeading===u.id}]),onClick:p=>e.scrollToHeading(u.id)},d(u.text),11,VG))),128))])):f("v-if",!0)])):f("v-if",!0),n("div",qG,[n("button",{type:"button",class:R(["btn btn-sm btn-icon-only btn-ghost tb-more-btn",{"is-on":e.moreOpen}]),"aria-label":"More actions","aria-haspopup":"true","aria-expanded":e.moreOpen?"true":"false",onClick:t[16]||(t[16]=de(u=>{e.tocOpen=!1,e.moreOpen=!e.moreOpen},["stop"]))},[(a(),l("svg",_G,[...t[65]||(t[65]=[n("circle",{cx:"5",cy:"12",r:"1.8"},null,-1),n("circle",{cx:"12",cy:"12",r:"1.8"},null,-1),n("circle",{cx:"19",cy:"12",r:"1.8"},null,-1)])]))],10,LG),e.moreOpen?(a(),l("div",{key:0,class:"tb-menu",role:"menu",onClick:t[23]||(t[23]=u=>e.moreOpen=!1)},[e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("div",$G,[t[66]||(t[66]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),m("Snapshot \xB7 "+d(e.fmt?.date(e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)),1)])):f("v-if",!0),typeof e.content=="string"?(a(),l("div",FG,[m(d(e.type=="html"?"Markdown":e.languageName||"Text")+" \xB7 "+d(e.type=="html"&&e.fileSize(e.filePath)!=null?e.formatSize(e.fileSize(e.filePath)):e.content.length<1024?e.content.length+" B":(e.content.length/1024).toFixed(1)+" KB"),1),e.type!="html"?(a(),l(V,{key:0},[m(" \xB7 "+d(e.fmt?.number(e.content.split(` `).length))+" lines",1)],64)):f("v-if",!0)])):f("v-if",!0),e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("div",UG)):f("v-if",!0),e.type=="html"?(a(),l("button",{key:3,type:"button",role:"menuitem",onClick:t[17]||(t[17]=u=>e.toggleMdFind())},[...t[67]||(t[67]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1),m("Find in file",-1)])])):f("v-if",!0),e.type=="html"?(a(),l("div",BG)):f("v-if",!0),e.type!="html"?(a(),l("button",{key:5,type:"button",role:"menuitem",onClick:t[18]||(t[18]=u=>e.findInFile())},[...t[68]||(t[68]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1),m("Find in file",-1)])])):f("v-if",!0),e.type!="html"?(a(),l("button",{key:6,type:"button",role:"menuitem",onClick:t[19]||(t[19]=u=>e.gotoLine())},[...t[69]||(t[69]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-goto"})],-1),m("Go to line",-1)])])):f("v-if",!0),e.type!="html"?(a(),l("button",{key:7,type:"button",role:"menuitemcheckbox","aria-checked":e.wrapLines?"true":"false",onClick:t[20]||(t[20]=u=>e.toggleWrap())},[t[70]||(t[70]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-wrap"})],-1)),t[71]||(t[71]=m("Wrap lines",-1)),e.wrapLines?(a(),l("span",HG,"\u2713")):f("v-if",!0)],8,zG)):f("v-if",!0),e.isCsv()?(a(),l("button",{key:8,type:"button",role:"menuitem",class:"tb-csv-view",onClick:t[21]||(t[21]=u=>{e.csvView=e.csvView==="table"?"raw":"table",e.moreOpen=!1})},[(a(),l("svg",jG,[n("use",{href:e.csvView==="table"?"#ui-icon-code":"#ui-icon-list"},null,8,GG)])),m(d(e.csvView==="table"?"Show as text":"Show as table"),1)])):f("v-if",!0),e.type!="html"?(a(),l("div",WG)):f("v-if",!0),e.type=="html"&&(!e.preview||e.url)?(a(),l("a",{key:10,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.url)},[...t[72]||(t[72]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),m("View raw",-1)])],8,KG)):f("v-if",!0),e.type!="html"&&(!e.preview||e.url)?(a(),l("a",{key:11,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.url)},[...t[73]||(t[73]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),m("View raw",-1)])],8,YG)):f("v-if",!0),!e.preview||e.url?(a(),l("a",{key:12,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[74]||(t[74]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),m("Download file",-1)])],8,JG)):f("v-if",!0),e.options?.hasWebsite?(a(),l("a",{key:13,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[75]||(t[75]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),m("Open website",-1)])],8,XG)):f("v-if",!0),e.options?.isAdmin||e.options?.isOwner?(a(),l("a",{key:14,role:"menuitem",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[76]||(t[76]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),m("Edit anonymization",-1)])],8,QG)):f("v-if",!0),e.options?.download?(a(),l("a",{key:15,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[77]||(t[77]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-archive"})],-1),m("Download ZIP",-1)])],8,ZG)):f("v-if",!0),n("button",{type:"button",role:"menuitem",onClick:t[22]||(t[22]=u=>e.copyPath())},[...t[78]||(t[78]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-link"})],-1),m("Copy file path",-1)])]),t[79]||(t[79]=n("div",{class:"tb-menu-sep"},null,-1)),t[80]||(t[80]=n("a",{role:"menuitem",href:"/faq"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})]),m("FAQ")],-1)),t[81]||(t[81]=n("a",{role:"menuitem",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",target:"_blank",rel:"noopener"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-bug"})]),m("Report a bug")],-1))])):f("v-if",!0)])]),e.gotoOpen&&e.type!="html"?(a(),l("form",{key:3,class:"goto-pop",role:"dialog","aria-label":"Go to line",onSubmit:t[26]||(t[26]=de(u=>e.submitGoto(),["prevent"]))},[t[82]||(t[82]=n("label",{class:"goto-label",for:"goto-input"},"Go to line",-1)),P(n("input",{id:"goto-input",class:"goto-input",type:"text",inputmode:"numeric",autocomplete:"off",spellcheck:"false",placeholder:"1\u2013"+e.fmt?.number(typeof e.content=="string"?e.content.split(` -`).length:1),"aria-invalid":e.gotoError?"true":"false","onUpdate:modelValue":t[24]||(t[24]=u=>e.gotoValue=u),onKeydown:t[25]||(t[25]=_t(de(u=>e.closeGoto(),["prevent","stop"]),["esc"]))},null,40,xG),[[nt,e.gotoValue]]),n("span",{class:R(["goto-hint",{"is-error":e.gotoError}])},d(e.gotoError||"Line, or line:column"),3)],32)):f("v-if",!0)]),e.isCsv()&&e.csvView==="table"?(a(),l("div",{key:0,class:"csv-table-wrap",tabindex:"0",role:"region","aria-label":"Table view of "+(e.paths?.[e.paths.length-1]||"file")},[n("table",tW,[n("thead",null,[n("tr",null,[t[83]||(t[83]=n("th",{class:"csv-rownum",scope:"col"},[n("span",{class:"sr-only"},"Row")],-1)),(a(!0),l(V,null,X(e.csvRows()[0]||[],(u,p)=>(a(),l("th",{scope:"col",key:p,class:R({"is-num":e.csvNumCol(p)})},[(a(!0),l(V,null,X(e.redactParts(u),(c,v)=>(a(),l(V,{key:v},[c.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+c.n},[n("i",null,d(c.n),1)],8,nW)):(a(),l(V,{key:1},[m(d(c.t),1)],64))],64))),128))],2))),128))])]),n("tbody",null,[(a(!0),l(V,null,X(e.csvRows().slice(1),(u,p)=>(a(),l("tr",{key:p},[n("td",oW,d(p+1),1),(a(!0),l(V,null,X(u,(c,v)=>(a(),l("td",{key:v,class:R({"is-num":e.csvNumCol(v)})},[(a(!0),l(V,null,X(e.redactParts(c),(h,y)=>(a(),l(V,{key:y},[h.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+h.n},[n("i",null,d(h.n),1)],8,sW)):(a(),l(V,{key:1},[m(d(h.t),1)],64))],64))),128))],2))),128))]))),128))])])],8,eW)):f("v-if",!0),e.type!="html"&&!(e.isCsv()&&e.csvView==="table")?P((a(),l("div",iW,null,512)),[[r,{content:e.content,options:e.aceOption}]]):f("v-if",!0),e.type=="html"&&e.mdFindOpen?(a(),l("div",rW,[n("input",{type:"search",class:"md-find-input",placeholder:"Find on this page","aria-label":"Find on this page",value:e.mdFindQuery,onInput:t[27]||(t[27]=u=>{e.mdFindQuery=u.target.value,e.runMdFind()}),onKeydown:[t[28]||(t[28]=_t(de(u=>u.shiftKey?e.stepMdFind(-1):e.stepMdFind(1),["prevent"]),["enter"])),t[29]||(t[29]=_t(de(u=>e.toggleMdFind(!1),["prevent"]),["esc"]))]},null,40,aW),n("span",lW,[n("button",{type:"button","aria-label":"Previous match",onClick:t[30]||(t[30]=u=>e.stepMdFind(-1)),disabled:!e.mdFindTotal},[...t[84]||(t[84]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,dW),n("button",{type:"button","aria-label":"Next match",onClick:t[31]||(t[31]=u=>e.stepMdFind(1)),disabled:!e.mdFindTotal},[...t[85]||(t[85]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,uW)]),n("span",cW,d(e.mdFindQuery?e.mdFindTotal?e.mdFindIndex+1+" of "+e.mdFindTotal:"No results":""),1),n("button",{type:"button",class:R(["md-find-opt",{"is-on":e.mdFindCase}]),"aria-pressed":e.mdFindCase?"true":"false",title:"Match case","aria-label":"Match case",onClick:t[32]||(t[32]=u=>{e.mdFindCase=!e.mdFindCase,e.runMdFind()})},"Aa",10,pW),n("button",{type:"button",class:"md-find-close","aria-label":"Close find",onClick:t[33]||(t[33]=u=>e.toggleMdFind(!1))},"\xD7")])):f("v-if",!0),e.type=="html"?(a(),l("div",fW,[n("div",{class:"file-content markdown-body",innerHTML:e.renderReadme(e.sanitize(e.content))},null,8,mW),e.readmeToc().length>=3?(a(),l("aside",hW,[t[86]||(t[86]=n("div",{class:"readme-toc-head"},"On this page",-1)),n("nav",gW,[n("a",{href:"#",class:R(["lvl-2 toc-top",{"is-active":!e.activeHeading}]),onClick:t[34]||(t[34]=de(u=>e.scrollToHeading(null),["prevent"]))},"Introduction",2),(a(!0),l(V,null,X(e.readmeToc(),(u,p)=>(a(),l("a",{key:u.id,href:"#"+u.id,class:R(["lvl-"+u.level,{"is-active":e.activeHeading===u.id}]),onClick:de(c=>e.scrollToHeading(u.id),["prevent"])},d(u.text),11,vW))),128))])])):f("v-if",!0)])):f("v-if",!0)],2)):f("v-if",!0),e.type=="html-doc"&&!e.showSource&&e.content!=null?(a(),Jt(s,{key:2,content:e.content,"base-url":e.fileBaseUrl,"allow-scripts":e.allowScripts},null,8,["content","base-url","allow-scripts"])):f("v-if",!0),e.fileFrame()?(a(),l("section",{key:3,class:R(["file-card file-card-media","view-"+e.type])},[n("header",yW,[n("div",bW,[n("button",{type:"button",class:R(["btn btn-sm btn-icon-only btn-ghost card-files-btn",{"is-needed":e.sidebarHidden}]),title:"Show file tree",onClick:t[35]||(t[35]=u=>e.sidebarHidden?e.sidebarHidden=!1:e.sidebarCollapsed=!1)},[...t[87]||(t[87]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sidebar"})],-1),n("span",{class:"card-files-label"},"Files",-1)])],2),n("ol",wW,[n("li",kW,[n("a",{href:e.safeUrl("/r/"+e.repoId+"/"),title:e.repoId,textContent:d(/^[0-9a-f]{8}-[0-9a-f]{4}-/i.test(e.repoId||"")?"repository":e.repoId)},null,8,CW)]),(a(!0),l(V,null,X(e.paths,(u,p)=>(a(),l("li",{class:"breadcrumb-item","aria-current":p===e.paths.length-1?"page":null},[(a(!0),l(V,null,X(e.redactParts(u),(c,v)=>(a(),l(V,{key:v},[c.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+c.n},[n("i",null,d(c.n),1)],8,EW)):(a(),l(V,{key:1},[m(d(c.t),1)],64))],64))),128))],8,SW))),256))]),n("span",NW,[e.type=="IPython"&&e.redactionCount()?(a(),l("b",{key:0,class:"ms-item ms-redact",title:e.redactionCount()+" redacted terms"},[m(d(e.redactionCount()),1),t[88]||(t[88]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,RW)):f("v-if",!0),n("span",TW,d(e.fileKind()),1),e.imageSize?(a(),l("span",PW,d(e.imageSize),1)):f("v-if",!0),e.fileSize(e.filePath)!=null?(a(),l("span",DW,d(e.formatSize(e.fileSize(e.filePath))),1)):f("v-if",!0)]),P(n("button",{type:"button",class:"btn btn-sm btn-icon-only btn-ghost copy-path-btn","aria-label":e.pathCopied?"Path copied":"Copy file path",title:e.pathCopied?"Path copied":"Copy file path",onClick:t[36]||(t[36]=u=>e.copyPath())},[(a(),l("svg",IW,[n("use",{href:e.pathCopied?"#ui-icon-check":"#ui-icon-link"},null,8,OW)]))],8,AW),[[Q,e.filePath]])]),n("span",MW,[e.type=="IPython"&&e.redactionCount()?(a(),l(V,{key:0},[n("span",{class:"meta-redact",title:e.redactionCount()+" redacted terms"},[m(d(e.redactionCount()),1),t[89]||(t[89]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,VW),t[90]||(t[90]=n("span",{class:"sep"},"\xB7",-1))],64)):f("v-if",!0),m(d(e.fileKind()),1),e.imageSize?(a(),l(V,{key:1},[t[91]||(t[91]=n("span",{class:"sep"},"\xB7",-1)),m(d(e.imageSize),1)],64)):f("v-if",!0),e.fileSize(e.filePath)!=null?(a(),l(V,{key:2},[t[92]||(t[92]=n("span",{class:"sep"},"\xB7",-1)),m(d(e.formatSize(e.fileSize(e.filePath))),1)],64)):f("v-if",!0)]),e.preview&&e.previewPreserved()?(a(),l("button",{key:0,type:"button",class:"rp-preserved-tag",onClick:t[37]||(t[37]=u=>e.openPreserveFiles())},"Left unredacted")):f("v-if",!0),n("div",qW,[e.type=="error"&&e.content==="file_too_big"?(a(),l("span",LW,[...t[93]||(t[93]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1),m("Over the size limit",-1)])])):f("v-if",!0),e.type!="error"&&(!e.preview||e.url)?(a(),l("div",_W,[n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn",title:e.type=="IPython"?"Open the notebook JSON":"Open the raw file",href:e.safeUrl(e.url)},"Raw",8,$W),n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn tb-seg-icon","aria-label":"Download file",title:"Download file",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[94]||(t[94]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1)])],8,FW)])):f("v-if",!0),n("div",UW,[n("button",{type:"button",class:R(["btn btn-sm btn-icon-only btn-ghost tb-more-btn",{"is-on":e.moreOpen}]),"aria-label":"More actions","aria-haspopup":"true","aria-expanded":e.moreOpen?"true":"false",onClick:t[38]||(t[38]=de(u=>e.moreOpen=!e.moreOpen,["stop"]))},[(a(),l("svg",zW,[...t[95]||(t[95]=[n("circle",{cx:"5",cy:"12",r:"1.8"},null,-1),n("circle",{cx:"12",cy:"12",r:"1.8"},null,-1),n("circle",{cx:"19",cy:"12",r:"1.8"},null,-1)])]))],10,BW),e.moreOpen?(a(),l("div",{key:0,class:"tb-menu",role:"menu",onClick:t[40]||(t[40]=u=>e.moreOpen=!1)},[e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("div",HW,[t[96]||(t[96]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),m("Snapshot \xB7 "+d(e.fmt?.date(e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)),1)])):f("v-if",!0),e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("div",jW)):f("v-if",!0),e.type!="error"&&(!e.preview||e.url)?(a(),l("a",{key:2,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.url)},[t[97]||(t[97]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1)),m(d(e.type=="IPython"?"View notebook JSON":"View raw"),1)],8,GW)):f("v-if",!0),e.type!="error"&&(!e.preview||e.url)?(a(),l("a",{key:3,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[98]||(t[98]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),m("Download file",-1)])],8,WW)):f("v-if",!0),e.options?.download?(a(),l("a",{key:4,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[99]||(t[99]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-archive"})],-1),m("Download ZIP",-1)])],8,KW)):f("v-if",!0),n("button",{type:"button",role:"menuitem",onClick:t[39]||(t[39]=u=>e.copyPath())},[...t[100]||(t[100]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-link"})],-1),m("Copy file path",-1)])]),t[101]||(t[101]=n("div",{class:"tb-menu-sep"},null,-1)),t[102]||(t[102]=n("a",{role:"menuitem",href:"/faq"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})]),m("FAQ")],-1)),t[103]||(t[103]=n("a",{role:"menuitem",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",target:"_blank",rel:"noopener"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-bug"})]),m("Report a bug")],-1))])):f("v-if",!0)])])]),e.type=="image"?(a(),l("div",YW,[n("img",{class:"image-content",src:e.safeUrl(e.url),alt:e.paths[e.paths.length-1],onLoad:t[41]||(t[41]=u=>e.onImageLoad(u))},null,40,JW)])):f("v-if",!0),e.type=="media"?(a(),l("div",XW,[n("video",{class:"video-content",controls:"",preload:"metadata",playsinline:"",src:e.safeUrl(e.url)},null,8,QW)])):f("v-if",!0),e.type=="audio"?(a(),l("div",ZW,[n("audio",{controls:"",preload:"metadata",src:e.safeUrl(e.url)},null,8,xW)])):f("v-if",!0),e.type=="pdf"?(a(),Jt(i,{key:3,src:e.safeUrl(e.url)},null,8,["src"])):f("v-if",!0),e.type=="IPython"?(a(),l("div",eK,[Me(o,{class:"markdown-body",file:e.url,content:e.content},null,8,["file","content"])])):f("v-if",!0),e.type=="binary"?(a(),l("div",tK,[t[105]||(t[105]=n("svg",{class:"ui-icon file-state-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-file"})],-1)),t[106]||(t[106]=n("h2",{class:"file-state-title"},"No preview for this file",-1)),n("p",nK,d(e.preview?"Reviewers can open this file; it is not previewed here.":"This is a binary file. Download it to open it on your computer."),1),e.preview?f("v-if",!0):(a(),l("div",oK,[n("a",{target:e.preview?"_blank":"_self",class:"btn btn-primary",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[104]||(t[104]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),m("Download file",-1)])],8,sK)]))])):f("v-if",!0),e.type=="error"?(a(),l("div",iK,[t[108]||(t[108]=n("svg",{class:"ui-icon file-state-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),n("h2",rK,d(e.content==="file_too_big"?"This file is too large to preview":"This file can't be shown"),1),e.content==="file_too_big"?(a(),l("p",aK,d(e.preview?"Reviewers can open this file; it is not previewed here. Files over 1 MB are only shown on the reviewer page.":"It is over the size limit for anonymized files, so it can't be previewed or downloaded from this link."),1)):(a(),l("p",lK,d(e.fmt.translate("ERRORS."+e.content)),1)),e.preview?f("v-if",!0):(a(),l("div",dK,[n("a",{class:"btn btn-primary",href:e.safeUrl("/r/"+e.repoId+"/")},"Back to the repository",8,uK),t[107]||(t[107]=n("a",{class:"btn btn-outline-ink",href:"/faq#formats"},"Supported files",-1))]))])):f("v-if",!0),e.content==null&&e.type!="error"?(a(),l("div",cK,[...t[109]||(t[109]=[n("svg",{class:"ui-icon file-state-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-file"})],-1),n("h2",{class:"file-state-title"},"This file is empty",-1),n("p",{class:"file-state-msg"},"It has no content in this snapshot.",-1)])])):f("v-if",!0)],2)):f("v-if",!0),e.type=="rate_limited"?(a(),l("div",pK,[n("div",fK,[t[112]||(t[112]=Ce('
Temporarily paused
GitHub API rate limit reached
',1)),n("p",mK,[t[110]||(t[110]=m("This repository will be available in ",-1)),n("strong",null,d(e.rateLimitCountdown),1),t[111]||(t[111]=m(". The page will reload automatically.",-1))])])])):f("v-if",!0),e.type=="error"&&!e.fileFrame()?(a(),l("div",hK,[n("section",gK,[n("h1",vK,d(e.fmt.translate(e.isSourceAccessError()?"VIEWER_ERRORS.access_title":"VIEWER_ERRORS.title")),1),n("p",null,d(e.fmt.translate("ERRORS."+e.content)),1),e.isSourceAccessError()?(a(),l(V,{key:0},[n("p",null,d(e.fmt.translate("VIEWER_ERRORS.reader_help")),1),n("p",null,d(e.fmt.translate("VIEWER_ERRORS.owner_help")),1)],64)):f("v-if",!0),n("div",yK,[e.isSourceAccessError()?f("v-if",!0):(a(),l("a",bK,"Back to home")),e.isSourceAccessError()?f("v-if",!0):(a(),l("a",wK,"Read the FAQ")),n("button",{type:"button",class:"btn btn-primary",onClick:t[42]||(t[42]=u=>e.retryContent())},d(e.fmt.translate("VIEWER_ERRORS.retry")),1),e.isSourceAccessError()?(a(),l("a",kK,d(e.fmt.translate("VIEWER_ERRORS.dashboard")),1)):f("v-if",!0)])])])):f("v-if",!0),e.type=="loading"&&!e.error?(a(),l("section",CK,[n("div",SK,[n("strong",null,d(e.fmt.translate(e.fileReceivedBytes?"VIEWER_LOADING.receiving":"VIEWER_LOADING.loading")),1),n("span",EK,d(e.filePath),1),e.fileLoadingSlow?(a(),l("p",NK,d(e.fmt.translate("VIEWER_LOADING.slow")),1)):f("v-if",!0)]),n("div",RK,[(a(),l(V,null,X(10,u=>n("span",{key:u})),64))])])):f("v-if",!0),e.type=="empty"?(a(),l("div",TK,[...t[113]||(t[113]=[n("h1",{class:"paper-empty-title m-auto"},[m("Empty "),n("em",null,"repository"),m(".")],-1)])])):f("v-if",!0),e.content==null&&!["empty","loading","error","rate_limited"].includes(e.type)&&!e.fileFrame()?(a(),l("div",PK,[...t[114]||(t[114]=[n("h1",{class:"paper-empty-title m-auto"},[m("Empty "),n("em",null,"file"),m(".")],-1)])])):f("v-if",!0)],64)}var DK={class:"container page dashboard-page paper-page"},AK={class:"row"},IK={class:"w-100"},OK={class:"w-100","aria-label":"Pull Requests","accept-charset":"UTF-8"},MK={class:"d-flex flex-column flex-md-row align-items-md-center",style:{gap:"8px"}},VK={class:"flex-grow-1"},qK={type:"search",id:"search",class:"form-control","aria-label":"Find a pull request...",placeholder:"Find a pull request...",autocomplete:"off"},LK={class:"d-flex flex-wrap",style:{gap:"6px"}},_K={class:"dropdown"},$K={class:"dropdown-menu","aria-labelledby":"dropdownSort"},FK={class:"form-check dropdown-item"},UK={class:"form-check-input",type:"radio",name:"sort",id:"sortFullName",value:"fullName"},BK={class:"form-check dropdown-item"},zK={class:"form-check-input",type:"radio",name:"sort",id:"sortAnonymizeDate",value:"-anonymizeDate"},HK={class:"form-check dropdown-item"},jK={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},GK={class:"form-check dropdown-item"},WK={class:"form-check-input",type:"radio",name:"sort",id:"sortLastView",value:"-lastView"},KK={class:"form-check dropdown-item"},YK={class:"form-check-input",type:"radio",name:"sort",id:"sortPageView",value:"-pageView"},JK={class:"dropdown"},XK={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},QK={class:"form-check dropdown-item"},ZK={class:"form-check-input",type:"checkbox",name:"sort",id:"statusReady",value:"ready"},xK={class:"form-check dropdown-item"},eY={class:"form-check-input",type:"checkbox",name:"sort",id:"statusExpired",value:"expired"},tY={class:"form-check dropdown-item"},nY={class:"form-check-input",type:"checkbox",name:"sort",id:"statusRemoved",value:"removed"},oY={class:"d-flex flex-wrap mt-2",style:{gap:"6px"}},sY={class:"filter-chip"},iY=["onClick"],rY={class:"repo-list w-100"},aY={class:"repo-list-item-content"},lY={class:"repo-list-item-main"},dY={class:"repo-list-item-header"},uY=["textContent","href"],cY=["textContent"],pY=["textContent"],fY={class:"repo-source"},mY=["href"],hY={class:"repo-date"},gY={class:"repo-meta"},vY={key:0,title:"Conference"},yY=["title"],bY=["title"],wY=["title"],kY={key:1},CY={class:"repo-list-item-actions"},SY={class:"dropdown"},EY={class:"dropdown-menu dropdown-menu-right"},NY=["href"],RY=["onClick"],TY=["onClick"],PY=["onClick"],DY=["href"],AY={key:0,class:"repo-list-empty"};function Ip(e,t){let s=Pe("field"),i=Pe("form");return a(),l("div",DK,[n("div",AK,[n("div",IK,[t[12]||(t[12]=Ce('
My work \xA0/\xA0 Pull requests

Anonymized pull requests

Track PR mirrors you\u2019ve created and their reviewer traffic.

',2)),f(" Search + filters row "),P((a(),l("form",OK,[n("div",MK,[n("div",VK,[P(n("input",qK,null,512),[[s,{state:e.viewState,set:o=>{e.search=o},value:e.search,form:null,options:{}}]])]),n("div",LK,[n("div",_K,[t[6]||(t[6]=n("button",{class:"btn btn-sm dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Sort ",-1)),n("div",$K,[t[5]||(t[5]=n("h6",{class:"dropdown-header"},"Select order",-1)),n("div",FK,[P(n("input",UK,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[0]||(t[0]=n("label",{class:"form-check-label",for:"sortFullName"},"Pull Request",-1))]),n("div",BK,[P(n("input",zK,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[1]||(t[1]=n("label",{class:"form-check-label",for:"sortAnonymizeDate"},"Anonymize Date",-1))]),n("div",HK,[P(n("input",jK,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[2]||(t[2]=n("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),n("div",GK,[P(n("input",WK,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[3]||(t[3]=n("label",{class:"form-check-label",for:"sortLastView"},"Last View",-1))]),n("div",KK,[P(n("input",YK,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[4]||(t[4]=n("label",{class:"form-check-label",for:"sortPageView"},"Page View",-1))])])]),n("div",JK,[t[11]||(t[11]=n("button",{class:"btn btn-sm dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Status ",-1)),n("div",XK,[t[10]||(t[10]=n("h6",{class:"dropdown-header"},"Select status",-1)),n("div",QK,[P(n("input",ZK,null,512),[[s,{state:e.viewState,set:o=>{e.filters.status.ready=o},value:e.filters?.status?.ready,form:null,options:{}}]]),t[7]||(t[7]=n("label",{class:"form-check-label",for:"statusReady"},"Ready",-1))]),n("div",xK,[P(n("input",eY,null,512),[[s,{state:e.viewState,set:o=>{e.filters.status.expired=o},value:e.filters?.status?.expired,form:null,options:{}}]]),t[8]||(t[8]=n("label",{class:"form-check-label",for:"statusExpired"},"Expired",-1))]),n("div",tY,[P(n("input",nY,null,512),[[s,{state:e.viewState,set:o=>{e.filters.status.removed=o},value:e.filters?.status?.removed,form:null,options:{}}]]),t[9]||(t[9]=n("label",{class:"form-check-label",for:"statusRemoved"},"Removed",-1))])])])])])])),[[i,e.viewState]]),f(" Active filter chips "),P(n("div",oY,[(a(!0),l(V,null,X(e.filters?.status,(o,r,u)=>P((a(),l("span",sY,[m(d(e.fmt?.title(r))+" ",1),n("button",{type:"button",class:"filter-chip-close","aria-label":"Remove filter",onClick:p=>{e.filters.status[r]=!0}}," \xD7 ",8,iY)],512)),[[Q,!o]])),256))],512),[[Q,e.filters?.status?.ready===!1||e.filters?.status?.expired===!1||e.filters?.status?.removed===!1]])]),f(" Pull request list "),n("ul",rY,[(a(!0),l(V,null,X(e.filteredPullRequests,(o,r)=>(a(),l("li",{class:R(["repo-list-item",{"repo-inactive":o?.status=="expired"||o?.status=="removed"||o?.status=="error"}])},[n("div",aY,[n("div",lY,[n("div",dY,[n("a",{class:"repo-name",textContent:d(o?.pullRequestId),href:e.safeUrl("/pr/"+o?.pullRequestId)},null,8,uY),n("span",{class:R(["status-badge",{"status-removed":o?.status=="removed"||o?.status=="expired"||o?.status=="removing"||o?.status=="expiring","status-preparing":o?.status=="preparing"||o?.status=="download","status-ready":o?.status=="ready","status-error":o?.status=="error"}])},[n("span",{textContent:d(e.fmt?.title(o?.status))},null,8,cY),o?.status=="error"?(a(),l("span",{key:0,textContent:d(": "+o?.statusMessage)},null,8,pY)):f("v-if",!0)],2)]),n("div",fY,[n("span",null,[t[13]||(t[13]=n("i",{class:"fab fa-github","aria-hidden":"true"},null,-1)),n("a",{href:e.safeUrl("https://github.com/"+o?.source?.repositoryFullName+"/pull/"+o?.source?.pullRequestId)},d(o?.source?.repositoryFullName)+"#"+d(o?.source?.pullRequestId),9,mY)]),n("span",{class:R(["status-badge",{"status-ready":o?.merged,"status-removed":o?.state=="open","status-error":o?.state=="closed"&&!o?.merged}]),style:{"font-size":"10px"}},d(e.fmt?.title(o?.merged?"merged":o?.state)),3),n("span",hY,"anonymized "+d(e.fmt?.humanTime(o?.anonymizeDate)),1)])]),n("div",gY,[o?.conference?(a(),l("span",vY,[t[14]||(t[14]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),m(" "+d(o?.conference),1)])):f("v-if",!0),n("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Terms: "+o?.options?.terms?.join(", ")},[t[15]||(t[15]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1)),m(" "+d(e.fmt?.number(o?.options?.terms?.length)),1)],8,yY),n("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Views: "+e.fmt?.number(o?.pageView)},[t[16]||(t[16]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1)),m(" "+d(e.fmt?.number(o?.pageView)),1)],8,bY),n("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Last view: "+e.fmt?.date(o?.lastView)},[t[17]||(t[17]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-calendar"})],-1)),m(" "+d(e.fmt?.humanTime(o?.lastView)),1)],8,wY),o?.options?.expirationMode!="never"&&o?.status=="ready"?(a(),l("span",kY,[t[18]||(t[18]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),m(" Expire: "+d(e.fmt?.humanTime(o?.options?.expirationDate)),1)])):f("v-if",!0)])]),n("div",CY,[n("div",SY,[t[24]||(t[24]=n("button",{class:"btn btn-sm dropdown-toggle",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Actions ",-1)),n("div",EY,[n("a",{class:"dropdown-item",href:e.safeUrl("/pull-request-anonymize/"+o?.pullRequestId)},[...t[19]||(t[19]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),m(" Edit ",-1)])],8,NY),P(n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.updatePullRequest(o),["prevent"])},[...t[20]||(t[20]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),m(" Force update ",-1)])],8,RY),[[Q,o?.status=="ready"||o?.status=="error"]]),P(n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.updatePullRequest(o),["prevent"])},[...t[21]||(t[21]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),m(" Enable ",-1)])],8,TY),[[Q,o?.status=="removed"]]),P(n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.removePullRequest(o),["prevent"])},[...t[22]||(t[22]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),m(" Remove ",-1)])],8,PY),[[Q,o?.status=="ready"]]),n("a",{class:"dropdown-item",href:e.safeUrl("/pr/"+o?.pullRequestId+"/")},[...t[23]||(t[23]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),m(" View PR ",-1)])],8,DY)])])])],2))),256)),e.filteredPullRequests?.length==0?(a(),l("li",AY,[...t[25]||(t[25]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1),n("span",null,"No pull requests to display.",-1)])])):f("v-if",!0)])])])}var IY={class:"container paper-page user-settings"},OY={class:"settings-nav","aria-label":"Settings"},MY=["aria-current","onClick"],VY={class:"settings-row"},qY=["rows"],LY={class:"settings-syntax"},_Y={class:"invalid-feedback"},$Y={class:"settings-row"},FY={class:"settings-checks"},UY={class:"settings-check"},BY={class:"form-check-input",type:"checkbox",id:"link",name:"link"},zY={class:"settings-check"},HY={class:"form-check-input",type:"checkbox",id:"image",name:"image"},jY={class:"settings-check"},GY={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},WY={class:"settings-check"},KY={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},YY={class:"settings-check"},JY={class:"form-check-input",type:"checkbox",id:"loc",name:"loc"},XY={class:"settings-check"},QY={class:"form-check-input",type:"checkbox",id:"page",name:"page"},ZY={class:"settings-row"},xY={class:"settings-check"},eJ={class:"form-check-input",type:"checkbox",id:"update",name:"update"},tJ={class:"settings-row"},nJ={class:"form-control",id:"expiration",name:"expiration"},oJ={class:"settings-help"},sJ={class:"settings-save"},iJ={class:"settings-save-status draft-status",role:"status"},rJ={key:0},aJ={key:1},lJ={key:2},dJ=["disabled"],uJ={key:1,class:"settings-save-error",role:"alert"},cJ=["aria-busy"],pJ={key:0,role:"status"},fJ={key:1,class:"settings-notice",role:"alert"},mJ=["disabled"],hJ={key:2,class:"settings-notice",role:"status"},gJ={key:3,class:"settings-notice",role:"status"},vJ=["disabled"],yJ={class:"billing-summary"},bJ={class:"billing-summary-head"},wJ={class:"billing-plan-name"},kJ={key:0,class:"billing-plan-meta"},CJ={key:1,class:"billing-plan-meta"},SJ={key:0,class:"billing-summary-actions"},EJ=["disabled"],NJ={id:"settings-quota"},RJ={key:1,role:"status"},TJ={key:0,class:"settings-notice"},PJ={key:1,class:"settings-notice"},DJ={key:2,class:"settings-notice"},AJ={key:4,class:"billing-section","aria-labelledby":"settings-plan-comparison"},IJ={key:0,class:"billing-offers"},OJ={key:0,class:"billing-offer is-recommended"},MJ={class:"billing-offer-price"},VJ={class:"billing-offer-list"},qJ=["disabled"],LJ={key:1,class:"billing-offer"},_J={class:"billing-offer-head"},$J={class:"billing-toggle",role:"radiogroup","aria-label":"Billing frequency"},FJ=["aria-checked","onClick"],UJ={key:0,class:"billing-toggle-save"},BJ={class:"billing-offer-price"},zJ={class:"billing-offer-list"},HJ=["disabled"],jJ={key:1,class:"billing-addons"},GJ={class:"billing-addon-rows"},WJ={class:"billing-addon-price"},KJ=["onClick","disabled"],YJ={key:2,class:"billing-buy",id:"settings-addons-title",tabindex:"-1"},JJ={class:"billing-buy-info"},XJ={class:"billing-offer-price"},QJ={class:"billing-offer-list"},ZJ={class:"billing-buy-form"},xJ=["value"],eX=["disabled"],tX={key:1,class:"billing-buy-desc"},nX={key:2,class:"billing-footnote"},oX={class:"billing-compare"},sX={class:"billing-compare-card"},iX={class:"settings-comparison"},rX={key:0,scope:"col",class:"is-recommended"},aX={key:1,scope:"col"},lX={key:0,class:"is-recommended"},dX={key:1},uX={key:0,class:"is-recommended"},cX={key:1},pX={key:0,class:"is-recommended"},fX={key:1},mX={key:0,class:"is-recommended"},hX={key:1},gX={key:0,class:"is-recommended"},vX={key:1},yX={key:0,class:"is-recommended"},bX={key:1},wX={key:3,class:"billing-footnote"},kX={key:5,class:"billing-section"},CX={class:"billing-section-head"},SX=["disabled"],EX={key:0,class:"billing-empty"},NX={key:1,class:"billing-history-head","aria-hidden":"true"},RX={key:2,class:"billing-history"},TX={class:"billing-history-main"},PX=["href"],DX=["href"],AX={class:"billing-history-term"},IX={class:"billing-history-paid"},OX={class:"billing-history-status"},MX={class:"billing-manage"},VX={key:0},qX={key:1},LX=["disabled"],_X={class:"billing-conference"},$X={id:"settings-account",class:"settings-account-panel"},FX={class:"paper-account-card"},UX=["src"],BX={class:"paper-account-identity"},zX={class:"paper-account-name"},HX=["disabled"],jX={key:0,role:"status"},GX={key:1,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},WX=["disabled"],KX={key:3,role:"status"},YX={class:"paper-danger-zone"},JX={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},XX=["textContent"],QX=["disabled"],ZX={key:1,class:"settings-delete-confirm"},xX={for:"delete-username"},eQ={class:"settings-actions"},tQ=["disabled"],nQ=["disabled"];function Op(e,t){let s=Qe("quota-usage"),i=Pe("field"),o=Pe("form");return a(),l("div",IY,[t[107]||(t[107]=n("header",{class:"settings-title page-head page-head-main"},[n("h1",null,"Settings"),n("p",{class:"paper-page-lede"},"Defaults for new anonymizations, hosting and your account.")],-1)),n("nav",OY,[(a(),l(V,null,X([{id:"defaults",label:"Anonymization defaults"},{id:"billing",label:"Hosting & billing"},{id:"account",label:"Account"}],r=>n("button",{type:"button","aria-current":e.settingsTab===r.id?"page":null,onClick:u=>e.settingsTab=r.id},d(r.label),9,MY)),64))]),P(n("div",null,[t[41]||(t[41]=n("p",{class:"settings-scope"},"For new anonymizations only. Existing repositories keep their settings.",-1)),P((a(),l("form",{class:"form needs-validation",name:"defaultsForm",novalidate:"",onInput:t[1]||(t[1]=r=>e.unsavedChanges=!0),onSubmit:t[2]||(t[2]=de(r=>e.submitForm(r,()=>{e.saveDefault(r)}),["prevent"]))},[n("section",VY,[t[26]||(t[26]=n("div",null,[n("label",{class:"settings-label",for:"terms"},"Terms to redact"),n("p",{class:"settings-help"},"One term per line.")],-1)),n("div",null,[P(n("textarea",{class:"form-control",id:"terms",name:"terms",rows:Math.min(14,Math.max(3,String(e.terms||"").split(` +`).length:1),"aria-invalid":e.gotoError?"true":"false","onUpdate:modelValue":t[24]||(t[24]=u=>e.gotoValue=u),onKeydown:t[25]||(t[25]=_t(de(u=>e.closeGoto(),["prevent","stop"]),["esc"]))},null,40,xG),[[nt,e.gotoValue]]),n("span",{class:R(["goto-hint",{"is-error":e.gotoError}])},d(e.gotoError||"Line, or line:column"),3)],32)):f("v-if",!0)]),e.isCsv()&&e.csvView==="table"?(a(),l("div",{key:0,class:"csv-table-wrap",tabindex:"0",role:"region","aria-label":"Table view of "+(e.paths?.[e.paths.length-1]||"file")},[n("table",tW,[n("thead",null,[n("tr",null,[t[83]||(t[83]=n("th",{class:"csv-rownum",scope:"col"},[n("span",{class:"sr-only"},"Row")],-1)),(a(!0),l(V,null,X(e.csvRows()[0]||[],(u,p)=>(a(),l("th",{scope:"col",key:p,class:R({"is-num":e.csvNumCol(p)})},[(a(!0),l(V,null,X(e.redactParts(u),(c,v)=>(a(),l(V,{key:v},[c.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+c.n},[n("i",null,d(c.n),1)],8,nW)):(a(),l(V,{key:1},[m(d(c.t),1)],64))],64))),128))],2))),128))])]),n("tbody",null,[(a(!0),l(V,null,X(e.csvRows().slice(1),(u,p)=>(a(),l("tr",{key:p},[n("td",oW,d(p+1),1),(a(!0),l(V,null,X(u,(c,v)=>(a(),l("td",{key:v,class:R({"is-num":e.csvNumCol(v)})},[(a(!0),l(V,null,X(e.redactParts(c),(h,y)=>(a(),l(V,{key:y},[h.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+h.n},[n("i",null,d(h.n),1)],8,sW)):(a(),l(V,{key:1},[m(d(h.t),1)],64))],64))),128))],2))),128))]))),128))])])],8,eW)):f("v-if",!0),e.type!="html"&&!(e.isCsv()&&e.csvView==="table")?P((a(),l("div",iW,null,512)),[[r,{content:e.content,options:e.aceOption}]]):f("v-if",!0),e.type=="html"&&e.mdFindOpen?(a(),l("div",rW,[n("input",{type:"search",class:"md-find-input",placeholder:"Find on this page","aria-label":"Find on this page",value:e.mdFindQuery,onInput:t[27]||(t[27]=u=>{e.mdFindQuery=u.target.value,e.runMdFind()}),onKeydown:[t[28]||(t[28]=_t(de(u=>u.shiftKey?e.stepMdFind(-1):e.stepMdFind(1),["prevent"]),["enter"])),t[29]||(t[29]=_t(de(u=>e.toggleMdFind(!1),["prevent"]),["esc"]))]},null,40,aW),n("span",lW,[n("button",{type:"button","aria-label":"Previous match",onClick:t[30]||(t[30]=u=>e.stepMdFind(-1)),disabled:!e.mdFindTotal},[...t[84]||(t[84]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,dW),n("button",{type:"button","aria-label":"Next match",onClick:t[31]||(t[31]=u=>e.stepMdFind(1)),disabled:!e.mdFindTotal},[...t[85]||(t[85]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,uW)]),n("span",cW,d(e.mdFindQuery?e.mdFindTotal?e.mdFindIndex+1+" of "+e.mdFindTotal:"No results":""),1),n("button",{type:"button",class:R(["md-find-opt",{"is-on":e.mdFindCase}]),"aria-pressed":e.mdFindCase?"true":"false",title:"Match case","aria-label":"Match case",onClick:t[32]||(t[32]=u=>{e.mdFindCase=!e.mdFindCase,e.runMdFind()})},"Aa",10,pW),n("button",{type:"button",class:"md-find-close","aria-label":"Close find",onClick:t[33]||(t[33]=u=>e.toggleMdFind(!1))},"\xD7")])):f("v-if",!0),e.type=="html"?(a(),l("div",fW,[n("div",{class:"file-content markdown-body",innerHTML:e.renderReadme(e.sanitize(e.content))},null,8,mW),e.readmeToc().length>=3?(a(),l("aside",hW,[t[86]||(t[86]=n("div",{class:"readme-toc-head"},"On this page",-1)),n("nav",gW,[n("a",{href:"#",class:R(["lvl-2 toc-top",{"is-active":!e.activeHeading}]),onClick:t[34]||(t[34]=de(u=>e.scrollToHeading(null),["prevent"]))},"Introduction",2),(a(!0),l(V,null,X(e.readmeToc(),(u,p)=>(a(),l("a",{key:u.id,href:"#"+u.id,class:R(["lvl-"+u.level,{"is-active":e.activeHeading===u.id}]),onClick:de(c=>e.scrollToHeading(u.id),["prevent"])},d(u.text),11,vW))),128))])])):f("v-if",!0)])):f("v-if",!0)],2)):f("v-if",!0),e.type=="html-doc"&&!e.showSource&&e.content!=null?(a(),Xt(s,{key:2,content:e.content,"base-url":e.fileBaseUrl,"allow-scripts":e.allowScripts},null,8,["content","base-url","allow-scripts"])):f("v-if",!0),e.fileFrame()?(a(),l("section",{key:3,class:R(["file-card file-card-media","view-"+e.type])},[n("header",yW,[n("div",bW,[n("button",{type:"button",class:R(["btn btn-sm btn-icon-only btn-ghost card-files-btn",{"is-needed":e.sidebarHidden}]),title:"Show file tree",onClick:t[35]||(t[35]=u=>e.sidebarHidden?e.sidebarHidden=!1:e.sidebarCollapsed=!1)},[...t[87]||(t[87]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sidebar"})],-1),n("span",{class:"card-files-label"},"Files",-1)])],2),n("ol",wW,[n("li",kW,[n("a",{href:e.safeUrl("/r/"+e.repoId+"/"),title:e.repoId,textContent:d(/^[0-9a-f]{8}-[0-9a-f]{4}-/i.test(e.repoId||"")?"repository":e.repoId)},null,8,CW)]),(a(!0),l(V,null,X(e.paths,(u,p)=>(a(),l("li",{class:"breadcrumb-item","aria-current":p===e.paths.length-1?"page":null},[(a(!0),l(V,null,X(e.redactParts(u),(c,v)=>(a(),l(V,{key:v},[c.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+c.n},[n("i",null,d(c.n),1)],8,EW)):(a(),l(V,{key:1},[m(d(c.t),1)],64))],64))),128))],8,SW))),256))]),n("span",NW,[e.type=="IPython"&&e.redactionCount()?(a(),l("b",{key:0,class:"ms-item ms-redact",title:e.redactionCount()+" redacted terms"},[m(d(e.redactionCount()),1),t[88]||(t[88]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,RW)):f("v-if",!0),n("span",TW,d(e.fileKind()),1),e.imageSize?(a(),l("span",PW,d(e.imageSize),1)):f("v-if",!0),e.fileSize(e.filePath)!=null?(a(),l("span",DW,d(e.formatSize(e.fileSize(e.filePath))),1)):f("v-if",!0)]),P(n("button",{type:"button",class:"btn btn-sm btn-icon-only btn-ghost copy-path-btn","aria-label":e.pathCopied?"Path copied":"Copy file path",title:e.pathCopied?"Path copied":"Copy file path",onClick:t[36]||(t[36]=u=>e.copyPath())},[(a(),l("svg",IW,[n("use",{href:e.pathCopied?"#ui-icon-check":"#ui-icon-link"},null,8,OW)]))],8,AW),[[Q,e.filePath]])]),n("span",MW,[e.type=="IPython"&&e.redactionCount()?(a(),l(V,{key:0},[n("span",{class:"meta-redact",title:e.redactionCount()+" redacted terms"},[m(d(e.redactionCount()),1),t[89]||(t[89]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,VW),t[90]||(t[90]=n("span",{class:"sep"},"\xB7",-1))],64)):f("v-if",!0),m(d(e.fileKind()),1),e.imageSize?(a(),l(V,{key:1},[t[91]||(t[91]=n("span",{class:"sep"},"\xB7",-1)),m(d(e.imageSize),1)],64)):f("v-if",!0),e.fileSize(e.filePath)!=null?(a(),l(V,{key:2},[t[92]||(t[92]=n("span",{class:"sep"},"\xB7",-1)),m(d(e.formatSize(e.fileSize(e.filePath))),1)],64)):f("v-if",!0)]),e.preview&&e.previewPreserved()?(a(),l("button",{key:0,type:"button",class:"rp-preserved-tag",onClick:t[37]||(t[37]=u=>e.openPreserveFiles())},"Left unredacted")):f("v-if",!0),n("div",qW,[e.type=="error"&&e.content==="file_too_big"?(a(),l("span",LW,[...t[93]||(t[93]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1),m("Over the size limit",-1)])])):f("v-if",!0),e.type!="error"&&(!e.preview||e.url)?(a(),l("div",_W,[n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn",title:e.type=="IPython"?"Open the notebook JSON":"Open the raw file",href:e.safeUrl(e.url)},"Raw",8,$W),n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn tb-seg-icon","aria-label":"Download file",title:"Download file",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[94]||(t[94]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1)])],8,FW)])):f("v-if",!0),n("div",UW,[n("button",{type:"button",class:R(["btn btn-sm btn-icon-only btn-ghost tb-more-btn",{"is-on":e.moreOpen}]),"aria-label":"More actions","aria-haspopup":"true","aria-expanded":e.moreOpen?"true":"false",onClick:t[38]||(t[38]=de(u=>e.moreOpen=!e.moreOpen,["stop"]))},[(a(),l("svg",zW,[...t[95]||(t[95]=[n("circle",{cx:"5",cy:"12",r:"1.8"},null,-1),n("circle",{cx:"12",cy:"12",r:"1.8"},null,-1),n("circle",{cx:"19",cy:"12",r:"1.8"},null,-1)])]))],10,BW),e.moreOpen?(a(),l("div",{key:0,class:"tb-menu",role:"menu",onClick:t[40]||(t[40]=u=>e.moreOpen=!1)},[e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("div",HW,[t[96]||(t[96]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),m("Snapshot \xB7 "+d(e.fmt?.date(e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)),1)])):f("v-if",!0),e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("div",jW)):f("v-if",!0),e.type!="error"&&(!e.preview||e.url)?(a(),l("a",{key:2,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.url)},[t[97]||(t[97]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1)),m(d(e.type=="IPython"?"View notebook JSON":"View raw"),1)],8,GW)):f("v-if",!0),e.type!="error"&&(!e.preview||e.url)?(a(),l("a",{key:3,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[98]||(t[98]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),m("Download file",-1)])],8,WW)):f("v-if",!0),e.options?.download?(a(),l("a",{key:4,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[99]||(t[99]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-archive"})],-1),m("Download ZIP",-1)])],8,KW)):f("v-if",!0),n("button",{type:"button",role:"menuitem",onClick:t[39]||(t[39]=u=>e.copyPath())},[...t[100]||(t[100]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-link"})],-1),m("Copy file path",-1)])]),t[101]||(t[101]=n("div",{class:"tb-menu-sep"},null,-1)),t[102]||(t[102]=n("a",{role:"menuitem",href:"/faq"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})]),m("FAQ")],-1)),t[103]||(t[103]=n("a",{role:"menuitem",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",target:"_blank",rel:"noopener"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-bug"})]),m("Report a bug")],-1))])):f("v-if",!0)])])]),e.type=="image"?(a(),l("div",YW,[n("img",{class:"image-content",src:e.safeUrl(e.url),alt:e.paths[e.paths.length-1],onLoad:t[41]||(t[41]=u=>e.onImageLoad(u))},null,40,JW)])):f("v-if",!0),e.type=="media"?(a(),l("div",XW,[n("video",{class:"video-content",controls:"",preload:"metadata",playsinline:"",src:e.safeUrl(e.url)},null,8,QW)])):f("v-if",!0),e.type=="audio"?(a(),l("div",ZW,[n("audio",{controls:"",preload:"metadata",src:e.safeUrl(e.url)},null,8,xW)])):f("v-if",!0),e.type=="pdf"?(a(),Xt(i,{key:3,src:e.safeUrl(e.url)},null,8,["src"])):f("v-if",!0),e.type=="IPython"?(a(),l("div",eK,[Me(o,{class:"markdown-body",file:e.url,content:e.content},null,8,["file","content"])])):f("v-if",!0),e.type=="binary"?(a(),l("div",tK,[t[105]||(t[105]=n("svg",{class:"ui-icon file-state-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-file"})],-1)),t[106]||(t[106]=n("h2",{class:"file-state-title"},"No preview for this file",-1)),n("p",nK,d(e.preview?"Reviewers can open this file; it is not previewed here.":"This is a binary file. Download it to open it on your computer."),1),e.preview?f("v-if",!0):(a(),l("div",oK,[n("a",{target:e.preview?"_blank":"_self",class:"btn btn-primary",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[104]||(t[104]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),m("Download file",-1)])],8,sK)]))])):f("v-if",!0),e.type=="error"?(a(),l("div",iK,[t[108]||(t[108]=n("svg",{class:"ui-icon file-state-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),n("h2",rK,d(e.content==="file_too_big"?"This file is too large to preview":"This file can't be shown"),1),e.content==="file_too_big"?(a(),l("p",aK,d(e.preview?"Reviewers can open this file; it is not previewed here. Files over 1 MB are only shown on the reviewer page.":"It is over the size limit for anonymized files, so it can't be previewed or downloaded from this link."),1)):(a(),l("p",lK,d(e.fmt.translate("ERRORS."+e.content)),1)),e.preview?f("v-if",!0):(a(),l("div",dK,[n("a",{class:"btn btn-primary",href:e.safeUrl("/r/"+e.repoId+"/")},"Back to the repository",8,uK),t[107]||(t[107]=n("a",{class:"btn btn-outline-ink",href:"/faq#formats"},"Supported files",-1))]))])):f("v-if",!0),e.content==null&&e.type!="error"?(a(),l("div",cK,[...t[109]||(t[109]=[n("svg",{class:"ui-icon file-state-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-file"})],-1),n("h2",{class:"file-state-title"},"This file is empty",-1),n("p",{class:"file-state-msg"},"It has no content in this snapshot.",-1)])])):f("v-if",!0)],2)):f("v-if",!0),e.type=="rate_limited"?(a(),l("div",pK,[n("div",fK,[t[112]||(t[112]=Ce('
Temporarily paused
GitHub API rate limit reached
',1)),n("p",mK,[t[110]||(t[110]=m("This repository will be available in ",-1)),n("strong",null,d(e.rateLimitCountdown),1),t[111]||(t[111]=m(". The page will reload automatically.",-1))])])])):f("v-if",!0),e.type=="error"&&!e.fileFrame()?(a(),l("div",hK,[n("section",gK,[n("h1",vK,d(e.fmt.translate(e.isSourceAccessError()?"VIEWER_ERRORS.access_title":"VIEWER_ERRORS.title")),1),n("p",null,d(e.fmt.translate("ERRORS."+e.content)),1),e.isSourceAccessError()?(a(),l(V,{key:0},[n("p",null,d(e.fmt.translate("VIEWER_ERRORS.reader_help")),1),n("p",null,d(e.fmt.translate("VIEWER_ERRORS.owner_help")),1)],64)):f("v-if",!0),n("div",yK,[e.isSourceAccessError()?f("v-if",!0):(a(),l("a",bK,"Back to home")),e.isSourceAccessError()?f("v-if",!0):(a(),l("a",wK,"Read the FAQ")),n("button",{type:"button",class:"btn btn-primary",onClick:t[42]||(t[42]=u=>e.retryContent())},d(e.fmt.translate("VIEWER_ERRORS.retry")),1),e.isSourceAccessError()?(a(),l("a",kK,d(e.fmt.translate("VIEWER_ERRORS.dashboard")),1)):f("v-if",!0)])])])):f("v-if",!0),e.type=="loading"&&!e.error?(a(),l("section",CK,[n("div",SK,[n("strong",null,d(e.fmt.translate(e.fileReceivedBytes?"VIEWER_LOADING.receiving":"VIEWER_LOADING.loading")),1),n("span",EK,d(e.filePath),1),e.fileLoadingSlow?(a(),l("p",NK,d(e.fmt.translate("VIEWER_LOADING.slow")),1)):f("v-if",!0)]),n("div",RK,[(a(),l(V,null,X(10,u=>n("span",{key:u})),64))])])):f("v-if",!0),e.type=="empty"?(a(),l("div",TK,[...t[113]||(t[113]=[n("h1",{class:"paper-empty-title m-auto"},[m("Empty "),n("em",null,"repository"),m(".")],-1)])])):f("v-if",!0),e.content==null&&!["empty","loading","error","rate_limited"].includes(e.type)&&!e.fileFrame()?(a(),l("div",PK,[...t[114]||(t[114]=[n("h1",{class:"paper-empty-title m-auto"},[m("Empty "),n("em",null,"file"),m(".")],-1)])])):f("v-if",!0)],64)}var DK={class:"container page dashboard-page paper-page"},AK={class:"row"},IK={class:"w-100"},OK={class:"w-100","aria-label":"Pull Requests","accept-charset":"UTF-8"},MK={class:"d-flex flex-column flex-md-row align-items-md-center",style:{gap:"8px"}},VK={class:"flex-grow-1"},qK={type:"search",id:"search",class:"form-control","aria-label":"Find a pull request...",placeholder:"Find a pull request...",autocomplete:"off"},LK={class:"d-flex flex-wrap",style:{gap:"6px"}},_K={class:"dropdown"},$K={class:"dropdown-menu","aria-labelledby":"dropdownSort"},FK={class:"form-check dropdown-item"},UK={class:"form-check-input",type:"radio",name:"sort",id:"sortFullName",value:"fullName"},BK={class:"form-check dropdown-item"},zK={class:"form-check-input",type:"radio",name:"sort",id:"sortAnonymizeDate",value:"-anonymizeDate"},HK={class:"form-check dropdown-item"},jK={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},GK={class:"form-check dropdown-item"},WK={class:"form-check-input",type:"radio",name:"sort",id:"sortLastView",value:"-lastView"},KK={class:"form-check dropdown-item"},YK={class:"form-check-input",type:"radio",name:"sort",id:"sortPageView",value:"-pageView"},JK={class:"dropdown"},XK={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},QK={class:"form-check dropdown-item"},ZK={class:"form-check-input",type:"checkbox",name:"sort",id:"statusReady",value:"ready"},xK={class:"form-check dropdown-item"},eY={class:"form-check-input",type:"checkbox",name:"sort",id:"statusExpired",value:"expired"},tY={class:"form-check dropdown-item"},nY={class:"form-check-input",type:"checkbox",name:"sort",id:"statusRemoved",value:"removed"},oY={class:"d-flex flex-wrap mt-2",style:{gap:"6px"}},sY={class:"filter-chip"},iY=["onClick"],rY={class:"repo-list w-100"},aY={class:"repo-list-item-content"},lY={class:"repo-list-item-main"},dY={class:"repo-list-item-header"},uY=["textContent","href"],cY=["textContent"],pY=["textContent"],fY={class:"repo-source"},mY=["href"],hY={class:"repo-date"},gY={class:"repo-meta"},vY={key:0,title:"Conference"},yY=["title"],bY=["title"],wY=["title"],kY={key:1},CY={class:"repo-list-item-actions"},SY={class:"dropdown"},EY={class:"dropdown-menu dropdown-menu-right"},NY=["href"],RY=["onClick"],TY=["onClick"],PY=["onClick"],DY=["href"],AY={key:0,class:"repo-list-empty"};function Op(e,t){let s=Pe("field"),i=Pe("form");return a(),l("div",DK,[n("div",AK,[n("div",IK,[t[12]||(t[12]=Ce('
My work \xA0/\xA0 Pull requests

Anonymized pull requests

Track PR mirrors you\u2019ve created and their reviewer traffic.

',2)),f(" Search + filters row "),P((a(),l("form",OK,[n("div",MK,[n("div",VK,[P(n("input",qK,null,512),[[s,{state:e.viewState,set:o=>{e.search=o},value:e.search,form:null,options:{}}]])]),n("div",LK,[n("div",_K,[t[6]||(t[6]=n("button",{class:"btn btn-sm dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Sort ",-1)),n("div",$K,[t[5]||(t[5]=n("h6",{class:"dropdown-header"},"Select order",-1)),n("div",FK,[P(n("input",UK,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[0]||(t[0]=n("label",{class:"form-check-label",for:"sortFullName"},"Pull Request",-1))]),n("div",BK,[P(n("input",zK,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[1]||(t[1]=n("label",{class:"form-check-label",for:"sortAnonymizeDate"},"Anonymize Date",-1))]),n("div",HK,[P(n("input",jK,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[2]||(t[2]=n("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),n("div",GK,[P(n("input",WK,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[3]||(t[3]=n("label",{class:"form-check-label",for:"sortLastView"},"Last View",-1))]),n("div",KK,[P(n("input",YK,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[4]||(t[4]=n("label",{class:"form-check-label",for:"sortPageView"},"Page View",-1))])])]),n("div",JK,[t[11]||(t[11]=n("button",{class:"btn btn-sm dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Status ",-1)),n("div",XK,[t[10]||(t[10]=n("h6",{class:"dropdown-header"},"Select status",-1)),n("div",QK,[P(n("input",ZK,null,512),[[s,{state:e.viewState,set:o=>{e.filters.status.ready=o},value:e.filters?.status?.ready,form:null,options:{}}]]),t[7]||(t[7]=n("label",{class:"form-check-label",for:"statusReady"},"Ready",-1))]),n("div",xK,[P(n("input",eY,null,512),[[s,{state:e.viewState,set:o=>{e.filters.status.expired=o},value:e.filters?.status?.expired,form:null,options:{}}]]),t[8]||(t[8]=n("label",{class:"form-check-label",for:"statusExpired"},"Expired",-1))]),n("div",tY,[P(n("input",nY,null,512),[[s,{state:e.viewState,set:o=>{e.filters.status.removed=o},value:e.filters?.status?.removed,form:null,options:{}}]]),t[9]||(t[9]=n("label",{class:"form-check-label",for:"statusRemoved"},"Removed",-1))])])])])])])),[[i,e.viewState]]),f(" Active filter chips "),P(n("div",oY,[(a(!0),l(V,null,X(e.filters?.status,(o,r,u)=>P((a(),l("span",sY,[m(d(e.fmt?.title(r))+" ",1),n("button",{type:"button",class:"filter-chip-close","aria-label":"Remove filter",onClick:p=>{e.filters.status[r]=!0}}," \xD7 ",8,iY)],512)),[[Q,!o]])),256))],512),[[Q,e.filters?.status?.ready===!1||e.filters?.status?.expired===!1||e.filters?.status?.removed===!1]])]),f(" Pull request list "),n("ul",rY,[(a(!0),l(V,null,X(e.filteredPullRequests,(o,r)=>(a(),l("li",{class:R(["repo-list-item",{"repo-inactive":o?.status=="expired"||o?.status=="removed"||o?.status=="error"}])},[n("div",aY,[n("div",lY,[n("div",dY,[n("a",{class:"repo-name",textContent:d(o?.pullRequestId),href:e.safeUrl("/pr/"+o?.pullRequestId)},null,8,uY),n("span",{class:R(["status-badge",{"status-removed":o?.status=="removed"||o?.status=="expired"||o?.status=="removing"||o?.status=="expiring","status-preparing":o?.status=="preparing"||o?.status=="download","status-ready":o?.status=="ready","status-error":o?.status=="error"}])},[n("span",{textContent:d(e.fmt?.title(o?.status))},null,8,cY),o?.status=="error"?(a(),l("span",{key:0,textContent:d(": "+o?.statusMessage)},null,8,pY)):f("v-if",!0)],2)]),n("div",fY,[n("span",null,[t[13]||(t[13]=n("i",{class:"fab fa-github","aria-hidden":"true"},null,-1)),n("a",{href:e.safeUrl("https://github.com/"+o?.source?.repositoryFullName+"/pull/"+o?.source?.pullRequestId)},d(o?.source?.repositoryFullName)+"#"+d(o?.source?.pullRequestId),9,mY)]),n("span",{class:R(["status-badge",{"status-ready":o?.merged,"status-removed":o?.state=="open","status-error":o?.state=="closed"&&!o?.merged}]),style:{"font-size":"10px"}},d(e.fmt?.title(o?.merged?"merged":o?.state)),3),n("span",hY,"anonymized "+d(e.fmt?.humanTime(o?.anonymizeDate)),1)])]),n("div",gY,[o?.conference?(a(),l("span",vY,[t[14]||(t[14]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),m(" "+d(o?.conference),1)])):f("v-if",!0),n("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Terms: "+o?.options?.terms?.join(", ")},[t[15]||(t[15]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1)),m(" "+d(e.fmt?.number(o?.options?.terms?.length)),1)],8,yY),n("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Views: "+e.fmt?.number(o?.pageView)},[t[16]||(t[16]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1)),m(" "+d(e.fmt?.number(o?.pageView)),1)],8,bY),n("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Last view: "+e.fmt?.date(o?.lastView)},[t[17]||(t[17]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-calendar"})],-1)),m(" "+d(e.fmt?.humanTime(o?.lastView)),1)],8,wY),o?.options?.expirationMode!="never"&&o?.status=="ready"?(a(),l("span",kY,[t[18]||(t[18]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),m(" Expire: "+d(e.fmt?.humanTime(o?.options?.expirationDate)),1)])):f("v-if",!0)])]),n("div",CY,[n("div",SY,[t[24]||(t[24]=n("button",{class:"btn btn-sm dropdown-toggle",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Actions ",-1)),n("div",EY,[n("a",{class:"dropdown-item",href:e.safeUrl("/pull-request-anonymize/"+o?.pullRequestId)},[...t[19]||(t[19]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),m(" Edit ",-1)])],8,NY),P(n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.updatePullRequest(o),["prevent"])},[...t[20]||(t[20]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),m(" Force update ",-1)])],8,RY),[[Q,o?.status=="ready"||o?.status=="error"]]),P(n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.updatePullRequest(o),["prevent"])},[...t[21]||(t[21]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),m(" Enable ",-1)])],8,TY),[[Q,o?.status=="removed"]]),P(n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.removePullRequest(o),["prevent"])},[...t[22]||(t[22]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),m(" Remove ",-1)])],8,PY),[[Q,o?.status=="ready"]]),n("a",{class:"dropdown-item",href:e.safeUrl("/pr/"+o?.pullRequestId+"/")},[...t[23]||(t[23]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),m(" View PR ",-1)])],8,DY)])])])],2))),256)),e.filteredPullRequests?.length==0?(a(),l("li",AY,[...t[25]||(t[25]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1),n("span",null,"No pull requests to display.",-1)])])):f("v-if",!0)])])])}var IY={class:"container paper-page user-settings"},OY={class:"settings-nav","aria-label":"Settings"},MY=["aria-current","onClick"],VY={class:"settings-row"},qY=["rows"],LY={class:"settings-syntax"},_Y={class:"invalid-feedback"},$Y={class:"settings-row"},FY={class:"settings-checks"},UY={class:"settings-check"},BY={class:"form-check-input",type:"checkbox",id:"link",name:"link"},zY={class:"settings-check"},HY={class:"form-check-input",type:"checkbox",id:"image",name:"image"},jY={class:"settings-check"},GY={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},WY={class:"settings-check"},KY={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},YY={class:"settings-check"},JY={class:"form-check-input",type:"checkbox",id:"loc",name:"loc"},XY={class:"settings-check"},QY={class:"form-check-input",type:"checkbox",id:"page",name:"page"},ZY={class:"settings-row"},xY={class:"settings-check"},eJ={class:"form-check-input",type:"checkbox",id:"update",name:"update"},tJ={class:"settings-row"},nJ={class:"form-control",id:"expiration",name:"expiration"},oJ={class:"settings-help"},sJ={class:"settings-save"},iJ={class:"settings-save-status draft-status",role:"status"},rJ={key:0},aJ={key:1},lJ={key:2},dJ=["disabled"],uJ={key:1,class:"settings-save-error",role:"alert"},cJ=["aria-busy"],pJ={key:0,role:"status"},fJ={key:1,class:"settings-notice",role:"alert"},mJ=["disabled"],hJ={key:2,class:"settings-notice",role:"status"},gJ={key:3,class:"settings-notice",role:"status"},vJ=["disabled"],yJ={class:"billing-summary"},bJ={class:"billing-summary-head"},wJ={class:"billing-plan-name"},kJ={key:0,class:"billing-plan-meta"},CJ={key:1,class:"billing-plan-meta"},SJ={key:0,class:"billing-summary-actions"},EJ=["disabled"],NJ={id:"settings-quota"},RJ={key:1,role:"status"},TJ={key:0,class:"settings-notice"},PJ={key:1,class:"settings-notice"},DJ={key:2,class:"settings-notice"},AJ={key:4,class:"billing-section","aria-labelledby":"settings-plan-comparison"},IJ={key:0,class:"billing-offers"},OJ={key:0,class:"billing-offer is-recommended"},MJ={class:"billing-offer-price"},VJ={class:"billing-offer-list"},qJ=["disabled"],LJ={key:1,class:"billing-offer"},_J={class:"billing-offer-head"},$J={class:"billing-toggle",role:"radiogroup","aria-label":"Billing frequency"},FJ=["aria-checked","onClick"],UJ={key:0,class:"billing-toggle-save"},BJ={class:"billing-offer-price"},zJ={class:"billing-offer-list"},HJ=["disabled"],jJ={key:1,class:"billing-addons"},GJ={class:"billing-addon-rows"},WJ={class:"billing-addon-price"},KJ=["onClick","disabled"],YJ={key:2,class:"billing-buy",id:"settings-addons-title",tabindex:"-1"},JJ={class:"billing-buy-info"},XJ={class:"billing-offer-price"},QJ={class:"billing-offer-list"},ZJ={class:"billing-buy-form"},xJ=["value"],eX=["disabled"],tX={key:1,class:"billing-buy-desc"},nX={key:2,class:"billing-footnote"},oX={class:"billing-compare"},sX={class:"billing-compare-card"},iX={class:"settings-comparison"},rX={key:0,scope:"col",class:"is-recommended"},aX={key:1,scope:"col"},lX={key:0,class:"is-recommended"},dX={key:1},uX={key:0,class:"is-recommended"},cX={key:1},pX={key:0,class:"is-recommended"},fX={key:1},mX={key:0,class:"is-recommended"},hX={key:1},gX={key:0,class:"is-recommended"},vX={key:1},yX={key:0,class:"is-recommended"},bX={key:1},wX={key:3,class:"billing-footnote"},kX={key:5,class:"billing-section"},CX={class:"billing-section-head"},SX=["disabled"],EX={key:0,class:"billing-empty"},NX={key:1,class:"billing-history-head","aria-hidden":"true"},RX={key:2,class:"billing-history"},TX={class:"billing-history-main"},PX=["href"],DX=["href"],AX={class:"billing-history-term"},IX={class:"billing-history-paid"},OX={class:"billing-history-status"},MX={class:"billing-manage"},VX={key:0},qX={key:1},LX=["disabled"],_X={class:"billing-conference"},$X={id:"settings-account",class:"settings-account-panel"},FX={class:"paper-account-card"},UX=["src"],BX={class:"paper-account-identity"},zX={class:"paper-account-name"},HX=["disabled"],jX={key:0,role:"status"},GX={key:1,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},WX=["disabled"],KX={key:3,role:"status"},YX={class:"paper-danger-zone"},JX={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},XX=["textContent"],QX=["disabled"],ZX={key:1,class:"settings-delete-confirm"},xX={for:"delete-username"},eQ={class:"settings-actions"},tQ=["disabled"],nQ=["disabled"];function Mp(e,t){let s=Qe("quota-usage"),i=Pe("field"),o=Pe("form");return a(),l("div",IY,[t[107]||(t[107]=n("header",{class:"settings-title page-head page-head-main"},[n("h1",null,"Settings"),n("p",{class:"paper-page-lede"},"Defaults for new anonymizations, hosting and your account.")],-1)),n("nav",OY,[(a(),l(V,null,X([{id:"defaults",label:"Anonymization defaults"},{id:"billing",label:"Hosting & billing"},{id:"account",label:"Account"}],r=>n("button",{type:"button","aria-current":e.settingsTab===r.id?"page":null,onClick:u=>e.settingsTab=r.id},d(r.label),9,MY)),64))]),P(n("div",null,[t[41]||(t[41]=n("p",{class:"settings-scope"},"For new anonymizations only. Existing repositories keep their settings.",-1)),P((a(),l("form",{class:"form needs-validation",name:"defaultsForm",novalidate:"",onInput:t[1]||(t[1]=r=>e.unsavedChanges=!0),onSubmit:t[2]||(t[2]=de(r=>e.submitForm(r,()=>{e.saveDefault(r)}),["prevent"]))},[n("section",VY,[t[26]||(t[26]=n("div",null,[n("label",{class:"settings-label",for:"terms"},"Terms to redact"),n("p",{class:"settings-help"},"One term per line.")],-1)),n("div",null,[P(n("textarea",{class:"form-control",id:"terms",name:"terms",rows:Math.min(14,Math.max(3,String(e.terms||"").split(` `).length+1)),placeholder:`Jane Smith MIT CSAIL -jane.smith@example.org`},null,8,qY),[[i,{state:e.viewState,set:r=>{e.terms=r},value:e.terms,form:"defaultsForm",options:{debounce:250}}]]),n("details",LY,[t[25]||(t[25]=n("summary",null,"Regex & replacement syntax",-1)),n("p",null,[t[21]||(t[21]=m("Matches become ",-1)),n("code",null,d(e.site_options?.ANONYMIZATION_MASK||"XXX")+"-[N]",1),t[22]||(t[22]=m(". Use ",-1)),t[23]||(t[23]=n("code",null,"term=>replacement",-1)),t[24]||(t[24]=m(" for a custom replacement. Regex is supported.",-1))])]),P(n("div",_Y,"Terms are in an invalid format.",512),[[Q,e.defaultsForm?.terms?.errors?.format]])])]),n("section",$Y,[t[35]||(t[35]=n("h2",null,"Reviewer display",-1)),n("div",null,[n("div",FY,[n("label",UY,[P(n("input",BY,null,512),[[i,{state:e.viewState,set:r=>{e.options.link=r},value:e.options?.link,form:"defaultsForm",options:{}}]]),t[27]||(t[27]=m("Keep links",-1))]),n("label",zY,[P(n("input",HY,null,512),[[i,{state:e.viewState,set:r=>{e.options.image=r},value:e.options?.image,form:"defaultsForm",options:{}}]]),t[28]||(t[28]=m("Display images",-1))]),n("label",jY,[P(n("input",GY,null,512),[[i,{state:e.viewState,set:r=>{e.options.pdf=r},value:e.options?.pdf,form:"defaultsForm",options:{}}]]),t[29]||(t[29]=m("Display PDFs",-1))]),n("label",WY,[P(n("input",KY,null,512),[[i,{state:e.viewState,set:r=>{e.options.notebook=r},value:e.options?.notebook,form:"defaultsForm",options:{}}]]),t[30]||(t[30]=m("Display notebooks",-1))]),n("label",YY,[P(n("input",JY,null,512),[[i,{state:e.viewState,set:r=>{e.options.loc=r},value:e.options?.loc,form:"defaultsForm",options:{}}]]),t[31]||(t[31]=m("Show line counts",-1))]),n("label",XY,[P(n("input",QY,null,512),[[i,{state:e.viewState,set:r=>{e.options.page=r},value:e.options?.page,form:"defaultsForm",options:{}}]]),t[32]||(t[32]=m("GitHub Pages",-1))])]),t[33]||(t[33]=n("p",{class:"settings-help"},"Images and PDFs are not anonymized.",-1)),t[34]||(t[34]=n("p",{class:"settings-help"},"GitHub Pages must use the anonymized branch.",-1))])]),n("section",ZY,[t[38]||(t[38]=n("h2",null,"Source updates",-1)),n("div",null,[n("label",xY,[P(n("input",eJ,null,512),[[i,{state:e.viewState,set:r=>{e.options.update=r},value:e.options?.update,form:"defaultsForm",options:{}}]]),t[36]||(t[36]=m("Auto-update from GitHub",-1))]),t[37]||(t[37]=n("p",{class:"settings-help"},"Latest commit, at most once an hour.",-1))])]),n("section",tJ,[t[40]||(t[40]=n("label",{class:"settings-label",for:"expiration"},"On expiration",-1)),n("div",null,[P((a(),l("select",nJ,[...t[39]||(t[39]=[n("option",{value:"redirect"},"Redirect visitors to the GitHub repository",-1),n("option",{value:"remove",selected:""},"Remove the anonymized repository",-1)])])),[[i,{state:e.viewState,set:r=>{e.options.expirationMode=r},value:e.options?.expirationMode,form:"defaultsForm",options:{}}]]),n("p",oJ,d(e.options.expirationMode==="redirect"?"Redirecting reveals the original repository. Choose the date per anonymization.":"Set the expiration date for each repository."),1)])]),n("footer",sJ,[n("div",iJ,[e.draftRestored?(a(),l("span",rJ,"Your unsaved draft was restored.")):e.unsavedChanges?(a(),l("span",aJ,"Unsaved changes"+d(e.draftSaved?" \xB7 Draft saved in this tab":""),1)):(a(),l("span",lJ,d(e.message?"Defaults saved":"No unsaved changes"),1))]),e.draftRestored||e.unsavedChanges?(a(),l("button",{key:0,type:"button",class:"draft-discard",onClick:t[0]||(t[0]=r=>e.discardDraft())},"Discard changes")):f("v-if",!0),n("button",{id:"save",type:"submit",class:R(["btn btn-ink",{"is-saving":e.saving}]),disabled:e.saving||!(e.unsavedChanges||e.draftRestored)},d(e.saving?"Saving\u2026":"Save defaults"),11,dJ),e.error?(a(),l("div",uJ,d(e.error),1)):f("v-if",!0)])],32)),[[o,e.viewState]])],512),[[Q,e.settingsTab==="defaults"]]),P(n("section",{id:"settings-billing","aria-busy":e.billingLoading||e.billingBusy},[t[95]||(t[95]=n("p",{class:"settings-scope"},"Your plan and usage. Reviewer access is always free.",-1)),e.billingLoading?(a(),l("p",pJ,"Loading billing\u2026")):f("v-if",!0),e.billingError?(a(),l("div",fJ,[m(d(e.billingError)+" ",1),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[3]||(t[3]=r=>e.loadBilling()),disabled:e.billingBusy},"Try again",8,mJ)])):f("v-if",!0),e.billingNotice?(a(),l("p",hJ,d(e.billingNotice),1)):f("v-if",!0),e.billingPending?(a(),l("div",gJ,[t[42]||(t[42]=n("strong",null,"Confirming your payment",-1)),t[43]||(t[43]=n("p",null,"Your allowance will update after confirmation. Please do not pay again.",-1)),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[4]||(t[4]=r=>e.refreshBilling()),disabled:e.billingBusy},"Check payment status",8,vJ)])):f("v-if",!0),n("section",yJ,[n("div",bJ,[n("div",null,[t[44]||(t[44]=n("p",{class:"billing-eyebrow"},"Current plan",-1)),n("h2",wJ,d(e.profileAuthorGrant()?e.profileGrantName(e.profileAuthorGrant()):e.billing?.enabled?"Free":"Account allowance"),1),e.profileAuthorGrant()?(a(),l("p",kJ,[m(d(e.profileAuthorGrant().cancelAtPeriodEnd?"Renewal cancelled \xB7 access until ":"Renews ")+d(e.billingDate(e.profileAuthorGrant().until)),1),e.profileAuthorPurchase()?.amount!=null?(a(),l(V,{key:0},[m(" \xB7 "+d(e.billingPrice(e.profileAuthorPurchase())),1)],64)):f("v-if",!0)])):e.billing?.allowance?(a(),l("p",CJ,d(e.billing.allowance.repositories)+" repositories \xB7 "+d(e.billingBytes(e.billing.allowance.storage))+" \xB7 links up to "+d(e.billing.freeExpirationMonths||5)+" months",1)):f("v-if",!0)]),e.profileAuthorGrant()&&e.billing?.portal?(a(),l("div",SJ,[n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[5]||(t[5]=r=>e.billingPortal()),disabled:e.billingBusy},d(e.profileAuthorGrant().cancelAtPeriodEnd?"Resume renewal":"Change or cancel plan"),9,EJ)])):f("v-if",!0)]),n("div",NJ,[e.quota?(a(),Jt(s,{key:0,quota:e.quota,fmt:e.fmt},null,8,["quota","fmt"])):(a(),l("p",RJ,"Loading usage\u2026"))]),e.quota?.repository&&!e.quota.repository.unlimited&&e.quota.repository.used>=e.quota.repository.total?(a(),l("p",TJ,[m("Your free repositories are used up. Add the next one for "+d(e.profileSlotPlan()?e.billingPrice(e.profileSlotPlan()):"a one-time payment")+" when you create it, or ",1),t[45]||(t[45]=n("a",{href:"/dashboard"},"remove work you no longer need",-1)),t[46]||(t[46]=m(".",-1))])):f("v-if",!0),e.profileAuthorGrant()?.status==="past_due"?(a(),l("p",PJ,"A subscription payment is overdue. Update your payment details in Manage billing and invoices.")):f("v-if",!0),e.profilePastSubscription()?(a(),l("p",DJ,[...t[47]||(t[47]=[m("Your previous subscription has ended. Never-expiring repositories stay online for a 90-day grace period. ",-1),n("a",{href:"/dashboard"},"Review expiration dates",-1),m(".",-1)])])):f("v-if",!0),t[48]||(t[48]=n("p",{class:"billing-footnote"},"Co-authored, paid and conference repositories aren't counted here.",-1))]),e.billing?.enabled&&!e.profileAuthorGrant()&&(e.profilePackPlan()||e.profileAuthorPlans().length)?(a(),l("section",AJ,[t[85]||(t[85]=n("h2",{class:"billing-section-title",id:"settings-plan-comparison",tabindex:"-1"},"Get more",-1)),e.showRepositoryPass&&e.profileAddon()&&!e.billingPending?f("v-if",!0):(a(),l("div",IJ,[e.profilePackPlan()?(a(),l("article",OJ,[t[54]||(t[54]=n("span",{class:"billing-offer-pill"},"Recommended",-1)),t[55]||(t[55]=n("div",{class:"billing-offer-head"},[n("p",{class:"billing-eyebrow"},"For one paper")],-1)),t[56]||(t[56]=n("h3",null,"Paper pack",-1)),n("p",MJ,[n("strong",null,d(e.billingAmount(e.profilePackPlan())),1),t[49]||(t[49]=m(" once",-1))]),n("ul",VJ,[t[50]||(t[50]=n("li",null,"One more repository, outside your free ones",-1)),n("li",null,"Its own "+d(e.billingBytes(e.profileSlotPlan()?.storage||e.profilePassPlan()?.storage))+" of storage",1),t[51]||(t[51]=n("li",null,"Automatic updates for 180 days",-1)),t[52]||(t[52]=n("li",null,"Online for up to a year",-1)),t[53]||(t[53]=n("li",null,"No subscription",-1))]),n("button",{type:"button",class:"btn btn-ink",onClick:t[6]||(t[6]=r=>e.openProfileAddon("repo_pack")),disabled:e.billingPending||e.billing.checkoutEnabled===!1},"Buy a Paper pack",8,qJ)])):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("article",LJ,[n("div",_J,[t[57]||(t[57]=n("p",{class:"billing-eyebrow"},"For many papers",-1)),n("div",$J,[(a(!0),l(V,null,X(e.profileAuthorPlansByValue(),r=>(a(),l("button",{type:"button",role:"radio",key:r.id,"aria-checked":e.profileSelectedPlan()?.id===r.id?"true":"false",class:R({"is-on":e.profileSelectedPlan()?.id===r.id}),onClick:u=>e.profilePlan=r.id},[m(d(r.interval==="year"?"Yearly":"Monthly"),1),r.interval==="year"&&e.profileAnnualSavings()?(a(),l("span",UJ,"\u2212"+d(e.profileAnnualSavings())+"%",1)):f("v-if",!0)],10,FJ))),128))])]),t[62]||(t[62]=n("h3",null,"Author subscription",-1)),n("p",BJ,[n("strong",null,d(e.billingAmount(e.profileSelectedPlan())),1),m(" per "+d(e.profileSelectedPlan()?.interval==="year"?"year":"month"),1)]),n("ul",zJ,[n("li",null,d(e.profileSelectedPlan()?.repositories)+" repositories, "+d(e.billingBytes(e.profileSelectedPlan()?.storage)),1),t[58]||(t[58]=n("li",null,"Automatic updates",-1)),t[59]||(t[59]=n("li",null,"Links that never expire",-1)),t[60]||(t[60]=n("li",null,"Coauthors included",-1)),t[61]||(t[61]=n("li",null,"Cancel renewal anytime",-1))]),n("button",{type:"button",class:"btn btn-outline-ink",disabled:e.billingBusy||e.billing.checkoutEnabled===!1,onClick:t[7]||(t[7]=r=>e.checkout(e.profileSelectedPlan().id))},d(e.billingBusy?"Please wait\u2026":"Subscribe"),9,HJ)])):f("v-if",!0)])),e.profileSingleAddons().length&&!(e.showRepositoryPass&&e.profileAddon()&&!e.billingPending)?(a(),l("div",jJ,[t[63]||(t[63]=n("div",{class:"billing-addons-head"},[n("h3",{class:"billing-subtitle"},"Or pay for one thing"),n("span",null,"One-time")],-1)),n("ul",GJ,[(a(!0),l(V,null,X(e.profileSingleAddons(),r=>(a(),l("li",{key:r.id},[n("div",null,[n("strong",null,d(r.name),1),n("span",null,d(e.profileAddonBlurb(r.id)),1)]),n("span",WJ,d(e.billingAmount(r)),1),n("button",{type:"button",class:"settings-text-button",onClick:u=>e.openProfileAddon(r.id),disabled:e.billingPending||e.billing.checkoutEnabled===!1},"Buy",8,KJ)]))),128))])])):f("v-if",!0),e.showRepositoryPass&&e.profileAddon()&&!e.billingPending?(a(),l("div",YJ,[n("div",JJ,[n("button",{type:"button",class:"btn btn-outline-ink billing-back",onClick:t[8]||(t[8]=r=>e.showRepositoryPass=!1)},"\u2190 All options"),n("h3",null,d(e.profileAddon().name),1),n("p",XJ,[n("strong",null,d(e.billingAmount(e.profileAddon())),1),t[64]||(t[64]=m(" once",-1))]),n("ul",QJ,[(a(!0),l(V,null,X(e.profileAddonFeatures(e.profileAddon().id),r=>(a(),l("li",{key:r},d(r),1))),128))])]),n("div",ZJ,[e.profileRepositories().length?(a(),l(V,{key:0},[t[66]||(t[66]=n("label",{class:"paper-field-label",for:"billing-repository"},"Which repository?",-1)),P(n("select",{id:"billing-repository",class:"form-control","onUpdate:modelValue":t[9]||(t[9]=r=>e.billingRepository=r)},[t[65]||(t[65]=n("option",{value:"",disabled:""},"Choose a repository",-1)),(a(!0),l(V,null,X(e.profileRepositories(),r=>(a(),l("option",{key:r.repoId,value:r.repoId},d(r.repoId)+" \xB7 "+d(e.profileRepositoryExpiry(r)),9,xJ))),128))],512),[[Nt,e.billingRepository]]),n("button",{type:"button",class:"btn btn-ink",disabled:e.billingBusy||!e.billingRepository||e.billing.checkoutEnabled===!1,onClick:t[10]||(t[10]=r=>e.checkout(e.profileAddon().id,e.billingRepository))},d(e.billingBusy?"Please wait\u2026":"Continue to checkout"),9,eX),t[67]||(t[67]=n("p",{class:"billing-footnote"},"One-time payment. Tax shown at checkout.",-1))],64)):(a(),l("p",tX,[...t[68]||(t[68]=[m("You have no repositories yet. ",-1),n("a",{href:"/anonymize"},"Create one",-1),m(" first.",-1)])])),["repo_slot","repo_pack"].includes(e.profileAddon().id)?(a(),l("p",nX,[...t[69]||(t[69]=[m("Adding a new repository? ",-1),n("a",{href:"/anonymize"},"Start creating it",-1),m("; the form offers this once your free repositories are in use.",-1)])])):f("v-if",!0)])])):f("v-if",!0),n("details",oX,[t[84]||(t[84]=n("summary",null,"Compare all features",-1)),n("div",sX,[n("table",iX,[t[83]||(t[83]=n("caption",{class:"sr-only"},"Free, Paper pack and Author hosting",-1)),n("thead",null,[n("tr",null,[t[72]||(t[72]=n("th",{scope:"col"},[n("span",{class:"sr-only"},"Feature")],-1)),t[73]||(t[73]=n("th",{scope:"col"},[m("Free"),n("small",null,"\u20AC0")],-1)),e.profilePackPlan()?(a(),l("th",rX,[t[70]||(t[70]=m("Paper pack",-1)),n("small",null,d(e.billingPrice(e.profilePackPlan())),1)])):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("th",aX,[t[71]||(t[71]=m("Author",-1)),n("small",null,d(e.billingPrice(e.profileSelectedPlan())),1)])):f("v-if",!0)])]),n("tbody",null,[n("tr",null,[t[74]||(t[74]=n("th",{scope:"row"},"Repositories",-1)),n("td",null,d(e.billing.allowance?.repositories),1),e.profilePackPlan()?(a(),l("td",lX,"+1")):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",dX,d(e.profileSelectedPlan()?.repositories),1)):f("v-if",!0)]),n("tr",null,[t[75]||(t[75]=n("th",{scope:"row"},"Source storage",-1)),n("td",null,d(e.billingBytes(e.billing.allowance?.storage))+" total",1),e.profilePackPlan()?(a(),l("td",uX,d(e.billingBytes(e.profileSlotPlan()?.storage||e.profilePassPlan()?.storage))+" for it",1)):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",cX,d(e.billingBytes(e.profileSelectedPlan()?.storage))+" total",1)):f("v-if",!0)]),n("tr",null,[t[76]||(t[76]=n("th",{scope:"row"},"Latest expiration",-1)),n("td",null,d(e.billing.freeExpirationMonths||5)+" months ahead",1),e.profilePackPlan()?(a(),l("td",pX,"1 year after purchase")):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",fX,"Never")):f("v-if",!0)]),n("tr",null,[t[77]||(t[77]=n("th",{scope:"row"},"Automatic updates",-1)),t[78]||(t[78]=n("td",null,"No",-1)),e.profilePackPlan()?(a(),l("td",mX,"180 days")):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",hX,"Yes")):f("v-if",!0)]),n("tr",null,[t[79]||(t[79]=n("th",{scope:"row"},"Renews",-1)),t[80]||(t[80]=n("td",null,"No",-1)),e.profilePackPlan()?(a(),l("td",gX,"No")):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",vX,"Until cancelled")):f("v-if",!0)]),n("tr",null,[t[81]||(t[81]=n("th",{scope:"row"},"Reviewer access",-1)),t[82]||(t[82]=n("td",null,"Free",-1)),e.profilePackPlan()?(a(),l("td",yX,"Free")):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",bX,"Free")):f("v-if",!0)])])])])]),e.billing.checkoutEnabled===!1?(a(),l("p",wX,"New purchases are not available right now. Existing billing can still be managed below.")):f("v-if",!0)])):f("v-if",!0),e.billing?.enabled?(a(),l("section",kX,[n("div",CX,[t[86]||(t[86]=n("h2",{class:"billing-section-title"},"Purchases",-1)),e.billingPending?f("v-if",!0):(a(),l("button",{key:0,type:"button",class:"settings-text-button",onClick:t[11]||(t[11]=r=>e.refreshBilling()),disabled:e.billingBusy},"Refresh payment status",8,SX))]),(e.billing.purchases||[]).length?f("v-if",!0):(a(),l("p",EX,"No purchases yet.")),(e.billing.purchases||[]).length?(a(),l("div",NX,[...t[87]||(t[87]=[n("span",null,"Purchase",-1),n("span",null,"Period",-1),n("span",null,"Amount",-1),n("span",null,"Status",-1)])])):f("v-if",!0),(e.billing.purchases||[]).length?(a(),l("ul",RX,[(a(!0),l(V,null,X(e.profilePurchases(!0).concat(e.profilePurchases(!1)),r=>(a(),l("li",{class:R(["billing-history-row",{"is-ended":!["active","overdue"].includes(r.status)}]),key:r.id},[n("div",TX,[n("strong",null,[m(d(e.profileGrantName(r)),1),r.repoId?(a(),l(V,{key:0},[t[88]||(t[88]=m(" \xB7 ",-1)),n("a",{href:"/anonymize/"+encodeURIComponent(r.repoId)},d(r.repoId),9,PX)],64)):r.conference?(a(),l(V,{key:1},[t[89]||(t[89]=m(" \xB7 ",-1)),n("a",{href:"/conference/"+encodeURIComponent(r.conference)},d(r.conference),9,DX)],64)):f("v-if",!0)]),n("span",null,d([r.purchasedAt?"Bought "+e.billingDate(r.purchasedAt):"",r.parts.length?e.profilePackSummary(r):["refunded","disputed"].includes(r.status)?"Payment "+r.status+", so what it paid for has ended":r.recurring?"Account subscription":""].filter(Boolean).join(" \xB7 ")),1)]),n("div",AX,d(e.profilePurchaseTerm(r)),1),n("div",IX,d(r.amount!=null?e.billingPrice(r):""),1),n("div",OX,[n("span",{class:R(["settings-status","is-"+r.status])},d(e.profilePurchaseStatus(r)),3)])],2))),128))])):f("v-if",!0),n("div",MX,[n("div",null,[t[90]||(t[90]=n("strong",null,"Invoices and payment details",-1)),e.billing.portal?(a(),l("p",VX,"Download receipts, update your card or change renewal in Stripe.")):(a(),l("p",qX,"Invoices appear here after your first purchase.")),t[91]||(t[91]=n("p",null,[m("Need a refund? "),n("a",{href:"mailto:tdurieux@anonymous.4open.science"},"Email the maintainer"),m(" with the payment date, or read the "),n("a",{href:"/faq#faq-plans"},"refund policy"),m(".")],-1))]),e.billing.portal?(a(),l("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[12]||(t[12]=r=>e.billingPortal()),disabled:e.billingBusy},"Manage billing and invoices",8,LX)):f("v-if",!0)])])):f("v-if",!0),n("p",_X,[t[92]||(t[92]=m("Organizing a conference? ",-1)),e.profileConferencePlan()?(a(),l(V,{key:0},[m("Review packages start at "+d(e.billingAmount(e.profileConferencePlan()))+" once for up to "+d(e.profileConferencePlan().repositories)+" submissions, and authors pay nothing.",1)],64)):(a(),l(V,{key:1},[m("One payment hosts every submission, and authors pay nothing.")],64)),t[93]||(t[93]=m()),t[94]||(t[94]=n("a",{href:"/conference/new"},"Create a conference",-1))])],8,cJ),[[Q,e.settingsTab==="billing"]]),P(n("section",$X,[t[105]||(t[105]=n("p",{class:"settings-scope"},"Your identity, repository access, and account.",-1)),n("div",FX,[e.user?.photo?(a(),l("img",{key:0,width:"40",height:"40",class:"rounded-circle",alt:"",src:e.safeUrl(e.user?.photo)},null,8,UX)):f("v-if",!0),n("div",BX,[n("div",zX,"@"+d(e.user?.username),1),t[96]||(t[96]=n("div",{class:"paper-account-meta"},"Signed in with GitHub. Anonymous GitHub only reads your repositories.",-1))]),t[97]||(t[97]=n("a",{class:"btn btn-outline-ink",href:"/api/user/logout",target:"_self"},"Sign out",-1))]),n("form",{class:"paper-account-email",onSubmit:t[16]||(t[16]=de(r=>e.saveAccountEmail(),["prevent"]))},[t[98]||(t[98]=n("label",{class:"paper-field-label",for:"account-email"},"Email address",-1)),t[99]||(t[99]=n("p",{id:"account-email-help",class:"paper-section-copy"},"Used for account alerts. Your address is never shown on anonymous pages.",-1)),P(n("input",{id:"account-email",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[13]||(t[13]=r=>e.accountEmail=r),"aria-describedby":"account-email-help",disabled:e.emailLoading||e.emailSaving||!e.emailCSRFReady,onInput:t[14]||(t[14]=r=>e.emailSaved=!1)},null,40,HX),[[nt,e.accountEmail]]),e.emailLoading?(a(),l("p",jX,"Loading your email address\u2026")):f("v-if",!0),e.emailError?(a(),l("p",GX,d(e.emailError),1)):f("v-if",!0),!e.emailCSRFReady&&!e.emailLoading?(a(),l("button",{key:2,class:"btn btn-outline-ink mt-2",type:"button",onClick:t[15]||(t[15]=r=>e.loadAccountEmail())},"Try again")):f("v-if",!0),n("button",{class:"btn btn-ink mt-2",type:"submit",disabled:e.emailLoading||e.emailSaving||!e.emailCSRFReady},d(e.emailSaving?"Saving\u2026":"Save email address"),9,WX),e.emailSaved?(a(),l("p",KX,"Email address saved.")):f("v-if",!0)],32),t[106]||(t[106]=n("a",{class:"paper-settings-connection-link",href:"/connections"},[n("i",{class:"fab fa-github","aria-hidden":"true"}),n("span",null,[m("GitHub connections"),n("small",null,"Manage repository access and legacy OAuth.")]),n("span",{"aria-hidden":"true"},"\u2192")],-1)),n("div",YX,[t[103]||(t[103]=n("div",{class:"paper-danger-head"},"Delete account",-1)),t[104]||(t[104]=n("p",{class:"paper-danger-copy"}," Removes all your anonymized repositories, gists, and pull requests, revokes the application's access to your GitHub account, and erases your personal data (username, email, access tokens). This cannot be undone. ",-1)),e.deleteError?(a(),l("div",JX,[t[100]||(t[100]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1)),t[101]||(t[101]=m()),n("span",{textContent:d(e.deleteError)},null,8,XX)])):f("v-if",!0),n("button",{type:"button",class:"btn btn-outline-danger",onClick:t[17]||(t[17]=r=>e.confirmDeleteAccount=!0),disabled:e.deletingAccount},[t[102]||(t[102]=n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1)),m(d(e.deletingAccount?"Deleting\u2026":"Delete my account"),1)],8,QX),e.confirmDeleteAccount?(a(),l("div",ZX,[n("label",xX,"Type "+d(e.user?.username)+" to confirm",1),P(n("input",{id:"delete-username",class:"form-control","onUpdate:modelValue":t[18]||(t[18]=r=>e.deleteUsername=r),autocomplete:"off"},null,512),[[nt,e.deleteUsername]]),n("div",eQ,[n("button",{type:"button",class:"btn btn-outline-danger",onClick:t[19]||(t[19]=r=>e.deleteAccount()),disabled:e.deletingAccount||e.deleteUsername!==e.user?.username},d(e.deletingAccount?"Deleting\u2026":"Delete permanently"),9,tQ),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[20]||(t[20]=r=>{e.confirmDeleteAccount=!1,e.deleteUsername=""}),disabled:e.deletingAccount},"Cancel",8,nQ)])])):f("v-if",!0)])],512),[[Q,e.settingsTab==="account"]])])}var oQ={class:"pr-page"},sQ={class:"container paper-page pr-page-inner"},iQ={class:"pr-header"},rQ={class:"pr-title-row"},aQ={class:"paper-page-title pr-title"},lQ=["textContent"],dQ={key:1,class:"text-muted"},uQ=["href"],cQ={class:"pr-header-meta"},pQ={key:0,class:"pr-meta-item"},fQ=["textContent"],mQ={key:1,class:"pr-meta-item"},hQ=["textContent"],gQ={key:2,class:"pr-meta-item"},vQ=["textContent"],yQ={key:0,class:"pr-body-card"},bQ={key:1,class:"paper-tabs",role:"tablist"},wQ=["aria-selected","tabindex"],kQ=["aria-selected","tabindex"],CQ=["textContent"],SQ={class:"paper-tab-content"},EQ={key:0,role:"tabpanel",id:"pr-diff-panel","aria-labelledby":"pr-diff-tab"},NQ=["innerHTML"],RQ={key:1,role:"tabpanel",id:"pr-comments-panel","aria-labelledby":"pr-comments-tab"},TQ={class:"pr-comments"},PQ={class:"pr-comment"},DQ={class:"pr-comment-head"},AQ={key:0,class:"pr-comment-author"},IQ=["textContent"],OQ=["textContent"],MQ={key:0,class:"pr-comment-body"},VQ={key:0,class:"paper-table-empty"};function Mp(e,t){let s=Qe("markdown");return a(),l("div",oQ,[n("div",sQ,[t[17]||(t[17]=n("div",{class:"paper-crumbs"},[n("a",{href:"/dashboard"},"Reviewer"),m(" \xA0/\xA0 "),n("span",{class:"here"},"Pull request")],-1)),n("header",iQ,[n("div",rQ,[n("h1",aQ,[e.details?.title?(a(),l("span",{key:0,textContent:d(e.details?.title)},null,8,lQ)):f("v-if",!0),e.details?.title?f("v-if",!0):(a(),l("span",dQ,"Untitled pull request"))]),e.options?.isAdmin||e.options?.isOwner?(a(),l("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/pull-request-anonymize/"+e.pullRequestId)},[...t[4]||(t[4]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),n("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,uQ)):f("v-if",!0)]),n("div",cQ,[n("span",{class:R(["paper-pill",{good:e.details?.merged,warn:e.details?.state=="open",bad:e.details?.state=="closed"&&!e.details?.merged}])},[n("span",{class:R(["status-dot",{"status-ready":e.details?.merged,"status-error":e.details?.state=="closed"&&!e.details?.merged}])},null,2),m(" "+d(e.details?.merged?"Merged":e.fmt.title(e.details?.state)),1)],2),e.details?.baseRepositoryFullName?(a(),l("span",pQ,[t[5]||(t[5]=n("i",{class:"fab fa-github"},null,-1)),t[6]||(t[6]=m()),n("span",{textContent:d(e.details?.baseRepositoryFullName)},null,8,fQ)])):f("v-if",!0),e.details?.updatedDate?(a(),l("span",mQ,[t[7]||(t[7]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),t[8]||(t[8]=m()),n("span",{textContent:d(e.fmt?.date(e.details?.updatedDate))},null,8,hQ)])):f("v-if",!0),e.details?.anonymizeDate?(a(),l("span",gQ,[t[9]||(t[9]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1)),t[10]||(t[10]=m(" Anonymized ",-1)),n("span",{textContent:d(e.fmt?.date(e.details?.anonymizeDate))},null,8,vQ)])):f("v-if",!0)])]),e.details?.body?(a(),l("section",yQ,[t[11]||(t[11]=n("div",{class:"paper-section-eyebrow"},"Description",-1)),Me(s,{content:e.details?.body},null,8,["content"])])):f("v-if",!0),e.details?.diff||e.details?.comments?(a(),l("nav",bQ,[e.details?.diff?(a(),l("button",{key:0,class:R(["paper-tab",{active:e.tabState?.active=="diff"}]),type:"button",role:"tab",id:"pr-diff-tab","aria-selected":e.tabState?.active==="diff","aria-controls":"pr-diff-panel",tabindex:e.tabState?.active==="diff"?0:-1,onKeydown:t[0]||(t[0]=i=>e.previewTabKeydown(i)),onClick:t[1]||(t[1]=i=>e.tabState.active="diff")},[...t[12]||(t[12]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),m(" Diff ",-1)])],42,wQ)):f("v-if",!0),e.details?.comments?(a(),l("button",{key:1,class:R(["paper-tab",{active:e.tabState?.active=="comments"}]),type:"button",role:"tab",id:"pr-comments-tab","aria-selected":e.tabState?.active==="comments","aria-controls":"pr-comments-panel",tabindex:e.tabState?.active==="comments"?0:-1,onKeydown:t[2]||(t[2]=i=>e.previewTabKeydown(i)),onClick:t[3]||(t[3]=i=>e.tabState.active="comments")},[t[13]||(t[13]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1)),n("span",{textContent:d(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,CQ)],42,kQ)):f("v-if",!0)])):f("v-if",!0),n("div",SQ,[e.details?.diff&&e.tabState?.active=="diff"?(a(),l("div",EQ,[n("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.details?.diff))},null,8,NQ)])):f("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(a(),l("div",RQ,[n("ul",TQ,[(a(!0),l(V,null,X(e.details?.comments,(i,o)=>(a(),l("li",PQ,[n("div",DQ,[i?.author?(a(),l("span",AQ,[t[14]||(t[14]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})],-1)),t[15]||(t[15]=m(" @",-1)),n("span",{textContent:d(i?.author)},null,8,IQ)])):f("v-if",!0),i?.updatedDate?(a(),l("span",{key:1,class:"pr-comment-date",textContent:d(e.fmt?.date(i?.updatedDate))},null,8,OQ)):f("v-if",!0)]),i?.body?(a(),l("div",MQ,[Me(s,{content:i?.body},null,8,["content"])])):f("v-if",!0)]))),256)),e.details?.comments?.length?f("v-if",!0):(a(),l("li",VQ,[...t[16]||(t[16]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1),n("span",null,"No comments on this pull request.",-1)])]))])])):f("v-if",!0)])])])}var qQ={class:"repository-task status-page"},LQ={class:"page-head-main"},_Q={class:"task-lede"},$Q={class:"task-columns"},FQ={class:"task-preparation","aria-label":"Repository preparation"},UQ={key:0,class:"text-danger",role:"alert"},BQ={key:1,class:"paper-section-copy"},zQ={key:2,class:"paper-ratelimit-card",role:"status"},HQ={class:"paper-error-msg"},jQ=["aria-valuenow"],GQ={class:"paper-progress-label"},WQ=["textContent"],KQ={key:0},YQ=["textContent"],JQ={class:"paper-progress-pct"},XQ={key:4,class:"paper-error-card",role:"alert"},QQ={key:0,class:"paper-error-msg"},ZQ={key:1,class:"paper-error-msg"},xQ={key:2},eZ=["href"],tZ={class:"paper-error-actions"},nZ=["href"],oZ={key:5,class:"share-link"},sZ={class:"share-link-row"},iZ={class:"share-link-buttons"},rZ={class:"ui-icon","aria-hidden":"true"},aZ=["href"],lZ=["textContent"],dZ=["href"],uZ={class:"share-link-note"},cZ=["href"],pZ={class:"share-link-next"},fZ={class:"share-link-next-actions"},mZ=["href"],hZ={class:"task-summary","aria-label":"Repository summary"},gZ=["title"],vZ={key:1};function Vp(e,t){return a(),l("div",qQ,[n("header",{class:R(["page-head",{"task-ready":e.repo?.status==="ready"}])},[t[3]||(t[3]=n("div",{class:"paper-crumbs"},[n("a",{href:"/dashboard"},"My work"),m(" \xA0/\xA0 "),n("span",{class:"here"},"Review link")],-1)),n("div",LQ,[n("div",null,[n("h1",null,d(e.repo?.status==="ready"?"Your review link is ready":"Prepare your anonymous review link"),1),n("p",_Q,d(e.repo?.status==="ready"?"Share this link with reviewers in your submission.":"Your settings are saved. Track preparation before sharing the link."),1)])]),t[4]||(t[4]=n("ol",{class:"task-trail flow-trail","aria-label":"Repository progress"},[n("li",null,"1. Repository"),n("li",null,"2. Review and hosting"),n("li",{"aria-current":"step"},"3. Review link")],-1))],2),n("div",$Q,[n("section",FQ,[e.error?(a(),l("p",UQ,[t[5]||(t[5]=m("Unable to load repository status. ",-1)),n("button",{type:"button",class:"task-text-button",onClick:t[0]||(t[0]=s=>e.getStatus())},"Try again")])):f("v-if",!0),e.repo?.status!=="ready"?(a(),l("p",BQ,[...t[6]||(t[6]=[m(" The repository will take a few minutes to get ready, depending on its size. Visit the ",-1),n("a",{href:"/faq"},"FAQ",-1),m(" for more information. ",-1)])])):f("v-if",!0),e.rateLimitResetAt?(a(),l("div",zQ,[t[9]||(t[9]=Ce('
Temporarily paused
GitHub API rate limit reached
',1)),n("p",HQ,[t[7]||(t[7]=m("Anonymization will resume automatically in ",-1)),n("strong",null,d(e.rateLimitCountdown),1),t[8]||(t[8]=m(". No action needed \u2014 the job is queued and will continue where it left off.",-1))])])):f("v-if",!0),e.repo?.status!=="ready"&&e.repo?.status!="error"&&!e.rateLimitResetAt?(a(),l("div",{key:3,class:R(["paper-progress",{"paper-progress-ready":e.repo?.status=="ready"}]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.progress},[n("div",{class:"paper-progress-bar",style:Ae("width: "+e.progress+"%;")},null,4),n("div",GQ,[n("span",{textContent:d(e.fmt?.title(e.repo?.status))},null,8,WQ),e.repo?.statusMessage?(a(),l("span",KQ,[t[10]||(t[10]=m("\xA0\xB7\xA0",-1)),n("span",{textContent:d(e.repo?.statusMessage)},null,8,YQ)])):f("v-if",!0),n("span",JQ,d(e.progress||0)+"%",1)])],10,jQ)):f("v-if",!0),e.repo?.status=="error"&&!e.rateLimitResetAt?(a(),l("div",XQ,[t[14]||(t[14]=Ce('
Anonymization failed
Something went wrong while preparing this repository.
',1)),e.repo?.statusMessage?(a(),l("p",QQ,d(e.fmt?.translate("ERRORS."+e.repo?.statusMessage)),1)):f("v-if",!0),e.repo?.statusMessage?f("v-if",!0):(a(),l("p",ZQ,"No additional details were reported. The most common causes are private repositories, missing branches, and rate limits.")),["quota_exceeded","quota_repository_limit","quota_storage_limit"].includes(e.repo?.statusMessage)?(a(),l("p",xQ,[n("a",{href:e.safeUrl("/anonymize/"+e.repoId)},"Review this repository\u2019s hosting",8,eZ),t[11]||(t[11]=m(", then retry preparation.",-1))])):f("v-if",!0),t[15]||(t[15]=n("ul",{class:"paper-error-hints"},[n("li",null,"Make sure the source URL points to a repository or pull request you can access."),n("li",null,"Check that the chosen branch and commit still exist on GitHub."),n("li",null,"If you just signed in, the access token may need a moment to propagate \u2014 try again.")],-1)),n("div",tZ,[n("a",{class:"btn btn-primary",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[12]||(t[12]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),m(" Edit anonymization",-1)])],8,nZ),t[13]||(t[13]=Ce(' Read the FAQ Report a bug in Anonymous GitHub',2))])])):f("v-if",!0),e.repo?.status=="ready"?(a(),l("div",oZ,[t[24]||(t[24]=n("div",{class:"share-link-label",id:"share-url-label"},"Review link",-1)),n("div",sZ,[n("code",{id:"share-url",class:"share-link-url",tabindex:"0",role:"textbox","aria-readonly":"true","aria-labelledby":"share-url-label",onFocus:t[1]||(t[1]=s=>e.selectShareUrl(s))},d(e.shareUrl),33),n("div",iZ,[n("button",{type:"button",class:"btn btn-primary share-copy",onClick:t[2]||(t[2]=s=>e.copyShareUrl())},[(a(),l("svg",rZ,[n("use",{href:e.copied?"#ui-icon-check":"#project-icon-copy"},null,8,aZ)])),n("span",{"aria-live":"polite",textContent:d(e.copied?"Copied":"Copy link")},null,8,lZ)]),n("a",{class:"btn share-open",target:"_self",href:e.safeUrl("/r/"+e.repoId+"/")},[...t[16]||(t[16]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),m(" Open repository ",-1)])],8,dZ)])]),n("p",uZ,[m(d(e.repo?.options?.expirationMode!=="never"&&e.repo?.options?.expirationDate?"Expires "+e.fmt.date(e.repo.options.expirationDate):"Never expires"),1),t[18]||(t[18]=n("span",{"aria-hidden":"true"}," \xB7 ",-1)),t[19]||(t[19]=m("Reviewers don\u2019t need an account",-1)),e.repo?.options?.page?(a(),l(V,{key:0},[t[17]||(t[17]=n("span",{"aria-hidden":"true"}," \xB7 ",-1)),n("a",{target:"_self",href:e.safeUrl("/w/"+e.repoId+"/")},"Open GitHub page",8,cZ)],64)):f("v-if",!0)]),n("div",pZ,[t[22]||(t[22]=n("h2",null,"Need to change something?",-1)),t[23]||(t[23]=n("p",null,"Edit the redacted terms or the expiry at any time. The link stays the same.",-1)),n("p",fZ,[n("a",{href:e.safeUrl("/anonymize/"+e.repoId)},"Edit anonymization",8,mZ),t[20]||(t[20]=n("span",{"aria-hidden":"true"},"\xB7",-1)),t[21]||(t[21]=n("a",{href:"/dashboard"},"Go to My work",-1))])])])):f("v-if",!0)]),n("aside",hZ,[n("dl",null,[t[28]||(t[28]=n("dt",null,"Source",-1)),e.repo?.source?.fullName?(a(),l("dd",{key:0,class:"task-source",title:"https://github.com/"+e.repo.source.fullName},[t[25]||(t[25]=m("github.com/",-1)),t[26]||(t[26]=n("wbr",null,null,-1)),m(d(e.repo.source.fullName.split("/")[0])+"/",1),t[27]||(t[27]=n("wbr",null,null,-1)),m(d(e.repo.source.fullName.split("/").slice(1).join("/")),1)],8,gZ)):(a(),l("dd",vZ,"Loading\u2026")),t[29]||(t[29]=n("dt",null,"Lifetime",-1)),n("dd",null,d(e.repo?.options?.expirationMode==="never"?"Never expire while subscribed":e.repo?.options?.expirationDate?"Until "+e.fmt.date(e.repo.options.expirationDate):"Loading\u2026"),1),t[30]||(t[30]=n("dt",null,"Review access",-1)),t[31]||(t[31]=n("dd",null,"Anonymous and free",-1))])])])])}var yZ={class:"container paper-page admin-page overview-page billing-page"},bZ={class:"bl-toolbar"},wZ={class:"seg-filter",role:"radiogroup","aria-label":"Period"},kZ=["aria-checked","onClick"],CZ={key:0,class:"bl-basis"},SZ={key:0,class:"ov-performance-message ov-performance-warning bl-message",role:"alert"},EZ={key:1,class:"ov-performance-message bl-message",role:"status"},NZ={key:2,class:"ov-performance-message ov-performance-warning bl-message",role:"status"},RZ=["aria-busy"],TZ={class:"ov-kpi-card"},PZ={class:"ov-kpi-value"},DZ={class:"ov-kpi-sub"},AZ={class:"ov-kpi-card"},IZ={key:0,class:"ov-kpi-sub"},OZ={key:1,class:"ov-kpi-sub"},MZ={class:"ov-kpi-card"},VZ={class:"ov-kpi-label"},qZ={class:"ov-kpi-value"},LZ={class:"ov-kpi-sub"},_Z={class:"ov-kpi-card"},$Z={class:"ov-kpi-value"},FZ={class:"ov-kpi-sub"},UZ={class:"ov-kpi-card"},BZ={class:"ov-kpi-value"},zZ={class:"ov-kpi-sub"},HZ={class:"ov-kpi-card"},jZ={class:"ov-kpi-sub"},GZ={key:3,class:"bl-health","aria-label":"Webhook health"},WZ={class:"bl-health-title"},KZ={class:"bl-health-item"},YZ=["title"],JZ={key:1,class:"bl-health-item"},XZ={key:4,class:"ov-chart-card bl-chart-card"},QZ={class:"ov-chart-head"},ZZ={class:"ov-chart-title"},xZ={key:0,class:"ov-chart-legends"},ex=["aria-label"],tx={class:"ov-yaxis","aria-hidden":"true"},nx=["data-tip"],ox={class:"ov-spark-x bl-x"},sx={key:1,class:"ov-performance-empty bl-empty",role:"status"},ix={key:5,class:"ov-panel-card bl-plans","aria-labelledby":"bl-plans-heading"},rx={class:"ov-panel-head"},ax={class:"ov-panel-meta"},lx={class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Sales by plan, scroll for more columns"},dx={class:"ov-metrics-table"},ux={key:0,scope:"colgroup",colspan:"2",class:"bl-group"},cx={class:"bl-family-row"},px={scope:"rowgroup",class:"bl-plan-name"},fx={class:"num"},mx={class:"num"},hx={class:"num"},gx={class:"num"},vx={class:"num"},yx={scope:"row",class:"bl-plan-name bl-plan-child"},bx=["title","onClick"],wx={class:"num"},kx={class:"num"},Cx={class:"num"},Sx={class:"num"},Ex={class:"num"},Nx={class:"num"},Rx={class:"num"},Tx={class:"num"},Px={class:"num"},Dx={class:"num"},Ax={class:"bl-grants",id:"bl-grants","aria-labelledby":"bl-grants-heading"},Ix={class:"seg-bar"},Ox={class:"seg-filter",role:"radiogroup","aria-label":"Filter by state"},Mx=["aria-checked"],Vx={class:"count"},qx=["aria-checked"],Lx={class:"count"},_x=["aria-checked"],$x={class:"count"},Fx=["aria-checked"],Ux={class:"count"},Bx={class:"seg-countline",role:"status"},zx={key:0,class:"alert alert-danger bl-alert"},Hx=["aria-expanded"],jx={class:"search-wrap"},Gx={type:"search",class:"form-control","aria-label":"Search by user",placeholder:"Search by user\u2026",autocomplete:"off"},Wx={class:"admin-filter-inline"},Kx={id:"bl-plan",class:"form-control form-control-sm"},Yx=["label"],Jx=["value"],Xx={class:"admin-filter-inline"},Qx={id:"bl-period",class:"form-control form-control-sm"},Zx=["value"],xx={class:"admin-filter-inline"},eee={id:"bl-status",class:"form-control form-control-sm"},tee=["value"],nee={key:0,class:"admin-filter-inline","aria-label":"Pagination"},oee=["disabled"],see={class:"bl-page"},iee=["disabled"],ree={key:0,class:"admin-filter-row"},aee={class:"admin-active-chips"},lee={class:"key"},dee=["onClick"],uee={key:1,class:"ov-metrics-scroll bl-grant-scroll",tabindex:"0",role:"region","aria-label":"Subscriptions and purchases, scroll for more columns"},cee={class:"ov-metrics-table bl-grant-table"},pee={scope:"col"},fee={scope:"col"},mee={scope:"row",class:"bl-user"},hee=["title","href"],gee={key:1,class:"ov-muted"},vee=["title"],yee=["title"],bee={class:"bl-state"},wee={key:0},kee={key:1},Cee={class:"bl-date"},See={class:"bl-date"},Eee={key:0},Nee={key:1},Ree=["title"],Tee={class:"bl-scope"},Pee=["href","title"],Dee={class:"ui-icon","aria-hidden":"true"},Aee=["href"],Iee={key:1,class:"ov-muted"},Oee={key:2,class:"paper-table-empty"},Mee={key:3,class:"admin-empty"},Vee={key:4,class:"admin-toolbar bl-pager"},qee={key:0,class:"pagination-compact"},Lee=["disabled"],_ee=["max"],$ee=["disabled"],Fee={class:"admin-filter-inline"},Uee={id:"bl-limit",class:"form-control form-control-sm"};function qp(e,t){let s=Pe("field"),i=Pe("form");return a(),l("div",yZ,[t[81]||(t[81]=Ce('
Admin \xA0/\xA0 Billing

Billing

',2)),n("div",bZ,[n("div",wZ,[(a(!0),l(V,null,X(e.periods,o=>(a(),l("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.period===o.id}]),key:o.id,"aria-checked":e.period===o.id,onClick:r=>e.setPeriod(o.id)},d(o.label),11,kZ))),128))]),e.summary?(a(),l("p",CZ,"Sales are new checkouts and subscriptions. Revenue uses Stripe list prices; renewals count toward MRR.")):f("v-if",!0)]),e.summaryError?(a(),l("div",SZ,[t[15]||(t[15]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),n("span",null,d(e.summaryError),1),n("button",{type:"button",class:"btn btn-sm",onClick:t[0]||(t[0]=o=>e.loadSummary())},"Retry")])):f("v-if",!0),e.summary&&!e.summary.revenue?.available?(a(),l("div",EZ,[...t[16]||(t[16]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1),n("span",null,[n("b",null,"Revenue unavailable."),m(" Stripe is not configured on this server, so amounts can't be looked up. Counts are complete.")],-1)])])):f("v-if",!0),e.summary?.revenue?.missingSales||e.summary?.revenue?.missingAllTimeSales||e.summary?.revenue?.missingSubscriptions?(a(),l("div",NZ,[t[17]||(t[17]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),n("span",null,"Some Stripe prices are unavailable. Affected totals are marked incomplete: "+d(e.fmt?.number(e.summary.revenue.missingSales||0))+" period sales, "+d(e.fmt?.number(e.summary.revenue.missingAllTimeSales||0))+" historical sales, "+d(e.fmt?.number(e.summary.revenue.missingSubscriptions||0))+" active subscriptions.",1)])):f("v-if",!0),f(" \u2500\u2500 Summary tiles \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",{class:R(["ov-kpi-row bl-kpi-row",{"is-loading":e.summaryLoading}]),"aria-busy":e.summaryLoading?"true":"false","aria-label":"Billing summary"},[!e.summary&&e.summaryLoading?(a(),l(V,{key:0},X(6,o=>n("div",{class:"ov-kpi-card",key:o,"aria-hidden":"true"},[...t[18]||(t[18]=[n("span",{class:"skeleton skeleton-line-sm",style:{width:"60%"}},null,-1),n("span",{class:"skeleton bl-skeleton-value"},null,-1),n("span",{class:"skeleton skeleton-line-sm",style:{width:"80%"}},null,-1)])])),64)):f("v-if",!0),e.summary?(a(),l(V,{key:1},[n("div",TZ,[t[19]||(t[19]=n("div",{class:"ov-kpi-label"},"Active subscriptions",-1)),n("div",PZ,d(e.fmt?.number(e.summary.subscriptions.active)),1),n("div",DZ,d(e.fmt?.number(e.summary.subscriptions.monthly))+" monthly \xB7 "+d(e.fmt?.number(e.summary.subscriptions.annual))+" annual",1)]),n("div",AZ,[t[20]||(t[20]=n("div",{class:"ov-kpi-label"},"MRR",-1)),n("div",{class:R(["ov-kpi-value",{"bl-muted-value":!e.revenueOn()}])},d(e.revenueOn()?e.summary.subscriptions.complete===!1?"Incomplete":e.money(e.summary.subscriptions.mrr)[0]||e.fmt?.money(0):"Unavailable"),3),e.revenueOn()&&e.money(e.summary.subscriptions.mrr).length>1?(a(),l("div",IZ,"+ "+d(e.money(e.summary.subscriptions.mrr).slice(1).join(" \xB7 ")),1)):(a(),l("div",OZ,d(e.revenueOn()?"Annual plans \xF7 12":"Needs Stripe prices"),1))]),n("div",MZ,[n("div",VZ,"Sales \xB7 "+d(e.periodPhrase()),1),n("div",qZ,d(e.fmt?.number(e.summary.sales.count)),1),n("div",LZ,d(e.revenueOn()?e.summary.sales.complete===!1?"Revenue incomplete":e.moneyText(e.summary.sales.revenue,e.fmt?.money(0)):"Revenue unavailable"),1)]),n("div",_Z,[t[21]||(t[21]=n("div",{class:"ov-kpi-label"},"All-time sales",-1)),n("div",$Z,d(e.fmt?.number(e.summary.allTime.count)),1),n("div",FZ,d(e.revenueOn()?e.summary.allTime.complete===!1?"Revenue incomplete":e.moneyText(e.summary.allTime.revenue,e.fmt?.money(0)):"Revenue unavailable"),1)]),n("div",UZ,[t[22]||(t[22]=n("div",{class:"ov-kpi-label"},"Cancelling",-1)),n("div",BZ,d(e.fmt?.number(e.summary.subscriptions.cancelling)),1),n("div",zZ,"at period end, of "+d(e.fmt?.number(e.summary.subscriptions.active))+" active",1)]),n("div",HZ,[t[23]||(t[23]=n("div",{class:"ov-kpi-label"},"Refunds & disputes",-1)),n("div",{class:R(["ov-kpi-value",{"ov-val-warn":e.summary.reversals.disputes>0}])},d(e.fmt?.number(e.summary.reversals.refunds+e.summary.reversals.disputes)),3),n("div",jZ,d(e.fmt?.number(e.summary.reversals.refunds))+" "+d(e.summary.reversals.refunds===1?"refund":"refunds")+" \xB7 "+d(e.fmt?.number(e.summary.reversals.disputes))+" "+d(e.summary.reversals.disputes===1?"dispute":"disputes"),1)])],64)):f("v-if",!0)],10,RZ),f(" \u2500\u2500 Webhook health \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),e.summary?.webhooks?(a(),l("section",GZ,[n("span",WZ,[n("span",{class:R(["ov-svc-dot",{"ov-dot-ok":e.webhookState()==="ok","ov-dot-warn":e.webhookState()==="warn","bl-dot-bad":e.webhookState()==="bad"}]),"aria-hidden":"true"},null,2),t[24]||(t[24]=m("Stripe webhooks",-1))]),n("span",KZ,[t[25]||(t[25]=n("span",{class:"k"},"Pending",-1)),m(" "+d(e.fmt?.number(e.summary.webhooks.pending)),1),e.summary.webhooks.pending?(a(),l(V,{key:0},[m(" \xB7 oldest "+d(e.age(e.summary.webhooks.oldestPendingSeconds)),1)],64)):f("v-if",!0)]),n("span",{class:R(["bl-health-item",{"is-bad":e.summary.webhooks.failed}])},[t[26]||(t[26]=n("span",{class:"k"},"Failed",-1)),m(" "+d(e.fmt?.number(e.summary.webhooks.failed)),1)],2),e.summary.webhooks.lastError?(a(),l("span",{key:0,class:"bl-health-item bl-health-error",title:e.summary.webhooks.lastError.type+": "+e.summary.webhooks.lastError.error},[t[27]||(t[27]=n("span",{class:"k"},"Last error",-1)),t[28]||(t[28]=m()),n("code",null,d(e.summary.webhooks.lastError.error),1),m(" on "+d(e.summary.webhooks.lastError.type)+" \xB7 "+d(e.fmt?.humanTime(e.summary.webhooks.lastError.receivedAt)),1)],8,YZ)):(a(),l("span",JZ,[...t[29]||(t[29]=[n("span",{class:"k"},"Last error",-1),m(" none",-1)])])),n("span",{class:R(["bl-health-item",{"is-warn":e.summary.webhooks.unreviewedRevocations}])},[t[30]||(t[30]=n("span",{class:"k"},"Unreviewed reversals",-1)),m(" "+d(e.fmt?.number(e.summary.webhooks.unreviewedRevocations)),1)],2)])):f("v-if",!0),f(" \u2500\u2500 Sales over time \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),e.summary?(a(),l("section",XZ,[n("div",QZ,[n("span",ZZ,"Sales per "+d(e.bucketName())+" \xB7 "+d(e.periodPhrase()),1),e.seriesSales()?(a(),l("span",xZ,[(a(!0),l(V,null,X(e.families,o=>(a(),l("span",{class:"ov-chart-legend",key:o.id},[n("span",{class:R(["bl-swatch","bl-"+o.id]),"aria-hidden":"true"},null,2),m(d(o.label)+" \xB7 "+d(e.legendText(o.id)),1)]))),128))])):f("v-if",!0)]),e.seriesSales()?(a(),l(V,{key:0},[n("div",{class:R(["ov-spark-bars ov-has-axis bl-bars",{"is-dense":e.summary.series.length>45}]),role:"img","aria-label":e.fmt?.number(e.seriesSales())+" sales, "+e.periodPhrase()+", by plan family"},[n("div",tx,[n("span",null,d(e.fmt?.number(e.chartMax())),1),n("span",null,d(e.fmt?.number(e.chartMax()/2)),1),t[31]||(t[31]=n("span",null,"0",-1))]),(a(!0),l(V,null,X(e.summary.series,(o,r)=>(a(),l("div",{class:R(["ov-spark-col has-tip bl-col",[e.tipSide(r),{"is-zero":!e.bucketTotal(o)}]]),key:r,"data-tip":e.bucketTip(o)},[n("span",{class:"bl-stack",style:Ae({height:e.bucketTotal(o)/e.chartMax()*100+"%"})},[(a(!0),l(V,null,X(e.families,u=>P((a(),l("i",{key:u.id,class:R("bl-"+u.id),style:Ae({flexGrow:o[u.id]})},null,6)),[[Q,o[u.id]]])),128))],4)],10,nx))),128))],10,ex),n("div",ox,[n("span",null,d(e.bucketLabel(e.summary.series[0])),1),n("span",null,d(e.bucketLabel(e.summary.series[Math.floor(e.summary.series.length/2)])),1),n("span",null,d(e.bucketLabel(e.summary.series[e.summary.series.length-1])),1)])],64)):(a(),l("p",sx,"No sales "+d(e.period==="all"?"yet":"in the "+e.periodPhrase())+".",1))])):f("v-if",!0),f(" \u2500\u2500 By plan \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),e.summary?(a(),l("section",ix,[n("div",rx,[t[32]||(t[32]=n("h2",{class:"ov-panel-title",id:"bl-plans-heading"},"By plan",-1)),n("span",ax,d(e.fmt?.number(e.plansWithActivity().length))+" of "+d(e.fmt?.number(e.summary.plans.length))+" plans sold",1)]),n("div",lx,[n("table",dx,[t[41]||(t[41]=n("caption",{class:"sr-only"},"Active grants, sales and revenue per plan",-1)),n("thead",null,[n("tr",null,[t[33]||(t[33]=n("th",{scope:"col",rowspan:"2"},"Plan",-1)),t[34]||(t[34]=n("th",{scope:"col",rowspan:"2",class:"num"},"Active",-1)),e.period!=="all"?(a(),l("th",ux,d(e.periodPhrase().replace(/^./,o=>o.toUpperCase())),1)):f("v-if",!0),t[35]||(t[35]=n("th",{scope:"colgroup",colspan:"2",class:"bl-group"},"All time",-1))]),n("tr",null,[e.period!=="all"?(a(),l(V,{key:0},[t[36]||(t[36]=n("th",{scope:"col",class:"num"},"Sales",-1)),t[37]||(t[37]=n("th",{scope:"col",class:"num"},"Revenue",-1))],64)):f("v-if",!0),t[38]||(t[38]=n("th",{scope:"col",class:"num"},"Sales",-1)),t[39]||(t[39]=n("th",{scope:"col",class:"num"},"Revenue",-1))])]),(a(!0),l(V,null,X(e.families,o=>P((a(),l("tbody",{key:o.id},[n("tr",cx,[n("th",px,[n("span",{class:R(["bl-swatch","bl-"+o.id]),"aria-hidden":"true"},null,2),m(d(o.label),1)]),n("td",fx,d(e.fmt?.number(e.familySum(o.id,"active"))),1),e.period!=="all"?(a(),l(V,{key:0},[n("td",mx,d(e.fmt?.number(e.familySum(o.id,"sales"))),1),n("td",hx,d(e.familyMoney(o.id,"revenue","revenueComplete")),1)],64)):f("v-if",!0),n("td",gx,d(e.fmt?.number(e.familySum(o.id,"allTimeSales"))),1),n("td",vx,d(e.familyMoney(o.id,"allTimeRevenue","allTimeRevenueComplete")),1)]),(a(!0),l(V,null,X(e.familyPlans(o.id),r=>(a(),l("tr",{key:r.planId,class:R({"bl-idle":!r.active&&!r.sales&&!r.allTimeSales})},[n("th",yx,[n("button",{type:"button",class:"bl-link",title:"Show "+r.name+" sales",onClick:u=>e.filterPlan(r.planId)},d(r.name),9,bx)]),n("td",wx,d(e.fmt?.number(r.active)),1),e.period!=="all"?(a(),l(V,{key:0},[n("td",kx,d(e.fmt?.number(r.sales)),1),n("td",Cx,d(e.revenueOn()?r.revenueComplete===!1?"Incomplete":e.moneyText(r.revenue):"\u2014"),1)],64)):f("v-if",!0),n("td",Sx,d(e.fmt?.number(r.allTimeSales)),1),n("td",Ex,d(e.revenueOn()?r.allTimeRevenueComplete===!1?"Incomplete":e.moneyText(r.allTimeRevenue):"\u2014"),1)],2))),128))])),[[Q,e.familyPlans(o.id).length]])),128)),n("tfoot",null,[n("tr",null,[t[40]||(t[40]=n("th",{scope:"row"},"Total",-1)),n("td",Nx,d(e.fmt?.number(e.planTotals().active)),1),e.period!=="all"?(a(),l(V,{key:0},[n("td",Rx,d(e.fmt?.number(e.planTotals().sales)),1),n("td",Tx,d(e.revenueOn()?e.summary.sales.complete===!1?"Incomplete":e.moneyText(e.summary.sales.revenue):"\u2014"),1)],64)):f("v-if",!0),n("td",Px,d(e.fmt?.number(e.planTotals().allTimeSales)),1),n("td",Dx,d(e.revenueOn()?e.summary.allTime.complete===!1?"Incomplete":e.moneyText(e.summary.allTime.revenue):"\u2014"),1)])])])]),t[42]||(t[42]=n("p",{class:"ov-performance-note bl-note"},"A paper pack counts once, under Paper pack, here, in the chart and in the list below. Active means paid time remains and the payment wasn't reversed.",-1))])):f("v-if",!0),f(" \u2500\u2500 Subscriptions and purchases \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",Ax,[t[80]||(t[80]=n("div",{class:"bl-section-head"},[n("h2",{class:"ov-panel-title",id:"bl-grants-heading"},"Subscriptions and purchases")],-1)),n("div",Ix,[n("div",Ox,[n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.stateView()==="all"}]),"aria-checked":e.stateView()==="all",onClick:t[1]||(t[1]=o=>e.setStateView("all"))},[t[43]||(t[43]=m("All ",-1)),n("span",Vx,d(e.fmt?.number(e.stateCount("all"))),1)],10,Mx),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.stateView()==="active","is-empty":!e.stateCount("active")}]),"aria-checked":e.stateView()==="active",onClick:t[2]||(t[2]=o=>e.setStateView("active"))},[t[44]||(t[44]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[45]||(t[45]=m("Active ",-1)),n("span",Lx,d(e.fmt?.number(e.stateCount("active"))),1)],10,qx),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.stateView()==="expired","is-empty":!e.stateCount("expired")}]),"aria-checked":e.stateView()==="expired",onClick:t[3]||(t[3]=o=>e.setStateView("expired"))},[t[46]||(t[46]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[47]||(t[47]=m("Expired ",-1)),n("span",$x,d(e.fmt?.number(e.stateCount("expired"))),1)],10,_x),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.stateView()==="revoked","is-empty":!e.stateCount("revoked")}]),"aria-checked":e.stateView()==="revoked",onClick:t[4]||(t[4]=o=>e.setStateView("revoked"))},[t[48]||(t[48]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[49]||(t[49]=m("Revoked ",-1)),n("span",Ux,d(e.fmt?.number(e.stateCount("revoked"))),1)],10,Fx)]),n("p",Bx,[n("strong",null,d(e.total>=0?e.fmt.number(e.total):"\u2026"),1),t[50]||(t[50]=m(" shown",-1))])]),e.grantsError?(a(),l("div",zx,[t[51]||(t[51]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),m(" "+d(e.grantsError)+" ",1),n("button",{type:"button",class:"btn btn-sm",onClick:t[5]||(t[5]=o=>e.reloadGrants())},"Retry")])):f("v-if",!0),P((a(),l("form",{class:"w-100 admin-filter-toolbar","aria-label":"Subscriptions and purchases","accept-charset":"UTF-8",onSubmit:t[9]||(t[9]=de(()=>{},["prevent"]))},[n("button",{type:"button",class:"btn btn-sm admin-filters-toggle",onClick:t[6]||(t[6]=o=>e.filtersOpen=!e.filtersOpen),"aria-expanded":e.filtersOpen?"true":"false"},[t[52]||(t[52]=m("Filters",-1)),e.filterCount()?(a(),l(V,{key:0},[m(" ("+d(e.filterCount())+")",1)],64)):f("v-if",!0)],8,Hx),n("div",{class:R(["admin-filter-row",{"is-open":e.filtersOpen}])},[n("div",jx,[P(n("input",Gx,null,512),[[s,{state:e.viewState,set:o=>{e.query.search=o},value:e.query?.search,form:null,options:{}}]])]),n("span",Wx,[t[54]||(t[54]=n("label",{for:"bl-plan"},"Plan",-1)),P((a(),l("select",Kx,[t[53]||(t[53]=n("option",{value:""},"Any",-1)),(a(!0),l(V,null,X(e.families,o=>(a(),l("optgroup",{key:o.id,label:o.label},[(a(!0),l(V,null,X((e.summary?.plans||[]).filter(r=>r.family===o.id),r=>(a(),l("option",{key:r.planId,value:r.planId},d(r.name),9,Jx))),128))],8,Yx))),128))])),[[s,{state:e.viewState,set:o=>{e.query.plan=o},value:e.query?.plan,form:null,options:{}}]])]),n("span",Xx,[t[56]||(t[56]=n("label",{for:"bl-period"},"Started",-1)),P((a(),l("select",Qx,[t[55]||(t[55]=n("option",{value:""},"Any time",-1)),(a(!0),l(V,null,X(e.periods.filter(o=>o.id!=="all"),o=>(a(),l("option",{key:o.id,value:o.id},"Last "+d(o.label),9,Zx))),128))])),[[s,{state:e.viewState,set:o=>{e.query.period=o},value:e.query?.period,form:null,options:{}}]])]),n("span",xx,[t[58]||(t[58]=n("label",{for:"bl-status"},"Stripe status",-1)),P((a(),l("select",eee,[t[57]||(t[57]=n("option",{value:""},"Any",-1)),(a(!0),l(V,null,X(e.statuses,o=>(a(),l("option",{key:o,value:o},d(o.replace(/_/g," ")),9,tee))),128))])),[[s,{state:e.viewState,set:o=>{e.query.status=o},value:e.query?.status,form:null,options:{}}]])]),t[61]||(t[61]=n("span",{class:"admin-filter-spacer"},null,-1)),e.totalPage>1?(a(),l("span",nee,[n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[7]||(t[7]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[59]||(t[59]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,oee),n("span",see,d(e.query?.page)+"/"+d(e.totalPage||1),1),n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[8]||(t[8]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[60]||(t[60]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,iee)])):f("v-if",!0)],2),e.chips?.length?(a(),l("div",ree,[n("div",aee,[(a(!0),l(V,null,X(e.chips,o=>(a(),l("span",{class:"admin-active-chip",key:o?.key},[n("span",lee,d(o?.label),1),n("span",null,d(o?.value),1),n("button",{type:"button",onClick:r=>e.clearFilter(o.key),"aria-label":"Clear filter"},[...t[62]||(t[62]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,dee)]))),128))])])):f("v-if",!0)],32)),[[i,e.viewState]]),e.grants?.length?(a(),l("div",uee,[n("table",cee,[t[73]||(t[73]=n("caption",{class:"sr-only"},"Subscriptions and purchases",-1)),n("thead",null,[n("tr",null,[t[67]||(t[67]=n("th",{scope:"col"},"User",-1)),t[68]||(t[68]=n("th",{scope:"col"},"Plan",-1)),t[69]||(t[69]=n("th",{scope:"col"},"Status",-1)),n("th",pee,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="purchasedAt"}]),onClick:t[10]||(t[10]=o=>e.sortBy("purchasedAt"))},[t[64]||(t[64]=m("Started ",-1)),e.sortIcon("purchasedAt")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("purchasedAt")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[63]||(t[63]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("th",fee,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="until"}]),onClick:t[11]||(t[11]=o=>e.sortBy("until"))},[t[66]||(t[66]=m("Renews / ends ",-1)),e.sortIcon("until")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("until")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[65]||(t[65]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[70]||(t[70]=n("th",{scope:"col",class:"num"},"Amount",-1)),t[71]||(t[71]=n("th",{scope:"col"},"Applies to",-1))])]),n("tbody",null,[(a(!0),l(V,null,X(e.grants,o=>(a(),l("tr",{key:o.id},[n("th",mee,[o.user?(a(),l("a",{key:0,title:o.user,href:e.safeUrl("/admin/users/"+o.user)},d(o.user),9,hee)):(a(),l("span",gee,"Deleted user"))]),n("td",null,[n("span",{class:"bl-plan-cell",title:e.familyLabel(o.family)},[n("span",{class:R(["bl-swatch","bl-"+o.family]),"aria-hidden":"true"},null,2),m(d(e.planName(o.planId)),1)],8,vee),o.pack?(a(),l("small",{key:0,title:e.packPartsTitle(o)},d(e.packParts(o)),9,yee)):f("v-if",!0)]),n("td",null,[n("span",bee,[n("span",{class:R(["status-dot",o.state==="active"?"st-ready":o.state==="revoked"?"st-error":"st-expired"])},null,2),m(d(o.state==="active"?"Active":o.state==="revoked"?"Revoked":"Expired"),1)]),o.revoked?(a(),l("small",wee,[m(d(e.revocationText(o.revocationReason)),1),o.revokedAt?(a(),l(V,{key:0},[m(" \xB7 "+d(e.fmt?.date(o.revokedAt)),1)],64)):f("v-if",!0)])):["active","paid"].includes(o.status)?f("v-if",!0):(a(),l("small",kee,"Stripe: "+d(e.statusText(o)),1))]),n("td",Cee,d(o.purchasedAt?e.fmt?.date(o.purchasedAt):"\u2014"),1),n("td",See,[m(d(e.endText(o)),1),o.subscription&&o.cancelAtPeriodEnd&&o.state==="active"?(a(),l("small",Eee,[...t[72]||(t[72]=[n("span",{class:"bl-flag"},"Cancelling",-1)])])):e.packNote(o)?(a(),l("small",Nee,d(e.packNote(o)),1)):f("v-if",!0)]),n("td",{class:"num bl-amount",title:e.amountTitle(o)},[n("span",{class:R({"ov-muted":!o.amount})},d(e.amountText(o)),3)],8,Ree),n("td",Tee,[e.scopeHref(o.scope)?(a(),l("a",{key:0,href:e.safeUrl(e.scopeHref(o.scope)),title:o.scope.id},[(a(),l("svg",Dee,[n("use",{href:o.scope.kind==="conference"?"#project-icon-conference":"#project-type-repo"},null,8,Aee)])),n("span",null,d(o.scope.id),1)],8,Pee)):(a(),l("span",Iee,"Account"))])]))),128))])])])):f("v-if",!0),e.total===0?(a(),l("div",Oee,[t[74]||(t[74]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),n("span",null,d(e.hasFilters()?"No subscriptions or purchases match these filters.":"No subscriptions or purchases yet."),1),e.hasFilters()?(a(),l("button",{key:0,type:"button",class:"btn btn-sm",onClick:t[12]||(t[12]=o=>e.clearFilters())},"Clear filters")):f("v-if",!0)])):f("v-if",!0),e.total<0&&!e.grantsError?(a(),l("div",Mee,"Loading subscriptions and purchases\u2026")):f("v-if",!0),e.total>0?(a(),l("div",Vee,[t[79]||(t[79]=n("span",{"aria-hidden":"true"},null,-1)),e.totalPage>1?(a(),l("div",qee,[n("button",{class:"btn btn-sm",onClick:t[13]||(t[13]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[75]||(t[75]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1),m(" Previous",-1)])],8,Lee),P(n("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},"aria-label":"Page",max:e.totalPage},null,8,_ee),[[s,{state:e.viewState,set:o=>{e.query.page=o},value:e.query?.page,form:null,options:{}}]]),n("span",null,"of "+d(e.totalPage),1),n("button",{class:"btn btn-sm",onClick:t[14]||(t[14]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[76]||(t[76]=[m("Next ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,$ee)])):f("v-if",!0),n("span",Fee,[t[78]||(t[78]=n("label",{for:"bl-limit"},"Per page",-1)),P((a(),l("select",Uee,[...t[77]||(t[77]=[n("option",{value:"10"},"10",-1),n("option",{value:"25"},"25",-1),n("option",{value:"50"},"50",-1),n("option",{value:"100"},"100",-1)])])),[[s,{state:e.viewState,set:o=>{e.query.limit=o},value:e.query?.limit,form:null,options:{}}]])])])):f("v-if",!0)])])}var Bee={class:"paper-footer"},zee={class:"paper-footer-inner"},Hee={class:"paper-footer-col"},jee={key:0,href:"/dashboard"},Gee={key:1,href:"/conferences"},Wee={class:"paper-footer-foot"};function Lp(e,t){return a(),l("footer",Bee,[n("div",zee,[t[3]||(t[3]=n("div",{class:"paper-footer-brand"},[n("div",{class:"paper-footer-mark"},[m("Anonymous "),n("em",null,"GitHub")]),n("p",{class:"paper-footer-tag"}," A read-only, identity-stripped mirror of your repository, built for double-anonymous peer review. ")],-1)),n("div",Hee,[t[0]||(t[0]=n("div",{class:"paper-footer-head"},"Product",-1)),t[1]||(t[1]=n("a",{href:"/anonymize"},"Anonymize",-1)),e.user?(a(),l("a",jee,"My work")):f("v-if",!0),e.user?(a(),l("a",Gee,"Conferences")):f("v-if",!0),t[2]||(t[2]=n("a",{href:"/faq"},"FAQ",-1))]),t[4]||(t[4]=Ce('',2))]),t[6]||(t[6]=n("div",{class:"paper-footer-rule"},null,-1)),n("div",Wee,[n("span",null,"\xA9 "+d(e.year||new Date().getFullYear())+" Anonymous GitHub \xB7 GPL-3.0 licensed",1),t[5]||(t[5]=n("span",{class:"paper-footer-meta"},"Built for reviewers, by researchers.",-1))])])}var wr={"partials/reviewConsent.htm":rp,"partials/connections.htm":ap,"partials/signin.htm":lp,"partials/404.htm":dp,"partials/admin/billing.htm":qp,"partials/admin/emails.htm":ip,"partials/admin/conferences.htm":up,"partials/admin/errors.htm":cp,"partials/admin/overview.htm":pp,"partials/admin/queues.htm":fp,"partials/admin/repositories.htm":mp,"partials/admin/user.htm":hp,"partials/admin/users.htm":gp,"partials/anonymize.htm":vp,"partials/anonymizePullRequest.htm":yp,"partials/claim.htm":bp,"partials/conference.htm":wp,"partials/conferences.htm":kp,"partials/dashboard.htm":Cp,"partials/explorer.htm":Sp,"partials/faq.htm":Ep,"partials/gist.htm":Np,"partials/header.htm":Rp,"partials/home.htm":Tp,"partials/loading.htm":Pp,"partials/newConference.htm":Dp,"partials/pageView.htm":Ap,"partials/pr-dashboard.htm":Ip,"partials/profile.htm":Op,"partials/pullRequest.htm":Mp,"partials/status.htm":Vp,"partials/footer.htm":Lp};var Kee={class:"ui-icon-definitions","aria-hidden":"true",focusable:"false"};function _p(e,t){return a(),l("svg",Kee,[...t[0]||(t[0]=[Ce('',1)])])}function $p(e,t){e==="partials/explorer.htm"&&(t.sidebarCollapsed=window.matchMedia?.("(max-width: 767px)").matches||!1,t.sidebarHidden=!1,t.dirExpanded=!1,t.moreOpen=!1,t.tocOpen=!1,t.gotoOpen=!1,t.gotoValue="",t.gotoError="",t.mdFindOpen=!1,t.mdFindQuery="",t.mdFindTotal=0,t.mdFindIndex=0,t.mdFindCase=!1,t.accountOpen=!1,t.helpOpen=!1,t.sidebarWidth=Math.min(520,Math.max(220,Number(localStorage.getItem("sidebarWidth"))||(window.innerWidth>=1280?320:280))),document.documentElement.style.setProperty("--sidebar-w",t.sidebarWidth+"px"),t.startSidebarResize=o=>{o.preventDefault();let r=o.clientX,u=t.sidebarWidth,p=v=>{t.sidebarWidth=Math.min(520,Math.max(220,u+v.clientX-r)),document.documentElement.style.setProperty("--sidebar-w",t.sidebarWidth+"px")},c=()=>{window.removeEventListener("pointermove",p),window.removeEventListener("pointerup",c),document.body.classList.remove("is-resizing"),localStorage.setItem("sidebarWidth",String(t.sidebarWidth))};document.body.classList.add("is-resizing"),window.addEventListener("pointermove",p),window.addEventListener("pointerup",c)}),e==="partials/anonymize.htm"&&(t.prTabState={active:t.options.diff?"diff":"comments"},t.watchGroup(["options.diff","options.comments"],()=>{t.options[t.prTabState.active]||(t.prTabState.active=t.options.diff?"diff":t.options.comments?"comments":null)})),e==="partials/gist.htm"&&(t.tabState={active:t.details?.files?"files":"comments"}),["partials/conferences.htm","partials/conference.htm"].includes(e)&&(t.statusLabels={ready:"Ready",expired:"Expired",removed:"Removed"});let i={"partials/dashboard.htm":["filteredItems",()=>t.items,"itemFilter"],"partials/conferences.htm":["filteredConferences",()=>t.conferences,"conferenceFilter"],"partials/conference.htm":["filteredRepositories",()=>t.conference?.repositories,"repoFiler"],"partials/admin/repositories.htm":["filteredRepositories",()=>t.repositories,"repoFiler"],"partials/admin/user.htm":["filteredRepositories",()=>t.repositories,"repoFiler"],"partials/admin/users.htm":["filteredUsers",()=>t.users,"userFiler"],"partials/admin/conferences.htm":["filteredConferences",()=>t.conferences]}[e];if(i){let o=Et(()=>t.fmt.orderBy(t.fmt.filter(i[1](),t[i[2]]),t.orderBy));Object.defineProperty(t,i[0],{configurable:!0,get:()=>o.value})}}function Fp(e=(...t)=>fetch(...t)){async function t(i,o,r,u={}){let p=new URL(o,window.location.href);for(let[h,y]of Object.entries(u.params||{}))if(y!=null)for(let g of Array.isArray(y)?y:[y])p.searchParams.append(h,typeof g=="object"?JSON.stringify(g):g);let c=new AbortController,v;u.timeout?.then?u.timeout.then(()=>c.abort()):u.timeout&&(v=setTimeout(()=>c.abort(),u.timeout));try{let h={Accept:"application/json, text/plain, */*",...u.headers},y=document.cookie.match(/(?:^|;\s*)XSRF-TOKEN=([^;]*)/);y&&p.origin===window.location.origin&&(h["X-XSRF-TOKEN"]=decodeURIComponent(y[1]));let g;r!==void 0&&(r instanceof FormData?g=r:(h["Content-Type"]||(h["Content-Type"]="application/json;charset=utf-8"),g=JSON.stringify(r)));let k=await e(p.href,{method:i,headers:h,body:g,credentials:"same-origin",signal:c.signal}),w;if(u.onDownloadProgress&&k.ok&&k.body?.getReader&&typeof TextDecoder<"u"){let b=k.body.getReader(),T=new TextDecoder,O=[],F=0;try{for(;;){let{value:H,done:se}=await b.read();if(se)break;O.push(T.decode(H,{stream:!0})),F+=H.byteLength,u.onDownloadProgress(F)}O.push(T.decode()),w=O.join("")}finally{b.releaseLock()}}else w=await k.text();let S=w;if(u.transformResponse)S=u.transformResponse(w);else if(w&&(/json/i.test(k.headers.get("content-type")||"")||/^[\[{]/.test(w.trim())))try{S=JSON.parse(w)}catch{}let N={data:S,status:k.status,headers:b=>k.headers.get(b)};if(!k.ok)throw N;return N}catch(h){throw h.name==="AbortError"?{status:-1,data:null}:h}finally{clearTimeout(v)}}let s={};for(let i of["get","delete","head"])s[i]=(o,r)=>t(i.toUpperCase(),o,void 0,r);for(let i of["post","put","patch"])s[i]=(o,r,u)=>t(i.toUpperCase(),o,r,u);return s}var Up={resolve:e=>Promise.resolve(e),reject:e=>Promise.reject(e),all:e=>Promise.all(e),defer(){let e,t;return{promise:new Promise((i,o)=>{e=i,t=o}),resolve:e,reject:t}}};var Bp=function(e){function t(s){return s=s||{used:0,total:0},s.unlimited=!s.total,s.percent=s.unlimited?0:Math.min(100,s.used*100/s.total),s.level=s.unlimited?"unlimited":s.percent>=95?"danger":s.percent>=80?"warn":"ok",s}return{decorate:t,load:function(){return e.get("/api/user/quota").then(s=>{let i=s.data||{};return i.storage=t(i.storage),i.file=t(i.file),i.repository=t(i.repository),i})}}};var zp={name:"htmlDoc",props:["content","baseUrl","allowScripts"],setup(e){let t=Ct(null);return yn(()=>{let i=[t.value][0];i.classList.add("html-doc");function o(){i.innerHTML="";let r=e.content;if(typeof r!="string")return;let u=document.createElement("iframe");u.className="html-doc-frame",u.setAttribute("title","Rendered HTML document");let p=["allow-popups","allow-popups-to-escape-sandbox"];e.allowScripts&&p.push("allow-scripts","allow-forms","allow-modals"),u.setAttribute("sandbox",p.join(" ")),u.setAttribute("referrerpolicy","no-referrer"),i.appendChild(u);let c="";e.baseUrl&&(c=''),u.srcdoc=c+r}dt(()=>e.content,o,{immediate:!0}),dt(()=>e.baseUrl,o,{immediate:!0}),dt(()=>e.allowScripts,o,{immediate:!0})}),()=>De("html-doc",{ref:t})}};var Hp={name:"pdfviewer",props:["src"],setup(e){let t=Ct(null);return yn(()=>{let s=[t.value],i=400,o=[.5,.75,1,1.25,1.5,2,3],r=1e3,u=s[0];u.classList.add("pdf-viewer");let p=null,c=[],v=!1,h=null,y=1,g=0,k=1,w=0,S=0,N=612/792,b=0,T=null,O=new Map,F=0;function H(A){let U=O.get(A);U&&(U.cancelled=!0,U.task?.cancel?.(),O.delete(A));let Z=A.querySelector("canvas");Z&&(Z.width=0,Z.height=0),A.innerHTML="",delete A.dataset.state}let se=document.createElement("div");se.className="pdf-toolbar";let _=document.createElement("div");_.className="pdf-pages",_.tabIndex=0,_.setAttribute("aria-label","PDF pages"),u.appendChild(se),u.appendChild(_);function z(A,U,Z){let W=document.createElement("button");return W.type="button",W.className="pdf-toolbar-btn",W.title=U,W.setAttribute("aria-label",U),W.innerHTML='',W.addEventListener("click",Z),W}let I=z("fa-chevron-up","Previous page",function(){Ue(k-1)}),q=z("fa-chevron-down","Next page",function(){Ue(k+1)}),E=document.createElement("input");E.type="text",E.className="pdf-toolbar-page",E.setAttribute("aria-label","Page number"),E.title="Page number \u2014 type a page and press Enter",E.addEventListener("keydown",function(A){A.key==="Enter"&&(Ue(parseInt(E.value,10)),E.blur())}),E.addEventListener("blur",function(){E.value=String(k)});let L=document.createElement("span");L.className="pdf-toolbar-count";let G=z("fa-search-minus","Zoom out",function(){be(o[Math.max(0,fe()-1)])}),j=z("fa-search-plus","Zoom in",function(){be(o[Math.min(o.length-1,fe()+1)])}),Y=document.createElement("button");Y.type="button",Y.className="pdf-toolbar-btn pdf-toolbar-zoom",Y.title="Reset zoom to fit the width",Y.setAttribute("aria-label","Reset zoom to fit the width"),Y.addEventListener("click",function(){be(1)}),se.appendChild(I),se.appendChild(q);let ne=document.createElement("span");ne.className="pdf-toolbar-group",ne.appendChild(E),ne.appendChild(L),se.appendChild(ne);let x=document.createElement("span");x.className="pdf-toolbar-group pdf-toolbar-right",x.appendChild(G),x.appendChild(Y),x.appendChild(j),se.appendChild(x);function fe(){let A=0;for(let U=0;U=A,Y.textContent=y===1||!g?"Fit":Math.round(Re()/(g*96/72)*100)+"%",G.disabled=fe()===0,j.disabled=fe()===o.length-1}function qe(A){let U=c[A-1];U&&(_.scrollTop+=U.getBoundingClientRect().top-_.getBoundingClientRect().top)}function Ue(A){if(!p||isNaN(A))return;let U=Math.min(Math.max(1,A),p.numPages);c[U-1]&&(qe(U),k=U,w=U,S=Date.now()+800,me(),J())}function Xe(){if(!c.length||Date.now(){}),T=null),h&&(clearTimeout(h),h=null),p&&(p.destroy(),p=null),c=[],k=1,_.innerHTML="",me()}function lt(){_.innerHTML="";let A=document.createElement("div");A.className="pdf-viewer-error",A.textContent="This PDF could not be displayed.",_.appendChild(A)}function Re(){let A=Math.max(120,_.clientWidth-24);return Math.round(Math.min(A,r)*y)}function Se(A,U,Z){let W=window.devicePixelRatio||1,ee=A.getViewport({scale:1}),re=parseFloat(U.style.width);if(!re)return;let oe=A.getViewport({scale:re/ee.width*W}),ie=document.createElement("canvas");return ie.width=Math.floor(oe.width),ie.height=Math.floor(oe.height),ie.style.width=re+"px",ie.style.height=Math.floor(oe.height/W)+"px",U.innerHTML="",U.appendChild(ie),U.style.height=ie.style.height,Z.task=A.render({canvasContext:ie.getContext("2d"),viewport:oe}),Z.task.promise}function J(){if(!p)return;let A=b,U=_.getBoundingClientRect(),Z=U.top-i,W=U.top+_.clientHeight+i,ee=c.map((oe,ie)=>({slot:oe,i:ie,rect:oe.getBoundingClientRect()})).filter(oe=>oe.rect.top<=W&&oe.rect.bottom>=Z).sort((oe,ie)=>Math.abs(oe.rect.top-U.top)-Math.abs(ie.rect.top-U.top)).slice(0,6),re=new Set(ee.map(oe=>oe.slot));for(let oe of O.keys())re.has(oe)||H(oe);for(let{slot:oe,i:ie}of ee){if(oe.dataset.state||F>=2)continue;let te={cancelled:!1,task:null};O.set(oe,te),F++,oe.dataset.state="rendering";let we;p.getPage(ie+1).then(pe=>{if(we=pe,!(te.cancelled||A!==b))return Se(we,oe,te)}).then(()=>{te.cancelled||A!==b||(oe.dataset.state="done",w&&Date.now(){!te.cancelled&&A===b&&(oe.dataset.state="failed")}).finally(()=>{F--,we?.cleanup?.(),p&&J()})}}function ce(){v||(v=!0,window.requestAnimationFrame(function(){v=!1,Xe(),J()}))}function ue(){let A=!1;function U(){A||(A=!0,J())}window.requestAnimationFrame(U),window.setTimeout(U,50)}function he(){b++,c.forEach(H);let A=Re();c.forEach(function(U){delete U.dataset.state,U.innerHTML="",U.style.width=A+"px",U.style.height=Math.round(A/N)+"px"}),J()}function be(A){if(!p||!c.length||A===y)return;let U=k;y=A,me(),he(),Ue(U)}function Oe(){p&&(h&&clearTimeout(h),h=setTimeout(function(){h=null,p&&c.length&&he()},250))}function D(A){if(ze(),!A)return;let U=b;T=pdfjsLib.getDocument({url:A,isEvalSupported:!1,standardFontDataUrl:"/script/external/pdf-standard-fonts/",cMapUrl:"/script/external/pdf-cmaps/",cMapPacked:!0}),T.promise.then(function(Z){if(U!==b){Z.destroy();return}return p=Z,p.getPage(1).then(function(W){if(U!==b)return;let ee=W.getViewport({scale:1});ee.width&&ee.height&&(N=ee.width/ee.height),g=ee.width||0;let re=Re();for(let oe=1;oe<=p.numPages;oe++){let ie=document.createElement("div");ie.className="pdf-viewer-page",ie.style.width=re+"px",ie.style.height=Math.round(re/N)+"px",_.appendChild(ie),c.push(ie)}me(),ue()})}).catch(function(){U===b&<()})}_.addEventListener("scroll",ce,{passive:!0}),$(window).on("resize",Oe),me(),dt(()=>e.src,D,{immediate:!0}),ao(function(){_.removeEventListener("scroll",ce),$(window).off("resize",Oe),ze()})}),()=>De("pdfviewer",{ref:t})}};var Yee={key:0,class:"quota-row quota-usage"},Jee={class:"quota-header"},Xee={class:"quota-label"},Qee={class:"project-type-svg","aria-hidden":"true"},Zee=["href"],xee={key:0,class:"quota-percent"},ete={key:1,class:"quota-unlimited-tag"},tte={class:"quota-value"},nte={key:0},ote=["aria-label","aria-valuenow","aria-valuemax","aria-valuetext"],ste={key:1,class:"quota-remaining"},ite={key:2,class:"quota-remaining quota-limit"};function jp(e,t){return e.quota?(a(),l("div",Yee,[(a(),l(V,null,X([{key:"repository",label:"Repositories",kind:"count",icon:"project-type-repo"},{key:"storage",label:"Storage",kind:"bytes",icon:"project-icon-storage"},{key:"file",label:"Files",kind:"count",icon:"project-icon-file"}],s=>n("div",{class:R(["quota-item","quota-"+e.quota[s.key].level]),key:s.key},[n("div",Jee,[n("span",Xee,[(a(),l("svg",Qee,[n("use",{href:"#"+s.icon},null,8,Zee)])),m(d(s.label),1)]),e.quota[s.key].unlimited?f("v-if",!0):(a(),l("span",xee,d(e.quota[s.key].percent>0&&e.quota[s.key].percent<1?"<1":e.fmt.number(e.quota[s.key].percent,0))+"% used",1)),e.quota[s.key].unlimited?(a(),l("span",ete,"Unlimited")):f("v-if",!0)]),n("div",tte,[n("strong",null,d(e.formatAmount(e.quota[s.key].used,s.kind)),1),e.quota[s.key].unlimited?f("v-if",!0):(a(),l("span",nte," / "+d(e.formatAmount(e.quota[s.key].total,s.kind)),1))]),e.quota[s.key].unlimited?f("v-if",!0):(a(),l("div",{key:0,class:R(["quota-track","quota-"+e.quota[s.key].level]),role:"progressbar","aria-valuemin":"0","aria-label":s.label+" quota","aria-valuenow":Math.min(e.quota[s.key].used,e.quota[s.key].total),"aria-valuemax":e.quota[s.key].total,"aria-valuetext":e.fmt.number(e.quota[s.key].percent,0)+"% used"},[e.quota[s?.key].unlimited?f("v-if",!0):(a(),l("div",{key:0,class:"quota-fill",style:Ae({width:e.quota[s.key].percent+"%"})},null,4))],10,ote)),!e.quota[s.key].unlimited&&e.quota[s.key].used=e.quota[s.key].total?(a(),l("p",ite,d(e.quota[s.key].used>e.quota[s.key].total?"Limit exceeded":"Limit reached"),1)):f("v-if",!0)],2)),64))])):f("v-if",!0)}var rte={props:["quota","fmt"],setup(e){return{formatAmount:(t,s)=>s==="bytes"?e.fmt.humanFileSize(e.quota?.storage?.unit==="bytes"?t*8:t).replace(/([a-zA-Z]+)$/," $1"):e.fmt.number(t)}},render:jp},ate=new Set(ve),Kp=e=>e?.querySelectorAll("pre code.language-diff, pre code.lang-diff").forEach(t=>{if(t.querySelector(".md-diff-line"))return;let s=t.innerHTML.replace(/\n$/,"").split(` +jane.smith@example.org`},null,8,qY),[[i,{state:e.viewState,set:r=>{e.terms=r},value:e.terms,form:"defaultsForm",options:{debounce:250}}]]),n("details",LY,[t[25]||(t[25]=n("summary",null,"Regex & replacement syntax",-1)),n("p",null,[t[21]||(t[21]=m("Matches become ",-1)),n("code",null,d(e.site_options?.ANONYMIZATION_MASK||"XXX")+"-[N]",1),t[22]||(t[22]=m(". Use ",-1)),t[23]||(t[23]=n("code",null,"term=>replacement",-1)),t[24]||(t[24]=m(" for a custom replacement. Regex is supported.",-1))])]),P(n("div",_Y,"Terms are in an invalid format.",512),[[Q,e.defaultsForm?.terms?.errors?.format]])])]),n("section",$Y,[t[35]||(t[35]=n("h2",null,"Reviewer display",-1)),n("div",null,[n("div",FY,[n("label",UY,[P(n("input",BY,null,512),[[i,{state:e.viewState,set:r=>{e.options.link=r},value:e.options?.link,form:"defaultsForm",options:{}}]]),t[27]||(t[27]=m("Keep links",-1))]),n("label",zY,[P(n("input",HY,null,512),[[i,{state:e.viewState,set:r=>{e.options.image=r},value:e.options?.image,form:"defaultsForm",options:{}}]]),t[28]||(t[28]=m("Display images",-1))]),n("label",jY,[P(n("input",GY,null,512),[[i,{state:e.viewState,set:r=>{e.options.pdf=r},value:e.options?.pdf,form:"defaultsForm",options:{}}]]),t[29]||(t[29]=m("Display PDFs",-1))]),n("label",WY,[P(n("input",KY,null,512),[[i,{state:e.viewState,set:r=>{e.options.notebook=r},value:e.options?.notebook,form:"defaultsForm",options:{}}]]),t[30]||(t[30]=m("Display notebooks",-1))]),n("label",YY,[P(n("input",JY,null,512),[[i,{state:e.viewState,set:r=>{e.options.loc=r},value:e.options?.loc,form:"defaultsForm",options:{}}]]),t[31]||(t[31]=m("Show line counts",-1))]),n("label",XY,[P(n("input",QY,null,512),[[i,{state:e.viewState,set:r=>{e.options.page=r},value:e.options?.page,form:"defaultsForm",options:{}}]]),t[32]||(t[32]=m("GitHub Pages",-1))])]),t[33]||(t[33]=n("p",{class:"settings-help"},"Images and PDFs are not anonymized.",-1)),t[34]||(t[34]=n("p",{class:"settings-help"},"GitHub Pages must use the anonymized branch.",-1))])]),n("section",ZY,[t[38]||(t[38]=n("h2",null,"Source updates",-1)),n("div",null,[n("label",xY,[P(n("input",eJ,null,512),[[i,{state:e.viewState,set:r=>{e.options.update=r},value:e.options?.update,form:"defaultsForm",options:{}}]]),t[36]||(t[36]=m("Auto-update from GitHub",-1))]),t[37]||(t[37]=n("p",{class:"settings-help"},"Latest commit, at most once an hour.",-1))])]),n("section",tJ,[t[40]||(t[40]=n("label",{class:"settings-label",for:"expiration"},"On expiration",-1)),n("div",null,[P((a(),l("select",nJ,[...t[39]||(t[39]=[n("option",{value:"redirect"},"Redirect visitors to the GitHub repository",-1),n("option",{value:"remove",selected:""},"Remove the anonymized repository",-1)])])),[[i,{state:e.viewState,set:r=>{e.options.expirationMode=r},value:e.options?.expirationMode,form:"defaultsForm",options:{}}]]),n("p",oJ,d(e.options.expirationMode==="redirect"?"Redirecting reveals the original repository. Choose the date per anonymization.":"Set the expiration date for each repository."),1)])]),n("footer",sJ,[n("div",iJ,[e.draftRestored?(a(),l("span",rJ,"Your unsaved draft was restored.")):e.unsavedChanges?(a(),l("span",aJ,"Unsaved changes"+d(e.draftSaved?" \xB7 Draft saved in this tab":""),1)):(a(),l("span",lJ,d(e.message?"Defaults saved":"No unsaved changes"),1))]),e.draftRestored||e.unsavedChanges?(a(),l("button",{key:0,type:"button",class:"draft-discard",onClick:t[0]||(t[0]=r=>e.discardDraft())},"Discard changes")):f("v-if",!0),n("button",{id:"save",type:"submit",class:R(["btn btn-ink",{"is-saving":e.saving}]),disabled:e.saving||!(e.unsavedChanges||e.draftRestored)},d(e.saving?"Saving\u2026":"Save defaults"),11,dJ),e.error?(a(),l("div",uJ,d(e.error),1)):f("v-if",!0)])],32)),[[o,e.viewState]])],512),[[Q,e.settingsTab==="defaults"]]),P(n("section",{id:"settings-billing","aria-busy":e.billingLoading||e.billingBusy},[t[95]||(t[95]=n("p",{class:"settings-scope"},"Your plan and usage. Reviewer access is always free.",-1)),e.billingLoading?(a(),l("p",pJ,"Loading billing\u2026")):f("v-if",!0),e.billingError?(a(),l("div",fJ,[m(d(e.billingError)+" ",1),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[3]||(t[3]=r=>e.loadBilling()),disabled:e.billingBusy},"Try again",8,mJ)])):f("v-if",!0),e.billingNotice?(a(),l("p",hJ,d(e.billingNotice),1)):f("v-if",!0),e.billingPending?(a(),l("div",gJ,[t[42]||(t[42]=n("strong",null,"Confirming your payment",-1)),t[43]||(t[43]=n("p",null,"Your allowance will update after confirmation. Please do not pay again.",-1)),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[4]||(t[4]=r=>e.refreshBilling()),disabled:e.billingBusy},"Check payment status",8,vJ)])):f("v-if",!0),n("section",yJ,[n("div",bJ,[n("div",null,[t[44]||(t[44]=n("p",{class:"billing-eyebrow"},"Current plan",-1)),n("h2",wJ,d(e.profileAuthorGrant()?e.profileGrantName(e.profileAuthorGrant()):e.billing?.enabled?"Free":"Account allowance"),1),e.profileAuthorGrant()?(a(),l("p",kJ,[m(d(e.profileAuthorGrant().cancelAtPeriodEnd?"Renewal cancelled \xB7 access until ":"Renews ")+d(e.billingDate(e.profileAuthorGrant().until)),1),e.profileAuthorPurchase()?.amount!=null?(a(),l(V,{key:0},[m(" \xB7 "+d(e.billingPrice(e.profileAuthorPurchase())),1)],64)):f("v-if",!0)])):e.billing?.allowance?(a(),l("p",CJ,d(e.billing.allowance.repositories)+" repositories \xB7 "+d(e.billingBytes(e.billing.allowance.storage))+" \xB7 links up to "+d(e.billing.freeExpirationMonths||5)+" months",1)):f("v-if",!0)]),e.profileAuthorGrant()&&e.billing?.portal?(a(),l("div",SJ,[n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[5]||(t[5]=r=>e.billingPortal()),disabled:e.billingBusy},d(e.profileAuthorGrant().cancelAtPeriodEnd?"Resume renewal":"Change or cancel plan"),9,EJ)])):f("v-if",!0)]),n("div",NJ,[e.quota?(a(),Xt(s,{key:0,quota:e.quota,fmt:e.fmt},null,8,["quota","fmt"])):(a(),l("p",RJ,"Loading usage\u2026"))]),e.quota?.repository&&!e.quota.repository.unlimited&&e.quota.repository.used>=e.quota.repository.total?(a(),l("p",TJ,[m("Your free repositories are used up. Add the next one for "+d(e.profileSlotPlan()?e.billingPrice(e.profileSlotPlan()):"a one-time payment")+" when you create it, or ",1),t[45]||(t[45]=n("a",{href:"/dashboard"},"remove work you no longer need",-1)),t[46]||(t[46]=m(".",-1))])):f("v-if",!0),e.profileAuthorGrant()?.status==="past_due"?(a(),l("p",PJ,"A subscription payment is overdue. Update your payment details in Manage billing and invoices.")):f("v-if",!0),e.profilePastSubscription()?(a(),l("p",DJ,[...t[47]||(t[47]=[m("Your previous subscription has ended. Never-expiring repositories stay online for a 90-day grace period. ",-1),n("a",{href:"/dashboard"},"Review expiration dates",-1),m(".",-1)])])):f("v-if",!0),t[48]||(t[48]=n("p",{class:"billing-footnote"},"Co-authored, paid and conference repositories aren't counted here.",-1))]),e.billing?.enabled&&!e.profileAuthorGrant()&&(e.profilePackPlan()||e.profileAuthorPlans().length)?(a(),l("section",AJ,[t[85]||(t[85]=n("h2",{class:"billing-section-title",id:"settings-plan-comparison",tabindex:"-1"},"Get more",-1)),e.showRepositoryPass&&e.profileAddon()&&!e.billingPending?f("v-if",!0):(a(),l("div",IJ,[e.profilePackPlan()?(a(),l("article",OJ,[t[54]||(t[54]=n("span",{class:"billing-offer-pill"},"Recommended",-1)),t[55]||(t[55]=n("div",{class:"billing-offer-head"},[n("p",{class:"billing-eyebrow"},"For one paper")],-1)),t[56]||(t[56]=n("h3",null,"Paper pack",-1)),n("p",MJ,[n("strong",null,d(e.billingAmount(e.profilePackPlan())),1),t[49]||(t[49]=m(" once",-1))]),n("ul",VJ,[t[50]||(t[50]=n("li",null,"One more repository, outside your free ones",-1)),n("li",null,"Its own "+d(e.billingBytes(e.profileSlotPlan()?.storage||e.profilePassPlan()?.storage))+" of storage",1),t[51]||(t[51]=n("li",null,"Automatic updates for 180 days",-1)),t[52]||(t[52]=n("li",null,"Online for up to a year",-1)),t[53]||(t[53]=n("li",null,"No subscription",-1))]),n("button",{type:"button",class:"btn btn-ink",onClick:t[6]||(t[6]=r=>e.openProfileAddon("repo_pack")),disabled:e.billingPending||e.billing.checkoutEnabled===!1},"Buy a Paper pack",8,qJ)])):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("article",LJ,[n("div",_J,[t[57]||(t[57]=n("p",{class:"billing-eyebrow"},"For many papers",-1)),n("div",$J,[(a(!0),l(V,null,X(e.profileAuthorPlansByValue(),r=>(a(),l("button",{type:"button",role:"radio",key:r.id,"aria-checked":e.profileSelectedPlan()?.id===r.id?"true":"false",class:R({"is-on":e.profileSelectedPlan()?.id===r.id}),onClick:u=>e.profilePlan=r.id},[m(d(r.interval==="year"?"Yearly":"Monthly"),1),r.interval==="year"&&e.profileAnnualSavings()?(a(),l("span",UJ,"\u2212"+d(e.profileAnnualSavings())+"%",1)):f("v-if",!0)],10,FJ))),128))])]),t[62]||(t[62]=n("h3",null,"Author subscription",-1)),n("p",BJ,[n("strong",null,d(e.billingAmount(e.profileSelectedPlan())),1),m(" per "+d(e.profileSelectedPlan()?.interval==="year"?"year":"month"),1)]),n("ul",zJ,[n("li",null,d(e.profileSelectedPlan()?.repositories)+" repositories, "+d(e.billingBytes(e.profileSelectedPlan()?.storage)),1),t[58]||(t[58]=n("li",null,"Automatic updates",-1)),t[59]||(t[59]=n("li",null,"Links that never expire",-1)),t[60]||(t[60]=n("li",null,"Coauthors included",-1)),t[61]||(t[61]=n("li",null,"Cancel renewal anytime",-1))]),n("button",{type:"button",class:"btn btn-outline-ink",disabled:e.billingBusy||e.billing.checkoutEnabled===!1,onClick:t[7]||(t[7]=r=>e.checkout(e.profileSelectedPlan().id))},d(e.billingBusy?"Please wait\u2026":"Subscribe"),9,HJ)])):f("v-if",!0)])),e.profileSingleAddons().length&&!(e.showRepositoryPass&&e.profileAddon()&&!e.billingPending)?(a(),l("div",jJ,[t[63]||(t[63]=n("div",{class:"billing-addons-head"},[n("h3",{class:"billing-subtitle"},"Or pay for one thing"),n("span",null,"One-time")],-1)),n("ul",GJ,[(a(!0),l(V,null,X(e.profileSingleAddons(),r=>(a(),l("li",{key:r.id},[n("div",null,[n("strong",null,d(r.name),1),n("span",null,d(e.profileAddonBlurb(r.id)),1)]),n("span",WJ,d(e.billingAmount(r)),1),n("button",{type:"button",class:"settings-text-button",onClick:u=>e.openProfileAddon(r.id),disabled:e.billingPending||e.billing.checkoutEnabled===!1},"Buy",8,KJ)]))),128))])])):f("v-if",!0),e.showRepositoryPass&&e.profileAddon()&&!e.billingPending?(a(),l("div",YJ,[n("div",JJ,[n("button",{type:"button",class:"btn btn-outline-ink billing-back",onClick:t[8]||(t[8]=r=>e.showRepositoryPass=!1)},"\u2190 All options"),n("h3",null,d(e.profileAddon().name),1),n("p",XJ,[n("strong",null,d(e.billingAmount(e.profileAddon())),1),t[64]||(t[64]=m(" once",-1))]),n("ul",QJ,[(a(!0),l(V,null,X(e.profileAddonFeatures(e.profileAddon().id),r=>(a(),l("li",{key:r},d(r),1))),128))])]),n("div",ZJ,[e.profileRepositories().length?(a(),l(V,{key:0},[t[66]||(t[66]=n("label",{class:"paper-field-label",for:"billing-repository"},"Which repository?",-1)),P(n("select",{id:"billing-repository",class:"form-control","onUpdate:modelValue":t[9]||(t[9]=r=>e.billingRepository=r)},[t[65]||(t[65]=n("option",{value:"",disabled:""},"Choose a repository",-1)),(a(!0),l(V,null,X(e.profileRepositories(),r=>(a(),l("option",{key:r.repoId,value:r.repoId},d(r.repoId)+" \xB7 "+d(e.profileRepositoryExpiry(r)),9,xJ))),128))],512),[[Nt,e.billingRepository]]),n("button",{type:"button",class:"btn btn-ink",disabled:e.billingBusy||!e.billingRepository||e.billing.checkoutEnabled===!1,onClick:t[10]||(t[10]=r=>e.checkout(e.profileAddon().id,e.billingRepository))},d(e.billingBusy?"Please wait\u2026":"Continue to checkout"),9,eX),t[67]||(t[67]=n("p",{class:"billing-footnote"},"One-time payment. Tax shown at checkout.",-1))],64)):(a(),l("p",tX,[...t[68]||(t[68]=[m("You have no repositories yet. ",-1),n("a",{href:"/anonymize"},"Create one",-1),m(" first.",-1)])])),["repo_slot","repo_pack"].includes(e.profileAddon().id)?(a(),l("p",nX,[...t[69]||(t[69]=[m("Adding a new repository? ",-1),n("a",{href:"/anonymize"},"Start creating it",-1),m("; the form offers this once your free repositories are in use.",-1)])])):f("v-if",!0)])])):f("v-if",!0),n("details",oX,[t[84]||(t[84]=n("summary",null,"Compare all features",-1)),n("div",sX,[n("table",iX,[t[83]||(t[83]=n("caption",{class:"sr-only"},"Free, Paper pack and Author hosting",-1)),n("thead",null,[n("tr",null,[t[72]||(t[72]=n("th",{scope:"col"},[n("span",{class:"sr-only"},"Feature")],-1)),t[73]||(t[73]=n("th",{scope:"col"},[m("Free"),n("small",null,"\u20AC0")],-1)),e.profilePackPlan()?(a(),l("th",rX,[t[70]||(t[70]=m("Paper pack",-1)),n("small",null,d(e.billingPrice(e.profilePackPlan())),1)])):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("th",aX,[t[71]||(t[71]=m("Author",-1)),n("small",null,d(e.billingPrice(e.profileSelectedPlan())),1)])):f("v-if",!0)])]),n("tbody",null,[n("tr",null,[t[74]||(t[74]=n("th",{scope:"row"},"Repositories",-1)),n("td",null,d(e.billing.allowance?.repositories),1),e.profilePackPlan()?(a(),l("td",lX,"+1")):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",dX,d(e.profileSelectedPlan()?.repositories),1)):f("v-if",!0)]),n("tr",null,[t[75]||(t[75]=n("th",{scope:"row"},"Source storage",-1)),n("td",null,d(e.billingBytes(e.billing.allowance?.storage))+" total",1),e.profilePackPlan()?(a(),l("td",uX,d(e.billingBytes(e.profileSlotPlan()?.storage||e.profilePassPlan()?.storage))+" for it",1)):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",cX,d(e.billingBytes(e.profileSelectedPlan()?.storage))+" total",1)):f("v-if",!0)]),n("tr",null,[t[76]||(t[76]=n("th",{scope:"row"},"Latest expiration",-1)),n("td",null,d(e.billing.freeExpirationMonths||5)+" months ahead",1),e.profilePackPlan()?(a(),l("td",pX,"1 year after purchase")):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",fX,"Never")):f("v-if",!0)]),n("tr",null,[t[77]||(t[77]=n("th",{scope:"row"},"Automatic updates",-1)),t[78]||(t[78]=n("td",null,"No",-1)),e.profilePackPlan()?(a(),l("td",mX,"180 days")):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",hX,"Yes")):f("v-if",!0)]),n("tr",null,[t[79]||(t[79]=n("th",{scope:"row"},"Renews",-1)),t[80]||(t[80]=n("td",null,"No",-1)),e.profilePackPlan()?(a(),l("td",gX,"No")):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",vX,"Until cancelled")):f("v-if",!0)]),n("tr",null,[t[81]||(t[81]=n("th",{scope:"row"},"Reviewer access",-1)),t[82]||(t[82]=n("td",null,"Free",-1)),e.profilePackPlan()?(a(),l("td",yX,"Free")):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",bX,"Free")):f("v-if",!0)])])])])]),e.billing.checkoutEnabled===!1?(a(),l("p",wX,"New purchases are not available right now. Existing billing can still be managed below.")):f("v-if",!0)])):f("v-if",!0),e.billing?.enabled?(a(),l("section",kX,[n("div",CX,[t[86]||(t[86]=n("h2",{class:"billing-section-title"},"Purchases",-1)),e.billingPending?f("v-if",!0):(a(),l("button",{key:0,type:"button",class:"settings-text-button",onClick:t[11]||(t[11]=r=>e.refreshBilling()),disabled:e.billingBusy},"Refresh payment status",8,SX))]),(e.billing.purchases||[]).length?f("v-if",!0):(a(),l("p",EX,"No purchases yet.")),(e.billing.purchases||[]).length?(a(),l("div",NX,[...t[87]||(t[87]=[n("span",null,"Purchase",-1),n("span",null,"Period",-1),n("span",null,"Amount",-1),n("span",null,"Status",-1)])])):f("v-if",!0),(e.billing.purchases||[]).length?(a(),l("ul",RX,[(a(!0),l(V,null,X(e.profilePurchases(!0).concat(e.profilePurchases(!1)),r=>(a(),l("li",{class:R(["billing-history-row",{"is-ended":!["active","overdue"].includes(r.status)}]),key:r.id},[n("div",TX,[n("strong",null,[m(d(e.profileGrantName(r)),1),r.repoId?(a(),l(V,{key:0},[t[88]||(t[88]=m(" \xB7 ",-1)),n("a",{href:"/anonymize/"+encodeURIComponent(r.repoId)},d(r.repoId),9,PX)],64)):r.conference?(a(),l(V,{key:1},[t[89]||(t[89]=m(" \xB7 ",-1)),n("a",{href:"/conference/"+encodeURIComponent(r.conference)},d(r.conference),9,DX)],64)):f("v-if",!0)]),n("span",null,d([r.purchasedAt?"Bought "+e.billingDate(r.purchasedAt):"",r.parts.length?e.profilePackSummary(r):["refunded","disputed"].includes(r.status)?"Payment "+r.status+", so what it paid for has ended":r.recurring?"Account subscription":""].filter(Boolean).join(" \xB7 ")),1)]),n("div",AX,d(e.profilePurchaseTerm(r)),1),n("div",IX,d(r.amount!=null?e.billingPrice(r):""),1),n("div",OX,[n("span",{class:R(["settings-status","is-"+r.status])},d(e.profilePurchaseStatus(r)),3)])],2))),128))])):f("v-if",!0),n("div",MX,[n("div",null,[t[90]||(t[90]=n("strong",null,"Invoices and payment details",-1)),e.billing.portal?(a(),l("p",VX,"Download receipts, update your card or change renewal in Stripe.")):(a(),l("p",qX,"Invoices appear here after your first purchase.")),t[91]||(t[91]=n("p",null,[m("Need a refund? "),n("a",{href:"mailto:tdurieux@anonymous.4open.science"},"Email the maintainer"),m(" with the payment date, or read the "),n("a",{href:"/faq#faq-plans"},"refund policy"),m(".")],-1))]),e.billing.portal?(a(),l("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[12]||(t[12]=r=>e.billingPortal()),disabled:e.billingBusy},"Manage billing and invoices",8,LX)):f("v-if",!0)])])):f("v-if",!0),n("p",_X,[t[92]||(t[92]=m("Organizing a conference? ",-1)),e.profileConferencePlan()?(a(),l(V,{key:0},[m("Review packages start at "+d(e.billingAmount(e.profileConferencePlan()))+" once for up to "+d(e.profileConferencePlan().repositories)+" submissions, and authors pay nothing.",1)],64)):(a(),l(V,{key:1},[m("One payment hosts every submission, and authors pay nothing.")],64)),t[93]||(t[93]=m()),t[94]||(t[94]=n("a",{href:"/conference/new"},"Create a conference",-1))])],8,cJ),[[Q,e.settingsTab==="billing"]]),P(n("section",$X,[t[105]||(t[105]=n("p",{class:"settings-scope"},"Your identity, repository access, and account.",-1)),n("div",FX,[e.user?.photo?(a(),l("img",{key:0,width:"40",height:"40",class:"rounded-circle",alt:"",src:e.safeUrl(e.user?.photo)},null,8,UX)):f("v-if",!0),n("div",BX,[n("div",zX,"@"+d(e.user?.username),1),t[96]||(t[96]=n("div",{class:"paper-account-meta"},"Signed in with GitHub. Anonymous GitHub only reads your repositories.",-1))]),t[97]||(t[97]=n("a",{class:"btn btn-outline-ink",href:"/api/user/logout",target:"_self"},"Sign out",-1))]),n("form",{class:"paper-account-email",onSubmit:t[16]||(t[16]=de(r=>e.saveAccountEmail(),["prevent"]))},[t[98]||(t[98]=n("label",{class:"paper-field-label",for:"account-email"},"Email address",-1)),t[99]||(t[99]=n("p",{id:"account-email-help",class:"paper-section-copy"},"Used for account alerts. Your address is never shown on anonymous pages.",-1)),P(n("input",{id:"account-email",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[13]||(t[13]=r=>e.accountEmail=r),"aria-describedby":"account-email-help",disabled:e.emailLoading||e.emailSaving||!e.emailCSRFReady,onInput:t[14]||(t[14]=r=>e.emailSaved=!1)},null,40,HX),[[nt,e.accountEmail]]),e.emailLoading?(a(),l("p",jX,"Loading your email address\u2026")):f("v-if",!0),e.emailError?(a(),l("p",GX,d(e.emailError),1)):f("v-if",!0),!e.emailCSRFReady&&!e.emailLoading?(a(),l("button",{key:2,class:"btn btn-outline-ink mt-2",type:"button",onClick:t[15]||(t[15]=r=>e.loadAccountEmail())},"Try again")):f("v-if",!0),n("button",{class:"btn btn-ink mt-2",type:"submit",disabled:e.emailLoading||e.emailSaving||!e.emailCSRFReady},d(e.emailSaving?"Saving\u2026":"Save email address"),9,WX),e.emailSaved?(a(),l("p",KX,"Email address saved.")):f("v-if",!0)],32),t[106]||(t[106]=n("a",{class:"paper-settings-connection-link",href:"/connections"},[n("i",{class:"fab fa-github","aria-hidden":"true"}),n("span",null,[m("GitHub connections"),n("small",null,"Manage repository access and legacy OAuth.")]),n("span",{"aria-hidden":"true"},"\u2192")],-1)),n("div",YX,[t[103]||(t[103]=n("div",{class:"paper-danger-head"},"Delete account",-1)),t[104]||(t[104]=n("p",{class:"paper-danger-copy"}," Removes all your anonymized repositories, gists, and pull requests, revokes the application's access to your GitHub account, and erases your personal data (username, email, access tokens). This cannot be undone. ",-1)),e.deleteError?(a(),l("div",JX,[t[100]||(t[100]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1)),t[101]||(t[101]=m()),n("span",{textContent:d(e.deleteError)},null,8,XX)])):f("v-if",!0),n("button",{type:"button",class:"btn btn-outline-danger",onClick:t[17]||(t[17]=r=>e.confirmDeleteAccount=!0),disabled:e.deletingAccount},[t[102]||(t[102]=n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1)),m(d(e.deletingAccount?"Deleting\u2026":"Delete my account"),1)],8,QX),e.confirmDeleteAccount?(a(),l("div",ZX,[n("label",xX,"Type "+d(e.user?.username)+" to confirm",1),P(n("input",{id:"delete-username",class:"form-control","onUpdate:modelValue":t[18]||(t[18]=r=>e.deleteUsername=r),autocomplete:"off"},null,512),[[nt,e.deleteUsername]]),n("div",eQ,[n("button",{type:"button",class:"btn btn-outline-danger",onClick:t[19]||(t[19]=r=>e.deleteAccount()),disabled:e.deletingAccount||e.deleteUsername!==e.user?.username},d(e.deletingAccount?"Deleting\u2026":"Delete permanently"),9,tQ),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[20]||(t[20]=r=>{e.confirmDeleteAccount=!1,e.deleteUsername=""}),disabled:e.deletingAccount},"Cancel",8,nQ)])])):f("v-if",!0)])],512),[[Q,e.settingsTab==="account"]])])}var oQ={class:"pr-page"},sQ={class:"container paper-page pr-page-inner"},iQ={class:"pr-header"},rQ={class:"pr-title-row"},aQ={class:"paper-page-title pr-title"},lQ=["textContent"],dQ={key:1,class:"text-muted"},uQ=["href"],cQ={class:"pr-header-meta"},pQ={key:0,class:"pr-meta-item"},fQ=["textContent"],mQ={key:1,class:"pr-meta-item"},hQ=["textContent"],gQ={key:2,class:"pr-meta-item"},vQ=["textContent"],yQ={key:0,class:"pr-body-card"},bQ={key:1,class:"paper-tabs",role:"tablist"},wQ=["aria-selected","tabindex"],kQ=["aria-selected","tabindex"],CQ=["textContent"],SQ={class:"paper-tab-content"},EQ={key:0,role:"tabpanel",id:"pr-diff-panel","aria-labelledby":"pr-diff-tab"},NQ=["innerHTML"],RQ={key:1,role:"tabpanel",id:"pr-comments-panel","aria-labelledby":"pr-comments-tab"},TQ={class:"pr-comments"},PQ={class:"pr-comment"},DQ={class:"pr-comment-head"},AQ={key:0,class:"pr-comment-author"},IQ=["textContent"],OQ=["textContent"],MQ={key:0,class:"pr-comment-body"},VQ={key:0,class:"paper-table-empty"};function Vp(e,t){let s=Qe("markdown");return a(),l("div",oQ,[n("div",sQ,[t[17]||(t[17]=n("div",{class:"paper-crumbs"},[n("a",{href:"/dashboard"},"Reviewer"),m(" \xA0/\xA0 "),n("span",{class:"here"},"Pull request")],-1)),n("header",iQ,[n("div",rQ,[n("h1",aQ,[e.details?.title?(a(),l("span",{key:0,textContent:d(e.details?.title)},null,8,lQ)):f("v-if",!0),e.details?.title?f("v-if",!0):(a(),l("span",dQ,"Untitled pull request"))]),e.options?.isAdmin||e.options?.isOwner?(a(),l("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/pull-request-anonymize/"+e.pullRequestId)},[...t[4]||(t[4]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),n("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,uQ)):f("v-if",!0)]),n("div",cQ,[n("span",{class:R(["paper-pill",{good:e.details?.merged,warn:e.details?.state=="open",bad:e.details?.state=="closed"&&!e.details?.merged}])},[n("span",{class:R(["status-dot",{"status-ready":e.details?.merged,"status-error":e.details?.state=="closed"&&!e.details?.merged}])},null,2),m(" "+d(e.details?.merged?"Merged":e.fmt.title(e.details?.state)),1)],2),e.details?.baseRepositoryFullName?(a(),l("span",pQ,[t[5]||(t[5]=n("i",{class:"fab fa-github"},null,-1)),t[6]||(t[6]=m()),n("span",{textContent:d(e.details?.baseRepositoryFullName)},null,8,fQ)])):f("v-if",!0),e.details?.updatedDate?(a(),l("span",mQ,[t[7]||(t[7]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),t[8]||(t[8]=m()),n("span",{textContent:d(e.fmt?.date(e.details?.updatedDate))},null,8,hQ)])):f("v-if",!0),e.details?.anonymizeDate?(a(),l("span",gQ,[t[9]||(t[9]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1)),t[10]||(t[10]=m(" Anonymized ",-1)),n("span",{textContent:d(e.fmt?.date(e.details?.anonymizeDate))},null,8,vQ)])):f("v-if",!0)])]),e.details?.body?(a(),l("section",yQ,[t[11]||(t[11]=n("div",{class:"paper-section-eyebrow"},"Description",-1)),Me(s,{content:e.details?.body},null,8,["content"])])):f("v-if",!0),e.details?.diff||e.details?.comments?(a(),l("nav",bQ,[e.details?.diff?(a(),l("button",{key:0,class:R(["paper-tab",{active:e.tabState?.active=="diff"}]),type:"button",role:"tab",id:"pr-diff-tab","aria-selected":e.tabState?.active==="diff","aria-controls":"pr-diff-panel",tabindex:e.tabState?.active==="diff"?0:-1,onKeydown:t[0]||(t[0]=i=>e.previewTabKeydown(i)),onClick:t[1]||(t[1]=i=>e.tabState.active="diff")},[...t[12]||(t[12]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),m(" Diff ",-1)])],42,wQ)):f("v-if",!0),e.details?.comments?(a(),l("button",{key:1,class:R(["paper-tab",{active:e.tabState?.active=="comments"}]),type:"button",role:"tab",id:"pr-comments-tab","aria-selected":e.tabState?.active==="comments","aria-controls":"pr-comments-panel",tabindex:e.tabState?.active==="comments"?0:-1,onKeydown:t[2]||(t[2]=i=>e.previewTabKeydown(i)),onClick:t[3]||(t[3]=i=>e.tabState.active="comments")},[t[13]||(t[13]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1)),n("span",{textContent:d(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,CQ)],42,kQ)):f("v-if",!0)])):f("v-if",!0),n("div",SQ,[e.details?.diff&&e.tabState?.active=="diff"?(a(),l("div",EQ,[n("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.details?.diff))},null,8,NQ)])):f("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(a(),l("div",RQ,[n("ul",TQ,[(a(!0),l(V,null,X(e.details?.comments,(i,o)=>(a(),l("li",PQ,[n("div",DQ,[i?.author?(a(),l("span",AQ,[t[14]||(t[14]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})],-1)),t[15]||(t[15]=m(" @",-1)),n("span",{textContent:d(i?.author)},null,8,IQ)])):f("v-if",!0),i?.updatedDate?(a(),l("span",{key:1,class:"pr-comment-date",textContent:d(e.fmt?.date(i?.updatedDate))},null,8,OQ)):f("v-if",!0)]),i?.body?(a(),l("div",MQ,[Me(s,{content:i?.body},null,8,["content"])])):f("v-if",!0)]))),256)),e.details?.comments?.length?f("v-if",!0):(a(),l("li",VQ,[...t[16]||(t[16]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1),n("span",null,"No comments on this pull request.",-1)])]))])])):f("v-if",!0)])])])}var qQ={class:"repository-task status-page"},LQ={class:"page-head-main"},_Q={class:"task-lede"},$Q={class:"task-columns"},FQ={class:"task-preparation","aria-label":"Repository preparation"},UQ={key:0,class:"text-danger",role:"alert"},BQ={key:1,class:"paper-section-copy"},zQ={key:2,class:"paper-ratelimit-card",role:"status"},HQ={class:"paper-error-msg"},jQ=["aria-valuenow"],GQ={class:"paper-progress-label"},WQ=["textContent"],KQ={key:0},YQ=["textContent"],JQ={class:"paper-progress-pct"},XQ={key:4,class:"paper-error-card",role:"alert"},QQ={key:0,class:"paper-error-msg"},ZQ={key:1,class:"paper-error-msg"},xQ={key:2},eZ=["href"],tZ={class:"paper-error-actions"},nZ=["href"],oZ={key:5,class:"share-link"},sZ={class:"share-link-row"},iZ={class:"share-link-buttons"},rZ={class:"ui-icon","aria-hidden":"true"},aZ=["href"],lZ=["textContent"],dZ=["href"],uZ={class:"share-link-note"},cZ=["href"],pZ={class:"share-link-next"},fZ={class:"share-link-next-actions"},mZ=["href"],hZ={class:"task-summary","aria-label":"Repository summary"},gZ=["title"],vZ={key:1};function qp(e,t){return a(),l("div",qQ,[n("header",{class:R(["page-head",{"task-ready":e.repo?.status==="ready"}])},[t[3]||(t[3]=n("div",{class:"paper-crumbs"},[n("a",{href:"/dashboard"},"My work"),m(" \xA0/\xA0 "),n("span",{class:"here"},"Review link")],-1)),n("div",LQ,[n("div",null,[n("h1",null,d(e.repo?.status==="ready"?"Your review link is ready":"Prepare your anonymous review link"),1),n("p",_Q,d(e.repo?.status==="ready"?"Share this link with reviewers in your submission.":"Your settings are saved. Track preparation before sharing the link."),1)])]),t[4]||(t[4]=n("ol",{class:"task-trail flow-trail","aria-label":"Repository progress"},[n("li",null,"1. Repository"),n("li",null,"2. Review and hosting"),n("li",{"aria-current":"step"},"3. Review link")],-1))],2),n("div",$Q,[n("section",FQ,[e.error?(a(),l("p",UQ,[t[5]||(t[5]=m("Unable to load repository status. ",-1)),n("button",{type:"button",class:"task-text-button",onClick:t[0]||(t[0]=s=>e.getStatus())},"Try again")])):f("v-if",!0),e.repo?.status!=="ready"?(a(),l("p",BQ,[...t[6]||(t[6]=[m(" The repository will take a few minutes to get ready, depending on its size. Visit the ",-1),n("a",{href:"/faq"},"FAQ",-1),m(" for more information. ",-1)])])):f("v-if",!0),e.rateLimitResetAt?(a(),l("div",zQ,[t[9]||(t[9]=Ce('
Temporarily paused
GitHub API rate limit reached
',1)),n("p",HQ,[t[7]||(t[7]=m("Anonymization will resume automatically in ",-1)),n("strong",null,d(e.rateLimitCountdown),1),t[8]||(t[8]=m(". No action needed \u2014 the job is queued and will continue where it left off.",-1))])])):f("v-if",!0),e.repo?.status!=="ready"&&e.repo?.status!="error"&&!e.rateLimitResetAt?(a(),l("div",{key:3,class:R(["paper-progress",{"paper-progress-ready":e.repo?.status=="ready"}]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.progress},[n("div",{class:"paper-progress-bar",style:Ae("width: "+e.progress+"%;")},null,4),n("div",GQ,[n("span",{textContent:d(e.fmt?.title(e.repo?.status))},null,8,WQ),e.repo?.statusMessage?(a(),l("span",KQ,[t[10]||(t[10]=m("\xA0\xB7\xA0",-1)),n("span",{textContent:d(e.repo?.statusMessage)},null,8,YQ)])):f("v-if",!0),n("span",JQ,d(e.progress||0)+"%",1)])],10,jQ)):f("v-if",!0),e.repo?.status=="error"&&!e.rateLimitResetAt?(a(),l("div",XQ,[t[14]||(t[14]=Ce('
Anonymization failed
Something went wrong while preparing this repository.
',1)),e.repo?.statusMessage?(a(),l("p",QQ,d(e.fmt?.translate("ERRORS."+e.repo?.statusMessage)),1)):f("v-if",!0),e.repo?.statusMessage?f("v-if",!0):(a(),l("p",ZQ,"No additional details were reported. The most common causes are private repositories, missing branches, and rate limits.")),["quota_exceeded","quota_repository_limit","quota_storage_limit"].includes(e.repo?.statusMessage)?(a(),l("p",xQ,[n("a",{href:e.safeUrl("/anonymize/"+e.repoId)},"Review this repository\u2019s hosting",8,eZ),t[11]||(t[11]=m(", then retry preparation.",-1))])):f("v-if",!0),t[15]||(t[15]=n("ul",{class:"paper-error-hints"},[n("li",null,"Make sure the source URL points to a repository or pull request you can access."),n("li",null,"Check that the chosen branch and commit still exist on GitHub."),n("li",null,"If you just signed in, the access token may need a moment to propagate \u2014 try again.")],-1)),n("div",tZ,[n("a",{class:"btn btn-primary",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[12]||(t[12]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),m(" Edit anonymization",-1)])],8,nZ),t[13]||(t[13]=Ce(' Read the FAQ Report a bug in Anonymous GitHub',2))])])):f("v-if",!0),e.repo?.status=="ready"?(a(),l("div",oZ,[t[24]||(t[24]=n("div",{class:"share-link-label",id:"share-url-label"},"Review link",-1)),n("div",sZ,[n("code",{id:"share-url",class:"share-link-url",tabindex:"0",role:"textbox","aria-readonly":"true","aria-labelledby":"share-url-label",onFocus:t[1]||(t[1]=s=>e.selectShareUrl(s))},d(e.shareUrl),33),n("div",iZ,[n("button",{type:"button",class:"btn btn-primary share-copy",onClick:t[2]||(t[2]=s=>e.copyShareUrl())},[(a(),l("svg",rZ,[n("use",{href:e.copied?"#ui-icon-check":"#project-icon-copy"},null,8,aZ)])),n("span",{"aria-live":"polite",textContent:d(e.copied?"Copied":"Copy link")},null,8,lZ)]),n("a",{class:"btn share-open",target:"_self",href:e.safeUrl("/r/"+e.repoId+"/")},[...t[16]||(t[16]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),m(" Open repository ",-1)])],8,dZ)])]),n("p",uZ,[m(d(e.repo?.options?.expirationMode!=="never"&&e.repo?.options?.expirationDate?"Expires "+e.fmt.date(e.repo.options.expirationDate):"Never expires"),1),t[18]||(t[18]=n("span",{"aria-hidden":"true"}," \xB7 ",-1)),t[19]||(t[19]=m("Reviewers don\u2019t need an account",-1)),e.repo?.options?.page?(a(),l(V,{key:0},[t[17]||(t[17]=n("span",{"aria-hidden":"true"}," \xB7 ",-1)),n("a",{target:"_self",href:e.safeUrl("/w/"+e.repoId+"/")},"Open GitHub page",8,cZ)],64)):f("v-if",!0)]),n("div",pZ,[t[22]||(t[22]=n("h2",null,"Need to change something?",-1)),t[23]||(t[23]=n("p",null,"Edit the redacted terms or the expiry at any time. The link stays the same.",-1)),n("p",fZ,[n("a",{href:e.safeUrl("/anonymize/"+e.repoId)},"Edit anonymization",8,mZ),t[20]||(t[20]=n("span",{"aria-hidden":"true"},"\xB7",-1)),t[21]||(t[21]=n("a",{href:"/dashboard"},"Go to My work",-1))])])])):f("v-if",!0)]),n("aside",hZ,[n("dl",null,[t[28]||(t[28]=n("dt",null,"Source",-1)),e.repo?.source?.fullName?(a(),l("dd",{key:0,class:"task-source",title:"https://github.com/"+e.repo.source.fullName},[t[25]||(t[25]=m("github.com/",-1)),t[26]||(t[26]=n("wbr",null,null,-1)),m(d(e.repo.source.fullName.split("/")[0])+"/",1),t[27]||(t[27]=n("wbr",null,null,-1)),m(d(e.repo.source.fullName.split("/").slice(1).join("/")),1)],8,gZ)):(a(),l("dd",vZ,"Loading\u2026")),t[29]||(t[29]=n("dt",null,"Lifetime",-1)),n("dd",null,d(e.repo?.options?.expirationMode==="never"?"Never expire while subscribed":e.repo?.options?.expirationDate?"Until "+e.fmt.date(e.repo.options.expirationDate):"Loading\u2026"),1),t[30]||(t[30]=n("dt",null,"Review access",-1)),t[31]||(t[31]=n("dd",null,"Anonymous and free",-1))])])])])}var yZ={class:"container paper-page admin-page overview-page billing-page"},bZ={class:"bl-toolbar"},wZ={class:"seg-filter",role:"radiogroup","aria-label":"Period"},kZ=["aria-checked","onClick"],CZ={key:0,class:"bl-basis"},SZ={key:0,class:"ov-performance-message ov-performance-warning bl-message",role:"alert"},EZ={key:1,class:"ov-performance-message bl-message",role:"status"},NZ={key:2,class:"ov-performance-message ov-performance-warning bl-message",role:"status"},RZ=["aria-busy"],TZ={class:"ov-kpi-card"},PZ={class:"ov-kpi-value"},DZ={class:"ov-kpi-sub"},AZ={class:"ov-kpi-card"},IZ={key:0,class:"ov-kpi-sub"},OZ={key:1,class:"ov-kpi-sub"},MZ={class:"ov-kpi-card"},VZ={class:"ov-kpi-label"},qZ={class:"ov-kpi-value"},LZ={class:"ov-kpi-sub"},_Z={class:"ov-kpi-card"},$Z={class:"ov-kpi-value"},FZ={class:"ov-kpi-sub"},UZ={class:"ov-kpi-card"},BZ={class:"ov-kpi-value"},zZ={class:"ov-kpi-sub"},HZ={class:"ov-kpi-card"},jZ={class:"ov-kpi-sub"},GZ={key:3,class:"bl-health","aria-label":"Webhook health"},WZ={class:"bl-health-title"},KZ={class:"bl-health-item"},YZ=["title"],JZ={key:1,class:"bl-health-item"},XZ={key:4,class:"ov-chart-card bl-chart-card"},QZ={class:"ov-chart-head"},ZZ={class:"ov-chart-title"},xZ={key:0,class:"ov-chart-legends"},ex=["aria-label"],tx={class:"ov-yaxis","aria-hidden":"true"},nx=["data-tip"],ox={class:"ov-spark-x bl-x"},sx={key:1,class:"ov-performance-empty bl-empty",role:"status"},ix={key:5,class:"ov-panel-card bl-plans","aria-labelledby":"bl-plans-heading"},rx={class:"ov-panel-head"},ax={class:"ov-panel-meta"},lx={class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Sales by plan, scroll for more columns"},dx={class:"ov-metrics-table"},ux={key:0,scope:"colgroup",colspan:"2",class:"bl-group"},cx={class:"bl-family-row"},px={scope:"rowgroup",class:"bl-plan-name"},fx={class:"num"},mx={class:"num"},hx={class:"num"},gx={class:"num"},vx={class:"num"},yx={scope:"row",class:"bl-plan-name bl-plan-child"},bx=["title","onClick"],wx={class:"num"},kx={class:"num"},Cx={class:"num"},Sx={class:"num"},Ex={class:"num"},Nx={class:"num"},Rx={class:"num"},Tx={class:"num"},Px={class:"num"},Dx={class:"num"},Ax={class:"bl-grants",id:"bl-grants","aria-labelledby":"bl-grants-heading"},Ix={class:"seg-bar"},Ox={class:"seg-filter",role:"radiogroup","aria-label":"Filter by state"},Mx=["aria-checked"],Vx={class:"count"},qx=["aria-checked"],Lx={class:"count"},_x=["aria-checked"],$x={class:"count"},Fx=["aria-checked"],Ux={class:"count"},Bx={class:"seg-countline",role:"status"},zx={key:0,class:"alert alert-danger bl-alert"},Hx=["aria-expanded"],jx={class:"search-wrap"},Gx={type:"search",class:"form-control","aria-label":"Search by user",placeholder:"Search by user\u2026",autocomplete:"off"},Wx={class:"admin-filter-inline"},Kx={id:"bl-plan",class:"form-control form-control-sm"},Yx=["label"],Jx=["value"],Xx={class:"admin-filter-inline"},Qx={id:"bl-period",class:"form-control form-control-sm"},Zx=["value"],xx={class:"admin-filter-inline"},eee={id:"bl-status",class:"form-control form-control-sm"},tee=["value"],nee={key:0,class:"admin-filter-inline","aria-label":"Pagination"},oee=["disabled"],see={class:"bl-page"},iee=["disabled"],ree={key:0,class:"admin-filter-row"},aee={class:"admin-active-chips"},lee={class:"key"},dee=["onClick"],uee={key:1,class:"ov-metrics-scroll bl-grant-scroll",tabindex:"0",role:"region","aria-label":"Subscriptions and purchases, scroll for more columns"},cee={class:"ov-metrics-table bl-grant-table"},pee={scope:"col"},fee={scope:"col"},mee={scope:"row",class:"bl-user"},hee=["title","href"],gee={key:1,class:"ov-muted"},vee=["title"],yee=["title"],bee={class:"bl-state"},wee={key:0},kee={key:1},Cee={class:"bl-date"},See={class:"bl-date"},Eee={key:0},Nee={key:1},Ree=["title"],Tee={class:"bl-scope"},Pee=["href","title"],Dee={class:"ui-icon","aria-hidden":"true"},Aee=["href"],Iee={key:1,class:"ov-muted"},Oee={key:2,class:"paper-table-empty"},Mee={key:3,class:"admin-empty"},Vee={key:4,class:"admin-toolbar bl-pager"},qee={key:0,class:"pagination-compact"},Lee=["disabled"],_ee=["max"],$ee=["disabled"],Fee={class:"admin-filter-inline"},Uee={id:"bl-limit",class:"form-control form-control-sm"};function Lp(e,t){let s=Pe("field"),i=Pe("form");return a(),l("div",yZ,[t[81]||(t[81]=Ce('
Admin \xA0/\xA0 Billing

Billing

',2)),n("div",bZ,[n("div",wZ,[(a(!0),l(V,null,X(e.periods,o=>(a(),l("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.period===o.id}]),key:o.id,"aria-checked":e.period===o.id,onClick:r=>e.setPeriod(o.id)},d(o.label),11,kZ))),128))]),e.summary?(a(),l("p",CZ,"Sales are new checkouts and subscriptions. Revenue uses Stripe list prices; renewals count toward MRR.")):f("v-if",!0)]),e.summaryError?(a(),l("div",SZ,[t[15]||(t[15]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),n("span",null,d(e.summaryError),1),n("button",{type:"button",class:"btn btn-sm",onClick:t[0]||(t[0]=o=>e.loadSummary())},"Retry")])):f("v-if",!0),e.summary&&!e.summary.revenue?.available?(a(),l("div",EZ,[...t[16]||(t[16]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1),n("span",null,[n("b",null,"Revenue unavailable."),m(" Stripe is not configured on this server, so amounts can't be looked up. Counts are complete.")],-1)])])):f("v-if",!0),e.summary?.revenue?.missingSales||e.summary?.revenue?.missingAllTimeSales||e.summary?.revenue?.missingSubscriptions?(a(),l("div",NZ,[t[17]||(t[17]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),n("span",null,"Some Stripe prices are unavailable. Affected totals are marked incomplete: "+d(e.fmt?.number(e.summary.revenue.missingSales||0))+" period sales, "+d(e.fmt?.number(e.summary.revenue.missingAllTimeSales||0))+" historical sales, "+d(e.fmt?.number(e.summary.revenue.missingSubscriptions||0))+" active subscriptions.",1)])):f("v-if",!0),f(" \u2500\u2500 Summary tiles \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",{class:R(["ov-kpi-row bl-kpi-row",{"is-loading":e.summaryLoading}]),"aria-busy":e.summaryLoading?"true":"false","aria-label":"Billing summary"},[!e.summary&&e.summaryLoading?(a(),l(V,{key:0},X(6,o=>n("div",{class:"ov-kpi-card",key:o,"aria-hidden":"true"},[...t[18]||(t[18]=[n("span",{class:"skeleton skeleton-line-sm",style:{width:"60%"}},null,-1),n("span",{class:"skeleton bl-skeleton-value"},null,-1),n("span",{class:"skeleton skeleton-line-sm",style:{width:"80%"}},null,-1)])])),64)):f("v-if",!0),e.summary?(a(),l(V,{key:1},[n("div",TZ,[t[19]||(t[19]=n("div",{class:"ov-kpi-label"},"Active subscriptions",-1)),n("div",PZ,d(e.fmt?.number(e.summary.subscriptions.active)),1),n("div",DZ,d(e.fmt?.number(e.summary.subscriptions.monthly))+" monthly \xB7 "+d(e.fmt?.number(e.summary.subscriptions.annual))+" annual",1)]),n("div",AZ,[t[20]||(t[20]=n("div",{class:"ov-kpi-label"},"MRR",-1)),n("div",{class:R(["ov-kpi-value",{"bl-muted-value":!e.revenueOn()}])},d(e.revenueOn()?e.summary.subscriptions.complete===!1?"Incomplete":e.money(e.summary.subscriptions.mrr)[0]||e.fmt?.money(0):"Unavailable"),3),e.revenueOn()&&e.money(e.summary.subscriptions.mrr).length>1?(a(),l("div",IZ,"+ "+d(e.money(e.summary.subscriptions.mrr).slice(1).join(" \xB7 ")),1)):(a(),l("div",OZ,d(e.revenueOn()?"Annual plans \xF7 12":"Needs Stripe prices"),1))]),n("div",MZ,[n("div",VZ,"Sales \xB7 "+d(e.periodPhrase()),1),n("div",qZ,d(e.fmt?.number(e.summary.sales.count)),1),n("div",LZ,d(e.revenueOn()?e.summary.sales.complete===!1?"Revenue incomplete":e.moneyText(e.summary.sales.revenue,e.fmt?.money(0)):"Revenue unavailable"),1)]),n("div",_Z,[t[21]||(t[21]=n("div",{class:"ov-kpi-label"},"All-time sales",-1)),n("div",$Z,d(e.fmt?.number(e.summary.allTime.count)),1),n("div",FZ,d(e.revenueOn()?e.summary.allTime.complete===!1?"Revenue incomplete":e.moneyText(e.summary.allTime.revenue,e.fmt?.money(0)):"Revenue unavailable"),1)]),n("div",UZ,[t[22]||(t[22]=n("div",{class:"ov-kpi-label"},"Cancelling",-1)),n("div",BZ,d(e.fmt?.number(e.summary.subscriptions.cancelling)),1),n("div",zZ,"at period end, of "+d(e.fmt?.number(e.summary.subscriptions.active))+" active",1)]),n("div",HZ,[t[23]||(t[23]=n("div",{class:"ov-kpi-label"},"Refunds & disputes",-1)),n("div",{class:R(["ov-kpi-value",{"ov-val-warn":e.summary.reversals.disputes>0}])},d(e.fmt?.number(e.summary.reversals.refunds+e.summary.reversals.disputes)),3),n("div",jZ,d(e.fmt?.number(e.summary.reversals.refunds))+" "+d(e.summary.reversals.refunds===1?"refund":"refunds")+" \xB7 "+d(e.fmt?.number(e.summary.reversals.disputes))+" "+d(e.summary.reversals.disputes===1?"dispute":"disputes"),1)])],64)):f("v-if",!0)],10,RZ),f(" \u2500\u2500 Webhook health \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),e.summary?.webhooks?(a(),l("section",GZ,[n("span",WZ,[n("span",{class:R(["ov-svc-dot",{"ov-dot-ok":e.webhookState()==="ok","ov-dot-warn":e.webhookState()==="warn","bl-dot-bad":e.webhookState()==="bad"}]),"aria-hidden":"true"},null,2),t[24]||(t[24]=m("Stripe webhooks",-1))]),n("span",KZ,[t[25]||(t[25]=n("span",{class:"k"},"Pending",-1)),m(" "+d(e.fmt?.number(e.summary.webhooks.pending)),1),e.summary.webhooks.pending?(a(),l(V,{key:0},[m(" \xB7 oldest "+d(e.age(e.summary.webhooks.oldestPendingSeconds)),1)],64)):f("v-if",!0)]),n("span",{class:R(["bl-health-item",{"is-bad":e.summary.webhooks.failed}])},[t[26]||(t[26]=n("span",{class:"k"},"Failed",-1)),m(" "+d(e.fmt?.number(e.summary.webhooks.failed)),1)],2),e.summary.webhooks.lastError?(a(),l("span",{key:0,class:"bl-health-item bl-health-error",title:e.summary.webhooks.lastError.type+": "+e.summary.webhooks.lastError.error},[t[27]||(t[27]=n("span",{class:"k"},"Last error",-1)),t[28]||(t[28]=m()),n("code",null,d(e.summary.webhooks.lastError.error),1),m(" on "+d(e.summary.webhooks.lastError.type)+" \xB7 "+d(e.fmt?.humanTime(e.summary.webhooks.lastError.receivedAt)),1)],8,YZ)):(a(),l("span",JZ,[...t[29]||(t[29]=[n("span",{class:"k"},"Last error",-1),m(" none",-1)])])),n("span",{class:R(["bl-health-item",{"is-warn":e.summary.webhooks.unreviewedRevocations}])},[t[30]||(t[30]=n("span",{class:"k"},"Unreviewed reversals",-1)),m(" "+d(e.fmt?.number(e.summary.webhooks.unreviewedRevocations)),1)],2)])):f("v-if",!0),f(" \u2500\u2500 Sales over time \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),e.summary?(a(),l("section",XZ,[n("div",QZ,[n("span",ZZ,"Sales per "+d(e.bucketName())+" \xB7 "+d(e.periodPhrase()),1),e.seriesSales()?(a(),l("span",xZ,[(a(!0),l(V,null,X(e.families,o=>(a(),l("span",{class:"ov-chart-legend",key:o.id},[n("span",{class:R(["bl-swatch","bl-"+o.id]),"aria-hidden":"true"},null,2),m(d(o.label)+" \xB7 "+d(e.legendText(o.id)),1)]))),128))])):f("v-if",!0)]),e.seriesSales()?(a(),l(V,{key:0},[n("div",{class:R(["ov-spark-bars ov-has-axis bl-bars",{"is-dense":e.summary.series.length>45}]),role:"img","aria-label":e.fmt?.number(e.seriesSales())+" sales, "+e.periodPhrase()+", by plan family"},[n("div",tx,[n("span",null,d(e.fmt?.number(e.chartMax())),1),n("span",null,d(e.fmt?.number(e.chartMax()/2)),1),t[31]||(t[31]=n("span",null,"0",-1))]),(a(!0),l(V,null,X(e.summary.series,(o,r)=>(a(),l("div",{class:R(["ov-spark-col has-tip bl-col",[e.tipSide(r),{"is-zero":!e.bucketTotal(o)}]]),key:r,"data-tip":e.bucketTip(o)},[n("span",{class:"bl-stack",style:Ae({height:e.bucketTotal(o)/e.chartMax()*100+"%"})},[(a(!0),l(V,null,X(e.families,u=>P((a(),l("i",{key:u.id,class:R("bl-"+u.id),style:Ae({flexGrow:o[u.id]})},null,6)),[[Q,o[u.id]]])),128))],4)],10,nx))),128))],10,ex),n("div",ox,[n("span",null,d(e.bucketLabel(e.summary.series[0])),1),n("span",null,d(e.bucketLabel(e.summary.series[Math.floor(e.summary.series.length/2)])),1),n("span",null,d(e.bucketLabel(e.summary.series[e.summary.series.length-1])),1)])],64)):(a(),l("p",sx,"No sales "+d(e.period==="all"?"yet":"in the "+e.periodPhrase())+".",1))])):f("v-if",!0),f(" \u2500\u2500 By plan \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),e.summary?(a(),l("section",ix,[n("div",rx,[t[32]||(t[32]=n("h2",{class:"ov-panel-title",id:"bl-plans-heading"},"By plan",-1)),n("span",ax,d(e.fmt?.number(e.plansWithActivity().length))+" of "+d(e.fmt?.number(e.summary.plans.length))+" plans sold",1)]),n("div",lx,[n("table",dx,[t[41]||(t[41]=n("caption",{class:"sr-only"},"Active grants, sales and revenue per plan",-1)),n("thead",null,[n("tr",null,[t[33]||(t[33]=n("th",{scope:"col",rowspan:"2"},"Plan",-1)),t[34]||(t[34]=n("th",{scope:"col",rowspan:"2",class:"num"},"Active",-1)),e.period!=="all"?(a(),l("th",ux,d(e.periodPhrase().replace(/^./,o=>o.toUpperCase())),1)):f("v-if",!0),t[35]||(t[35]=n("th",{scope:"colgroup",colspan:"2",class:"bl-group"},"All time",-1))]),n("tr",null,[e.period!=="all"?(a(),l(V,{key:0},[t[36]||(t[36]=n("th",{scope:"col",class:"num"},"Sales",-1)),t[37]||(t[37]=n("th",{scope:"col",class:"num"},"Revenue",-1))],64)):f("v-if",!0),t[38]||(t[38]=n("th",{scope:"col",class:"num"},"Sales",-1)),t[39]||(t[39]=n("th",{scope:"col",class:"num"},"Revenue",-1))])]),(a(!0),l(V,null,X(e.families,o=>P((a(),l("tbody",{key:o.id},[n("tr",cx,[n("th",px,[n("span",{class:R(["bl-swatch","bl-"+o.id]),"aria-hidden":"true"},null,2),m(d(o.label),1)]),n("td",fx,d(e.fmt?.number(e.familySum(o.id,"active"))),1),e.period!=="all"?(a(),l(V,{key:0},[n("td",mx,d(e.fmt?.number(e.familySum(o.id,"sales"))),1),n("td",hx,d(e.familyMoney(o.id,"revenue","revenueComplete")),1)],64)):f("v-if",!0),n("td",gx,d(e.fmt?.number(e.familySum(o.id,"allTimeSales"))),1),n("td",vx,d(e.familyMoney(o.id,"allTimeRevenue","allTimeRevenueComplete")),1)]),(a(!0),l(V,null,X(e.familyPlans(o.id),r=>(a(),l("tr",{key:r.planId,class:R({"bl-idle":!r.active&&!r.sales&&!r.allTimeSales})},[n("th",yx,[n("button",{type:"button",class:"bl-link",title:"Show "+r.name+" sales",onClick:u=>e.filterPlan(r.planId)},d(r.name),9,bx)]),n("td",wx,d(e.fmt?.number(r.active)),1),e.period!=="all"?(a(),l(V,{key:0},[n("td",kx,d(e.fmt?.number(r.sales)),1),n("td",Cx,d(e.revenueOn()?r.revenueComplete===!1?"Incomplete":e.moneyText(r.revenue):"\u2014"),1)],64)):f("v-if",!0),n("td",Sx,d(e.fmt?.number(r.allTimeSales)),1),n("td",Ex,d(e.revenueOn()?r.allTimeRevenueComplete===!1?"Incomplete":e.moneyText(r.allTimeRevenue):"\u2014"),1)],2))),128))])),[[Q,e.familyPlans(o.id).length]])),128)),n("tfoot",null,[n("tr",null,[t[40]||(t[40]=n("th",{scope:"row"},"Total",-1)),n("td",Nx,d(e.fmt?.number(e.planTotals().active)),1),e.period!=="all"?(a(),l(V,{key:0},[n("td",Rx,d(e.fmt?.number(e.planTotals().sales)),1),n("td",Tx,d(e.revenueOn()?e.summary.sales.complete===!1?"Incomplete":e.moneyText(e.summary.sales.revenue):"\u2014"),1)],64)):f("v-if",!0),n("td",Px,d(e.fmt?.number(e.planTotals().allTimeSales)),1),n("td",Dx,d(e.revenueOn()?e.summary.allTime.complete===!1?"Incomplete":e.moneyText(e.summary.allTime.revenue):"\u2014"),1)])])])]),t[42]||(t[42]=n("p",{class:"ov-performance-note bl-note"},"A paper pack counts once, under Paper pack, here, in the chart and in the list below. Active means paid time remains and the payment wasn't reversed.",-1))])):f("v-if",!0),f(" \u2500\u2500 Subscriptions and purchases \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",Ax,[t[80]||(t[80]=n("div",{class:"bl-section-head"},[n("h2",{class:"ov-panel-title",id:"bl-grants-heading"},"Subscriptions and purchases")],-1)),n("div",Ix,[n("div",Ox,[n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.stateView()==="all"}]),"aria-checked":e.stateView()==="all",onClick:t[1]||(t[1]=o=>e.setStateView("all"))},[t[43]||(t[43]=m("All ",-1)),n("span",Vx,d(e.fmt?.number(e.stateCount("all"))),1)],10,Mx),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.stateView()==="active","is-empty":!e.stateCount("active")}]),"aria-checked":e.stateView()==="active",onClick:t[2]||(t[2]=o=>e.setStateView("active"))},[t[44]||(t[44]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[45]||(t[45]=m("Active ",-1)),n("span",Lx,d(e.fmt?.number(e.stateCount("active"))),1)],10,qx),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.stateView()==="expired","is-empty":!e.stateCount("expired")}]),"aria-checked":e.stateView()==="expired",onClick:t[3]||(t[3]=o=>e.setStateView("expired"))},[t[46]||(t[46]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[47]||(t[47]=m("Expired ",-1)),n("span",$x,d(e.fmt?.number(e.stateCount("expired"))),1)],10,_x),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.stateView()==="revoked","is-empty":!e.stateCount("revoked")}]),"aria-checked":e.stateView()==="revoked",onClick:t[4]||(t[4]=o=>e.setStateView("revoked"))},[t[48]||(t[48]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[49]||(t[49]=m("Revoked ",-1)),n("span",Ux,d(e.fmt?.number(e.stateCount("revoked"))),1)],10,Fx)]),n("p",Bx,[n("strong",null,d(e.total>=0?e.fmt.number(e.total):"\u2026"),1),t[50]||(t[50]=m(" shown",-1))])]),e.grantsError?(a(),l("div",zx,[t[51]||(t[51]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),m(" "+d(e.grantsError)+" ",1),n("button",{type:"button",class:"btn btn-sm",onClick:t[5]||(t[5]=o=>e.reloadGrants())},"Retry")])):f("v-if",!0),P((a(),l("form",{class:"w-100 admin-filter-toolbar","aria-label":"Subscriptions and purchases","accept-charset":"UTF-8",onSubmit:t[9]||(t[9]=de(()=>{},["prevent"]))},[n("button",{type:"button",class:"btn btn-sm admin-filters-toggle",onClick:t[6]||(t[6]=o=>e.filtersOpen=!e.filtersOpen),"aria-expanded":e.filtersOpen?"true":"false"},[t[52]||(t[52]=m("Filters",-1)),e.filterCount()?(a(),l(V,{key:0},[m(" ("+d(e.filterCount())+")",1)],64)):f("v-if",!0)],8,Hx),n("div",{class:R(["admin-filter-row",{"is-open":e.filtersOpen}])},[n("div",jx,[P(n("input",Gx,null,512),[[s,{state:e.viewState,set:o=>{e.query.search=o},value:e.query?.search,form:null,options:{}}]])]),n("span",Wx,[t[54]||(t[54]=n("label",{for:"bl-plan"},"Plan",-1)),P((a(),l("select",Kx,[t[53]||(t[53]=n("option",{value:""},"Any",-1)),(a(!0),l(V,null,X(e.families,o=>(a(),l("optgroup",{key:o.id,label:o.label},[(a(!0),l(V,null,X((e.summary?.plans||[]).filter(r=>r.family===o.id),r=>(a(),l("option",{key:r.planId,value:r.planId},d(r.name),9,Jx))),128))],8,Yx))),128))])),[[s,{state:e.viewState,set:o=>{e.query.plan=o},value:e.query?.plan,form:null,options:{}}]])]),n("span",Xx,[t[56]||(t[56]=n("label",{for:"bl-period"},"Started",-1)),P((a(),l("select",Qx,[t[55]||(t[55]=n("option",{value:""},"Any time",-1)),(a(!0),l(V,null,X(e.periods.filter(o=>o.id!=="all"),o=>(a(),l("option",{key:o.id,value:o.id},"Last "+d(o.label),9,Zx))),128))])),[[s,{state:e.viewState,set:o=>{e.query.period=o},value:e.query?.period,form:null,options:{}}]])]),n("span",xx,[t[58]||(t[58]=n("label",{for:"bl-status"},"Stripe status",-1)),P((a(),l("select",eee,[t[57]||(t[57]=n("option",{value:""},"Any",-1)),(a(!0),l(V,null,X(e.statuses,o=>(a(),l("option",{key:o,value:o},d(o.replace(/_/g," ")),9,tee))),128))])),[[s,{state:e.viewState,set:o=>{e.query.status=o},value:e.query?.status,form:null,options:{}}]])]),t[61]||(t[61]=n("span",{class:"admin-filter-spacer"},null,-1)),e.totalPage>1?(a(),l("span",nee,[n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[7]||(t[7]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[59]||(t[59]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,oee),n("span",see,d(e.query?.page)+"/"+d(e.totalPage||1),1),n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[8]||(t[8]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[60]||(t[60]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,iee)])):f("v-if",!0)],2),e.chips?.length?(a(),l("div",ree,[n("div",aee,[(a(!0),l(V,null,X(e.chips,o=>(a(),l("span",{class:"admin-active-chip",key:o?.key},[n("span",lee,d(o?.label),1),n("span",null,d(o?.value),1),n("button",{type:"button",onClick:r=>e.clearFilter(o.key),"aria-label":"Clear filter"},[...t[62]||(t[62]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,dee)]))),128))])])):f("v-if",!0)],32)),[[i,e.viewState]]),e.grants?.length?(a(),l("div",uee,[n("table",cee,[t[73]||(t[73]=n("caption",{class:"sr-only"},"Subscriptions and purchases",-1)),n("thead",null,[n("tr",null,[t[67]||(t[67]=n("th",{scope:"col"},"User",-1)),t[68]||(t[68]=n("th",{scope:"col"},"Plan",-1)),t[69]||(t[69]=n("th",{scope:"col"},"Status",-1)),n("th",pee,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="purchasedAt"}]),onClick:t[10]||(t[10]=o=>e.sortBy("purchasedAt"))},[t[64]||(t[64]=m("Started ",-1)),e.sortIcon("purchasedAt")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("purchasedAt")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[63]||(t[63]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("th",fee,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="until"}]),onClick:t[11]||(t[11]=o=>e.sortBy("until"))},[t[66]||(t[66]=m("Renews / ends ",-1)),e.sortIcon("until")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("until")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[65]||(t[65]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[70]||(t[70]=n("th",{scope:"col",class:"num"},"Amount",-1)),t[71]||(t[71]=n("th",{scope:"col"},"Applies to",-1))])]),n("tbody",null,[(a(!0),l(V,null,X(e.grants,o=>(a(),l("tr",{key:o.id},[n("th",mee,[o.user?(a(),l("a",{key:0,title:o.user,href:e.safeUrl("/admin/users/"+o.user)},d(o.user),9,hee)):(a(),l("span",gee,"Deleted user"))]),n("td",null,[n("span",{class:"bl-plan-cell",title:e.familyLabel(o.family)},[n("span",{class:R(["bl-swatch","bl-"+o.family]),"aria-hidden":"true"},null,2),m(d(e.planName(o.planId)),1)],8,vee),o.pack?(a(),l("small",{key:0,title:e.packPartsTitle(o)},d(e.packParts(o)),9,yee)):f("v-if",!0)]),n("td",null,[n("span",bee,[n("span",{class:R(["status-dot",o.state==="active"?"st-ready":o.state==="revoked"?"st-error":"st-expired"])},null,2),m(d(o.state==="active"?"Active":o.state==="revoked"?"Revoked":"Expired"),1)]),o.revoked?(a(),l("small",wee,[m(d(e.revocationText(o.revocationReason)),1),o.revokedAt?(a(),l(V,{key:0},[m(" \xB7 "+d(e.fmt?.date(o.revokedAt)),1)],64)):f("v-if",!0)])):["active","paid"].includes(o.status)?f("v-if",!0):(a(),l("small",kee,"Stripe: "+d(e.statusText(o)),1))]),n("td",Cee,d(o.purchasedAt?e.fmt?.date(o.purchasedAt):"\u2014"),1),n("td",See,[m(d(e.endText(o)),1),o.subscription&&o.cancelAtPeriodEnd&&o.state==="active"?(a(),l("small",Eee,[...t[72]||(t[72]=[n("span",{class:"bl-flag"},"Cancelling",-1)])])):e.packNote(o)?(a(),l("small",Nee,d(e.packNote(o)),1)):f("v-if",!0)]),n("td",{class:"num bl-amount",title:e.amountTitle(o)},[n("span",{class:R({"ov-muted":!o.amount})},d(e.amountText(o)),3)],8,Ree),n("td",Tee,[e.scopeHref(o.scope)?(a(),l("a",{key:0,href:e.safeUrl(e.scopeHref(o.scope)),title:o.scope.id},[(a(),l("svg",Dee,[n("use",{href:o.scope.kind==="conference"?"#project-icon-conference":"#project-type-repo"},null,8,Aee)])),n("span",null,d(o.scope.id),1)],8,Pee)):(a(),l("span",Iee,"Account"))])]))),128))])])])):f("v-if",!0),e.total===0?(a(),l("div",Oee,[t[74]||(t[74]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),n("span",null,d(e.hasFilters()?"No subscriptions or purchases match these filters.":"No subscriptions or purchases yet."),1),e.hasFilters()?(a(),l("button",{key:0,type:"button",class:"btn btn-sm",onClick:t[12]||(t[12]=o=>e.clearFilters())},"Clear filters")):f("v-if",!0)])):f("v-if",!0),e.total<0&&!e.grantsError?(a(),l("div",Mee,"Loading subscriptions and purchases\u2026")):f("v-if",!0),e.total>0?(a(),l("div",Vee,[t[79]||(t[79]=n("span",{"aria-hidden":"true"},null,-1)),e.totalPage>1?(a(),l("div",qee,[n("button",{class:"btn btn-sm",onClick:t[13]||(t[13]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[75]||(t[75]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1),m(" Previous",-1)])],8,Lee),P(n("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},"aria-label":"Page",max:e.totalPage},null,8,_ee),[[s,{state:e.viewState,set:o=>{e.query.page=o},value:e.query?.page,form:null,options:{}}]]),n("span",null,"of "+d(e.totalPage),1),n("button",{class:"btn btn-sm",onClick:t[14]||(t[14]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[76]||(t[76]=[m("Next ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,$ee)])):f("v-if",!0),n("span",Fee,[t[78]||(t[78]=n("label",{for:"bl-limit"},"Per page",-1)),P((a(),l("select",Uee,[...t[77]||(t[77]=[n("option",{value:"10"},"10",-1),n("option",{value:"25"},"25",-1),n("option",{value:"50"},"50",-1),n("option",{value:"100"},"100",-1)])])),[[s,{state:e.viewState,set:o=>{e.query.limit=o},value:e.query?.limit,form:null,options:{}}]])])])):f("v-if",!0)])])}var Bee={class:"paper-footer"},zee={class:"paper-footer-inner"},Hee={class:"paper-footer-col"},jee={key:0,href:"/dashboard"},Gee={key:1,href:"/conferences"},Wee={class:"paper-footer-foot"};function _p(e,t){return a(),l("footer",Bee,[n("div",zee,[t[3]||(t[3]=n("div",{class:"paper-footer-brand"},[n("div",{class:"paper-footer-mark"},[m("Anonymous "),n("em",null,"GitHub")]),n("p",{class:"paper-footer-tag"}," A read-only, identity-stripped mirror of your repository, built for double-anonymous peer review. ")],-1)),n("div",Hee,[t[0]||(t[0]=n("div",{class:"paper-footer-head"},"Product",-1)),t[1]||(t[1]=n("a",{href:"/anonymize"},"Anonymize",-1)),e.user?(a(),l("a",jee,"My work")):f("v-if",!0),e.user?(a(),l("a",Gee,"Conferences")):f("v-if",!0),t[2]||(t[2]=n("a",{href:"/faq"},"FAQ",-1))]),t[4]||(t[4]=Ce('',2))]),t[6]||(t[6]=n("div",{class:"paper-footer-rule"},null,-1)),n("div",Wee,[n("span",null,"\xA9 "+d(e.year||new Date().getFullYear())+" Anonymous GitHub \xB7 GPL-3.0 licensed",1),t[5]||(t[5]=n("span",{class:"paper-footer-meta"},"Built for reviewers, by researchers.",-1))])])}var wr={"partials/reviewConsent.htm":ap,"partials/connections.htm":lp,"partials/signin.htm":dp,"partials/404.htm":up,"partials/admin/billing.htm":Lp,"partials/admin/emails.htm":rp,"partials/admin/conferences.htm":cp,"partials/admin/errors.htm":pp,"partials/admin/overview.htm":fp,"partials/admin/queues.htm":mp,"partials/admin/repositories.htm":hp,"partials/admin/user.htm":gp,"partials/admin/users.htm":vp,"partials/anonymize.htm":yp,"partials/anonymizePullRequest.htm":bp,"partials/claim.htm":wp,"partials/conference.htm":kp,"partials/conferences.htm":Cp,"partials/dashboard.htm":Sp,"partials/explorer.htm":Ep,"partials/faq.htm":Np,"partials/gist.htm":Rp,"partials/header.htm":Tp,"partials/home.htm":Pp,"partials/loading.htm":Dp,"partials/newConference.htm":Ap,"partials/pageView.htm":Ip,"partials/pr-dashboard.htm":Op,"partials/profile.htm":Mp,"partials/pullRequest.htm":Vp,"partials/status.htm":qp,"partials/footer.htm":_p};var Kee={class:"ui-icon-definitions","aria-hidden":"true",focusable:"false"};function $p(e,t){return a(),l("svg",Kee,[...t[0]||(t[0]=[Ce('',1)])])}function Fp(e,t){e==="partials/explorer.htm"&&(t.sidebarCollapsed=window.matchMedia?.("(max-width: 767px)").matches||!1,t.sidebarHidden=!1,t.dirExpanded=!1,t.moreOpen=!1,t.tocOpen=!1,t.gotoOpen=!1,t.gotoValue="",t.gotoError="",t.mdFindOpen=!1,t.mdFindQuery="",t.mdFindTotal=0,t.mdFindIndex=0,t.mdFindCase=!1,t.accountOpen=!1,t.helpOpen=!1,t.sidebarWidth=Math.min(520,Math.max(220,Number(localStorage.getItem("sidebarWidth"))||(window.innerWidth>=1280?320:280))),document.documentElement.style.setProperty("--sidebar-w",t.sidebarWidth+"px"),t.startSidebarResize=o=>{o.preventDefault();let r=o.clientX,u=t.sidebarWidth,p=v=>{t.sidebarWidth=Math.min(520,Math.max(220,u+v.clientX-r)),document.documentElement.style.setProperty("--sidebar-w",t.sidebarWidth+"px")},c=()=>{window.removeEventListener("pointermove",p),window.removeEventListener("pointerup",c),document.body.classList.remove("is-resizing"),localStorage.setItem("sidebarWidth",String(t.sidebarWidth))};document.body.classList.add("is-resizing"),window.addEventListener("pointermove",p),window.addEventListener("pointerup",c)}),e==="partials/anonymize.htm"&&(t.prTabState={active:t.options.diff?"diff":"comments"},t.watchGroup(["options.diff","options.comments"],()=>{t.options[t.prTabState.active]||(t.prTabState.active=t.options.diff?"diff":t.options.comments?"comments":null)})),e==="partials/gist.htm"&&(t.tabState={active:t.details?.files?"files":"comments"}),["partials/conferences.htm","partials/conference.htm"].includes(e)&&(t.statusLabels={ready:"Ready",expired:"Expired",removed:"Removed"});let i={"partials/dashboard.htm":["filteredItems",()=>t.items,"itemFilter"],"partials/conferences.htm":["filteredConferences",()=>t.conferences,"conferenceFilter"],"partials/conference.htm":["filteredRepositories",()=>t.conference?.repositories,"repoFiler"],"partials/admin/repositories.htm":["filteredRepositories",()=>t.repositories,"repoFiler"],"partials/admin/user.htm":["filteredRepositories",()=>t.repositories,"repoFiler"],"partials/admin/users.htm":["filteredUsers",()=>t.users,"userFiler"],"partials/admin/conferences.htm":["filteredConferences",()=>t.conferences]}[e];if(i){let o=Et(()=>t.fmt.orderBy(t.fmt.filter(i[1](),t[i[2]]),t.orderBy));Object.defineProperty(t,i[0],{configurable:!0,get:()=>o.value})}}function Up(e=(...t)=>fetch(...t)){async function t(i,o,r,u={}){let p=new URL(o,window.location.href);for(let[h,y]of Object.entries(u.params||{}))if(y!=null)for(let g of Array.isArray(y)?y:[y])p.searchParams.append(h,typeof g=="object"?JSON.stringify(g):g);let c=new AbortController,v;u.timeout?.then?u.timeout.then(()=>c.abort()):u.timeout&&(v=setTimeout(()=>c.abort(),u.timeout));try{let h={Accept:"application/json, text/plain, */*",...u.headers},y=document.cookie.match(/(?:^|;\s*)XSRF-TOKEN=([^;]*)/);y&&p.origin===window.location.origin&&(h["X-XSRF-TOKEN"]=decodeURIComponent(y[1]));let g;r!==void 0&&(r instanceof FormData?g=r:(h["Content-Type"]||(h["Content-Type"]="application/json;charset=utf-8"),g=JSON.stringify(r)));let k=await e(p.href,{method:i,headers:h,body:g,credentials:"same-origin",signal:c.signal}),w;if(u.onDownloadProgress&&k.ok&&k.body?.getReader&&typeof TextDecoder<"u"){let b=k.body.getReader(),T=new TextDecoder,O=[],F=0;try{for(;;){let{value:H,done:se}=await b.read();if(se)break;O.push(T.decode(H,{stream:!0})),F+=H.byteLength,u.onDownloadProgress(F)}O.push(T.decode()),w=O.join("")}finally{b.releaseLock()}}else w=await k.text();let S=w;if(u.transformResponse)S=u.transformResponse(w);else if(w&&(/json/i.test(k.headers.get("content-type")||"")||/^[\[{]/.test(w.trim())))try{S=JSON.parse(w)}catch{}let N={data:S,status:k.status,headers:b=>k.headers.get(b)};if(!k.ok)throw N;return N}catch(h){throw h.name==="AbortError"?{status:-1,data:null}:h}finally{clearTimeout(v)}}let s={};for(let i of["get","delete","head"])s[i]=(o,r)=>t(i.toUpperCase(),o,void 0,r);for(let i of["post","put","patch"])s[i]=(o,r,u)=>t(i.toUpperCase(),o,r,u);return s}var Bp={resolve:e=>Promise.resolve(e),reject:e=>Promise.reject(e),all:e=>Promise.all(e),defer(){let e,t;return{promise:new Promise((i,o)=>{e=i,t=o}),resolve:e,reject:t}}};var zp=function(e){function t(s){return s=s||{used:0,total:0},s.unlimited=!s.total,s.percent=s.unlimited?0:Math.min(100,s.used*100/s.total),s.level=s.unlimited?"unlimited":s.percent>=95?"danger":s.percent>=80?"warn":"ok",s}return{decorate:t,load:function(){return e.get("/api/user/quota").then(s=>{let i=s.data||{};return i.storage=t(i.storage),i.file=t(i.file),i.repository=t(i.repository),i})}}};var Hp={name:"htmlDoc",props:["content","baseUrl","allowScripts"],setup(e){let t=Ct(null);return yn(()=>{let i=[t.value][0];i.classList.add("html-doc");function o(){i.innerHTML="";let r=e.content;if(typeof r!="string")return;let u=document.createElement("iframe");u.className="html-doc-frame",u.setAttribute("title","Rendered HTML document");let p=["allow-popups","allow-popups-to-escape-sandbox"];e.allowScripts&&p.push("allow-scripts","allow-forms","allow-modals"),u.setAttribute("sandbox",p.join(" ")),u.setAttribute("referrerpolicy","no-referrer"),i.appendChild(u);let c="";e.baseUrl&&(c=''),u.srcdoc=c+r}dt(()=>e.content,o,{immediate:!0}),dt(()=>e.baseUrl,o,{immediate:!0}),dt(()=>e.allowScripts,o,{immediate:!0})}),()=>De("html-doc",{ref:t})}};var jp={name:"pdfviewer",props:["src"],setup(e){let t=Ct(null);return yn(()=>{let s=[t.value],i=400,o=[.5,.75,1,1.25,1.5,2,3],r=1e3,u=s[0];u.classList.add("pdf-viewer");let p=null,c=[],v=!1,h=null,y=1,g=0,k=1,w=0,S=0,N=612/792,b=0,T=null,O=new Map,F=0;function H(A){let U=O.get(A);U&&(U.cancelled=!0,U.task?.cancel?.(),O.delete(A));let Z=A.querySelector("canvas");Z&&(Z.width=0,Z.height=0),A.innerHTML="",delete A.dataset.state}let se=document.createElement("div");se.className="pdf-toolbar";let _=document.createElement("div");_.className="pdf-pages",_.tabIndex=0,_.setAttribute("aria-label","PDF pages"),u.appendChild(se),u.appendChild(_);function z(A,U,Z){let W=document.createElement("button");return W.type="button",W.className="pdf-toolbar-btn",W.title=U,W.setAttribute("aria-label",U),W.innerHTML='',W.addEventListener("click",Z),W}let I=z("fa-chevron-up","Previous page",function(){Ue(k-1)}),q=z("fa-chevron-down","Next page",function(){Ue(k+1)}),E=document.createElement("input");E.type="text",E.className="pdf-toolbar-page",E.setAttribute("aria-label","Page number"),E.title="Page number \u2014 type a page and press Enter",E.addEventListener("keydown",function(A){A.key==="Enter"&&(Ue(parseInt(E.value,10)),E.blur())}),E.addEventListener("blur",function(){E.value=String(k)});let L=document.createElement("span");L.className="pdf-toolbar-count";let G=z("fa-search-minus","Zoom out",function(){be(o[Math.max(0,fe()-1)])}),j=z("fa-search-plus","Zoom in",function(){be(o[Math.min(o.length-1,fe()+1)])}),Y=document.createElement("button");Y.type="button",Y.className="pdf-toolbar-btn pdf-toolbar-zoom",Y.title="Reset zoom to fit the width",Y.setAttribute("aria-label","Reset zoom to fit the width"),Y.addEventListener("click",function(){be(1)}),se.appendChild(I),se.appendChild(q);let ne=document.createElement("span");ne.className="pdf-toolbar-group",ne.appendChild(E),ne.appendChild(L),se.appendChild(ne);let x=document.createElement("span");x.className="pdf-toolbar-group pdf-toolbar-right",x.appendChild(G),x.appendChild(Y),x.appendChild(j),se.appendChild(x);function fe(){let A=0;for(let U=0;U=A,Y.textContent=y===1||!g?"Fit":Math.round(Re()/(g*96/72)*100)+"%",G.disabled=fe()===0,j.disabled=fe()===o.length-1}function qe(A){let U=c[A-1];U&&(_.scrollTop+=U.getBoundingClientRect().top-_.getBoundingClientRect().top)}function Ue(A){if(!p||isNaN(A))return;let U=Math.min(Math.max(1,A),p.numPages);c[U-1]&&(qe(U),k=U,w=U,S=Date.now()+800,me(),J())}function Xe(){if(!c.length||Date.now(){}),T=null),h&&(clearTimeout(h),h=null),p&&(p.destroy(),p=null),c=[],k=1,_.innerHTML="",me()}function lt(){_.innerHTML="";let A=document.createElement("div");A.className="pdf-viewer-error",A.textContent="This PDF could not be displayed.",_.appendChild(A)}function Re(){let A=Math.max(120,_.clientWidth-24);return Math.round(Math.min(A,r)*y)}function Se(A,U,Z){let W=window.devicePixelRatio||1,ee=A.getViewport({scale:1}),re=parseFloat(U.style.width);if(!re)return;let oe=A.getViewport({scale:re/ee.width*W}),ie=document.createElement("canvas");return ie.width=Math.floor(oe.width),ie.height=Math.floor(oe.height),ie.style.width=re+"px",ie.style.height=Math.floor(oe.height/W)+"px",U.innerHTML="",U.appendChild(ie),U.style.height=ie.style.height,Z.task=A.render({canvasContext:ie.getContext("2d"),viewport:oe}),Z.task.promise}function J(){if(!p)return;let A=b,U=_.getBoundingClientRect(),Z=U.top-i,W=U.top+_.clientHeight+i,ee=c.map((oe,ie)=>({slot:oe,i:ie,rect:oe.getBoundingClientRect()})).filter(oe=>oe.rect.top<=W&&oe.rect.bottom>=Z).sort((oe,ie)=>Math.abs(oe.rect.top-U.top)-Math.abs(ie.rect.top-U.top)).slice(0,6),re=new Set(ee.map(oe=>oe.slot));for(let oe of O.keys())re.has(oe)||H(oe);for(let{slot:oe,i:ie}of ee){if(oe.dataset.state||F>=2)continue;let te={cancelled:!1,task:null};O.set(oe,te),F++,oe.dataset.state="rendering";let we;p.getPage(ie+1).then(pe=>{if(we=pe,!(te.cancelled||A!==b))return Se(we,oe,te)}).then(()=>{te.cancelled||A!==b||(oe.dataset.state="done",w&&Date.now(){!te.cancelled&&A===b&&(oe.dataset.state="failed")}).finally(()=>{F--,we?.cleanup?.(),p&&J()})}}function ce(){v||(v=!0,window.requestAnimationFrame(function(){v=!1,Xe(),J()}))}function ue(){let A=!1;function U(){A||(A=!0,J())}window.requestAnimationFrame(U),window.setTimeout(U,50)}function he(){b++,c.forEach(H);let A=Re();c.forEach(function(U){delete U.dataset.state,U.innerHTML="",U.style.width=A+"px",U.style.height=Math.round(A/N)+"px"}),J()}function be(A){if(!p||!c.length||A===y)return;let U=k;y=A,me(),he(),Ue(U)}function Oe(){p&&(h&&clearTimeout(h),h=setTimeout(function(){h=null,p&&c.length&&he()},250))}function D(A){if(ze(),!A)return;let U=b;T=pdfjsLib.getDocument({url:A,isEvalSupported:!1,standardFontDataUrl:"/script/external/pdf-standard-fonts/",cMapUrl:"/script/external/pdf-cmaps/",cMapPacked:!0}),T.promise.then(function(Z){if(U!==b){Z.destroy();return}return p=Z,p.getPage(1).then(function(W){if(U!==b)return;let ee=W.getViewport({scale:1});ee.width&&ee.height&&(N=ee.width/ee.height),g=ee.width||0;let re=Re();for(let oe=1;oe<=p.numPages;oe++){let ie=document.createElement("div");ie.className="pdf-viewer-page",ie.style.width=re+"px",ie.style.height=Math.round(re/N)+"px",_.appendChild(ie),c.push(ie)}me(),ue()})}).catch(function(){U===b&<()})}_.addEventListener("scroll",ce,{passive:!0}),$(window).on("resize",Oe),me(),dt(()=>e.src,D,{immediate:!0}),ao(function(){_.removeEventListener("scroll",ce),$(window).off("resize",Oe),ze()})}),()=>De("pdfviewer",{ref:t})}};var Yee={key:0,class:"quota-row quota-usage"},Jee={class:"quota-header"},Xee={class:"quota-label"},Qee={class:"project-type-svg","aria-hidden":"true"},Zee=["href"],xee={key:0,class:"quota-percent"},ete={key:1,class:"quota-unlimited-tag"},tte={class:"quota-value"},nte={key:0},ote=["aria-label","aria-valuenow","aria-valuemax","aria-valuetext"],ste={key:1,class:"quota-remaining"},ite={key:2,class:"quota-remaining quota-limit"};function Gp(e,t){return e.quota?(a(),l("div",Yee,[(a(),l(V,null,X([{key:"repository",label:"Repositories",kind:"count",icon:"project-type-repo"},{key:"storage",label:"Storage",kind:"bytes",icon:"project-icon-storage"},{key:"file",label:"Files",kind:"count",icon:"project-icon-file"}],s=>n("div",{class:R(["quota-item","quota-"+e.quota[s.key].level]),key:s.key},[n("div",Jee,[n("span",Xee,[(a(),l("svg",Qee,[n("use",{href:"#"+s.icon},null,8,Zee)])),m(d(s.label),1)]),e.quota[s.key].unlimited?f("v-if",!0):(a(),l("span",xee,d(e.quota[s.key].percent>0&&e.quota[s.key].percent<1?"<1":e.fmt.number(e.quota[s.key].percent,0))+"% used",1)),e.quota[s.key].unlimited?(a(),l("span",ete,"Unlimited")):f("v-if",!0)]),n("div",tte,[n("strong",null,d(e.formatAmount(e.quota[s.key].used,s.kind)),1),e.quota[s.key].unlimited?f("v-if",!0):(a(),l("span",nte," / "+d(e.formatAmount(e.quota[s.key].total,s.kind)),1))]),e.quota[s.key].unlimited?f("v-if",!0):(a(),l("div",{key:0,class:R(["quota-track","quota-"+e.quota[s.key].level]),role:"progressbar","aria-valuemin":"0","aria-label":s.label+" quota","aria-valuenow":Math.min(e.quota[s.key].used,e.quota[s.key].total),"aria-valuemax":e.quota[s.key].total,"aria-valuetext":e.fmt.number(e.quota[s.key].percent,0)+"% used"},[e.quota[s?.key].unlimited?f("v-if",!0):(a(),l("div",{key:0,class:"quota-fill",style:Ae({width:e.quota[s.key].percent+"%"})},null,4))],10,ote)),!e.quota[s.key].unlimited&&e.quota[s.key].used=e.quota[s.key].total?(a(),l("p",ite,d(e.quota[s.key].used>e.quota[s.key].total?"Limit exceeded":"Limit reached"),1)):f("v-if",!0)],2)),64))])):f("v-if",!0)}var rte={props:["quota","fmt"],setup(e){return{formatAmount:(t,s)=>s==="bytes"?e.fmt.humanFileSize(e.quota?.storage?.unit==="bytes"?t*8:t).replace(/([a-zA-Z]+)$/," $1"):e.fmt.number(t)}},render:Gp},ate=new Set(ve),Yp=e=>e?.querySelectorAll("pre code.language-diff, pre code.lang-diff").forEach(t=>{if(t.querySelector(".md-diff-line"))return;let s=t.innerHTML.replace(/\n$/,"").split(` `);t.innerHTML=s.map(i=>{let o=i.replace(/^(<[^>]+>)+/,"").charAt(0),r=i.startsWith("@@")?"hunk":o==="+"?"add":o==="-"?"remove":"";return`${i||" "}`}).join(` -`)}),Gp=(e,t=0)=>{let s=(String(e).slice(t).match(/^[ \t]*/)[0]||"").replace(/\t/g," ").length;return Math.min(t+s+4,24)},Yp=e=>{e?.closest?.(".reviewer-preview")&&e.querySelectorAll("pre code").forEach(t=>{let s=t.querySelectorAll(".md-diff-line");if(s.length){s.forEach(o=>{o.classList.contains("is-hunk")||o.style.setProperty("--hang",Gp(o.textContent,1)+"ch")});return}if(t.querySelector(".code-line"))return;let i=[];t.innerHTML=t.innerHTML.replace(/\n$/,"").split(` -`).map(o=>{let r=i.join("");o.replace(/<\/?span\b[^>]*>/g,p=>(p.startsWith("]+>/g,"");return`${r}${o||" "}${"".repeat(i.length)}`}).join(` -`)})},Jp={props:["content","terms","options"],setup(e){let t=Ct(null),s=()=>{t.value.innerHTML=renderMD(e.content||"",window.location.pathname+"/../"),Kp(t.value),Yp(t.value)};return yn(()=>{s(),dt(()=>[e.content,e.terms,e.options],s,{deep:!0})}),()=>De("markdown",{ref:t})}},lte={props:["file","terms","options"],setup(e){let t=Ct(null),s=()=>Ge(()=>{t.value?.querySelectorAll("pre code").forEach(i=>window.Prism?.highlightElement(i)),Kp(t.value),Yp(t.value)});return yn(s),dt(()=>[e.file?.content,e.terms,e.options],s,{deep:!0}),()=>{let i=e.file||{},o=(i.filename||"").split(".").pop().toLowerCase();if(["md","markdown"].includes(o)||i.language==="Markdown")return De("gist-file",{ref:t},De(Jp,{content:i.content,terms:e.terms,options:e.options}));let r={js:"javascript",jsx:"javascript",ts:"javascript",typescript:"javascript",py:"python",html:"markup",xml:"markup",svg:"markup",sh:"bash"},u=(i.language||o||"none").toLowerCase();return De("gist-file",{ref:t},De("pre",{class:"line-numbers"},De("code",{class:"language-"+(r[u]||u),key:i.content},i.content||"")))}}},dte=e=>e?.querySelectorAll(".nb-input pre").forEach(t=>{if(t.parentElement?.classList.contains("nb-code-scroll"))return;let s=document.createElement("div");s.className="nb-code-scroll",t.replaceWith(s),s.appendChild(t);let i=()=>{let o=t.scrollWidth-t.clientWidth>1;if(s.classList.toggle("is-overflowing",o),s.classList.toggle("is-at-end",o&&t.scrollLeft+t.clientWidth>=t.scrollWidth-2),!o)return;let r=t.clientWidth-16,u=Math.max(24,r*t.clientWidth/t.scrollWidth);s.style.setProperty("--thumb-w",u+"px"),s.style.setProperty("--thumb-x",(r-u)*t.scrollLeft/(t.scrollWidth-t.clientWidth)+"px")};t.addEventListener("scroll",i,{passive:!0}),window.ResizeObserver?new ResizeObserver(i).observe(t):i(),i()}),ute={props:["file","content"],setup(e){let t=Ct(null),s=0,i,o=async()=>{let r=++s;i?.abort(),i=new AbortController;try{let u=e.content?JSON.parse(e.content):await fetch(e.file?.download_url||e.file,{signal:i.signal}).then(p=>{if(!p.ok)throw Error("Notebook request failed");return p.json()});if(await Zn("notebook"),r!==s)return;t.value.innerHTML=Us(DOMPurify.sanitize(nb.parse(u).render())),t.value.querySelectorAll("pre code").forEach(p=>window.Prism?.highlightElement(p)),dte(t.value)}catch(u){r===s&&u.name!=="AbortError"&&(t.value.textContent="Unable to render the notebook.")}};return yn(()=>{o(),dt(()=>[e.file,e.content],o)}),ao(()=>{s++,i?.abort()}),()=>De("notebook",{ref:t})}},cte={props:["stats"],setup(e){return()=>{let t=Object.entries(e.stats||{}).filter(([,i])=>i.code),s=t.reduce((i,[,o])=>i+o.code,0);return De("loc",t.map(([i,o])=>De("div",{class:"lang",title:`${i}: ${o.code.toLocaleString()} lines`,style:{width:o.code*100/s+"%",background:langColors[i]}})))}}},Xp={Markdown:Jp,GistFile:lte,Notebook:ute,Loc:cte,HtmlDoc:zp,QuotaUsage:rte,Pdfviewer:gd(async()=>(await Zn("pdf"),pdfjsLib.GlobalWorkerOptions.workerSrc="/script/external/pdf.worker.js",Hp))},Qp={async mounted(e,{value:t}){e._editorValue=t;try{if(await di(),e._editorDisposed)return;let s=e._editorValue,i=ace.edit(e);e._editor=i,i.setValue(String(s.content??""),-1),Wp(e,s.options),e._editorCleanup=s.options?.onLoad?.(i)}catch(s){e._editorDisposed||(e.textContent=s.message)}},updated(e,{value:t}){e._editorValue=t,e._editor&&(e._editor.getValue()!==String(t.content??"")&&e._editor.setValue(String(t.content??""),-1),Wp(e,t.options))},beforeUnmount(e){e._editorDisposed=!0,e._editorCleanup?.(),e._editor?.destroy()}};function Wp(e,t={}){let s=ate.has(t.mode)?t.mode:"text";e._editor.session.setMode("ace/mode/"+s),t.theme&&e._editor.setTheme("ace/theme/"+t.theme),e._editor.setReadOnly(t.readOnly!==!1)}var Zp={mounted(e){if(!window.IntersectionObserver)return;let t=[...e.querySelectorAll('a[href^="#"]')],s=new Set,i=new IntersectionObserver(o=>{o.forEach(u=>u.isIntersecting?s.add(u.target.id):s.delete(u.target.id));let r=t.find(u=>s.has(u.hash.slice(1)));r&&t.forEach(u=>u.classList.toggle("active",u===r))},{rootMargin:"-20% 0px -60% 0px",threshold:0});Ge(()=>{t.forEach(o=>{let r=document.getElementById(o.hash.slice(1));r&&i.observe(r)}),t[0]&&!t.some(o=>o.classList.contains("active"))&&t[0].classList.add("active")}),e._observer=i},beforeUnmount(e){e._observer?.disconnect()}};function xp(e){let t=[],s=0,i=/\bXXXX-(\d+)\b/g,o;for(;o=i.exec(e);)o.index>s&&t.push(e.slice(s,o.index)),t.push(De("span",{class:"redact-slot",role:"img","aria-label":"Redacted term "+o[1]},[De("i",null,o[1])])),s=o.index+o[0].length;return t.length?(s{s.push(r),u=1024&&imte(e.file)),p=()=>e.selectedPath??"/"+(Array.isArray(s.params.path)?s.params.path.join("/"):s.params.path||"");dt(()=>[s.params.repoId,s.params.path,e.selectedPath],()=>{let k="";p().split("/").filter(Boolean).forEach(w=>{k+="/"+w,o[k]=!0})},{immediate:!0});let c=Et(()=>{if(!e.searchQuery||!e.searchResults)return null;let k=new Set,w=new Set;return e.searchResults.forEach(S=>{k.add(S.path?`${S.path}/${S.name}`:S.name);let N="";(S.path||"").split("/").filter(Boolean).forEach(b=>{N=N?N+"/"+b:b,w.add(N)})}),{files:k,folders:w}}),v=()=>[...i.value.querySelectorAll("li > a")],h=k=>{if(i.value.querySelector(".tree-focused")?.classList.remove("tree-focused"),!k)return;if(r=k.dataset.path,k.classList.add("tree-focused"),e.selectedPath===void 0){k.scrollIntoView?.({block:"nearest"}),i.value.focus();return}let w=i.value.scrollHeight>i.value.clientHeight?i.value:i.value.closest(".leftCol-body");if(w){let S=k.getBoundingClientRect(),N=w.getBoundingClientRect();S.topN.bottom&&(w.scrollTop+=S.bottom-N.bottom)}i.value.focus({preventScroll:!0})};function y(k){let w=v(),S=i.value.querySelector(".tree-focused")||w[0],N=w.indexOf(S);if(!["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(k.key)||(k.preventDefault(),k.key==="ArrowDown"&&h(w[(N+1)%w.length]),k.key==="ArrowUp"&&h(w[(N-1+w.length)%w.length]),!S))return;let b=S.closest("li");k.key==="ArrowRight"&&b.classList.contains("folder")&&(b.classList.contains("open")?h(b.querySelector(":scope > ul > li > a")):S.click()),k.key==="ArrowLeft"&&(b.classList.contains("folder")&&b.classList.contains("open")?S.click():h(b.parentElement.closest("li.folder")?.querySelector(":scope > a"))),k.key==="Enter"&&S.click()}function g(k,w=""){let S=[...k].sort((N,b)=>+!!b.children-+!!N.children||N.name.localeCompare(b.name));return De("ul",S.flatMap(N=>{let b=N,T=b.name,O=(w+"/"+T).slice(1);if(c.value&&!c.value.files.has(O)&&!c.value.folders.has(O))return[];for(;b.children?.length===1&&b.children[0].children&&e.page?.loadedFolders?.[(w+"/"+T).slice(1)];)b=b.children[0],T+="/"+b.name;let F=w+"/"+T,H=!!b.children,se=c.value?o[F]!==!1:!!o[F],_=H&&e.page?.options?.truncatedFolders?.includes(F.slice(1)),z=De("span",{class:H?"tree-icon-folder":"far fa-file tree-icon-file","aria-hidden":"true"},H?De("svg",{viewBox:"0 0 14 12",focusable:"false"},De("path",{d:"M1.5 10.5v-9h4l1.5 2h5.5v7z"})):null),I=!1,q=T,E="",L="";if(T.length>80){let ne=T.length-12;for(let x=T.length-18;x<=T.length-6;x++)if(x>0&&"-_. ".includes(T[x])){ne=x;break}if(I=!/XXXX-\d+/.test(T.slice(Math.max(0,ne-12))),q=T.slice(0,ne).trimEnd(),E=T.slice(ne).trimStart(),I){let x=Math.max(8,30-E.length-1);if(q.length>x&&!/XXXX-\d+/.test(q)){let fe=-1;for(let qe=Math.min(x,q.length);qe>=4;qe--)if(".-_".includes(q[qe])){fe=qe;break}let me=T.slice(0,T.length-E.length);q=(fe>0?q.slice(0,fe):q.slice(0,x)).trimEnd(),L=me.slice(q.length)}}}let G=De("span",{class:{"tree-name":!0,"tree-name-split":I,"tree-name-wrap":!I},title:T.replace(/\bXXXX-(\d+)\b/g,"[redacted term $1]")},I?[De("span",{class:{"tree-name-head":!0,"is-cut":!!L}},xp(q)),L?De("span",{class:"tree-name-middle"},L):null,De("span",{class:"tree-name-tail"},E)]:pte(T)),j=ne=>{if(h(ne.currentTarget),!H){e.selectedPath!==void 0&&(ne.preventDefault(),t("select",F));return}ne.preventDefault(),o[F]=!se,o[F]&&!b.children.length&&e.page.getFiles(F.slice(1)),Ge(()=>h(v().find(x=>x.dataset.path===r)))},Y=De("a",{"data-path":F,"aria-expanded":e.selectedPath!==void 0&&H?String(se):void 0,"aria-current":e.selectedPath!==void 0&&!H&&p()===F?"page":void 0,href:H?void 0:`/r/${encodeURIComponent(s.params.repoId)}${encodePathForUrl(F)}`,class:{"tree-focused":r===F},onClick:j},[H?De("span",{class:"tree-toggle"}):De("span",{class:"tree-spacer"}),z,G,_?De("span",{class:"truncated-warning",title:e.page.fmt.translate("WARNINGS.folder_truncated")},De("i",{class:"fas fa-exclamation-triangle"})):null]);return De("li",{key:F,class:{file:!0,folder:H,open:se,active:p()===F,truncated:_},title:H?"":`Size: ${fte(b.size||0)}`},[Y,H&&se?b.children.length||!e.page?.loadedFolders?.[F.slice(1)]?g(b.children,F):De("ul",De("li",{class:"tree-empty"},"Empty folder")):null])}))}return()=>De("tree",{ref:i,tabindex:0,onKeydown:y},e.file?.length?c.value?.files.size===0?De("div",{class:"tree-search-empty"},"No files found"):g(u.value):"Empty repository")}};function nf(){return rt({errors:{},dirty:!1,touched:!1,submitted:!1,get invalid(){return Object.values(this.errors).some(Boolean)},setValidity(e,t){this.errors[e]=!t},setDirty(){this.dirty=!0}})}function of(e,t){if(!e[t]){let s=nf();Object.defineProperty(s,"invalid",{get(){return Object.values(s.errors).some(Boolean)||Object.keys(s).some(i=>i!=="invalid"&&s[i]&&typeof s[i]=="object"&&s[i].invalid)}}),e[t]=s}return e[t]}var sf={beforeMount(e,{value:t}){e._formState=of(t,e.name),e.addEventListener("submit",s=>s.preventDefault())}};function hte(e){return e instanceof Date?isNaN(e)?"":`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`:e||""}function tf(e){let t=e._field.binding.value;e.type==="checkbox"?e.checked=!!t:e.type==="radio"?e.checked=t==(e._value??e.value):e._field.timer||(e.value=e.type==="date"?hte(t):t??""),rl(e)}function rl(e){let t=e._field.validation;if(!t)return;let s=e.validity;for(let[i,o]of Object.entries({required:s.valueMissing,pattern:s.patternMismatch,min:s.rangeUnderflow,max:s.rangeOverflow,date:s.badInput,email:s.typeMismatch&&e.type==="email",url:s.typeMismatch&&e.type==="url"}))t.setValidity(i,e.disabled||!o)}var rf={beforeMount(e,{value:t}){var u;let s=t.form&&of(t.state,t.form),i=s&&e.name?s[u=e.name]||(s[u]=nf()):null;e._field={binding:t,validation:i,timer:null};let o=()=>{clearTimeout(e._field.timer),e._field.timer=null;let p=e._field.binding,c=e.type==="checkbox"?e.checked:e._value??e.value;if(!(e.type==="radio"&&!e.checked)){if((e.type==="number"||e.type==="range")&&(c=e.value===""?null:Number(e.value)),e.type==="date"&&(c=e.value?new Date(e.value+"T00:00:00"):null),i){i.setDirty();for(let v of Object.keys(i.errors))i.setValidity(v,!0)}p.set(c),rl(e),p.change?.()}};e._field.commit=o;let r=p=>{let c=e._field.binding.options?.debounce||0,v=typeof c=="number"?c:c[p.type]??c.default??0;clearTimeout(e._field.timer),v?e._field.timer=setTimeout(o,v):o()};e.addEventListener(e.tagName==="SELECT"||["checkbox","radio","date"].includes(e.type)?"change":"input",r),e.addEventListener("blur",()=>{i&&(i.touched=!0),e._field.timer&&o()})},mounted:tf,updated(e,{value:t}){e._field.binding=t,tf(e)},beforeUnmount(e){clearTimeout(e._field.timer);let{binding:t,validation:s}=e._field,i=t.form&&t.state[t.form];i&&i[e.name]===s&&delete i[e.name]}};function af(e,t){let s=e.target.closest("form");if(s?._formState&&(s._formState.submitted=!0),s?.querySelectorAll("input, select, textarea").forEach(i=>{i._field?.timer&&i._field.commit(),i._field&&rl(i)}),s&&!s.checkValidity()){let i=s.querySelector("input:invalid, select:invalid, textarea:invalid");i?.scrollIntoView?.({block:"center"}),i?.focus(),s.reportValidity();return}return t()}var lf=Symbol("session"),gte=/^\/(w|api|github)(\/|$)/;function df(e,t={}){let s=e?.split(".").reduce((i,o)=>i?.[o],Qn);return s==null&&e?.startsWith("ERRORS.")&&(s=Qn.ERRORS.unknown_error),String(s??e??"").replace(/{{\s*([^}]+?)\s*}}/g,(i,o)=>t[o]??"")}var vte={...Ia,translate:df};function yte(e){if(e==null||e==="")return e;try{let t=new URL(e,window.location.href);return["http:","https:","mailto:","tel:","blob:"].includes(t.protocol)?e:void 0}catch{return}}function bte(e="#app",t={}){let s=!!document.querySelector('meta[name="review-consent-page"][content="1"]'),i=s&&window.location.pathname==="/review-link"?ml(window):null,o=()=>{let g=i;return i=null,g};!t.history&&window.location.pathname==="/"&&/^#!\/r\/[^/?#]+/.test(window.location.hash)&&window.history.replaceState(window.history.state,"",window.location.hash.slice(2));let r=new Map,u=Fp(t.fetch),p,c;function v(){let g=yt(),k={url(S){return S===void 0?c.currentRoute.value.fullPath:(c.push(S),k)},replace(S){return c.replace(S)},path(){return c.currentRoute.value.path},search(){return c.currentRoute.value.query}},w=new Proxy({},{get(S,N){let b=c.currentRoute.value.params[N];return Array.isArray(b)?b.join("/"):b}});return{takeReviewHandoff:o,http:u,...g,location:k,params:w,window,promises:Up,html:{trustAsHtml:S=>S},translate:(S,N)=>Promise.resolve(df(S,N)),quotaService:Bp(u)}}function h(g){return{name:g.template,setup(){let k=Fs(Lt(lf),r);g.setup(k,v()),$p(g.template,k);let w=[];return()=>wr[g.template](k,w)}}}c=ju({history:t.history||Bu(),routes:sp.map(g=>g.redirect?g:{path:g.path,component:h(g),meta:{title:g.title,preserveExplorer:g.preserveExplorer}})});let y=lu({setup(){p=Fs(null,r),p.fmt=vte,p.window=window,p.Math=Math,p.sanitize=S=>DOMPurify.sanitize(S??""),p.highlightRedactions=S=>(p.site_options,Hc(S)),p.submitForm=af,p.safeUrl=yte;let g=v();jc(p,g.http,g.location,g.timeout),ro(lf,p),dt(()=>p.title,S=>{document.title=S||"Anonymous GitHub"});let k=[],w=S=>{let N=S.target.closest?.("a[href]");if(S.defaultPrevented||S.button!==0||S.metaKey||S.ctrlKey||S.shiftKey||S.altKey||!N||N.hasAttribute("download")||N.target&&N.target!=="_self"||N.dataset.toggle||N.getAttribute("href").startsWith("#"))return;let T=new URL(N.href,window.location.href);s||/^\/review-link\/?$/i.test(T.pathname)||T.origin!==window.location.origin||gte.test(T.pathname)||(S.preventDefault(),c.push(T.pathname+T.search+T.hash),$("#navbarSupportedContent.show").collapse("hide"))};return document.addEventListener("click",w),ao(()=>document.removeEventListener("click",w)),()=>[_p(p,[]),s||/^\/(r|repository)\//.test(p.path||"")?null:De("header",{class:["app-header",{"is-contained":p.path==="/"||p.path==="/faq","is-signin":p.path==="/signin"}]},wr["partials/header.htm"](p,k)),De("main",{class:"app-view align-items-stretch w-100"},De(Na,null,{default:({Component:S,route:N})=>S?De(S,{key:N.meta.preserveExplorer?N.matched[0]?.path:N.path}):null})),De("div",{class:"position-fixed p-3",style:{zIndex:999999999,right:0,bottom:0}},p.toasts.map((S,N)=>De("div",{class:"toast show",role:"alert","aria-live":"assertive","aria-atomic":"true",key:N},[De("div",{class:"toast-header"},[De("strong",{class:"mr-auto"},S.title),De("button",{type:"button",class:"ml-2 mb-1 close","aria-label":"Close",onClick:()=>p.removeToast(S)},"\xD7")]),De("div",{class:"toast-body"},S.body)])))]}});for(let[g,k]of Object.entries(Xp))y.component(g,k);return y.component("Tree",ef),y.component("PartialView",{props:["name","state"],setup(g){let k=[];return()=>wr[g.name](g.state,k)}}),y.directive("field",rf),y.directive("form",sf),y.directive("code-editor",Qp),y.directive("paper-scrollspy",Zp),y.use(c),c.beforeEach(async g=>{if(g.path==="/review-link"&&!s||s&&g.path!=="/review-link")return window.location.assign(g.fullPath),!1;p?.emit("routeLeave"),/^\/(r|repository|anonymize|pull-request-anonymize|gist-anonymize|pr|gist)(\/|$)/.test(g.path)&&await Zn("markdown"),/^\/(r|repository|anonymize|pull-request-anonymize|gist-anonymize|pr|gist)(\/|$)/.test(g.path)&&await Zn("org")}),c.afterEach(g=>{if(!p)return;p.title=g.meta.title,p.emit("routeChange",{title:g.meta.title}),p.emit("routeUpdate",{title:g.meta.title});let k=document.querySelector(".app-view");!g.meta.preserveExplorer&&k&&(k.scrollTop=0)}),y.mount(e),{app:y,router:c,state:p}}document.querySelector("#app")&&(window.anonymousApp=bte());})(); +`)}),Wp=(e,t=0)=>{let s=(String(e).slice(t).match(/^[ \t]*/)[0]||"").replace(/\t/g," ").length;return Math.min(t+s+4,24)},Jp=e=>{e?.closest?.(".reviewer-preview")&&e.querySelectorAll("pre code").forEach(t=>{let s=t.querySelectorAll(".md-diff-line");if(s.length){s.forEach(o=>{o.classList.contains("is-hunk")||o.style.setProperty("--hang",Wp(o.textContent,1)+"ch")});return}if(t.querySelector(".code-line"))return;let i=[];t.innerHTML=t.innerHTML.replace(/\n$/,"").split(` +`).map(o=>{let r=i.join("");o.replace(/<\/?span\b[^>]*>/g,p=>(p.startsWith("]+>/g,"");return`${r}${o||" "}${"".repeat(i.length)}`}).join(` +`)})},Xp={props:["content","terms","options"],setup(e){let t=Ct(null),s=()=>{t.value.innerHTML=renderMD(e.content||"",window.location.pathname+"/../"),Yp(t.value),Jp(t.value)};return yn(()=>{s(),dt(()=>[e.content,e.terms,e.options],s,{deep:!0})}),()=>De("markdown",{ref:t})}},lte={props:["file","terms","options"],setup(e){let t=Ct(null),s=()=>Ge(()=>{t.value?.querySelectorAll("pre code").forEach(i=>window.Prism?.highlightElement(i)),Yp(t.value),Jp(t.value)});return yn(s),dt(()=>[e.file?.content,e.terms,e.options],s,{deep:!0}),()=>{let i=e.file||{},o=(i.filename||"").split(".").pop().toLowerCase();if(["md","markdown"].includes(o)||i.language==="Markdown")return De("gist-file",{ref:t},De(Xp,{content:i.content,terms:e.terms,options:e.options}));let r={js:"javascript",jsx:"javascript",ts:"javascript",typescript:"javascript",py:"python",html:"markup",xml:"markup",svg:"markup",sh:"bash"},u=(i.language||o||"none").toLowerCase();return De("gist-file",{ref:t},De("pre",{class:"line-numbers"},De("code",{class:"language-"+(r[u]||u),key:i.content},i.content||"")))}}},dte=e=>e?.querySelectorAll(".nb-input pre").forEach(t=>{if(t.parentElement?.classList.contains("nb-code-scroll"))return;let s=document.createElement("div");s.className="nb-code-scroll",t.replaceWith(s),s.appendChild(t);let i=()=>{let o=t.scrollWidth-t.clientWidth>1;if(s.classList.toggle("is-overflowing",o),s.classList.toggle("is-at-end",o&&t.scrollLeft+t.clientWidth>=t.scrollWidth-2),!o)return;let r=t.clientWidth-16,u=Math.max(24,r*t.clientWidth/t.scrollWidth);s.style.setProperty("--thumb-w",u+"px"),s.style.setProperty("--thumb-x",(r-u)*t.scrollLeft/(t.scrollWidth-t.clientWidth)+"px")};t.addEventListener("scroll",i,{passive:!0}),window.ResizeObserver?new ResizeObserver(i).observe(t):i(),i()}),ute={props:["file","content"],setup(e){let t=Ct(null),s=0,i,o=async()=>{let r=++s;i?.abort(),i=new AbortController;try{let u=e.content?JSON.parse(e.content):await fetch(e.file?.download_url||e.file,{signal:i.signal}).then(p=>{if(!p.ok)throw Error("Notebook request failed");return p.json()});if(await Zn("notebook"),r!==s)return;t.value.innerHTML=Us(DOMPurify.sanitize(nb.parse(u).render())),t.value.querySelectorAll("pre code").forEach(p=>window.Prism?.highlightElement(p)),dte(t.value)}catch(u){r===s&&u.name!=="AbortError"&&(t.value.textContent="Unable to render the notebook.")}};return yn(()=>{o(),dt(()=>[e.file,e.content],o)}),ao(()=>{s++,i?.abort()}),()=>De("notebook",{ref:t})}},cte={props:["stats"],setup(e){return()=>{let t=Object.entries(e.stats||{}).filter(([,i])=>i.code),s=t.reduce((i,[,o])=>i+o.code,0);return De("loc",t.map(([i,o])=>De("div",{class:"lang",title:`${i}: ${o.code.toLocaleString()} lines`,style:{width:o.code*100/s+"%",background:langColors[i]}})))}}},Qp={Markdown:Xp,GistFile:lte,Notebook:ute,Loc:cte,HtmlDoc:Hp,QuotaUsage:rte,Pdfviewer:vd(async()=>(await Zn("pdf"),pdfjsLib.GlobalWorkerOptions.workerSrc="/script/external/pdf.worker.js",jp))},Zp={async mounted(e,{value:t}){e._editorValue=t;try{if(await di(),e._editorDisposed)return;let s=e._editorValue,i=ace.edit(e);e._editor=i,i.setValue(String(s.content??""),-1),Kp(e,s.options),e._editorCleanup=s.options?.onLoad?.(i)}catch(s){e._editorDisposed||(e.textContent=s.message)}},updated(e,{value:t}){e._editorValue=t,e._editor&&(e._editor.getValue()!==String(t.content??"")&&e._editor.setValue(String(t.content??""),-1),Kp(e,t.options))},beforeUnmount(e){e._editorDisposed=!0,e._editorCleanup?.(),e._editor?.destroy()}};function Kp(e,t={}){let s=ate.has(t.mode)?t.mode:"text";e._editor.session.setMode("ace/mode/"+s),t.theme&&e._editor.setTheme("ace/theme/"+t.theme),e._editor.setReadOnly(t.readOnly!==!1)}var xp={mounted(e){if(!window.IntersectionObserver)return;let t=[...e.querySelectorAll('a[href^="#"]')],s=new Set,i=new IntersectionObserver(o=>{o.forEach(u=>u.isIntersecting?s.add(u.target.id):s.delete(u.target.id));let r=t.find(u=>s.has(u.hash.slice(1)));r&&t.forEach(u=>u.classList.toggle("active",u===r))},{rootMargin:"-20% 0px -60% 0px",threshold:0});Ge(()=>{t.forEach(o=>{let r=document.getElementById(o.hash.slice(1));r&&i.observe(r)}),t[0]&&!t.some(o=>o.classList.contains("active"))&&t[0].classList.add("active")}),e._observer=i},beforeUnmount(e){e._observer?.disconnect()}};function ef(e){let t=[],s=0,i=/\bXXXX-(\d+)\b/g,o;for(;o=i.exec(e);)o.index>s&&t.push(e.slice(s,o.index)),t.push(De("span",{class:"redact-slot",role:"img","aria-label":"Redacted term "+o[1]},[De("i",null,o[1])])),s=o.index+o[0].length;return t.length?(s{s.push(r),u=1024&&imte(e.file)),p=()=>e.selectedPath??"/"+(Array.isArray(s.params.path)?s.params.path.join("/"):s.params.path||"");dt(()=>[s.params.repoId,s.params.path,e.selectedPath],()=>{let k="";p().split("/").filter(Boolean).forEach(w=>{k+="/"+w,o[k]=!0})},{immediate:!0});let c=Et(()=>{if(!e.searchQuery||!e.searchResults)return null;let k=new Set,w=new Set;return e.searchResults.forEach(S=>{k.add(S.path?`${S.path}/${S.name}`:S.name);let N="";(S.path||"").split("/").filter(Boolean).forEach(b=>{N=N?N+"/"+b:b,w.add(N)})}),{files:k,folders:w}}),v=()=>[...i.value.querySelectorAll("li > a")],h=k=>{if(i.value.querySelector(".tree-focused")?.classList.remove("tree-focused"),!k)return;if(r=k.dataset.path,k.classList.add("tree-focused"),e.selectedPath===void 0){k.scrollIntoView?.({block:"nearest"}),i.value.focus();return}let w=i.value.scrollHeight>i.value.clientHeight?i.value:i.value.closest(".leftCol-body");if(w){let S=k.getBoundingClientRect(),N=w.getBoundingClientRect();S.topN.bottom&&(w.scrollTop+=S.bottom-N.bottom)}i.value.focus({preventScroll:!0})};function y(k){let w=v(),S=i.value.querySelector(".tree-focused")||w[0],N=w.indexOf(S);if(!["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(k.key)||(k.preventDefault(),k.key==="ArrowDown"&&h(w[(N+1)%w.length]),k.key==="ArrowUp"&&h(w[(N-1+w.length)%w.length]),!S))return;let b=S.closest("li");k.key==="ArrowRight"&&b.classList.contains("folder")&&(b.classList.contains("open")?h(b.querySelector(":scope > ul > li > a")):S.click()),k.key==="ArrowLeft"&&(b.classList.contains("folder")&&b.classList.contains("open")?S.click():h(b.parentElement.closest("li.folder")?.querySelector(":scope > a"))),k.key==="Enter"&&S.click()}function g(k,w=""){let S=[...k].sort((N,b)=>+!!b.children-+!!N.children||N.name.localeCompare(b.name));return De("ul",S.flatMap(N=>{let b=N,T=b.name,O=(w+"/"+T).slice(1);if(c.value&&!c.value.files.has(O)&&!c.value.folders.has(O))return[];for(;b.children?.length===1&&b.children[0].children&&e.page?.loadedFolders?.[(w+"/"+T).slice(1)];)b=b.children[0],T+="/"+b.name;let F=w+"/"+T,H=!!b.children,se=c.value?o[F]!==!1:!!o[F],_=H&&e.page?.options?.truncatedFolders?.includes(F.slice(1)),z=De("span",{class:H?"tree-icon-folder":"far fa-file tree-icon-file","aria-hidden":"true"},H?De("svg",{viewBox:"0 0 14 12",focusable:"false"},De("path",{d:"M1.5 10.5v-9h4l1.5 2h5.5v7z"})):null),I=!1,q=T,E="",L="";if(T.length>80){let ne=T.length-12;for(let x=T.length-18;x<=T.length-6;x++)if(x>0&&"-_. ".includes(T[x])){ne=x;break}if(I=!/XXXX-\d+/.test(T.slice(Math.max(0,ne-12))),q=T.slice(0,ne).trimEnd(),E=T.slice(ne).trimStart(),I){let x=Math.max(8,30-E.length-1);if(q.length>x&&!/XXXX-\d+/.test(q)){let fe=-1;for(let qe=Math.min(x,q.length);qe>=4;qe--)if(".-_".includes(q[qe])){fe=qe;break}let me=T.slice(0,T.length-E.length);q=(fe>0?q.slice(0,fe):q.slice(0,x)).trimEnd(),L=me.slice(q.length)}}}let G=De("span",{class:{"tree-name":!0,"tree-name-split":I,"tree-name-wrap":!I},title:T.replace(/\bXXXX-(\d+)\b/g,"[redacted term $1]")},I?[De("span",{class:{"tree-name-head":!0,"is-cut":!!L}},ef(q)),L?De("span",{class:"tree-name-middle"},L):null,De("span",{class:"tree-name-tail"},E)]:pte(T)),j=ne=>{if(h(ne.currentTarget),!H){e.selectedPath!==void 0&&(ne.preventDefault(),t("select",F));return}ne.preventDefault(),o[F]=!se,o[F]&&!b.children.length&&e.page.getFiles(F.slice(1)),Ge(()=>h(v().find(x=>x.dataset.path===r)))},Y=De("a",{"data-path":F,"aria-expanded":e.selectedPath!==void 0&&H?String(se):void 0,"aria-current":e.selectedPath!==void 0&&!H&&p()===F?"page":void 0,href:H?void 0:`/r/${encodeURIComponent(s.params.repoId)}${encodePathForUrl(F)}`,class:{"tree-focused":r===F},onClick:j},[H?De("span",{class:"tree-toggle"}):De("span",{class:"tree-spacer"}),z,G,_?De("span",{class:"truncated-warning",title:e.page.fmt.translate("WARNINGS.folder_truncated")},De("i",{class:"fas fa-exclamation-triangle"})):null]);return De("li",{key:F,class:{file:!0,folder:H,open:se,active:p()===F,truncated:_},title:H?"":`Size: ${fte(b.size||0)}`},[Y,H&&se?b.children.length||!e.page?.loadedFolders?.[F.slice(1)]?g(b.children,F):De("ul",De("li",{class:"tree-empty"},"Empty folder")):null])}))}return()=>De("tree",{ref:i,tabindex:0,onKeydown:y},e.file?.length?c.value?.files.size===0?De("div",{class:"tree-search-empty"},"No files found"):g(u.value):"Empty repository")}};function of(){return rt({errors:{},dirty:!1,touched:!1,submitted:!1,get invalid(){return Object.values(this.errors).some(Boolean)},setValidity(e,t){this.errors[e]=!t},setDirty(){this.dirty=!0}})}function sf(e,t){if(!e[t]){let s=of();Object.defineProperty(s,"invalid",{get(){return Object.values(s.errors).some(Boolean)||Object.keys(s).some(i=>i!=="invalid"&&s[i]&&typeof s[i]=="object"&&s[i].invalid)}}),e[t]=s}return e[t]}var rf={beforeMount(e,{value:t}){e._formState=sf(t,e.name),e.addEventListener("submit",s=>s.preventDefault())}};function hte(e){return e instanceof Date?isNaN(e)?"":`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`:e||""}function nf(e){let t=e._field.binding.value;e.type==="checkbox"?e.checked=!!t:e.type==="radio"?e.checked=t==(e._value??e.value):e._field.timer||(e.value=e.type==="date"?hte(t):t??""),rl(e)}function rl(e){let t=e._field.validation;if(!t)return;let s=e.validity;for(let[i,o]of Object.entries({required:s.valueMissing,pattern:s.patternMismatch,min:s.rangeUnderflow,max:s.rangeOverflow,date:s.badInput,email:s.typeMismatch&&e.type==="email",url:s.typeMismatch&&e.type==="url"}))t.setValidity(i,e.disabled||!o)}var af={beforeMount(e,{value:t}){var u;let s=t.form&&sf(t.state,t.form),i=s&&e.name?s[u=e.name]||(s[u]=of()):null;e._field={binding:t,validation:i,timer:null};let o=()=>{clearTimeout(e._field.timer),e._field.timer=null;let p=e._field.binding,c=e.type==="checkbox"?e.checked:e._value??e.value;if(!(e.type==="radio"&&!e.checked)){if((e.type==="number"||e.type==="range")&&(c=e.value===""?null:Number(e.value)),e.type==="date"&&(c=e.value?new Date(e.value+"T00:00:00"):null),i){i.setDirty();for(let v of Object.keys(i.errors))i.setValidity(v,!0)}p.set(c),rl(e),p.change?.()}};e._field.commit=o;let r=p=>{let c=e._field.binding.options?.debounce||0,v=typeof c=="number"?c:c[p.type]??c.default??0;clearTimeout(e._field.timer),v?e._field.timer=setTimeout(o,v):o()};e.addEventListener(e.tagName==="SELECT"||["checkbox","radio","date"].includes(e.type)?"change":"input",r),e.addEventListener("blur",()=>{i&&(i.touched=!0),e._field.timer&&o()})},mounted:nf,updated(e,{value:t}){e._field.binding=t,nf(e)},beforeUnmount(e){clearTimeout(e._field.timer);let{binding:t,validation:s}=e._field,i=t.form&&t.state[t.form];i&&i[e.name]===s&&delete i[e.name]}};function lf(e,t){let s=e.target.closest("form");if(s?._formState&&(s._formState.submitted=!0),s?.querySelectorAll("input, select, textarea").forEach(i=>{i._field?.timer&&i._field.commit(),i._field&&rl(i)}),s&&!s.checkValidity()){let i=s.querySelector("input:invalid, select:invalid, textarea:invalid");i?.scrollIntoView?.({block:"center"}),i?.focus(),s.reportValidity();return}return t()}var df=Symbol("session"),gte=/^\/(w|api|github)(\/|$)/;function uf(e,t={}){let s=e?.split(".").reduce((i,o)=>i?.[o],Qn);return s==null&&e?.startsWith("ERRORS.")&&(s=Qn.ERRORS.unknown_error),String(s??e??"").replace(/{{\s*([^}]+?)\s*}}/g,(i,o)=>t[o]??"")}var vte={...Ia,translate:uf};function yte(e){if(e==null||e==="")return e;try{let t=new URL(e,window.location.href);return["http:","https:","mailto:","tel:","blob:"].includes(t.protocol)?e:void 0}catch{return}}function bte(e="#app",t={}){let s=!!document.querySelector('meta[name="review-consent-page"][content="1"]'),i=s&&window.location.pathname==="/review-link"?hl(window):null,o=()=>{let g=i;return i=null,g};!t.history&&window.location.pathname==="/"&&/^#!\/r\/[^/?#]+/.test(window.location.hash)&&window.history.replaceState(window.history.state,"",window.location.hash.slice(2));let r=new Map,u=Up(t.fetch),p,c;function v(){let g=yt(),k={url(S){return S===void 0?c.currentRoute.value.fullPath:(c.push(S),k)},replace(S){return c.replace(S)},path(){return c.currentRoute.value.path},search(){return c.currentRoute.value.query}},w=new Proxy({},{get(S,N){let b=c.currentRoute.value.params[N];return Array.isArray(b)?b.join("/"):b}});return{takeReviewHandoff:o,http:u,...g,location:k,params:w,window,promises:Bp,html:{trustAsHtml:S=>S},translate:(S,N)=>Promise.resolve(uf(S,N)),quotaService:zp(u)}}function h(g){return{name:g.template,setup(){let k=Fs(Lt(df),r);g.setup(k,v()),Fp(g.template,k);let w=[];return()=>wr[g.template](k,w)}}}c=Gu({history:t.history||zu(),routes:ip.map(g=>g.redirect?g:{path:g.path,component:h(g),meta:{title:g.title,preserveExplorer:g.preserveExplorer}})});let y=du({setup(){p=Fs(null,r),p.fmt=vte,p.window=window,p.Math=Math,p.sanitize=S=>DOMPurify.sanitize(S??""),p.highlightRedactions=S=>(p.site_options,jc(S)),p.submitForm=lf,p.safeUrl=yte;let g=v();Gc(p,g.http,g.location,g.timeout),ro(df,p),dt(()=>p.title,S=>{document.title=S||"Anonymous GitHub"});let k=[],w=S=>{let N=S.target.closest?.("a[href]");if(S.defaultPrevented||S.button!==0||S.metaKey||S.ctrlKey||S.shiftKey||S.altKey||!N||N.hasAttribute("download")||N.target&&N.target!=="_self"||N.dataset.toggle||N.getAttribute("href").startsWith("#"))return;let T=new URL(N.href,window.location.href);s||/^\/review-link\/?$/i.test(T.pathname)||T.origin!==window.location.origin||gte.test(T.pathname)||(S.preventDefault(),c.push(T.pathname+T.search+T.hash),$("#navbarSupportedContent.show").collapse("hide"))};return document.addEventListener("click",w),ao(()=>document.removeEventListener("click",w)),()=>[$p(p,[]),s||/^\/(r|repository)\//.test(p.path||"")?null:De("header",{class:["app-header",{"is-contained":p.path==="/"||p.path==="/faq","is-signin":p.path==="/signin"}]},wr["partials/header.htm"](p,k)),De("main",{class:"app-view align-items-stretch w-100"},De(Na,null,{default:({Component:S,route:N})=>S?De(S,{key:N.meta.preserveExplorer?N.matched[0]?.path:N.path}):null})),De("div",{class:"position-fixed p-3",style:{zIndex:999999999,right:0,bottom:0}},p.toasts.map((S,N)=>De("div",{class:"toast show",role:"alert","aria-live":"assertive","aria-atomic":"true",key:N},[De("div",{class:"toast-header"},[De("strong",{class:"mr-auto"},S.title),De("button",{type:"button",class:"ml-2 mb-1 close","aria-label":"Close",onClick:()=>p.removeToast(S)},"\xD7")]),De("div",{class:"toast-body"},S.body)])))]}});for(let[g,k]of Object.entries(Qp))y.component(g,k);return y.component("Tree",tf),y.component("PartialView",{props:["name","state"],setup(g){let k=[];return()=>wr[g.name](g.state,k)}}),y.directive("field",af),y.directive("form",rf),y.directive("code-editor",Zp),y.directive("paper-scrollspy",xp),y.use(c),c.beforeEach(async g=>{if(g.path==="/review-link"&&!s||s&&g.path!=="/review-link")return window.location.assign(g.fullPath),!1;p?.emit("routeLeave"),/^\/(r|repository|anonymize|pull-request-anonymize|gist-anonymize|pr|gist)(\/|$)/.test(g.path)&&await Zn("markdown"),/^\/(r|repository|anonymize|pull-request-anonymize|gist-anonymize|pr|gist)(\/|$)/.test(g.path)&&await Zn("org")}),c.afterEach(g=>{if(!p)return;p.title=g.meta.title,p.emit("routeChange",{title:g.meta.title}),p.emit("routeUpdate",{title:g.meta.title});let k=document.querySelector(".app-view");!g.meta.preserveExplorer&&k&&(k.scrollTop=0)}),y.mount(e),{app:y,router:c,state:p}}document.querySelector("#app")&&(window.anonymousApp=bte());})(); /*! Bundled license information: @vue/shared/dist/shared.esm-bundler.js: diff --git a/scripts/generate-log-diagnostics.js b/scripts/generate-log-diagnostics.js index cd6b38a..8cd83f4 100644 --- a/scripts/generate-log-diagnostics.js +++ b/scripts/generate-log-diagnostics.js @@ -1,6 +1,18 @@ // Generate finite diagnostic allowlists from repository code, never runtime input. const fs = require('fs'), path = require('path'), ts = require('typescript'); const files = {}; +// Error codes the code base throws or relays, so the logger and the collector +// keep them as errorCode instead of dropping them as arbitrary strings. +const codePattern = /^[A-Za-z][A-Za-z0-9]*(?:_[A-Za-z0-9]+)+$/; +const errorFactories = new Set(['AnonymousError','billingError','appError']); +const thrownCodes = new Set(); +function codeLiterals(node) { + if (!node) return; + if (ts.isStringLiteralLike(node)) { if (codePattern.test(node.text)) thrownCodes.add(node.text); } + else if (ts.isConditionalExpression(node)) { codeLiterals(node.whenTrue); codeLiterals(node.whenFalse); } + else if (ts.isBinaryExpression(node) && [ts.SyntaxKind.BarBarToken, ts.SyntaxKind.QuestionQuestionToken].includes(node.operatorToken.kind)) { codeLiterals(node.left); codeLiterals(node.right); } + else if (ts.isParenthesizedExpression(node)) codeLiterals(node.expression); +} function scan(dir) { for (const entry of fs.readdirSync(dir, {withFileTypes:true})) { const file = path.join(dir,entry.name); @@ -11,6 +23,11 @@ function scan(dir) { function visit(node) { if ((ts.isFunctionDeclaration(node)||ts.isMethodDeclaration(node)||ts.isFunctionExpression(node)) && node.name && ts.isIdentifier(node.name)) names.add(node.name.text); if(ts.isVariableDeclaration(node)&&ts.isIdentifier(node.name)&&node.initializer&&(ts.isArrowFunction(node.initializer)||ts.isFunctionExpression(node.initializer))) names.add(node.name.text); + // new AnonymousError("code"), billingError("code"), appError("code") + if((ts.isNewExpression(node)||ts.isCallExpression(node))&&ts.isIdentifier(node.expression)&&errorFactories.has(node.expression.text)&&node.arguments?.length) codeLiterals(node.arguments[0]); + // Codes picked into a variable first: errCode = "streamer_unreachable" + if(ts.isVariableDeclaration(node)&&ts.isIdentifier(node.name)&&/^(errCode|code)$/.test(node.name.text)) codeLiterals(node.initializer); + if(ts.isBinaryExpression(node)&&node.operatorToken.kind===ts.SyntaxKind.EqualsToken&&ts.isIdentifier(node.left)&&/^(errCode|code)$/.test(node.left.text)) codeLiterals(node.right); ts.forEachChild(node,visit); } visit(source); @@ -23,7 +40,12 @@ scan('src'); const types=['Error','TypeError','RangeError','ReferenceError','SyntaxError','URIError','EvalError','AggregateError','AnonymousError','HTTPError','RequestError','MongoServerError','MongoNetworkError','MongoServerSelectionError','ValidationError','TimeoutError','AbortError','UnknownError']; const vrl=fs.readFileSync('deploy/logging/sanitize.vrl','utf8'); const routes=JSON.parse(vrl.match(/if includes\((\[.*?\]), record.route\)/)[1]); -fs.writeFileSync('src/core/log-diagnostic-schema.ts','// Generated by scripts/generate-log-diagnostics.js; do not edit.\nexport const LOG_SOURCE_FUNCTIONS: Record = '+JSON.stringify(files,null,2)+';\nexport const LOG_ERROR_TYPES = '+JSON.stringify(types)+';\nexport const LOG_ROUTES = '+JSON.stringify(routes)+';\n'); +const codes=[...thrownCodes].sort(); +fs.writeFileSync('src/core/log-diagnostic-schema.ts','// Generated by scripts/generate-log-diagnostics.js; do not edit.\nexport const LOG_SOURCE_FUNCTIONS: Record = '+JSON.stringify(files,null,2)+';\nexport const LOG_ERROR_TYPES = '+JSON.stringify(types)+';\nexport const LOG_ROUTES = '+JSON.stringify(routes)+';\nexport const LOG_THROWN_ERROR_CODES = '+JSON.stringify(codes)+';\n'); +// The collector keeps reviewed codes too (system errnos, worker codes); only add. +const codeList=/(if includes\()(\[.*?\])(, record\.errorCode\))/; +const collectorCodes=JSON.parse(vrl.match(codeList)[2]); +const mergedCodes=[...collectorCodes,...codes.filter(code=>!collectorCodes.includes(code))]; const block=`# BEGIN GENERATED DIAGNOSTICS source_functions = ${JSON.stringify(files)} for_each(["errorType", "causeType"]) -> |_index, key| { @@ -43,5 +65,5 @@ for_each(["errorStack", "causeStack"]) -> |_index, key| { } } # END GENERATED DIAGNOSTICS`; -const clean=vrl.replace(/# BEGIN GENERATED DIAGNOSTICS[\s\S]*?# END GENERATED DIAGNOSTICS\n?/,''); +const clean=vrl.replace(/# BEGIN GENERATED DIAGNOSTICS[\s\S]*?# END GENERATED DIAGNOSTICS\n?/,'').replace(codeList,(_,start,_list,end)=>start+JSON.stringify(mergedCodes).replace(/","/g,'", "')+end); fs.writeFileSync('deploy/logging/sanitize.vrl',clean.replace('out._msg = out.event',()=>block+'\nout._msg = out.event')); diff --git a/src/core/AnonymizedFile.ts b/src/core/AnonymizedFile.ts index 00f145c..6f9acca 100644 --- a/src/core/AnonymizedFile.ts +++ b/src/core/AnonymizedFile.ts @@ -548,8 +548,12 @@ export default class AnonymizedFile { ); void notifyOwnerAccessProblem(this.repository.owner.id, error, { kind: "repository", id: String(this.repository.model._id) }); error.value = this; + // Only a response that was already streaming body bytes must be + // cut. handleError's own reply can be mid-write: express-session + // holds back its last byte until the session store touch ends. + const streaming = res.headersSent; handleError(error, res); - if (res.headersSent && !res.writableEnded) res.destroy(); + if (streaming && !res.writableEnded) res.destroy(); }); resolve(); return; diff --git a/src/core/cached-response.ts b/src/core/cached-response.ts index fe2a76d..28712d7 100644 --- a/src/core/cached-response.ts +++ b/src/core/cached-response.ts @@ -1,4 +1,5 @@ import { recordResponseFailure } from "./request-evidence"; +import { watchClientClose } from "./response-cancellation"; import { createGzip } from "zlib"; import { createHash } from "crypto"; import { Readable, PassThrough } from "stream"; @@ -53,12 +54,19 @@ async function sendCached(content: Readable, res: Response, // Install evidence before pipeline's listeners destroy the response. const localFailure = () => { if (!res.destroyed) recordResponseFailure(res, "unknown", "local_abort"); }; stream.once("error", localFailure); - if (record.encoding === "identity" && !res.req.acceptsEncodings("identity")) { - res.setHeader("Content-Encoding", "gzip"); res.removeHeader("Content-Length"); - const gzip = createGzip(); - gzip.once("error", localFailure); - await pipeline(stream, gzip, res); - } else await pipeline(stream, res); + const clientClosed = watchClientClose(res, stream); + try { + if (record.encoding === "identity" && !res.req.acceptsEncodings("identity")) { + res.setHeader("Content-Encoding", "gzip"); res.removeHeader("Content-Length"); + const gzip = createGzip(); + gzip.once("error", localFailure); + await pipeline(stream, gzip, res); + } else await pipeline(stream, res); + } catch (error) { + // A visitor who stops a download is not a server fault. + if (clientClosed()) throw Object.assign(new Error("response_cancelled"), { cause: error }); + throw error; + } return true; }; const decision = results.decision(key); diff --git a/src/core/log-diagnostic-schema.ts b/src/core/log-diagnostic-schema.ts index 04b7917..8794d7a 100644 --- a/src/core/log-diagnostic-schema.ts +++ b/src/core/log-diagnostic-schema.ts @@ -1570,11 +1570,13 @@ export const LOG_SOURCE_FUNCTIONS: Record = { ], "src/core/response-cancellation.ts": [ "", - "isResponseCancellation" + "isResponseCancellation", + "watchClientClose" ], "build/core/response-cancellation.js": [ "", - "isResponseCancellation" + "isResponseCancellation", + "watchClientClose" ], "src/core/response-stream.ts": [ "", @@ -2979,3 +2981,4 @@ export const LOG_SOURCE_FUNCTIONS: Record = { }; export const LOG_ERROR_TYPES = ["Error","TypeError","RangeError","ReferenceError","SyntaxError","URIError","EvalError","AggregateError","AnonymousError","HTTPError","RequestError","MongoServerError","MongoNetworkError","MongoServerSelectionError","ValidationError","TimeoutError","AbortError","UnknownError"]; export const LOG_ROUTES = ["/","other","/dashboard","/anonymize","/healthcheck","/api/healthcheck","/api","/api/download","/api/stat","/api/stat/history","/api/options","/api/message","/api/user","/api/user/quota","/api/user/dashboard","/api/repo","/api/anonymize-preview","/api/admin/overview","/api/admin/performance","/api/admin/errors","/api/admin/errors/stats","/api/admin/queues","/api/admin/queues/metrics","/github/app/webhook","/api/repo/:repoId","/api/repo/:repoId/file/:path","/api/repo/:repoId/files","/api/repo/:repoId/files/counts","/api/repo/:repoId/files/search","/api/repo/:repoId/zip","/api/repo/:repoId/options","/api/repo/:repoId/refresh","/api/repo/:repoId/coauthors","/api/repo/:repoId/extend","/api/repo/:owner/:repo","/api/repo/:owner/:repo/tree","/api/repo/:owner/:repo/file","/api/repo/:owner/:repo/readme","/api/repo/:owner/:repo/branches","/w/:repoId/:path","/r/:repoId/:path","/api/pr/:id/:path","/api/gist/:id/:path","/assets/:path","/github/:action","/api/admin/:action","/api/user/:action","/api/repo/:id/file/:path","/api/repo/:id/files/counts","/api/repo/:id/files/search","/api/repo/:id/files","/api/repo/:id/zip","/api/repo/:id","/viewer/:id/:path","/api/billing","/api/billing/draft","/api/billing/draft/:id","/api/billing/checkout","/api/billing/portal","/api/billing/refresh","/api/billing/webhook","/api/conferences/plans","/profile","/conference/:id"]; +export const LOG_THROWN_ERROR_CODES = ["another_login_required","billing_address_missing","billing_already_paid","billing_busy","billing_checkout_disabled","billing_checkout_in_progress","billing_city_missing","billing_country_missing","billing_customer_mismatch","billing_draft_not_found","billing_email_missing","billing_invalid_conference","billing_invalid_draft","billing_invalid_purchase","billing_invalid_repository_size","billing_invalid_review_window","billing_missing","billing_name_missing","billing_plan_change_not_supported","billing_plan_unavailable","billing_price_misconfigured","billing_recovery_required","billing_review_window_locked","billing_subscription_exists","billing_unavailable","billing_zip_missing","branch_not_found","branch_not_specified","cache_busy","cache_miss","cannot_coauthor_self","commit_not_found","commit_not_specified","conf_end_date_invalid","conf_end_date_missing","conf_id_missing","conf_id_used","conf_name_missing","conf_not_activated","conf_not_found","conf_start_date_invalid","conf_start_date_missing","conference_not_found","conference_payment_required","connection_changed","download_not_enabled","expiration_limit_reached","file_listing_too_large","file_not_accessible","file_not_found","file_not_supported","file_too_big","folder_not_supported","gistId_already_used","gistId_not_specified","gist_expired","gist_not_available","gist_not_found","gist_not_ready","github_app_access_required","github_app_authorization_cancelled","github_app_disabled","github_app_permissions_invalid","github_app_reconnect_required","github_app_refresh_busy","github_grant_revocation_failed","github_identity_mismatch","github_oauth_required","github_rate_limit_exceeded","github_unavailable","github_user_not_found","invalid_auth_state","invalid_billing_expiration","invalid_commit_format","invalid_connection","invalid_cursor","invalid_gistId","invalid_github_path","invalid_path","invalid_plan","invalid_preserve_files_format","invalid_project_name","invalid_pullRequestId","invalid_repo","invalid_repoId","invalid_request","invalid_settings","invalid_sort","invalid_status","invalid_terms_format","invalid_token_id","invalid_token_options","is_removed","not_authorized","not_connected","not_owner","oauth_resources_remaining","options_not_provided","page_not_activated","page_not_supported_on_different_branch","path_not_defined","path_not_specified","pullRequestId_already_used","pullRequestId_is_not_a_number","pullRequestId_not_specified","pull_request_expired","pull_request_not_available","pull_request_not_found","pull_request_not_ready","quota_exceeded","quota_repository_limit","quota_storage_limit","rate_limited","readme_not_available","repoId_already_used","repoId_not_defined","repoUrl_not_defined","repo_access_limited","repo_empty","repo_not_accessible","repo_not_found","repo_saml_enforcement","repository_archived","repository_busy","repository_changed","repository_expired","repository_job_cancelled","repository_not_accessible","repository_not_ready","repository_not_specified","repository_tree_incomplete","repository_tree_too_large","s3_config_not_provided","source_not_provided","storage_delete_failed","storage_write_size_mismatch","streamer_unreachable","streamer_upstream_error","submodule_not_available","subscription_required_for_never_expiration","sync_failed","terms_not_specified","token_expired","token_limit_reached","unable_to_connect_user","unable_to_download","upstream_error","user_banned","user_not_found","username_not_defined","zip_not_available","zip_unsafe_entry_path"]; diff --git a/src/core/log-record.ts b/src/core/log-record.ts index 0dcab75..fdbaf93 100644 --- a/src/core/log-record.ts +++ b/src/core/log-record.ts @@ -1,7 +1,7 @@ import { ANONYMIZATION_ERRORS } from "./anonymization-errors"; import { requestReproduction, safeReproductionPath } from "./log-reproduction"; import { safeDiagnosticFields, errorDiagnostics } from "./log-diagnostics"; -import { LOG_ROUTES } from "./log-diagnostic-schema"; +import { LOG_ROUTES, LOG_THROWN_ERROR_CODES } from "./log-diagnostic-schema"; import { LOG_MODULES, ERROR_CODES, LOG_EVENTS } from "./log-schema"; import { randomUUID } from "crypto"; import { logContext, validTraceId } from "./log-context"; @@ -17,8 +17,9 @@ const events: Record = { "process heartbeat": "process_heartbeat", "job started": "job_started", "job completed": "job_completed", "job failed": "job_failed", "job stalled": "job_stalled", "queue heartbeat": "queue_heartbeat", }; -const errorCodes = new Set([ - ...ERROR_CODES, ...ANONYMIZATION_ERRORS, "zip_unsafe_entry_path", +// LOG_THROWN_ERROR_CODES is generated from the codes the source throws. +export const LOG_ERROR_CODES: ReadonlySet = new Set([ + ...ERROR_CODES, ...ANONYMIZATION_ERRORS, ...LOG_THROWN_ERROR_CODES, "zip_unsafe_entry_path", "repo_renamed", "preparation_interrupted", "commit_not_found", "zip_not_available", "token_refresh_failed", "quota_exceeded", "quota_repository_limit", "quota_storage_limit", "github_rate_limit_exceeded", "github_app_reconnect_required", "github_token_invalid", "repository_expired", "repository_not_ready", "repository_not_found", "repository_job_cancelled", "ECONNRESET", "ECONNREFUSED", "ETIMEDOUT", "ENOTFOUND", "EPIPE", "ABORT_ERR", @@ -57,7 +58,7 @@ export function logRecord(level: string, module: string, args: unknown[]) { } if (Number.isSafeInteger(context.attempt)) record.attempt = context.attempt; for (const key of LOG_NUMBERS) if (typeof details[key] === "number" && Number.isFinite(details[key])) record[key] = details[key]; - const code = [details.code, details.message].find(value => typeof value === "string" && errorCodes.has(value)); + const code = [details.code, details.message].find(value => typeof value === "string" && LOG_ERROR_CODES.has(value)); if (code) record.errorCode = code; if (allowed(["protocol", "credentials", "port", "host"], details.reason)) record.reason = details.reason; if (allowed(["parse", "find_grant_owners", "reconcile_grant", "persist_installation_block", "reconcile_installation"], details.phase)) record.phase = details.phase; diff --git a/src/core/response-cancellation.ts b/src/core/response-cancellation.ts index 5ec895e..3a4766e 100644 --- a/src/core/response-cancellation.ts +++ b/src/core/response-cancellation.ts @@ -14,3 +14,19 @@ export function isResponseCancellation(error: unknown, response?: { destroyed?: } return false; } + +/** + * pipeline() rejects with ERR_STREAM_PREMATURE_CLOSE both when the client goes + * away and when the source ends early. Call before piping; the returned check + * is true only when the response closed unfinished before the source failed. + */ +export function watchClientClose(response: { writableFinished?: boolean; once(event: "close", listener: () => void): unknown }, + source: { readableEnded?: boolean; once(event: "close" | "error", listener: () => void): unknown }): () => boolean { + let sourceFailed = false; + let clientClosed = false; + source.once("error", () => { sourceFailed = true; }); + // A source that closes without ending was cut short. + source.once("close", () => { if (!source.readableEnded) sourceFailed = true; }); + response.once("close", () => { if (!sourceFailed && !response.writableFinished) clientClosed = true; }); + return () => clientClosed; +} diff --git a/src/streamer/route.ts b/src/streamer/route.ts index bd9f7c2..19e14ed 100644 --- a/src/streamer/route.ts +++ b/src/streamer/route.ts @@ -41,8 +41,9 @@ router.post( res ); } catch (error) { + const streaming = res.headersSent; handleError(error, res); - if (res.headersSent && !res.writableEnded) res.destroy(); + if (streaming && !res.writableEnded) res.destroy(); } } ); @@ -121,8 +122,9 @@ router.post("/", async (req: express.Request, res: express.Response) => { if (!content.closed && !content.destroyed) { content.destroy(); } + const streaming = res.headersSent; handleError(error, res); - if (res.headersSent && !res.writableEnded) res.destroy(); + if (streaming && !res.writableEnded) res.destroy(); anonymizer.destroy(); } content diff --git a/test/cached-response-cancellation.test.js b/test/cached-response-cancellation.test.js new file mode 100644 index 0000000..84f78e5 --- /dev/null +++ b/test/cached-response-cancellation.test.js @@ -0,0 +1,108 @@ +const { strict: assert } = require("node:assert"); +const { promises: fs } = require("node:fs"); +const http = require("node:http"); +const { tmpdir } = require("node:os"); +const { join } = require("node:path"); +const { PassThrough, Readable, Writable } = require("node:stream"); +const { pipeline } = require("node:stream/promises"); +const { setTimeout } = require("node:timers"); +const { createHash } = require("node:crypto"); +const express = require("express"); +require("ts-node/register/transpile-only"); +const config = require("../src/config").default; +const { sharedBlobCache, closeBlobCaches } = require("../src/core/blob-cache"); +const { watchClientClose, isResponseCancellation } = require("../src/core/response-cancellation"); +const streamer = require("../src/streamer/route").default; + +const body = Buffer.alloc(8 * 1024 * 1024, 7); +const sha = createHash("sha1").update(`blob ${body.length}\0`).update(body).digest("hex"); +const wait = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); + +/** Collect the structured records a test run writes to stdout. */ +function captureLogs() { + const records = []; + const write = process.stdout.write; + process.stdout.write = function (chunk, ...rest) { + for (const line of String(chunk).split("\n")) { + try { const record = JSON.parse(line); if (record && record.severity) { records.push(record); continue; } } catch { /* not a record */ } + if (line) write.call(process.stdout, line + "\n"); + } + const callback = rest.find((arg) => typeof arg === "function"); + if (callback) callback(); + return true; + }; + return { records, restore: () => { process.stdout.write = write; } }; +} + +describe("cached response cancellation", function () { + this.timeout(15000); + let root, old; + beforeEach(async () => { + old = { ...config }; closeBlobCaches(); + root = await fs.mkdtemp(join(tmpdir(), "cached-cancel-")); + Object.assign(config, { STORAGE: "filesystem", FOLDER: root, SHARED_CACHE_ENABLED: true, + SHARED_CACHE_PATH: join(root, "cache"), SHARED_CACHE_BYTES: 64 * 1024 ** 2, + SHARED_CACHE_RESULT_BYTES: 32 * 1024 ** 2, SHARED_CACHE_MAX_FILE_BYTES: 16 * 1024 ** 2, + SHARED_CACHE_FREE_BYTES: 0, BILLING_ENABLED: false }); + }); + afterEach(async () => { + closeBlobCaches(); Object.assign(config, old); + await fs.rm(root, { recursive: true, force: true }); + }); + + it("does not log a client that stops a cached download as a server error", async () => { + const seeded = await sharedBlobCache().getOrFill(`git-${sha}`, async () => Readable.from([body]), async () => `git-${sha}`, body.length); + for await (const chunk of seeded) void chunk; + const app = express(); app.use(express.json()); app.use("/api", streamer); + const server = await new Promise((resolve) => { const s = app.listen(0, "127.0.0.1", () => resolve(s)); }); + const logs = captureLogs(); + try { + await new Promise((resolve) => { + const req = http.request({ host: "127.0.0.1", port: server.address().port, path: "/api", method: "POST", + headers: { "content-type": "application/json" } }, (res) => { + res.once("data", () => req.destroy()); + res.on("error", () => undefined); + res.on("close", resolve); + }); + req.on("error", resolve); + req.end(JSON.stringify({ token: "", repoFullName: "owner/repo", repoId: "anon", sha, size: body.length, + filePath: "video.bin", anonymizerOptions: { terms: [], filePath: "video.bin" } })); + }); + await wait(300); + } finally { + logs.restore(); + server.closeAllConnections(); + await new Promise((resolve) => server.close(resolve)); + } + const faults = logs.records.filter((record) => record.severity === "error" || record.severity === "warn"); + assert.deepEqual(faults, []); + }); + + it("names a client disconnect but keeps a source that ended early as a failure", async () => { + const attribute = async (closeFirst) => { + const source = new PassThrough(); + // The "late" response never acknowledges its write, like a slow socket. + const response = new Writable({ write(_chunk, _encoding, done) { if (closeFirst !== "late") done(); } }); + const clientClosed = watchClientClose(response, source); + const piping = pipeline(source, response); + source.write("partial"); + if (closeFirst === "late") source.end(); + await wait(5); + if (closeFirst !== "source") response.destroy(); + else source.destroy(); + const error = await piping.then(() => undefined, (failure) => failure); + return { error, clientClosed: clientClosed(), cancellation: isResponseCancellation(error, response) }; + }; + const client = await attribute("client"); + assert.equal(client.error.code, "ERR_STREAM_PREMATURE_CLOSE"); + assert.equal(client.clientClosed, true); + // The source was fully read but the response had not flushed yet. + const late = await attribute("late"); + assert.equal(late.error.code, "ERR_STREAM_PREMATURE_CLOSE"); + assert.equal(late.clientClosed, true); + const source = await attribute("source"); + assert.equal(source.error.code, "ERR_STREAM_PREMATURE_CLOSE"); + assert.equal(source.clientClosed, false); + assert.equal(source.cancellation, false); + }); +}); diff --git a/test/database-timing.test.js b/test/database-timing.test.js index 91f6307..ea6a88a 100644 --- a/test/database-timing.test.js +++ b/test/database-timing.test.js @@ -1,11 +1,11 @@ const {expect}=require('chai'); -const {setTimeout}=require('node:timers'); require('ts-node/register/transpile-only'); const mongoose=require('mongoose'); const {installDatabaseTiming}=require('../src/core/database-timing'); const {monitorRequests,RequestMetrics}=require('../src/core/request-monitoring'); const express=require('express'); const http=require('node:http'); +const {setTimeout:delay}=require('node:timers/promises'); describe('database execution timing',()=>{ it('preserves query receiver, result and failure while measuring execution once',async()=>{ const Model=mongoose.model("TimingFixture",new mongoose.Schema({})); @@ -14,7 +14,7 @@ describe('database execution timing',()=>{ installDatabaseTiming();const wrapped=mongoose.Query.prototype.exec;installDatabaseTiming();expect(mongoose.Query.prototype.exec).equal(wrapped); app.use(monitorRequests('api',new RequestMetrics(),{info:(_,row)=>logs.push(row),warn:(_,row)=>logs.push(row)})); app.get('/',async(_req,res)=>{ - const query=Model.find();query._find=async function(){expect(this).equal(query);await new Promise(r=>setTimeout(r,20));return ['ok'];}; + const query=Model.find();query._find=async function(){expect(this).equal(query);await delay(20);return ['ok'];}; expect(await query.exec()).deep.equal(['ok']); const failed=Model.find();const error=new Error('PRIVATE query');failed._find=async()=>{throw error;}; try{await failed.exec();throw Error('expected failure');}catch(e){expect(e).equal(error);} diff --git a/test/large-repository-tree.test.js b/test/large-repository-tree.test.js index 91877ae..07488c6 100644 --- a/test/large-repository-tree.test.js +++ b/test/large-repository-tree.test.js @@ -361,7 +361,9 @@ const uri = process.env.PERFORMANCE_MONGO_URI; expect(saved.githubAccess.revision).not.to.equal("old-access"); expect(saved.anonymizeDate.getTime()).to.be.greaterThan(1); expect(saved.options.terms).to.deep.equal(["after"]); expect(await File.countDocuments({ repoId: row.repoId })).to.equal(0); expect(await Path.countDocuments({ repoId: row.repoId })).to.equal(0); - expect(jobs).to.have.length(1); expect(jobs[0][1]).to.deep.equal({ repoId: row.repoId }); + expect(jobs).to.have.length(1); + const { logJobId, ...jobData } = jobs[0][1]; + expect(jobData).to.deep.equal({ repoId: row.repoId }); expect(logJobId).to.match(/^[a-f0-9-]{36}$/); }); for (const [label, change] of [...changedSnapshots, ["settings revision", { settingsSavedAt: new Date(1) }]] ) { diff --git a/test/performance-integration.test.js b/test/performance-integration.test.js index b71ac06..d0f4b27 100644 --- a/test/performance-integration.test.js +++ b/test/performance-integration.test.js @@ -996,13 +996,14 @@ const uri = process.env.PERFORMANCE_MONGO_URI; const row = await Repo.create({ repoId: "active-staged", status: "ready", statusDate: new Date(), lastView: new Date(), treeGeneration: "old", source: { type: "GitHubStream" }, options: { expirationMode: "never" } }); await File.create({ repoId: row.repoId, treeGeneration: "old", path: "", name: "old.txt" }); - const repo = new Repository(row), updateMany = File.updateMany; + // Completion clears markers through the driver collection (clearStagedRowsInBatches). + const repo = new Repository(row), updateMany = File.collection.updateMany; Object.defineProperty(repo, "source", { get: () => ({ getFiles: async () => [{ path: "", name: "active.txt", size: 1 }] }) }); - File.updateMany = function (filter, ...args) { - if (filter.treeStaged) return { exec: async () => { throw Error("marker cleanup interrupted"); } }; + File.collection.updateMany = function (filter, ...args) { + if (filter.treeStaged) return Promise.reject(Error("marker cleanup interrupted")); return updateMany.call(this, filter, ...args); }; - try { await repo.files({ force: true }); } finally { File.updateMany = updateMany; } + try { await repo.files({ force: true }); } finally { File.collection.updateMany = updateMany; } expect(await File.countDocuments({ treeStaged: true })).to.equal(1); await require("../src/server/schedule").runRepositoryStatusCheck(); expect((await File.find({ repoId: row.repoId })).map(file => file.name)).to.deep.equal(["active.txt"]); diff --git a/test/performance-streamer-integration.test.js b/test/performance-streamer-integration.test.js index ccfc38b..2e1b762 100644 --- a/test/performance-streamer-integration.test.js +++ b/test/performance-streamer-integration.test.js @@ -6,7 +6,7 @@ const path = require("node:path"); const net = require("node:net"); const { randomBytes } = require("node:crypto"); const { once } = require("node:events"); -const { setTimeout } = require("node:timers"); +const { setTimeout, clearTimeout } = require("node:timers"); const { fetch } = globalThis; const mongoose = require("mongoose"); require("ts-node/register/transpile-only"); @@ -51,10 +51,20 @@ const uri = process.env.PERFORMANCE_MONGO_URI; }); const messages = []; child.on("message", message => messages.push(message)); const ready = new Promise((resolve, reject) => { + // Fail before the mocha timeout so callers' finally blocks always stop the child. + const deadline = setTimeout(() => reject(Error("Streamer did not report streamer_started")), 20000); + const settle = (fn, value) => { clearTimeout(deadline); fn(value); }; let logs = ""; - child.stdout.on("data", chunk => { logs += chunk; if (logs.includes("streamer started")) resolve(); }); + child.stdout.on("data", chunk => { + logs += chunk; const lines = logs.split("\n"); logs = lines.pop(); + for (const line of lines) { + let record; try { record = JSON.parse(line); } catch { continue; } + if (record.event === "streamer_started") settle(resolve); + } + }); child.stderr.on("data", () => {}); - child.once("error", reject); child.once("exit", code => reject(Error(`Streamer exited ${code} before serving`))); + child.once("error", error => settle(reject, error)); + child.once("exit", code => settle(reject, Error(`Streamer exited ${code} before serving`))); }); ready.catch(() => {}); return { child, ready, messages, directory, stale, url: `http://127.0.0.1:${port}` }; diff --git a/test/performance-worker.test.js b/test/performance-worker.test.js index 5f5b8bb..672455e 100644 --- a/test/performance-worker.test.js +++ b/test/performance-worker.test.js @@ -88,7 +88,9 @@ describe("large anonymization resources", function () { maxOutput: 1000000, context: { mask: "XXXX", hostname: "localhost" } }, text.length, controller.signal); } catch (error) { failure = error; } expect(failure).to.be.instanceOf(Error); - expect(failure.message).to.match(/timed out after 1000ms/); + // Workers report fixed codes only; the elapsed bound proves the 1s regex deadline, + // not the 15s pool deadline that reports the same code, stopped the job. + expect(failure.message).to.equal("anonymization_deadline_exceeded"); expect(Date.now() - started).to.be.lessThan(8000); let exists = true; try { await fs.access(output); } catch (error) { if (error.code === "ENOENT") exists = false; else throw error; } diff --git a/test/repository-activity.test.js b/test/repository-activity.test.js index bb8d78d..869e788 100644 --- a/test/repository-activity.test.js +++ b/test/repository-activity.test.js @@ -207,11 +207,13 @@ describe("repository activity dates", () => { }); } } + // FileModel.exists() returns a Mongoose query; production code chains .hint(). + const missingFile = () => Object.assign(Promise.resolve(null), { hint() { return this; } }); it("returns publication and settings dates independently of the older source commit", async () => { const repo = repository(); auth(repo); repo.model.settingsSavedAt = new Date("2026-03-01"); repo.model.publishedAt = new Date("2026-02-01"); - stub(Files, "exists", async () => null); + stub(Files, "exists", missingFile); let body; await handler("repository-public", "/:repoId/options", "get")({}, { header: () => {}, json: value => { body = value; } }); expect(body.lastUpdateDate).to.deep.equal(repo.model.settingsSavedAt); @@ -220,7 +222,7 @@ describe("repository activity dates", () => { }); it("does not invent publication or settings dates for legacy repositories", async () => { const repo = repository(); auth(repo); - stub(Files, "exists", async () => null); + stub(Files, "exists", missingFile); let body; await handler("repository-public", "/:repoId/options", "get")({}, { header: () => {}, json: value => { body = value; } }); expect(body.publishedAt).to.equal(undefined); @@ -232,7 +234,7 @@ describe("repository activity dates", () => { const repo = repository(); auth(repo); repo.model.options.expirationMode = "remove"; repo.model.options.expirationDate = new Date("2099-01-01"); - stub(Files, "exists", async () => null); + stub(Files, "exists", missingFile); let body; await handler("repository-public", "/:repoId/options", "get")({}, { header: () => {}, json: value => { body = value; } }); expect(body.expirationDate).to.deep.equal(new Date("2099-01-01")); diff --git a/test/session-error-response.test.js b/test/session-error-response.test.js new file mode 100644 index 0000000..9f2d9ca --- /dev/null +++ b/test/session-error-response.test.js @@ -0,0 +1,71 @@ +const { strict: assert } = require("node:assert"); +const http = require("node:http"); +const { setTimeout } = require("node:timers"); +const express = require("express"); +const session = require("express-session"); +require("ts-node/register/transpile-only"); +const config = require("../src/config").default; +const File = require("../src/core/AnonymizedFile").default; +const { AnonymizeTransformer } = require("../src/core/anonymize-utils"); +const got = require("got"); + +// connect-redis implements touch(), so every request that carries a session +// cookie goes through express-session's split write: all but the last body +// byte is written at once and the last byte follows the asynchronous touch. +class TouchingStore extends session.MemoryStore { + touch(sid, sess, callback) { + setTimeout(() => super.touch(sid, sess, callback), 20); + } +} + +const listen = (handler) => new Promise((resolve) => { + const server = http.createServer(handler); + server.listen(0, "127.0.0.1", () => resolve(server)); +}); +const close = (server) => new Promise((resolve) => server.close(resolve)); + +describe("streamer error responses with a session cookie", function () { + this.timeout(10000); + let old, streamer, api, base; + beforeEach(async () => { + old = { ...config }; + streamer = await listen((req, res) => { + req.resume(); + res.writeHead(404, { "content-type": "application/json" }); + res.end(JSON.stringify({ error: "repo_not_found" })); + }); + Object.assign(config, { + STREAMER_ENTRYPOINT: `http://127.0.0.1:${streamer.address().port}/`, + SHARED_CACHE_ENABLED: false, + }); + const app = express(); + app.use(session({ secret: "test", store: new TouchingStore(), resave: false, + saveUninitialized: false, rolling: true })); + app.get("/login", (req, res) => { req.session.visited = true; res.end("ok"); }); + app.get("/file", async (_req, res) => { + const file = new File({ repository: { + repoId: "anon", owner: { id: "507f1f77bcf86cd799439011" }, options: { terms: [] }, + model: { _id: "507f1f77bcf86cd799439012", source: { repositoryName: "owner/gone" } }, + getToken: async () => "token", + generateAnonymizeTransformer: (filePath) => new AnonymizeTransformer({ terms: [], filePath }), + }, anonymizedPath: "README.md" }); + file._file = { name: "README.md", path: "", sha: "sha", size: 10 }; + await file.send(res); + }); + api = await new Promise((resolve) => { const s = app.listen(0, "127.0.0.1", () => resolve(s)); }); + base = `http://127.0.0.1:${api.address().port}`; + }); + afterEach(async () => { + await close(api); + await close(streamer); + Object.assign(config, old); + }); + + it("delivers the whole 404 body instead of cutting the connection", async () => { + const login = await got(`${base}/login`, { retry: 0 }); + const cookie = login.headers["set-cookie"].map((value) => value.split(";")[0]).join("; "); + const response = await got(`${base}/file`, { headers: { cookie }, throwHttpErrors: false, retry: 0 }); + assert.equal(response.statusCode, 404); + assert.equal(response.body, JSON.stringify({ error: "repo_not_found" })); + }); +}); diff --git a/test/streamer-failure-evidence.test.js b/test/streamer-failure-evidence.test.js index fafafa5..c1fcdf3 100644 --- a/test/streamer-failure-evidence.test.js +++ b/test/streamer-failure-evidence.test.js @@ -1,7 +1,7 @@ const {expect}=require('chai'); -const {setTimeout}=require('node:timers'); const express=require('express'); const http=require('node:http'); +const {setTimeout}=require('node:timers'); const {Readable}=require('node:stream'); require('ts-node/register/transpile-only'); const {monitorRequests,RequestMetrics}=require('../src/core/request-monitoring'); diff --git a/test/thrown-error-codes.test.js b/test/thrown-error-codes.test.js new file mode 100644 index 0000000..5b9b0d7 --- /dev/null +++ b/test/thrown-error-codes.test.js @@ -0,0 +1,66 @@ +const { strict: assert } = require("node:assert"); +const fs = require("node:fs"); +const path = require("node:path"); +const ts = require("typescript"); +require("ts-node/register/transpile-only"); +const { logRecord, LOG_ERROR_CODES } = require("../src/core/log-record"); +const { serializeError } = require("../src/core/logger"); +const { billingError } = require("../src/core/billing/config"); +const { consumeFlow } = require("../src/server/routes/github-app"); + +const root = path.join(__dirname, ".."); +const vrl = fs.readFileSync(path.join(root, "deploy/logging/sanitize.vrl"), "utf8"); +const collectorCodes = new Set(JSON.parse(vrl.match(/if includes\((\[.*?\]), record\.errorCode\)/)[1])); + +// Independent of the generator: string codes passed straight to the error +// factories anywhere under src/. +function thrownCodes() { + const codes = new Map(); + const literals = (node, file) => { + if (!node) return; + if (ts.isStringLiteralLike(node)) { if (/^[A-Za-z][A-Za-z0-9]*(?:_[A-Za-z0-9]+)+$/.test(node.text)) codes.set(node.text, file); } + else if (ts.isConditionalExpression(node)) { literals(node.whenTrue, file); literals(node.whenFalse, file); } + else if (ts.isParenthesizedExpression(node)) literals(node.expression, file); + }; + const walk = (dir) => { + for (const entry of fs.readdirSync(dir, { withFileTypes: true })) { + const file = path.join(dir, entry.name); + if (entry.isDirectory()) { walk(file); continue; } + if (!file.endsWith(".ts") || file.endsWith(".d.ts")) continue; + const source = ts.createSourceFile(file, fs.readFileSync(file, "utf8"), ts.ScriptTarget.Latest, true); + (function visit(node) { + if ((ts.isNewExpression(node) || ts.isCallExpression(node)) && ts.isIdentifier(node.expression) && + ["AnonymousError", "billingError", "appError"].includes(node.expression.text) && node.arguments?.length) { + literals(node.arguments[0], path.relative(root, file)); + } + ts.forEachChild(node, visit); + })(source); + } + }; + walk(path.join(root, "src")); + return codes; +} + +describe("thrown error codes reach the logs", () => { + it("keeps the billing expiration and GitHub App state codes", () => { + const billing = logRecord("warn", "route", [serializeError(billingError("invalid_billing_expiration"))]); + assert.equal(billing.errorCode, "invalid_billing_expiration"); + let state; + try { consumeFlow(undefined, "state"); } catch (error) { state = error; } + assert.equal(state.message, "invalid_auth_state"); + assert.equal(logRecord("warn", "route", [serializeError(state)]).errorCode, "invalid_auth_state"); + for (const code of ["invalid_billing_expiration", "invalid_auth_state", "streamer_unreachable"]) { + assert.ok(collectorCodes.has(code), `${code} is missing from sanitize.vrl`); + } + }); + + it("allowlists every code passed to an error factory", () => { + const missing = [...thrownCodes()].filter(([code]) => !LOG_ERROR_CODES.has(code) || !collectorCodes.has(code)) + .map(([code, file]) => `${code} (${file})`); + assert.deepEqual(missing, [], "run node scripts/generate-log-diagnostics.js"); + }); + + it("lets the collector keep every code the logger emits", () => { + assert.deepEqual([...LOG_ERROR_CODES].filter((code) => !collectorCodes.has(code)), []); + }); +});