@capgo/cli
Version:
A CLI to upload to capgo servers
302 lines • 1.43 MB
JavaScript
import{createRequire as am}from"node:module";var im=Object.create;var{getPrototypeOf:cm,defineProperty:S9,getOwnPropertyNames:uV,getOwnPropertyDescriptor:pm}=Object,gV=Object.prototype.hasOwnProperty;function xV(D){return this[D]}var nm,rm,j$=(D,$,J)=>{var X=D!=null&&typeof D==="object";if(X){var Y=$?nm??=new WeakMap:rm??=new WeakMap,Q=Y.get(D);if(Q)return Q}J=D!=null?im(cm(D)):{};let U=$||!D||!D.__esModule?S9(J,"default",{value:D,enumerable:!0}):J;for(let F of uV(D))if(!gV.call(U,F))S9(U,F,{get:xV.bind(D,F),enumerable:!0});if(X)Y.set(D,U);return U},e6=(D)=>{var $=(_V??=new WeakMap).get(D),J;if($)return $;if($=S9({},"__esModule",{value:!0}),D&&typeof D==="object"||typeof D==="function"){for(var X of uV(D))if(!gV.call($,X))S9($,X,{get:xV.bind(D,X),enumerable:!(J=pm(D,X))||J.enumerable})}return _V.set(D,$),$},_V,k=(D,$)=>()=>($||D(($={exports:{}}).exports,$),$.exports);var tm=(D)=>D;function om(D,$){this[D]=tm.bind(null,$)}var y0=(D,$)=>{for(var J in $)S9(D,J,{get:$[J],enumerable:!0,configurable:!0,set:om.bind($,J)})};var S=(D,$)=>()=>(D&&($=D(D=0)),$);var PID=(D)=>Promise.all(D),XD=am(import.meta.url);var o$;var I8=S(()=>{o$={name:"@capgo/cli",type:"module",version:"8.90.0",description:"A CLI to upload to capgo servers",author:"Martin martin@capgo.app",license:"Apache 2.0",homepage:"https://github.com/Cap-go/capgo/tree/main/cli#readme",repository:{type:"git",url:"https://github.com/Cap-go/capgo.app",directory:"cli"},bugs:{url:"https://github.com/Cap-go/capgo/issues"},keywords:["appflow alternative","ionic","capacitor","auto update","live update","capgo","cli","upload","capgo-cli","sdk","tanstack-intent"],exports:{".":{import:"./dist/index.js",require:"./dist/index.js"},"./sdk":{types:"./dist/src/sdk.d.ts",import:"./dist/src/sdk.js"}},main:"dist/index.js",types:"dist/src/index.d.ts",bin:{capgo:"dist/index.js"},files:["!skills/_artifacts","dist","skills"],engines:{npm:">=8.0.0",node:">=20.0.0"},scripts:{build:"tsc && bun build.mjs",dev:"NODE_ENV=development ncc build","no-debug":"node dist/index.js","dev-build":"SUPA_DB=development ncc build",pack:"pkg",types:"bunx --bun supabase gen types typescript --project-id=xvwzpoazmxkqosrdewyv > src/types/supabase.types.ts",typecheck:"tsgo --project tsconfig.tsgo.json --noEmit",lint:"bun run lint:ox","lint:ox":"oxlint --config ../.oxlintrc.json src","lint:fix":"oxlint --config ../.oxlintrc.json --fix src","check-posix-paths":"node test/check-posix-paths.js","generate-docs":"node dist/index.js generate-docs README.md","test:notify-app-ready-background":"bun test ./test/test-notify-app-ready-background.mjs ./test/test-background-check-shutdown.mjs","test:bundle":"bun test/test-bundle.mjs","test:bundle-validation":"bun test test/bundle/","test:prescan":"bun test test/prescan/","test:functional":"bun test/test-functional.mjs","test:semver":"bun test/test-semver-validation.mjs","test:version-edge-cases":"bun test/test-version-validation.mjs","test:regex":"bun test/test-regex-validation.mjs","test:upload":"bun test/test-upload-validation.mjs","test:fail-on-incompatible":"bun test/test-fail-on-incompatible.mjs","test:native-dependencies":"bun test/test-native-dependencies.mjs && bun test/test-get-remote-dependencies.mjs","test:package-json-guard":"bun test/test-package-json-guard.mjs","test:credentials":"bun test/test-credentials.mjs","test:credentials-export":"bun test/test-credentials-export.mjs","test:asc-key-protocol":"bun test/test-asc-key-protocol.mjs","test:credentials-validation":"bun test/test-credentials-validation.mjs","test:android-service-account-validation":"bun test/test-android-service-account-validation.mjs","test:build-zip-filter":"bun test/test-build-zip-filter.mjs","test:checksum":"bun test/test-checksum-algorithm.mjs","test:build-needed":"bun test/test-build-needed.mjs","test:cli-help":"bun test/test-cli-help.mjs","test:build-cache-payload":"bun test/test-build-cache-payload.mjs","test:build-cancellation":"bun test/test-build-cancellation.mjs","test:ci-prompts":"bun test/test-ci-prompts.mjs","test:capgo-app-id-prompt":"bun test/test-capgo-app-id-prompt.mjs","test:ci-secrets":"bun test/test-ci-secrets.mjs","test:android-onboarding-progress":"bun test/test-android-onboarding-progress.mjs && bun test/test-android-select-guard.mjs","test:android-keystore-action":"bun test/test-android-keystore-action.mjs","test:android-google-play-action":"bun test/test-android-google-play-action.mjs","test:onboarding-telemetry":"bun test/test-onboarding-telemetry.mjs","test:v2-event-migration":"bun test/test-v2-event-migration.mjs","test:analytics":"bun test/test-analytics.mjs","test:cli-headers":"bun test/test-cli-headers.mjs","test:min-cli-version":"bun test/test-min-cli-version.mjs","test:authenticated-command-invocation":"bun test/test-authenticated-command-invocation.mjs","test:analytics-error-category":"bun test/test-analytics-error-category.mjs","test:analytics-org-resolver":"bun test/test-analytics-org-resolver.mjs","test:supabase-perf":"bun test/test-supabase-perf.mjs","test:preview-qr":"bun test/test-preview-qr.mjs","test:bundle-pages":"bun test test/test-bundle-pages.test.ts","test:mcp-analytics":"bun test/test-mcp-analytics.mjs","test:mcp-instructions":"bun test/test-mcp-instructions.mjs","test:mcp-stdout-guard":"bun test/test-mcp-stdout-guard.mjs","test:mcp-platform-select":"bun test/test-mcp-platform-select.mjs","test:mcp-explain-scopes":"bun test/test-mcp-explain-scopes.mjs","test:mcp-oauth-reopen":"bun test/test-mcp-oauth-reopen.mjs","test:mcp-broker-oauth":"bun test/test-mcp-broker-oauth.mjs","test:mcp-broker-session":"bun test/test-mcp-broker-session.mjs","test:mcp-credentials-manage":"bun test/test-mcp-credentials-manage.mjs","test:mcp-resume-prompt":"bun test/test-mcp-resume-prompt.mjs","test:mcp-build-job":"bun test/test-mcp-build-job.mjs","test:mcp-build-tools":"bun test/test-mcp-build-tools.mjs","test:app-created-source":"bun test/test-app-created-source.mjs","test:app-add-exists":"bun test/test-app-add-exists.mjs","test:app-add-getting-started":"bun test/test-app-add-getting-started.mjs","test:app-list-output-text":"bun test/test-app-list-output-text.mjs","test:app-todo":"bun test/test-app-todo.mjs && bun test/test-builder-only-checklist.mjs && bun test/test-builder-only-setup.mjs && bun test/test-app-todo-lists.mjs && bun test/test-app-todo-tabs.mjs && bun test/test-app-todo-command.mjs && node test/test-app-todo-interactive.mjs","test:doctor-analytics":"bun test/test-doctor-analytics.mjs","test:posthog-exception":"bun test/test-posthog-exception.mjs","test:cli-recovery":"bun test/test-cli-recovery.mjs","test:create-supabase-client":"bun test/test-create-supabase-client.mjs","test:onboarding-recovery":"bun test/test-onboarding-recovery.mjs","test:onboarding-progress":"bun test/test-onboarding-progress.mjs","test:onboarding-run-targets":"bun test/test-onboarding-run-targets.mjs","test:run-device-command":"bun test/test-run-device-command.mjs","test:init-app-conflict":"bun test/test-init-app-conflict.mjs","test:channel-add-exists":"bun test/test-channel-add-exists.mjs","test:wait-log":"bun test/test-wait-log.mjs","test:init-guardrails":"bun test/test-init-guardrails.mjs","test:init-upload-recovery":"bun test/test-init-upload-error-gate.mjs && bun test/test-init-upload-monorepo-recovery.mjs","test:init-replay":"bun test/test-init-replay.mjs","test:init-telemetry":"bun test/test-init-telemetry.mjs","test:capacitor-config-target":"bun test/test-capacitor-config-target.mjs","test:builder-app-id-config":"bun test/test-builder-app-id-config.mjs","test:capacitor-config-typescript7":"bun test/test-capacitor-config-typescript7.mjs","test:capacitor-config-native-import":"bun test/test-capacitor-config-native-import.mjs","test:cli-user-error-config":"bun test/test-cli-user-error-config.mjs","test:cordova-upload-mode":"bun test/test-cordova-upload-mode.mjs","test:init-monorepo-targeting":"bun run test:capacitor-config-target && bun run test:builder-app-id-config && bun run test:capacitor-config-typescript7 && bun run test:capacitor-config-native-import && bun run test:cli-user-error-config && bun test/test-init-monorepo-targeting.mjs","test:prompt-preferences":"bun test/test-prompt-preferences.mjs","test:esm-sdk":"node test/test-sdk-esm.mjs","test:auth-session":"bun test/test-auth-session.mjs","test:mcp":"node test/test-mcp.mjs","test:mcp-no-key-handshake":"node test/test-mcp-no-key-handshake.mjs","test:version-detection":"node test/test-get-installed-version.mjs","test:version-detection:setup":"./test/fixtures/setup-test-projects.sh","test:platform-paths":"bun test/test-platform-paths.mjs","test:project-type-detection":"bun test/test-project-type-detection.mjs","test:payload-split":"bun test/test-payload-split.mjs && bun test/test-build-env.mjs","test:macos-signing":"bun test/test-macos-signing.mjs","test:helper-dce":"bash scripts/check-helper-dce.sh","test:apple-api-import-helpers":"bun test/test-apple-api-import-helpers.mjs","test:apple-api-verify-key":"bun test/test-apple-api-verify-key.mjs","test:bundle-id-detector":"bun test/test-bundle-id-detector.mjs","test:apple-api-app-list":"bun test/test-apple-api-app-list.mjs","test:apple-api-cert-create":"bun test/test-apple-api-cert-create.mjs","test:app-verification":"bun test/test-app-verification.mjs","test:pbxproj-parser":"bun test/test-pbxproj-parser.mjs","test:self-update":"bun test/test-self-update.mjs","test:update-prompt":"bun test/test-update-prompt.mjs","test:android-tail-engine":"bun test/test-android-tail-engine.mjs","test:android-tail-render":"bun test/test-android-tail-render.mjs","test:android-tail-routing":"bun test/test-android-tail-routing.mjs","test:dev-gate-stripped":"bun test/test-dev-gate-stripped.mjs","test:frame-fit-ios-shared":"bun test/test-frame-fit-ios-shared.mjs","test:ios-confirm-app-id":"bun test/test-ios-confirm-app-id.mjs","test:ios-create-new":"bun test/test-ios-create-new.mjs","test:ios-certificate-action":"bun test/test-ios-certificate-action.mjs","test:ios-profile-action":"bun test/test-ios-profile-action.mjs","test:ios-credential-action":"bun test/test-ios-credential-action.mjs","test:ios-e2e":"bun test/test-ios-e2e.mjs","test:ios-flow-contract":"bun test/test-ios-flow-contract.mjs","test:ios-import-discovery":"bun test/test-ios-import-discovery.mjs","test:ios-import-export":"bun test/test-ios-import-export.mjs","test:ios-import-pickers":"bun test/test-ios-import-pickers.mjs","test:ios-import-recovery":"bun test/test-ios-import-recovery.mjs","test:ios-recovery":"bun test/test-ios-recovery.mjs","test:ios-resume":"bun test/test-ios-resume.mjs","test:ios-tail-handoff":"bun test/test-ios-tail-handoff.mjs","test:ios-tui-render":"bun test/test-ios-tui-render.mjs","test:p8-error":"bun test/test-p8-error.mjs","test:ios-tui-routing":"bun test/test-ios-tui-routing.mjs","test:ios-updater-sync-validation":"bun test/test-ios-updater-sync-validation.mjs","test:ios-verify-app":"bun test/test-ios-verify-app.mjs","test:ios-marketing-version":"bun test/test-ios-marketing-version.mjs","test:android-version":"bun test/test-android-version.mjs","test:platform-flow-contract":"bun test/test-platform-flow-contract.mjs","test:tail-engine-shared":"bun test/test-tail-engine-shared.mjs",test:"bun run build && bun scripts/run-test-suite.ts","test:run":"bun scripts/run-test-suite.ts","test:serial":"bun run build && bun scripts/run-test-suite.ts --serial","test:suite":"bun run test:helper-dce && bun run test:version-detection:setup && bun run test:bundle && bun run test:notify-app-ready-background && bun run test:bundle-validation && bun run test:functional && bun run test:semver && bun run test:auto-bump-version && bun run test:auto-bump-ai-diff && bun run test:version-edge-cases && bun run test:regex && bun run test:upload && bun run test:cordova-upload-mode && bun run test:fail-on-incompatible && bun run test:native-dependencies && bun run test:package-json-guard && bun run test:credentials && bun run test:credentials-export && bun run test:ios-provisioning-map && bun run test:ios-provisioning-command && bun run test:credentials-validation && bun run test:android-service-account-validation && bun run test:build-zip-filter && bun run test:checksum && bun run test:build-needed && bun run test:cli-help && bun run test:build-cache-payload && bun run test:build-cancellation && bun run test:ci-prompts && bun run test:capgo-app-id-prompt && bun run test:ci-secrets && bun run test:android-onboarding-progress && bun run test:android-keystore-action && bun run test:android-google-play-action && bun run test:onboarding-telemetry && bun run test:v2-event-migration && bun run test:analytics && bun run test:cli-headers && bun run test:min-cli-version && bun run test:authenticated-command-invocation && bun run test:analytics-error-category && bun run test:analytics-org-resolver && bun run test:supabase-perf && bun run test:preview-qr && bun run test:bundle-pages && bun run test:app-set-options && bun run test:settings-parity && bun run test:mcp-analytics && bun run test:mcp-instructions && bun run test:mcp-live-update-onboarding && bun run test:mcp-stdout-guard && bun run test:mcp-platform-select && bun run test:mcp-explain-scopes && bun run test:mcp-oauth-reopen && bun run test:mcp-broker-oauth && bun run test:mcp-broker-session && bun run test:mcp-credentials-manage && bun run test:mcp-resume-prompt && bun run test:mcp-build-job && bun run test:mcp-build-tools && bun run test:app-created-source && bun run test:app-add-exists && bun run test:app-add-getting-started && bun run test:app-list-output-text && bun run test:app-todo && bun run test:doctor-analytics && bun run test:posthog-exception && bun run test:cli-recovery && bun run test:create-supabase-client && bun run test:build-platform-selection && bun run test:builder-project-discovery && bun run test:builder-app-selection && bun run test:builder-login-gate && bun run test:onboarding-recovery && bun run test:onboarding-progress && bun run test:onboarding-run-targets && bun run test:run-device-command && bun run test:init-monorepo-targeting && bun run test:init-app-conflict && bun run test:channel-list && bun run test:channel-add-exists && bun run test:wait-log && bun run test:init-guardrails && bun run test:init-upload-recovery && bun run test:init-replay && bun run test:init-telemetry && bun run test:prompt-preferences && bun run test:esm-sdk && bun run test:mcp && bun run test:mcp-no-key-handshake && bun run test:auth-session && bun run test:version-detection && bun run test:platform-paths && bun run test:project-type-detection && bun run test:payload-split && bun run test:macos-signing && bun run test:asc-key-protocol && bun run test:apple-api-import-helpers && bun run test:apple-api-verify-key && bun run test:bundle-id-detector && bun run test:apple-api-app-list && bun run test:app-verification && bun run test:pbxproj-parser && bun run test:ai-log-capture && bun run test:ai-analyze-flow && bun run test:cicd-failure-help && bun run test:ai-sse-parser && bun run test:ai-render-markdown && bun run test:ai-stream-markdown && bun run test:ai-onboarding-mode && bun run test:ai-fit && bun run test:platform-layout && bun run test:frame-fit && bun run test:onboarding-min-size && bun run test:min-size-gate && bun run test:shell-size-gate && bun run test:build-log-sanitize && bun run test:build-output-viewport && bun run test:diff-viewer-viewport && bun run test:build-complete-exit && bun run test:ai-analyze-stream && bun run test:support-mailto && bun run test:support-redact && bun run test:support-internal-log && bun run test:support-help-menu && bun run test:support-contact && bun run test:support-upload-prompt && bun run test:support-bundle-files && bun run test:self-update && bun run test:update-prompt && bun run test:apple-api-cert-create && bun run test:android-tail-engine && bun run test:android-tail-render && bun run test:android-tail-routing && bun run test:dev-gate-stripped && bun run test:frame-fit-ios-shared && bun run test:ios-confirm-app-id && bun run test:ios-create-new && bun run test:ios-certificate-action && bun run test:ios-profile-action && bun run test:ios-credential-action && bun run test:ios-e2e && bun run test:ios-flow-contract && bun run test:ios-import-discovery && bun run test:ios-import-export && bun run test:ios-import-pickers && bun run test:ios-import-recovery && bun run test:ios-recovery && bun run test:ios-resume && bun run test:ios-tail-handoff && bun run test:ios-tui-render && bun run test:p8-error && bun run test:ios-tui-routing && bun run test:ios-updater-sync-validation && bun run test:ios-verify-app && bun run test:ios-marketing-version && bun run test:android-version && bun run test:platform-flow-contract && bun run test:tail-engine-shared && bun run test:prescan && bun run test:android-reporting-api && bun run test:android-gcp && bun run test:android-app-verification && bun run test:android-rename && bun run test:appflow-auth && bun run test:appflow-api-map && bun run test:appflow-validate && bun run test:appflow-flow && bun run test:appflow-gapfill && bun run test:appflow-engine && bun run test:appflow-tail && bun run test:appflow-fetch && bun run test:appflow-sa-decode && bun run test:app-permission-helper && bun run test:2fa-compliance-network && bun run test:organization-set-api-host && bun run test:trial-warning && bun run test:plan-validation && bun run test:setup-notices","test:build-platform-selection":"bun test/test-build-platform-selection.mjs","test:builder-project-discovery":"bun test/test-builder-project-discovery.mjs","test:builder-app-selection":"bun test/test-builder-app-selection.mjs","test:builder-login-gate":"bun test/test-builder-login-gate.mjs","test:ai-log-capture":"bun test/test-ai-log-capture.mjs","test:ai-analyze-flow":"bun test/test-ai-analyze-flow.mjs","test:cicd-failure-help":"bun test/test-cicd-failure-help.mjs","test:ai-analyze-stream":"bun test/test-ai-analyze-stream.mjs","test:ai-sse-parser":"bun test/test-ai-sse-parser.mjs","test:ai-render-markdown":"bun test/test-ai-render-markdown.mjs","test:ai-onboarding-mode":"bun test/test-ai-onboarding-mode.mjs","test:ai-fit":"bun test/test-ai-fit.mjs","test:platform-layout":"bun test/test-platform-layout.mjs","test:frame-fit":"bun test/run-frame-fit.mjs","test:onboarding-min-size":"bun test/test-onboarding-min-size.mjs","test:min-size-gate":"bun test/test-min-size-gate.mjs","test:shell-size-gate":"bun test/test-shell-size-gate.mjs","test:build-log-sanitize":"bun test/test-build-log-sanitize.mjs","test:build-output-viewport":"bun test/test-build-output-viewport.mjs","test:diff-viewer-viewport":"bun test/test-diff-viewer-viewport.mjs","test:build-complete-exit":"bun test/test-build-complete-exit.mjs","test:ai-stream-markdown":"bun test/test-ai-stream-markdown.mjs","test:support-mailto":"bun test/test-support-mailto.mjs","test:support-redact":"bun test/test-support-redact.mjs","test:support-internal-log":"bun test/test-support-internal-log.mjs","test:support-help-menu":"bun test/test-support-help-menu.mjs","test:support-contact":"bun test/test-support-contact.mjs","test:support-upload-prompt":"bun test/test-support-upload-prompt.mjs","test:support-bundle-files":"bun test/test-support-bundle-files.mjs","test:mcp-live-update-onboarding":"bun test/test-mcp-live-update-onboarding.mjs","test:app-set-options":"bun test/test-app-set-options.mjs && bun test/test-app-list-options.mjs","test:settings-parity":"bun test/test-settings-parity.mjs","test:android-reporting-api":"bun test/test-android-reporting-api.mjs","test:android-gcp":"bun test/test-android-gcp.mjs","test:android-app-verification":"bun test/test-android-app-verification.mjs","test:android-rename":"bun test/test-android-rename.mjs","test:appflow-auth":"bun test/test-appflow-auth.mjs","test:appflow-api-map":"bun test/test-appflow-api-map.mjs","test:appflow-validate":"bun test/test-appflow-validate.mjs","test:appflow-flow":"bun test/test-appflow-flow.mjs","test:appflow-gapfill":"bun test/test-appflow-gapfill.mjs","test:appflow-engine":"bun test/test-appflow-engine.mjs","test:appflow-tail":"bun test/test-appflow-tail.mjs","test:appflow-fetch":"bun test/test-appflow-fetch.mjs","test:appflow-sa-decode":"bun test/test-appflow-sa-decode.mjs","test:app-permission-helper":"bun test/test-app-permission-helper.mjs","test:2fa-compliance-network":"bun test/test-2fa-compliance-network.mjs","test:organization-set-api-host":"bun test/test-organization-set-api-host.mjs","test:trial-warning":"bun test/test-trial-warning.mjs","test:plan-validation":"bun test/test-plan-validation.mjs","test:auto-bump-version":"bun test/test-auto-bump-version.mjs","test:auto-bump-ai-diff":"bun test/test-auto-bump-ai-diff.mjs","test:ios-provisioning-map":"bun test/test-ios-provisioning-map.mjs","test:ios-provisioning-command":"bun test/test-ios-provisioning-command.mjs","test:channel-list":"bun test/test-channel-list.mjs","test:setup-notices":"bun test ./test/test-setup-notices.mjs ./test/test-setup-progress-request.mjs ./test/test-setup-notice-background.mjs"},dependencies:{"@inkjs/ui":"^2.0.0","@manypkg/tools":"^2.1.2","@rrweb/types":"^2.1.1","@standard-schema/spec":"^1.1.0","@xmldom/xmldom":"^0.9.10","@xterm/addon-serialize":"^0.14.0","@xterm/headless":"^6.0.0","agent-cli-detector":"^0.1.6","happy-dom":"^20.11.0",ink:"^7.1.1","ink-spinner":"^5.0.0",jsonwebtoken:"^9.0.3","node-forge":"^1.4.0",qrcode:"^1.5.4",react:"^19.2.8","rrweb-snapshot":"^2.1.1","string-width":"^8.2.2",typescript:"6.0.3",zod:"^4.5.4"},optionalDependencies:{"@capgo/cli-helper-darwin-arm64":"^1.1.1","@capgo/cli-helper-darwin-x64":"^1.1.1","node-pty":"^1.1.0"},devDependencies:{"@antfu/eslint-config":"^9.2.0","@bradenmacdonald/s3-lite-client":"npm:@jsr/bradenmacdonald__s3-lite-client@0.9.6","@capacitor/cli":"^8.4.2","@capgo/find-package-manager":"^0.0.18","@clack/prompts":"^1.7.0","@modelcontextprotocol/client":"^2.0.0-beta.5","@modelcontextprotocol/server":"^2.0.0-beta.5","@sauber/table":"npm:@jsr/sauber__table","@sinonjs/fake-timers":"15.4.0","@std/semver":"npm:@jsr/std__semver@1.0.8","@supabase/supabase-js":"^2.110.8","@tanstack/intent":"^0.3.6","@types/adm-zip":"^0.5.8","@types/jsonwebtoken":"^9.0.10","@types/node":"^26.1.1","@types/node-forge":"^1.3.14","@types/prettyjson":"^0.0.33","@types/qrcode":"^1.5.6","@types/react":"^19.2.17","@types/tmp":"^0.2.6","@types/ws":"^8.18.1","@typescript/native-preview":"7.0.0-dev.20260707.2","@vercel/ncc":"^0.44.1","@vue/compiler-dom":"3.5.40","@xterm/headless":"^6.0.0","adm-zip":"^0.6.0","ci-info":"^4.4.0",commander:"^15.0.0",eslint:"^10.7.0","git-format-staged":"4.0.2",husky:"^9.1.7","is-wsl":"^3.1.1",micromatch:"^4.0.8",open:"^11.0.0",oxlint:"^1.75.0",partysocket:"^1.3.0",prettyjson:"^1.2.5",tmp:"^0.2.7","tus-js-client":"^4.3.1",ws:"^8.21.1"}}});var xD;var p1=S(()=>{xD=class xD extends Error{context;constructor(D,$,J){super(D,J!==void 0?{cause:J}:void 0);this.name="CliUserError",this.context=$}}});import{platform as em}from"node:os";import{version as Dl}from"node:process";function hV(D){yV=D}function Jl(D){for(let $=0;$<D.length;$++)if(D.charCodeAt($)>255)return!1;return!0}function fV(D){if(D.toLowerCase()==="x-capgo-log-token")return"Build log token is missing. Re-run the build command or pass a valid log token.";return"Capgo API key is missing. Run `npx -y @capgo/cli@latest login` or pass `--apikey`."}function Xl(D){if(D.toLowerCase()==="x-capgo-log-token")return"Build log token contains invalid characters (only ASCII is allowed). Re-run the build command to get a fresh token.";if(D.toLowerCase()==="authorization")return"Authorization header contains invalid characters (only ASCII is allowed). Check your Capgo API key or Supabase anon key configuration.";return"Capgo API key contains invalid characters (only ASCII is allowed). Copy the key from the Capgo dashboard."}function sU(D,$){if($===void 0||$===null){if(aU.has(D.toLowerCase()))throw new xD(fV(D));throw new xD(`HTTP header "${D}" is missing or invalid.`)}if(typeof $!=="string"){if(aU.has(D.toLowerCase()))throw new xD(fV(D));throw new xD(`HTTP header "${D}" is missing or invalid.`)}if(!Jl($)){if(aU.has(D.toLowerCase()))throw new xD(Xl(D));throw new xD(`HTTP header "${D}" contains invalid characters (only ASCII is allowed).`)}return $}function G6(D){let $={capgo_api:$l,"x-cli-version":o$.version,"x-cli-command":yV,"x-cli-node":Dl,"x-cli-os":em()};if(D)for(let[J,X]of Object.entries(D))$[J]=sU(J,X);return $}var $l="2025-10-01",yV="",aU;var S3=S(()=>{I8();p1();aU=new Set(["authorization","capgkey","x-capgo-log-token"])});import{existsSync as G$}from"fs";var C9=(D=".",$="unknown")=>{let J=`${D}/bun.lockb`,X=`${D}/bun.lock`,Y=`${D}/pnpm-lock.yaml`,Q=`${D}/shrinkwrap.yaml`,U=`${D}/yarn.lock`,F=`${D}/package-lock.json`,W=`${D}/npm-shrinkwrap.json`;if(G$(J)||G$(X))return"bun";if(G$(Y)||G$(Q))return"pnpm";if(G$(U))return"yarn";if(G$(F)||G$(W))return"npm";return $},C3=(D=C9(),$=!1)=>{switch(D){case"bun":return $?"bun install":"install";case"pnpm":return $?"pnpm install":"install";case"yarn":return $?"yarn install":"install";case"npm":return $?"npm install":"install";case"unknown":return $?"unknown unknown":"unknown";default:return $?"npm install":"install"}},mV=(D=".",$="npx")=>{let J=`${D}/bun.lockb`,X=`${D}/bun.lock`,Y=`${D}/pnpm-lock.yaml`,Q=`${D}/shrinkwrap.yaml`,U=`${D}/yarn.lock`,F=`${D}/package-lock.json`,W=`${D}/npm-shrinkwrap.json`;if(G$(J)||G$(X))return"bunx";if(G$(Y)||G$(Q))return"pnpm exec";if(G$(U))return"yarn dlx";if(G$(F)||G$(W))return"npx";return $};var lV=()=>{};var dV,iV=(D)=>{return D===12288||D>=65281&&D<=65376||D>=65504&&D<=65510},cV=(D)=>{return D===8987||D===9001||D>=12272&&D<=12287||D>=12289&&D<=12350||D>=12441&&D<=12543||D>=12549&&D<=12591||D>=12593&&D<=12686||D>=12688&&D<=12771||D>=12783&&D<=12830||D>=12832&&D<=12871||D>=12880&&D<=19903||D>=65040&&D<=65049||D>=65072&&D<=65106||D>=65108&&D<=65126||D>=65128&&D<=65131||D>=127488&&D<=127490||D>=127504&&D<=127547||D>=127552&&D<=127560||D>=131072&&D<=196605||D>=196608&&D<=262141};var pV=S(()=>{dV=(()=>{let D=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;return($)=>{let J=0;D.lastIndex=0;while(D.test($))J+=1;return $.length-J}})()});var Yl,Ql,nV,Ul,rV,Fl,Wl,Kl,tV=(D,$={},J={})=>{let X=$.limit??1/0,Y=$.ellipsis??"",Q=$?.ellipsisWidth??(Y?tV(Y,Kl,J).width:0),U=0,F=J.controlWidth??0,W=J.tabWidth??8,K=J.emojiWidth??2,q=2,G=J.regularWidth??1,Z=J.wideWidth??2,H=[[Fl,G],[Yl,0],[Ql,F],[Ul,W],[rV,K],[nV,Z]],z=0,I=0,B=D.length,N=0,V=!1,O=B,j=Math.max(0,X-Q),v=0,A=0,C=0,u=0;D:while(!0){if(A>v||I>=B&&I>z){let _=D.slice(v,A)||D.slice(z,I);N=0;for(let y of _.replaceAll(Wl,"")){let E=y.codePointAt(0)||0;if(iV(E))u=2;else if(cV(E))u=Z;else u=G;if(C+u>j)O=Math.min(O,Math.max(v,z)+N);if(C+u>X){V=!0;break D}N+=y.length,C+=u}v=A=0}if(I>=B)break D;for(let _=0,y=H.length;_<y;_++){let[E,d]=H[_];if(E.lastIndex=I,E.test(D)){if(N=E===nV?dV(D.slice(I,E.lastIndex)):E===rV?1:E.lastIndex-I,u=N*d,C+u>j)O=Math.min(O,I+Math.floor((j-C)/d));if(C+u>X){V=!0;break D}C+=u,v=z,A=I,I=z=E.lastIndex;continue D}}I+=1}return{width:V?j:C,index:V?O:B,truncated:V,ellipsed:V&&X>=Q}},oV;var aV=S(()=>{pV();Yl=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]|\u001b\]8;[^;]*;.*?(?:\u0007|\u001b\u005c)/y,Ql=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,nV=/(?:(?![\uFF61-\uFF9F\uFF00-\uFFEF])[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Tangut}]){1,1000}/yu,Ul=/\t{1,1000}/y,rV=/[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/yu,Fl=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,Wl=/\p{M}+/gu,Kl={limit:1/0,ellipsis:""},oV=tV});var ql,Gl=(D,$={})=>{return oV(D,ql,$).width},n0;var eU=S(()=>{aV();ql={limit:1/0,ellipsis:"",ellipsisWidth:0},n0=Gl});function T6(D,$,J){return String(D).normalize().split(Bl).map((X)=>Il(X,$,J)).join(`
`)}var k3="\x1B",Jw="",Zl=39,$F="\x07",Xw="[",zl="]",Yw="m",JF,sV,eV=(D)=>{if(D>=30&&D<=37)return 39;if(D>=90&&D<=97)return 39;if(D>=40&&D<=47)return 49;if(D>=100&&D<=107)return 49;if(D===1||D===2)return 22;if(D===3)return 23;if(D===4)return 24;if(D===7)return 27;if(D===8)return 28;if(D===9)return 29;if(D===0)return 0;return},Dw=(D)=>`${k3}${Xw}${D}${Yw}`,$w=(D)=>`${k3}${JF}${D}${$F}`,DF=(D,$,J)=>{let X=$[Symbol.iterator](),Y=!1,Q=!1,U=D.at(-1),F=U===void 0?0:n0(U),W=X.next(),K=X.next(),q=0;while(!W.done){let G=W.value,Z=n0(G);if(F+Z<=J)D[D.length-1]+=G;else D.push(G),F=0;if(G===k3||G===Jw)Y=!0,Q=$.startsWith(JF,q+1);if(Y){if(Q){if(G===$F)Y=!1,Q=!1}else if(G===Yw)Y=!1}else if(F+=Z,F===J&&!K.done)D.push(""),F=0;W=K,K=X.next(),q+=G.length}if(U=D.at(-1),!F&&U!==void 0&&U.length&&D.length>1)D[D.length-2]+=D.pop()},Hl=(D)=>{let $=D.split(" "),J=$.length;while(J){if(n0($[J-1]))break;J--}if(J===$.length)return D;return $.slice(0,J).join(" ")+$.slice(J).join("")},Il=(D,$,J={})=>{if(J.trim!==!1&&D.trim()==="")return"";let X="",Y,Q,U=D.split(" "),F=[""],W=0;for(let G=0;G<U.length;G++){let Z=U[G];if(J.trim!==!1){let z=F.at(-1)??"",I=z.trimStart();if(z.length!==I.length)F[F.length-1]=I,W=n0(I)}if(G!==0){if(W>=$&&(J.wordWrap===!1||J.trim===!1))F.push(""),W=0;if(W||J.trim===!1)F[F.length-1]+=" ",W++}let H=n0(Z);if(J.hard&&H>$){let z=$-W,I=1+Math.floor((H-z-1)/$);if(Math.floor((H-1)/$)<I)F.push("");DF(F,Z,$),W=n0(F.at(-1)??"");continue}if(W+H>$&&W&&H){if(J.wordWrap===!1&&W<$){DF(F,Z,$),W=n0(F.at(-1)??"");continue}F.push(""),W=0}if(W+H>$&&J.wordWrap===!1){DF(F,Z,$),W=n0(F.at(-1)??"");continue}F[F.length-1]+=Z,W+=H}if(J.trim!==!1)F=F.map((G)=>Hl(G));let K=F.join(`
`),q=!1;for(let G=0;G<K.length;G++){let Z=K[G];if(X+=Z,!q){if(q=Z>="\uD800"&&Z<="\uDBFF",q)continue}else q=!1;if(Z===k3||Z===Jw){sV.lastIndex=G+1;let z=sV.exec(K)?.groups;if(z?.code!==void 0){let I=Number.parseFloat(z.code);Y=I===Zl?void 0:I}else if(z?.uri!==void 0)Q=z.uri.length===0?void 0:z.uri}if(K[G+1]===`
`){if(Q)X+=$w("");let H=Y?eV(Y):void 0;if(Y&&H)X+=Dw(H)}else if(Z===`
`){if(Y&&eV(Y))X+=Dw(Y);if(Q)X+=$w(Q)}}return X},Bl;var XF=S(()=>{eU();JF=`${zl}8;;`,sV=new RegExp(`(?:\\${Xw}(?<code>\\d+)m|\\${JF}(?<uri>.*)${$F})`,"y"),Bl=/\r?\n/});var QF=k((rID,Qw)=>{var YF={to(D,$){if(!$)return`\x1B[${D+1}G`;return`\x1B[${$+1};${D+1}H`},move(D,$){let J="";if(D<0)J+=`\x1B[${-D}D`;else if(D>0)J+=`\x1B[${D}C`;if($<0)J+=`\x1B[${-$}A`;else if($>0)J+=`\x1B[${$}B`;return J},up:(D=1)=>`\x1B[${D}A`,down:(D=1)=>`\x1B[${D}B`,forward:(D=1)=>`\x1B[${D}C`,backward:(D=1)=>`\x1B[${D}D`,nextLine:(D=1)=>"\x1B[E".repeat(D),prevLine:(D=1)=>"\x1B[F".repeat(D),left:"\x1B[G",hide:"\x1B[?25l",show:"\x1B[?25h",save:"\x1B7",restore:"\x1B8"},Ol={up:(D=1)=>"\x1B[S".repeat(D),down:(D=1)=>"\x1B[T".repeat(D)},Nl={screen:"\x1B[2J",up:(D=1)=>"\x1B[1J".repeat(D),down:(D=1)=>"\x1B[J".repeat(D),line:"\x1B[2K",lineEnd:"\x1B[K",lineStart:"\x1B[1K",lines(D){let $="";for(let J=0;J<D;J++)$+=this.line+(J<D-1?YF.up():"");if(D)$+=YF.left;return $}};Qw.exports={cursor:YF,scroll:Ol,erase:Nl,beep:"\x07"}});import{styleText as O8}from"node:util";import{stdout as KF,stdin as Kw}from"node:process";import*as D1 from"node:readline";import Vl from"node:readline";import{ReadStream as Uw}from"node:tty";function B8(D,$,J){if(!J.some((U)=>!U.disabled))return D;let X=D+$,Y=Math.max(J.length-1,0),Q=X<0?Y:X>Y?0:X;return J[Q]?.disabled?B8(Q,$<0?-1:1,J):Q}function _3(D,$,J,X){let Y=X.split(`
`),Q=0,U=D;for(let W of Y){if(U<=W.length)break;U-=W.length+1,Q++}for(Q=Math.max(0,Math.min(Y.length-1,Q+J)),U=Math.min(U,Y[Q].length)+$;U<0&&Q>0;)Q--,U+=Y[Q].length+1;for(;U>Y[Q].length&&Q<Y.length-1;)U-=Y[Q].length+1,Q++;U=Math.max(0,Math.min(Y[Q].length,U));let F=0;for(let W=0;W<Q;W++)F+=Y[W].length+1;return F+U}function qF(D,$){if(typeof D=="string")return O0.aliases.get(D)===$;for(let J of D)if(J!==void 0&&qF(J,$))return!0;return!1}function Ll(D,$){if(D===$)return;let J=D.split(`
`),X=$.split(`
`),Y=Math.max(J.length,X.length),Q=[];for(let U=0;U<Y;U++)J[U]!==X[U]&&Q.push(U);return{lines:Q,numLinesBefore:J.length,numLinesAfter:X.length,numLines:Y}}function n1(D){return D===FF}function u3(D,$){let J=D;J.isTTY&&J.setRawMode($)}function qw({input:D=Kw,output:$=KF,overwrite:J=!0,hideCursor:X=!0}={}){let Y=D1.createInterface({input:D,output:$,prompt:"",tabSize:1});D1.emitKeypressEvents(D,Y),D instanceof Uw&&D.isTTY&&D.setRawMode(!0);let Q=(U,{name:F,sequence:W})=>{let K=String(U);if(qF([K,F,W],"cancel")){X&&$.write(h0.cursor.show),process.exit(0);return}if(!J)return;D1.moveCursor($,F==="return"?0:-1,F==="return"?-1:0,()=>{D1.clearLine($,1,()=>{D.once("keypress",Q)})})};return X&&$.write(h0.cursor.hide),D.once("keypress",Q),()=>{D.off("keypress",Q),X&&$.write(h0.cursor.show),D instanceof Uw&&D.isTTY&&!Rl&&D.setRawMode(!1),Y.terminal=!1,Y.close()}}function _9(D,$,J,X=J,Y=J,Q){let U=k9(D??KF);return T6($,U-J.length,{hard:!0,trim:!1}).split(`
`).map((F,W,K)=>{let q=Q?Q(F,W):F;return W===0?`${X}${q}`:W===K.length-1?`${Y}${q}`:`${J}${q}`}).join(`
`)}function Gw(D,$){if("~standard"in D){let J=D["~standard"].validate($);if(J instanceof Promise)throw TypeError("Schema validation must be synchronous. Update `validate()` and remove any asynchronous logic.");return J.issues?.at(0)?.message}return D($)}class P6{input;output;_abortSignal;rl;opts;_render;_track=!1;_prevFrame="";_subscribers=new Map;_cursor=0;state="initial";error="";value;userInput="";constructor(D,$=!0){let{input:J=Kw,output:X=KF,render:Y,signal:Q,...U}=D;this.opts=U,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=Y.bind(this),this._track=$,this._abortSignal=Q,this.input=J,this.output=X}unsubscribe(){this._subscribers.clear()}setSubscriber(D,$){let J=this._subscribers.get(D)??[];J.push($),this._subscribers.set(D,J)}on(D,$){this.setSubscriber(D,{cb:$})}once(D,$){this.setSubscriber(D,{cb:$,once:!0})}emit(D,...$){let J=this._subscribers.get(D)??[],X=[];for(let Y of J)Y.cb(...$),Y.once&&X.push(()=>J.splice(J.indexOf(Y),1));for(let Y of X)Y()}prompt(){return new Promise((D)=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),D(FF);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close()},{once:!0})}this.rl=Vl.createInterface({input:this.input,tabSize:2,prompt:"",escapeCodeTimeout:50,terminal:!0}),this.rl.prompt(),this.opts.initialUserInput!==void 0&&this._setUserInput(this.opts.initialUserInput,!0),this.input.on("keypress",this.onKeypress),u3(this.input,!0),this.output.on("resize",this.render),this.render(),this.once("submit",()=>{this.output.write(h0.cursor.show),this.output.off("resize",this.render),u3(this.input,!1),D(this.value)}),this.once("cancel",()=>{this.output.write(h0.cursor.show),this.output.off("resize",this.render),u3(this.input,!1),D(FF)})})}_isActionKey(D,$){return D==="\t"}_shouldSubmit(D,$){return!0}_setValue(D){this.value=D,this.emit("value",this.value)}_setUserInput(D,$){this.userInput=D??"",this.emit("userInput",this.userInput),$&&this._track&&this.rl&&(this.rl.write(this.userInput),this._cursor=this.rl.cursor)}_clearUserInput(){this.rl?.write(null,{ctrl:!0,name:"u"}),this._setUserInput("")}onKeypress(D,$){if(this._track&&$.name!=="return"&&($.name&&this._isActionKey(D,$)&&this.rl?.write(null,{ctrl:!0,name:"h"}),this._cursor=this.rl?.cursor??0,this._setUserInput(this.rl?.line)),this.state==="error"&&(this.state="active"),$?.name&&(!this._track&&O0.aliases.has($.name)&&this.emit("cursor",O0.aliases.get($.name)),O0.actions.has($.name)&&this.emit("cursor",$.name)),D&&(D.toLowerCase()==="y"||D.toLowerCase()==="n")&&this.emit("confirm",D.toLowerCase()==="y"),this.emit("key",D,$),$?.name==="return"&&this._shouldSubmit(D,$)){if(this.opts.validate){let J=Gw(this.opts.validate,this.value);J&&(this.error=J instanceof Error?J.message:J,this.state="error",this.rl?.write(this.userInput))}this.state!=="error"&&(this.state="submit")}qF([D,$?.name,$?.sequence],"cancel")&&(this.state="cancel"),(this.state==="submit"||this.state==="cancel")&&this.emit("finalize"),this.render(),(this.state==="submit"||this.state==="cancel")&&this.close()}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write(`
`),u3(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let D=T6(this._prevFrame,process.stdout.columns,{hard:!0,trim:!1}).split(`
`).length-1;this.output.write(h0.cursor.move(-999,D*-1))}render(){let D=T6(this._render(this)??"",process.stdout.columns,{hard:!0,trim:!1});if(D!==this._prevFrame){if(this.state==="initial")this.output.write(h0.cursor.hide);else{let $=Ll(this._prevFrame,D),J=GF(this.output);if(this.restoreCursor(),$){let X=Math.max(0,$.numLinesAfter-J),Y=Math.max(0,$.numLinesBefore-J),Q=$.lines.find((U)=>U>=X);if(Q===void 0){this._prevFrame=D;return}if($.lines.length===1){this.output.write(h0.cursor.move(0,Q-Y)),this.output.write(h0.erase.lines(1));let U=D.split(`
`);this.output.write(U[Q]),this._prevFrame=D,this.output.write(h0.cursor.move(0,U.length-Q-1));return}else if($.lines.length>1){if(X<Y)Q=X;else{let F=Q-Y;F>0&&this.output.write(h0.cursor.move(0,F))}this.output.write(h0.erase.down());let U=D.split(`
`).slice(Q);this.output.write(U.join(`
`)),this._prevFrame=D;return}}this.output.write(h0.erase.down())}this.output.write(D),this.state==="initial"&&(this.state="active"),this._prevFrame=D}}}function Ml(D,$){if(D===void 0||$.length===0)return 0;let J=$.findIndex((X)=>X.value===D);return J!==-1?J:0}function Al(D,$){return($.label??String($.value)).toLowerCase().includes(D.toLowerCase())}function vl(D,$){if($)return D?$:$[0]}function Fw(D){return[...D].map(($)=>Tl[$])}function Pl(D){let $=new Intl.DateTimeFormat(D,{year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(new Date(2000,0,15)),J=[],X="/";for(let Y of $)Y.type==="literal"?X=Y.value.trim()||Y.value:(Y.type==="year"||Y.type==="month"||Y.type==="day")&&J.push({type:Y.type,len:Y.type==="year"?4:2});return{segments:J,separator:X}}function UF(D){return Number.parseInt((D||"0").replace(/_/g,"0"),10)||0}function g3(D){return{year:UF(D.year),month:UF(D.month),day:UF(D.day)}}function WF(D,$){return new Date(D||2001,$||1,0).getDate()}function Zw(D){let{year:$,month:J,day:X}=g3(D);if(!$||$<0||$>9999||!J||J<1||J>12||!X||X<1)return;let Y=new Date(Date.UTC($,J-1,X));if(!(Y.getUTCFullYear()!==$||Y.getUTCMonth()!==J-1||Y.getUTCDate()!==X))return{year:$,month:J,day:X}}function Ww(D){let $=Zw(D);return $?new Date(Date.UTC($.year,$.month-1,$.day)):void 0}function bl(D,$,J,X){let Y=J?{year:J.getUTCFullYear(),month:J.getUTCMonth()+1,day:J.getUTCDate()}:null,Q=X?{year:X.getUTCFullYear(),month:X.getUTCMonth()+1,day:X.getUTCDate()}:null;return D==="year"?{min:Y?.year??1,max:Q?.year??9999}:D==="month"?{min:Y&&$.year===Y.year?Y.month:1,max:Q&&$.year===Q.year?Q.month:12}:{min:Y&&$.year===Y.year&&$.month===Y.month?Y.day:1,max:Q&&$.year===Q.year&&$.month===Q.month?Q.day:WF($.year,$.month)}}var h0,wl,jl,O0,Rl,FF,k9=(D)=>("columns"in D)&&typeof D.columns=="number"?D.columns:80,GF=(D)=>("rows"in D)&&typeof D.rows=="number"?D.rows:20,El,ZF,Tl,zw,Sl,Cl,Hw,Iw,Bw,zF;var HF=S(()=>{XF();h0=j$(QF(),1);wl=["up","down","left","right","space","enter","cancel"],jl=["January","February","March","April","May","June","July","August","September","October","November","December"],O0={actions:new Set(wl),aliases:new Map([["k","up"],["j","down"],["h","left"],["l","right"],["\x03","cancel"],["escape","cancel"]]),messages:{cancel:"Canceled",error:"Something went wrong"},withGuide:!0,date:{monthNames:[...jl],messages:{required:"Please enter a valid date",invalidMonth:"There are only 12 months in a year",invalidDay:(D,$)=>`There are only ${D} days in ${$}`,afterMin:(D)=>`Date must be on or after ${D.toISOString().slice(0,10)}`,beforeMax:(D)=>`Date must be on or before ${D.toISOString().slice(0,10)}`}}};Rl=globalThis.process.platform.startsWith("win"),FF=Symbol("clack:cancel");El=class extends P6{filteredOptions;multiple;isNavigating=!1;selectedValues=[];focusedValue;#$=0;#Y="";#D;#Q;#F;get cursor(){return this.#$}get userInputWithCursor(){if(!this.userInput)return O8(["inverse","hidden"],"_");if(this._cursor>=this.userInput.length)return`${this.userInput}█`;let $=this.userInput.slice(0,this.cursor),J=this.userInput.slice(this.cursor,this.cursor+1),X=this.userInput.slice(this.cursor+1);return`${$}${O8("inverse",J)}${X}`}get options(){return typeof this.#Q=="function"?this.#Q():this.#Q}constructor($){super($),this.#Q=$.options,this.#F=$.placeholder;let J=this.options;this.filteredOptions=[...J],this.multiple=$.multiple===!0,this.#D=typeof $.options=="function"?$.filter:$.filter??Al;let X;if($.initialValue&&Array.isArray($.initialValue)?this.multiple?X=$.initialValue:X=$.initialValue.slice(0,1):!this.multiple&&this.options.length>0&&(X=[this.options[0]?.value]),X)for(let Y of X){let Q=J.findIndex((U)=>U.value===Y);Q!==-1&&(this.toggleSelected(Y),this.#$=Q)}this.focusedValue=this.options[this.#$]?.value,this.on("key",(Y,Q)=>this.#J(Y,Q)),this.on("userInput",(Y)=>this.#X(Y))}_isActionKey($,J){return $==="\t"||this.multiple&&this.isNavigating&&J.name==="space"&&$!==void 0&&$!==""}#J($,J){let X=J.name==="up",Y=J.name==="down",Q=J.name==="return",U=this.userInput===""||this.userInput==="\t",F=this.#F,W=this.options,K=F!==void 0&&F!==""&&W.some((q)=>!q.disabled&&(this.#D?this.#D(F,q):!0));if(J.name==="tab"&&U&&K){this.userInput==="\t"&&this._clearUserInput(),this._setUserInput(F,!0),this.isNavigating=!1;return}X||Y?(this.#$=B8(this.#$,X?-1:1,this.filteredOptions),this.focusedValue=this.filteredOptions[this.#$]?.value,this.multiple||(this.selectedValues=[this.focusedValue]),this.isNavigating=!0):Q?this.value=vl(this.multiple,this.selectedValues):this.multiple?this.focusedValue!==void 0&&(J.name==="tab"||this.isNavigating&&J.name==="space")?this.toggleSelected(this.focusedValue):this.isNavigating=!1:(this.focusedValue&&(this.selectedValues=[this.focusedValue]),this.isNavigating=!1)}deselectAll(){this.selectedValues=[]}toggleSelected($){this.filteredOptions.length!==0&&(this.multiple?this.selectedValues.includes($)?this.selectedValues=this.selectedValues.filter((J)=>J!==$):this.selectedValues=[...this.selectedValues,$]:this.selectedValues=[$])}#X($){if($!==this.#Y){this.#Y=$;let J=this.options;$&&this.#D?this.filteredOptions=J.filter((Q)=>this.#D?.($,Q)):this.filteredOptions=[...J];let X=Ml(this.focusedValue,this.filteredOptions);this.#$=B8(X,0,this.filteredOptions);let Y=this.filteredOptions[this.#$];Y&&!Y.disabled?this.focusedValue=Y.value:this.focusedValue=void 0,this.multiple||(this.focusedValue!==void 0?this.toggleSelected(this.focusedValue):this.deselectAll())}}};ZF=class ZF extends P6{get cursor(){return this.value?0:1}get _value(){return this.cursor===0}constructor(D){super(D,!1),this.value=!!D.initialValue,this.on("userInput",()=>{this.value=this._value}),this.on("confirm",($)=>{this.output.write(h0.cursor.move(0,-1)),this.value=$,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}};Tl={Y:{type:"year",len:4},M:{type:"month",len:2},D:{type:"day",len:2}};zw=class zw extends P6{#$;#Y;#D;#Q;#F;#J={segmentIndex:0,positionInSegment:0};#X=!0;#U=null;inlineError="";get segmentCursor(){return{...this.#J}}get segmentValues(){return{...this.#D}}get segments(){return this.#$}get separator(){return this.#Y}get formattedValue(){return this.#G(this.#D)}#G(D){return this.#$.map(($)=>D[$.type]).join(this.#Y)}#W(){this._setUserInput(this.#G(this.#D)),this._setValue(Ww(this.#D)??void 0)}constructor(D){let $=D.format?{segments:Fw(D.format),separator:D.separator??"/"}:Pl(D.locale),J=D.separator??$.separator,X=D.format?Fw(D.format):$.segments,Y=D.initialValue??D.defaultValue,Q=Y?{year:String(Y.getUTCFullYear()).padStart(4,"0"),month:String(Y.getUTCMonth()+1).padStart(2,"0"),day:String(Y.getUTCDate()).padStart(2,"0")}:{year:"____",month:"__",day:"__"},U=X.map((F)=>Q[F.type]).join(J);super({...D,initialUserInput:U},!1),this.#$=X,this.#Y=J,this.#D=Q,this.#Q=D.minDate,this.#F=D.maxDate,this.#W(),this.on("cursor",(F)=>this.#H(F)),this.on("key",(F,W)=>this.#I(F,W)),this.on("finalize",()=>this.#B(D))}#K(){let D=Math.max(0,Math.min(this.#J.segmentIndex,this.#$.length-1)),$=this.#$[D];if($)return this.#J.positionInSegment=Math.max(0,Math.min(this.#J.positionInSegment,$.len-1)),{segment:$,index:D}}#q(D){this.inlineError="",this.#U=null;let $=this.#K();$&&(this.#J.segmentIndex=Math.max(0,Math.min(this.#$.length-1,$.index+D)),this.#J.positionInSegment=0,this.#X=!0)}#Z(D){let $=this.#K();if(!$)return;let{segment:J}=$,X=this.#D[J.type],Y=!X||X.replace(/_/g,"")==="",Q=Number.parseInt((X||"0").replace(/_/g,"0"),10)||0,U=bl(J.type,g3(this.#D),this.#Q,this.#F),F;Y?F=D===1?U.min:U.max:F=Math.max(Math.min(U.max,Q+D),U.min),this.#D={...this.#D,[J.type]:F.toString().padStart(J.len,"0")},this.#X=!0,this.#U=null,this.#W()}#H(D){if(D)switch(D){case"right":return this.#q(1);case"left":return this.#q(-1);case"up":return this.#Z(1);case"down":return this.#Z(-1)}}#I(D,$){if($?.name==="backspace"||$?.sequence===""||$?.sequence==="\b"||D===""||D==="\b"){this.inlineError="";let J=this.#K();if(!J)return;if(!this.#D[J.segment.type].replace(/_/g,"")){this.#q(-1);return}this.#D[J.segment.type]="_".repeat(J.segment.len),this.#X=!0,this.#J.positionInSegment=0,this.#W();return}if($?.name==="tab"){this.inlineError="";let J=this.#K();if(!J)return;let X=$.shift?-1:1,Y=J.index+X;Y>=0&&Y<this.#$.length&&(this.#J.segmentIndex=Y,this.#J.positionInSegment=0,this.#X=!0);return}if(D&&/^[0-9]$/.test(D)){let J=this.#K();if(!J)return;let{segment:X}=J,Y=!this.#D[X.type].replace(/_/g,"");if(this.#X&&this.#U!==null&&!Y){let Z=this.#U+D,H={...this.#D,[X.type]:Z},z=this.#z(H,X);if(z){this.inlineError=z,this.#U=null,this.#X=!1;return}this.inlineError="",this.#D[X.type]=Z,this.#U=null,this.#X=!1,this.#W(),J.index<this.#$.length-1&&(this.#J.segmentIndex=J.index+1,this.#J.positionInSegment=0,this.#X=!0);return}this.#X&&!Y&&(this.#D[X.type]="_".repeat(X.len),this.#J.positionInSegment=0),this.#X=!1,this.#U=null;let Q=this.#D[X.type],U=Q.indexOf("_"),F=U>=0?U:Math.min(this.#J.positionInSegment,X.len-1);if(F<0||F>=X.len)return;let W=Q.slice(0,F)+D+Q.slice(F+1),K=!1;if(F===0&&Q==="__"&&(X.type==="month"||X.type==="day")){let Z=Number.parseInt(D,10);W=`0${D}`,K=Z<=(X.type==="month"?1:2)}if(X.type==="year"&&(W=(Q.replace(/_/g,"")+D).padStart(X.len,"_")),!W.includes("_")){let Z={...this.#D,[X.type]:W},H=this.#z(Z,X);if(H){this.inlineError=H;return}}this.inlineError="",this.#D[X.type]=W;let q=W.includes("_")?void 0:Zw(this.#D);if(q){let{year:Z,month:H}=q,z=WF(Z,H);this.#D={year:String(Math.max(0,Math.min(9999,Z))).padStart(4,"0"),month:String(Math.max(1,Math.min(12,H))).padStart(2,"0"),day:String(Math.max(1,Math.min(z,q.day))).padStart(2,"0")}}this.#W();let G=W.indexOf("_");K?(this.#X=!0,this.#U=D):G>=0?this.#J.positionInSegment=G:U>=0&&J.index<this.#$.length-1?(this.#J.segmentIndex=J.index+1,this.#J.positionInSegment=0,this.#X=!0):this.#J.positionInSegment=Math.min(F+1,X.len-1)}}#z(D,$){let{month:J,day:X}=g3(D);if($.type==="month"&&(J<0||J>12))return O0.date.messages.invalidMonth;if($.type==="day"&&(X<0||X>31))return O0.date.messages.invalidDay(31,"any month")}#B(D){let{year:$,month:J,day:X}=g3(this.#D);if($&&J&&X){let Y=WF($,J);this.#D={...this.#D,day:String(Math.min(X,Y)).padStart(2,"0")}}this.value=Ww(this.#D)??D.defaultValue??void 0}};Sl=class extends P6{options;cursor=0;#$;getGroupItems($){return this.options.filter((J)=>J.group===$)}isGroupSelected($){let J=this.getGroupItems($),X=this.value;return X===void 0?!1:J.every((Y)=>X.includes(Y.value))}toggleValue(){let $=this.options[this.cursor];if($!==void 0)if(this.value===void 0&&(this.value=[]),$.group===!0){let J=$.value,X=this.getGroupItems(J);this.isGroupSelected(J)?this.value=this.value.filter((Y)=>X.findIndex((Q)=>Q.value===Y)===-1):this.value=[...this.value,...X.map((Y)=>Y.value)],this.value=Array.from(new Set(this.value))}else{let J=this.value.includes($.value);this.value=J?this.value.filter((X)=>X!==$.value):[...this.value,$.value]}}constructor($){super($,!1);let{options:J}=$;this.#$=$.selectableGroups!==!1,this.options=Object.entries(J).flatMap(([X,Y])=>[{value:X,group:!0,label:X},...Y.map((Q)=>({...Q,group:X}))]),this.value=[...$.initialValues??[]],this.cursor=Math.max(this.options.findIndex(({value:X})=>X===$.cursorAt),this.#$?0:1),this.on("cursor",(X)=>{switch(X){case"left":case"up":{this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;let Y=this.options[this.cursor]?.group===!0;!this.#$&&Y&&(this.cursor=this.cursor===0?this.options.length-1:this.cursor-1);break}case"down":case"right":{this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;let Y=this.options[this.cursor]?.group===!0;!this.#$&&Y&&(this.cursor=this.cursor===this.options.length-1?0:this.cursor+1);break}case"space":this.toggleValue();break}})}},Cl=new Set(["up","down","left","right"]);Hw=class Hw extends P6{#$=!1;#Y;focused="editor";get userInputWithCursor(){if(this.state==="submit")return this.userInput;let D=this.userInput;if(this.cursor>=D.length)return`${D}█`;let $=D.slice(0,this.cursor),J=D.slice(this.cursor,this.cursor+1),X=D.slice(this.cursor+1);return J===`
`?`${$}█
${X}`:`${$}${O8("inverse",J)}${X}`}get cursor(){return this._cursor}#D(D){if(this.userInput.length===0){this._setUserInput(D);return}this._setUserInput(this.userInput.slice(0,this.cursor)+D+this.userInput.slice(this.cursor))}#Q(D){let $=this.value??"";switch(D){case"up":this._cursor=_3(this._cursor,0,-1,$);return;case"down":this._cursor=_3(this._cursor,0,1,$);return;case"left":this._cursor=_3(this._cursor,-1,0,$);return;case"right":this._cursor=_3(this._cursor,1,0,$);return}}_shouldSubmit(D,$){if(this.#Y)return this.focused==="submit"?!0:(this.#D(`
`),this._cursor++,!1);let J=this.#$;return this.#$=!0,J&&this.cursor===this.userInput.length?(this.userInput[this.cursor-1]===`
`&&(this._setUserInput(this.userInput.slice(0,this.cursor-1)+this.userInput.slice(this.cursor)),this._cursor--),!0):(this.#D(`
`),this._cursor++,!1)}constructor(D){let $=D.initialUserInput??D.initialValue;super({...D,initialUserInput:$},!1),$!==void 0&&(this._cursor=$.length),this.#Y=D.showSubmit??!1,this.on("key",(J,X)=>{if(X?.name&&Cl.has(X.name)){this.#$=!1,this.#Q(X.name);return}if(J==="\t"&&this.#Y){this.focused=this.focused==="editor"?"submit":"editor";return}if(X?.name!=="return"){if(this.#$=!1,X?.name==="backspace"&&this.cursor>0){this._setUserInput(this.userInput.slice(0,this.cursor-1)+this.userInput.slice(this.cursor)),this._cursor--;return}if(X?.name==="delete"&&this.cursor<this.userInput.length){this._setUserInput(this.userInput.slice(0,this.cursor)+this.userInput.slice(this.cursor+1));return}J&&(this.#Y&&this.focused==="submit"&&(this.focused="editor"),this.#D(J??""),this._cursor++)}}),this.on("userInput",(J)=>{this._setValue(J)}),this.on("finalize",()=>{this.value||(this.value=D.defaultValue),this.value===void 0&&(this.value="")})}};Iw=class extends P6{_mask="•";get cursor(){return this._cursor}get masked(){return this.userInput.replaceAll(/./g,this._mask)}get userInputWithCursor(){if(this.state==="submit"||this.state==="cancel")return this.masked;let $=this.userInput;if(this.cursor>=$.length)return`${this.masked}${O8(["inverse","hidden"],"_")}`;let J=this.masked,X=J.slice(0,this.cursor),Y=J.slice(this.cursor,this.cursor+1),Q=J.slice(this.cursor+1);return`${X}${O8("inverse",Y)}${Q}`}clear(){this._clearUserInput()}constructor({mask:$,...J}){super(J),this._mask=$??"•",this.on("userInput",(X)=>{this._setValue(X)}),this.on("finalize",()=>{this.value===void 0&&(this.value="")})}},Bw=class extends P6{options;cursor=0;get _selectedValue(){return this.options[this.cursor]}changeValue(){let $=this._selectedValue;this.value=$===void 0?void 0:$.value}constructor($){super($,!1),this.options=$.options;let J=this.options.findIndex(({value:Y})=>Y===$.initialValue),X=J===-1?0:J;this.cursor=this.options[X]?.disabled?B8(X,1,this.options):X,this.changeValue(),this.on("cursor",(Y)=>{switch(Y){case"left":case"up":this.cursor=B8(this.cursor,-1,this.options);break;case"down":case"right":this.cursor=B8(this.cursor,1,this.options);break}this.changeValue()})}};zF=class zF extends P6{get userInputWithCursor(){if(this.state==="submit")return this.userInput;let D=this.userInput;if(this.cursor>=D.length)return`${this.userInput}█`;let $=D.slice(0,this.cursor),J=D.slice(this.cursor,this.cursor+1),X=D.slice(this.cursor+1);return`${$}${O8("inverse",J)}${X}`}get cursor(){return this._cursor}constructor(D){super({...D,initialUserInput:D.initialUserInput??D.initialValue}),this.on("userInput",($)=>{this._setValue($)}),this.on("finalize",()=>{this.value||(this.value=D.defaultValue),this.value===void 0&&(this.value="")})}}});import{styleText as t,stripVTControlCharacters as UBD}from"node:util";import a$ from"node:process";function kl(){if(a$.platform!=="win32")return a$.env.TERM!=="linux";return Boolean(a$.env.CI)||Boolean(a$.env.WT_SESSION)||Boolean(a$.env.TERMINUS_SUBLIME)||a$.env.ConEmuTask==="{cmd::Cmder}"||a$.env.TERM_PROGRAM==="Terminus-Sublime"||a$.env.TERM_PROGRAM==="vscode"||a$.env.TERM==="xterm-256color"||a$.env.TERM==="alacritty"||a$.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}function tl(D,$){let J=[`${$?`${t("cyan",bD)} `:""}${D.join(" • ")}`];return $&&J.push(t("cyan",Z6)),J}function Nw(D,$,J,X){let Y=J,Q=J;return X==="center"?Y=Math.floor(($-D)/2):X==="right"&&(Y=$-D-J),Q=$-Y-D,[Y,Q]}var u9,IF,_l=()=>process.env.CI==="true",pD=(D,$)=>IF?D:$,ul,Vw,ww,OF,jw,bD,Z6,gl,xl,BF,f3,qBD,GBD,ZBD,fl,yl,hl,zBD,ml,ll,dl,il,cl,pl,nl,y3=(D)=>{switch(D){case"initial":case"active":return t("cyan",ul);case"cancel":return t("red",Vw);case"error":return t("yellow",ww);case"submit":return t("green",OF)}},rl=(D)=>{switch(D){case"initial":case"active":return t("cyan",bD);case"cancel":return t("red",bD);case"error":return t("yellow",bD);case"submit":return t("green",bD)}},Ow=(D,$,J,X,Y,Q=!1)=>{let U=$,F=0;if(Q)for(let W=X-1;W>=J;W--){let K=D[W];if(K&&(U-=K.length),F++,U<=Y)break}else for(let W=J;W<X;W++){let K=D[W];if(K&&(U-=K.length),F++,U<=Y)break}return{lineCount:U,removals:F}},ol=({cursor:D,options:$,style:J,output:X=process.stdout,maxItems:Y=Number.POSITIVE_INFINITY,columnPadding:Q=0,rowPadding:U=4})=>{let F=k9(X)-Q,W=GF(X),K=t("dim","..."),q=Math.max(W-U,0),G=Math.max(Math.min(Y,q),5),Z=0;D>=G-3&&(Z=Math.max(Math.min(D-G+3,$.length-G),0));let H=G<$.length&&Z>0,z=G<$.length&&Z+G<$.length,I=Math.min(Z+G,$.length),B=[],N=0;H&&N++,z&&N++;let V=Z+(H?1:0),O=I-(z?1:0);for(let v=V;v<O;v++){let A=$[v],C=A?J(A,v===D):"",u=T6(C,F,{hard:!0,trim:!1}).split(`
`);B.push(u),N+=u.length}if(N>q){let v=0,A=0,C=N,u=D-V,_=q,y=()=>Ow(B,C,0,u,_),E=()=>Ow(B,C,u+1,B.length,_,!0);H?({lineCount:C,removals:v}=y(),C>_&&(z||(_-=1),{lineCount:C,removals:A}=E())):(z||(_-=1),{lineCount:C,removals:A}=E(),C>_&&(_-=1,{lineCount:C,removals:v}=y())),v>0&&(H=!0,B.splice(0,v)),A>0&&(z=!0,B.splice(B.length-A,A))}let j=[];H&&j.push(K);for(let v of B)for(let A of v)j.push(A);return z&&j.push(K),j},al,sl,el=(D)=>D,HBD=(D="",$="",J)=>{let X=J?.output??process.stdout,Y=k9(X),U=J?.titlePadding??1,F=J?.contentPadding??2,W=J?.width===void 0||J.width==="auto"?1:Math.min(1,J.width),K=J?.withGuide??O0.withGuide?`${bD} `:"",q=J?.formatBorder??el,G=((J?.rounded)?al:sl).map(q),Z=q(yl),H=q(bD),z=n0(K),I=n0($),B=Y-z,N=Math.floor(Y*W)-z;if(J?.width==="auto"){let _=D.split(`
`),y=I+U*2;for(let d of _){let c=n0(d)+F*2;c>y&&(y=c)}let E=y+2;E<N&&(N=E)}N%2!==0&&(N<B?N++:N--);let V=N-2,O=V-U*2,j=I>O?`${$.slice(0,O-3)}...`:$,[v,A]=Nw(n0(j),V,U,J?.titleAlign),C=T6(D,V-F*2,{hard:!0,trim:!1});X.write(`${K}${G[0]}${Z.repeat(v)}${j}${Z.repeat(A)}${G[1]}
`);let u=C.split(`
`);for(let _ of u){let[y,E]=Nw(n0(_),V,F,J?.contentAlign);X.write(`${K}${H}${" ".repeat(y)}${_}${" ".repeat(E)}${H}
`)}X.write(`${K}${G[2]}${Z.repeat(V)}${G[3]}
`)},N8=(D)=>{let $=D.active??"Yes",J=D.inactive??"No";return new ZF({active:$,inactive:J,signal:D.signal,input:D.input,output:D.output,initialValue:D.initialValue??!0,render(){let X=D.withGuide??O0.withGuide,Y=`${y3(this.state)} `,Q=X?`${t("gray",bD)} `:"",U=_9(D.output,D.message,Q,Y),F=`${X?`${t("gray",bD)}
`:""}${U}
`,W=this.value?$:J;switch(this.state){case"submit":{let K=X?`${t("gray",bD)} `:"";return`${F}${K}${t("dim",W)}`}case"cancel":{let K=X?`${t("gray",bD)} `:"";return`${F}${K}${t(["strikethrough","dim"],W)}${X?`
${t("gray",bD)}`:""}`}default:{let K=X?`${t("cyan",bD)} `:"",q=X?t("cyan",Z6):"";return`${F}${K}${this.value?`${t("green",BF)} ${$}`:`${t("dim",f3)} ${t("dim",$)}`}${D.vertical?X?`
${t("cyan",bD)} `:`
`:` ${t("dim","/")} `}${this.value?`${t("dim",f3)} ${t("dim",J)}`:`${t("green",BF)} ${J}`}
${q}
`}}}}).prompt()},IBD,lD,BBD=(D="",$)=>{let J=$?.output??process.stdout,X=$?.withGuide??O0.withGuide?`${t("gray",Z6)} `:"";J.write(`${X}${t("red",D)}
`)},h3=(D="",$)=>{let J=$?.output??process.stdout,X=$?.withGuide??O0.withGuide?`${t("gray",jw)} `:"";J.write(`${X}${D}
`)},g9=(D="",$)=>{let J=$?.output??process.stdout,X=$?.withGuide??O0.withGuide?`${t("gray",bD)}
${t("gray",Z6)} `:"";J.write(`${X}${D}
`)},OBD=(D)=>new Iw({validate:D.validate,mask:D.mask??fl,signal:D.signal,input:D.input,output:D.output,render(){let $=D.withGuide??O0.withGuide,J=`${$?`${t("gray",bD)}
`:""}${y3(this.state)} ${D.message}
`,X=this.userInputWithCursor,Y=this.masked;switch(this.state){case"error":{let Q=$?`${t("yellow",bD)} `:"",U=$?`${t("yellow",Z6)} `:"",F=Y??"";return D.clearOnError&&this.clear(),`${J.trim()}
${Q}${F}
${U}${t("yellow",this.error)}
`}case"submit":{let Q=$?`${t("gray",bD)} `:"",U=Y?t("dim",Y):"";return`${J}${Q}${U}`}case"cancel":{let Q=$?`${t("gray",bD)} `:"",U=Y?t(["strikethrough","dim"],Y):"";return`${J}${Q}${U}${Y&&$?`
${t("gray",bD)}`:""}`}default:{let Q=$?`${t("cyan",bD)} `:"",U=$?t("cyan",Z6):"";return`${J}${Q}${X}
${U}
`}}}}).prompt(),Dd=(D)=>t("magenta",D),V8=({indicator:D="dots",onCancel:$,output:J=process.stdout,cancelMessage:X,errorMessage:Y,frames:Q=IF?["◒","◐","◓","◑"]:["•","o","O","0"],delay:U=IF?80:120,signal:F,...W}={})=>{let K=_l(),q,G,Z=!1,H=!1,z="",I,B=performance.now(),N=k9(J),V=W?.styleFrame??Dd,O=(p)=>{let o=p>1?Y??O0.messages.error:X??O0.messages.cancel;H=p===1,Z&&(c(o,p),H&&typeof $=="function"&&$())},j=()=>O(2),v=()=>O(1),A=()=>{process.on("uncaughtExceptionMonitor",j),process.on("unhandledRejection",j),process.on("SIGINT",v),process.on("SIGTERM",v),process.on("exit",O),F&&F.addEventListener("abort",v)},C=()=>{process.removeListener("uncaughtExceptionMonitor",j),process.removeListener("unhandledRejection",j),process.removeListener("SIGINT",v),process.removeListener("SIGTERM",v),process.removeListener("exit",O),F&&F.removeEventListener("abort",v)},u=()=>{if(I===void 0)return;K&&J.write(`
`);let p=T6(I,N,{hard:!0,trim:!1}).split(`
`);p.length>1&&J.write(u9.cursor.up(p.length-1)),J.write(u9.cursor.to(0)),J.write(u9.erase.down())},_=(p)=>p.replace(/\.+$/,""),y=(p)=>{let o=(performance.now()-p)/1000,R=Math.floor(o/60),w=Math.floor(o%60);return R>0?`[${R}m ${w}s]`:`[${w}s]`},E=W.withGuide??O0.withGuide,d=(p="")=>{Z=!0,q=qw({output:J}),z=_(p),B=performance.now(),E&&J.write(`${t("gray",bD)}
`);let o=0,R=0;A(),G=setInterval(()=>{if(K&&z===I)return;u(),I=z;let w=V(Q[o]),L;if(K)L=`${w} ${z}...`;else if(D==="timer")L=`${w} ${z} ${y(B)}`;else{let f=".".repeat(Math.floor(R)).slice(0,3);L=`${w} ${z}${f}`}let P=T6(L,N,{hard:!0,trim:!1});J.write(P),o=o+1<Q.length?o+1:0,R=R<4?R+0.125:0},U)},c=(p="",o=0,R=!1)=>{if(!Z)return;Z=!1,clearInterval(G),u();let w=o===0?t("green",OF):o===1?t("red",Vw):t("red",ww);z=p??z,R||(D==="timer"?J.write(`${w} ${z} ${y(B)}
`):J.write(`${w} ${z}
`)),C(),q()};return{start:d,stop:(p="")=>c(p,0),message:(p="")=>{z=_(p??z)},cancel:(p="")=>c(p,1),error:(p="")=>c(p,2),clear:()=>c("",0,!0),get isCancelled(){return H}}},NBD,$d,x3=(D,$)=>D.includes(`
`)?D.split(`
`).map((J)=>$(J)).join(`
`):$(D),Lw=(D)=>{let $=(X,Y)=>{if(X===void 0)return"";let Q=X.label??String(X.value);switch(Y){case"disabled":return`${t("gray",f3)} ${x3(Q,(U)=>t("gray",U))}${X.hint?` ${t("dim",`(${X.hint??"disabled"})`)}`:""}`;case"selected":return`${x3(Q,(U)=>t("dim",U))}`;case"active":return`${t("green",BF)} ${Q}${X.hint?` ${t("dim",`(${X.hint})`)}`:""}`;case"cancelled":return`${x3(Q,(U)=>t(["strikethrough","dim"],U))}`;default:return`${t("dim",f3)} ${x3(Q,(U)=>t("dim",U))}`}},J=D.showInstructions??!0;return new Bw({options:D.options,signal:D.signal,input:D.input,output:D.output,initialValue:D.initialValue,render(){let X=D.withGuide??O0.withGuide,Y=`${y3(this.state)} `,Q=`${rl(this.state)} `,U=_9(D.output,D.message,Q,Y),F=`${X?`${t("gray",bD)}
`:""}${U}
`;switch(this.state){case"submit":{let W=X?`${t("gray",bD)} `:"",K=_9(D.output,$(this.options[this.cursor],"selected"),W);return`${F}${K}`}case"cancel":{let W=X?`${t("gray",bD)} `:"",K=_9(D.output,$(this.options[this.cursor],"cancelled"),W);return`${F}${K}${X?`
${t("gray",bD)}`:""}`}default:{let W=X?`${t("cyan",bD)} `:"",K=F.split(`
`).length,q=J?tl($d,X):X?[t("cyan",Z6)]:[],G=q.join(`
`),Z=q.length+1;return`${F}${W}${ol({output:D.output,cursor:this.cursor,options:this.options,maxItems:D.maxItems,columnPadding:W.length,rowPadding:K+Z,style:(H,z)=>$(H,H.disabled?"disabled":z?"active":"inactive")}).join(`
${W}`)}
${G}
`}}}}).prompt()},VBD,wBD=(D)=>new zF({validate:D.validate,placeholder:D.placeholder,defaultValue:D.defaultValue,initialValue:D.initialValue,output:D.output,signal:D.signal,input:D.input,render(){let $=D?.withGuide??O0.withGuide,J=`${`${$?`${t("gray",bD)}
`:""}${y3(this.state)} `}${D.message}
`,X=D.placeholder&&D.placeholder.length>0?t("inverse",D.placeholder[0])+t("dim",D.placeholder.slice(1)):t(["inverse","hidden"],"_"),Y=this.userInput?this.userInputWithCursor:X,Q=this.value??"";switch(this.state){case"error":{let U=this.error?` ${t("yellow",this.error)}`:"",F=$?`${t("yellow",bD)} `:"",W=$?t("yellow",Z6):"";return`${J.trim()}
${F}${Y}
${W}${U}
`}case"submit":{let U=Q?` ${t("dim",Q)}`:"",F=$?t("gray",bD):"";return`${J}${F}${U}`}case"cancel":{let U=Q?` ${t(["strikethrough","dim"],Q)}`:"",F=$?t("gray",bD):"";return`${J}${F}${U}${Q.trim()?`
${F}`:""}`}default:{let U=$?`${t("cyan",bD)} `:"",F=$?t("cyan",Z6):"";return`${J}${U}${Y}
${F}
`}}}}).prompt();var $1=S(()=>{HF();HF();XF();eU();u9=j$(QF(),1);IF=kl(),ul=pD("◆","*"),Vw=pD("■","x"),ww=pD("▲","x"),OF=pD("◇","o"),jw=pD("┌","T"),bD=pD("│","|"),Z6=pD("└","—"),gl=pD("┐","T"),xl=pD("┘","—"),BF=pD("●",">"),f3=pD("○"," "),qBD=pD("◻","[•]"),GBD=pD("◼","[+]"),ZBD=pD("◻","[ ]"),fl=pD("▪","•"),yl=pD("─","-"),hl=pD("╮","+"),zBD=pD("├","+"),ml=pD("╯","+"),ll=pD("╰","+"),dl=pD("╭","+"),il=pD("●","•"),cl=pD("◆","*"),pl=pD("▲","!"),nl=pD("■","x");al=[dl,hl,ll,ml],sl=[jw,gl,Z6,xl];IBD=[`${t("dim","↑/↓")} to navigate`,`${t("dim","Space:")} select`,`${t("dim","Enter:")} confirm`],lD={message:(D=[],{symbol:$=t("gray",bD),secondarySymbol:J=t("gray",bD),output:X=process.stdout,spacing:Y=1,withGuide:Q}={})=>{let U=[],F=Q??O0.withGuide,W=F?J:"",K=F?`${$} `:"",q=F?`${J} `:"";for(let Z=0;Z<Y;Z++)U.push(W);let G=Array.isArray(D)?D:D.split(`
`);if(G.length>0){let[Z,...H]=G;Z.length>0?U.push(`${K}${Z}`):U.push(F?$:"");for(let z of H)z.length>0?U.push(`${q}${z}`):U.push(F?J:"")}X.write(`${U.join(`
`)}
`)},info:(D,$)=>{lD.message(D,{...$,symbol:t("blue",il)})},success:(D,$)=>{lD.message(D,{...$,symbol:t("green",cl)})},step:(D,$)=>{lD.message(D,{...$,symbol:t("green",OF)})},warn:(D,$)=>{lD.message(D,{...$,symbol:t("yellow",pl)})},warning:(D,$)=>{lD.warn(D,$)},error:(D,$)=>{lD.message(D,{...$,symbol:t("red",nl)})}},NBD={light:pD("─","-"),heavy:pD("━","="),block:pD("█","#")},$d=[`${t("dim","↑/↓")} to navigate`,`${t("dim","Enter:")} confirm`],VBD=`${t("gray",bD)} `});function m3(D,$){if(isNaN(D)||isNaN($))throw Error("Cannot compare against non-numbers");return D===$?0:D<$?-1:1}function Aw(D=[],$=[]){if(D.length&&!$.length)return-1;if(!D.length&&$.length)return 1;return 0}function l3(D=[],$=[]){let J=Math.max(D.length,$.length);for(let X=0;X<J;X++){let Y=D[X],Q=$[X];if(Y===void 0&&Q===void 0)return 0;if(Q===void 0)return 1;if(Y===void 0)return-1;if(typeof Y==="string"&&typeof Q==="number")return 1;if(typeof Y==="number"&&typeof Q==="string")return-1;if(Y<Q)return-1;if(Y>Q)return 1}return 0}function VF(D){return typeof D==="number"&&!Number.isNaN(D)&&(!Number.isFinite(D)||0<=D&&D<=Number.MAX_SAFE_INTEGER)}function Z$(D){return D.split(".").filter(Boolean).map(($)=>{if(Qd.test($)){let J=Number($);if(VF(J))return J}return $})}function z6(D){return D.split(".").filter(Boolean)}function i3(D,$){let J=Number(D);if(!VF(J))throw TypeError($);return J}function b6(D){return Number.isNaN(D.major)&&Number.isNaN(D.minor)&&Number.isNaN(D.patch)&&(D.prerelease===void 0||D.prerelease.length===0)&&(D.build===void 0||D.build.length===0)}var w8="0|[1-9]\\d*",Jd="\\d*[a-zA-Z-][a-zA-Z0-9-]*",Xd,Rw,vw,Mw="[0-9A-Za-z-]+",Ew,Tw,Pw,bw="(?:<|>)?=?",Yd="x|X|\\*",NF,d3,Sw,Cw,wF=256,Qd;var L$=S(()=>{Xd=`(?<major>${w8})\\.(?<minor>${w8})\\.(?<patch>${w8})`,Rw=`(?:${w8}|${Jd})`,vw=`(?:-(?<prerelease>${Rw}(?:\\.${Rw})*))`,Ew=`(?:\\+(?<buildmetadata>${Mw}(?:\\.${Mw})*))`,Tw=`v?${Xd}${vw}?${Ew}?`,Pw=new RegExp(`^${Tw}$`),NF=`${w8}|${Yd}`,d3=`[v=\\s]*(?<major>${NF})(?:\\.(?<minor>${NF})(?:\\.(?<patch>${NF})${vw}?${Ew}?)?)?`,Sw=new RegExp(`^(?<operator>~>?|\\^|${bw})\\s*${d3}$`),Cw=new RegExp(`^(?<operator>${bw})\\s*(${Tw})$|^$`);Qd=new RegExp(`^${w8}$`)});function r0(D,$){if(D===$)return 0;return m3(D.major,$.major)||m3(D.minor,$.minor)||m3(D.patch,$.patch)||Aw(D.prerelease,$.prerelease)||l3(D.prerelease,$.prerelease)}var y$=S(()=>{L$()});function EBD(D,$){let J=D.prerelease?.length||$.prerelease?.length;if(D.major!==$.major)return J?"premajor":"major";if(D.minor!==$.minor)return J?"preminor":"minor";if(D.patch!==$.patch)return J?"prepatch":"patch";if(l3(D.prerelease,$.prerelease)!==0)return"prerelease"}var kw=S(()=>{L$()});function jF(D){return D.toFixed(0)}function LF(D){let $=jF(D.major),J=jF(D.minor),X=jF(D.patch),Y=D.prerelease?.join(".")??"",Q=D.build?.join(".")??"";return[[`${$}.${J}.${X}`,Y].filter((W)=>W).join("-"),Q].filter((W)=>W).join("+")}function Ud(D,$){if(b6($))return!0;let J=r0(D,$);switch($.operator){case"=":case void 0:return J===0;case"!=":return J!==0;case">":return J>0;case"<":return J<0;case">=":return J>=0;case"<=":return J<=0}}function c3(D,$){for(let J of $)if(!Ud(D,J))return!1;if(!D.prerelease?.length)return!0;for(let J of $){if(b6(J))continue;if(!J.prerelease?.length)continue;let{major:X,minor:Y,patch:Q}=J;if(D.major===X&&D.minor===Y&&D.patch===Q)return!0}return!1}var p3=S(()=>{L$();y$()});function x9(D,$){return $.some((J)=>c3(D,J))}var f9=S(()=>{p3()});function Fd(D=[]){let $=[...D],J=$.length;while(J>=0){let X=$[J];if(typeof X==="number"){$[J]=X+1;break}J-=1}if(J===-1)$.push(0);return $}function y9(D=[],$){let J=Fd(D);if(!$)return J;let X=Z$($);if(X.every((Y)=>typeof Y==="string")){if(X.every((Y,Q)=>Y===J[Q])&&typeof J[X.length]==="number")return J;X=[...X,0]}return X}function gBD(D,$,J={}){let X=J.build!==void 0?z6(J.build):D.build??[];switch($){case"premajor":return{major:D.major+1,minor:0,patch:0,prerelease:y9(D.prerelease,J.prerelease),build:X};case"preminor":return{major:D.major,minor:D.minor+1,patch:0,prerelease:y9(D.prerelease,J.prerelease),build:X};case"prepatch":return{major:D.major,minor:D.minor,patch:D.patch+1,prerelease:y9(D.prerelease,J.prerelease),build:X};case"prerelease":{let Q=(D.prerelease??[]).length===0?D.patch+1:D.patch;return{major:D.major,minor:D.minor,patch:Q,prerelease:y9(D.prerelease,J.prerelease),build:X}}case"major":return{major:(D.prerelease??[]).length===0||D.minor!==0||D.patch!==0?D.major+1:D.major,minor:0,patch:0,prerelease:[],build:X};case"minor":{let Q=(D.prerelease??[]).length===0||D.patch!==0?D.minor+1:D.minor;return{major:D.major,minor:Q,patch:0,prerelease:[],build:X}}case"patch":{let Q=(D.prerelease??[]).length===0?D.patch+1:D.patch;return{major:D.major,minor:D.minor,patch:Q,prerelease:[],build:X}}case"pre":return{major:D.major,minor:D.minor,patch:D.patch,prerelease:y9(D.prerelease,J.prerelease),build:X};default:throw TypeError(`Cannot increment version: invalid argument ${$}`)}}var _w=S(()=>{L$()});var n3,j8;var h9=S(()=>{n3={major:Number.NaN,minor:Number.NaN,patch:Number.NaN,prerelease:[],build:[]},j8={operator:void 0,...n3}});var RF=S(()=>{h9();L$()});function Wd(D,$){return r0(D,$)>0}var MF=S(()=>{y$()});var uw=S(()=>{f9();MF()});function r1(D,$){return r0(D,$)<0}var AF=S(()=>{y$()});var gw=S(()=>{f9();AF()});function Kd(D){let J=D.match(Cw)?.groups;if(!J)return null;let{operator:X}=J;return{operator:X||void 0,...n3}}function rD(D){return!D||D.toLowerCase()==="x"||D==="*"}function qd(D){if(rD(D.major))return;if(rD(D.minor))return{operator:">=",major:+D.major,minor:0,patch:0,prerelease:[],build:[]};if(rD(D.patch))return{operator:">=",major:+D.major,minor:+D.minor,patch:0,prerelease:[],build:[]};return{operator:">=",major:+D.major,minor:+D.minor,patch:+D.patch,prerelease:D.prerelease?Z$(D.prerelease):[],build:[]}}function Gd(D){if(rD(D.major))return;if(rD(D.minor))return{operator:"<",major:+D.major+1,minor:0,patch:0,prerelease:[],build:[]};if(rD(D.patch))return{operator:"<",major:+D.major,minor:+D.minor+1,patch:0,prerelease:[],build:[]};if(D.prerelease)return{operator:"<=",major:+D.major,minor:+D.minor,patch:+D.patch,prerelease:Z$(D.prerelease),build:[]};return{operator:"<=",major:+D.major,minor:+D.minor,patch:+D.patch,prerelease:[],build:[]}}function Zd(D){let $=D.match(new RegExp(`^${d3}`)),J=$?.groups;if(!J)return null;let X=$[0].length,Y=D.slice(X).match(/^\s+-\s+/);if(!Y)return null;let Q=Y[0].length,F=D.slice(X+Q).match(new RegExp(`^${d3}\\s*$`))?.groups,W=qd(J),K=Gd(F);return[W,K].filter(Boolean)}function zd(D){let $=rD(D.major),J=rD(D.minor),X=rD(D.patch),Y=+D.major,Q=+D.minor,U=+D.patch;if($)return[j8];if(J)return[{operator:">=",major:Y,minor:0,patch:0},{operator:"<",major:Y+1,minor:0,patch:0}];if(X){if(Y===0)return[{operator:">=",major:Y,minor:Q,patch:0},{operator:"<",major:Y,minor:Q+1,patch:0}];return[{operator:">=",major:Y,minor:Q,patch:0},{operator:"<",major:Y+1,minor:0,patch:0}]}let F=Z$(D.prerelease??"");if(Y===0){if(Q===0)return[{operator:">=",major:Y,minor:Q,patch:U,prerelease:F},{operator:"<",major:Y,minor:Q,patch:U+1}];return[{operator:">=",major:Y,minor:Q,patch:U,prerelease:F},{operator:"<",major:Y,minor:Q+1,patch:0}]}return[{operator:">=",major:Y,minor:Q,patch:U,prerelease:F},{operator:"<",major:Y+1,minor:0,patch:0}]}function Hd(D){let $=rD(D.major),J=rD(D.minor),X=rD(D.patch),Y=+D.major,Q=+D.minor,U=+D.patch;if($)return[j8];if(J)return[{operator:">=",major:Y,minor:0,patch:0},{operator:"<",major:Y+1,minor:0,patch:0}];if(X)return[{operator:">=",major:Y,minor:Q,patch:0},{operator:"<",major:Y,minor:Q+1,patch:0}];let F=Z$(D.prerelease??"");return[{operator:">=",major:Y,minor:Q,patch:U,prerelease:F},{operator:"<",major:Y,minor:Q+1,patch:0}]}function Id(D){let $=rD(D.major),J=rD(D.minor),X=rD(D.patch),Y=+D.major,Q=+D.minor,U=+D.patch;if($)return[{operator:"<",major:0,minor:0,patch:0}];if(J){if(X)return[{operator:"<",major:Y,minor:0,patch:0}];return[{operator:"<",major:Y,minor:0,patch:0}]}if(X)return[{operator:"<",major:Y,minor:Q,patch:0}];let F=Z$(D.prerelease??""),W=z6(D.build??"");return[{operator:"<",major:Y,minor:Q,patch:U,prerelease:F,build:W}]}function Bd(D){let $=rD(D.minor),J=rD(D.patch),X=+D.major,Y=+D.minor,Q=+D.patch;if($)return[{operator:"<",major:X+1,minor:0,patch:0}];if(J)return[{operator:"<",major:X,minor:Y+1,patch:0}];let U=Z$(D.prerelease??""),F=z6(D.build??"");return[{operator:"<=",major:X,minor:Y,patch:Q,prerelease:U,build:F}]}function Od(D){let $=rD(D.major),J=rD(D.minor),X=rD(D.patch),Y=+D.major,Q=+D.minor,U=+D.patch;if($)return[{operator:"<",major:0,minor:0,patch:0}];if(J)return[{operator:">=",major:Y+1,minor:0,patch:0}];if(X)return[{operator:">=",major:Y,minor:Q+1,patch:0}];let F=Z$(D.prerelease??""),W=z6(D.build??"");return[{operator:">",major:Y,minor:Q,patch:U,prerelease:F,build:W}]}function Nd(D){let $=rD(D.major),J=rD(D.minor),X=rD(D.patch),Y=+D.major,Q=+D.minor,U=+D.patch;if($)return[j8];if(J)return[{operator:">=",major:Y,minor:0,patch:0}];if(X)return[{operator:">=",major:Y,minor:Q,patch:0}];let F=Z$(D.prerelease??""),W=z6(D.build??"");return[{operator:">=",major:Y,minor:Q,patch:U,prerelease:F,build:W}]}function Vd(D){let $=rD(D.major),J=rD(D.minor),X=rD(D.patch),Y=+D.major,Q=+D.minor,U=+D.patch;if($)return[j8];if(J)return[{operator:">=",major:Y,minor:0,patch:0},{operator:"<",major:Y+1,minor:0,patch:0}];if(X)return[{operator:">=",major:Y,minor:Q,patch:0},{operator:"<",major:Y,minor:Q+1,patch:0}];let F=Z$(D.prerelease??""),W=z6(D.build??"");return[{operator:D.operator==="="?"=":void 0,major:Y,minor:Q,patch:U,prerelease:F,build:W}]}function wd(D){let $=D.match(Sw)?.groups;if(!$)return Kd(D);switch($.operator){case"^":return zd($);case"~":case"~>":return Hd($);case"<":return Id($);case"<=":return Bd($);case">":return Od($);case">=":return Nd($);default:return Vd($)}}function jd(D){return D.split(/\s+/).flatMap(wd)}function r3(D){let $=D.replaceAll(/(?<=[<>=~^])(\s+)/g,"").split(/\s*\|\|\s*/).map((J)=>Zd(J)||jd(J));if($.some((J)=>J.includes(null)))throw TypeError(`Cannot parse version range: range "${D}" is invalid`);return $}var vF=S(()=>{L$();h9()});function s$(D){if(typeof D!=="string")throw TypeError(`Cannot parse version as version must be a string: received ${typeof D}`);if(D.length>wF)throw TypeError(`Cannot parse version as version length is too long: length is ${D.length}, max length is ${wF}`);D=D.trim();let $=D.match(Pw)?.groups;if(!$)throw TypeError(`Cannot parse version: ${D}`);let J=i3($.major,`Cannot parse version ${D}: invalid major version`),X=i3($.minor,`Cannot parse version ${D}: invalid minor version`),Y=i3($.patch,`Cannot parse version ${D}: invalid patch version`),Q=$.prerelease?Z$($.prerelease):[],U=$.buildmetadata?z6($.buildmetadata):[];return{major:J,minor:X,patch:Y,prerelease:Q,build:U}}var t3=S(()=>{L$();L$()});function xw(D,$){let J=D.operator,X=$.operator;if(J===void 0){if(b6(D))return!0;return x9(D,[[$]])}if(X===void 0){if(b6($))return!0;return x9($,[[D]])}let Y=r0(D,$);return(J===">="||J===">")&&(X===">="||X===">")||(J==="<="||J==="<")&&(X==="<="||X==="<")||Y===0&&((J===">="||J==="<=")&&(X===">="||X==="<="))||Y===-1&&(J===">="||J===">")&&(X==="<="||X==="<")||Y===1&&(J==="<="||J==="<")&&(X===">="||X===">")}function Ld(D){return D.every(($)=>{return $.some((J)=>Rd(J))})}function Rd(D){for(let $=0;$<D.length-1;$++){let J=D[$];for(let X of D.slice($+1))if(!xw(J,X))return!1}return!0}function fw(D,$){return Ld([D,$])&&D.some((J)=>{return $.some((X)=>{return J.every((Y)=>{return X.every((Q)=>xw(Y,Q))})})})}var yw=S(()=>{L$();y$();f9()});var hw=S(()=>{vF()});var mw=S(()=>{h9();h9();RF()});function m9(D){try{return s$(D),!0}catch{return!1}}var lw=S(()=>{t3()});var dw=S(()=>{t3()});var iw=S(()=>{L$()});var cw=S(()=>{y$()});var pw=S(()=>{y$()});var nw=S(()=>{p3();L$();y$()});function kOD(D,$){return r0(D,$)>=0}var rw=S(()=>{y$()});var tw=S(()=>{p3();L$();y$()});var ow=S(()=>{y$()});var EF=S(()=>{y$();kw();f9();_w();RF();uw();gw();vF();t3();yw();hw();mw();lw();dw();iw();cw();pw();MF();nw();rw();AF();tw();ow()});var z$=k((zND,s3)=>{var aw,sw,ew,Dj,$j,Jj,Xj,Yj,Qj,Uj,Fj,Wj,Kj,o3,TF,qj,Gj,Zj,L8,zj,Hj,Ij,Bj,Oj,Nj,Vj,wj,jj,a3,Lj,Rj,Mj;(function(D){var $=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(X){D(J($,J(X)))});else if(typeof s3==="object"&&typeof zND==="object")D(J($,J(zND)));else D(J($));function J(X,Y){if(X!==$)if(typeof Object.create==="function")Object.defineProperty(X,"__esModule",{value:!0});else X.__esModule=!0;return function(Q,U){return X[Q]=Y?Y(Q,U):U}}})(function(D){var $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,U){Q.__proto__=U}||function(Q,U){for(var F in U)if(Object.prototype.hasOwnProperty.call(U,F))Q[F]=U[F]};aw=function(Q,U){if(typeof U!=="function"&&U!==null)throw TypeError("Class extends value "+String(U)+" is not a constructor or null");$(Q,U);function F(){this.constructor=Q}Q.prototype=U===null?Object.create(U):(F.prototype=U.prototype,new F)},sw=Object.assign||function(Q){for(var U,F=1,W=arguments.length;F<W;F++){U=arguments[F];for(var K in U)if(Object.prototype.hasOwnProperty.call(U,K))Q[K]=U[K]}return Q},ew=function(Q,U){var F={};for(var W in Q)if(Object.prototype.hasOwnProperty.call(Q,W)&&U.indexOf(W)<0)F[W]=Q[W];if(Q!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var K=0,W=Object.getOwnPropertySymbols(Q);K<W.length;K++)if(U.indexOf(W[K])<0&&Object.prototype.propertyIsEnumerable.call(Q,W[K]))F[W[K]]=Q[W[K]]}return F},Dj=function(Q,U,F,W){var K=arguments.length,q=K<3?U:W===null?W=Object.getOwnPropertyDescriptor(U,F):W,G;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")q=Reflect.decorate(Q,U,F,W);else for(var Z=Q.length-1;Z>=0;Z--)if(G=Q[Z])q=(K<3?G(q):K>3?G(U,F,q):G(U,F))||q;return K>3&&q&&Object.defineProperty(U,F,q),q},$j=function(Q,U){return function(F,W){U(F,W,Q)}},Jj=function(Q,U,F,W,K,q){function G(A){if(A!==void 0&&typeof A!=="function")throw TypeError("Function expected");return A}var Z=W.kind,H=Z==="getter"?"get":Z==="setter"?"set":"value",z=!U&&Q?W.static?Q:Q.prototype:null,I=U||(z?Object.getOwnPropertyDescriptor(z,W.name):{}),B,N=!1;for(var V=F.length-1;V>=0;V--){var O={};for(var j in W)O[j]=j==="access"?{}:W[j];for(var j in W.access)O.access[j]=W.access[j];O.addInitializer=function(A){if(N)throw TypeError("Cannot add initializers after decoration has completed");q.push(G(A||null))};var v=(0,F[V])(Z==="accessor"?{get:I.get,set:I.set}:I[H],O);if(Z==="accessor"){if(v===void 0)continue;if(v===null||typeof v!=="object")throw TypeError("Object expected");if(B=G(v.get))I.get=B;if(B=G(v.set))I.set=B;if(B=G(v.init))K.unshift(B)}else if(B=G(v))if(Z==="field")K.unshift(B);else I[H]=B}if(z)Object.defineProperty(z,W.name,I);N=!0},Xj=function(Q,U,F){var W=arguments.length>2;for(var K=0;K<U.length;K++)F=W?U[K].call(Q,F):U[K].call(Q);return W?F:void 0},Yj=function(Q){return typeof Q==="symbol"?Q:"".concat(Q)},Qj=function(Q,U,F){if(typeof U==="symbol")U=U.description?"[".concat(U.description,"]"):"";return Object.defineProperty(Q,"name",{configurable:!0,value:F?"".concat(F," ",U):U})},Uj=function(Q,U){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(Q,U)},Fj=function(Q,U,F,W){function K(q){return q instanceof F?q:new F(function(G){G(q)})}return new(F||(F=Promise))(function(q,G){function Z(I){try{z(W.next(I))}catch(B){G(B)}}function H(I){try{z(W.throw(I))}catch(B){G(B)}}function z(I){I.done?q(I.value):K(I.value).then(Z,H)}z((W=W.apply(Q,U||[])).next())})},Wj=function(Q,U){var F={label:0,sent:function(){if(q[0]&1)throw q[1];return q[1]},trys:[],ops:[]},W,K,q,G=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return G.next=Z(0),G.throw=Z(1),G.return=Z(2),typeof Symbol==="function"&&(G[Symbol.iterator]=function(){return this}),G;function Z(z){return function(I){return H([z,I])}}function H(z){if(W)throw TypeError("Generator is already executing.");while(G&&(G=0,z[0]&&(F=0)),F)try{if(W=1,K&&(q=z[0]&2?K.return:z[0]?K.throw||((q=K.return)&&q.call(K),0):K.next)&&!(q=q.call(K,z[1])).done)return q;if(K=0,q)z=[z[0]&2,q.value];switch(z[0]){case 0:case 1:q=z;break;case 4:return F.label++,{value:z[1],done:!1};case 5:F.label++,K=z[1],z=[0];continue;case 7:z=F.ops.pop(),F.trys.pop();continue;default:if((q=F.trys,!(q=q.length>0&&q[q.length-1]))&&(z[0]===6||z[0]===2)){F=0;continue}if(z[0]===3&&(!q||z[1]>q[0]&&z[1]<q[3])){F.label=z[1];break}if(z[0]===6&&F.label<q[1]){F.label=q[1],q=z;break}if(q&&F.label<q[2]){F.label=q[2],F.ops.push(z);break}if(q[2])F.ops.pop();F.trys.pop();continue}z=U.call(Q,F)}catch(I){z=[6,I],K=0}finally{W=q=0}if(z[0]&5)throw z[1];return{value:z[0]?z[1]:void 0,done:!0}}},Kj=function(Q,U){for(var F in Q)if(F!=="default"&&!Object.prototype.hasOwnProperty.call(U,F))a3(U,Q,F)},a3=Object.create?function(Q,U,F,W){if(W===void 0)W=F;var K=Object.getOwnPropertyDescriptor(U,F);if(!K||("get"in K?!U.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return U[F]}};Object.defineProperty(Q,W,K)}:function(Q,U,F,W){if(W===void 0)W=F;Q[W]=U[F]},o3=function(Q){var U=typeof Symbol==="function"&&Symbol.iterator,F=U&&Q[U],W=0;if(F)return F.call(Q);if(Q&&typeof Q.length==="number")return{next:function(){if(Q&&W>=Q.length)Q=void 0;return{value:Q&&Q[W++],done:!Q}}};throw TypeError(U?"Object is not iterable.":"Symbol.iterator is not defined.")},TF=function(Q,U){var F=typeof Symbol==="function"&&Q[Symbol.iterator];if(!F)return Q;var W=F.call(Q),K,q=[],G;try{while((U===void 0||U-- >0)&&!(K=W.next()).done)q.push(K.value)}catch(Z){G={error:Z}}finally{try{if(K&&!K.done&&(F=W.return))F.call(W)}finally{if(G)throw G.error}}return q},qj=function(){for(var Q=[],U=0;U<arguments.length;U++)Q=Q.concat(TF(arguments[U]));return Q},Gj=function(){for(var Q=0,U=0,F=arguments.length;U<F;U++)Q+=arguments[U].length;for(var W=Array(Q),K=0,U=0;U<F;U++)for(var q=arguments[U],G=0,Z=q.length;G<Z;G++,K++)W[K]=q[G];return W},Zj=function(Q,U,F){if(F||arguments.length===2){for(var W=0,K=U.length,q;W<K;W++)if(q||!(W in U)){if(!q)q=Array.prototype.slice.call(U,0,W);q[W]=U[W]}}return Q.concat(q||Array.prototype.slice.call(U))},L8=function(Q){return this instanceof L8?(this.v=Q,this):new L8(Q)},zj=function(Q,U,F){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var W=F.apply(Q,U||[]),K,q=[];return K=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),Z("next"),Z("throw"),Z("return",G),K[Symbol.asyncIterator]=function(){return this},K;function G(V){return function(O){return Promise.resolve(O).then(V,B)}}function Z(V,O){if(W[V]){if(K[V]=function(j){return new Promise(function(v,A){q.push([V,j,v,A])>1||H(V,j)})},O)K[V]=O(K[V])}}function H(V,O){try{z(W[V](O))}catch(j){N(q[0][3],j)}}function z(V){V.value instanceof L8?Promise.resolve(V.value.v).then(I,B):N(q[0][2],V)}function I(V){H("next",V)}function B(V){H("throw",V)}function N(V,O){if(V(O),q.shift(),q.length)H(q[0][0],q[0][1])}},Hj=function(Q){var U,F;return U={},W("next"),W("throw",function(K){throw K}),W("return"),U[Symbol.iterator]=function(){return this},U;function W(K,q){U[K]=Q[K]?function(G){return(F=!F)?{value:L8(Q[K](G)),done:!1}:q?q(G):G}:q}},Ij=function(Q){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var U=Q[Symbol.asyncIterator],F;return U?U.call(Q):(Q=typeof o3==="function"?o3(Q):Q[Symbol.iterator](),F={},W("next"),W("throw"),W("return"),F[Symbol.asyncIterator]=function(){return this},F);function W(q){F[q]=Q[q]&&function(G){return new Promise(function(Z,H){G=Q[q](G),K(Z,H,G.done,G.value)})}}function K(q,G,Z,H){Promise.resolve(H).then(function(z){q({value:z,done:Z})},G)}},Bj=function(Q,U){if(Object.defineProperty)Object.defineProperty(Q,"raw",{value:U});else Q.raw=U;return Q};var J=Object.create?function(Q,U){Object.defineProperty(Q,"default",{enumerable:!0,value:U})}:function(Q,U){Q.default=U},X=function(Q){return X=Object.getOwnPropertyNames||function(U){var F=[];for(var W in U)if(Object.prototype.hasOwnProperty.call(U,W))F[F.length]=W;return F},X(Q)};Oj=function(Q){if(Q&&Q.__esModule)return Q;var U={};if(Q!=null){for(var F=X(Q),W=0;W<F.length;W++)if(F[W]!=="default")a3(U,Q,F[W])}return J(U,Q),U},Nj=function(Q){return Q&&Q.__esModule?Q:{default:Q}},Vj=function(Q,U,F,W){if(F==="a"&&!W)throw TypeError("Private accessor was defined without a getter");if(typeof U==="function"?Q!==U||!W:!U.has(Q))throw TypeError("Cannot read private member from an object whose class did not declare it");return F==="m"?W:F==="a"?W.call(Q):W?W.value:U.get(Q)},wj=function(Q,U,F,W,K){if(W==="m")throw TypeError("Private method is not writable");if(W==="a"&&!K)throw TypeError("Private accessor was defined without a setter");if(typeof U==="function"?Q!==U||!K:!U.has(Q))throw TypeError("Cannot write private member to an object whose class did not declare it");return W==="a"?K.call(Q,F):K?K.value=F:U.set(Q,F),F},jj=function(Q,U){if(U===null||typeof U!=="object"&&typeof U!=="function")throw TypeError("Cannot use 'in' operator on non-object");return typeof Q==="function"?U===Q:Q.has(U)},Lj=function(Q,U,F){if(U!==null&&U!==void 0){if(typeof U!=="object"&&typeof U!=="function")throw TypeError("Object expected.");var W,K;if(F){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");W=U[Symbol.asyncDispose]}if(W===void 0){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");if(W=U[Symbol.dispose],F)K=W}if(typeof W!=="function")throw TypeError("Object not disposable.");if(K)W=function(){try{K.call(this)}catch(q){return Promise.reject(q)}};Q.stack.push({value:U,dispose:W,async:F})}else if(F)Q.stack.push({async:!0});return U};var Y=typeof SuppressedError==="function"?SuppressedError:function(Q,U,F){var W=Error(F);return W.name="SuppressedError",W.error=Q,W.suppressed=U,W};Rj=function(Q){function U(q){Q.error=Q.hasError?new Y(q,Q.error,"An error was suppressed during disposal."):q,Q.hasError=!0}var F,W=0;function K(){while(F=Q.stack.pop())try{if(!F.async&&W===1)return W=0,Q.stack.push(F),Promise.resolve().then(K);if(F.dispose){var q=F.dispose.call(F.value);if(F.async)return W|=2,Promise.resolve(q).then(K,function(G){return U(G),K()})}else W|=1}catch(G){U(G)}if(W===1)return Q.hasError?Promise.reject(Q.error):Promise.resolve();if(Q.hasError)throw Q.error}return K()},Mj=function(Q,U){if(typeof Q==="string"&&/^\.\.?\//.test(Q))return Q.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(F,W,K,q,G){return W?U?".jsx":".js":K&&(!q||!G)?F:K+q+"."+G.toLowerCase()+"js"});return Q},D("__extends",aw),D("__assign",sw),D("__rest",ew),D("__decorate",Dj),D("__param",$j),D("__esDecorate",Jj),D("__runInitializers",Xj),D("__propKey",Yj),D("__setFunctionName",Qj),D("__metadata",Uj),D("__awaiter",Fj),D("__generator",Wj),D("__exportStar",Kj),D("__createBinding",a3),D("__values",o3),D("__read",TF),D("__spread",qj),D("__spreadArrays",Gj),D("__spreadArray",Zj),D("__await",L8),D("__asyncGenerator",zj),D("__asyncDelegator",Hj),D("__asyncValues",Ij),D("__makeTemplateObject",Bj),D("__importStar",Oj),D("__importDefault",Nj),D("__classPrivateFieldGet",Vj),D("__classPrivateFieldSet",wj),D("__classPrivateFieldIn",jj),D("__addDisposableResource",Lj),D("__disposeResources",Rj),D("__rewriteRelativeImportExtension",Mj)})});var Ej=k((Aj)=>{Object.defineProperty(Aj,"__esModule",{value:!0});Aj.resolveFetch=void 0;var Md=(D)=>{if(D)return(...$)=>D(...$);return(...$)=>fetch(...$)};Aj.resolveFetch=Md});var PF=k((Cj)=>{Object.defineProperty(Cj,"__esModule",{value:!0});Cj.FunctionRegion=Cj.FunctionsHttpError=Cj.FunctionsRelayError=Cj.FunctionsFetchError=Cj.FunctionsError=void 0;class l9 extends Error{constructor(D,$="FunctionsError",J){super(D);this.name=$,this.context=J}toJSON(){return{name:this.name,message:this.message,context:this.context}}}Cj.FunctionsError=l9;class Pj extends l9{constructor(D){super("Failed to send a request to the Edge Function","FunctionsFetchError",D)}}Cj.FunctionsFetchError=Pj;class bj extends l9{constructor(D){super("Relay Error invoking the Edge Function","FunctionsRelayError",D)}}Cj.FunctionsRelayError=bj;class Sj extends l9{constructor(D){super("Edge Function returned a non-2xx status code","FunctionsHttpError",D)}}Cj.FunctionsHttpError=Sj;var Tj;(function(D){D.Any="any",D.ApNortheast1="ap-northeast-1",D.ApNortheast2="ap-northeast-2",D.ApSouth1="ap-south-1",D.ApSoutheast1="ap-southeast-1",D.ApSoutheast2="ap-southeast-2",D.CaCentral1="ca-central-1",D.EuCentral1="eu-central-1",D.EuWest1="eu-west-1",D.EuWest2="eu-west-2",D.EuWest3="eu-west-3",D.SaEast1="sa-east-1",D.UsEast1="us-east-1",D.UsWest1="us-west-1",D.UsWest2="us-west-2"})(Tj||(Cj.FunctionRegion=Tj={}))});var xj=k((uj)=>{Object.defineProperty(uj,"__esModule",{value:!0});uj.FunctionsClient=void 0;var Pd=z$(),bd=Ej(),R8=PF();class _j{constructor(D,{headers:$={},customFetch:J,region:X=R8.FunctionRegion.Any}={}){this.url=D,this.headers=$,this.region=X,this.fetch=(0,bd.resolveFetch)(J)}setAuth(D){this.headers.Authorization=`Bearer ${D}`}invoke(D){return Pd.__awaiter(this,arguments,void 0,function*($,J={}){var X,Y;let Q,U,F;try{let{headers:W,method:K,body:q,signal:G,timeout:Z}=J,H={},{region:z}=J;if(!z)z=this.region;let I=new URL(`${this.url}/${$}`);if(z&&z!=="any")H["x-region"]=z,I.searchParams.set("forceFunctionRegion",z);let B,N=!!W&&Object.keys(W).some((C)=>C.toLowerCase()==="content-type");if(q&&!N)if(typeof Blob<"u"&&q instanceof Blob||q instanceof ArrayBuffer)H["Content-Type"]="application/octet-stream",B=q;else if(typeof q==="string")H["Content-Type"]="text/plain",B=q;else if(typeof FormData<"u"&&q instanceof FormData)B=q;else H["Content-Type"]="application/json",B=JSON.stringify(q);else if(q&&typeof q!=="string"&&!(typeof Blob<"u"&&q instanceof Blob)&&!(q instanceof ArrayBuffer)&&!(typeof FormData<"u"&&q instanceof FormData))B=JSON.stringify(q);else B=q;let V=G;if(Z)if(U=new AbortController,Q=setTimeout(()=>U.abort(),Z),G)V=U.signal,F=()=>U.abort(),G.addEventListener("abort",F);else V=U.signal;let O=yield this.fetch(I.toString(),{method:K||"POST",headers:Object.assign(Object.assign(Object.assign({},H),this.headers),W),body:B,signal:V}).catch((C)=>{throw new R8.FunctionsFetchError(C)}),j=O.headers.get("x-relay-error");if(j&&j==="true")throw new R8.FunctionsRelayError(O);if(!O.ok)throw new R8.FunctionsHttpError(O);let v=((X=O.headers.get("Content-Type"))!==null&&X!==void 0?X:"text/plain").split(";")[0].trim().toLowerCase(),A;if(v==="application/json")A=yield O.json();else if(v==="application/octet-stream"||v==="application/pdf")A=yield O.blob();else if(v==="text/event-stream")A=O;else if(v==="multipart/form-data")A=yield O.formData();else A=yield O.text();return{data:A,error:null,response:O}}catch(W){return{data:null,error:W,response:W instanceof R8.FunctionsHttpError||W instanceof R8.FunctionsRelayError?W.context:void 0}}finally{if(Q)clearTimeout(Q);if(F)(Y=J.signal)===null||Y===void 0||Y.removeEventListener("abort",F)}})}}uj.FunctionsClient=_j});var fj=k((J1)=>{Object.defineProperty(J1,"__esModule",{value:!0});J1.FunctionRegion=J1.FunctionsRelayError=J1.FunctionsHttpError=J1.FunctionsFetchError=J1.FunctionsError=J1.FunctionsClient=void 0;var Sd=xj();Object.defineProperty(J1,"FunctionsClient",{enumerable:!0,get:function(){return Sd.FunctionsClient}});var d9=PF();Object.defineProperty(J1,"FunctionsError",{enumerable:!0,get:function(){return d9.FunctionsError}});Object.defineProperty(J1,"FunctionsFetchError",{enumerable:!0,get:function(){return d9.FunctionsFetchError}});Object.defineProperty(J1,"FunctionsHttpError",{enumerable:!0,get:function(){return d9.FunctionsHttpError}});Object.defineProperty(J1,"FunctionsRelayError",{enumerable:!0,get:function(){return d9.FunctionsRelayError}});Object.defineProperty(J1,"FunctionRegion",{enumerable:!0,get:function(){return d9.FunctionRegion}})});function hj(D,$){return new Promise((J)=>{if($===null||$===void 0?void 0:$.aborted){J();return}let X=setTimeout(()=>{$===null||$===void 0||$.removeEventListener("abort",Y),J()},D);function Y(){clearTimeout(X),J()}$===null||$===void 0||$.addEventListener("abort",Y)})}function _d(D,$,J,X){if(!X||J>=3)return!1;if(!dj.includes(D))return!1;if(!kd.includes($))return!1;return!0}function i9(D){return i9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},i9(D)}function fd(D,$){if(i9(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var X=J.call(D,$||"default");if(i9(X)!="object")return X;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}function yd(D){var $=fd(D,"string");return i9($)=="symbol"?$:$+""}function hd(D,$,J){return($=yd($))in D?Object.defineProperty(D,$,{value:J,enumerable:!0,configurable:!0,writable:!0}):D[$]=J,D}function lj(D,$){var J=Object.keys(D);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(D);$&&(X=X.filter(function(Y){return Object.getOwnPropertyDescriptor(D,Y).enumerable})),J.push.apply(J,X)}return J}function e3(D){for(var $=1;$<arguments.length;$++){var J=arguments[$]!=null?arguments[$]:{};$%2?lj(Object(J),!0).forEach(function(X){hd(D,X,J[X])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(J)):lj(Object(J)).forEach(function(X){Object.defineProperty(D,X,Object.getOwnPropertyDescriptor(J,X))})}return D}var yj=(D)=>Math.min(1000*2**D,30000),kd,dj,bF,ud=class{constructor(D){var $,J,X,Y,Q;if(this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=D.method,this.url=D.url,this.headers=new Headers(D.headers),this.schema=D.schema,this.body=D.body,this.shouldThrowOnError=($=D.shouldThrowOnError)!==null&&$!==void 0?$:!1,this.signal=D.signal,this.isMaybeSingle=(J=D.isMaybeSingle)!==null&&J!==void 0?J:!1,this.shouldStripNulls=(X=D.shouldStripNulls)!==null&&X!==void 0?X:!1,this.urlLengthLimit=(Y=D.urlLengthLimit)!==null&&Y!==void 0?Y:8000,this.retryEnabled=(Q=D.retry)!==null&&Q!==void 0?Q:!0,D.fetch)this.fetch=D.fetch;else this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if(this.headers.get("Accept")==="text/csv")throw Error("stripNulls() cannot be used with csv()");return this.shouldStripNulls=!0,this}setHeader(D,$){return this.headers=new Headers(this.headers),this.headers.set(D,$),this}retry(D){return this.retryEnabled=D,this}then(D,$){var J=this;if(this.schema===void 0);else if(["GET","HEAD"].includes(this.method))this.headers.set("Accept-Profile",this.schema);else this.headers.set("Content-Profile",this.schema);if(this.method!=="GET"&&this.method!=="HEAD")this.headers.set("Content-Type","application/json");if(this.shouldStripNulls){let U=this.headers.get("Accept");if(U==="application/vnd.pgrst.object+json")this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped");else if(!U||U==="application/json")this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}let X=this.fetch,Q=(async()=>{let U=0;while(!0){let K={};if(J.headers.forEach((G,Z)=>{K[Z]=G}),U>0)K["X-Retry-Count"]=String(U);let q;try{q=await X(J.url.toString(),{method:J.method,headers:K,body:JSON.stringify(J.body,(G,Z)=>typeof Z==="bigint"?Z.toString():Z),signal:J.signal})}catch(G){if((G===null||G===void 0?void 0:G.name)==="AbortError"||(G===null||G===void 0?void 0:G.code)==="ABORT_ERR")throw G;if(!dj.includes(J.method))throw G;if(J.retryEnabled&&U<3){let Z=yj(U);U++,await hj(Z,J.signal);continue}throw G}if(_d(J.method,q.status,U,J.retryEnabled)){var F,W;let G=(F=(W=q.headers)===null||W===void 0?void 0:W.get("Retry-After"))!==null&&F!==void 0?F:null,Z=G!==null?Math.max(0,parseInt(G,10)||0)*1000:yj(U);await q.text(),U++,await hj(Z,J.signal);continue}return await J.processResponse(q)}})();if(!this.shouldThrowOnError)Q=Q.catch((U)=>{var F;let W="",K="",q="",G=U===null||U===void 0?void 0:U.cause;if(G){var Z,H,z,I;let V=(Z=G===null||G===void 0?void 0:G.message)!==null&&Z!==void 0?Z:"",O=(H=G===null||G===void 0?void 0:G.code)!==null&&H!==void 0?H:"";if(W=`${(z=U===null||U===void 0?void 0:U.name)!==null&&z!==void 0?z:"FetchError"}: ${U===null||U===void 0?void 0:U.message}`,W+=`
Caused by: ${(I=G===null||G===void 0?void 0:G.name)!==null&&I!==void 0?I:"Error"}: ${V}`,O)W+=` (${O})`;if(G===null||G===void 0?void 0:G.stack)W+=`
${G.stack}`}else{var B;W=(B=U===null||U===void 0?void 0:U.stack)!==null&&B!==void 0?B:""}let N=this.url.toString().length;if((U===null||U===void 0?void 0:U.name)==="AbortError"||(U===null||U===void 0?void 0:U.code)==="ABORT_ERR"){if(q="",K="Request was aborted (timeout or manual cancellation)",N>this.urlLengthLimit)K+=`. Note: Your request URL is ${N} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`}else if((G===null||G===void 0?void 0:G.name)==="HeadersOverflowError"||(G===null||G===void 0?void 0:G.code)==="UND_ERR_HEADERS_OVERFLOW"){if(q="",K="HTTP headers exceeded server limits (typically 16KB)",N>this.urlLengthLimit)K+=`. Your request URL is ${N} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`}return{success:!1,error:{message:`${(F=U===null||U===void 0?void 0:U.name)!==null&&F!==void 0?F:"FetchError"}: ${U===null||U===void 0?void 0:U.message}`,details:W,hint:K,code:q},data:null,count:null,status:0,statusText:""}});return Q.then(D,$)}async processResponse(D){var $=this;let J=null,X=null,Y=null,Q=D.status,U=D.statusText;if(D.ok){var F,W;if($.method!=="HEAD"){var K;let Z=await D.text();if(Z==="");else if($.headers.get("Accept")==="text/csv")X=Z;else if($.headers.get("Accept")&&((K=$.headers.get("Accept"))===null||K===void 0?void 0:K.includes("application/vnd.pgrst.plan+text")))X=Z;else try{X=JSON.parse(Z)}catch(H){if(J={message:Z},X=null,$.shouldThrowOnError)throw new bF({message:Z,details:"",hint:"",code:""})}}let q=(F=$.headers.get("Prefer"))===null||F===void 0?void 0:F.match(/count=(exact|planned|estimated)/),G=(W=D.headers.get("content-range"))===null||W===void 0?void 0:W.split("/");if(q&&G&&G.length>1)Y=parseInt(G[1]);if($.isMaybeSingle&&Array.isArray(X))if(X.length>1)J={code:"PGRST116",details:`Results contain ${X.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},X=null,Y=null,Q=406,U="Not Acceptable";else if(X.length===1)X=X[0];else X=null}else{let q=await D.text();try{if(J=JSON.parse(q),Array.isArray(J)&&D.status===404)X=[],J=null,Q=200,U="OK"}catch(G){if(D.status===404&&q==="")Q=204,U="No Content";else J={message:q}}if(J&&$.shouldThrowOnError)throw new bF(J)}return{success:J===null,error:J,data:X,count:Y,status:Q,statusText:U}}returns(){return this}overrideTypes(){return this}},gd,mj,M8,xd=class{constructor(D,{headers:$={},schema:J,fetch:X,urlLengthLimit:Y=8000,retry:Q}){this.url=D,this.headers=new Headers($),this.schema=J,this.fetch=X,this.urlLengthLimit=Y,this.retry=Q}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(D,$){let{head:J=!1,count:X}=$!==null&&$!==void 0?$:{},Y=J?"HEAD":"GET",Q=!1,U=(D!==null&&D!==void 0?D:"*").split("").map((K)=>{if(/\s/.test(K)&&!Q)return"";if(K==='"')Q=!Q;return K}).join(""),{url:F,headers:W}=this.cloneRequestState();if(F.searchParams.set("select",U),X)W.append("Prefer",`count=${X}`);return new M8({method:Y,url:F,headers:W,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(D,{count:$,defaultToNull:J=!0}={}){var X;let Y="POST",{url:Q,headers:U}=this.cloneRequestState();if($)U.append("Prefer",`count=${$}`);if(!J)U.append("Prefer","missing=default");if(Array.isArray(D)){let F=D.reduce((W,K)=>W.concat(Object.keys(K)),[]);if(F.length>0){let W=[...new Set(F)].map((K)=>`"${K}"`);Q.searchParams.set("columns",W.join(","))}}return new M8({method:"POST",url:Q,headers:U,schema:this.schema,body:D,fetch:(X=this.fetch)!==null&&X!==void 0?X:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(D,{onConflict:$,ignoreDuplicates:J=!1,count:X,defaultToNull:Y=!0}={}){var Q;let U="POST",{url:F,headers:W}=this.cloneRequestState();if(W.append("Prefer",`resolution=${J?"ignore":"merge"}-duplicates`),$!==void 0)F.searchParams.set("on_conflict",$);if(X)W.append("Prefer",`count=${X}`);if(!Y)W.append("Prefer","missing=default");if(Array.isArray(D)){let K=D.reduce((q,G)=>q.concat(Object.keys(G)),[]);if(K.length>0){let q=[...new Set(K)].map((G)=>`"${G}"`);F.searchParams.set("columns",q.join(","))}}return new M8({method:"POST",url:F,headers:W,schema:this.schema,body:D,fetch:(Q=this.fetch)!==null&&Q!==void 0?Q:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(D,{count:$}={}){var J;let X="PATCH",{url:Y,headers:Q}=this.cloneRequestState();if($)Q.append("Prefer",`count=${$}`);return new M8({method:"PATCH",url:Y,headers:Q,schema:this.schema,body:D,fetch:(J=this.fetch)!==null&&J!==void 0?J:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:D}={}){var $;let J="DELETE",{url:X,headers:Y}=this.cloneRequestState();if(D)Y.append("Prefer",`count=${D}`);return new M8({method:"DELETE",url:X,headers:Y,schema:this.schema,fetch:($=this.fetch)!==null&&$!==void 0?$:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}},ij=class D{constructor($,{headers:J={},schema:X,fetch:Y,timeout:Q,urlLengthLimit:U=8000,retry:F}={}){this.url=$,this.headers=new Headers(J),this.schemaName=X,this.urlLengthLimit=U;let W=Y!==null&&Y!==void 0?Y:globalThis.fetch;if(Q!==void 0&&Q>0)this.fetch=(K,q)=>{let G=new AbortController,Z=setTimeout(()=>G.abort(),Q),H=q===null||q===void 0?void 0:q.signal;if(H){if(H.aborted)return clearTimeout(Z),W(K,q);let z=()=>{clearTimeout(Z),G.abort()};return H.addEventListener("abort",z,{once:!0}),W(K,e3(e3({},q),{},{signal:G.signal})).finally(()=>{clearTimeout(Z),H.removeEventListener("abort",z)})}return W(K,e3(e3({},q),{},{signal:G.signal})).finally(()=>clearTimeout(Z))};else this.fetch=W;this.retry=F}from($){if(!$||typeof $!=="string"||$.trim()==="")throw Error("Invalid relation name: relation must be a non-empty string.");return new xd(new URL(`${this.url}/${$}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema($){return new D(this.url,{headers:this.headers,schema:$,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc($,J={},{head:X=!1,get:Y=!1,count:Q}={}){var U;let F,W=new URL(`${this.url}/rpc/${$}`),K,q=(H)=>H!==null&&typeof H==="object"&&(!Array.isArray(H)||H.some(q)),G=X&&Object.values(J).some(q);if(G)F="POST",K=J;else if(X||Y)F=X?"HEAD":"GET",Object.entries(J).filter(([H,z])=>z!==void 0).map(([H,z])=>[H,Array.isArray(z)?`{${z.join(",")}}`:`${z}`]).forEach(([H,z])=>{W.searchParams.append(H,z)});else F="POST",K=J;let Z=new Headers(this.headers);if(G)Z.set("Prefer",Q?`count=${Q},return=minimal`:"return=minimal");else if(Q)Z.set("Prefer",`count=${Q}`);return new M8({method:F,url:W,headers:Z,schema:this.schemaName,body:K,fetch:(U=this.fetch)!==null&&U!==void 0?U:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};var cj=S(()=>{kd=[520,503],dj=["GET","HEAD","OPTIONS"],bF=class extends Error{constructor(D){super(D.message);this.name="PostgrestError",this.details=D.details,this.hint=D.hint,this.code=D.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};gd=class extends ud{throwOnError(){return super.throwOnError()}select(D){let $=!1,J=(D!==null&&D!==void 0?D:"*").split("").map((X)=>{if(/\s/.test(X)&&!$)return"";if(X==='"')$=!$;return X}).join("");return this.url.searchParams.set("select",J),this.headers.append("Prefer","return=representation"),this}order(D,{ascending:$=!0,nullsFirst:J,foreignTable:X,referencedTable:Y=X}={}){let Q=Y?`${Y}.order`:"order",U=this.url.searchParams.get(Q);return this.url.searchParams.set(Q,`${U?`${U},`:""}${D}.${$?"asc":"desc"}${J===void 0?"":J?".nullsfirst":".nullslast"}`),this}limit(D,{foreignTable:$,referencedTable:J=$}={}){let X=typeof J>"u"?"limit":`${J}.limit`;return this.url.searchParams.set(X,`${D}`),this}range(D,$,{foreignTable:J,referencedTable:X=J}={}){let Y=typeof X>"u"?"offset":`${X}.offset`,Q=typeof X>"u"?"limit":`${X}.limit`;return this.url.searchParams.set(Y,`${D}`),this.url.searchParams.set(Q,`${$-D+1}`),this}abortSignal(D){return this.signal=D,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:D=!1,verbose:$=!1,settings:J=!1,buffers:X=!1,wal:Y=!1,format:Q="text"}={}){var U;let F=[D?"analyze":null,$?"verbose":null,J?"settings":null,X?"buffers":null,Y?"wal":null].filter(Boolean).join("|"),W=(U=this.headers.get("Accept"))!==null&&U!==void 0?U:"application/json";if(this.headers.set("Accept",`application/vnd.pgrst.plan+${Q}; for="${W}"; options=${F};`),Q==="json")return this;else return this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(D){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${D}`),this}},mj=new RegExp("[,()]"),M8=class extends gd{throwOnError(){return super.throwOnError()}eq(D,$){return this.url.searchParams.append(D,`eq.${$}`),this}neq(D,$){return this.url.searchParams.append(D,`neq.${$}`),this}gt(D,$){return this.url.searchParams.append(D,`gt.${$}`),this}gte(D,$){return this.url.searchParams.append(D,`gte.${$}`),this}lt(D,$){return this.url.searchParams.append(D,`lt.${$}`),this}lte(D,$){return this.url.searchParams.append(D,`lte.${$}`),this}like(D,$){return this.url.searchParams.append(D,`like.${$}`),this}likeAllOf(D,$){return this.url.searchParams.append(D,`like(all).{${$.join(",")}}`),this}likeAnyOf(D,$){return this.url.searchParams.append(D,`like(any).{${$.join(",")}}`),this}ilike(D,$){return this.url.searchParams.append(D,`ilike.${$}`),this}ilikeAllOf(D,$){return this.url.searchParams.append(D,`ilike(all).{${$.join(",")}}`),this}ilikeAnyOf(D,$){return this.url.searchParams.append(D,`ilike(any).{${$.join(",")}}`),this}regexMatch(D,$){return this.url.searchParams.append(D,`match.${$}`),this}regexIMatch(D,$){return this.url.searchParams.append(D,`imatch.${$}`),this}is(D,$){return this.url.searchParams.append(D,`is.${$}`),this}isDistinct(D,$){return this.url.searchParams.append(D,`isdistinct.${$}`),this}in(D,$){let J=Array.from(new Set($)).map((X)=>{if(typeof X==="string"&&mj.test(X))return`"${X}"`;else return`${X}`}).join(",");return this.url.searchParams.append(D,`in.(${J})`),this}notIn(D,$){let J=Array.from(new Set($)).map((X)=>{if(typeof X==="string"&&mj.test(X))return`"${X}"`;else return`${X}`}).join(",");return this.url.searchParams.append(D,`not.in.(${J})`),this}contains(D,$){if(typeof $==="string")this.url.searchParams.append(D,`cs.${$}`);else if(Array.isArray($))this.url.searchParams.append(D,`cs.{${$.join(",")}}`);else this.url.searchParams.append(D,`cs.${JSON.stringify($)}`);return this}containedBy(D,$){if(typeof $==="string")this.url.searchParams.append(D,`cd.${$}`);else if(Array.isArray($))this.url.searchParams.append(D,`cd.{${$.join(",")}}`);else this.url.searchParams.append(D,`cd.${JSON.stringify($)}`);return this}rangeGt(D,$){return this.url.searchParams.append(D,`sr.${$}`),this}rangeGte(D,$){return this.url.searchParams.append(D,`nxl.${$}`),this}rangeLt(D,$){return this.url.searchParams.append(D,`sl.${$}`),this}rangeLte(D,$){return this.url.searchParams.append(D,`nxr.${$}`),this}rangeAdjacent(D,$){return this.url.searchParams.append(D,`adj.${$}`),this}overlaps(D,$){if(typeof $==="string")this.url.searchParams.append(D,`ov.${$}`);else this.url.searchParams.append(D,`ov.{${$.join(",")}}`);return this}textSearch(D,$,{config:J,type:X}={}){let Y="";if(X==="plain")Y="pl";else if(X==="phrase")Y="ph";else if(X==="websearch")Y="w";let Q=J===void 0?"":`(${J})`;return this.url.searchParams.append(D,`${Y}fts${Q}.${$}`),this}match(D){return Object.entries(D).filter(([$,J])=>J!==void 0).forEach(([$,J])=>{this.url.searchParams.append($,`eq.${J}`)}),this}not(D,$,J){return this.url.searchParams.append(D,`not.${$}.${J}`),this}or(D,{foreignTable:$,referencedTable:J=$}={}){let X=J?`${J}.or`:"or";return this.url.searchParams.append(X,`(${D})`),this}filter(D,$,J){return this.url.searchParams.append(D,`${$}.${J}`),this}}});class SF{constructor(){}connect(){}disconnect(){}}function md(D,$,J){let X=new URL($,D);if(J){for(let[Y,Q]of Object.entries(J))if(Q!==void 0)X.searchParams.set(Y,Q)}return X.toString()}async function ld(D){if(!D||D.type==="none")return{};if(D.type==="bearer")return{Authorization:`Bearer ${D.token}`};if(D.type==="header")return{[D.name]:D.value};if(D.type==="custom")return await D.getHeaders();return{}}function dd(D){let $=D.fetchImpl??globalThis.fetch;return{async request({method:J,path:X,query:Y,body:Q,headers:U}){let F=md(D.baseUrl,X,Y),W=await ld(D.auth),K=await $(F,{method:J,headers:{...Q?{"Content-Type":"application/json"}:{},...W,...U},body:Q?JSON.stringify(Q):void 0}),q=await K.text(),G=(K.headers.get("content-type")||"").includes("application/json"),Z=G&&q?JSON.parse(q):q;if(!K.ok){let H=G?Z:void 0,z=H?.error;throw new c9(z?.message??`Request failed with status ${K.status}`,{status:K.status,icebergType:z?.type,icebergCode:z?.code,details:H})}return{status:K.status,headers:K.headers,data:Z}}}}function DJ(D){return D.join("\x1F")}function A8(D){return D.join("\x1F")}var c9,id=class{constructor(D,$=""){this.client=D,this.prefix=$}async listNamespaces(D){let $=D?{parent:DJ(D.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:$})).data.namespaces.map((X)=>({namespace:X}))}async createNamespace(D,$){let J={namespace:D.namespace,properties:$?.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:J})).data}async dropNamespace(D){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${DJ(D.namespace)}`})}async loadNamespaceMetadata(D){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${DJ(D.namespace)}`})).data.properties}}async namespaceExists(D){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${DJ(D.namespace)}`}),!0}catch($){if($ instanceof c9&&$.status===404)return!1;throw $}}async createNamespaceIfNotExists(D,$){try{return await this.createNamespace(D,$)}catch(J){if(J instanceof c9&&J.status===409)return;throw J}}},cd=class{constructor(D,$="",J){this.client=D,this.prefix=$,this.accessDelegation=J}async listTables(D){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${A8(D.namespace)}/tables`})).data.identifiers}async createTable(D,$){let J={};if(this.accessDelegation)J["X-Iceberg-Access-Delegation"]=this.accessDelegation;return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${A8(D.namespace)}/tables`,body:$,headers:J})).data.metadata}async updateTable(D,$){let J=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${A8(D.namespace)}/tables/${D.name}`,body:$});return{"metadata-location":J.data["metadata-location"],metadata:J.data.metadata}}async dropTable(D,$){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${A8(D.namespace)}/tables/${D.name}`,query:{purgeRequested:String($?.purge??!1)}})}async loadTable(D){let $={};if(this.accessDelegation)$["X-Iceberg-Access-Delegation"]=this.accessDelegation;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${A8(D.namespace)}/tables/${D.name}`,headers:$})).data.metadata}async tableExists(D){let $={};if(this.accessDelegation)$["X-Iceberg-Access-Delegation"]=this.accessDelegation;try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${A8(D.namespace)}/tables/${D.name}`,headers:$}),!0}catch(J){if(J instanceof c9&&J.status===404)return!1;throw J}}async createTableIfNotExists(D,$){try{return await this.createTable(D,$)}catch(J){if(J instanceof c9&&J.status===409)return await this.loadTable({namespace:D.namespace,name:$.name});throw J}}},pj=class{constructor(D){let $="v1";if(D.catalogName)$+=`/${D.catalogName}`;let J=D.baseUrl.endsWith("/")?D.baseUrl:`${D.baseUrl}/`;this.client=dd({baseUrl:J,auth:D.auth,fetchImpl:D.fetch}),this.accessDelegation=D.accessDelegation?.join(","),this.namespaceOps=new id(this.client,$),this.tableOps=new cd(this.client,$,this.accessDelegation)}async listNamespaces(D){return this.namespaceOps.listNamespaces(D)}async createNamespace(D,$){return this.namespaceOps.createNamespace(D,$)}async dropNamespace(D){await this.namespaceOps.dropNamespace(D)}async loadNamespaceMetadata(D){return this.namespaceOps.loadNamespaceMetadata(D)}async listTables(D){return this.tableOps.listTables(D)}async createTable(D,$){return this.tableOps.createTable(D,$)}async updateTable(D,$){return this.tableOps.updateTable(D,$)}async dropTable(D,$){await this.tableOps.dropTable(D,$)}async loadTable(D){return this.tableOps.loadTable(D)}async namespaceExists(D){return this.namespaceOps.namespaceExists(D)}async tableExists(D){return this.tableOps.tableExists(D)}async createNamespaceIfNotExists(D,$){return this.namespaceOps.createNamespaceIfNotExists(D,$)}async createTableIfNotExists(D,$){return this.tableOps.createTableIfNotExists(D,$)}};var nj=S(()=>{c9=class extends Error{constructor(D,$){super(D);this.name="IcebergError",this.status=$.status,this.icebergType=$.icebergType,this.icebergCode=$.icebergCode,this.details=$.details,this.isCommitStateUnknown=$.icebergType==="CommitStateUnknownException"||[500,502,504].includes($.status)&&$.icebergType?.includes("CommitState")===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}}});function n9(D){return n9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},n9(D)}function pd(D,$){if(n9(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var X=J.call(D,$||"default");if(n9(X)!="object")return X;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}function nd(D){var $=pd(D,"string");return n9($)=="symbol"?$:$+""}function rd(D,$,J){return($=nd($))in D?Object.defineProperty(D,$,{value:J,enumerable:!0,configurable:!0,writable:!0}):D[$]=J,D}function rj(D,$){var J=Object.keys(D);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(D);$&&(X=X.filter(function(Y){return Object.getOwnPropertyDescriptor(D,Y).enumerable})),J.push.apply(J,X)}return J}function GD(D){for(var $=1;$<arguments.length;$++){var J=arguments[$]!=null?arguments[$]:{};$%2?rj(Object(J),!0).forEach(function(X){rd(D,X,J[X])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(J)):rj(Object(J)).forEach(function(X){Object.defineProperty(D,X,Object.getOwnPropertyDescriptor(J,X))})}return D}function YJ(D){return typeof D==="object"&&D!==null&&"__isStorageError"in D}function JJ(D,$,J){let X=GD({},D),Y=$.toLowerCase();for(let Q of Object.keys(X))if(Q.toLowerCase()===Y)delete X[Q];return X[Y]=J,X}function td(D){let $={};for(let[J,X]of Object.entries(D))$[J.toLowerCase()]=X;return $}async function p9(D,$,J,X,Y,Q,U){return new Promise((F,W)=>{D(J,Di($,X,Y,Q)).then((K)=>{if(!K.ok)throw K;if(X===null||X===void 0?void 0:X.noResolveJson)return K;if(U==="vectors"){let q=K.headers.get("content-type");if(K.headers.get("content-length")==="0"||K.status===204)return{};if(!q||!q.includes("application/json"))return{}}return K.json()}).then((K)=>F(K)).catch((K)=>ed(K,W,X,U))})}function ej(D="storage"){return{get:async($,J,X,Y)=>{return p9($,"GET",J,X,Y,void 0,D)},post:async($,J,X,Y,Q)=>{return p9($,"POST",J,Y,Q,X,D)},put:async($,J,X,Y,Q)=>{return p9($,"PUT",J,Y,Q,X,D)},head:async($,J,X,Y)=>{return p9($,"HEAD",J,GD(GD({},X),{},{noResolveJson:!0}),Y,void 0,D)},remove:async($,J,X,Y,Q)=>{return p9($,"DELETE",J,Y,Q,X,D)}}}var XJ,$J,aj,od=(D)=>{if(D)return(...$)=>D(...$);return(...$)=>fetch(...$)},ad=(D)=>{if(typeof D!=="object"||D===null)return!1;let $=Object.getPrototypeOf(D);return($===null||$===Object.prototype||Object.getPrototypeOf($)===null)&&!(Symbol.toStringTag in D)&&!(Symbol.iterator in D)},kF=(D)=>{if(Array.isArray(D))return D.map((J)=>kF(J));else if(typeof D==="function"||D!==Object(D))return D;let $={};return Object.entries(D).forEach(([J,X])=>{let Y=J.replace(/([-_][a-z])/gi,(Q)=>Q.toUpperCase().replace(/[-_]/g,""));$[Y]=kF(X)}),$},sd=(D)=>{if(!D||typeof D!=="string")return!1;if(D.length===0||D.length>100)return!1;if(D.trim()!==D)return!1;if(D.includes("/")||D.includes("\\"))return!1;return/^[\w!.\*'() &$@=;:+,?-]+$/.test(D)},sj=(D)=>D.split("/").map(encodeURIComponent).join("/"),tj=(D)=>{if(typeof D==="object"&&D!==null){let $=D;if(typeof $.msg==="string")return $.msg;if(typeof $.message==="string")return $.message;if(typeof $.error_description==="string")return $.error_description;if(typeof $.error==="string")return $.error;if(typeof $.error==="object"&&$.error!==null){let J=$.error;if(typeof J.message==="string")return J.message}}return JSON.stringify(D)},ed=async(D,$,J,X)=>{if(D!==null&&typeof D==="object"&&"json"in D&&typeof D.json==="function"){let Y=D,Q=parseInt(String(Y.status),10);if(!Number.isFinite(Q))Q=500;Y.json().then((U)=>{let F=(U===null||U===void 0?void 0:U.statusCode)||(U===null||U===void 0?void 0:U.code)||Q+"";$(new $J(tj(U),Q,F,X))}).catch(()=>{let U=Q+"";$(new $J(Y.statusText||`HTTP ${Q} error`,Q,U,X))})}else $(new aj(tj(D),D,X))},Di=(D,$,J,X)=>{let Y={method:D,headers:($===null||$===void 0?void 0:$.headers)||{}};if(D==="GET"||D==="HEAD"||!X)return GD(GD({},Y),J);if(ad(X)){var Q;let U=($===null||$===void 0?void 0:$.headers)||{},F;for(let[W,K]of Object.entries(U))if(W.toLowerCase()==="content-type")F=K;Y.headers=JJ(U,"Content-Type",(Q=F)!==null&&Q!==void 0?Q:"application/json"),Y.body=JSON.stringify(X)}else Y.body=X;if($===null||$===void 0?void 0:$.duplex)Y.duplex=$.duplex;return GD(GD({},Y),J)},$i,r9,e$,_F,Ji,t9,R$,v8=class{constructor(D,$={},J,X="storage"){this.shouldThrowOnError=!1,this.url=D,this.headers=td($),this.fetch=od(J),this.namespace=X}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(D,$){return this.headers=JJ(this.headers,D,$),this}async handleOperation(D){var $=this;try{return{data:await D(),error:null}}catch(J){if($.shouldThrowOnError)throw J;if(YJ(J))return{data:null,error:J};throw J}}},DL,Xi=class{constructor(D,$){this.downloadFn=D,this.shouldThrowOnError=$,this[DL]="StreamDownloadBuilder",this.promise=null}then(D,$){return this.getPromise().then(D,$)}catch(D){return this.getPromise().catch(D)}finally(D){return this.getPromise().finally(D)}getPromise(){if(!this.promise)this.promise=this.execute();return this.promise}async execute(){var D=this;try{return{data:(await D.downloadFn()).body,error:null}}catch($){if(D.shouldThrowOnError)throw $;if(YJ($))return{data:null,error:$};throw $}}},$L,Yi=class{constructor(D,$){this.downloadFn=D,this.shouldThrowOnError=$,this[$L]="BlobDownloadBuilder",this.promise=null}asStream(){return new Xi(this.downloadFn,this.shouldThrowOnError)}then(D,$){return this.getPromise().then(D,$)}catch(D){return this.getPromise().catch(D)}finally(D){return this.getPromise().finally(D)}getPromise(){if(!this.promise)this.promise=this.execute();return this.promise}async execute(){var D=this;try{return{data:await(await D.downloadFn()).blob(),error:null}}catch($){if(D.shouldThrowOnError)throw $;if(YJ($))return{data:null,error:$};throw $}}},CF,oj,Qi,Ui="2.110.8",o9,Fi,Wi,Ki,qi,Gi,Zi,zi,Hi,JL;var XL=S(()=>{nj();XJ=class extends Error{constructor(D,$="storage",J,X){super(D);this.__isStorageError=!0,this.namespace=$,this.name=$==="vectors"?"StorageVectorsError":"StorageError",this.status=J,this.statusCode=X}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};$J=class extends XJ{constructor(D,$,J,X="storage"){super(D,X,$,J);this.name=X==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=$,this.statusCode=J}toJSON(){return GD({},super.toJSON())}},aj=class extends XJ{constructor(D,$,J="storage"){super(D,J);this.name=J==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=$}};$i=ej("storage"),{get:r9,post:e$,put:_F,head:Ji,remove:t9}=$i,R$=ej("vectors");DL=Symbol.toStringTag;$L=Symbol.toStringTag;CF={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},oj={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1},Qi=class extends v8{constructor(D,$={},J,X){super(D,$,X,"storage");this.bucketId=J}async uploadOrUpdate(D,$,J,X){var Y=this;return Y.handleOperation(async()=>{let Q,U=GD(GD({},oj),X),F=GD(GD({},Y.headers),D==="POST"&&{"x-upsert":String(U.upsert)}),W=U.metadata;if(typeof Blob<"u"&&J instanceof Blob){if(Q=new FormData,Q.append("cacheControl",U.cacheControl),W)Q.append("metadata",Y.encodeMetadata(W));Q.append("",J)}else if(typeof FormData<"u"&&J instanceof FormData){if(Q=J,!Q.has("cacheControl"))Q.append("cacheControl",U.cacheControl);if(W&&!Q.has("metadata"))Q.append("metadata",Y.encodeMetadata(W))}else{if(Q=J,F["cache-control"]=`max-age=${U.cacheControl}`,F["content-type"]=U.contentType,W)F["x-metadata"]=Y.toBase64(Y.encodeMetadata(W));if((typeof ReadableStream<"u"&&Q instanceof ReadableStream||Q&&typeof Q==="object"&&("pipe"in Q)&&typeof Q.pipe==="function")&&!U.duplex)U.duplex="half"}if(X===null||X===void 0?void 0:X.headers)for(let[Z,H]of Object.entries(X.headers))F=JJ(F,Z,H);let K=Y._removeEmptyFolders($),q=Y._getFinalPath(K),G=await(D=="PUT"?_F:e$)(Y.fetch,`${Y.url}/object/${q}`,Q,GD({headers:F},(U===null||U===void 0?void 0:U.duplex)?{duplex:U.duplex}:{}));return{path:K,id:G.Id,fullPath:G.Key}})}async upload(D,$,J){return this.uploadOrUpdate("POST",D,$,J)}async uploadToSignedUrl(D,$,J,X){var Y=this;let Q=Y._removeEmptyFolders(D),U=Y._getFinalPath(Q),F=new URL(Y.url+`/object/upload/sign/${U}`);return F.searchParams.set("token",$),Y.handleOperation(async()=>{let W,K=GD(GD({},oj),X),q=GD(GD({},Y.headers),{"x-upsert":String(K.upsert)}),G=K.metadata;if(typeof Blob<"u"&&J instanceof Blob){if(W=new FormData,W.append("cacheControl",K.cacheControl),G)W.append("metadata",Y.encodeMetadata(G));W.append("",J)}else if(typeof FormData<"u"&&J instanceof FormData){if(W=J,!W.has("cacheControl"))W.append("cacheControl",K.cacheControl);if(G&&!W.has("metadata"))W.append("metadata",Y.encodeMetadata(G))}else{if(W=J,q["cache-control"]=`max-age=${K.cacheControl}`,q["content-type"]=K.contentType,G)q["x-metadata"]=Y.toBase64(Y.encodeMetadata(G));if((typeof ReadableStream<"u"&&W instanceof ReadableStream||W&&typeof W==="object"&&("pipe"in W)&&typeof W.pipe==="function")&&!K.duplex)K.duplex="half"}if(X===null||X===void 0?void 0:X.headers)for(let[Z,H]of Object.entries(X.headers))q=JJ(q,Z,H);return{path:Q,fullPath:(await _F(Y.fetch,F.toString(),W,GD({headers:q},(K===null||K===void 0?void 0:K.duplex)?{duplex:K.duplex}:{}))).Key}})}async createSignedUploadUrl(D,$){var J=this;return J.handleOperation(async()=>{let X=J._getFinalPath(D),Y=GD({},J.headers);if($===null||$===void 0?void 0:$.upsert)Y["x-upsert"]="true";let Q=await e$(J.fetch,`${J.url}/object/upload/sign/${X}`,{},{headers:Y}),U=new URL(J.url+Q.url),F=U.searchParams.get("token");if(!F)throw new XJ("No token returned by API");return{signedUrl:U.toString(),path:D,token:F}})}async update(D,$,J){return this.uploadOrUpdate("PUT",D,$,J)}async move(D,$,J){var X=this;return X.handleOperation(async()=>{return await e$(X.fetch,`${X.url}/object/move`,{bucketId:X.bucketId,sourceKey:D,destinationKey:$,destinationBucket:J===null||J===void 0?void 0:J.destinationBucket},{headers:X.headers})})}async copy(D,$,J){var X=this;return X.handleOperation(async()=>{return{path:(await e$(X.fetch,`${X.url}/object/copy`,{bucketId:X.bucketId,sourceKey:D,destinationKey:$,destinationBucket:J===null||J===void 0?void 0:J.destinationBucket},{headers:X.headers})).Key}})}async createSignedUrl(D,$,J){var X=this;return X.handleOperation(async()=>{let Y=X._getFinalPath(D),Q=typeof(J===null||J===void 0?void 0:J.transform)==="object"&&J.transform!==null&&Object.keys(J.transform).length>0,U=await e$(X.fetch,`${X.url}/object/sign/${Y}`,GD({expiresIn:$},Q?{transform:J.transform}:{}),{headers:X.headers}),F=new URLSearchParams;if(J===null||J===void 0?void 0:J.download)F.set("download",J.download===!0?"":J.download);if((J===null||J===void 0?void 0:J.cacheNonce)!=null)F.set("cacheNonce",String(J.cacheNonce));let W=F.toString();return{signedUrl:encodeURI(`${X.url}${U.signedURL}${W?`&${W}`:""}`)}})}async createSignedUrls(D,$,J){var X=this;return X.handleOperation(async()=>{let Y=await e$(X.fetch,`${X.url}/object/sign/${X.bucketId}`,{expiresIn:$,paths:D},{headers:X.headers}),Q=new URLSearchParams;if(J===null||J===void 0?void 0:J.download)Q.set("download",J.download===!0?"":J.download);if((J===null||J===void 0?void 0:J.cacheNonce)!=null)Q.set("cacheNonce",String(J.cacheNonce));let U=Q.toString();return Y.map((F)=>GD(GD({},F),{},{signedUrl:F.signedURL?encodeURI(`${X.url}${F.signedURL}${U?`&${U}`:""}`):null}))})}download(D,$,J){let X=typeof($===null||$===void 0?void 0:$.transform)==="object"&&$.transform!==null&&Object.keys($.transform).length>0?"render/image/authenticated":"object",Y=new URLSearchParams;if($===null||$===void 0?void 0:$.transform)this.applyTransformOptsToQuery(Y,$.transform);if(($===null||$===void 0?void 0:$.cacheNonce)!=null)Y.set("cacheNonce",String($.cacheNonce));let Q=Y.toString(),U=this._getFinalPath(D);return new Yi(()=>r9(this.fetch,`${this.url}/${X}/${U}${Q?`?${Q}`:""}`,{headers:this.headers,noResolveJson:!0},J),this.shouldThrowOnError)}async info(D){var $=this;let J=$._getFinalPath(D);return $.handleOperation(async()=>{return kF(await r9($.fetch,`${$.url}/object/info/${J}`,{headers:$.headers}))})}async exists(D){var $=this;let J=$._getFinalPath(D);try{return await Ji($.fetch,`${$.url}/object/${J}`,{headers:$.headers}),{data:!0,error:null}}catch(Y){if($.shouldThrowOnError)throw Y;if(YJ(Y)){var X;let Q=Y instanceof $J?Y.status:Y instanceof aj?(X=Y.originalError)===null||X===void 0?void 0:X.status:void 0;if(Q!==void 0&&[400,404].includes(Q))return{data:!1,error:Y}}throw Y}}getPublicUrl(D,$){let J=this._getFinalPath(D),X=new URLSearchParams;if($===null||$===void 0?void 0:$.download)X.set("download",$.download===!0?"":$.download);if($===null||$===void 0?void 0:$.transform)this.applyTransformOptsToQuery(X,$.transform);if(($===null||$===void 0?void 0:$.cacheNonce)!=null)X.set("cacheNonce",String($.cacheNonce));let Y=X.toString(),Q=typeof($===null||$===void 0?void 0:$.transform)==="object"&&$.transform!==null&&Object.keys($.transform).length>0?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${Q}/public/${J}`)+(Y?`?${Y}`:"")}}}async remove(D){var $=this;return $.handleOperation(async()=>{return await t9($.fetch,`${$.url}/object/${$.bucketId}`,{prefixes:D},{headers:$.headers})})}async purgeCache(D,$,J){var X=this;return X.handleOperation(async()=>{let Y=sj(X._getFinalPath(D)),Q=new URLSearchParams;if($===null||$===void 0?void 0:$.transformations)Q.set("transformations","true");let U=Q.toString();return await t9(X.fetch,`${X.url}/cdn/${Y}${U?`?${U}`:""}`,{},{headers:X.headers},J)})}async list(D,$,J){var X=this;return X.handleOperation(async()=>{let Y=($===null||$===void 0?void 0:$.sortBy)?GD(GD({},CF.sortBy),$.sortBy):CF.sortBy,Q=GD(GD(GD({},CF),$),{},{sortBy:Y,prefix:D||""});return await e$(X.fetch,`${X.url}/object/list/${X.bucketId}`,Q,{headers:X.headers},J)})}async listV2(D,$){var J=this;return J.handleOperation(async()=>{let X=GD({},D);return await e$(J.fetch,`${J.url}/object/list-v2/${J.bucketId}`,X,{headers:J.headers},$)})}encodeMetadata(D){return JSON.stringify(D)}toBase64(D){if(typeof Buffer<"u")return Buffer.from(D).toString("base64");return btoa(D)}_getFinalPath(D){return`${this.bucketId}/${D.replace(/^\/+/,"")}`}_removeEmptyFolders(D){return D.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}applyTransformOptsToQuery(D,$){if($.width)D.set("width",$.width.toString());if($.height)D.set("height",$.height.toString());if($.resize)D.set("resize",$.resize);if($.format)D.set("format",$.format);if($.quality)D.set("quality",$.quality.toString());return D}},o9={"X-Client-Info":`storage-js/${Ui}`},Fi=class extends v8{constructor(D,$={},J,X){let Y=new URL(D);if(X===null||X===void 0?void 0:X.useNewHostname){if(/supabase\.(co|in|red)$/.test(Y.hostname)&&!Y.hostname.includes("storage.supabase."))Y.hostname=Y.hostname.replace("supabase.","storage.supabase.")}let Q=Y.href.replace(/\/$/,""),U=GD(GD({},o9),$);super(Q,U,J,"storage")}async listBuckets(D){var $=this;return $.handleOperation(async()=>{let J=$.listBucketOptionsToQueryString(D);return await r9($.fetch,`${$.url}/bucket${J}`,{headers:$.headers})})}async getBucket(D){var $=this;return $.handleOperation(async()=>{return await r9($.fetch,`${$.url}/bucket/${D}`,{headers:$.headers})})}async createBucket(D,$={public:!1}){var J=this;return J.handleOperation(async()=>{return await e$(J.fetch,`${J.url}/bucket`,{id:D,name:D,type:$.type,public:$.public,file_size_limit:$.fileSizeLimit,allowed_mime_types:$.allowedMimeTypes},{headers:J.headers})})}async updateBucket(D,$){var J=this;return J.handleOperation(async()=>{return await _F(J.fetch,`${J.url}/bucket/${D}`,{id:D,name:D,public:$.public,file_size_limit:$.fileSizeLimit,allowed_mime_types:$.allowedMimeTypes},{headers:J.headers})})}async emptyBucket(D){var $=this;return $.handleOperation(async()=>{return await e$($.fetch,`${$.url}/bucket/${D}/empty`,{},{headers:$.headers})})}async deleteBucket(D){var $=this;return $.handleOperation(async()=>{return await t9($.fetch,`${$.url}/bucket/${D}`,{},{headers:$.headers})})}async purgeBucketCache(D,$,J){var X=this;return X.handleOperation(async()=>{let Y=new URLSearchParams;if($===null||$===void 0?void 0:$.transformations)Y.set("transformations","true");let Q=Y.toString();return await t9(X.fetch,`${X.url}/cdn/${sj(D)}${Q?`?${Q}`:""}`,{},{headers:X.headers},J)})}listBucketOptionsToQueryString(D){let $={};if(D){if("limit"in D)$.limit=String(D.limit);if("offset"in D)$.offset=String(D.offset);if(D.search)$.search=D.search;if(D.sortColumn)$.sortColumn=D.sortColumn;if(D.sortOrder)$.sortOrder=D.sortOrder}return Object.keys($).length>0?"?"+new URLSearchParams($).toString():""}},Wi=class extends v8{constructor(D,$={},J){let X=D.replace(/\/$/,""),Y=GD(GD({},o9),$);super(X,Y,J,"storage")}async createBucket(D){var $=this;return $.handleOperation(async()=>{return await e$($.fetch,`${$.url}/bucket`,{name:D},{headers:$.headers})})}async listBuckets(D){var $=this;return $.handleOperation(async()=>{let J=new URLSearchParams;if((D===null||D===void 0?void 0:D.limit)!==void 0)J.set("limit",D.limit.toString());if((D===null||D===void 0?void 0:D.offset)!==void 0)J.set("offset",D.offset.toString());if(D===null||D===void 0?void 0:D.sortColumn)J.set("sortColumn",D.sortColumn);if(D===null||D===void 0?void 0:D.sortOrder)J.set("sortOrder",D.sortOrder);if(D===null||D===void 0?void 0:D.search)J.set("search",D.search);let X=J.toString(),Y=X?`${$.url}/bucket?${X}`:`${$.url}/bucket`;return await r9($.fetch,Y,{headers:$.headers})})}async deleteBucket(D){var $=this;return $.handleOperation(async()=>{return await t9($.fetch,`${$.url}/bucket/${D}`,{},{headers:$.headers})})}from(D){var $=this;if(!sd(D))throw new XJ("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");let J=new pj({baseUrl:this.url,catalogName:D,auth:{type:"custom",getHeaders:async()=>$.headers},fetch:this.fetch}),X=this.shouldThrowOnError;return new Proxy(J,{get(Y,Q){let U=Y[Q];if(typeof U!=="function")return U;return async(...F)=>{try{return{data:await U.apply(Y,F),error:null}}catch(W){if(X)throw W;return{data:null,error:W}}}}})}},Ki=class extends v8{constructor(D,$={},J){let X=D.replace(/\/$/,""),Y=GD(GD({},o9),{},{"Content-Type":"application/json"},$);super(X,Y,J,"vectors")}async createIndex(D){var $=this;return $.handleOperation(async()=>{return await R$.post($.fetch,`${$.url}/CreateIndex`,D,{headers:$.headers})||{}})}async getIndex(D,$){var J=this;return J.handleOperation(async()=>{return await R$.post(J.fetch,`${J.url}/GetIndex`,{vectorBucketName:D,indexName:$},{headers:J.headers})})}async listIndexes(D){var $=this;return $.handleOperation(async()=>{return await R$.post($.fetch,`${$.url}/ListIndexes`,D,{headers:$.headers})})}async deleteIndex(D,$){var J=this;return J.handleOperation(async()=>{return await R$.post(J.fetch,`${J.url}/DeleteIndex`,{vectorBucketName:D,indexName:$},{headers:J.headers})||{}})}},qi=class extends v8{constructor(D,$={},J){let X=D.replace(/\/$/,""),Y=GD(GD({},o9),{},{"Content-Type":"application/json"},$);super(X,Y,J,"vectors")}async putVectors(D){var $=this;if(D.vectors.length<1||D.vectors.length>500)throw Error("Vector batch size must be between 1 and 500 items");return $.handleOperation(async()=>{return await R$.post($.fetch,`${$.url}/PutVectors`,D,{headers:$.headers})||{}})}async getVectors(D){var $=this;return $.handleOperation(async()=>{return await R$.post($.fetch,`${$.url}/GetVectors`,D,{headers:$.headers})})}async listVectors(D){var $=this;if(D.segmentCount!==void 0){if(D.segmentCount<1||D.segmentCount>16)throw Error("segmentCount must be between 1 and 16");if(D.segmentIndex!==void 0){if(D.segmentIndex<0||D.segmentIndex>=D.segmentCount)throw Error(`segmentIndex must be between 0 and ${D.segmentCount-1}`)}}return $.handleOperation(async()=>{return await R$.post($.fetch,`${$.url}/ListVectors`,D,{headers:$.headers})})}async queryVectors(D){var $=this;return $.handleOperation(async()=>{return await R$.post($.fetch,`${$.url}/QueryVectors`,D,{headers:$.headers})})}async deleteVectors(D){var $=this;if(D.keys.length<1||D.keys.length>500)throw Error("Keys batch size must be between 1 and 500 items");return $.handleOperation(async()=>{return await R$.post($.fetch,`${$.url}/DeleteVectors`,D,{headers:$.headers})||{}})}},Gi=class extends v8{constructor(D,$={},J){let X=D.replace(/\/$/,""),Y=GD(GD({},o9),{},{"Content-Type":"application/json"},$);super(X,Y,J,"vectors")}async createBucket(D){var $=this;return $.handleOperation(async()=>{return await R$.post($.fetch,`${$.url}/CreateVectorBucket`,{vectorBucketName:D},{headers:$.headers})||{}})}async getBucket(D){var $=this;return $.handleOperation(async()=>{return await R$.post($.fetch,`${$.url}/GetVectorBucket`,{vectorBucketName:D},{headers:$.headers})})}async listBuckets(D={}){var $=this;return $.handleOperation(async()=>{return await R$.post($.fetch,`${$.url}/ListVectorBuckets`,D,{headers:$.headers})})}async deleteBucket(D){var $=this;return $.handleOperation(async()=>{return await R$.post($.fetch,`${$.url}/DeleteVectorBucket`,{vectorBucketName:D},{headers:$.headers})||{}})}},Zi=class extends Gi{constructor(D,$={}){super(D,$.headers||{},$.fetch)}from(D){return new zi(this.url,this.headers,D,this.fetch)}async createBucket(D){var $=()=>super.createBucket,J=this;return $().call(J,D)}async getBucket(D){var $=()=>super.getBucket,J=this;return $().call(J,D)}async listBuckets(D={}){var $=()=>super.listBuckets,J=this;return $().call(J,D)}async deleteBucket(D){var $=()=>super.deleteBucket,J=this;return $().call(J,D)}},zi=class extends Ki{constructor(D,$,J,X){super(D,$,X);this.vectorBucketName=J}async createIndex(D){var $=()=>super.createIndex,J=this;return $().call(J,GD(GD({},D),{},{vectorBucketName:J.vectorBucketName}))}async listIndexes(D={}){var $=()=>super.listIndexes,J=this;return $().call(J,GD(GD({},D),{},{vectorBucketName:J.vectorBucketName}))}async getIndex(D){var $=()=>super.getIndex,J=this;return $().call(J,J.vectorBucketName,D)}async deleteIndex(D){var $=()=>super.deleteIndex,J=this;return $().call(J,J.vectorBucketName,D)}index(D){return new Hi(this.url,this.headers,this.vectorBucketName,D,this.fetch)}},Hi=class extends qi{constructor(D,$,J,X,Y){super(D,$,Y);this.vectorBucketName=J,this.indexName=X}async putVectors(D){var $=()=>super.putVectors,J=this;return $().call(J,GD(GD({},D),{},{vectorBucketName:J.vectorBucketName,indexName:J.indexName}))}async getVectors(D){var $=()=>super.getVectors,J=this;return $().call(J,GD(GD({},D),{},{vectorBucketName:J.vectorBucketName,indexName:J.indexName}))}async listVectors(D={}){var $=()=>super.listVectors,J=this;return $().call(J,GD(GD({},D),{},{vectorBucketName:J.vectorBucketName,indexName:J.indexName}))}async queryVectors(D){var $=()=>super.queryVectors,J=this;return $().call(J,GD(GD({},D),{},{vectorBucketName:J.vectorBucketName,indexName:J.indexName}))}async deleteVectors(D){var $=()=>super.deleteVectors,J=this;return $().call(J,GD(GD({},D),{},{vectorBucketName:J.vectorBucketName,indexName:J.indexName}))}},JL=class extends Fi{constructor(D,$={},J,X){super(D,$,J,X)}from(D){return new Qi(this.url,this.headers,D,this.fetch)}get vectors(){return new Zi(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new Wi(this.url+"/iceberg",this.headers,this.fetch)}}});class YL{constructor(D){return this.options=D,new Proxy(this,Bi)}}var Ii=()=>Promise.resolve({data:{session:null,user:null},error:null}),Bi,uF;var gF=S(()=>{Bi={get:(D,$)=>{if($==="constructor")return D.constructor;if($==="then"||$==="catch"||$==="finally")return;if(typeof $==="symbol")return;if($==="getSession")return()=>Promise.resolve({data:{session:null,user:null},error:null});if($==="onAuthStateChange")return()=>({data:{subscription:{unsubscribe:()=>{}}},error:null});return Ii}};uF=class uF extends YL{}});function Mi(D,$,J,X){function Y(Q){return Q instanceof J?Q:new J(function(U){U(Q)})}return new(J||(J=Promise))(function(Q,U){function F(q){try{K(X.next(q))}catch(G){U(G)}}function W(q){try{K(X.throw(q))}catch(G){U(G)}}function K(q){q.done?Q(q.value):Y(q.value).then(F,W)}K((X=X.apply(D,$||[])).next())})}function vi(){if(xF===null)xF=import(Ai).catch(()=>null);return xF}function Ei(){return Mi(this,void 0,void 0,function*(){try{let D=yield vi();if(!D||!D.propagation||!D.context)return null;let $={};D.propagation.inject(D.context.active(),$);let J=$.traceparent;if(!J)return null;return{traceparent:J,tracestate:$.tracestate,baggage:$.baggage}}catch(D){return null}})}function Ti(D){if(!D||typeof D!=="string")return null;let $=D.split("-");if($.length!==4)return null;let[J,X,Y,Q]=$;if(J.length!==2||X.length!==32||Y.length!==16||Q.length!==2)return null;let U=/^[0-9a-f]+$/i;if(!U.test(J)||!U.test(X)||!U.test(Y)||!U.test(Q))return null;if(X==="00000000000000000000000000000000"||Y==="0000000000000000")return null;return{version:J,traceId:X,parentId:Y,traceFlags:Q,isSampled:(parseInt(Q,16)&1)===1}}function Pi(D,$){if(!D||!$||$.length===0)return!1;let J;if(D instanceof URL)J=D;else try{J=new URL(D)}catch(X){return!1}for(let X of $)try{if(typeof X==="string"){if(bi(J.hostname,X))return!0}else if(X instanceof RegExp){if(X.test(J.hostname))return!0}else if(typeof X==="function"){if(X(J))return!0}}catch(Y){continue}return!1}function bi(D,$){if($===D)return!0;if($.startsWith("*.")){let J=$.slice(2);if(D.endsWith(J)){if(D===J||D.endsWith("."+J))return!0}}return!1}function Si(D){let $=[];try{let J=new URL(D);$.push(J.hostname)}catch(J){}return $.push("*.supabase.co","*.supabase.in"),$.push("localhost","127.0.0.1","[::1]"),$}function D5(D){return D5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},D5(D)}function Ci(D,$){if(D5(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var X=J.call(D,$||"default");if(D5(X)!="object")return X;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}function ki(D){var $=Ci(D,"string");return D5($)=="symbol"?$:$+""}function _i(D,$,J){return($=ki($))in D?Object.defineProperty(D,$,{value:J,enumerable:!0,configurable:!0,writable:!0}):D[$]=J,D}function QL(D,$){var J=Object.keys(D);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(D);$&&(X=X.filter(function(Y){return Object.getOwnPropertyDescriptor(D,Y).enumerable})),J.push.apply(J,X)}return J}function K0(D){for(var $=1;$<arguments.length;$++){var J=arguments[$]!=null?arguments[$]:{};$%2?QL(Object(J),!0).forEach(function(X){_i(D,X,J[X])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(J)):QL(Object(J)).forEach(function(X){Object.defineProperty(D,X,Object.getOwnPropertyDescriptor(J,X))})}return D}async function yi(D,$,J){if(!Pi(typeof D==="string"?D:D instanceof URL?D:D.url,$))return null;let X=await Ei();if(!X||!X.traceparent)return null;if(J){let Y=Ti(X.traceparent);if(Y&&!Y.isSampled)return null}return X}function WL(D){return typeof D==="boolean"?{enabled:D}:D}function hi(D){return D.endsWith("/")?D:D+"/"}function mi(D,$){var J,X,Y,Q,U,F;let{db:W,auth:K,realtime:q,global:G}=D,{db:Z,auth:H,realtime:z,global:I}=$,B=WL(D.tracePropagation),N=WL($.tracePropagation),V={db:K0(K0({},Z),W),auth:K0(K0({},H),K),realtime:K0(K0({},z),q),storage:{},global:K0(K0(K0({},I),G),{},{headers:K0(K0({},(J=I===null||I===void 0?void 0:I.headers)!==null&&J!==void 0?J:{}),(X=G===null||G===void 0?void 0:G.headers)!==null&&X!==void 0?X:{})}),tracePropagation:{enabled:(Y=(Q=B===null||B===void 0?void 0:B.enabled)!==null&&Q!==void 0?Q:N===null||N===void 0?void 0:N.enabled)!==null&&Y!==void 0?Y:!1,respectSamplingDecision:(U=(F=B===null||B===void 0?void 0:B.respectSamplingDecision)!==null&&F!==void 0?F:N===null||N===void 0?void 0:N.respectSamplingDecision)!==null&&U!==void 0?U:!0},accessToken:async()=>""};if(D.accessToken)V.accessToken=D.accessToken;else delete V.accessToken;return V}function li(D){let $=D===null||D===void 0?void 0:D.trim();if(!$)throw Error("supabaseUrl is required.");if(!$.match(/^https?:\/\//i))throw Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(hi($))}catch(J){throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}function ci(){if(typeof window<"u"||globalThis.Deno!==void 0)return!1;let D=globalThis.process;if(!D)return!1;let $=D.version;if($===void 0||$===null)return!1;let J=$.match(/^v(\d+)\./);if(!J)return!1;return parseInt(J[1],10)<=20}var h$,Oi="2.110.8",a9="",QJ,s9,e9,KL,Ni,Vi,wi,ji,Li,Ri,xF=null,Ai="@opentelemetry/api",ui=(D)=>{if(D)return(...$)=>D(...$);return(...$)=>fetch(...$)},gi=()=>{return Headers},qL=(D)=>D.startsWith("sb_publishable_")||D.startsWith("sb_secret_"),xi="sb_temp_",UL,fi=(D)=>{var $,J;if(!D.startsWith("sb_")||qL(D)||D.startsWith(xi))return;let X=($=(J=D.match(/^sb_[a-zA-Z0-9]+_/))===null||J===void 0?void 0:J[0])!==null&&$!==void 0?$:"unknown";if(UL.has(X))return;UL.add(X),console.warn("@supabase/supabase-js: Unrecognized Supabase API key format. The client will proceed and send this key as-is; if you see authentication errors you may need to upgrade @supabase/supabase-js to a version that recognizes this key type.")},FL=(D,$,J,X,Y,Q)=>{let U=ui(X),F=gi(),W=(Y===null||Y===void 0?void 0:Y.enabled)===!0,K=(Y===null||Y===void 0?void 0:Y.respectSamplingDecision)!==!1,q=W?Si($):null,G=!((Q===null||Q===void 0?void 0:Q.omitApiKeyAsBearer)&&qL(D));return async(Z,H)=>{let z=await J(),I=new F(H===null||H===void 0?void 0:H.headers);if(!I.has("apikey"))I.set("apikey",D);if(!I.has("Authorization")){let B=z!==null&&z!==void 0?z:G?D:null;if(B)I.set("Authorization",`Bearer ${B}`)}if(q){let B=await yi(Z,q,K);if(B){if(B.traceparent&&!I.has("traceparent"))I.set("traceparent",B.traceparent);if(B.tracestate&&!I.has("tracestate"))I.set("tracestate",B.tracestate);if(B.baggage&&!I.has("baggage"))I.set("baggage",B.baggage)}}return U(Z,K0(K0({},H),{},{headers:I}))}},di,ii=class{constructor(D,$,J){var X,Y;this.supabaseUrl=D,this.supabaseKey=$;let Q=li(D);if(!$)throw Error("supabaseKey is required.");fi($),this.realtimeUrl=new URL("realtime/v1",Q),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",Q),this.storageUrl=new URL("storage/v1",Q),this.functionsUrl=new URL("functions/v1",Q);let U=`sb-${Q.hostname.split(".")[0]}-auth-token`,F={db:wi,realtime:Li,auth:K0(K0({},ji),{},{storageKey:U}),global:Vi,tracePropagation:Ri},W=mi(J!==null&&J!==void 0?J:{},F);if(this.settings=W,this.storageKey=(X=W.auth.storageKey)!==null&&X!==void 0?X:"",this.headers=(Y=W.global.headers)!==null&&Y!==void 0?Y:{},!W.accessToken){var K;this.auth=this._initSupabaseAuthClient((K=W.auth)!==null&&K!==void 0?K:{},this.headers,W.global.fetch)}else this.accessToken=W.accessToken,this.auth=new Proxy({},{get:(q,G)=>{throw Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(G)} is not possible`)}});if(this.fetch=FL($,D,this._getSessionToken.bind(this),W.global.fetch,W.tracePropagation),this.functionsFetch=FL($,D,this._getSessionToken.bind(this),W.global.fetch,W.tracePropagation,{omitApiKeyAsBearer:!0}),this.realtime=this._initRealtimeClient(K0({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},W.realtime)),this.accessToken)Promise.resolve(this.accessToken()).then((q)=>this.realtime.setAuth(q)).catch((q)=>console.warn("Failed to set initial Realtime auth token:",q));if(this.rest=new ij(new URL("rest/v1",Q).href,{headers:this.headers,schema:W.db.schema,fetch:this.fetch,timeout:W.db.timeout,urlLengthLimit:W.db.urlLengthLimit}),this.storage=new JL(this.storageUrl.href,this.headers,this.fetch,J===null||J===void 0?void 0:J.storage),!W.accessToken)this._listenForAuthEvents()}get functions(){return new h$.FunctionsClient(this.functionsUrl.href,{headers:this.headers,customFetch:this.functionsFetch})}from(D){return this.rest.from(D)}schema(D){return this.rest.schema(D)}rpc(D,$={},J={head:!1,get:!1,count:void 0}){return this.rest.rpc(D,$,J)}channel(D,$={config:{}}){return this.realtime.channel(D,$)}getChannels(){return this.realtime.getChannels()}removeChannel(D){return this.realtime.removeChannel(D)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getSessionToken(){var D=this,$,J;if(D.accessToken)return await D.accessToken();let{data:X}=await D.auth.getSession();return($=(J=X.session)===null||J===void 0?void 0:J.access_token)!==null&&$!==void 0?$:null}async _getAccessToken(){var D=this,$;return($=await D._getSessionToken())!==null&&$!==void 0?$:D.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:D,persistSession:$,detectSessionInUrl:J,storage:X,userStorage:Y,storageKey:Q,flowType:U,lock:F,debug:W,throwOnError:K,experimental:q,lockAcquireTimeout:G,skipAutoInitialize:Z},H,z){let I={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new di({url:this.authUrl.href,headers:K0(K0({},I),H),storageKey:Q,autoRefreshToken:D,persistSession:$,detectSessionInUrl:J,storage:X,userStorage:Y,flowType:U,lock:F,debug:W,throwOnError:K,experimental:q,fetch:z,lockAcquireTimeout:G,skipAutoInitialize:Z,hasCustomAuthorizationHeader:Object.keys(this.headers).some((B)=>B.toLowerCase()==="authorization")})}_initRealtimeClient(D){return new SF(this.realtimeUrl.href,K0(K0({},D),{},{params:K0(K0({},{apikey:this.supabaseKey}),D===null||D===void 0?void 0:D.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((D,$)=>{this._handleTokenChanged(D,"CLIENT",$===null||$===void 0?void 0:$.access_token)})}_handleTokenChanged(D,$,J){if((D==="TOKEN_REFRESHED"||D==="SIGNED_IN"||D==="INITIAL_SESSION")&&this.changedAccessToken!==J)this.changedAccessToken=J,this.realtime.setAuth(J);else if(D==="SIGNED_OUT"){if(this.realtime.setAuth(),$=="STORAGE")this.auth.signOut();this.changedAccessToken=void 0}}},GL=(D,$,J)=>{return new ii(D,$,J)};var ZL=S(()=>{cj();XL();gF();h$=j$(fj(),1);gF();if(typeof Deno<"u")a9="deno",QJ=(s9=Deno.version)===null||s9===void 0?void 0:s9.deno;else if(typeof document<"u")a9="web";else if(typeof navigator<"u"&&navigator.product==="ReactNative")a9="react-native";else{a9="node";let D=globalThis.process;QJ=D===null||D===void 0||(e9=D.version)===null||e9===void 0?void 0:e9.replace(/^v/,"")}KL=[`runtime=${a9}`];if(QJ)KL.push(`runtime-version=${QJ}`);Ni={"X-Client-Info":`supabase-js/${Oi}; ${KL.join("; ")}`},Vi={headers:Ni},wi={schema:"public"},ji={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},Li={},Ri={enabled:!1,respectSamplingDecision:!0};UL=new Set;di=class extends uF{constructor(D){super(D)}};if(ci())console.warn("⚠️ Node.js 20 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 22 or later. For more information, visit: https://github.com/orgs/supabase/discussions/45715")});var fF=k((KVD,zL)=>{zL.exports={LOCHDR:30,LOCSIG:67324752,LOCVER:4,LOCFLG:6,LOCHOW:8,LOCTIM:10,LOCCRC:14,LOCSIZ:18,LOCLEN:22,LOCNAM:26,LOCEXT:28,EXTSIG:134695760,EXTHDR:16,EXTCRC:4,EXTSIZ:8,EXTLEN:12,CENHDR:46,CENSIG:33639248,CENVEM:4,CENVER:6,CENFLG:8,CENHOW:10,CENTIM:12,CENCRC:16,CENSIZ:20,CENLEN:24,CENNAM:28,CENEXT:30,CENCOM:32,CENDSK:34,CENATT:36,CENATX:38,CENOFF:42,ENDHDR:22,ENDSIG:101010256,ENDSUB:8,ENDTOT:10,ENDSIZ:12,ENDOFF:16,ENDCOM:20,END64HDR:20,END64SIG:117853008,END64START:4,END64OFF:8,END64NUMDISKS:16,ZIP64SIG:101075792,ZIP64HDR:56,ZIP64LEAD:12,ZIP64SIZE:4,ZIP64VEM:12,ZIP64VER:14,ZIP64DSK:16,ZIP64DSKDIR:20,ZIP64SUB:24,ZIP64TOT:32,ZIP64SIZB:40,ZIP64OFF:48,ZIP64EXTRA:56,STORED:0,SHRUNK:1,REDUCED1:2,REDUCED2:3,REDUCED3:4,REDUCED4:5,IMPLODED:6,DEFLATED:8,ENHANCED_DEFLATED:9,PKWARE:10,BZIP2:12,LZMA:14,IBM_TERSE:18,IBM_LZ77:19,AES_ENCRYPT:99,FLG_ENC:1,FLG_COMP1:2,FLG_COMP2:4,FLG_DESC:8,FLG_ENH:16,FLG_PATCH:32,FLG_STR:64,FLG_EFS:2048,FLG_MSK:4096,FILE:2,BUFFER:1,NONE:0,EF_ID:0,EF_SIZE:2,ID_ZIP64:1,ID_AVINFO:7,ID_PFS:8,ID_OS2:9,ID_NTFS:10,ID_OPENVMS:12,ID_UNIX:13,ID_FORK:14,ID_PATCH:15,ID_X509_PKCS7:20,ID_X509_CERTID_F:21,ID_X509_CERTID_C:22,ID_STRONGENC:23,ID_RECORD_MGT:24,ID_X509_PKCS7_RL:25,ID_IBM1:101,ID_IBM2:102,ID_POSZIP:18064,EF_ZIP64_OR_32:4294967295,EF_ZIP64_OR_16:65535,EF_ZIP64_SUNCOMP:0,EF_ZIP64_SCOMP:8,EF_ZIP64_RHO:16,EF_ZIP64_DSN:24}});var UJ=k((IL)=>{var HL={INVALID_LOC:"Invalid LOC header (bad signature)",INVALID_CEN:"Invalid CEN header (bad signature)",INVALID_END:"Invalid END header (bad signature)",DESCRIPTOR_NOT_EXIST:"No descriptor present",DESCRIPTOR_UNKNOWN:"Unknown descriptor format",DESCRIPTOR_FAULTY:"Descriptor data is malformed",NO_DATA:"Nothing to decompress",BAD_CRC:"CRC32 checksum failed {0}",FILE_IN_THE_WAY:"There is a file in the way: {0}",UNKNOWN_METHOD:"Invalid/unsupported compression method",AVAIL_DATA:"inflate::Available inflate data did not terminate",INVALID_DISTANCE:"inflate::Invalid literal/length or distance code in fixed or dynamic block",TO_MANY_CODES:"inflate::Dynamic block code description: too many length or distance codes",INVALID_REPEAT_LEN:"inflate::Dynamic block code description: repeat more than specified lengths",INVALID_REPEAT_FIRST:"inflate::Dynamic block code description: repeat lengths with no first length",INCOMPLETE_CODES:"inflate::Dynamic block code description: code lengths codes incomplete",INVALID_DYN_DISTANCE:"inflate::Dynamic block code description: invalid distance code lengths",INVALID_CODES_LEN:"inflate::Dynamic block code description: invalid literal/length code lengths",INVALID_STORE_BLOCK:"inflate::Stored block length did not match one's complement",INVALID_BLOCK_TYPE:"inflate::Invalid block type (type == 3)",CANT_EXTRACT_FILE:"Could not extract the file",CANT_OVERRIDE:"Target file already exists",DISK_ENTRY_TOO_LARGE:"Number of disk entries is too large",NO_ZIP:"No zip file was loaded",NO_ENTRY:"Entry doesn't exist",DIRECTORY_CONTENT_ERROR:"A directory cannot have content",FILE_NOT_FOUND:'File not found: "{0}"',NOT_IMPLEMENTED:"Not implemented",INVALID_FILENAME:"Invalid filename",INVALID_FORMAT:"Invalid or unsupported zip format. No END header found",INVALID_PASS_PARAM:"Incompatible password parameter",WRONG_PASSWORD:"Wrong Password",COMMENT_TOO_LONG:"Comment is too long",EXTRA_FIELD_PARSE_ERROR:"Extra field parsing error"};function pi(D){return function(...$){if($.length)D=D.replace(/\{(\d)\}/g,(J,X)=>$[X]||"");return Error("ADM-ZIP: "+D)}}for(let D of Object.keys(HL))IL[D]=pi(HL[D])});var wL=k((GVD,VL)=>{var ni=XD("fs"),N0=XD("path"),BL=fF(),ri=UJ(),ti=typeof process==="object"&&process.platform==="win32",OL=(D)=>typeof D==="object"&&D!==null,NL=new Uint32Array(256).map((D,$)=>{for(let J=0;J<8;J++)if(($&1)!==0)$=3988292384^$>>>1;else $>>>=1;return $>>>0});function Q0(D){if(this.sep=N0.sep,this.fs=ni,OL(D)){if(OL(D.fs)&&typeof D.fs.statSync==="function")this.fs=D.fs}}VL.exports=Q0;Q0.prototype.makeDir=function(D){let $=this;function J(X){let Y=X.split($.sep)[0];X.split($.sep).forEach(function(Q){if(!Q||Q.substr(-1,1)===":")return;Y+=$.sep+Q;var U;try{U=$.fs.statSync(Y)}catch(F){if(F.message&&F.message.startsWith("ENOENT"))$.fs.mkdirSync(Y);else throw F}if(U&&U.isFile())throw ri.FILE_IN_THE_WAY(`"${Y}"`)})}J(D)};Q0.prototype.writeFileTo=function(D,$,J,X){let Y=this;if(Y.fs.existsSync(D)){if(!J)return!1;var Q=Y.fs.statSync(D);if(Q.isDirectory())return!1}var U=N0.dirname(D);if(!Y.fs.existsSync(U))Y.makeDir(U);var F;try{F=Y.fs.openSync(D,"w",438)}catch(W){Y.fs.chmodSync(D,438),F=Y.fs.openSync(D,"w",438)}if(F)try{Y.fs.writeSync(F,$,0,$.length,0)}finally{Y.fs.closeSync(F)}return Y.fs.chmodSync(D,X||438),!0};Q0.prototype.writeFileToAsync=function(D,$,J,X,Y){if(typeof X==="function")Y=X,X=void 0;let Q=this;Q.fs.exists(D,function(U){if(U&&!J)return Y(!1);Q.fs.stat(D,function(F,W){if(U&&W&&W.isDirectory())return Y(!1);var K=N0.dirname(D);Q.fs.exists(K,function(q){if(!q)try{Q.makeDir(K)}catch(Z){return Y(!1)}let G=function(Z){Q.fs.write(Z,$,0,$.length,0,function(H){Q.fs.close(Z,function(){if(H)return Y(!1);Q.fs.chmod(D,X||438,function(){Y(!0)})})})};Q.fs.open(D,"w",438,function(Z,H){if(Z)Q.fs.chmod(D,438,function(){Q.fs.open(D,"w",438,function(z,I){if(z||!I)return Y(!1);G(I)})});else if(H)G(H);else Y(!1)})})})})};Q0.prototype.findFiles=function(D){let $=this;function J(X,Y,Q,U){if(typeof Y==="boolean")Q=Y,Y=void 0;let F=[];return $.fs.readdirSync(X).forEach(function(W){let K=N0.join(X,W),q=$.fs.statSync(K);if(!Y||Y.test(K))F.push(N0.normalize(K)+(q.isDirectory()?$.sep:""));if(q.isDirectory()&&Q){let G=$.fs.realpathSync(K);if(!U.has(G))U.add(G),F=F.concat(J(K,Y,Q,U))}}),F}return J(D,void 0,!0,new Set([$.fs.realpathSync(D)]))};Q0.prototype.findFilesAsync=function(D,$){let J=this,X=[],Y=!1,Q=function(F){if(Y)return;Y=!0,$(F,F?void 0:X)},U=function(F,W,K){J.fs.readdir(F,function(q,G){if(q)return K(q);let Z=G.length;if(!Z)return K();G.forEach(function(H){let z=N0.join(F,H);J.fs.stat(z,function(I,B){if(I)return K(I);if(!B){if(!--Z)K();return}if(X.push(N0.normalize(z)+(B.isDirectory()?J.sep:"")),!B.isDirectory()){if(!--Z)K();return}J.fs.realpath(z,function(N,V){if(N)return K(N);if(W.has(V)){if(!--Z)K();return}W.add(V),U(z,W,function(O){if(O)return K(O);if(!--Z)K()})})})})})};J.fs.realpath(D,function(F,W){if(F)return Q(F);U(D,new Set([W]),Q)})};Q0.prototype.getAttributes=function(){};Q0.prototype.setAttributes=function(){};Q0.crc32update=function(D,$){return NL[(D^$)&255]^D>>>8};Q0.crc32=function(D){if(typeof D==="string")D=Buffer.from(D,"utf8");let $=D.length,J=-1;for(let X=0;X<$;)J=Q0.crc32update(J,D[X++]);return~J>>>0};Q0.methodToString=function(D){switch(D){case BL.STORED:return"STORED ("+D+")";case BL.DEFLATED:return"DEFLATED ("+D+")";default:return"UNSUPPORTED ("+D+")"}};Q0.canonical=function(D){if(!D)return"";let $=N0.posix.normalize("/"+D.split("\\").join("/"));return N0.join(".",$)};Q0.zipnamefix=function(D){if(!D)return"";let $=N0.posix.normalize("/"+D.split("\\").join("/"));return N0.posix.join(".",$)};Q0.findLast=function(D,$){if(!Array.isArray(D))throw TypeError("arr is not array");let J=D.length>>>0;for(let X=J-1;X>=0;X--)if($(D[X],X,D))return D[X];return};Q0.sanitize=function(D,$){D=N0.resolve(N0.normalize(D));var J=$.split("/");for(var X=0,Y=J.length;X<Y;X++){var Q=N0.normalize(N0.join(D,J.slice(X,Y).join(N0.sep)));if(Q===D||Q.startsWith(D+N0.sep))return Q}return N0.normalize(N0.join(D,N0.basename($)))};Q0.toBuffer=function($,J){if(Buffer.isBuffer($))return $;else if($ instanceof Uint8Array)return Buffer.from($);else return typeof $==="string"?J($):Buffer.alloc(0)};Q0.readBigUInt64LE=function(D,$){let J=D.readUInt32LE($);return D.readUInt32LE($+4)*4294967296+J};Q0.writeBigUInt64LE=function(D,$,J){let X=$>>>0,Y=Math.floor($/4294967296)>>>0;D.writeUInt32LE(X,J),D.writeUInt32LE(Y,J+4)};Q0.fromDOS2Date=function(D){return new Date((D>>25&127)+1980,Math.max((D>>21&15)-1,0),Math.max(D>>16&31,1),D>>11&31,D>>5&63,(D&31)<<1)};Q0.fromDate2DOS=function(D){let $=0,J=0;if(D.getFullYear()>1979)$=(D.getFullYear()-1980&127)<<9|D.getMonth()+1<<5|D.getDate(),J=D.getHours()<<11|D.getMinutes()<<5|D.getSeconds()>>1;return $<<16|J};Q0.isWin=ti;Q0.crcTable=NL});var LL=k((ZVD,jL)=>{var oi=XD("path");jL.exports=function(D,{fs:$}){var J=D||"",X=Q(),Y=null;function Q(){return{directory:!1,readonly:!1,hidden:!1,executable:!1,mtime:0,atime:0}}if(J&&$.existsSync(J))Y=$.statSync(J),X.directory=Y.isDirectory(),X.mtime=Y.mtime,X.atime=Y.atime,X.executable=(73&Y.mode)!==0,X.readonly=(128&Y.mode)===0,X.hidden=oi.basename(J)[0]===".";else console.warn("Invalid path: "+J);return{get directory(){return X.directory},get readOnly(){return X.readonly},get hidden(){return X.hidden},get mtime(){return X.mtime},get atime(){return X.atime},get executable(){return X.executable},decodeAttributes:function(){},encodeAttributes:function(){},toJSON:function(){return{path:J,isDirectory:X.directory,isReadOnly:X.readonly,isHidden:X.hidden,isExecutable:X.executable,mTime:X.mtime,aTime:X.atime}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}}});var ML=k((zVD,RL)=>{RL.exports={efs:!0,encode:(D)=>Buffer.from(D,"utf8"),decode:(D)=>D.toString("utf8")}});var T8=k((HVD,E8)=>{E8.exports=wL();E8.exports.Constants=fF();E8.exports.Errors=UJ();E8.exports.FileAttr=LL();E8.exports.decoder=ML()});var vL=k((IVD,AL)=>{var X1=T8(),$D=X1.Constants;AL.exports=function(){var D=20,$=10,J=0,X=0,Y=0,Q=0,U=0,F=0,W=0,K=0,q=0,G=0,Z=0,H=0,z=0;D|=X1.isWin?2560:768,J|=$D.FLG_EFS;let I={extraLen:0},B=(O)=>Math.max(0,O)>>>0,N=(O)=>Math.max(0,O)&65535,V=(O)=>Math.max(0,O)&255;return Y=X1.fromDate2DOS(new Date),{get made(){return D},set made(O){D=O},get version(){return $},set version(O){$=O},get flags(){return J},set flags(O){J=O},get flags_efs(){return(J&$D.FLG_EFS)>0},set flags_efs(O){if(O)J|=$D.FLG_EFS;else J&=~$D.FLG_EFS},get flags_desc(){return(J&$D.FLG_DESC)>0},set flags_desc(O){if(O)J|=$D.FLG_DESC;else J&=~$D.FLG_DESC},get method(){return X},set method(O){switch(O){case $D.STORED:this.version=10;break;case $D.DEFLATED:default:this.version=20}X=O},get time(){return X1.fromDOS2Date(this.timeval)},set time(O){O=new Date(O),this.timeval=X1.fromDate2DOS(O)},get timeval(){return Y},set timeval(O){Y=B(O)},get timeHighByte(){return V(Y>>>8)},get crc(){return Q},set crc(O){Q=B(O)},get compressedSize(){return U},set compressedSize(O){U=B(O)},get size(){return F},set size(O){F=B(O)},get fileNameLength(){return W},set fileNameLength(O){W=O},get extraLength(){return K},set extraLength(O){K=O},get extraLocalLength(){return I.extraLen},set extraLocalLength(O){I.extraLen=O},get commentLength(){return q},set commentLength(O){q=O},get diskNumStart(){return G},set diskNumStart(O){G=B(O)},get inAttr(){return Z},set inAttr(O){Z=B(O)},get attr(){return H},set attr(O){H=B(O)},get fileAttr(){return(H||0)>>16&4095},get offset(){return z},set offset(O){z=B(O)},get encrypted(){return(J&$D.FLG_ENC)===$D.FLG_ENC},get centralHeaderSize(){return $D.CENHDR+W+K+q},get realDataOffset(){return z+$D.LOCHDR+I.fnameLen+I.extraLen},get localHeader(){return I},loadLocalHeaderFromBinary:function(O){var j=O.slice(z,z+$D.LOCHDR);if(j.readUInt32LE(0)!==$D.LOCSIG)throw X1.Errors.INVALID_LOC();I.version=j.readUInt16LE($D.LOCVER),I.flags=j.readUInt16LE($D.LOCFLG),I.flags_desc=(I.flags&$D.FLG_DESC)>0,I.method=j.readUInt16LE($D.LOCHOW),I.time=j.readUInt32LE($D.LOCTIM),I.crc=j.readUInt32LE($D.LOCCRC),I.compressedSize=j.readUInt32LE($D.LOCSIZ),I.size=j.readUInt32LE($D.LOCLEN),I.fnameLen=j.readUInt16LE($D.LOCNAM),I.extraLen=j.readUInt16LE($D.LOCEXT);let v=z+$D.LOCHDR+I.fnameLen,A=v+I.extraLen;return O.slice(v,A)},loadFromBinary:function(O){if(O.length!==$D.CENHDR||O.readUInt32LE(0)!==$D.CENSIG)throw X1.Errors.INVALID_CEN();D=O.readUInt16LE($D.CENVEM),$=O.readUInt16LE($D.CENVER),J=O.readUInt16LE($D.CENFLG),X=O.readUInt16LE($D.CENHOW),Y=O.readUInt32LE($D.CENTIM),Q=O.readUInt32LE($D.CENCRC),U=O.readUInt32LE($D.CENSIZ),F=O.readUInt32LE($D.CENLEN),W=O.readUInt16LE($D.CENNAM),K=O.readUInt16LE($D.CENEXT),q=O.readUInt16LE($D.CENCOM),G=O.readUInt16LE($D.CENDSK),Z=O.readUInt16LE($D.CENATT),H=O.readUInt32LE($D.CENATX),z=O.readUInt32LE($D.CENOFF)},localHeaderToBinary:function(){var O=Buffer.alloc($D.LOCHDR);return O.writeUInt32LE($D.LOCSIG,0),O.writeUInt16LE($,$D.LOCVER),O.writeUInt16LE(J&~$D.FLG_DESC,$D.LOCFLG),O.writeUInt16LE(X,$D.LOCHOW),O.writeUInt32LE(Y,$D.LOCTIM),O.writeUInt32LE(Q,$D.LOCCRC),O.writeUInt32LE(U,$D.LOCSIZ),O.writeUInt32LE(F,$D.LOCLEN),O.writeUInt16LE(W,$D.LOCNAM),O.writeUInt16LE(I.extraLen,$D.LOCEXT),O},centralHeaderToBinary:function(){var O=Buffer.alloc($D.CENHDR+W+K+q);return O.writeUInt32LE($D.CENSIG,0),O.writeUInt16LE(D,$D.CENVEM),O.writeUInt16LE($,$D.CENVER),O.writeUInt16LE(J&~$D.FLG_DESC,$D.CENFLG),O.writeUInt16LE(X,$D.CENHOW),O.writeUInt32LE(Y,$D.CENTIM),O.writeUInt32LE(Q,$D.CENCRC),O.writeUInt32LE(U,$D.CENSIZ),O.writeUInt32LE(F,$D.CENLEN),O.writeUInt16LE(W,$D.CENNAM),O.writeUInt16LE(K,$D.CENEXT),O.writeUInt16LE(q,$D.CENCOM),O.writeUInt16LE(G,$D.CENDSK),O.writeUInt16LE(Z,$D.CENATT),O.writeUInt32LE(H,$D.CENATX),O.writeUInt32LE(z,$D.CENOFF),O},toJSON:function(){let O=function(j){return j+" bytes"};return{made:D,version:$,flags:J,method:X1.methodToString(X),time:this.time,crc:"0x"+Q.toString(16).toUpperCase(),compressedSize:O(U),size:O(F),fileNameLength:O(W),extraLength:O(K),commentLength:O(q),diskNumStart:G,inAttr:Z,attr:H,offset:z,centralHeaderSize:O($D.CENHDR+W+K+q)}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}}});var TL=k((BVD,EL)=>{var m$=T8(),FD=m$.Constants;EL.exports=function(){var D=0,$=0,J=0,X=0,Y=0;let Q=()=>D>FD.EF_ZIP64_OR_16||$>FD.EF_ZIP64_OR_16||J>FD.EF_ZIP64_OR_32||X>FD.EF_ZIP64_OR_32;return{get diskEntries(){return D},set diskEntries(U){D=$=U},get totalEntries(){return $},set totalEntries(U){$=D=U},get size(){return J},set size(U){J=U},get offset(){return X},set offset(U){X=U},get commentLength(){return Y},set commentLength(U){Y=U},get mainHeaderSize(){return(Q()?FD.ZIP64HDR+FD.END64HDR:0)+FD.ENDHDR+Y},loadFromBinary:function(U){if((U.length!==FD.ENDHDR||U.readUInt32LE(0)!==FD.ENDSIG)&&(U.length<FD.ZIP64HDR||U.readUInt32LE(0)!==FD.ZIP64SIG))throw m$.Errors.INVALID_END();if(U.readUInt32LE(0)===FD.ENDSIG)D=U.readUInt16LE(FD.ENDSUB),$=U.readUInt16LE(FD.ENDTOT),J=U.readUInt32LE(FD.ENDSIZ),X=U.readUInt32LE(FD.ENDOFF),Y=U.readUInt16LE(FD.ENDCOM);else D=m$.readBigUInt64LE(U,FD.ZIP64SUB),$=m$.readBigUInt64LE(U,FD.ZIP64TOT),J=m$.readBigUInt64LE(U,FD.ZIP64SIZB),X=m$.readBigUInt64LE(U,FD.ZIP64OFF),Y=0},toBinary:function(){if(!Q()){var U=Buffer.alloc(FD.ENDHDR+Y);return U.writeUInt32LE(FD.ENDSIG,0),U.writeUInt32LE(0,4),U.writeUInt16LE(D,FD.ENDSUB),U.writeUInt16LE($,FD.ENDTOT),U.writeUInt32LE(J,FD.ENDSIZ),U.writeUInt32LE(X,FD.ENDOFF),U.writeUInt16LE(Y,FD.ENDCOM),U.fill(" ",FD.ENDHDR),U}var U=Buffer.alloc(this.mainHeaderSize);let F=0;U.writeUInt32LE(FD.ZIP64SIG,F),m$.writeBigUInt64LE(U,FD.ZIP64HDR-FD.ZIP64LEAD,F+FD.ZIP64SIZE),U.writeUInt16LE(45,F+FD.ZIP64VEM),U.writeUInt16LE(45,F+FD.ZIP64VER),U.writeUInt32LE(0,F+FD.ZIP64DSK),U.writeUInt32LE(0,F+FD.ZIP64DSKDIR),m$.writeBigUInt64LE(U,D,F+FD.ZIP64SUB),m$.writeBigUInt64LE(U,$,F+FD.ZIP64TOT),m$.writeBigUInt64LE(U,J,F+FD.ZIP64SIZB),m$.writeBigUInt64LE(U,X,F+FD.ZIP64OFF);let W=X+J;return F+=FD.ZIP64HDR,U.writeUInt32LE(FD.END64SIG,F),U.writeUInt32LE(0,F+FD.END64START),m$.writeBigUInt64LE(U,W,F+FD.END64OFF),U.writeUInt32LE(1,F+FD.END64NUMDISKS),F+=FD.END64HDR,U.writeUInt32LE(FD.ENDSIG,F),U.writeUInt32LE(0,F+4),U.writeUInt16LE(Math.min(D,FD.EF_ZIP64_OR_16),F+FD.ENDSUB),U.writeUInt16LE(Math.min($,FD.EF_ZIP64_OR_16),F+FD.ENDTOT),U.writeUInt32LE(Math.min(J,FD.EF_ZIP64_OR_32),F+FD.ENDSIZ),U.writeUInt32LE(Math.min(X,FD.EF_ZIP64_OR_32),F+FD.ENDOFF),U.writeUInt16LE(Y,F+FD.ENDCOM),U.fill(" ",F+FD.ENDHDR),U},toJSON:function(){let U=function(F,W){let K=F.toString(16).toUpperCase();while(K.length<W)K="0"+K;return"0x"+K};return{diskEntries:D,totalEntries:$,size:J+" bytes",offset:U(X,4),commentLength:Y}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}}});var yF=k((ai)=>{ai.EntryHeader=vL();ai.MainHeader=TL()});var bL=k((NVD,PL)=>{PL.exports=function(D){var $=XD("zlib"),J={chunkSize:(parseInt(D.length/1024)+1)*1024};return{deflate:function(){return $.deflateRawSync(D,J)},deflateAsync:function(X){var Y=$.createDeflateRaw(J),Q=[],U=0;Y.on("data",function(F){Q.push(F),U+=F.length}),Y.on("end",function(){var F=Buffer.alloc(U),W=0;F.fill(0);for(var K=0;K<Q.length;K++){var q=Q[K];q.copy(F,W),W+=q.length}X&&X(F)}),Y.end(D)}}}});var CL=k((VVD,SL)=>{var Dc=+(process?.versions?.node??"").split(".")[0]||0;SL.exports=function(D,$){var J=XD("zlib");let X=Dc>=15&&$>0?{maxOutputLength:$}:{};return{inflate:function(){return J.inflateRawSync(D,X)},inflateAsync:function(Y){var Q=J.createInflateRaw(X),U=[],F=0;Q.on("data",function(W){U.push(W),F+=W.length}),Q.on("end",function(){var W=Buffer.alloc(F),K=0;W.fill(0);for(var q=0;q<U.length;q++){var G=U[q];G.copy(W,K),K+=G.length}Y&&Y(W)}),Q.end(D)}}}});var xL=k((wVD,gL)=>{var{randomFillSync:kL}=XD("crypto"),$c=UJ(),Jc=new Uint32Array(256).map((D,$)=>{for(let J=0;J<8;J++)if(($&1)!==0)$=$>>>1^3988292384;else $>>>=1;return $>>>0}),uL=(D,$)=>Math.imul(D,$)>>>0,_L=(D,$)=>{return Jc[(D^$)&255]^D>>>8},$5=()=>{if(typeof kL==="function")return kL(Buffer.alloc(12));else return $5.node()};$5.node=()=>{let D=Buffer.alloc(12),$=D.length;for(let J=0;J<$;J++)D[J]=Math.random()*256&255;return D};var FJ={genSalt:$5};function WJ(D){let $=Buffer.isBuffer(D)?D:Buffer.from(D);this.keys=new Uint32Array([305419896,591751049,878082192]);for(let J=0;J<$.length;J++)this.updateKeys($[J])}WJ.prototype.updateKeys=function(D){let $=this.keys;return $[0]=_L($[0],D),$[1]+=$[0]&255,$[1]=uL($[1],134775813)+1,$[2]=_L($[2],$[1]>>>24),D};WJ.prototype.next=function(){let D=(this.keys[2]|2)>>>0;return uL(D,D^1)>>8&255};function Xc(D){let $=new WJ(D);return function(J){let X=Buffer.alloc(J.length),Y=0;for(let Q of J)X[Y++]=$.updateKeys(Q^$.next());return X}}function Yc(D){let $=new WJ(D);return function(J,X,Y=0){if(!X)X=Buffer.alloc(J.length);for(let Q of J){let U=$.next();X[Y++]=Q^U,$.updateKeys(Q)}return X}}function Qc(D,$,J){if(!D||!Buffer.isBuffer(D)||D.length<12)return Buffer.alloc(0);let X=Xc(J),Y=X(D.slice(0,12)),Q=($.flags&8)===8?$.timeHighByte:$.crc>>>24;if(Y[11]!==Q)throw $c.WRONG_PASSWORD();return X(D.slice(12))}function Uc(D){if(Buffer.isBuffer(D)&&D.length>=12)FJ.genSalt=function(){return D.slice(0,12)};else if(D==="node")FJ.genSalt=$5.node;else FJ.genSalt=$5}function Fc(D,$,J,X=!1){if(D==null)D=Buffer.alloc(0);if(!Buffer.isBuffer(D))D=Buffer.from(D.toString());let Y=Yc(J),Q=FJ.genSalt();if(Q[11]=$.crc>>>24&255,X)Q[10]=$.crc>>>16&255;let U=Buffer.alloc(D.length+12);return Y(Q,U),Y(D,U,12)}gL.exports={decrypt:Qc,encrypt:Fc,_salter:Uc}});var fL=k((Wc)=>{Wc.Deflater=bL();Wc.Inflater=CL();Wc.ZipCrypto=xL()});var mF=k((LVD,yL)=>{var tD=T8(),Zc=yF(),M$=tD.Constants,hF=fL();yL.exports=function(D,$){var J=new Zc.EntryHeader,X=Buffer.alloc(0),Y=Buffer.alloc(0),Q=!1,U=null,F=Buffer.alloc(0),W=Buffer.alloc(0),K=!0;let q=D,G=typeof q.decoder==="object"?q.decoder:tD.decoder;K=G.hasOwnProperty("efs")?G.efs:!1;function Z(){if(!$||!($ instanceof Uint8Array))return Buffer.alloc(0);return W=J.loadLocalHeaderFromBinary($),$.slice(J.realDataOffset,J.realDataOffset+J.compressedSize)}function H(O){let j=J.flags_desc||J.localHeader.flags_desc?J.crc:J.localHeader.crc;return tD.crc32(O)===j}function z(O,j,v){if(typeof j>"u"&&typeof O==="string")v=O,O=void 0;if(Q){if(O&&j)j(Buffer.alloc(0),tD.Errors.DIRECTORY_CONTENT_ERROR());return Buffer.alloc(0)}var A=Z();if(A.length===0){if(O&&j)j(A);return A}if(J.encrypted){if(typeof v!=="string"&&!Buffer.isBuffer(v))throw tD.Errors.INVALID_PASS_PARAM();A=hF.ZipCrypto.decrypt(A,J,v)}var C;switch(J.method){case tD.Constants.STORED:if(C=Buffer.alloc(A.length),A.copy(C),!H(C)){if(O&&j)j(C,tD.Errors.BAD_CRC());throw tD.Errors.BAD_CRC()}else{if(O&&j)j(C);return C}case tD.Constants.DEFLATED:var u=new hF.Inflater(A,J.size);if(!O){if(C=u.inflate(),!H(C))throw tD.Errors.BAD_CRC(`"${G.decode(X)}"`);return C}else u.inflateAsync(function(_){if(j)if(!H(_))j(_,tD.Errors.BAD_CRC());else j(_)});break;default:if(O&&j)j(Buffer.alloc(0),tD.Errors.UNKNOWN_METHOD());throw tD.Errors.UNKNOWN_METHOD()}}function I(O,j){if((!U||!U.length)&&Buffer.isBuffer($)){if(O&&j)j(Z());return Z()}if(U.length&&!Q){var v;switch(J.method){case tD.Constants.STORED:if(J.compressedSize=J.size,v=Buffer.alloc(U.length),U.copy(v),O&&j)j(v);return v;default:case tD.Constants.DEFLATED:var A=new hF.Deflater(U);if(!O){var C=A.deflate();return J.compressedSize=C.length,C}else A.deflateAsync(function(u){v=Buffer.alloc(u.length),J.compressedSize=u.length,u.copy(v),j&&j(v)});A=null;break}}else if(O&&j)j(Buffer.alloc(0));else return Buffer.alloc(0)}function B(O,j){return tD.readBigUInt64LE(O,j)}function N(O){try{var j=0,v,A,C;while(j+4<O.length)if(v=O.readUInt16LE(j),j+=2,A=O.readUInt16LE(j),j+=2,C=O.slice(j,j+A),j+=A,M$.ID_ZIP64===v)V(C)}catch(u){throw tD.Errors.EXTRA_FIELD_PARSE_ERROR()}}function V(O){var j,v,A,C;if(O.length>=M$.EF_ZIP64_SCOMP){if(j=B(O,M$.EF_ZIP64_SUNCOMP),J.size===M$.EF_ZIP64_OR_32)J.size=j}if(O.length>=M$.EF_ZIP64_RHO){if(v=B(O,M$.EF_ZIP64_SCOMP),J.compressedSize===M$.EF_ZIP64_OR_32)J.compressedSize=v}if(O.length>=M$.EF_ZIP64_DSN){if(A=B(O,M$.EF_ZIP64_RHO),J.offset===M$.EF_ZIP64_OR_32)J.offset=A}if(O.length>=M$.EF_ZIP64_DSN+4){if(C=O.readUInt32LE(M$.EF_ZIP64_DSN),J.diskNumStart===M$.EF_ZIP64_OR_16)J.diskNumStart=C}}return{get entryName(){return G.decode(X)},get rawEntryName(){return X},set entryName(O){X=tD.toBuffer(O,G.encode);var j=X[X.length-1];Q=j===47||j===92,J.fileNameLength=X.length},get efs(){if(typeof K==="function")return K(this.entryName);else return K},get extra(){return F},set extra(O){F=O,J.extraLength=O.length,N(O)},get comment(){return G.decode(Y)},set comment(O){if(Y=tD.toBuffer(O,G.encode),J.commentLength=Y.length,Y.length>65535)throw tD.Errors.COMMENT_TOO_LONG()},get name(){let O=G.decode(X);return Q?O.replace(/[/\\]$/,"").split("/").pop():O.split("/").pop()},get isDirectory(){return Q},getCompressedData:function(){return I(!1,null)},getCompressedDataAsync:function(O){I(!0,O)},setData:function(O){if(U=tD.toBuffer(O,tD.decoder.encode),!Q&&U.length)J.size=U.length,J.method=tD.Constants.DEFLATED,J.crc=tD.crc32(O),J.changed=!0;else J.method=tD.Constants.STORED},getData:function(O){if(J.changed)return U;else return z(!1,null,O)},getDataAsync:function(O,j){if(J.changed)O(U);else z(!0,O,j)},set attr(O){J.attr=O},get attr(){return J.attr},set header(O){J.loadFromBinary(O)},get header(){return J},packCentralHeader:function(){J.flags_efs=this.efs,J.extraLength=F.length;var O=J.centralHeaderToBinary(),j=tD.Constants.CENHDR;return X.copy(O,j),j+=X.length,F.copy(O,j),j+=J.extraLength,Y.copy(O,j),O},packLocalHeader:function(){let O=0;J.flags_efs=this.efs,J.extraLocalLength=W.length;let j=J.localHeaderToBinary(),v=Buffer.alloc(j.length+X.length+J.extraLocalLength);return j.copy(v,O),O+=j.length,X.copy(v,O),O+=X.length,W.copy(v,O),O+=W.length,v},toJSON:function(){let O=function(j){return"<"+(j&&j.length+" bytes buffer"||"null")+">"};return{entryName:this.entryName,name:this.name,comment:this.comment,isDirectory:this.isDirectory,header:J.toJSON(),compressedData:O($),data:O(U)}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}}});var lL=k((RVD,mL)=>{var hL=mF(),zc=yF(),t0=T8();mL.exports=function(D,$){var J=[],X=Object.create(null),Y=Buffer.alloc(0),Q=new zc.MainHeader,U=!1,F=null;let W=new Set,K=$,{noSort:q,decoder:G}=K;if(D)z(K.readEntries);else U=!0;function Z(){let B=new Set;for(let N of Object.keys(X)){let V=N.split("/");if(V.pop(),!V.length)continue;for(let O=0;O<V.length;O++){let j=V.slice(0,O+1).join("/")+"/";B.add(j)}}for(let N of B)if(!(N in X)){let V=new hL(K);V.entryName=N,V.attr=16,V.temporary=!0,J.push(V),X[V.entryName]=V,W.add(V)}}function H(){if(U=!0,X=Object.create(null),Q.diskEntries>(D.length-Q.offset)/t0.Constants.CENHDR)throw t0.Errors.DISK_ENTRY_TOO_LARGE();J=Array(Q.diskEntries);var B=Q.offset;for(var N=0;N<J.length;N++){var V=B,O=new hL(K,D);if(O.header=D.slice(V,V+=t0.Constants.CENHDR),O.entryName=D.slice(V,V+=O.header.fileNameLength),O.header.extraLength)O.extra=D.slice(V,V+=O.header.extraLength);if(O.header.commentLength)O.comment=D.slice(V,V+O.header.commentLength);B+=O.header.centralHeaderSize,J[N]=O,X[O.entryName]=O}W.clear(),Z()}function z(B){var N=D.length-t0.Constants.ENDHDR,V=Math.max(0,N-65535),O=V,j=D.length,v=-1,A=0;if(typeof K.trailingSpace==="boolean"?K.trailingSpace:!1)V=0;for(N;N>=O;N--){if(D[N]!==80)continue;if(D.readUInt32LE(N)===t0.Constants.ENDSIG){v=N,A=N,j=N+t0.Constants.ENDHDR,O=N-t0.Constants.END64HDR;continue}if(D.readUInt32LE(N)===t0.Constants.END64SIG){O=V;continue}if(D.readUInt32LE(N)===t0.Constants.ZIP64SIG){v=N,j=N+t0.readBigUInt64LE(D,N+t0.Constants.ZIP64SIZE)+t0.Constants.ZIP64LEAD;break}}if(v==-1)throw t0.Errors.INVALID_FORMAT();if(Q.loadFromBinary(D.slice(v,j)),Q.commentLength)Y=D.slice(A+t0.Constants.ENDHDR);if(B)H()}function I(){if(J.length>1&&!q)J=J.map((B)=>({entry:B,key:B.entryName.toLowerCase()})).sort((B,N)=>B.key.localeCompare(N.key)).map((B)=>B.entry)}return{get entries(){if(!U)H();return J.filter((B)=>!W.has(B))},get comment(){return G.decode(Y)},set comment(B){Y=t0.toBuffer(B,G.encode),Q.commentLength=Y.length},getEntryCount:function(){if(!U)return Q.diskEntries;return J.length},forEach:function(B){this.entries.forEach(B)},getEntry:function(B){if(!U)H();return X[B]||null},setEntry:function(B){if(!U)H();J.push(B),X[B.entryName]=B,Q.totalEntries=J.length},deleteFile:function(B,N=!0){if(!U)H();let V=X[B];this.getEntryChildren(V,N).map((j)=>j.entryName).forEach(this.deleteEntry)},deleteEntry:function(B){if(!U)H();let N=X[B],V=J.indexOf(N);if(V>=0)J.splice(V,1),delete X[B],Q.totalEntries=J.length},getEntryChildren:function(B,N=!0){if(!U)H();if(typeof B==="object")if(B.isDirectory&&N){let V=[],O=B.entryName;for(let j of J)if(j.entryName.startsWith(O))V.push(j);return V}else return[B];return[]},getChildCount:function(B){if(B&&B.isDirectory){let N=this.getEntryChildren(B);return N.includes(B)?N.length-1:N.length}return 0},compressToBuffer:function(){if(!U)H();I();let B=[],N=[],V=0,O=0;Q.size=0,Q.offset=0;let j=0;for(let C of this.entries){let u=C.getCompressedData();C.header.offset=O;let _=C.packLocalHeader(),y=_.length+u.length;O+=y,B.push(_),B.push(u);let E=C.packCentralHeader();N.push(E),Q.size+=E.length,V+=y+E.length,j++}V+=Q.mainHeaderSize,Q.offset=O,Q.totalEntries=j,O=0;let v=Buffer.alloc(V);for(let C of B)C.copy(v,O),O+=C.length;for(let C of N)C.copy(v,O),O+=C.length;let A=Q.toBinary();if(Y)Y.copy(A,A.length-Y.length);return A.copy(v,O),D=v,U=!1,v},toAsyncBuffer:function(B,N,V,O){try{if(!U)H();I();let j=[],v=[],A=0,C=0,u=0;Q.size=0,Q.offset=0;let _=function(y){if(y.length>0){let E=y.shift(),d=E.entryName+E.extra.toString();if(V)V(d);E.getCompressedDataAsync(function(c){if(O)O(d);E.header.offset=C;let p=E.packLocalHeader(),o=p.length+c.length;C+=o,j.push(p),j.push(c);let R=E.packCentralHeader();v.push(R),Q.size+=R.length,A+=o+R.length,u++,_(y)})}else{A+=Q.mainHeaderSize,Q.offset=C,Q.totalEntries=u,C=0;let E=Buffer.alloc(A);j.forEach(function(c){c.copy(E,C),C+=c.length}),v.forEach(function(c){c.copy(E,C),C+=c.length});let d=Q.toBinary();if(Y)Y.copy(d,d.length-Y.length);d.copy(E,C),D=E,U=!1,B(E)}};_(Array.from(this.entries))}catch(j){N(j)}}}}});var cL=k((MVD,iL)=>{var G0=T8(),q0=XD("path"),Hc=mF(),Ic=lL(),t1=(...D)=>G0.findLast(D,($)=>typeof $==="boolean"),dL=(...D)=>G0.findLast(D,($)=>typeof $==="string"),Bc=(...D)=>G0.findLast(D,($)=>typeof $==="function"),Oc={noSort:!1,readEntries:!1,method:G0.Constants.NONE,fs:null};iL.exports=function(D,$){let J=null,X=Object.assign(Object.create(null),Oc);if(D&&typeof D==="object"){if(!(D instanceof Uint8Array)){if(Object.assign(X,D),D=X.input?X.input:void 0,X.input)delete X.input}if(Buffer.isBuffer(D))J=D,X.method=G0.Constants.BUFFER,D=void 0}Object.assign(X,$);let Y=new G0(X),Q=(z)=>{z.filter((I)=>I.attr).sort((I,B)=>B.path.length-I.path.length).forEach((I)=>Y.fs.chmodSync(I.path,I.attr))};if(typeof X.decoder!=="object"||typeof X.decoder.encode!=="function"||typeof X.decoder.decode!=="function")X.decoder=G0.decoder;if(D&&typeof D==="string")if(Y.fs.existsSync(D))X.method=G0.Constants.FILE,X.filename=D,J=Y.fs.readFileSync(D);else throw G0.Errors.INVALID_FILENAME();let U=new Ic(J,X),{canonical:F,sanitize:W,zipnamefix:K}=G0;function q(z){if(z&&U){var I;if(typeof z==="string")I=U.getEntry(q0.posix.normalize(z));if(typeof z==="object"&&typeof z.entryName<"u"&&typeof z.header<"u")I=U.getEntry(z.entryName);if(I)return I}return null}function G(z){let{join:I,normalize:B,sep:N}=q0.posix;return I(q0.isAbsolute(z)?"/":".",B(N+z.split("\\").join(N)+N))}function Z(z){if(z instanceof RegExp)return function(I){return function(B){return I.test(B)}}(z);else if(typeof z!=="function")return()=>!0;return z}let H=(z,I)=>{let B=I.slice(-1);return B=B===Y.sep?Y.sep:"",q0.relative(z,I)+B};return{readFile:function(z,I){var B=q(z);return B&&B.getData(I)||null},childCount:function(z){let I=q(z);if(I)return U.getChildCount(I)},readFileAsync:function(z,I){var B=q(z);if(B)B.getDataAsync(I);else I(null,"getEntry failed for:"+z)},readAsText:function(z,I){var B=q(z);if(B){var N=B.getData();if(N&&N.length)return N.toString(I||"utf8")}return""},readAsTextAsync:function(z,I,B){var N=q(z);if(N)N.getDataAsync(function(V,O){if(O){I(V,O);return}if(V&&V.length)I(V.toString(B||"utf8"));else I("")});else I("")},deleteFile:function(z,I=!0){var B=q(z);if(B)U.deleteFile(B.entryName,I)},deleteEntry:function(z){var I=q(z);if(I)U.deleteEntry(I.entryName)},addZipComment:function(z){U.comment=z},getZipComment:function(){return U.comment||""},addZipEntryComment:function(z,I){var B=q(z);if(B)B.comment=I},getZipEntryComment:function(z){var I=q(z);if(I)return I.comment||"";return""},updateFile:function(z,I){var B=q(z);if(B)B.setData(I)},addLocalFile:function(z,I,B,N){if(Y.fs.existsSync(z)){I=I?G(I):"";let V=q0.win32.basename(q0.win32.normalize(z));I+=B?B:V;let O=Y.fs.statSync(z),j=O.isFile()?Y.fs.readFileSync(z):Buffer.alloc(0);if(O.isDirectory())I+=Y.sep;this.addFile(I,j,N,O)}else throw G0.Errors.FILE_NOT_FOUND(z)},addLocalFileAsync:function(z,I){z=typeof z==="object"?z:{localPath:z};let B=q0.resolve(z.localPath),{comment:N}=z,{zipPath:V,zipName:O}=z,j=this;Y.fs.stat(B,function(v,A){if(v)return I(v,!1);V=V?G(V):"";let C=q0.win32.basename(q0.win32.normalize(B));if(V+=O?O:C,A.isFile())Y.fs.readFile(B,function(u,_){if(u)return I(u,!1);return j.addFile(V,_,N,A),setImmediate(I,void 0,!0)});else if(A.isDirectory())return V+=Y.sep,j.addFile(V,Buffer.alloc(0),N,A),setImmediate(I,void 0,!0)})},addLocalFolder:function(z,I,B){if(B=Z(B),I=I?G(I):"",z=q0.normalize(z),Y.fs.existsSync(z)){let N=Y.findFiles(z),V=this;if(N.length)for(let O of N){let j=q0.join(I,H(z,O));if(B(j))V.addLocalFile(O,q0.dirname(j))}}else throw G0.Errors.FILE_NOT_FOUND(z)},addLocalFolderAsync:function(z,I,B,N){N=Z(N),B=B?G(B):"",z=q0.normalize(z);var V=this;Y.fs.open(z,"r",function(O){if(O&&O.code==="ENOENT")I(void 0,G0.Errors.FILE_NOT_FOUND(z));else if(O)I(void 0,O);else{var j=Y.findFiles(z),v=-1,A=function(){if(v+=1,v<j.length){var C=j[v],u=H(z,C).split("\\").join("/");if(u=u.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,""),N(u))Y.fs.stat(C,function(_,y){if(_)I(void 0,_);if(y.isFile())Y.fs.readFile(C,function(E,d){if(E)I(void 0,E);else V.addFile(B+u,d,"",y),A()});else V.addFile(B+u+"/",Buffer.alloc(0),"",y),A()});else process.nextTick(()=>{A()})}else I(!0,void 0)};A()}})},addLocalFolderAsync2:function(z,I){let B=this;z=typeof z==="object"?z:{localPath:z};let N=q0.resolve(G(z.localPath)),{zipPath:V,filter:O,namefix:j}=z;if(O instanceof RegExp)O=function(C){return function(u){return C.test(u)}}(O);else if(typeof O!=="function")O=function(){return!0};if(V=V?G(V):"",j==="latin1")j=(C)=>C.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,"");if(typeof j!=="function")j=(C)=>C;let v=(C)=>q0.join(V,j(H(N,C))),A=(C)=>q0.win32.basename(q0.win32.normalize(j(C)));Y.fs.open(N,"r",function(C){if(C&&C.code==="ENOENT")I(void 0,G0.Errors.FILE_NOT_FOUND(N));else if(C)I(void 0,C);else Y.findFilesAsync(N,function(u,_){if(u)return I(u);if(_=_.filter((y)=>O(v(y))),!_.length)I(void 0,!1);setImmediate(_.reverse().reduce(function(y,E){return function(d,c){if(d||c===!1)return setImmediate(y,d,!1);B.addLocalFileAsync({localPath:E,zipPath:q0.dirname(v(E)),zipName:A(E)},y)}},I))})})},addLocalFolderPromise:function(z,I){return new Promise((B,N)=>{this.addLocalFolderAsync2(Object.assign({localPath:z},I),(V,O)=>{if(V)N(V);if(O)B(this)})})},addFile:function(z,I,B,N){z=K(z);let V=q(z),O=V!=null;if(!O)V=new Hc(X),V.entryName=z;V.comment=B||"";let j=typeof N==="object"&&N instanceof Y.fs.Stats;if(j)V.header.time=N.mtime;var v=V.isDirectory?16:0;let A=V.isDirectory?16384:32768;if(j)A|=4095&N.mode;else if(typeof N==="number")A|=4095&N;else A|=V.isDirectory?493:420;if(v=(v|A<<16)>>>0,V.attr=v,V.setData(I),!O)U.setEntry(V);return V},getEntries:function(z){return U.password=z,U?U.entries:[]},getEntry:function(z){return q(z)},getEntryCount:function(){return U.getEntryCount()},forEach:function(z){return U.forEach(z)},extractEntryTo:function(z,I,B,N,V,O){N=t1(!1,N),V=t1(!1,V),B=t1(!0,B),O=dL(V,O);var j=q(z);if(!j)throw G0.Errors.NO_ENTRY();var v=F(j.entryName),A=W(I,O&&!j.isDirectory?F(O):B?v:q0.basename(v));if(j.isDirectory){var C=U.getEntryChildren(j);return C.forEach(function(y){if(y.isDirectory)return;var E=y.getData();if(!E)throw G0.Errors.CANT_EXTRACT_FILE();var d=F(B?y.entryName:y.entryName.substring(j.entryName.length)),c=W(I,d);let p=V?y.header.fileAttr:void 0;Y.writeFileTo(c,E,N,p)}),!0}var u=j.getData(U.password);if(!u)throw G0.Errors.CANT_EXTRACT_FILE();if(Y.fs.existsSync(A)&&!N)throw G0.Errors.CANT_OVERRIDE();let _=V?z.header.fileAttr:void 0;return Y.writeFileTo(A,u,N,_),!0},test:function(z){if(!U)return!1;for(var I of U.entries)try{if(I.isDirectory)continue;var B=I.getData(z);if(!B)return!1}catch(N){return!1}return!0},extractAllTo:function(z,I,B,N){if(B=t1(!1,B),N=dL(B,N),I=t1(!1,I),!U)throw G0.Errors.NO_ZIP();let V=[];U.entries.forEach(function(O){var j=W(z,F(O.entryName));if(O.isDirectory){if(Y.makeDir(j),B)V.push({path:j,attr:O.header.fileAttr});return}var v=O.getData(N);if(!v)throw G0.Errors.CANT_EXTRACT_FILE();let A=B?O.header.fileAttr:void 0;Y.writeFileTo(j,v,I,A);try{Y.fs.utimesSync(j,O.header.time,O.header.time)}catch(C){}}),Q(V)},extractAllToAsync:function(z,I,B,N){if(N=Bc(I,B,N),B=t1(!1,B),I=t1(!1,I),!N)return new Promise((u,_)=>{this.extractAllToAsync(z,I,B,function(y){if(y)_(y);else u(this)})});if(!U){N(G0.Errors.NO_ZIP());return}z=q0.resolve(z);let V=(u)=>W(z,q0.normalize(F(u.entryName))),O=(u,_)=>Error(u+': "'+_+'"'),j=[],v=[];U.entries.forEach((u)=>{if(u.isDirectory)j.push(u);else v.push(u)});let A=[];for(let u of j){let _=V(u),y=B?u.header.fileAttr:void 0;try{Y.makeDir(_)}catch(E){N(O("Unable to create folder",_));continue}if(y)A.push({path:_,attr:y});try{Y.fs.utimesSync(_,u.header.time,u.header.time)}catch(E){}}let C=(u)=>{if(!u)try{Q(A)}catch(_){return N(O("Unable to set folder permissions",_.path||""))}N(u)};v.reverse().reduce(function(u,_){return function(y){if(y)u(y);else{let E=q0.normalize(F(_.entryName)),d=W(z,E);_.getDataAsync(function(c,p){if(p)u(p);else if(!c)u(G0.Errors.CANT_EXTRACT_FILE());else{let o=B?_.header.fileAttr:void 0;Y.writeFileToAsync(d,c,I,o,function(R){if(!R)return u(O("Unable to write file",d));Y.fs.utimes(d,_.header.time,_.header.time,function(){u()})})}})}}},C)()},writeZip:function(z,I){if(arguments.length===1){if(typeof z==="function")I=z,z=""}if(!z&&X.filename)z=X.filename;if(!z)return;var B=U.compressToBuffer();if(B){var N=Y.writeFileTo(z,B,!0);if(typeof I==="function")I(!N?Error("failed"):null,"")}},writeZipPromise:function(z,I){let{overwrite:B,perm:N}=Object.assign({overwrite:!0},I);return new Promise((V,O)=>{if(!z&&X.filename)z=X.filename;if(!z)O("ADM-ZIP: ZIP File Name Missing");this.toBufferPromise().then((j)=>{let v=(A)=>A?V(A):O("ADM-ZIP: Wasn't able to write zip file");Y.writeFileToAsync(z,j,B,N,v)},O)})},toBufferPromise:function(){return new Promise((z,I)=>{U.toAsyncBuffer(z,I)})},toBuffer:function(z,I,B,N){if(typeof z==="function")return U.toAsyncBuffer(z,I,B,N),null;return U.compressToBuffer()}}}});var pL=k((AVD,Nc)=>{Nc.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Alpic",constant:"ALPIC",env:"ALPIC_HOST"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE",pr:{env:"AC_GIT_PR",ne:"false"}},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN",pr:{env:"CODEBUILD_WEBHOOK_EVENT",any:["PULL_REQUEST_CREATED","PULL_REQUEST_UPDATED","PULL_REQUEST_REOPENED"]}},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Cloudflare Pages",constant:"CLOUDFLARE_PAGES",env:"CF_PAGES"},{name:"Cloudflare Workers",constant:"CLOUDFLARE_WORKERS",env:"WORKERS_CI"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var iF=k((lF)=>{var nL=pL(),z0=process.env;Object.defineProperty(lF,"_vendors",{value:nL.map(function(D){return D.constant})});lF.name=null;lF.isPR=null;lF.id=null;if(z0.CI!=="false")nL.forEach(function(D){let J=(Array.isArray(D.env)?D.env:[D.env]).every(function(X){return rL(X)});if(lF[D.constant]=J,!J)return;lF.name=D.name,lF.isPR=Vc(D),lF.id=D.constant});lF.isCI=!!(z0.CI!=="false"&&(z0.BUILD_ID||z0.BUILD_NUMBER||z0.CI||z0.CI_APP_ID||z0.CI_BUILD_ID||z0.CI_BUILD_NUMBER||z0.CI_NAME||z0.CONTINUOUS_INTEGRATION||z0.RUN_ID||lF.name||!1));function rL(D){if(typeof D==="string")return!!z0[D];if("env"in D)return z0[D.env]&&z0[D.env].includes(D.includes);if("any"in D)return D.any.some(function($){return!!z0[$]});return Object.keys(D).every(function($){return z0[$]===D[$]})}function Vc(D){switch(typeof D.pr){case"string":return!!z0[D.pr];case"object":if("env"in D.pr)if("any"in D.pr)return D.pr.any.some(function($){return z0[D.pr.env]===$});else return D.pr.env in z0&&z0[D.pr.env]!==D.pr.ne;else if("any"in D.pr)return D.pr.any.some(function($){return!!z0[$]});else return rL(D.pr);default:return null}}});var DR=k((EVD,eL)=>{var sL={};eL.exports=sL;var aL={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(aL).forEach(function(D){var $=aL[D],J=sL[D]=[];J.open="\x1B["+$[0]+"m",J.close="\x1B["+$[1]+"m"})});var JR=k((TVD,$R)=>{$R.exports=function(D,$){$=$||process.argv;var J=$.indexOf("--"),X=/^-{1,2}/.test(D)?"":"--",Y=$.indexOf(X+D);return Y!==-1&&(J===-1?!0:Y<J)}});var YR=k((PVD,XR)=>{var jc=XD("os"),D6=JR(),o0=process.env,P8=void 0;if(D6("no-color")||D6("no-colors")||D6("color=false"))P8=!1;else if(D6("color")||D6("colors")||D6("color=true")||D6("color=always"))P8=!0;if("FORCE_COLOR"in o0)P8=o0.FORCE_COLOR.length===0||parseInt(o0.FORCE_COLOR,10)!==0;function Lc(D){if(D===0)return!1;return{level:D,hasBasic:!0,has256:D>=2,has16m:D>=3}}function Rc(D){if(P8===!1)return 0;if(D6("color=16m")||D6("color=full")||D6("color=truecolor"))return 3;if(D6("color=256"))return 2;if(D&&!D.isTTY&&P8!==!0)return 0;var $=P8?1:0;if(process.platform==="win32"){var J=jc.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(J[0])>=10&&Number(J[2])>=10586)return Number(J[2])>=14931?3:2;return 1}if("CI"in o0){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(Y){return Y in o0})||o0.CI_NAME==="codeship")return 1;return $}if("TEAMCITY_VERSION"in o0)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o0.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in o0){var X=parseInt((o0.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o0.TERM_PROGRAM){case"iTerm.app":return X>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(o0.TERM))return 2;if(/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(o0.TERM))return 1;if("COLORTERM"in o0)return 1;if(o0.TERM==="dumb")return $;return $}function cF(D){var $=Rc(D);return Lc($)}XR.exports={supportsColor:cF,stdout:cF(process.stdout),stderr:cF(process.stderr)}});var UR=k((bVD,QR)=>{QR.exports=function($,J){var X="";$=$||"Run the trap, drop the bass",$=$.split("");var Y={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return $.forEach(function(Q){Q=Q.toLowerCase();var U=Y[Q]||[" "],F=Math.floor(Math.random()*U.length);if(typeof Y[Q]<"u")X+=Y[Q][F];else X+=Q}),X}});var WR=k((SVD,FR)=>{FR.exports=function($,J){$=$||" he is here ";var X={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},Y=[].concat(X.up,X.down,X.mid);function Q(W){var K=Math.floor(Math.random()*W);return K}function U(W){var K=!1;return Y.filter(function(q){K=q===W}),K}function F(W,K){var q="",G,Z;K=K||{},K.up=typeof K.up<"u"?K.up:!0,K.mid=typeof K.mid<"u"?K.mid:!0,K.down=typeof K.down<"u"?K.down:!0,K.size=typeof K.size<"u"?K.size:"maxi",W=W.split("");for(Z in W){if(U(Z))continue;switch(q=q+W[Z],G={up:0,down:0,mid:0},K.size){case"mini":G.up=Q(8),G.mid=Q(2),G.down=Q(8);break;case"maxi":G.up=Q(16)+3,G.mid=Q(4)+1,G.down=Q(64)+3;break;default:G.up=Q(8)+1,G.mid=Q(6)/2,G.down=Q(8)+1;break}var H=["up","mid","down"];for(var z in H){var I=H[z];for(var B=0;B<=G[I];B++)if(K[I])q=q+X[I][Q(X[I].length)]}}return q}return F($,J)}});var qR=k((CVD,KR)=>{KR.exports=function(D){return function($,J,X){if($===" ")return $;switch(J%3){case 0:return D.red($);case 1:return D.white($);case 2:return D.blue($)}}}});var ZR=k((kVD,GR)=>{GR.exports=function(D){return function($,J,X){return J%2===0?$:D.inverse($)}}});var HR=k((_VD,zR)=>{zR.exports=function(D){var $=["red","yellow","green","blue","magenta"];return function(J,X,Y){if(J===" ")return J;else return D[$[X++%$.length]](J)}}});var BR=k((uVD,IR)=>{IR.exports=function(D){var $=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(J,X,Y){return J===" "?J:D[$[Math.round(Math.random()*($.length-2))]](J)}}});var jR=k((xVD,wR)=>{var vD={};wR.exports=vD;vD.themes={};var Mc=XD("util"),o1=vD.styles=DR(),OR=Object.defineProperties,Ac=new RegExp(/[\r\n]+/g);vD.supportsColor=YR().supportsColor;if(typeof vD.enabled>"u")vD.enabled=vD.supportsColor()!==!1;vD.enable=function(){vD.enabled=!0};vD.disable=function(){vD.enabled=!1};vD.stripColors=vD.strip=function(D){return(""+D).replace(/\x1B\[\d+m/g,"")};var gVD=vD.stylize=function($,J){if(!vD.enabled)return $+"";var X=o1[J];if(!X&&J in vD)return vD[J]($);return X.open+$+X.close},vc=/[|\\{}()[\]^$+*?.]/g,Ec=function(D){if(typeof D!=="string")throw TypeError("Expected a string");return D.replace(vc,"\\$&")};function NR(D){var $=function J(){return Pc.apply(J,arguments)};return $._styles=D,$.__proto__=Tc,$}var VR=function(){var D={};return o1.grey=o1.gray,Object.keys(o1).forEach(function($){o1[$].closeRe=new RegExp(Ec(o1[$].close),"g"),D[$]={get:function(){return NR(this._styles.concat($))}}}),D}(),Tc=OR(function(){},VR);function Pc(){var D=Array.prototype.slice.call(arguments),$=D.map(function(U){if(U!=null&&U.constructor===String)return U;else return Mc.inspect(U)}).join(" ");if(!vD.enabled||!$)return $;var J=$.indexOf(`
`)!=-1,X=this._styles,Y=X.length;while(Y--){var Q=o1[X[Y]];if($=Q.open+$.replace(Q.closeRe,Q.open)+Q.close,J)$=$.replace(Ac,function(U){return Q.close+U+Q.open})}return $}vD.setTheme=function(D){if(typeof D==="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var $ in D)(function(J){vD[J]=function(X){if(typeof D[J]==="object"){var Y=X;for(var Q in D[J])Y=vD[D[J][Q]](Y);return Y}return vD[D[J]](X)}})($)};function bc(){var D={};return Object.keys(VR).forEach(function($){D[$]={get:function(){return NR([$])}}}),D}var Sc=function($,J){var X=J.split("");return X=X.map($),X.join("")};vD.trap=UR();vD.zalgo=WR();vD.maps={};vD.maps.america=qR()(vD);vD.maps.zebra=ZR()(vD);vD.maps.rainbow=HR()(vD);vD.maps.random=BR()(vD);for(pF in vD.maps)(function(D){vD[D]=function($){return Sc(vD.maps[D],$)}})(pF);var pF;OR(vD,bc())});var RR=k((fVD,LR)=>{var Cc=jR();LR.exports=Cc});var MR=k((kc)=>{kc.indent=function($){return Array($+1).join(" ")};kc.getMaxIndexLength=function(D){var $=0;return Object.getOwnPropertyNames(D).forEach(function(J){if(D[J]===void 0)return;$=Math.max($,J.length)}),$}});var AR=k((hVD,gc)=>{gc.exports={author:"Rafael de Oleza <rafeca@gmail.com> (https://github.com/rafeca)",name:"prettyjson",description:"Package for formatting JSON data in a coloured YAML-style, perfect for CLI output",version:"1.2.5",homepage:"http://rafeca.com/prettyjson",keywords:["json","cli","formatting","colors"],repository:{type:"git",url:"https://github.com/rafeca/prettyjson.git"},bugs:{url:"https://github.com/rafeca/prettyjson/issues"},main:"./lib/prettyjson",files:["bin/prettyjson","lib/*.js"],license:"MIT",scripts:{test:"npm run jshint && mocha --reporter spec",testwin:"node ./node_modules/mocha/bin/mocha --reporter spec",jshint:"jshint lib/*.js test/*.js",coverage:"istanbul cover _mocha --report lcovonly -- -R spec",coveralls:"npm run coverage && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage",changelog:"git log $(git describe --tags --abbrev=0)..HEAD --pretty='* %s' --first-parent"},bin:{prettyjson:"./bin/prettyjson"},dependencies:{colors:"1.4.0",minimist:"^1.2.0"},devDependencies:{coveralls:"^2.11.15",istanbul:"^0.4.5",jshint:"^2.9.4",mocha:"^3.1.2","mocha-lcov-reporter":"^1.2.0",should:"^11.1.1"}}});var ER=k((hc)=>{var H6=RR(),Y1=MR(),xc=/[^\w\s\n\r\v\t\.,]/i;hc.version=AR().version;var nF=function(D,$){return D!==void 0||$.renderUndefined},KJ=function(D,$,J){if(typeof D==="boolean"||typeof D==="number"||typeof D==="function"||D===null||D===void 0||D instanceof Date)return!0;if(typeof D==="string"&&D.indexOf(`
`)===-1)return!0;if(J.inlineArrays&&!$){if(Array.isArray(D)&&KJ(D[0],!0,J))return!0}return!1},fc=function(D,$){if($.noColor)return D;if(typeof D==="string")return $.stringColor?H6[$.stringColor](D):D;var J=D+"";if(D===!0)return H6.green(J);if(D===!1)return H6.red(J);if(D===null||D===void 0)return H6.grey(J);if(typeof D==="number")if(D>=0)return H6[$.positiveNumberColor](J);else return H6[$.negativeNumberColor](J);if(typeof D==="function")return"function() {}";if(Array.isArray(D))return D.join(", ");return J},rF=function(D,$){if(D.multilineStringColor===null||D.noColor)return $;else return H6[D.multilineStringColor]($)},yc=function(D,$,J){var X=D.split(`
`);return X=X.map(function(Y){return Y1.indent($)+rF(J,Y)}),X.join(`
`)},b8=function(D,$,J){if(typeof D==="string"&&D.match(xc)&&$.escape)D=JSON.stringify(D);if(!nF(D,$))return[];if(KJ(D,!1,$))return[Y1.indent(J)+fc(D,$)];if(typeof D==="string")return[Y1.indent(J)+rF($,'"""'),yc(D,J+$.defaultIndentation,$),Y1.indent(J)+rF($,'"""')];if(Array.isArray(D)){if(D.length===0)return[Y1.indent(J)+$.emptyArrayMsg];var X=[];return D.forEach(function(F){if(!nF(F,$))return;var W="- ";if(!$.noColor)W=H6[$.dashColor](W);if(W=Y1.indent(J)+W,KJ(F,!1,$))W+=b8(F,$,0)[0],X.push(W);else X.push(W),X.push.apply(X,b8(F,$,J+$.defaultIndentation))}),X}if(D instanceof Error)return b8({message:D.message,stack:D.stack.split(`
`)},$,J);var Y=$.noAlign?0:Y1.getMaxIndexLength(D),Q,U=[];return Object.getOwnPropertyNames(D).forEach(function(F){if(!nF(D[F],$))return;if(Q=F+": ",!$.noColor)Q=H6[$.keysColor](Q);if(Q=Y1.indent(J)+Q,KJ(D[F],!1,$)){var W=$.noAlign?0:Y-F.length;Q+=b8(D[F],$,W)[0],U.push(Q)}else U.push(Q),U.push.apply(U,b8(D[F],$,J+$.defaultIndentation))}),U};hc.render=function($,J,X){return X=X||0,J=J||{},J.emptyArrayMsg=J.emptyArrayMsg||"(empty array)",J.keysColor=J.keysColor||"green",J.dashColor=J.dashColor||"green",J.numberColor=J.numberColor||"blue",J.positiveNumberColor=J.positiveNumberColor||J.numberColor,J.negativeNumberColor=J.negativeNumberColor||J.numberColor,J.defaultIndentation=J.defaultIndentation||2,J.noColor=!!J.noColor,J.noAlign=!!J.noAlign,J.escape=!!J.escape,J.renderUndefined=!!J.renderUndefined,J.stringColor=J.stringColor||null,J.multilineStringColor=J.multilineStringColor||null,b8($,J,X).join(`
`)};hc.renderString=function($,J,X){var Y="",Q;if(typeof $!=="string"||$==="")return"";if($[0]!=="{"&&$[0]!=="["){var U;if($.indexOf("{")===-1)U=$.indexOf("[");else if($.indexOf("[")===-1)U=$.indexOf("{");else if($.indexOf("{")<$.indexOf("["))U=$.indexOf("{");else U=$.indexOf("[");Y+=$.substr(0,U)+`
`,$=$.substr(U)}try{Q=JSON.parse($)}catch(F){return H6.red("Error:")+" Not valid JSON!"}return Y+=hc.render(Q,J,X),Y}});var aF=k((PR)=>{Object.defineProperty(PR,"__esModule",{value:!0});PR.default=void 0;function S8(D){return S8=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},S8(D)}function TR(D,$){for(var J=0;J<$.length;J++){var X=$[J];if(X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X)X.writable=!0;Object.defineProperty(D,ic(X.key),X)}}function dc(D,$,J){if($)TR(D.prototype,$);if(J)TR(D,J);return Object.defineProperty(D,"prototype",{writable:!1}),D}function ic(D){var $=cc(D,"string");return S8($)=="symbol"?$:$+""}function cc(D,$){if(S8(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var X=J.call(D,$||"default");if(S8(X)!="object")return X;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}function pc(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function nc(D,$,J){return $=X5($),rc(D,oF()?Reflect.construct($,J||[],X5(D).constructor):$.apply(D,J))}function rc(D,$){if($&&(S8($)==="object"||typeof $==="function"))return $;else if($!==void 0)throw TypeError("Derived constructors may only return object or undefined");return tc(D)}function tc(D){if(D===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function oc(D,$){if(typeof $!=="function"&&$!==null)throw TypeError("Super expression must either be null or a function");if(D.prototype=Object.create($&&$.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),$)J5(D,$)}function tF(D){var $=typeof Map==="function"?new Map:void 0;return tF=function(X){if(X===null||!sc(X))return X;if(typeof X!=="function")throw TypeError("Super expression must either be null or a function");if(typeof $<"u"){if($.has(X))return $.get(X);$.set(X,Y)}function Y(){return ac(X,arguments,X5(this).constructor)}return Y.prototype=Object.create(X.prototype,{constructor:{value:Y,enumerable:!1,writable:!0,configurable:!0}}),J5(Y,X)},tF(D)}function ac(D,$,J){if(oF())return Reflect.construct.apply(null,arguments);var X=[null];X.push.apply(X,$);var Y=new(D.bind.apply(D,X));return J&&J5(Y,J.prototype),Y}function oF(){try{var D=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch($){}return(oF=function(){return!!D})()}function sc(D){try{return Function.toString.call(D).indexOf("[native code]")!==-1}catch($){return typeof D==="function"}}function J5(D,$){return J5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(X,Y){return X.__proto__=Y,X},J5(D,$)}function X5(D){return X5=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(J){return J.__proto__||Object.getPrototypeOf(J)},X5(D)}var ec=function(D){function $(J){var X,Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,U=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;if(pc(this,$),X=nc(this,$,[J]),X.originalRequest=Q,X.originalResponse=U,X.causingError=Y,Y!=null)J+=", caused by ".concat(Y.toString());if(Q!=null){var F=Q.getHeader("X-Request-ID")||"n/a",W=Q.getMethod(),K=Q.getURL(),q=U?U.getStatus():"n/a",G=U?U.getBody()||"":"n/a";J+=", originated from request (method: ".concat(W,", url: ").concat(K,", response code: ").concat(q,", response text: ").concat(G,", request id: ").concat(F,")")}return X.message=J,X}return oc($,D),dc($)}(tF(Error)),lVD=PR.default=ec});var sF=k((CR)=>{Object.defineProperty(CR,"__esModule",{value:!0});CR.enableDebugLog=Dp;CR.log=$p;var SR=!1;function Dp(){SR=!0}function $p(D){if(!SR)return;console.log(D)}});var gR=k((_R)=>{Object.defineProperty(_R,"__esModule",{value:!0});_R.default=void 0;function Y5(D){return Y5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},Y5(D)}function Yp(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function kR(D,$){for(var J=0;J<$.length;J++){var X=$[J];if(X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X)X.writable=!0;Object.defineProperty(D,Up(X.key),X)}}function Qp(D,$,J){if($)kR(D.prototype,$);if(J)kR(D,J);return Object.defineProperty(D,"prototype",{writable:!1}),D}function Up(D){var $=Fp(D,"string");return Y5($)=="symbol"?$:$+""}function Fp(D,$){if(Y5(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var X=J.call(D,$||"default");if(Y5(X)!="object")return X;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}var cVD=_R.default=function(){function D(){Yp(this,D)}return Qp(D,[{key:"listAllUploads",value:function(){return Promise.resolve([])}},{key:"findUploadsByFingerprint",value:function(J){return Promise.resolve([])}},{key:"removeUpload",value:function(J){return Promise.resolve()}},{key:"addUpload",value:function(J,X){return Promise.resolve(null)}}])}()});var xR=k((eF,DW)=>{(function(D,$){typeof eF==="object"&&typeof DW<"u"?DW.exports=$():typeof define==="function"&&define.amd?define($):function(){var J=D.Base64,X=$();if(X.noConflict=function(){return D.Base64=J,X},D.Meteor)Base64=X;D.Base64=X}()})(typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:eF,function(){var D="3.7.8",$=D,J=typeof Buffer==="function",X=typeof TextDecoder==="function"?new TextDecoder:void 0,Y=typeof TextEncoder==="function"?new TextEncoder:void 0,Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",U=Array.prototype.slice.call(Q),F=function(g){var i={};return g.forEach(function(HD,ND){return i[HD]=ND}),i}(U),W=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,K=String.fromCharCode.bind(String),q=typeof Uint8Array.from==="function"?Uint8Array.from.bind(Uint8Array):function(g){return new Uint8Array(Array.prototype.slice.call(g,0))},G=function(g){return g.replace(/=/g,"").replace(/[+\/]/g,function(i){return i=="+"?"-":"_"})},Z=function(g){return g.replace(/[^A-Za-z0-9\+\/]/g,"")},H=function(g){var i,HD,ND,PD,f$="",H8=g.length%3;for(var c1=0;c1<g.length;){if((HD=g.charCodeAt(c1++))>255||(ND=g.charCodeAt(c1++))>255||(PD=g.charCodeAt(c1++))>255)throw TypeError("invalid character found");i=HD<<16|ND<<8|PD,f$+=U[i>>18&63]+U[i>>12&63]+U[i>>6&63]+U[i&63]}return H8?f$.slice(0,H8-3)+"===".substring(H8):f$},z=typeof btoa==="function"?function(g){return btoa(g)}:J?function(g){return Buffer.from(g,"binary").toString("base64")}:H,I=J?function(g){return Buffer.from(g).toString("base64")}:function(g){var i=4096,HD=[];for(var ND=0,PD=g.length;ND<PD;ND+=i)HD.push(K.apply(null,g.subarray(ND,ND+i)));return z(HD.join(""))},B=function(g,i){if(i===void 0)i=!1;return i?G(I(g)):I(g)},N=function(g){if(g.length<2){var i=g.charCodeAt(0);return i<128?g:i<2048?K(192|i>>>6)+K(128|i&63):K(224|i>>>12&15)+K(128|i>>>6&63)+K(128|i&63)}else{var i=65536+(g.charCodeAt(0)-55296)*1024+(g.charCodeAt(1)-56320);return K(240|i>>>18&7)+K(128|i>>>12&63)+K(128|i>>>6&63)+K(128|i&63)}},V=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,O=function(g){return g.replace(V,N)},j=J?function(g){return Buffer.from(g,"utf8").toString("base64")}:Y?function(g){return I(Y.encode(g))}:function(g){return z(O(g))},v=function(g,i){if(i===void 0)i=!1;return i?G(j(g)):j(g)},A=function(g){return v(g,!0)},C=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,u=function(g){switch(g.length){case 4:var i=(7&g.charCodeAt(0))<<18|(63&g.charCodeAt(1))<<12|(63&g.charCodeAt(2))<<6|63&g.charCodeAt(3),HD=i-65536;return K((HD>>>10)+55296)+K((HD&1023)+56320);case 3:return K((15&g.charCodeAt(0))<<12|(63&g.charCodeAt(1))<<6|63&g.charCodeAt(2));default:return K((31&g.charCodeAt(0))<<6|63&g.charCodeAt(1))}},_=function(g){return g.replace(C,u)},y=function(g){if(g=g.replace(/\s+/g,""),!W.test(g))throw TypeError("malformed base64.");g+="==".slice(2-(g.length&3));var i,HD,ND,PD=[];for(var f$=0;f$<g.length;)if(i=F[g.charAt(f$++)]<<18|F[g.charAt(f$++)]<<12|(HD=F[g.charAt(f$++)])<<6|(ND=F[g.charAt(f$++)]),HD===64)PD.push(K(i>>16&255));else if(ND===64)PD.push(K(i>>16&255,i>>8&255));else PD.push(K(i>>16&255,i>>8&255,i&255));return PD.join("")},E=typeof atob==="function"?function(g){return atob(Z(g))}:J?function(g){return Buffer.from(g,"base64").toString("binary")}:y,d=J?function(g){return q(Buffer.from(g,"base64"))}:function(g){return q(E(g).split("").map(function(i){return i.charCodeAt(0)}))},c=function(g){return d(o(g))},p=J?function(g){return Buffer.from(g,"base64").toString("utf8")}:X?function(g){return X.decode(d(g))}:function(g){return _(E(g))},o=function(g){return Z(g.replace(/[-_]/g,function(i){return i=="-"?"+":"/"}))},R=function(g){return p(o(g))},w=function(g){if(typeof g!=="string")return!1;var i=g.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(i)||!/[^\s0-9a-zA-Z\-_]/.test(i)},L=function(g){return{value:g,enumerable:!1,writable:!0,configurable:!0}},P=function(){var g=function(i,HD){return Object.defineProperty(String.prototype,i,L(HD))};g("fromBase64",function(){return R(this)}),g("toBase64",function(i){return v(this,i)}),g("toBase64URI",function(){return v(this,!0)}),g("toBase64URL",function(){return v(this,!0)}),g("toUint8Array",function(){return c(this)})},f=function(){var g=function(i,HD){return Object.defineProperty(Uint8Array.prototype,i,L(HD))};g("toBase64",function(i){return B(this,i)}),g("toBase64URI",function(){return B(this,!0)}),g("toBase64URL",function(){return B(this,!0)})},x=function(){P(),f()},s={version:D,VERSION:$,atob:E,atobPolyfill:y,btoa:z,btoaPolyfill:H,fromBase64:R,toBase64:v,encode:v,encodeURI:A,encodeURL:A,utob:O,btou:_,decode:R,isValid:w,fromUint8Array:B,toUint8Array:c,extendString:P,extendUint8Array:f,extendBuiltins:x};return s.Base64={},Object.keys(s).forEach(function(g){return s.Base64[g]=s[g]}),s})});var yR=k((nVD,fR)=>{fR.exports=function($,J){if(J=J.split(":")[0],$=+$,!$)return!1;switch(J){case"http":case"ws":return $!==80;case"https":case"wss":return $!==443;case"ftp":return $!==21;case"gopher":return $!==70;case"file":return!1}return $!==0}});var lR=k((Zp)=>{var Wp=Object.prototype.hasOwnProperty,Kp;function hR(D){try{return decodeURIComponent(D.replace(/\+/g," "))}catch($){return null}}function mR(D){try{return encodeURIComponent(D)}catch($){return null}}function qp(D){var $=/([^=?#&]+)=?([^&]*)/g,J={},X;while(X=$.exec(D)){var Y=hR(X[1]),Q=hR(X[2]);if(Y===null||Q===null||Y in J)continue;J[Y]=Q}return J}function Gp(D,$){$=$||"";var J=[],X,Y;if(typeof $!=="string")$="?";for(Y in D)if(Wp.call(D,Y)){if(X=D[Y],!X&&(X===null||X===Kp||isNaN(X)))X="";if(Y=mR(Y),X=mR(X),Y===null||X===null)continue;J.push(Y+"="+X)}return J.length?$+J.join("&"):""}Zp.stringify=Gp;Zp.parse=qp});var oR=k((tVD,tR)=>{var iR=yR(),qJ=lR(),Ip=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,cR=/[\n\r\t]/g,Bp=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,pR=/:\d+$/,Op=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,Np=/^[a-zA-Z]:/;function JW(D){return(D?D:"").toString().replace(Ip,"")}var $W=[["#","hash"],["?","query"],function($,J){return I6(J.protocol)?$.replace(/\\/g,"/"):$},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],dR={hash:1,query:1};function nR(D){var $;if(typeof window<"u")$=window;else if(typeof global<"u")$=global;else if(typeof self<"u")$=self;else $={};var J=$.location||{};D=D||J;var X={},Y=typeof D,Q;if(D.protocol==="blob:")X=new B6(unescape(D.pathname),{});else if(Y==="string"){X=new B6(D,{});for(Q in dR)delete X[Q]}else if(Y==="object"){for(Q in D){if(Q in dR)continue;X[Q]=D[Q]}if(X.slashes===void 0)X.slashes=Bp.test(D.href)}return X}function I6(D){return D==="file:"||D==="ftp:"||D==="http:"||D==="https:"||D==="ws:"||D==="wss:"}function rR(D,$){D=JW(D),D=D.replace(cR,""),$=$||{};var J=Op.exec(D),X=J[1]?J[1].toLowerCase():"",Y=!!J[2],Q=!!J[3],U=0,F;if(Y)if(Q)F=J[2]+J[3]+J[4],U=J[2].length+J[3].length;else F=J[2]+J[4],U=J[2].length;else if(Q)F=J[3]+J[4],U=J[3].length;else F=J[4];if(X==="file:"){if(U>=2)F=F.slice(2)}else if(I6(X))F=J[4];else if(X){if(Y)F=F.slice(2)}else if(U>=2&&I6($.protocol))F=J[4];return{protocol:X,slashes:Y||I6(X),slashesCount:U,rest:F}}function Vp(D,$){if(D==="")return $;var J=($||"/").split("/").slice(0,-1).concat(D.split("/")),X=J.length,Y=J[X-1],Q=!1,U=0;while(X--)if(J[X]===".")J.splice(X,1);else if(J[X]==="..")J.splice(X,1),U++;else if(U){if(X===0)Q=!0;J.splice(X,1),U--}if(Q)J.unshift("");if(Y==="."||Y==="..")J.push("");return J.join("/")}function B6(D,$,J){if(D=JW(D),D=D.replace(cR,""),!(this instanceof B6))return new B6(D,$,J);var X,Y,Q,U,F,W,K=$W.slice(),q=typeof $,G=this,Z=0;if(q!=="object"&&q!=="string")J=$,$=null;if(J&&typeof J!=="function")J=qJ.parse;if($=nR($),Y=rR(D||"",$),X=!Y.protocol&&!Y.slashes,G.slashes=Y.slashes||X&&$.slashes,G.protocol=Y.protocol||$.protocol||"",D=Y.rest,Y.protocol==="file:"&&(Y.slashesCount!==2||Np.test(D))||!Y.slashes&&(Y.protocol||Y.slashesCount<2||!I6(G.protocol)))K[3]=[/(.*)/,"pathname"];for(;Z<K.length;Z++){if(U=K[Z],typeof U==="function"){D=U(D,G);continue}if(Q=U[0],W=U[1],Q!==Q)G[W]=D;else if(typeof Q==="string"){if(F=Q==="@"?D.lastIndexOf(Q):D.indexOf(Q),~F)if(typeof U[2]==="number")G[W]=D.slice(0,F),D=D.slice(F+U[2]);else G[W]=D.slice(F),D=D.slice(0,F)}else if(F=Q.exec(D))G[W]=F[1],D=D.slice(0,F.index);if(G[W]=G[W]||(X&&U[3]?$[W]||"":""),U[4])G[W]=G[W].toLowerCase()}if(J)G.query=J(G.query);if(X&&$.slashes&&G.pathname.charAt(0)!=="/"&&(G.pathname!==""||$.pathname!==""))G.pathname=Vp(G.pathname,$.pathname);if(G.pathname.charAt(0)!=="/"&&I6(G.protocol))G.pathname="/"+G.pathname;if(!iR(G.port,G.protocol))G.host=G.hostname,G.port="";if(G.username=G.password="",G.auth){if(F=G.auth.indexOf(":"),~F)G.username=G.auth.slice(0,F),G.username=encodeURIComponent(decodeURIComponent(G.username)),G.password=G.auth.slice(F+1),G.password=encodeURIComponent(decodeURIComponent(G.password));else G.username=encodeURIComponent(decodeURIComponent(G.auth));G.auth=G.password?G.username+":"+G.password:G.username}G.origin=G.protocol!=="file:"&&I6(G.protocol)&&G.host?G.protocol+"//"+G.host:"null",G.href=G.toString()}function wp(D,$,J){var X=this;switch(D){case"query":if(typeof $==="string"&&$.length)$=(J||qJ.parse)($);X[D]=$;break;case"port":if(X[D]=$,!iR($,X.protocol))X.host=X.hostname,X[D]="";else if($)X.host=X.hostname+":"+$;break;case"hostname":if(X[D]=$,X.port)$+=":"+X.port;X.host=$;break;case"host":if(X[D]=$,pR.test($))$=$.split(":"),X.port=$.pop(),X.hostname=$.join(":");else X.hostname=$,X.port="";break;case"protocol":X.protocol=$.toLowerCase(),X.slashes=!J;break;case"pathname":case"hash":if($){var Y=D==="pathname"?"/":"#";X[D]=$.charAt(0)!==Y?Y+$:$}else X[D]=$;break;case"username":case"password":X[D]=encodeURIComponent($);break;case"auth":var Q=$.indexOf(":");if(~Q)X.username=$.slice(0,Q),X.username=encodeURIComponent(decodeURIComponent(X.username)),X.password=$.slice(Q+1),X.password=encodeURIComponent(decodeURIComponent(X.password));else X.username=encodeURIComponent(decodeURIComponent($))}for(var U=0;U<$W.length;U++){var F=$W[U];if(F[4])X[F[1]]=X[F[1]].toLowerCase()}return X.auth=X.password?X.username+":"+X.password:X.username,X.origin=X.protocol!=="file:"&&I6(X.protocol)&&X.host?X.protocol+"//"+X.host:"null",X.href=X.toString(),X}function jp(D){if(!D||typeof D!=="function")D=qJ.stringify;var $,J=this,X=J.host,Y=J.protocol;if(Y&&Y.charAt(Y.length-1)!==":")Y+=":";var Q=Y+(J.protocol&&J.slashes||I6(J.protocol)?"//":"");if(J.username){if(Q+=J.username,J.password)Q+=":"+J.password;Q+="@"}else if(J.password)Q+=":"+J.password,Q+="@";else if(J.protocol!=="file:"&&I6(J.protocol)&&!X&&J.pathname!=="/")Q+="@";if(X[X.length-1]===":"||pR.test(J.hostname)&&!J.port)X+=":";if(Q+=X+J.pathname,$=typeof J.query==="object"?D(J.query):J.query,$)Q+=$.charAt(0)!=="?"?"?"+$:$;if(J.hash)Q+=J.hash;return Q}B6.prototype={set:wp,toString:jp};B6.extractProtocol=rR;B6.location=nR;B6.trimLeft=JW;B6.qs=qJ;tR.exports=B6});var sR=k((aR)=>{Object.defineProperty(aR,"__esModule",{value:!0});aR.default=Lp;function Lp(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(D){var $=Math.random()*16|0,J=D==="x"?$:$&3|8;return J.toString(16)})}});var IM=k((zM)=>{Object.defineProperty(zM,"__esModule",{value:!0});zM.default=void 0;var Mp=xR(),Ap=QW(oR()),GJ=QW(aF()),a1=sF(),vp=QW(sR());function QW(D){return D&&D.__esModule?D:{default:D}}function XW(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */XW=function(){return $};var D,$={},J=Object.prototype,X=J.hasOwnProperty,Y=Object.defineProperty||function(R,w,L){R[w]=L.value},Q=typeof Symbol=="function"?Symbol:{},U=Q.iterator||"@@iterator",F=Q.asyncIterator||"@@asyncIterator",W=Q.toStringTag||"@@toStringTag";function K(R,w,L){return Object.defineProperty(R,w,{value:L,enumerable:!0,configurable:!0,writable:!0}),R[w]}try{K({},"")}catch(R){K=function(L,P,f){return L[P]=f}}function q(R,w,L,P){var f=w&&w.prototype instanceof N?w:N,x=Object.create(f.prototype),s=new p(P||[]);return Y(x,"_invoke",{value:y(R,L,s)}),x}function G(R,w,L){try{return{type:"normal",arg:R.call(w,L)}}catch(P){return{type:"throw",arg:P}}}$.wrap=q;var Z="suspendedStart",H="suspendedYield",z="executing",I="completed",B={};function N(){}function V(){}function O(){}var j={};K(j,U,function(){return this});var v=Object.getPrototypeOf,A=v&&v(v(o([])));A&&A!==J&&X.call(A,U)&&(j=A);var C=O.prototype=N.prototype=Object.create(j);function u(R){["next","throw","return"].forEach(function(w){K(R,w,function(L){return this._invoke(w,L)})})}function _(R,w){function L(f,x,s,g){var i=G(R[f],R,x);if(i.type!=="throw"){var HD=i.arg,ND=HD.value;return ND&&s1(ND)=="object"&&X.call(ND,"__await")?w.resolve(ND.__await).then(function(PD){L("next",PD,s,g)},function(PD){L("throw",PD,s,g)}):w.resolve(ND).then(function(PD){HD.value=PD,s(HD)},function(PD){return L("throw",PD,s,g)})}g(i.arg)}var P;Y(this,"_invoke",{value:function(x,s){function g(){return new w(function(i,HD){L(x,s,i,HD)})}return P=P?P.then(g,g):g()}})}function y(R,w,L){var P=Z;return function(f,x){if(P===z)throw Error("Generator is already running");if(P===I){if(f==="throw")throw x;return{value:D,done:!0}}for(L.method=f,L.arg=x;;){var s=L.delegate;if(s){var g=E(s,L);if(g){if(g===B)continue;return g}}if(L.method==="next")L.sent=L._sent=L.arg;else if(L.method==="throw"){if(P===Z)throw P=I,L.arg;L.dispatchException(L.arg)}else L.method==="return"&&L.abrupt("return",L.arg);P=z;var i=G(R,w,L);if(i.type==="normal"){if(P=L.done?I:H,i.arg===B)continue;return{value:i.arg,done:L.done}}i.type==="throw"&&(P=I,L.method="throw",L.arg=i.arg)}}}function E(R,w){var L=w.method,P=R.iterator[L];if(P===D)return w.delegate=null,L==="throw"&&R.iterator.return&&(w.method="return",w.arg=D,E(R,w),w.method==="throw")||L!=="return"&&(w.method="throw",w.arg=TypeError("The iterator does not provide a '"+L+"' method")),B;var f=G(P,R.iterator,w.arg);if(f.type==="throw")return w.method="throw",w.arg=f.arg,w.delegate=null,B;var x=f.arg;return x?x.done?(w[R.resultName]=x.value,w.next=R.nextLoc,w.method!=="return"&&(w.method="next",w.arg=D),w.delegate=null,B):x:(w.method="throw",w.arg=TypeError("iterator result is not an object"),w.delegate=null,B)}function d(R){var w={tryLoc:R[0]};1 in R&&(w.catchLoc=R[1]),2 in R&&(w.finallyLoc=R[2],w.afterLoc=R[3]),this.tryEntries.push(w)}function c(R){var w=R.completion||{};w.type="normal",delete w.arg,R.completion=w}function p(R){this.tryEntries=[{tryLoc:"root"}],R.forEach(d,this),this.reset(!0)}function o(R){if(R||R===""){var w=R[U];if(w)return w.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var L=-1,P=function f(){for(;++L<R.length;)if(X.call(R,L))return f.value=R[L],f.done=!1,f;return f.value=D,f.done=!0,f};return P.next=P}}throw TypeError(s1(R)+" is not iterable")}return V.prototype=O,Y(C,"constructor",{value:O,configurable:!0}),Y(O,"constructor",{value:V,configurable:!0}),V.displayName=K(O,W,"GeneratorFunction"),$.isGeneratorFunction=function(R){var w=typeof R=="function"&&R.constructor;return!!w&&(w===V||(w.displayName||w.name)==="GeneratorFunction")},$.mark=function(R){return Object.setPrototypeOf?Object.setPrototypeOf(R,O):(R.__proto__=O,K(R,W,"GeneratorFunction")),R.prototype=Object.create(C),R},$.awrap=function(R){return{__await:R}},u(_.prototype),K(_.prototype,F,function(){return this}),$.AsyncIterator=_,$.async=function(R,w,L,P,f){f===void 0&&(f=Promise);var x=new _(q(R,w,L,P),f);return $.isGeneratorFunction(w)?x:x.next().then(function(s){return s.done?s.value:x.next()})},u(C),K(C,W,"Generator"),K(C,U,function(){return this}),K(C,"toString",function(){return"[object Generator]"}),$.keys=function(R){var w=Object(R),L=[];for(var P in w)L.push(P);return L.reverse(),function f(){for(;L.length;){var x=L.pop();if(x in w)return f.value=x,f.done=!1,f}return f.done=!0,f}},$.values=o,p.prototype={constructor:p,reset:function(w){if(this.prev=0,this.next=0,this.sent=this._sent=D,this.done=!1,this.delegate=null,this.method="next",this.arg=D,this.tryEntries.forEach(c),!w)for(var L in this)L.charAt(0)==="t"&&X.call(this,L)&&!isNaN(+L.slice(1))&&(this[L]=D)},stop:function(){this.done=!0;var w=this.tryEntries[0].completion;if(w.type==="throw")throw w.arg;return this.rval},dispatchException:function(w){if(this.done)throw w;var L=this;function P(HD,ND){return s.type="throw",s.arg=w,L.next=HD,ND&&(L.method="next",L.arg=D),!!ND}for(var f=this.tryEntries.length-1;f>=0;--f){var x=this.tryEntries[f],s=x.completion;if(x.tryLoc==="root")return P("end");if(x.tryLoc<=this.prev){var g=X.call(x,"catchLoc"),i=X.call(x,"finallyLoc");if(g&&i){if(this.prev<x.catchLoc)return P(x.catchLoc,!0);if(this.prev<x.finallyLoc)return P(x.finallyLoc)}else if(g){if(this.prev<x.catchLoc)return P(x.catchLoc,!0)}else{if(!i)throw Error("try statement without catch or finally");if(this.prev<x.finallyLoc)return P(x.finallyLoc)}}}},abrupt:function(w,L){for(var P=this.tryEntries.length-1;P>=0;--P){var f=this.tryEntries[P];if(f.tryLoc<=this.prev&&X.call(f,"finallyLoc")&&this.prev<f.finallyLoc){var x=f;break}}x&&(w==="break"||w==="continue")&&x.tryLoc<=L&&L<=x.finallyLoc&&(x=null);var s=x?x.completion:{};return s.type=w,s.arg=L,x?(this.method="next",this.next=x.finallyLoc,B):this.complete(s)},complete:function(w,L){if(w.type==="throw")throw w.arg;return w.type==="break"||w.type==="continue"?this.next=w.arg:w.type==="return"?(this.rval=this.arg=w.arg,this.method="return",this.next="end"):w.type==="normal"&&L&&(this.next=L),B},finish:function(w){for(var L=this.tryEntries.length-1;L>=0;--L){var P=this.tryEntries[L];if(P.finallyLoc===w)return this.complete(P.completion,P.afterLoc),c(P),B}},catch:function(w){for(var L=this.tryEntries.length-1;L>=0;--L){var P=this.tryEntries[L];if(P.tryLoc===w){var f=P.completion;if(f.type==="throw"){var x=f.arg;c(P)}return x}}throw Error("illegal catch attempt")},delegateYield:function(w,L,P){return this.delegate={iterator:o(w),resultName:L,nextLoc:P},this.method==="next"&&(this.arg=D),B}},$}function eR(D,$,J,X,Y,Q,U){try{var F=D[Q](U),W=F.value}catch(K){J(K);return}if(F.done)$(W);else Promise.resolve(W).then(X,Y)}function Ep(D){return function(){var $=this,J=arguments;return new Promise(function(X,Y){var Q=D.apply($,J);function U(W){eR(Q,X,Y,U,F,"next",W)}function F(W){eR(Q,X,Y,U,F,"throw",W)}U(void 0)})}}function WM(D,$){return bp(D)||Pp(D,$)||KM(D,$)||Tp()}function Tp(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pp(D,$){var J=D==null?null:typeof Symbol<"u"&&D[Symbol.iterator]||D["@@iterator"];if(J!=null){var X,Y,Q,U,F=[],W=!0,K=!1;try{if(Q=(J=J.call(D)).next,$===0){if(Object(J)!==J)return;W=!1}else for(;!(W=(X=Q.call(J)).done)&&(F.push(X.value),F.length!==$);W=!0);}catch(q){K=!0,Y=q}finally{try{if(!W&&J.return!=null&&(U=J.return(),Object(U)!==U))return}finally{if(K)throw Y}}return F}}function bp(D){if(Array.isArray(D))return D}function s1(D){return s1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},s1(D)}function Sp(D,$){var J=typeof Symbol<"u"&&D[Symbol.iterator]||D["@@iterator"];if(!J){if(Array.isArray(D)||(J=KM(D))||$&&D&&typeof D.length==="number"){if(J)D=J;var X=0,Y=function(){};return{s:Y,n:function(){if(X>=D.length)return{done:!0};return{done:!1,value:D[X++]}},e:function(K){throw K},f:Y}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Q=!0,U=!1,F;return{s:function(){J=J.call(D)},n:function(){var K=J.next();return Q=K.done,K},e:function(K){U=!0,F=K},f:function(){try{if(!Q&&J.return!=null)J.return()}finally{if(U)throw F}}}}function KM(D,$){if(!D)return;if(typeof D==="string")return DM(D,$);var J=Object.prototype.toString.call(D).slice(8,-1);if(J==="Object"&&D.constructor)J=D.constructor.name;if(J==="Map"||J==="Set")return Array.from(D);if(J==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J))return DM(D,$)}function DM(D,$){if($==null||$>D.length)$=D.length;for(var J=0,X=Array($);J<$;J++)X[J]=D[J];return X}function $M(D,$){var J=Object.keys(D);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(D);$&&(X=X.filter(function(Y){return Object.getOwnPropertyDescriptor(D,Y).enumerable})),J.push.apply(J,X)}return J}function C8(D){for(var $=1;$<arguments.length;$++){var J=arguments[$]!=null?arguments[$]:{};$%2?$M(Object(J),!0).forEach(function(X){Cp(D,X,J[X])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(J)):$M(Object(J)).forEach(function(X){Object.defineProperty(D,X,Object.getOwnPropertyDescriptor(J,X))})}return D}function Cp(D,$,J){if($=qM($),$ in D)Object.defineProperty(D,$,{value:J,enumerable:!0,configurable:!0,writable:!0});else D[$]=J;return D}function kp(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function JM(D,$){for(var J=0;J<$.length;J++){var X=$[J];if(X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X)X.writable=!0;Object.defineProperty(D,qM(X.key),X)}}function _p(D,$,J){if($)JM(D.prototype,$);if(J)JM(D,J);return Object.defineProperty(D,"prototype",{writable:!1}),D}function qM(D){var $=up(D,"string");return s1($)=="symbol"?$:$+""}function up(D,$){if(s1(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var X=J.call(D,$||"default");if(s1(X)!="object")return X;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}var ZJ="tus-v1",zJ="ietf-draft-03",Q5="ietf-draft-05",gp={endpoint:null,uploadUrl:null,metadata:{},metadataForPartialUploads:{},fingerprint:null,uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,onUploadUrlAvailable:null,overridePatchMethod:!1,headers:{},addRequestId:!1,onBeforeRequest:null,onAfterResponse:null,onShouldRetry:ZM,chunkSize:Number.POSITIVE_INFINITY,retryDelays:[0,1000,3000,5000],parallelUploads:1,parallelUploadBoundaries:null,storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1,urlStorage:null,fileReader:null,httpStack:null,protocol:ZJ},GM=function(){function D($,J){if(kp(this,D),"resume"in J)console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead.");this.options=J,this.options.chunkSize=Number(this.options.chunkSize),this._urlStorage=this.options.urlStorage,this.file=$,this.url=null,this._req=null,this._fingerprint=null,this._urlStorageKey=null,this._offset=null,this._aborted=!1,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0,this._parallelUploads=null,this._parallelUploadUrls=null}return _p(D,[{key:"findPreviousUploads",value:function(){var J=this;return this.options.fingerprint(this.file,this.options).then(function(X){return J._urlStorage.findUploadsByFingerprint(X)})}},{key:"resumeFromPreviousUpload",value:function(J){this.url=J.uploadUrl||null,this._parallelUploadUrls=J.parallelUploadUrls||null,this._urlStorageKey=J.urlStorageKey}},{key:"start",value:function(){var J=this,X=this.file;if(!X){this._emitError(Error("tus: no file or stream to upload provided"));return}if(![ZJ,zJ,Q5].includes(this.options.protocol)){this._emitError(Error("tus: unsupported protocol ".concat(this.options.protocol)));return}if(!this.options.endpoint&&!this.options.uploadUrl&&!this.url){this._emitError(Error("tus: neither an endpoint or an upload URL is provided"));return}var Y=this.options.retryDelays;if(Y!=null&&Object.prototype.toString.call(Y)!=="[object Array]"){this._emitError(Error("tus: the `retryDelays` option must either be an array or null"));return}if(this.options.parallelUploads>1)for(var Q=0,U=["uploadUrl","uploadSize","uploadLengthDeferred"];Q<U.length;Q++){var F=U[Q];if(this.options[F]){this._emitError(Error("tus: cannot use the ".concat(F," option when parallelUploads is enabled")));return}}if(this.options.parallelUploadBoundaries){if(this.options.parallelUploads<=1){this._emitError(Error("tus: cannot use the `parallelUploadBoundaries` option when `parallelUploads` is disabled"));return}if(this.options.parallelUploads!==this.options.parallelUploadBoundaries.length){this._emitError(Error("tus: the `parallelUploadBoundaries` must have the same length as the value of `parallelUploads`"));return}}this.options.fingerprint(X,this.options).then(function(W){if(W==null)(0,a1.log)("No fingerprint was calculated meaning that the upload cannot be stored in the URL storage.");else(0,a1.log)("Calculated fingerprint: ".concat(W));if(J._fingerprint=W,J._source)return J._source;return J.options.fileReader.openFile(X,J.options.chunkSize)}).then(function(W){if(J._source=W,J.options.uploadLengthDeferred)J._size=null;else if(J.options.uploadSize!=null){if(J._size=Number(J.options.uploadSize),Number.isNaN(J._size)){J._emitError(Error("tus: cannot convert `uploadSize` option into a number"));return}}else if(J._size=J._source.size,J._size==null){J._emitError(Error("tus: cannot automatically derive upload's size from input. Specify it manually using the `uploadSize` option or use the `uploadLengthDeferred` option"));return}if(J.options.parallelUploads>1||J._parallelUploadUrls!=null)J._startParallelUpload();else J._startSingleUpload()}).catch(function(W){J._emitError(W)})}},{key:"_startParallelUpload",value:function(){var J,X=this,Y=this._size,Q=0;this._parallelUploads=[];var U=this._parallelUploadUrls!=null?this._parallelUploadUrls.length:this.options.parallelUploads,F=(J=this.options.parallelUploadBoundaries)!==null&&J!==void 0?J:fp(this._source.size,U);if(this._parallelUploadUrls)F.forEach(function(q,G){q.uploadUrl=X._parallelUploadUrls[G]||null});this._parallelUploadUrls=Array(F.length);var W=F.map(function(q,G){var Z=0;return X._source.slice(q.start,q.end).then(function(H){var z=H.value;return new Promise(function(I,B){var N=C8(C8({},X.options),{},{uploadUrl:q.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:X.options.metadataForPartialUploads,headers:C8(C8({},X.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:I,onError:B,onProgress:function(j){Q=Q-Z+j,Z=j,X._emitProgress(Q,Y)},onUploadUrlAvailable:function(){if(X._parallelUploadUrls[G]=V.url,X._parallelUploadUrls.filter(function(j){return Boolean(j)}).length===F.length)X._saveUploadInUrlStorage()}}),V=new D(z,N);V.start(),X._parallelUploads.push(V)})})}),K;Promise.all(W).then(function(){K=X._openRequest("POST",X.options.endpoint),K.setHeader("Upload-Concat","final;".concat(X._parallelUploadUrls.join(" ")));var q=XM(X.options.metadata);if(q!=="")K.setHeader("Upload-Metadata",q);return X._sendRequest(K,null)}).then(function(q){if(!k8(q.getStatus(),200)){X._emitHttpError(K,q,"tus: unexpected response while creating upload");return}var G=q.getHeader("Location");if(G==null){X._emitHttpError(K,q,"tus: invalid or missing Location header");return}X.url=FM(X.options.endpoint,G),(0,a1.log)("Created upload at ".concat(X.url)),X._emitSuccess(q)}).catch(function(q){X._emitError(q)})}},{key:"_startSingleUpload",value:function(){if(this._aborted=!1,this.url!=null){(0,a1.log)("Resuming upload from previous URL: ".concat(this.url)),this._resumeUpload();return}if(this.options.uploadUrl!=null){(0,a1.log)("Resuming upload from provided URL: ".concat(this.options.uploadUrl)),this.url=this.options.uploadUrl,this._resumeUpload();return}(0,a1.log)("Creating a new upload"),this._createUpload()}},{key:"abort",value:function(J){var X=this;if(this._parallelUploads!=null){var Y=Sp(this._parallelUploads),Q;try{for(Y.s();!(Q=Y.n()).done;){var U=Q.value;U.abort(J)}}catch(F){Y.e(F)}finally{Y.f()}}if(this._req!==null)this._req.abort();if(this._aborted=!0,this._retryTimeout!=null)clearTimeout(this._retryTimeout),this._retryTimeout=null;if(!J||this.url==null)return Promise.resolve();return D.terminate(this.url,this.options).then(function(){return X._removeFromUrlStorage()})}},{key:"_emitHttpError",value:function(J,X,Y,Q){this._emitError(new GJ.default(Y,Q,J,X))}},{key:"_emitError",value:function(J){var X=this;if(this._aborted)return;if(this.options.retryDelays!=null){var Y=this._offset!=null&&this._offset>this._offsetBeforeRetry;if(Y)this._retryAttempt=0;if(UM(J,this._retryAttempt,this.options)){var Q=this.options.retryDelays[this._retryAttempt++];this._offsetBeforeRetry=this._offset,this._retryTimeout=setTimeout(function(){X.start()},Q);return}}if(typeof this.options.onError==="function")this.options.onError(J);else throw J}},{key:"_emitSuccess",value:function(J){if(this.options.removeFingerprintOnSuccess)this._removeFromUrlStorage();if(typeof this.options.onSuccess==="function")this.options.onSuccess({lastResponse:J})}},{key:"_emitProgress",value:function(J,X){if(typeof this.options.onProgress==="function")this.options.onProgress(J,X)}},{key:"_emitChunkComplete",value:function(J,X,Y){if(typeof this.options.onChunkComplete==="function")this.options.onChunkComplete(J,X,Y)}},{key:"_createUpload",value:function(){var J=this;if(!this.options.endpoint){this._emitError(Error("tus: unable to create upload because no endpoint is provided"));return}var X=this._openRequest("POST",this.options.endpoint);if(this.options.uploadLengthDeferred)X.setHeader("Upload-Defer-Length","1");else X.setHeader("Upload-Length","".concat(this._size));var Y=XM(this.options.metadata);if(Y!=="")X.setHeader("Upload-Metadata",Y);var Q;if(this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred)this._offset=0,Q=this._addChunkToRequest(X);else{if(this.options.protocol===zJ||this.options.protocol===Q5)X.setHeader("Upload-Complete","?0");Q=this._sendRequest(X,null)}Q.then(function(U){if(!k8(U.getStatus(),200)){J._emitHttpError(X,U,"tus: unexpected response while creating upload");return}var F=U.getHeader("Location");if(F==null){J._emitHttpError(X,U,"tus: invalid or missing Location header");return}if(J.url=FM(J.options.endpoint,F),(0,a1.log)("Created upload at ".concat(J.url)),typeof J.options.onUploadUrlAvailable==="function")J.options.onUploadUrlAvailable();if(J._size===0){J._emitSuccess(U),J._source.close();return}J._saveUploadInUrlStorage().then(function(){if(J.options.uploadDataDuringCreation)J._handleUploadResponse(X,U);else J._offset=0,J._performUpload()})}).catch(function(U){J._emitHttpError(X,null,"tus: failed to create upload",U)})}},{key:"_resumeUpload",value:function(){var J=this,X=this._openRequest("HEAD",this.url),Y=this._sendRequest(X,null);Y.then(function(Q){var U=Q.getStatus();if(!k8(U,200)){if(U===423){J._emitHttpError(X,Q,"tus: upload is currently locked; retry later");return}if(k8(U,400))J._removeFromUrlStorage();if(!J.options.endpoint){J._emitHttpError(X,Q,"tus: unable to resume upload (new upload cannot be created without an endpoint)");return}J.url=null,J._createUpload();return}var F=Number.parseInt(Q.getHeader("Upload-Offset"),10);if(Number.isNaN(F)){J._emitHttpError(X,Q,"tus: invalid or missing offset value");return}var W=Number.parseInt(Q.getHeader("Upload-Length"),10);if(Number.isNaN(W)&&!J.options.uploadLengthDeferred&&J.options.protocol===ZJ){J._emitHttpError(X,Q,"tus: invalid or missing length value");return}if(typeof J.options.onUploadUrlAvailable==="function")J.options.onUploadUrlAvailable();J._saveUploadInUrlStorage().then(function(){if(F===W){J._emitProgress(W,W),J._emitSuccess(Q);return}J._offset=F,J._performUpload()})}).catch(function(Q){J._emitHttpError(X,null,"tus: failed to resume upload",Q)})}},{key:"_performUpload",value:function(){var J=this;if(this._aborted)return;var X;if(this.options.overridePatchMethod)X=this._openRequest("POST",this.url),X.setHeader("X-HTTP-Method-Override","PATCH");else X=this._openRequest("PATCH",this.url);X.setHeader("Upload-Offset","".concat(this._offset));var Y=this._addChunkToRequest(X);Y.then(function(Q){if(!k8(Q.getStatus(),200)){J._emitHttpError(X,Q,"tus: unexpected response while uploading chunk");return}J._handleUploadResponse(X,Q)}).catch(function(Q){if(J._aborted)return;J._emitHttpError(X,null,"tus: failed to upload chunk at offset ".concat(J._offset),Q)})}},{key:"_addChunkToRequest",value:function(J){var X=this,Y=this._offset,Q=this._offset+this.options.chunkSize;if(J.setProgressHandler(function(U){X._emitProgress(Y+U,X._size)}),this.options.protocol===ZJ)J.setHeader("Content-Type","application/offset+octet-stream");else if(this.options.protocol===Q5)J.setHeader("Content-Type","application/partial-upload");if((Q===Number.POSITIVE_INFINITY||Q>this._size)&&!this.options.uploadLengthDeferred)Q=this._size;return this._source.slice(Y,Q).then(function(U){var{value:F,done:W}=U,K=F!==null&&F!==void 0&&F.size?F.size:0;if(X.options.uploadLengthDeferred&&W)X._size=X._offset+K,J.setHeader("Upload-Length","".concat(X._size));var q=X._offset+K;if(!X.options.uploadLengthDeferred&&W&&q!==X._size)return Promise.reject(Error("upload was configured with a size of ".concat(X._size," bytes, but the source is done after ").concat(q," bytes")));if(F===null)return X._sendRequest(J);if(X.options.protocol===zJ||X.options.protocol===Q5)J.setHeader("Upload-Complete",W?"?1":"?0");return X._emitProgress(X._offset,X._size),X._sendRequest(J,F)})}},{key:"_handleUploadResponse",value:function(J,X){var Y=Number.parseInt(X.getHeader("Upload-Offset"),10);if(Number.isNaN(Y)){this._emitHttpError(J,X,"tus: invalid or missing offset value");return}if(this._emitProgress(Y,this._size),this._emitChunkComplete(Y-this._offset,Y,this._size),this._offset=Y,Y===this._size){this._emitSuccess(X),this._source.close();return}this._performUpload()}},{key:"_openRequest",value:function(J,X){var Y=YM(J,X,this.options);return this._req=Y,Y}},{key:"_removeFromUrlStorage",value:function(){var J=this;if(!this._urlStorageKey)return;this._urlStorage.removeUpload(this._urlStorageKey).catch(function(X){J._emitError(X)}),this._urlStorageKey=null}},{key:"_saveUploadInUrlStorage",value:function(){var J=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||this._urlStorageKey!==null)return Promise.resolve();var X={size:this._size,metadata:this.options.metadata,creationTime:new Date().toString()};if(this._parallelUploads)X.parallelUploadUrls=this._parallelUploadUrls;else X.uploadUrl=this.url;return this._urlStorage.addUpload(this._fingerprint,X).then(function(Y){J._urlStorageKey=Y})}},{key:"_sendRequest",value:function(J){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return QM(J,X,this.options)}}],[{key:"terminate",value:function(J){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=YM("DELETE",J,X);return QM(Y,null,X).then(function(Q){if(Q.getStatus()===204)return;throw new GJ.default("tus: unexpected response while terminating upload",null,Y,Q)}).catch(function(Q){if(!(Q instanceof GJ.default))Q=new GJ.default("tus: failed to terminate upload",Q,Y,null);if(!UM(Q,0,X))throw Q;var U=X.retryDelays[0],F=X.retryDelays.slice(1),W=C8(C8({},X),{},{retryDelays:F});return new Promise(function(K){return setTimeout(K,U)}).then(function(){return D.terminate(J,W)})})}}])}();function XM(D){return Object.entries(D).map(function($){var J=WM($,2),X=J[0],Y=J[1];return"".concat(X," ").concat(Mp.Base64.encode(String(Y)))}).join(",")}function k8(D,$){return D>=$&&D<$+100}function YM(D,$,J){var X=J.httpStack.createRequest(D,$);if(J.protocol===zJ)X.setHeader("Upload-Draft-Interop-Version","5");else if(J.protocol===Q5)X.setHeader("Upload-Draft-Interop-Version","6");else X.setHeader("Tus-Resumable","1.0.0");var Y=J.headers||{};for(var Q=0,U=Object.entries(Y);Q<U.length;Q++){var F=WM(U[Q],2),W=F[0],K=F[1];X.setHeader(W,K)}if(J.addRequestId){var q=(0,vp.default)();X.setHeader("X-Request-ID",q)}return X}function QM(D,$,J){return YW.apply(this,arguments)}function YW(){return YW=Ep(XW().mark(function D($,J,X){var Y;return XW().wrap(function(U){while(!0)switch(U.prev=U.next){case 0:if(typeof X.onBeforeRequest!=="function"){U.next=3;break}return U.next=3,X.onBeforeRequest($);case 3:return U.next=5,$.send(J);case 5:if(Y=U.sent,typeof X.onAfterResponse!=="function"){U.next=9;break}return U.next=9,X.onAfterResponse($,Y);case 9:return U.abrupt("return",Y);case 10:case"end":return U.stop()}},D)})),YW.apply(this,arguments)}function xp(){var D=!0;if(typeof navigator<"u"&&navigator.onLine===!1)D=!1;return D}function UM(D,$,J){if(J.retryDelays==null||$>=J.retryDelays.length||D.originalRequest==null)return!1;if(J&&typeof J.onShouldRetry==="function")return J.onShouldRetry(D,$,J);return ZM(D)}function ZM(D){var $=D.originalResponse?D.originalResponse.getStatus():0;return(!k8($,400)||$===409||$===423)&&xp()}function FM(D,$){return new Ap.default($,D).toString()}function fp(D,$){var J=Math.floor(D/$),X=[];for(var Y=0;Y<$;Y++)X.push({start:J*Y,end:J*(Y+1)});return X[$-1].end=D,X}GM.defaultOptions=gp;var aVD=zM.default=GM});var OM=k((eVD,BM)=>{var O6=(D)=>D!==null&&typeof D==="object"&&typeof D.pipe==="function";O6.writable=(D)=>O6(D)&&D.writable!==!1&&typeof D._write==="function"&&typeof D._writableState==="object";O6.readable=(D)=>O6(D)&&D.readable!==!1&&typeof D._read==="function"&&typeof D._readableState==="object";O6.duplex=(D)=>O6.writable(D)&&O6.readable(D);O6.transform=(D)=>O6.duplex(D)&&typeof D._transform==="function";BM.exports=O6});var jM=k((VM)=>{Object.defineProperty(VM,"__esModule",{value:!0});VM.default=void 0;function U5(D){return U5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},U5(D)}function yp(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function NM(D,$){for(var J=0;J<$.length;J++){var X=$[J];if(X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X)X.writable=!0;Object.defineProperty(D,mp(X.key),X)}}function hp(D,$,J){if($)NM(D.prototype,$);if(J)NM(D,J);return Object.defineProperty(D,"prototype",{writable:!1}),D}function mp(D){var $=lp(D,"string");return U5($)=="symbol"?$:$+""}function lp(D,$){if(U5(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var X=J.call(D,$||"default");if(U5(X)!="object")return X;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}var DwD=VM.default=function(){function D($){yp(this,D),this._buffer=$,this.size=$.length}return hp(D,[{key:"slice",value:function(J,X){var Y=this._buffer.slice(J,X);Y.size=Y.length;var Q=X>=this.size;return Promise.resolve({value:Y,done:Q})}},{key:"close",value:function(){}}])}()});var vM=k((AM)=>{Object.defineProperty(AM,"__esModule",{value:!0});AM.default=rp;var MM=XD("fs");function e1(D){return e1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},e1(D)}function UW(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */UW=function(){return $};var D,$={},J=Object.prototype,X=J.hasOwnProperty,Y=Object.defineProperty||function(R,w,L){R[w]=L.value},Q=typeof Symbol=="function"?Symbol:{},U=Q.iterator||"@@iterator",F=Q.asyncIterator||"@@asyncIterator",W=Q.toStringTag||"@@toStringTag";function K(R,w,L){return Object.defineProperty(R,w,{value:L,enumerable:!0,configurable:!0,writable:!0}),R[w]}try{K({},"")}catch(R){K=function(L,P,f){return L[P]=f}}function q(R,w,L,P){var f=w&&w.prototype instanceof N?w:N,x=Object.create(f.prototype),s=new p(P||[]);return Y(x,"_invoke",{value:y(R,L,s)}),x}function G(R,w,L){try{return{type:"normal",arg:R.call(w,L)}}catch(P){return{type:"throw",arg:P}}}$.wrap=q;var Z="suspendedStart",H="suspendedYield",z="executing",I="completed",B={};function N(){}function V(){}function O(){}var j={};K(j,U,function(){return this});var v=Object.getPrototypeOf,A=v&&v(v(o([])));A&&A!==J&&X.call(A,U)&&(j=A);var C=O.prototype=N.prototype=Object.create(j);function u(R){["next","throw","return"].forEach(function(w){K(R,w,function(L){return this._invoke(w,L)})})}function _(R,w){function L(f,x,s,g){var i=G(R[f],R,x);if(i.type!=="throw"){var HD=i.arg,ND=HD.value;return ND&&e1(ND)=="object"&&X.call(ND,"__await")?w.resolve(ND.__await).then(function(PD){L("next",PD,s,g)},function(PD){L("throw",PD,s,g)}):w.resolve(ND).then(function(PD){HD.value=PD,s(HD)},function(PD){return L("throw",PD,s,g)})}g(i.arg)}var P;Y(this,"_invoke",{value:function(x,s){function g(){return new w(function(i,HD){L(x,s,i,HD)})}return P=P?P.then(g,g):g()}})}function y(R,w,L){var P=Z;return function(f,x){if(P===z)throw Error("Generator is already running");if(P===I){if(f==="throw")throw x;return{value:D,done:!0}}for(L.method=f,L.arg=x;;){var s=L.delegate;if(s){var g=E(s,L);if(g){if(g===B)continue;return g}}if(L.method==="next")L.sent=L._sent=L.arg;else if(L.method==="throw"){if(P===Z)throw P=I,L.arg;L.dispatchException(L.arg)}else L.method==="return"&&L.abrupt("return",L.arg);P=z;var i=G(R,w,L);if(i.type==="normal"){if(P=L.done?I:H,i.arg===B)continue;return{value:i.arg,done:L.done}}i.type==="throw"&&(P=I,L.method="throw",L.arg=i.arg)}}}function E(R,w){var L=w.method,P=R.iterator[L];if(P===D)return w.delegate=null,L==="throw"&&R.iterator.return&&(w.method="return",w.arg=D,E(R,w),w.method==="throw")||L!=="return"&&(w.method="throw",w.arg=TypeError("The iterator does not provide a '"+L+"' method")),B;var f=G(P,R.iterator,w.arg);if(f.type==="throw")return w.method="throw",w.arg=f.arg,w.delegate=null,B;var x=f.arg;return x?x.done?(w[R.resultName]=x.value,w.next=R.nextLoc,w.method!=="return"&&(w.method="next",w.arg=D),w.delegate=null,B):x:(w.method="throw",w.arg=TypeError("iterator result is not an object"),w.delegate=null,B)}function d(R){var w={tryLoc:R[0]};1 in R&&(w.catchLoc=R[1]),2 in R&&(w.finallyLoc=R[2],w.afterLoc=R[3]),this.tryEntries.push(w)}function c(R){var w=R.completion||{};w.type="normal",delete w.arg,R.completion=w}function p(R){this.tryEntries=[{tryLoc:"root"}],R.forEach(d,this),this.reset(!0)}function o(R){if(R||R===""){var w=R[U];if(w)return w.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var L=-1,P=function f(){for(;++L<R.length;)if(X.call(R,L))return f.value=R[L],f.done=!1,f;return f.value=D,f.done=!0,f};return P.next=P}}throw TypeError(e1(R)+" is not iterable")}return V.prototype=O,Y(C,"constructor",{value:O,configurable:!0}),Y(O,"constructor",{value:V,configurable:!0}),V.displayName=K(O,W,"GeneratorFunction"),$.isGeneratorFunction=function(R){var w=typeof R=="function"&&R.constructor;return!!w&&(w===V||(w.displayName||w.name)==="GeneratorFunction")},$.mark=function(R){return Object.setPrototypeOf?Object.setPrototypeOf(R,O):(R.__proto__=O,K(R,W,"GeneratorFunction")),R.prototype=Object.create(C),R},$.awrap=function(R){return{__await:R}},u(_.prototype),K(_.prototype,F,function(){return this}),$.AsyncIterator=_,$.async=function(R,w,L,P,f){f===void 0&&(f=Promise);var x=new _(q(R,w,L,P),f);return $.isGeneratorFunction(w)?x:x.next().then(function(s){return s.done?s.value:x.next()})},u(C),K(C,W,"Generator"),K(C,U,function(){return this}),K(C,"toString",function(){return"[object Generator]"}),$.keys=function(R){var w=Object(R),L=[];for(var P in w)L.push(P);return L.reverse(),function f(){for(;L.length;){var x=L.pop();if(x in w)return f.value=x,f.done=!1,f}return f.done=!0,f}},$.values=o,p.prototype={constructor:p,reset:function(w){if(this.prev=0,this.next=0,this.sent=this._sent=D,this.done=!1,this.delegate=null,this.method="next",this.arg=D,this.tryEntries.forEach(c),!w)for(var L in this)L.charAt(0)==="t"&&X.call(this,L)&&!isNaN(+L.slice(1))&&(this[L]=D)},stop:function(){this.done=!0;var w=this.tryEntries[0].completion;if(w.type==="throw")throw w.arg;return this.rval},dispatchException:function(w){if(this.done)throw w;var L=this;function P(HD,ND){return s.type="throw",s.arg=w,L.next=HD,ND&&(L.method="next",L.arg=D),!!ND}for(var f=this.tryEntries.length-1;f>=0;--f){var x=this.tryEntries[f],s=x.completion;if(x.tryLoc==="root")return P("end");if(x.tryLoc<=this.prev){var g=X.call(x,"catchLoc"),i=X.call(x,"finallyLoc");if(g&&i){if(this.prev<x.catchLoc)return P(x.catchLoc,!0);if(this.prev<x.finallyLoc)return P(x.finallyLoc)}else if(g){if(this.prev<x.catchLoc)return P(x.catchLoc,!0)}else{if(!i)throw Error("try statement without catch or finally");if(this.prev<x.finallyLoc)return P(x.finallyLoc)}}}},abrupt:function(w,L){for(var P=this.tryEntries.length-1;P>=0;--P){var f=this.tryEntries[P];if(f.tryLoc<=this.prev&&X.call(f,"finallyLoc")&&this.prev<f.finallyLoc){var x=f;break}}x&&(w==="break"||w==="continue")&&x.tryLoc<=L&&L<=x.finallyLoc&&(x=null);var s=x?x.completion:{};return s.type=w,s.arg=L,x?(this.method="next",this.next=x.finallyLoc,B):this.complete(s)},complete:function(w,L){if(w.type==="throw")throw w.arg;return w.type==="break"||w.type==="continue"?this.next=w.arg:w.type==="return"?(this.rval=this.arg=w.arg,this.method="return",this.next="end"):w.type==="normal"&&L&&(this.next=L),B},finish:function(w){for(var L=this.tryEntries.length-1;L>=0;--L){var P=this.tryEntries[L];if(P.finallyLoc===w)return this.complete(P.completion,P.afterLoc),c(P),B}},catch:function(w){for(var L=this.tryEntries.length-1;L>=0;--L){var P=this.tryEntries[L];if(P.tryLoc===w){var f=P.completion;if(f.type==="throw"){var x=f.arg;c(P)}return x}}throw Error("illegal catch attempt")},delegateYield:function(w,L,P){return this.delegate={iterator:o(w),resultName:L,nextLoc:P},this.method==="next"&&(this.arg=D),B}},$}function dp(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function LM(D,$){for(var J=0;J<$.length;J++){var X=$[J];if(X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X)X.writable=!0;Object.defineProperty(D,cp(X.key),X)}}function ip(D,$,J){if($)LM(D.prototype,$);if(J)LM(D,J);return Object.defineProperty(D,"prototype",{writable:!1}),D}function cp(D){var $=pp(D,"string");return e1($)=="symbol"?$:$+""}function pp(D,$){if(e1(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var X=J.call(D,$||"default");if(e1(X)!="object")return X;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}function RM(D,$,J,X,Y,Q,U){try{var F=D[Q](U),W=F.value}catch(K){J(K);return}if(F.done)$(W);else Promise.resolve(W).then(X,Y)}function np(D){return function(){var $=this,J=arguments;return new Promise(function(X,Y){var Q=D.apply($,J);function U(W){RM(Q,X,Y,U,F,"next",W)}function F(W){RM(Q,X,Y,U,F,"throw",W)}U(void 0)})}}function rp(D){return FW.apply(this,arguments)}function FW(){return FW=np(UW().mark(function D($){var J,X,Y,Q,U,F,W;return UW().wrap(function(q){while(!0)switch(q.prev=q.next){case 0:return X=$.path.toString(),q.next=3,MM.promises.stat(X);case 3:return Y=q.sent,Q=Y.size,U=(J=$.start)!==null&&J!==void 0?J:0,F=Number.isFinite($.end)?$.end+1:Q,W=F-U,q.abrupt("return",new tp($,X,W));case 9:case"end":return q.stop()}},D)})),FW.apply(this,arguments)}var tp=function(){function D($,J,X){dp(this,D),this._stream=$,this._path=J,this.size=X}return ip(D,[{key:"slice",value:function(J,X){var Y,Q=(Y=this._stream.start)!==null&&Y!==void 0?Y:0,U=(0,MM.createReadStream)(this._path,{start:Q+J,end:Q+X-1,autoClose:!0});U.size=Math.min(X-J,this.size);var F=U.size>=this.size;return Promise.resolve({value:U,done:F})}},{key:"close",value:function(){this._stream.destroy()}}])}()});var KW=k((bM)=>{Object.defineProperty(bM,"__esModule",{value:!0});bM.default=void 0;function D4(D){return D4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},D4(D)}function F5(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */F5=function(){return $};var D,$={},J=Object.prototype,X=J.hasOwnProperty,Y=Object.defineProperty||function(R,w,L){R[w]=L.value},Q=typeof Symbol=="function"?Symbol:{},U=Q.iterator||"@@iterator",F=Q.asyncIterator||"@@asyncIterator",W=Q.toStringTag||"@@toStringTag";function K(R,w,L){return Object.defineProperty(R,w,{value:L,enumerable:!0,configurable:!0,writable:!0}),R[w]}try{K({},"")}catch(R){K=function(L,P,f){return L[P]=f}}function q(R,w,L,P){var f=w&&w.prototype instanceof N?w:N,x=Object.create(f.prototype),s=new p(P||[]);return Y(x,"_invoke",{value:y(R,L,s)}),x}function G(R,w,L){try{return{type:"normal",arg:R.call(w,L)}}catch(P){return{type:"throw",arg:P}}}$.wrap=q;var Z="suspendedStart",H="suspendedYield",z="executing",I="completed",B={};function N(){}function V(){}function O(){}var j={};K(j,U,function(){return this});var v=Object.getPrototypeOf,A=v&&v(v(o([])));A&&A!==J&&X.call(A,U)&&(j=A);var C=O.prototype=N.prototype=Object.create(j);function u(R){["next","throw","return"].forEach(function(w){K(R,w,function(L){return this._invoke(w,L)})})}function _(R,w){function L(f,x,s,g){var i=G(R[f],R,x);if(i.type!=="throw"){var HD=i.arg,ND=HD.value;return ND&&D4(ND)=="object"&&X.call(ND,"__await")?w.resolve(ND.__await).then(function(PD){L("next",PD,s,g)},function(PD){L("throw",PD,s,g)}):w.resolve(ND).then(function(PD){HD.value=PD,s(HD)},function(PD){return L("throw",PD,s,g)})}g(i.arg)}var P;Y(this,"_invoke",{value:function(x,s){function g(){return new w(function(i,HD){L(x,s,i,HD)})}return P=P?P.then(g,g):g()}})}function y(R,w,L){var P=Z;return function(f,x){if(P===z)throw Error("Generator is already running");if(P===I){if(f==="throw")throw x;return{value:D,done:!0}}for(L.method=f,L.arg=x;;){var s=L.delegate;if(s){var g=E(s,L);if(g){if(g===B)continue;return g}}if(L.method==="next")L.sent=L._sent=L.arg;else if(L.method==="throw"){if(P===Z)throw P=I,L.arg;L.dispatchException(L.arg)}else L.method==="return"&&L.abrupt("return",L.arg);P=z;var i=G(R,w,L);if(i.type==="normal"){if(P=L.done?I:H,i.arg===B)continue;return{value:i.arg,done:L.done}}i.type==="throw"&&(P=I,L.method="throw",L.arg=i.arg)}}}function E(R,w){var L=w.method,P=R.iterator[L];if(P===D)return w.delegate=null,L==="throw"&&R.iterator.return&&(w.method="return",w.arg=D,E(R,w),w.method==="throw")||L!=="return"&&(w.method="throw",w.arg=TypeError("The iterator does not provide a '"+L+"' method")),B;var f=G(P,R.iterator,w.arg);if(f.type==="throw")return w.method="throw",w.arg=f.arg,w.delegate=null,B;var x=f.arg;return x?x.done?(w[R.resultName]=x.value,w.next=R.nextLoc,w.method!=="return"&&(w.method="next",w.arg=D),w.delegate=null,B):x:(w.method="throw",w.arg=TypeError("iterator result is not an object"),w.delegate=null,B)}function d(R){var w={tryLoc:R[0]};1 in R&&(w.catchLoc=R[1]),2 in R&&(w.finallyLoc=R[2],w.afterLoc=R[3]),this.tryEntries.push(w)}function c(R){var w=R.completion||{};w.type="normal",delete w.arg,R.completion=w}function p(R){this.tryEntries=[{tryLoc:"root"}],R.forEach(d,this),this.reset(!0)}function o(R){if(R||R===""){var w=R[U];if(w)return w.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var L=-1,P=function f(){for(;++L<R.length;)if(X.call(R,L))return f.value=R[L],f.done=!1,f;return f.value=D,f.done=!0,f};return P.next=P}}throw TypeError(D4(R)+" is not iterable")}return V.prototype=O,Y(C,"constructor",{value:O,configurable:!0}),Y(O,"constructor",{value:V,configurable:!0}),V.displayName=K(O,W,"GeneratorFunction"),$.isGeneratorFunction=function(R){var w=typeof R=="function"&&R.constructor;return!!w&&(w===V||(w.displayName||w.name)==="GeneratorFunction")},$.mark=function(R){return Object.setPrototypeOf?Object.setPrototypeOf(R,O):(R.__proto__=O,K(R,W,"GeneratorFunction")),R.prototype=Object.create(C),R},$.awrap=function(R){return{__await:R}},u(_.prototype),K(_.prototype,F,function(){return this}),$.AsyncIterator=_,$.async=function(R,w,L,P,f){f===void 0&&(f=Promise);var x=new _(q(R,w,L,P),f);return $.isGeneratorFunction(w)?x:x.next().then(function(s){return s.done?s.value:x.next()})},u(C),K(C,W,"Generator"),K(C,U,function(){return this}),K(C,"toString",function(){return"[object Generator]"}),$.keys=function(R){var w=Object(R),L=[];for(var P in w)L.push(P);return L.reverse(),function f(){for(;L.length;){var x=L.pop();if(x in w)return f.value=x,f.done=!1,f}return f.done=!0,f}},$.values=o,p.prototype={constructor:p,reset:function(w){if(this.prev=0,this.next=0,this.sent=this._sent=D,this.done=!1,this.delegate=null,this.method="next",this.arg=D,this.tryEntries.forEach(c),!w)for(var L in this)L.charAt(0)==="t"&&X.call(this,L)&&!isNaN(+L.slice(1))&&(this[L]=D)},stop:function(){this.done=!0;var w=this.tryEntries[0].completion;if(w.type==="throw")throw w.arg;return this.rval},dispatchException:function(w){if(this.done)throw w;var L=this;function P(HD,ND){return s.type="throw",s.arg=w,L.next=HD,ND&&(L.method="next",L.arg=D),!!ND}for(var f=this.tryEntries.length-1;f>=0;--f){var x=this.tryEntries[f],s=x.completion;if(x.tryLoc==="root")return P("end");if(x.tryLoc<=this.prev){var g=X.call(x,"catchLoc"),i=X.call(x,"finallyLoc");if(g&&i){if(this.prev<x.catchLoc)return P(x.catchLoc,!0);if(this.prev<x.finallyLoc)return P(x.finallyLoc)}else if(g){if(this.prev<x.catchLoc)return P(x.catchLoc,!0)}else{if(!i)throw Error("try statement without catch or finally");if(this.prev<x.finallyLoc)return P(x.finallyLoc)}}}},abrupt:function(w,L){for(var P=this.tryEntries.length-1;P>=0;--P){var f=this.tryEntries[P];if(f.tryLoc<=this.prev&&X.call(f,"finallyLoc")&&this.prev<f.finallyLoc){var x=f;break}}x&&(w==="break"||w==="continue")&&x.tryLoc<=L&&L<=x.finallyLoc&&(x=null);var s=x?x.completion:{};return s.type=w,s.arg=L,x?(this.method="next",this.next=x.finallyLoc,B):this.complete(s)},complete:function(w,L){if(w.type==="throw")throw w.arg;return w.type==="break"||w.type==="continue"?this.next=w.arg:w.type==="return"?(this.rval=this.arg=w.arg,this.method="return",this.next="end"):w.type==="normal"&&L&&(this.next=L),B},finish:function(w){for(var L=this.tryEntries.length-1;L>=0;--L){var P=this.tryEntries[L];if(P.finallyLoc===w)return this.complete(P.completion,P.afterLoc),c(P),B}},catch:function(w){for(var L=this.tryEntries.length-1;L>=0;--L){var P=this.tryEntries[L];if(P.tryLoc===w){var f=P.completion;if(f.type==="throw"){var x=f.arg;c(P)}return x}}throw Error("illegal catch attempt")},delegateYield:function(w,L,P){return this.delegate={iterator:o(w),resultName:L,nextLoc:P},this.method==="next"&&(this.arg=D),B}},$}function ap(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function EM(D,$){for(var J=0;J<$.length;J++){var X=$[J];if(X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X)X.writable=!0;Object.defineProperty(D,ep(X.key),X)}}function sp(D,$,J){if($)EM(D.prototype,$);if(J)EM(D,J);return Object.defineProperty(D,"prototype",{writable:!1}),D}function ep(D){var $=Dn(D,"string");return D4($)=="symbol"?$:$+""}function Dn(D,$){if(D4(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var X=J.call(D,$||"default");if(D4(X)!="object")return X;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}function TM(D,$,J,X,Y,Q,U){try{var F=D[Q](U),W=F.value}catch(K){J(K);return}if(F.done)$(W);else Promise.resolve(W).then(X,Y)}function PM(D){return function(){var $=this,J=arguments;return new Promise(function(X,Y){var Q=D.apply($,J);function U(W){TM(Q,X,Y,U,F,"next",W)}function F(W){TM(Q,X,Y,U,F,"throw",W)}U(void 0)})}}function $n(D,$){return WW.apply(this,arguments)}function WW(){return WW=PM(F5().mark(function D($,J){return F5().wrap(function(Y){while(!0)switch(Y.prev=Y.next){case 0:return Y.abrupt("return",new Promise(function(Q,U){var F=function(q){$.off("readable",W),U(q)},W=function K(){var q=$.read(J);if(q!==null)$.off("error",F),$.off("readable",K),Q(q)};$.once("error",F),$.on("readable",W)}));case 1:case"end":return Y.stop()}},D)})),WW.apply(this,arguments)}var XwD=bM.default=function(){function D($){var J=this;ap(this,D),this._stream=$,this.size=null,this._buf=Buffer.alloc(0),this._bufPos=0,this._ended=!1,this._error=null,$.pause(),$.on("end",function(){J._ended=!0}),$.on("error",function(X){J._error=X})}return sp(D,[{key:"slice",value:function(){var $=PM(F5().mark(function X(Y,Q){var U,F,W,K,q;return F5().wrap(function(Z){while(!0)switch(Z.prev=Z.next){case 0:if(!(Y<this._bufPos)){Z.next=2;break}throw Error("cannot slice from position which we already seeked away");case 2:if(!(Y>this._bufPos+this._buf.length)){Z.next=4;break}throw Error("slice start is outside of buffer (currently not implemented)");case 4:if(!this._error){Z.next=6;break}throw this._error;case 6:if(Y<this._bufPos+this._buf.length)F=Y-this._bufPos,W=Math.min(this._buf.length,Q-this._bufPos),U=this._buf.slice(F,W);else U=Buffer.alloc(0);if(!this._ended){Z.next=10;break}return U.size=U.length,Z.abrupt("return",{value:U,done:!0});case 10:if(K=Q-Y,!(K>U.length)){Z.next=16;break}return Z.next=14,$n(this._stream,K-U.length);case 14:q=Z.sent,U=Buffer.concat([U,q]);case 16:return this._buf=U,this._bufPos=Y,U.size=U.length,Z.abrupt("return",{value:U,done:this._ended});case 20:case"end":return Z.stop()}},X,this)}));function J(X,Y){return $.apply(this,arguments)}return J}()},{key:"close",value:function(){this._stream.destroy()}}])}()});var uM=k((kM)=>{Object.defineProperty(kM,"__esModule",{value:!0});kM.default=void 0;var Jn=XD("fs"),Xn=HJ(OM()),Yn=HJ(jM()),Qn=HJ(vM()),Un=HJ(KW());function HJ(D){return D&&D.__esModule?D:{default:D}}function W5(D){return W5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},W5(D)}function Fn(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function CM(D,$){for(var J=0;J<$.length;J++){var X=$[J];if(X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X)X.writable=!0;Object.defineProperty(D,Kn(X.key),X)}}function Wn(D,$,J){if($)CM(D.prototype,$);if(J)CM(D,J);return Object.defineProperty(D,"prototype",{writable:!1}),D}function Kn(D){var $=qn(D,"string");return W5($)=="symbol"?$:$+""}function qn(D,$){if(W5(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var X=J.call(D,$||"default");if(W5(X)!="object")return X;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}var QwD=kM.default=function(){function D(){Fn(this,D)}return Wn(D,[{key:"openFile",value:function(J,X){if(Buffer.isBuffer(J))return Promise.resolve(new Yn.default(J));if(J instanceof Jn.ReadStream&&J.path!=null)return(0,Qn.default)(J);if(Xn.default.readable(J)){if(X=Number(X),!Number.isFinite(X))return Promise.reject(Error("cannot create source for stream without a finite value for the `chunkSize` option; specify a chunkSize to control the memory consumption"));return Promise.resolve(new Un.default(J))}return Promise.reject(Error("source object may only be an instance of Buffer or Readable in this environment"))}}])}()});var hM=k((yM)=>{Object.defineProperty(yM,"__esModule",{value:!0});yM.default=zn;var Gn=XD("crypto"),gM=fM(XD("fs")),Zn=fM(XD("path"));function xM(D){if(typeof WeakMap!="function")return null;var $=new WeakMap,J=new WeakMap;return(xM=function(X){return X?J:$})(D)}function fM(D,$){if(!$&&D&&D.__esModule)return D;if(D===null||typeof D!="object"&&typeof D!="function")return{default:D};var J=xM($);if(J&&J.has(D))return J.get(D);var X={__proto__:null},Y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Q in D)if(Q!=="default"&&{}.hasOwnProperty.call(D,Q)){var U=Y?Object.getOwnPropertyDescriptor(D,Q):null;U&&(U.get||U.set)?Object.defineProperty(X,Q,U):X[Q]=D[Q]}return X.default=D,J&&J.set(D,X),X}function zn(D,$){if(Buffer.isBuffer(D)){var J=65536,X=D.slice(0,Math.min(J,D.length)),Y=(0,Gn.createHash)("md5").update(X).digest("hex"),Q=["node-buffer",Y,D.length,$.endpoint].join("-");return Promise.resolve(Q)}if(D instanceof gM.ReadStream&&D.path!=null)return new Promise(function(U,F){var W=Zn.resolve(D.path);gM.stat(D.path,function(K,q){if(K){F(K);return}var G=["node-file",W,q.size,q.mtime.getTime(),$.endpoint].join("-");U(G)})});return Promise.resolve(null)}});var cM=k((WwD,iM)=>{var dM="Expected a function",mM=NaN,In="[object Symbol]",Bn=/^\s+|\s+$/g,On=/^[-+]0x[0-9a-f]+$/i,Nn=/^0b[01]+$/i,Vn=/^0o[0-7]+$/i,wn=parseInt,jn=typeof global=="object"&&global&&global.Object===Object&&global,Ln=typeof self=="object"&&self&&self.Object===Object&&self,Rn=jn||Ln||Function("return this")(),Mn=Object.prototype,An=Mn.toString,vn=Math.max,En=Math.min,qW=function(){return Rn.Date.now()};function Tn(D,$,J){var X,Y,Q,U,F,W,K=0,q=!1,G=!1,Z=!0;if(typeof D!="function")throw TypeError(dM);if($=lM($)||0,IJ(J))q=!!J.leading,G="maxWait"in J,Q=G?vn(lM(J.maxWait)||0,$):Q,Z="trailing"in J?!!J.trailing:Z;function H(A){var C=X,u=Y;return X=Y=void 0,K=A,U=D.apply(u,C),U}function z(A){return K=A,F=setTimeout(N,$),q?H(A):U}function I(A){var C=A-W,u=A-K,_=$-C;return G?En(_,Q-u):_}function B(A){var C=A-W,u=A-K;return W===void 0||C>=$||C<0||G&&u>=Q}function N(){var A=qW();if(B(A))return V(A);F=setTimeout(N,I(A))}function V(A){if(F=void 0,Z&&X)return H(A);return X=Y=void 0,U}function O(){if(F!==void 0)clearTimeout(F);K=0,X=W=Y=F=void 0}function j(){return F===void 0?U:V(qW())}function v(){var A=qW(),C=B(A);if(X=arguments,Y=this,W=A,C){if(F===void 0)return z(W);if(G)return F=setTimeout(N,$),H(W)}if(F===void 0)F=setTimeout(N,$);return U}return v.cancel=O,v.flush=j,v}function Pn(D,$,J){var X=!0,Y=!0;if(typeof D!="function")throw TypeError(dM);if(IJ(J))X="leading"in J?!!J.leading:X,Y="trailing"in J?!!J.trailing:Y;return Tn(D,$,{leading:X,maxWait:$,trailing:Y})}function IJ(D){var $=typeof D;return!!D&&($=="object"||$=="function")}function bn(D){return!!D&&typeof D=="object"}function Sn(D){return typeof D=="symbol"||bn(D)&&An.call(D)==In}function lM(D){if(typeof D=="number")return D;if(Sn(D))return mM;if(IJ(D)){var $=typeof D.valueOf=="function"?D.valueOf():D;D=IJ($)?$+"":$}if(typeof D!="string")return D===0?D:+D;D=D.replace(Bn,"");var J=Nn.test(D);return J||Vn.test(D)?wn(D.slice(2),J?2:8):On.test(D)?mM:+D}iM.exports=Pn});var JA=k((DA)=>{Object.defineProperty(DA,"__esModule",{value:!0});DA.default=void 0;var Cn=aM(XD("http")),kn=aM(XD("https")),rM=XD("stream"),_n=XD("url"),tM=un(cM());function un(D){return D&&D.__esModule?D:{default:D}}function oM(D){if(typeof WeakMap!="function")return null;var $=new WeakMap,J=new WeakMap;return(oM=function(X){return X?J:$})(D)}function aM(D,$){if(!$&&D&&D.__esModule)return D;if(D===null||typeof D!="object"&&typeof D!="function")return{default:D};var J=oM($);if(J&&J.has(D))return J.get(D);var X={__proto__:null},Y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Q in D)if(Q!=="default"&&{}.hasOwnProperty.call(D,Q)){var U=Y?Object.getOwnPropertyDescriptor(D,Q):null;U&&(U.get||U.set)?Object.defineProperty(X,Q,U):X[Q]=D[Q]}return X.default=D,J&&J.set(D,X),X}function gn(D,$,J){return $=BJ($),xn(D,sM()?Reflect.construct($,J||[],BJ(D).constructor):$.apply(D,J))}function xn(D,$){if($&&(_8($)==="object"||typeof $==="function"))return $;else if($!==void 0)throw TypeError("Derived constructors may only return object or undefined");return fn(D)}function fn(D){if(D===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function sM(){try{var D=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch($){}return(sM=function(){return!!D})()}function BJ(D){return BJ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(J){return J.__proto__||Object.getPrototypeOf(J)},BJ(D)}function yn(D,$){if(typeof $!=="function"&&$!==null)throw TypeError("Super expression must either be null or a function");if(D.prototype=Object.create($&&$.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),$)GW(D,$)}function GW(D,$){return GW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(X,Y){return X.__proto__=Y,X},GW(D,$)}function pM(D,$){var J=Object.keys(D);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(D);$&&(X=X.filter(function(Y){return Object.getOwnPropertyDescriptor(D,Y).enumerable})),J.push.apply(J,X)}return J}function K5(D){for(var $=1;$<arguments.length;$++){var J=arguments[$]!=null?arguments[$]:{};$%2?pM(Object(J),!0).forEach(function(X){hn(D,X,J[X])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(J)):pM(Object(J)).forEach(function(X){Object.defineProperty(D,X,Object.getOwnPropertyDescriptor(J,X))})}return D}function hn(D,$,J){if($=eM($),$ in D)Object.defineProperty(D,$,{value:J,enumerable:!0,configurable:!0,writable:!0});else D[$]=J;return D}function _8(D){return _8=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_8(D)}function OJ(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function nM(D,$){for(var J=0;J<$.length;J++){var X=$[J];if(X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X)X.writable=!0;Object.defineProperty(D,eM(X.key),X)}}function NJ(D,$,J){if($)nM(D.prototype,$);if(J)nM(D,J);return Object.defineProperty(D,"prototype",{writable:!1}),D}function eM(D){var $=mn(D,"string");return _8($)=="symbol"?$:$+""}function mn(D,$){if(_8(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var X=J.call(D,$||"default");if(_8(X)!="object")return X;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}var KwD=DA.default=function(){function D(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};OJ(this,D),this._requestOptions=$}return NJ(D,[{key:"createRequest",value:function(J,X){return new ln(J,X,this._requestOptions)}},{key:"getName",value:function(){return"NodeHttpStack"}}])}(),ln=function(){function D($,J,X){OJ(this,D),this._method=$,this._url=J,this._headers={},this._request=null,this._progressHandler=function(){},this._requestOptions=X||{}}return NJ(D,[{key:"getMethod",value:function(){return this._method}},{key:"getURL",value:function(){return this._url}},{key:"setHeader",value:function(J,X){this._headers[J]=X}},{key:"getHeader",value:function(J){return this._headers[J]}},{key:"setProgressHandler",value:function(J){this._progressHandler=J}},{key:"send",value:function(){var J=this,X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return new Promise(function(Y,Q){var U=K5(K5(K5({},(0,_n.parse)(J._url)),J._requestOptions),{},{method:J._method,headers:K5(K5({},J._requestOptions.headers||{}),J._headers)});if(X!==null&&X!==void 0&&X.size)U.headers["Content-Length"]=X.size;var F=U.protocol==="https:"?kn:Cn;J._request=F.request(U);var W=J._request;if(W.on("response",function(K){var q=[];K.on("data",function(G){q.push(G)}),K.on("end",function(){var G=Buffer.concat(q).toString("utf8");Y(new dn(K,G))})}),W.on("error",function(K){Q(K)}),X instanceof rM.Readable)X.pipe(new cn(J._progressHandler)).pipe(W);else if(X instanceof Uint8Array)pn(W,X,J._progressHandler);else W.end(X)})}},{key:"abort",value:function(){if(this._request!==null)this._request.abort();return Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._request}}])}(),dn=function(){function D($,J){OJ(this,D),this._response=$,this._body=J}return NJ(D,[{key:"getStatus",value:function(){return this._response.statusCode}},{key:"getHeader",value:function(J){return this._response.headers[J.toLowerCase()]}},{key:"getBody",value:function(){return this._body}},{key:"getUnderlyingObject",value:function(){return this._response}}])}(),cn=function(D){function $(J){var X;return OJ(this,$),X=gn(this,$),X._onprogress=(0,tM.default)(J,100,{leading:!0,trailing:!1}),X._position=0,X}return yn($,D),NJ($,[{key:"_transform",value:function(X,Y,Q){this._position+=X.length,this._onprogress(this._position),Q(null,X)}}])}(rM.Transform),pn=function($,J,X){X=(0,tM.default)(X,100,{leading:!0,trailing:!1});var Y=0;function Q(){var U=Math.min($.writableHighWaterMark,J.length-Y),F=J.subarray(Y,Y+U);Y+=F.length;var W=$.write(F);if(!W)$.once("drain",Q),X(Y);else if(Y<J.length)Q();else $.end()}Q()}});var XA=k((nn)=>{nn.expectReceive=function(D,$,J){var X;if(J.root(D,$,J),X=this.message,D.hasOwnProperty("expected"))X+=" Expected "+D.expected+".";if(D.hasOwnProperty("received"))X+=" Received: "+D.received+".";this.message=X};nn.root=function(D,$,J){var X=this,Y,Q={stackLength:Error.stackTraceLimit,rootOnly:!0},U="",F=Error.stackTraceLimit,W;function K(){W[0]=X.toString(),X.stack=W.join(`
`)}if(!$||typeof $!=="object")$={};if($.hasOwnProperty("stackLength")&&typeof $.stackLength==="number"&&!isNaN($.stackLength)&&$.stackLength>=0)Q.stackLength=$.stackLength;if(!$.hasOwnProperty("rootOnly"))Q.rootOnly=$.rootOnly;if(!Q.rootOnly||this.CustomError.parent===Error)Object.keys(D).forEach(function(q){switch(q){case"code":Y=D.code||void 0;break;case"message":U=D.message||"";break;default:X[q]=D[q]}}),Error.stackTraceLimit=Q.stackLength+2,W=Error().stack.split(`
`),W.splice(0,3),W.unshift(""),Error.stackTraceLimit=F,this.stack=W.join(`
`),Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,get:function(){return Y},set:function(q){Y=q,K()}}),Object.defineProperty(this,"message",{configurable:!0,enumerable:!0,get:function(){return U},set:function(q){U=q,K()}}),K()}});var UA=k((ZwD,QA)=>{QA.exports=$4;$4.factory=XA();var HW=$4("CustomError");HW.order=$4(HW,{message:"Arguments out of order.",code:"EOARG"});function $4(D,$,J,X){var Y,Q;if($=VJ(arguments,1,Error,YA,[ZW,wJ]),J=VJ(arguments,2,{},ZW,[wJ]),X=VJ(arguments,3,zW,wJ,[]),D=VJ(arguments,0,$===Error?"Error":$.prototype.CustomError.name,on,[YA,ZW,wJ]),Q=$===Error,Q&&X===zW)X=$4.factory.root;return Y=function(U,F){var W,K,q,G,Z,H;if(!(this instanceof Y))return new Y(U,F);if(delete this.constructor.name,Object.defineProperty(this.constructor,"name",{enumerable:!1,configurable:!0,value:D,writable:!1}),typeof U==="string")U={message:U};if(!U)U={};K=this.CustomError.chain.slice(0).reverse().map(function(z){return z.properties}),K.push(U),K.unshift({}),H=Object.assign.apply(Object,K),W=this,q={},Object.keys($4.factory).forEach(function(z){q[z]=function(I,B){$4.factory[z].call(W,I,B,q)}});for(G=this.CustomError.chain.length-1;G>=0;G--)if(Z=this.CustomError.chain[G],Z.factory!==zW)Z.factory.call(this,H,F,q)},Y.prototype=Object.create($.prototype),Y.prototype.constructor=Y,Y.prototype.name=D,Y.prototype.CustomError={chain:Q?[]:$.prototype.CustomError.chain.slice(0),factory:X,name:D,parent:$,properties:J},Y.prototype.CustomError.chain.unshift(Y.prototype.CustomError),Y.prototype.toString=function(){var U=this.CustomError.chain[this.CustomError.chain.length-1].name;if(this.code)U+=" "+this.code;if(this.message)U+=": "+this.message;return U},Y}function VJ(D,$,J,X,Y){var Q=-1,U=-1,F,W,K=$<D.length?$:D.length,q;for(F=0;F<=K;F++){if(q=D[F],Q===-1){for(W=0;W<Y.length;W++)if(Y[W](q))Q=F}if(U===-1&&X(q))U=F}if(U!==-1&&Q!==-1&&Q<U)throw new HW.order;return U!==-1?D[U]:J}function wJ(D){return typeof D==="function"&&D!==Error&&!D.prototype.CustomError}function on(D){return typeof D==="string"}function YA(D){return typeof D==="function"&&(D===Error||D.prototype.CustomError)}function ZW(D){return D&&typeof D==="object"}function zW(){}});var GA=k((g8,u8)=>{var an=1/0,sn="[object Symbol]",q5={function:!0,object:!0},en=q5[typeof g8]&&g8&&!g8.nodeType?g8:void 0,Dr=q5[typeof u8]&&u8&&!u8.nodeType?u8:void 0,$r=jJ(en&&Dr&&typeof global=="object"&&global),Jr=jJ(q5[typeof self]&&self),FA=jJ(q5[typeof window]&&window),IW=jJ(q5[typeof g8]&&g8),Xr=$r||FA!==(IW&&IW.window)&&FA||Jr||IW||Function("return this")();function jJ(D){return D&&D.Object===Object?D:null}var Yr=Object.prototype,Qr=Yr.toString,WA=Xr.Symbol,KA=WA?WA.prototype:void 0,qA=KA?KA.toString:void 0;function Ur(D){if(typeof D=="string")return D;if(Wr(D))return qA?qA.call(D):"";var $=D+"";return $=="0"&&1/D==-an?"-0":$}function Fr(D){return!!D&&typeof D=="object"}function Wr(D){return typeof D=="symbol"||Fr(D)&&Qr.call(D)==sn}u8.exports=Ur});var NA=k((f8,x8)=>{var Kr=GA(),qr="Expected a function",zA="__lodash_hash_undefined__",Gr="[object Function]",Zr="[object GeneratorFunction]",zr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g,Hr=/[\\^$.*+?()[\]{}|]/g,Ir=/\\(\\)?/g,Br=/^\[object .+?Constructor\]$/,Z5={function:!0,object:!0},Or=Z5[typeof f8]&&f8&&!f8.nodeType?f8:void 0,Nr=Z5[typeof x8]&&x8&&!x8.nodeType?x8:void 0,Vr=LJ(Or&&Nr&&typeof global=="object"&&global),wr=LJ(Z5[typeof self]&&self),ZA=LJ(Z5[typeof window]&&window),BW=LJ(Z5[typeof f8]&&f8),jr=Vr||ZA!==(BW&&BW.window)&&ZA||wr||BW||Function("return this")();function LJ(D){return D&&D.Object===Object?D:null}function Lr(D){var $=!1;if(D!=null&&typeof D.toString!="function")try{$=!!(D+"")}catch(J){}return $}var Rr=Array.prototype,HA=Object.prototype,IA=Function.prototype.toString,OW=HA.hasOwnProperty,Mr=HA.toString,Ar=RegExp("^"+IA.call(OW).replace(Hr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vr=Rr.splice,Er=BA(jr,"Map"),G5=BA(Object,"create");function J4(D){var $=-1,J=D?D.length:0;this.clear();while(++$<J){var X=D[$];this.set(X[0],X[1])}}function Tr(){this.__data__=G5?G5(null):{}}function Pr(D){return this.has(D)&&delete this.__data__[D]}function br(D){var $=this.__data__;if(G5){var J=$[D];return J===zA?void 0:J}return OW.call($,D)?$[D]:void 0}function Sr(D){var $=this.__data__;return G5?$[D]!==void 0:OW.call($,D)}function Cr(D,$){var J=this.__data__;return J[D]=G5&&$===void 0?zA:$,this}J4.prototype.clear=Tr;J4.prototype.delete=Pr;J4.prototype.get=br;J4.prototype.has=Sr;J4.prototype.set=Cr;function y8(D){var $=-1,J=D?D.length:0;this.clear();while(++$<J){var X=D[$];this.set(X[0],X[1])}}function kr(){this.__data__=[]}function _r(D){var $=this.__data__,J=RJ($,D);if(J<0)return!1;var X=$.length-1;if(J==X)$.pop();else vr.call($,J,1);return!0}function ur(D){var $=this.__data__,J=RJ($,D);return J<0?void 0:$[J][1]}function gr(D){return RJ(this.__data__,D)>-1}function xr(D,$){var J=this.__data__,X=RJ(J,D);if(X<0)J.push([D,$]);else J[X][1]=$;return this}y8.prototype.clear=kr;y8.prototype.delete=_r;y8.prototype.get=ur;y8.prototype.has=gr;y8.prototype.set=xr;function X4(D){var $=-1,J=D?D.length:0;this.clear();while(++$<J){var X=D[$];this.set(X[0],X[1])}}function fr(){this.__data__={hash:new J4,map:new(Er||y8),string:new J4}}function yr(D){return MJ(this,D).delete(D)}function hr(D){return MJ(this,D).get(D)}function mr(D){return MJ(this,D).has(D)}function lr(D,$){return MJ(this,D).set(D,$),this}X4.prototype.clear=fr;X4.prototype.delete=yr;X4.prototype.get=hr;X4.prototype.has=mr;X4.prototype.set=lr;function RJ(D,$){var J=D.length;while(J--)if(pr(D[J][0],$))return J;return-1}function MJ(D,$){var J=D.__data__;return dr($)?J[typeof $=="string"?"string":"hash"]:J.map}function BA(D,$){var J=D[$];return rr(J)?J:void 0}function dr(D){var $=typeof D;return $=="string"||$=="number"||$=="symbol"||$=="boolean"?D!=="__proto__":D===null}var ir=NW(function(D){var $=[];return tr(D).replace(zr,function(J,X,Y,Q){$.push(Y?Q.replace(Ir,"$1"):X||J)}),$});function cr(D){if(D!=null){try{return IA.call(D)}catch($){}try{return D+""}catch($){}}return""}function NW(D,$){if(typeof D!="function"||$&&typeof $!="function")throw TypeError(qr);var J=function(){var X=arguments,Y=$?$.apply(this,X):X[0],Q=J.cache;if(Q.has(Y))return Q.get(Y);var U=D.apply(this,X);return J.cache=Q.set(Y,U),U};return J.cache=new(NW.Cache||X4),J}NW.Cache=X4;function pr(D,$){return D===$||D!==D&&$!==$}function nr(D){var $=OA(D)?Mr.call(D):"";return $==Gr||$==Zr}function OA(D){var $=typeof D;return!!D&&($=="object"||$=="function")}function rr(D){if(!OA(D))return!1;var $=nr(D)||Lr(D)?Ar:Br;return $.test(cr(D))}function tr(D){return D==null?"":Kr(D)}x8.exports=ir});var rA=k((l8,m8)=>{var or=NA(),ar=200,PW="__lodash_hash_undefined__",PJ=1,d8=2,sr=1/0,MA=9007199254740991,AJ="[object Arguments]",jW="[object Array]",AA="[object Boolean]",vA="[object Date]",EA="[object Error]",TA="[object Function]",er="[object GeneratorFunction]",z5="[object Map]",PA="[object Number]",h8="[object Object]",VA="[object Promise]",bA="[object RegExp]",H5="[object Set]",bW="[object String]",SA="[object Symbol]",LW="[object WeakMap]",CA="[object ArrayBuffer]",vJ="[object DataView]",Dt="[object Float32Array]",$t="[object Float64Array]",Jt="[object Int8Array]",Xt="[object Int16Array]",Yt="[object Int32Array]",Qt="[object Uint8Array]",Ut="[object Uint8ClampedArray]",Ft="[object Uint16Array]",Wt="[object Uint32Array]",Kt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qt=/^\w*$/,Gt=/[\\^$.*+?()[\]{}|]/g,Zt=/^\[object .+?Constructor\]$/,zt=/^(?:0|[1-9]\d*)$/,sD={};sD[Dt]=sD[$t]=sD[Jt]=sD[Xt]=sD[Yt]=sD[Qt]=sD[Ut]=sD[Ft]=sD[Wt]=!0;sD[AJ]=sD[jW]=sD[CA]=sD[AA]=sD[vJ]=sD[vA]=sD[EA]=sD[TA]=sD[z5]=sD[PA]=sD[h8]=sD[bA]=sD[H5]=sD[bW]=sD[LW]=!1;var B5={function:!0,object:!0},Ht=B5[typeof l8]&&l8&&!l8.nodeType?l8:void 0,It=B5[typeof m8]&&m8&&!m8.nodeType?m8:void 0,Bt=bJ(Ht&&It&&typeof global=="object"&&global),Ot=bJ(B5[typeof self]&&self),wA=bJ(B5[typeof window]&&window),VW=bJ(B5[typeof l8]&&l8),U4=Bt||wA!==(VW&&VW.window)&&wA||Ot||VW||Function("return this")();function Nt(D,$){var J=-1,X=D.length,Y=Array(X);while(++J<X)Y[J]=$(D[J],J,D);return Y}function Vt(D,$){var J=-1,X=D.length;while(++J<X)if($(D[J],J,D))return!0;return!1}function wt(D,$){var J=-1,X=Array(D);while(++J<D)X[J]=$(J);return X}function jt(D,$){return Nt($,function(J){return[J,D[J]]})}function bJ(D){return D&&D.Object===Object?D:null}function RW(D){var $=!1;if(D!=null&&typeof D.toString!="function")try{$=!!(D+"")}catch(J){}return $}function kA(D){var $=-1,J=Array(D.size);return D.forEach(function(X,Y){J[++$]=[Y,X]}),J}function Lt(D){var $=-1,J=Array(D.size);return D.forEach(function(X){J[++$]=X}),J}function Rt(D){var $=-1,J=Array(D.size);return D.forEach(function(X){J[++$]=[X,X]}),J}var Mt=Array.prototype,SJ=Object.prototype,_A=Function.prototype.toString,Y4=SJ.hasOwnProperty,F4=SJ.toString,At=RegExp("^"+_A.call(Y4).replace(Gt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),jA=U4.Symbol,LA=U4.Uint8Array,vt=SJ.propertyIsEnumerable,Et=Mt.splice,Tt=Object.getPrototypeOf,Pt=Object.keys,MW=i8(U4,"DataView"),EJ=i8(U4,"Map"),AW=i8(U4,"Promise"),vW=i8(U4,"Set"),EW=i8(U4,"WeakMap"),I5=i8(Object,"create"),bt=K4(MW),St=K4(EJ),Ct=K4(AW),kt=K4(vW),_t=K4(EW),RA=jA?jA.prototype:void 0,wW=RA?RA.valueOf:void 0;function Q4(D){var $=-1,J=D?D.length:0;this.clear();while(++$<J){var X=D[$];this.set(X[0],X[1])}}function ut(){this.__data__=I5?I5(null):{}}function gt(D){return this.has(D)&&delete this.__data__[D]}function xt(D){var $=this.__data__;if(I5){var J=$[D];return J===PW?void 0:J}return Y4.call($,D)?$[D]:void 0}function ft(D){var $=this.__data__;return I5?$[D]!==void 0:Y4.call($,D)}function yt(D,$){var J=this.__data__;return J[D]=I5&&$===void 0?PW:$,this}Q4.prototype.clear=ut;Q4.prototype.delete=gt;Q4.prototype.get=xt;Q4.prototype.has=ft;Q4.prototype.set=yt;function k6(D){var $=-1,J=D?D.length:0;this.clear();while(++$<J){var X=D[$];this.set(X[0],X[1])}}function ht(){this.__data__=[]}function mt(D){var $=this.__data__,J=CJ($,D);if(J<0)return!1;var X=$.length-1;if(J==X)$.pop();else Et.call($,J,1);return!0}function lt(D){var $=this.__data__,J=CJ($,D);return J<0?void 0:$[J][1]}function dt(D){return CJ(this.__data__,D)>-1}function it(D,$){var J=this.__data__,X=CJ(J,D);if(X<0)J.push([D,$]);else J[X][1]=$;return this}k6.prototype.clear=ht;k6.prototype.delete=mt;k6.prototype.get=lt;k6.prototype.has=dt;k6.prototype.set=it;function W4(D){var $=-1,J=D?D.length:0;this.clear();while(++$<J){var X=D[$];this.set(X[0],X[1])}}function ct(){this.__data__={hash:new Q4,map:new(EJ||k6),string:new Q4}}function pt(D){return kJ(this,D).delete(D)}function nt(D){return kJ(this,D).get(D)}function rt(D){return kJ(this,D).has(D)}function tt(D,$){return kJ(this,D).set(D,$),this}W4.prototype.clear=ct;W4.prototype.delete=pt;W4.prototype.get=nt;W4.prototype.has=rt;W4.prototype.set=tt;function TJ(D){var $=-1,J=D?D.length:0;this.__data__=new W4;while(++$<J)this.add(D[$])}function ot(D){return this.__data__.set(D,PW),this}function at(D){return this.__data__.has(D)}TJ.prototype.add=TJ.prototype.push=ot;TJ.prototype.has=at;function C6(D){this.__data__=new k6(D)}function st(){this.__data__=new k6}function et(D){return this.__data__.delete(D)}function Do(D){return this.__data__.get(D)}function $o(D){return this.__data__.has(D)}function Jo(D,$){var J=this.__data__;if(J instanceof k6&&J.__data__.length==ar)J=this.__data__=new W4(J.__data__);return J.set(D,$),this}C6.prototype.clear=st;C6.prototype.delete=et;C6.prototype.get=Do;C6.prototype.has=$o;C6.prototype.set=Jo;function CJ(D,$){var J=D.length;while(J--)if(jo(D[J][0],$))return J;return-1}function uA(D,$){$=_J($,D)?[$]:fA($);var J=0,X=$.length;while(D!=null&&J<X)D=D[uJ($[J++])];return J&&J==X?D:void 0}function gA(D,$){return Y4.call(D,$)||typeof D=="object"&&$ in D&&Bo(D)===null}function Xo(D,$){return $ in Object(D)}function SW(D,$,J,X,Y){if(D===$)return!0;if(D==null||$==null||!xJ(D)&&!O5($))return D!==D&&$!==$;return Yo(D,$,SW,J,X,Y)}function Yo(D,$,J,X,Y,Q){var U=Q1(D),F=Q1($),W=jW,K=jW;if(!U)W=S6(D),W=W==AJ?h8:W;if(!F)K=S6($),K=K==AJ?h8:K;var q=W==h8&&!RW(D),G=K==h8&&!RW($),Z=W==K;if(Z&&!q)return Q||(Q=new C6),U||Mo(D)?yA(D,$,J,X,Y,Q):Zo(D,$,W,J,X,Y,Q);if(!(Y&d8)){var H=q&&Y4.call(D,"__wrapped__"),z=G&&Y4.call($,"__wrapped__");if(H||z){var I=H?D.value():D,B=z?$.value():$;return Q||(Q=new C6),J(I,B,X,Y,Q)}}if(!Z)return!1;return Q||(Q=new C6),zo(D,$,J,X,Y,Q)}function Qo(D,$,J,X){var Y=J.length,Q=Y,U=!X;if(D==null)return!Q;D=Object(D);while(Y--){var F=J[Y];if(U&&F[2]?F[1]!==D[F[0]]:!(F[0]in D))return!1}while(++Y<Q){F=J[Y];var W=F[0],K=D[W],q=F[1];if(U&&F[2]){if(K===void 0&&!(W in D))return!1}else{var G=new C6;if(X)var Z=X(K,q,W,D,$,G);if(!(Z===void 0?SW(q,K,X,PJ|d8,G):Z))return!1}}return!0}function Uo(D){if(typeof D=="function")return D;if(D==null)return To;if(typeof D=="object")return Q1(D)?Ko(D[0],D[1]):Wo(D);return Po(D)}function Fo(D){return Pt(Object(D))}function Wo(D){var $=Io(D);if($.length==1&&$[0][2])return lA($[0][0],$[0][1]);return function(J){return J===D||Qo(J,D,$)}}function Ko(D,$){if(_J(D)&&mA($))return lA(uJ(D),$);return function(J){var X=Ao(J,D);return X===void 0&&X===$?vo(J,D):SW($,X,void 0,PJ|d8)}}function xA(D){return function($){return $==null?void 0:$[D]}}function qo(D){return function($){return uA($,D)}}function fA(D){return Q1(D)?D:or(D)}function Go(D){return function($){var J=S6($);if(J==z5)return kA($);if(J==H5)return Rt($);return jt($,D($))}}function yA(D,$,J,X,Y,Q){var U=Y&d8,F=D.length,W=$.length;if(F!=W&&!(U&&W>F))return!1;var K=Q.get(D);if(K)return K==$;var q=-1,G=!0,Z=Y&PJ?new TJ:void 0;Q.set(D,$);while(++q<F){var H=D[q],z=$[q];if(X)var I=U?X(z,H,q,$,D,Q):X(H,z,q,D,$,Q);if(I!==void 0){if(I)continue;G=!1;break}if(Z){if(!Vt($,function(B,N){if(!Z.has(N)&&(H===B||J(H,B,X,Y,Q)))return Z.add(N)})){G=!1;break}}else if(!(H===z||J(H,z,X,Y,Q))){G=!1;break}}return Q.delete(D),G}function Zo(D,$,J,X,Y,Q,U){switch(J){case vJ:if(D.byteLength!=$.byteLength||D.byteOffset!=$.byteOffset)return!1;D=D.buffer,$=$.buffer;case CA:if(D.byteLength!=$.byteLength||!X(new LA(D),new LA($)))return!1;return!0;case AA:case vA:return+D==+$;case EA:return D.name==$.name&&D.message==$.message;case PA:return D!=+D?$!=+$:D==+$;case bA:case bW:return D==$+"";case z5:var F=kA;case H5:var W=Q&d8;if(F||(F=Lt),D.size!=$.size&&!W)return!1;var K=U.get(D);if(K)return K==$;return Q|=PJ,U.set(D,$),yA(F(D),F($),X,Y,Q,U);case SA:if(wW)return wW.call(D)==wW.call($)}return!1}function zo(D,$,J,X,Y,Q){var U=Y&d8,F=TW(D),W=F.length,K=TW($),q=K.length;if(W!=q&&!U)return!1;var G=W;while(G--){var Z=F[G];if(!(U?Z in $:gA($,Z)))return!1}var H=Q.get(D);if(H)return H==$;var z=!0;Q.set(D,$);var I=U;while(++G<W){Z=F[G];var B=D[Z],N=$[Z];if(X)var V=U?X(N,B,Z,$,D,Q):X(B,N,Z,D,$,Q);if(!(V===void 0?B===N||J(B,N,X,Y,Q):V)){z=!1;break}I||(I=Z=="constructor")}if(z&&!I){var O=D.constructor,j=$.constructor;if(O!=j&&(("constructor"in D)&&("constructor"in $))&&!(typeof O=="function"&&O instanceof O&&typeof j=="function"&&j instanceof j))z=!1}return Q.delete(D),z}var Ho=xA("length");function kJ(D,$){var J=D.__data__;return Vo($)?J[typeof $=="string"?"string":"hash"]:J.map}function Io(D){var $=Eo(D),J=$.length;while(J--)$[J][2]=mA($[J][1]);return $}function i8(D,$){var J=D[$];return Ro(J)?J:void 0}function Bo(D){return Tt(Object(D))}function S6(D){return F4.call(D)}if(MW&&S6(new MW(new ArrayBuffer(1)))!=vJ||EJ&&S6(new EJ)!=z5||AW&&S6(AW.resolve())!=VA||vW&&S6(new vW)!=H5||EW&&S6(new EW)!=LW)S6=function(D){var $=F4.call(D),J=$==h8?D.constructor:void 0,X=J?K4(J):void 0;if(X)switch(X){case bt:return vJ;case St:return z5;case Ct:return VA;case kt:return H5;case _t:return LW}return $};function Oo(D,$,J){$=_J($,D)?[$]:fA($);var X,Y=-1,U=$.length;while(++Y<U){var Q=uJ($[Y]);if(!(X=D!=null&&J(D,Q)))break;D=D[Q]}if(X)return X;var U=D?D.length:0;return!!U&&gJ(U)&&hA(Q,U)&&(Q1(D)||pA(D)||dA(D))}function No(D){var $=D?D.length:void 0;if(gJ($)&&(Q1(D)||pA(D)||dA(D)))return wt($,String);return null}function hA(D,$){return $=$==null?MA:$,!!$&&(typeof D=="number"||zt.test(D))&&(D>-1&&D%1==0&&D<$)}function _J(D,$){if(Q1(D))return!1;var J=typeof D;if(J=="number"||J=="symbol"||J=="boolean"||D==null||nA(D))return!0;return qt.test(D)||!Kt.test(D)||$!=null&&D in Object($)}function Vo(D){var $=typeof D;return $=="string"||$=="number"||$=="symbol"||$=="boolean"?D!=="__proto__":D===null}function wo(D){var $=D&&D.constructor,J=typeof $=="function"&&$.prototype||SJ;return D===J}function mA(D){return D===D&&!xJ(D)}function lA(D,$){return function(J){if(J==null)return!1;return J[D]===$&&($!==void 0||(D in Object(J)))}}function uJ(D){if(typeof D=="string"||nA(D))return D;var $=D+"";return $=="0"&&1/D==-sr?"-0":$}function K4(D){if(D!=null){try{return _A.call(D)}catch($){}try{return D+""}catch($){}}return""}function jo(D,$){return D===$||D!==D&&$!==$}function dA(D){return Lo(D)&&Y4.call(D,"callee")&&(!vt.call(D,"callee")||F4.call(D)==AJ)}var Q1=Array.isArray;function iA(D){return D!=null&&gJ(Ho(D))&&!cA(D)}function Lo(D){return O5(D)&&iA(D)}function cA(D){var $=xJ(D)?F4.call(D):"";return $==TA||$==er}function gJ(D){return typeof D=="number"&&D>-1&&D%1==0&&D<=MA}function xJ(D){var $=typeof D;return!!D&&($=="object"||$=="function")}function O5(D){return!!D&&typeof D=="object"}function Ro(D){if(!xJ(D))return!1;var $=cA(D)||RW(D)?At:Zt;return $.test(K4(D))}function pA(D){return typeof D=="string"||!Q1(D)&&O5(D)&&F4.call(D)==bW}function nA(D){return typeof D=="symbol"||O5(D)&&F4.call(D)==SA}function Mo(D){return O5(D)&&gJ(D.length)&&!!sD[F4.call(D)]}function Ao(D,$,J){var X=D==null?void 0:uA(D,$);return X===void 0?J:X}function vo(D,$){return D!=null&&Oo(D,$,Xo)}function TW(D){var $=wo(D);if(!($||iA(D)))return Fo(D);var J=No(D),X=!!J,Y=J||[],Q=Y.length;for(var U in D)if(gA(D,U)&&!(X&&(U=="length"||hA(U,Q)))&&!($&&U=="constructor"))Y.push(U);return Y}var Eo=Go(TW);function To(D){return D}function Po(D){return _J(D)?xA(uJ(D)):qo(D)}m8.exports=Uo});var eA=k((p8,c8)=>{var bo=1/0,So="[object Function]",Co="[object GeneratorFunction]",ko=/[\\^$.*+?()[\]{}|]/g,_o=/^\[object .+?Constructor\]$/,N5={function:!0,object:!0},uo=N5[typeof p8]&&p8&&!p8.nodeType?p8:void 0,go=N5[typeof c8]&&c8&&!c8.nodeType?c8:void 0,xo=fJ(uo&&go&&typeof global=="object"&&global),fo=fJ(N5[typeof self]&&self),tA=fJ(N5[typeof window]&&window),CW=fJ(N5[typeof p8]&&p8),yo=xo||tA!==(CW&&CW.window)&&tA||fo||CW||Function("return this")();function fJ(D){return D&&D.Object===Object?D:null}function ho(D){var $=!1;if(D!=null&&typeof D.toString!="function")try{$=!!(D+"")}catch(J){}return $}function mo(D){var $=-1,J=Array(D.size);return D.forEach(function(X){J[++$]=X}),J}var oA=Object.prototype,aA=Function.prototype.toString,lo=oA.hasOwnProperty,io=oA.toString,co=RegExp("^"+aA.call(lo).replace(ko,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kW=no(yo,"Set"),po=!(kW&&1/mo(new kW([,-0]))[1]==bo)?ao:function(D){return new kW(D)};function no(D,$){var J=D[$];return oo(J)?J:void 0}function ro(D){if(D!=null){try{return aA.call(D)}catch($){}try{return D+""}catch($){}}return""}function to(D){var $=sA(D)?io.call(D):"";return $==So||$==Co}function sA(D){var $=typeof D;return!!D&&($=="object"||$=="function")}function oo(D){if(!sA(D))return!1;var $=to(D)||ho(D)?co:_o;return $.test(ro(D))}function ao(){}c8.exports=po});var $v=k((r8,n8)=>{var V5={function:!0,object:!0},so=V5[typeof r8]&&r8&&!r8.nodeType?r8:void 0,eo=V5[typeof n8]&&n8&&!n8.nodeType?n8:void 0,Da=yJ(so&&eo&&typeof global=="object"&&global),$a=yJ(V5[typeof self]&&self),Dv=yJ(V5[typeof window]&&window),_W=yJ(V5[typeof r8]&&r8),Ja=Da||Dv!==(_W&&_W.window)&&Dv||$a||_W||Function("return this")();function yJ(D){return D&&D.Object===Object?D:null}n8.exports=Ja});var Fv=k((NwD,Uv)=>{var Xa=eA(),Ya=$v(),Qa=200,uW="__lodash_hash_undefined__",Ua="[object Function]",Fa="[object GeneratorFunction]",Wa=/[\\^$.*+?()[\]{}|]/g,Ka=/^\[object .+?Constructor\]$/;function qa(D,$){return!!D.length&&Za(D,$,0)>-1}function Ga(D,$,J){var X=-1,Y=D.length;while(++X<Y)if(J($,D[X]))return!0;return!1}function Za(D,$,J){if($!==$)return Ha(D,J);var X=J-1,Y=D.length;while(++X<Y)if(D[X]===$)return X;return-1}function za(D,$){return D.has($)}function Ha(D,$,J){var X=D.length,Y=$+(J?0:-1);while(J?Y--:++Y<X){var Q=D[Y];if(Q!==Q)return Y}return-1}function Ia(D){var $=!1;if(D!=null&&typeof D.toString!="function")try{$=!!(D+"")}catch(J){}return $}function Ba(D){var $=-1,J=Array(D.size);return D.forEach(function(X){J[++$]=X}),J}var Oa=Array.prototype,Jv=Object.prototype,Xv=Function.prototype.toString,gW=Jv.hasOwnProperty,Na=Jv.toString,Va=RegExp("^"+Xv.call(gW).replace(Wa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wa=Oa.splice,ja=Yv(Ya,"Map"),w5=Yv(Object,"create");function q4(D){var $=-1,J=D?D.length:0;this.clear();while(++$<J){var X=D[$];this.set(X[0],X[1])}}function La(){this.__data__=w5?w5(null):{}}function Ra(D){return this.has(D)&&delete this.__data__[D]}function Ma(D){var $=this.__data__;if(w5){var J=$[D];return J===uW?void 0:J}return gW.call($,D)?$[D]:void 0}function Aa(D){var $=this.__data__;return w5?$[D]!==void 0:gW.call($,D)}function va(D,$){var J=this.__data__;return J[D]=w5&&$===void 0?uW:$,this}q4.prototype.clear=La;q4.prototype.delete=Ra;q4.prototype.get=Ma;q4.prototype.has=Aa;q4.prototype.set=va;function t8(D){var $=-1,J=D?D.length:0;this.clear();while(++$<J){var X=D[$];this.set(X[0],X[1])}}function Ea(){this.__data__=[]}function Ta(D){var $=this.__data__,J=mJ($,D);if(J<0)return!1;var X=$.length-1;if(J==X)$.pop();else wa.call($,J,1);return!0}function Pa(D){var $=this.__data__,J=mJ($,D);return J<0?void 0:$[J][1]}function ba(D){return mJ(this.__data__,D)>-1}function Sa(D,$){var J=this.__data__,X=mJ(J,D);if(X<0)J.push([D,$]);else J[X][1]=$;return this}t8.prototype.clear=Ea;t8.prototype.delete=Ta;t8.prototype.get=Pa;t8.prototype.has=ba;t8.prototype.set=Sa;function o8(D){var $=-1,J=D?D.length:0;this.clear();while(++$<J){var X=D[$];this.set(X[0],X[1])}}function Ca(){this.__data__={hash:new q4,map:new(ja||t8),string:new q4}}function ka(D){return lJ(this,D).delete(D)}function _a(D){return lJ(this,D).get(D)}function ua(D){return lJ(this,D).has(D)}function ga(D,$){return lJ(this,D).set(D,$),this}o8.prototype.clear=Ca;o8.prototype.delete=ka;o8.prototype.get=_a;o8.prototype.has=ua;o8.prototype.set=ga;function hJ(D){var $=-1,J=D?D.length:0;this.__data__=new o8;while(++$<J)this.add(D[$])}function xa(D){return this.__data__.set(D,uW),this}function fa(D){return this.__data__.has(D)}hJ.prototype.add=hJ.prototype.push=xa;hJ.prototype.has=fa;function mJ(D,$){var J=D.length;while(J--)if(la(D[J][0],$))return J;return-1}function ya(D,$,J){var X=-1,Y=qa,Q=D.length,U=!0,F=[],W=F;if(J)U=!1,Y=Ga;else if(Q>=Qa){var K=$?null:Xa(D);if(K)return Ba(K);U=!1,Y=za,W=new hJ}else W=$?[]:F;D:while(++X<Q){var q=D[X],G=$?$(q):q;if(q=J||q!==0?q:0,U&&G===G){var Z=W.length;while(Z--)if(W[Z]===G)continue D;if($)W.push(G);F.push(q)}else if(!Y(W,G,J)){if(W!==F)W.push(G);F.push(q)}}return F}function lJ(D,$){var J=D.__data__;return ha($)?J[typeof $=="string"?"string":"hash"]:J.map}function Yv(D,$){var J=D[$];return ia(J)?J:void 0}function ha(D){var $=typeof D;return $=="string"||$=="number"||$=="symbol"||$=="boolean"?D!=="__proto__":D===null}function ma(D){if(D!=null){try{return Xv.call(D)}catch($){}try{return D+""}catch($){}}return""}function la(D,$){return D===$||D!==D&&$!==$}function da(D){var $=Qv(D)?Na.call(D):"";return $==Ua||$==Fa}function Qv(D){var $=typeof D;return!!D&&($=="object"||$=="function")}function ia(D){if(!Qv(D))return!1;var $=da(D)||Ia(D)?Va:Ka;return $.test(ma(D))}Uv.exports=ya});var Kv=k((VwD,Wv)=>{var ca=rA(),pa=Fv();function na(D,$){return D&&D.length?pa(D,ca($)):[]}Wv.exports=na});var Gv=k((wwD,qv)=>{var ra=UA(),ta=Kv(),oa=ra("MultiError");qv.exports=xW;function xW(D){if(!(this instanceof xW))return new xW(D);if(D=Array.isArray(D)?D:[D],D=ta(D,function(J){return J.stack}),D.length===1)return D[0];var $=new oa({message:D.map(function(J){return J.message}).join("; "),errors:D.reduce(function(J,X){return J.concat(X.errors||X)},[])});return $.__defineGetter__("stack",function(){return D.map(function(J){return J.stack}).join(`
`)}),$.__defineSetter__("stack",function(J){return[J].concat($.stack).join(`
`)}),$}});var zv=k((jwD,Zv)=>{var U1=XD("constants"),aa=process.cwd,dJ=null,sa=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!dJ)dJ=aa.call(process);return dJ};try{process.cwd()}catch(D){}if(typeof process.chdir==="function"){if(iJ=process.chdir,process.chdir=function(D){dJ=null,iJ.call(process,D)},Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,iJ)}var iJ;Zv.exports=ea;function ea(D){if(U1.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./))$(D);if(!D.lutimes)J(D);if(D.chown=Q(D.chown),D.fchown=Q(D.fchown),D.lchown=Q(D.lchown),D.chmod=X(D.chmod),D.fchmod=X(D.fchmod),D.lchmod=X(D.lchmod),D.chownSync=U(D.chownSync),D.fchownSync=U(D.fchownSync),D.lchownSync=U(D.lchownSync),D.chmodSync=Y(D.chmodSync),D.fchmodSync=Y(D.fchmodSync),D.lchmodSync=Y(D.lchmodSync),D.stat=F(D.stat),D.fstat=F(D.fstat),D.lstat=F(D.lstat),D.statSync=W(D.statSync),D.fstatSync=W(D.fstatSync),D.lstatSync=W(D.lstatSync),D.chmod&&!D.lchmod)D.lchmod=function(q,G,Z){if(Z)process.nextTick(Z)},D.lchmodSync=function(){};if(D.chown&&!D.lchown)D.lchown=function(q,G,Z,H){if(H)process.nextTick(H)},D.lchownSync=function(){};if(sa==="win32")D.rename=typeof D.rename!=="function"?D.rename:function(q){function G(Z,H,z){var I=Date.now(),B=0;q(Z,H,function N(V){if(V&&(V.code==="EACCES"||V.code==="EPERM"||V.code==="EBUSY")&&Date.now()-I<60000){if(setTimeout(function(){D.stat(H,function(O,j){if(O&&O.code==="ENOENT")q(Z,H,N);else z(V)})},B),B<100)B+=10;return}if(z)z(V)})}if(Object.setPrototypeOf)Object.setPrototypeOf(G,q);return G}(D.rename);D.read=typeof D.read!=="function"?D.read:function(q){function G(Z,H,z,I,B,N){var V;if(N&&typeof N==="function"){var O=0;V=function(j,v,A){if(j&&j.code==="EAGAIN"&&O<10)return O++,q.call(D,Z,H,z,I,B,V);N.apply(this,arguments)}}return q.call(D,Z,H,z,I,B,V)}if(Object.setPrototypeOf)Object.setPrototypeOf(G,q);return G}(D.read),D.readSync=typeof D.readSync!=="function"?D.readSync:function(q){return function(G,Z,H,z,I){var B=0;while(!0)try{return q.call(D,G,Z,H,z,I)}catch(N){if(N.code==="EAGAIN"&&B<10){B++;continue}throw N}}}(D.readSync);function $(q){q.lchmod=function(G,Z,H){q.open(G,U1.O_WRONLY|U1.O_SYMLINK,Z,function(z,I){if(z){if(H)H(z);return}q.fchmod(I,Z,function(B){q.close(I,function(N){if(H)H(B||N)})})})},q.lchmodSync=function(G,Z){var H=q.openSync(G,U1.O_WRONLY|U1.O_SYMLINK,Z),z=!0,I;try{I=q.fchmodSync(H,Z),z=!1}finally{if(z)try{q.closeSync(H)}catch(B){}else q.closeSync(H)}return I}}function J(q){if(U1.hasOwnProperty("O_SYMLINK")&&q.futimes)q.lutimes=function(G,Z,H,z){q.open(G,U1.O_SYMLINK,function(I,B){if(I){if(z)z(I);return}q.futimes(B,Z,H,function(N){q.close(B,function(V){if(z)z(N||V)})})})},q.lutimesSync=function(G,Z,H){var z=q.openSync(G,U1.O_SYMLINK),I,B=!0;try{I=q.futimesSync(z,Z,H),B=!1}finally{if(B)try{q.closeSync(z)}catch(N){}else q.closeSync(z)}return I};else if(q.futimes)q.lutimes=function(G,Z,H,z){if(z)process.nextTick(z)},q.lutimesSync=function(){}}function X(q){if(!q)return q;return function(G,Z,H){return q.call(D,G,Z,function(z){if(K(z))z=null;if(H)H.apply(this,arguments)})}}function Y(q){if(!q)return q;return function(G,Z){try{return q.call(D,G,Z)}catch(H){if(!K(H))throw H}}}function Q(q){if(!q)return q;return function(G,Z,H,z){return q.call(D,G,Z,H,function(I){if(K(I))I=null;if(z)z.apply(this,arguments)})}}function U(q){if(!q)return q;return function(G,Z,H){try{return q.call(D,G,Z,H)}catch(z){if(!K(z))throw z}}}function F(q){if(!q)return q;return function(G,Z,H){if(typeof Z==="function")H=Z,Z=null;function z(I,B){if(B){if(B.uid<0)B.uid+=4294967296;if(B.gid<0)B.gid+=4294967296}if(H)H.apply(this,arguments)}return Z?q.call(D,G,Z,z):q.call(D,G,z)}}function W(q){if(!q)return q;return function(G,Z){var H=Z?q.call(D,G,Z):q.call(D,G);if(H){if(H.uid<0)H.uid+=4294967296;if(H.gid<0)H.gid+=4294967296}return H}}function K(q){if(!q)return!0;if(q.code==="ENOSYS")return!0;var G=!process.getuid||process.getuid()!==0;if(G){if(q.code==="EINVAL"||q.code==="EPERM")return!0}return!1}}});var Bv=k((LwD,Iv)=>{var Hv=XD("stream").Stream;Iv.exports=Ds;function Ds(D){return{ReadStream:$,WriteStream:J};function $(X,Y){if(!(this instanceof $))return new $(X,Y);Hv.call(this);var Q=this;this.path=X,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,Y=Y||{};var U=Object.keys(Y);for(var F=0,W=U.length;F<W;F++){var K=U[F];this[K]=Y[K]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==void 0){if(typeof this.start!=="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!=="number")throw TypeError("end must be a Number");if(this.start>this.end)throw Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){Q._read()});return}D.open(this.path,this.flags,this.mode,function(q,G){if(q){Q.emit("error",q),Q.readable=!1;return}Q.fd=G,Q.emit("open",G),Q._read()})}function J(X,Y){if(!(this instanceof J))return new J(X,Y);Hv.call(this),this.path=X,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,Y=Y||{};var Q=Object.keys(Y);for(var U=0,F=Q.length;U<F;U++){var W=Q[U];this[W]=Y[W]}if(this.start!==void 0){if(typeof this.start!=="number")throw TypeError("start must be a Number");if(this.start<0)throw Error("start must be >= zero");this.pos=this.start}if(this.busy=!1,this._queue=[],this.fd===null)this._open=D.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush()}}});var Nv=k((RwD,Ov)=>{Ov.exports=Js;var $s=Object.getPrototypeOf||function(D){return D.__proto__};function Js(D){if(D===null||typeof D!=="object")return D;if(D instanceof Object)var $={__proto__:$s(D)};else var $=Object.create(null);return Object.getOwnPropertyNames(D).forEach(function(J){Object.defineProperty($,J,Object.getOwnPropertyDescriptor(D,J))}),$}});var F1=k((MwD,mW)=>{var U0=XD("fs"),Xs=zv(),Ys=Bv(),Qs=Nv(),cJ=XD("util"),b0,nJ;if(typeof Symbol==="function"&&typeof Symbol.for==="function")b0=Symbol.for("graceful-fs.queue"),nJ=Symbol.for("graceful-fs.previous");else b0="___graceful-fs.queue",nJ="___graceful-fs.previous";function Us(){}function wv(D,$){Object.defineProperty(D,b0,{get:function(){return $}})}var G4=Us;if(cJ.debuglog)G4=cJ.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))G4=function(){var D=cJ.format.apply(cJ,arguments);D="GFS4: "+D.split(/\n/).join(`
GFS4: `),console.error(D)};if(!U0[b0]){if(fW=global[b0]||[],wv(U0,fW),U0.close=function(D){function $(J,X){return D.call(U0,J,function(Y){if(!Y)Vv();if(typeof X==="function")X.apply(this,arguments)})}return Object.defineProperty($,nJ,{value:D}),$}(U0.close),U0.closeSync=function(D){function $(J){D.apply(U0,arguments),Vv()}return Object.defineProperty($,nJ,{value:D}),$}(U0.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))process.on("exit",function(){G4(U0[b0]),XD("assert").equal(U0[b0].length,0)})}var fW;if(!global[b0])wv(global,U0[b0]);mW.exports=yW(Qs(U0));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!U0.__patched)mW.exports=yW(U0),U0.__patched=!0;function yW(D){Xs(D),D.gracefulify=yW,D.createReadStream=v,D.createWriteStream=A;var $=D.readFile;D.readFile=J;function J(_,y,E){if(typeof y==="function")E=y,y=null;return d(_,y,E);function d(c,p,o,R){return $(c,p,function(w){if(w&&(w.code==="EMFILE"||w.code==="ENFILE"))a8([d,[c,p,o],w,R||Date.now(),Date.now()]);else if(typeof o==="function")o.apply(this,arguments)})}}var X=D.writeFile;D.writeFile=Y;function Y(_,y,E,d){if(typeof E==="function")d=E,E=null;return c(_,y,E,d);function c(p,o,R,w,L){return X(p,o,R,function(P){if(P&&(P.code==="EMFILE"||P.code==="ENFILE"))a8([c,[p,o,R,w],P,L||Date.now(),Date.now()]);else if(typeof w==="function")w.apply(this,arguments)})}}var Q=D.appendFile;if(Q)D.appendFile=U;function U(_,y,E,d){if(typeof E==="function")d=E,E=null;return c(_,y,E,d);function c(p,o,R,w,L){return Q(p,o,R,function(P){if(P&&(P.code==="EMFILE"||P.code==="ENFILE"))a8([c,[p,o,R,w],P,L||Date.now(),Date.now()]);else if(typeof w==="function")w.apply(this,arguments)})}}var F=D.copyFile;if(F)D.copyFile=W;function W(_,y,E,d){if(typeof E==="function")d=E,E=0;return c(_,y,E,d);function c(p,o,R,w,L){return F(p,o,R,function(P){if(P&&(P.code==="EMFILE"||P.code==="ENFILE"))a8([c,[p,o,R,w],P,L||Date.now(),Date.now()]);else if(typeof w==="function")w.apply(this,arguments)})}}var K=D.readdir;D.readdir=G;var q=/^v[0-5]\./;function G(_,y,E){if(typeof y==="function")E=y,y=null;var d=q.test(process.version)?function(o,R,w,L){return K(o,c(o,R,w,L))}:function(o,R,w,L){return K(o,R,c(o,R,w,L))};return d(_,y,E);function c(p,o,R,w){return function(L,P){if(L&&(L.code==="EMFILE"||L.code==="ENFILE"))a8([d,[p,o,R],L,w||Date.now(),Date.now()]);else{if(P&&P.sort)P.sort();if(typeof R==="function")R.call(this,L,P)}}}}if(process.version.substr(0,4)==="v0.8"){var Z=Ys(D);N=Z.ReadStream,O=Z.WriteStream}var H=D.ReadStream;if(H)N.prototype=Object.create(H.prototype),N.prototype.open=V;var z=D.WriteStream;if(z)O.prototype=Object.create(z.prototype),O.prototype.open=j;Object.defineProperty(D,"ReadStream",{get:function(){return N},set:function(_){N=_},enumerable:!0,configurable:!0}),Object.defineProperty(D,"WriteStream",{get:function(){return O},set:function(_){O=_},enumerable:!0,configurable:!0});var I=N;Object.defineProperty(D,"FileReadStream",{get:function(){return I},set:function(_){I=_},enumerable:!0,configurable:!0});var B=O;Object.defineProperty(D,"FileWriteStream",{get:function(){return B},set:function(_){B=_},enumerable:!0,configurable:!0});function N(_,y){if(this instanceof N)return H.apply(this,arguments),this;else return N.apply(Object.create(N.prototype),arguments)}function V(){var _=this;u(_.path,_.flags,_.mode,function(y,E){if(y){if(_.autoClose)_.destroy();_.emit("error",y)}else _.fd=E,_.emit("open",E),_.read()})}function O(_,y){if(this instanceof O)return z.apply(this,arguments),this;else return O.apply(Object.create(O.prototype),arguments)}function j(){var _=this;u(_.path,_.flags,_.mode,function(y,E){if(y)_.destroy(),_.emit("error",y);else _.fd=E,_.emit("open",E)})}function v(_,y){return new D.ReadStream(_,y)}function A(_,y){return new D.WriteStream(_,y)}var C=D.open;D.open=u;function u(_,y,E,d){if(typeof E==="function")d=E,E=null;return c(_,y,E,d);function c(p,o,R,w,L){return C(p,o,R,function(P,f){if(P&&(P.code==="EMFILE"||P.code==="ENFILE"))a8([c,[p,o,R,w],P,L||Date.now(),Date.now()]);else if(typeof w==="function")w.apply(this,arguments)})}}return D}function a8(D){G4("ENQUEUE",D[0].name,D[1]),U0[b0].push(D),hW()}var pJ;function Vv(){var D=Date.now();for(var $=0;$<U0[b0].length;++$)if(U0[b0][$].length>2)U0[b0][$][3]=D,U0[b0][$][4]=D;hW()}function hW(){if(clearTimeout(pJ),pJ=void 0,U0[b0].length===0)return;var D=U0[b0].shift(),$=D[0],J=D[1],X=D[2],Y=D[3],Q=D[4];if(Y===void 0)G4("RETRY",$.name,J),$.apply(null,J);else if(Date.now()-Y>=60000){G4("TIMEOUT",$.name,J);var U=J.pop();if(typeof U==="function")U.call(null,X)}else{var F=Date.now()-Q,W=Math.max(Q-Y,1),K=Math.min(W*1.2,100);if(F>=K)G4("RETRY",$.name,J),$.apply(null,J.concat([Y]));else U0[b0].push(D)}if(pJ===void 0)pJ=setTimeout(hW,0)}});var Lv=k((AwD,jv)=>{function l$(D,$){if(typeof $==="boolean")$={forever:$};if(this._originalTimeouts=JSON.parse(JSON.stringify(D)),this._timeouts=D,this._options=$||{},this._maxRetryTime=$&&$.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever)this._cachedTimeouts=this._timeouts.slice(0)}jv.exports=l$;l$.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts};l$.prototype.stop=function(){if(this._timeout)clearTimeout(this._timeout);this._timeouts=[],this._cachedTimeouts=null};l$.prototype.retry=function(D){if(this._timeout)clearTimeout(this._timeout);if(!D)return!1;var $=new Date().getTime();if(D&&$-this._operationStart>=this._maxRetryTime)return this._errors.unshift(Error("RetryOperation timeout occurred")),!1;this._errors.push(D);var J=this._timeouts.shift();if(J===void 0)if(this._cachedTimeouts)this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),J=this._timeouts.shift();else return!1;var X=this,Y=setTimeout(function(){if(X._attempts++,X._operationTimeoutCb){if(X._timeout=setTimeout(function(){X._operationTimeoutCb(X._attempts)},X._operationTimeout),X._options.unref)X._timeout.unref()}X._fn(X._attempts)},J);if(this._options.unref)Y.unref();return!0};l$.prototype.attempt=function(D,$){if(this._fn=D,$){if($.timeout)this._operationTimeout=$.timeout;if($.cb)this._operationTimeoutCb=$.cb}var J=this;if(this._operationTimeoutCb)this._timeout=setTimeout(function(){J._operationTimeoutCb()},J._operationTimeout);this._operationStart=new Date().getTime(),this._fn(this._attempts)};l$.prototype.try=function(D){console.log("Using RetryOperation.try() is deprecated"),this.attempt(D)};l$.prototype.start=function(D){console.log("Using RetryOperation.start() is deprecated"),this.attempt(D)};l$.prototype.start=l$.prototype.try;l$.prototype.errors=function(){return this._errors};l$.prototype.attempts=function(){return this._attempts};l$.prototype.mainError=function(){if(this._errors.length===0)return null;var D={},$=null,J=0;for(var X=0;X<this._errors.length;X++){var Y=this._errors[X],Q=Y.message,U=(D[Q]||0)+1;if(D[Q]=U,U>=J)$=Y,J=U}return $}});var Mv=k((Ws)=>{var Fs=Lv();Ws.operation=function(D){var $=Ws.timeouts(D);return new Fs($,{forever:D&&D.forever,unref:D&&D.unref,maxRetryTime:D&&D.maxRetryTime})};Ws.timeouts=function(D){if(D instanceof Array)return[].concat(D);var $={retries:10,factor:2,minTimeout:1000,maxTimeout:1/0,randomize:!1};for(var J in D)$[J]=D[J];if($.minTimeout>$.maxTimeout)throw Error("minTimeout is greater than maxTimeout");var X=[];for(var Y=0;Y<$.retries;Y++)X.push(this.createTimeout(Y,$));if(D&&D.forever&&!X.length)X.push(this.createTimeout(Y,$));return X.sort(function(Q,U){return Q-U}),X};Ws.createTimeout=function(D,$){var J=$.randomize?Math.random()+1:1,X=Math.round(J*$.minTimeout*Math.pow($.factor,D));return X=Math.min(X,$.maxTimeout),X};Ws.wrap=function(D,$,J){if($ instanceof Array)J=$,$=null;if(!J){J=[];for(var X in D)if(typeof D[X]==="function")J.push(X)}for(var Y=0;Y<J.length;Y++){var Q=J[Y],U=D[Q];D[Q]=function(W){var K=Ws.operation($),q=Array.prototype.slice.call(arguments,1),G=q.pop();q.push(function(Z){if(K.retry(Z))return;if(Z)arguments[0]=K.mainError();G.apply(this,arguments)}),K.attempt(function(){W.apply(D,q)})}.bind(D,U),D[Q].options=$}}});var Av=k((EwD,rJ)=>{rJ.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32")rJ.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");if(process.platform==="linux")rJ.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var pW=k((TwD,e8)=>{var $0=global.process,Z4=function(D){return D&&typeof D==="object"&&typeof D.removeListener==="function"&&typeof D.emit==="function"&&typeof D.reallyExit==="function"&&typeof D.listeners==="function"&&typeof D.kill==="function"&&typeof D.pid==="number"&&typeof D.on==="function"};if(!Z4($0))e8.exports=function(){return function(){}};else{if(lW=XD("assert"),z4=Av(),dW=/^win/i.test($0.platform),s8=XD("events"),typeof s8!=="function")s8=s8.EventEmitter;if($0.__signal_exit_emitter__)j0=$0.__signal_exit_emitter__;else j0=$0.__signal_exit_emitter__=new s8,j0.count=0,j0.emitted={};if(!j0.infinite)j0.setMaxListeners(1/0),j0.infinite=!0;e8.exports=function(D,$){if(!Z4(global.process))return function(){};if(lW.equal(typeof D,"function","a callback must be provided for exit handler"),H4===!1)tJ();var J="exit";if($&&$.alwaysLast)J="afterexit";var X=function(){if(j0.removeListener(J,D),j0.listeners("exit").length===0&&j0.listeners("afterexit").length===0)j5()};return j0.on(J,D),X},j5=function(){if(!H4||!Z4(global.process))return;H4=!1,z4.forEach(function($){try{$0.removeListener($,L5[$])}catch(J){}}),$0.emit=R5,$0.reallyExit=oJ,j0.count-=1},e8.exports.unload=j5,W1=function($,J,X){if(j0.emitted[$])return;j0.emitted[$]=!0,j0.emit($,J,X)},L5={},z4.forEach(function(D){L5[D]=function(){if(!Z4(global.process))return;var J=$0.listeners(D);if(J.length===j0.count){if(j5(),W1("exit",null,D),W1("afterexit",null,D),dW&&D==="SIGHUP")D="SIGINT";$0.kill($0.pid,D)}}}),e8.exports.signals=function(){return z4},H4=!1,tJ=function(){if(H4||!Z4(global.process))return;H4=!0,j0.count+=1,z4=z4.filter(function($){try{return $0.on($,L5[$]),!0}catch(J){return!1}}),$0.emit=cW,$0.reallyExit=iW},e8.exports.load=tJ,oJ=$0.reallyExit,iW=function($){if(!Z4(global.process))return;$0.exitCode=$||0,W1("exit",$0.exitCode,null),W1("afterexit",$0.exitCode,null),oJ.call($0,$0.exitCode)},R5=$0.emit,cW=function($,J){if($==="exit"&&Z4(global.process)){if(J!==void 0)$0.exitCode=J;var X=R5.apply(this,arguments);return W1("exit",$0.exitCode,null),W1("afterexit",$0.exitCode,null),X}else return R5.apply(this,arguments)}}var lW,z4,dW,s8,j0,j5,W1,L5,H4,tJ,oJ,iW,R5,cW});var Ev=k((Hs,nW)=>{var vv=Symbol();function Zs(D,$,J){let X=$[vv];if(X)return $.stat(D,(Q,U)=>{if(Q)return J(Q);J(null,U.mtime,X)});let Y=new Date(Math.ceil(Date.now()/1000)*1000+5);$.utimes(D,Y,Y,(Q)=>{if(Q)return J(Q);$.stat(D,(U,F)=>{if(U)return J(U);let W=F.mtime.getTime()%1000===0?"s":"ms";Object.defineProperty($,vv,{value:W}),J(null,F.mtime,W)})})}function zs(D){let $=Date.now();if(D==="s")$=Math.ceil($/1000)*1000;return new Date($)}Hs.probe=Zs;Hs.getMtime=zs});var Cv=k((Rs,A5)=>{var Os=XD("path"),oW=F1(),Ns=Mv(),Vs=pW(),Tv=Ev(),_6={};function M5(D,$){return $.lockfilePath||`${D}.lock`}function aW(D,$,J){if(!$.realpath)return J(null,Os.resolve(D));$.fs.realpath(D,J)}function tW(D,$,J){let X=M5(D,$);$.fs.mkdir(X,(Y)=>{if(!Y)return Tv.probe(X,$.fs,(Q,U,F)=>{if(Q)return $.fs.rmdir(X,()=>{}),J(Q);J(null,U,F)});if(Y.code!=="EEXIST")return J(Y);if($.stale<=0)return J(Object.assign(Error("Lock file is already being held"),{code:"ELOCKED",file:D}));$.fs.stat(X,(Q,U)=>{if(Q){if(Q.code==="ENOENT")return tW(D,{...$,stale:0},J);return J(Q)}if(!Pv(U,$))return J(Object.assign(Error("Lock file is already being held"),{code:"ELOCKED",file:D}));bv(D,$,(F)=>{if(F)return J(F);tW(D,{...$,stale:0},J)})})})}function Pv(D,$){return D.mtime.getTime()<Date.now()-$.stale}function bv(D,$,J){$.fs.rmdir(M5(D,$),(X)=>{if(X&&X.code!=="ENOENT")return J(X);J()})}function aJ(D,$){let J=_6[D];if(J.updateTimeout)return;if(J.updateDelay=J.updateDelay||$.update,J.updateTimeout=setTimeout(()=>{J.updateTimeout=null,$.fs.stat(J.lockfilePath,(X,Y)=>{let Q=J.lastUpdate+$.stale<Date.now();if(X){if(X.code==="ENOENT"||Q)return rW(D,J,Object.assign(X,{code:"ECOMPROMISED"}));return J.updateDelay=1000,aJ(D,$)}if(J.mtime.getTime()!==Y.mtime.getTime())return rW(D,J,Object.assign(Error("Unable to update lock within the stale threshold"),{code:"ECOMPROMISED"}));let F=Tv.getMtime(J.mtimePrecision);$.fs.utimes(J.lockfilePath,F,F,(W)=>{let K=J.lastUpdate+$.stale<Date.now();if(J.released)return;if(W){if(W.code==="ENOENT"||K)return rW(D,J,Object.assign(W,{code:"ECOMPROMISED"}));return J.updateDelay=1000,aJ(D,$)}J.mtime=F,J.lastUpdate=Date.now(),J.updateDelay=null,aJ(D,$)})})},J.updateDelay),J.updateTimeout.unref)J.updateTimeout.unref()}function rW(D,$,J){if($.released=!0,$.updateTimeout)clearTimeout($.updateTimeout);if(_6[D]===$)delete _6[D];$.options.onCompromised(J)}function ws(D,$,J){$={stale:1e4,update:null,realpath:!0,retries:0,fs:oW,onCompromised:(X)=>{throw X},...$},$.retries=$.retries||0,$.retries=typeof $.retries==="number"?{retries:$.retries}:$.retries,$.stale=Math.max($.stale||0,2000),$.update=$.update==null?$.stale/2:$.update||0,$.update=Math.max(Math.min($.update,$.stale/2),1000),aW(D,$,(X,Y)=>{if(X)return J(X);let Q=Ns.operation($.retries);Q.attempt(()=>{tW(Y,$,(U,F,W)=>{if(Q.retry(U))return;if(U)return J(Q.mainError());let K=_6[Y]={lockfilePath:M5(Y,$),mtime:F,mtimePrecision:W,options:$,lastUpdate:Date.now()};aJ(Y,$),J(null,(q)=>{if(K.released)return q&&q(Object.assign(Error("Lock is already released"),{code:"ERELEASED"}));Sv(Y,{...$,realpath:!1},q)})})})})}function Sv(D,$,J){$={fs:oW,realpath:!0,...$},aW(D,$,(X,Y)=>{if(X)return J(X);let Q=_6[Y];if(!Q)return J(Object.assign(Error("Lock is not acquired/owned by you"),{code:"ENOTACQUIRED"}));Q.updateTimeout&&clearTimeout(Q.updateTimeout),Q.released=!0,delete _6[Y],bv(Y,$,J)})}function js(D,$,J){$={stale:1e4,realpath:!0,fs:oW,...$},$.stale=Math.max($.stale||0,2000),aW(D,$,(X,Y)=>{if(X)return J(X);$.fs.stat(M5(Y,$),(Q,U)=>{if(Q)return Q.code==="ENOENT"?J(null,!1):J(Q);return J(null,!Pv(U,$))})})}function Ls(){return _6}Vs(()=>{for(let D in _6){let $=_6[D].options;try{$.fs.rmdirSync(M5(D,$))}catch(J){}}});Rs.lock=ws;Rs.unlock=Sv;Rs.check=js;Rs.getLocks=Ls});var _v=k((PwD,kv)=>{var Ts=F1();function Ps(D){let $=["mkdir","realpath","stat","rmdir","utimes"],J={...D};return $.forEach((X)=>{J[X]=(...Y)=>{let Q=Y.pop(),U;try{U=D[`${X}Sync`](...Y)}catch(F){return Q(F)}Q(null,U)}}),J}function bs(D){return(...$)=>new Promise((J,X)=>{$.push((Y,Q)=>{if(Y)X(Y);else J(Q)}),D(...$)})}function Ss(D){return(...$)=>{let J,X;if($.push((Y,Q)=>{J=Y,X=Q}),D(...$),J)throw J;return X}}function Cs(D){if(D={...D},D.fs=Ps(D.fs||Ts),typeof D.retries==="number"&&D.retries>0||D.retries&&typeof D.retries.retries==="number"&&D.retries.retries>0)throw Object.assign(Error("Cannot use retries with the sync api"),{code:"ESYNC"});return D}kv.exports={toPromise:bs,toSync:Ss,toSyncOptions:Cs}});var gv=k((bwD,K1)=>{var D2=Cv(),{toPromise:sJ,toSync:eJ,toSyncOptions:sW}=_v();async function uv(D,$){let J=await sJ(D2.lock)(D,$);return sJ(J)}function ks(D,$){let J=eJ(D2.lock)(D,sW($));return eJ(J)}function _s(D,$){return sJ(D2.unlock)(D,$)}function us(D,$){return eJ(D2.unlock)(D,sW($))}function gs(D,$){return sJ(D2.check)(D,$)}function xs(D,$){return eJ(D2.check)(D,sW($))}K1.exports=uv;K1.exports.lock=uv;K1.exports.unlock=_s;K1.exports.lockSync=ks;K1.exports.unlockSync=us;K1.exports.check=gs;K1.exports.checkSync=xs});var dv=k((mv)=>{Object.defineProperty(mv,"__esModule",{value:!0});mv.canStoreURLs=mv.FileUrlStorage=void 0;var xv=XD("fs"),fs=hs(Gv()),fv=ys(gv());function hv(D){if(typeof WeakMap!="function")return null;var $=new WeakMap,J=new WeakMap;return(hv=function(X){return X?J:$})(D)}function ys(D,$){if(!$&&D&&D.__esModule)return D;if(D===null||typeof D!="object"&&typeof D!="function")return{default:D};var J=hv($);if(J&&J.has(D))return J.get(D);var X={__proto__:null},Y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Q in D)if(Q!=="default"&&{}.hasOwnProperty.call(D,Q)){var U=Y?Object.getOwnPropertyDescriptor(D,Q):null;U&&(U.get||U.set)?Object.defineProperty(X,Q,U):X[Q]=D[Q]}return X.default=D,J&&J.set(D,X),X}function hs(D){return D&&D.__esModule?D:{default:D}}function v5(D){return v5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},v5(D)}function ms(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function yv(D,$){for(var J=0;J<$.length;J++){var X=$[J];if(X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X)X.writable=!0;Object.defineProperty(D,ds(X.key),X)}}function ls(D,$,J){if($)yv(D.prototype,$);if(J)yv(D,J);return Object.defineProperty(D,"prototype",{writable:!1}),D}function ds(D){var $=is(D,"string");return v5($)=="symbol"?$:$+""}function is(D,$){if(v5(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var X=J.call(D,$||"default");if(v5(X)!="object")return X;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}var SwD=mv.canStoreURLs=!0,CwD=mv.FileUrlStorage=function(){function D($){ms(this,D),this.path=$}return ls(D,[{key:"findAllUploads",value:function(){var J=this;return new Promise(function(X,Y){J._getItems("tus::",function(Q,U){if(Q)Y(Q);else X(U)})})}},{key:"findUploadsByFingerprint",value:function(J){var X=this;return new Promise(function(Y,Q){X._getItems("tus::".concat(J),function(U,F){if(U)Q(U);else Y(F)})})}},{key:"removeUpload",value:function(J){var X=this;return new Promise(function(Y,Q){X._removeItem(J,function(U){if(U)Q(U);else Y()})})}},{key:"addUpload",value:function(J,X){var Y=this,Q=Math.round(Math.random()*1000000000000),U="tus::".concat(J,"::").concat(Q);return new Promise(function(F,W){Y._setItem(U,X,function(K){if(K)W(K);else F(U)})})}},{key:"_setItem",value:function(J,X,Y){var Q=this;fv.lock(this.path,this._lockfileOptions()).then(function(U){Y=Q._releaseAndCb(U,Y),Q._getData(function(F,W){if(F){Y(F);return}W[J]=X,Q._writeData(W,function(K){return Y(K)})})}).catch(Y)}},{key:"_getItems",value:function(J,X){this._getData(function(Y,Q){if(Y){X(Y);return}var U=Object.keys(Q).filter(function(F){return F.startsWith(J)}).map(function(F){var W=Q[F];return W.urlStorageKey=F,W});X(null,U)})}},{key:"_removeItem",value:function(J,X){var Y=this;fv.lock(this.path,this._lockfileOptions()).then(function(Q){X=Y._releaseAndCb(Q,X),Y._getData(function(U,F){if(U){X(U);return}delete F[J],Y._writeData(F,function(W){return X(W)})})}).catch(X)}},{key:"_lockfileOptions",value:function(){return{realpath:!1,retries:{retries:5,minTimeout:20}}}},{key:"_releaseAndCb",value:function(J,X){return function(Y){if(Y){J().then(function(){return X(Y)}).catch(function(Q){return X((0,fs.default)([Y,Q]))});return}J().then(X).catch(X)}}},{key:"_writeData",value:function(J,X){var Y={encoding:"utf8",mode:432,flag:"w"};(0,xv.writeFile)(this.path,JSON.stringify(J),Y,function(Q){return X(Q)})}},{key:"_getData",value:function(J){(0,xv.readFile)(this.path,"utf8",function(X,Y){if(X){if(X.code==="ENOENT")J(null,{});else J(X);return}try{Y=!Y.trim().length?{}:JSON.parse(Y)}catch(Q){J(Q);return}J(null,Y)})}}])}()});var DE=k((q1)=>{Object.defineProperty(q1,"__esModule",{value:!0});Object.defineProperty(q1,"DefaultHttpStack",{enumerable:!0,get:function(){return nv.default}});Object.defineProperty(q1,"DetailedError",{enumerable:!0,get:function(){return ps.default}});Object.defineProperty(q1,"FileUrlStorage",{enumerable:!0,get:function(){return rv.FileUrlStorage}});Object.defineProperty(q1,"StreamSource",{enumerable:!0,get:function(){return as.default}});q1.Upload=void 0;Object.defineProperty(q1,"canStoreURLs",{enumerable:!0,get:function(){return rv.canStoreURLs}});q1.defaultOptions=void 0;Object.defineProperty(q1,"enableDebugLog",{enumerable:!0,get:function(){return ns.enableDebugLog}});q1.isSupported=void 0;var ps=I4(aF()),ns=sF(),rs=I4(gR()),eW=I4(IM()),ts=I4(uM()),os=I4(hM()),nv=I4(JA()),as=I4(KW()),rv=dv();function I4(D){return D&&D.__esModule?D:{default:D}}function J2(D){return J2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},J2(D)}function ss(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function iv(D,$){for(var J=0;J<$.length;J++){var X=$[J];if(X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X)X.writable=!0;Object.defineProperty(D,ov(X.key),X)}}function es(D,$,J){if($)iv(D.prototype,$);if(J)iv(D,J);return Object.defineProperty(D,"prototype",{writable:!1}),D}function De(D,$,J){return $=DX($),$e(D,tv()?Reflect.construct($,J||[],DX(D).constructor):$.apply(D,J))}function $e(D,$){if($&&(J2($)==="object"||typeof $==="function"))return $;else if($!==void 0)throw TypeError("Derived constructors may only return object or undefined");return Je(D)}function Je(D){if(D===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function tv(){try{var D=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch($){}return(tv=function(){return!!D})()}function DX(D){return DX=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(J){return J.__proto__||Object.getPrototypeOf(J)},DX(D)}function Xe(D,$){if(typeof $!=="function"&&$!==null)throw TypeError("Super expression must either be null or a function");if(D.prototype=Object.create($&&$.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),$)DK(D,$)}function DK(D,$){return DK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(X,Y){return X.__proto__=Y,X},DK(D,$)}function cv(D,$){var J=Object.keys(D);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(D);$&&(X=X.filter(function(Y){return Object.getOwnPropertyDescriptor(D,Y).enumerable})),J.push.apply(J,X)}return J}function $2(D){for(var $=1;$<arguments.length;$++){var J=arguments[$]!=null?arguments[$]:{};$%2?cv(Object(J),!0).forEach(function(X){Ye(D,X,J[X])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(J)):cv(Object(J)).forEach(function(X){Object.defineProperty(D,X,Object.getOwnPropertyDescriptor(J,X))})}return D}function Ye(D,$,J){if($=ov($),$ in D)Object.defineProperty(D,$,{value:J,enumerable:!0,configurable:!0,writable:!0});else D[$]=J;return D}function ov(D){var $=Qe(D,"string");return J2($)=="symbol"?$:$+""}function Qe(D,$){if(J2(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var X=J.call(D,$||"default");if(J2(X)!="object")return X;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}var pv=q1.defaultOptions=$2($2({},eW.default.defaultOptions),{},{httpStack:new nv.default,fileReader:new ts.default,urlStorage:new rs.default,fingerprint:os.default}),_wD=q1.Upload=function(D){function $(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ss(this,$),X=$2($2({},pv),X),De(this,$,[J,X])}return Xe($,D),es($,null,[{key:"terminate",value:function(X){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Y=$2($2({},pv),Y),eW.default.terminate(X,Y)}}])}(eW.default),uwD=q1.isSupported=!0});import{execFileSync as qe}from"child_process";import Ge from"path";function We(D,$){if($===void 0)return!0;if(typeof $==="string")return D===$;if($ instanceof RegExp)return $.test(D);return $(D)}function Ke(D,$,J){return{agent:{id:D.id,name:D.name},strategy:"environment",signal:$.name,value:J}}function He(D,$){let J=[],X=JE($.command);for(let Y of D)for(let Q of Y.process??[]){if(!Q.pattern.test(X))continue;J.push(Ie(Y,Q,{...$,command:X}))}return J}function Ie(D,$,J){return{agent:{id:D.id,name:D.name},strategy:"process-tree",signal:$.pattern.toString(),value:`${J.pid}:${J.command}`}}function $E(D,$){try{return qe("ps",["-o",`${$}=`,"-p",String(D)],{encoding:"utf8",stdio:["ignore","pipe","ignore"]}).trim()}catch{return""}}function JE(D){return Ge.basename(D.trim()).replace(/^-+/,"")}function XE(D={}){let $=D.agents??Ue,J=D.strategies??Be(D.experimentalProcessTree),X={env:D.env??process.env,pid:D.pid??process.pid,agents:$,maxProcessDepth:D.maxProcessDepth??20},Y=J.flatMap((U)=>U.detect(X)),Q=Oe($,Y,X.env);if(Q===void 0)return{detected:!1};return{detected:!0,agent:Q}}function Be(D=!1){let $=[new Fe];if(D)$.push(new ze);return $}function Oe(D,$,J){let X=new Set($.map((Y)=>Y.agent.id));for(let Y of D){if(!X.has(Y.id))continue;return{id:Y.id,name:Y.name,...Ne(Y,J)}}return}function Ne(D,$){for(let J of D.sessionEnv??[]){let X=$[J];if(X!==void 0&&X.length>0)return{sessionId:X}}return{}}var Ue,Fe=class{name="environment";detect(D){let $=[];for(let J of D.agents)for(let X of J.env??[]){let Y=D.env[X.name];if(Y===void 0||!We(Y,X.value))continue;$.push(Ke(J,X,Y))}return $}},Ze=class{read(D){let $=$E(D,"comm"),J=Number.parseInt($E(D,"ppid"),10);if(!$||!Number.isInteger(J))return;return{pid:D,ppid:J,command:JE($)}}},ze=class{constructor(D=new Ze){this.reader=D}reader;name="process-tree";detect(D){let $=[],J=D.pid;for(let X=0;X<D.maxProcessDepth;X+=1){let Y=this.reader.read(J);if(Y===void 0)break;if($.push(...He(D.agents,Y)),Y.ppid===void 0||Y.ppid<=1||Y.ppid===J)break;J=Y.ppid}return $}};var YE=S(()=>{Ue=[{id:"codex",name:"Codex",env:[{name:"CODEX_CI",value:"1"},{name:"CODEX_SHELL",value:"1"},{name:"CODEX_THREAD_ID"}],process:[{pattern:/^codex$/i}],sessionEnv:["CODEX_THREAD_ID"]},{id:"cursor",name:"Cursor",env:[{name:"CURSOR_AGENT",value:"1"},{name:"CURSOR_CONVERSATION_ID"}],process:[{pattern:/^cursor$/i}],sessionEnv:["CURSOR_CONVERSATION_ID"]},{id:"claude-code",name:"Claude Code",env:[{name:"CLAUDECODE",value:"1"},{name:"CLAUDE_CODE_SESSION_ID"}],process:[{pattern:/^claude$/i}],sessionEnv:["CLAUDE_CODE_SESSION_ID"]},{id:"opencode",name:"OpenCode",env:[{name:"OPENCODE",value:"1"},{name:"OPENCODE_PID"}],process:[{pattern:/^opencode$/i}]},{id:"devin",name:"Devin",process:[{pattern:/devin/i}]},{id:"gemini",name:"Gemini CLI",env:[{name:"GEMINI_CLI",value:"1"}],process:[{pattern:/^gemini$/i}]},{id:"antigravity",name:"Antigravity",env:[{name:"ANTIGRAVITY_AGENT",value:"1"},{name:"ANTIGRAVITY_TRAJECTORY_ID"}],process:[{pattern:/^antigravity$/i}],sessionEnv:["ANTIGRAVITY_TRAJECTORY_ID"]},{id:"bolt",name:"Bolt",env:[{name:"BOLT_ENV"},{name:"BOLT_ORIGIN"},{name:"BOLT_SERVER_URL"}]},{id:"pi",name:"Pi",env:[{name:"PI_CODING_AGENT",value:"true"}]},{id:"replit",name:"Replit",env:[{name:"REPLIT_SESSION"}],sessionEnv:["REPLIT_SESSION"]},{id:"rork",name:"Rork",env:[{name:"RORK_API_URL"}]},{id:"kiro",name:"Kiro",env:[{name:"KIRO_SESSION_ID"}],process:[{pattern:/kiro/i}],sessionEnv:["KIRO_SESSION_ID"]},{id:"muse",name:"Muse Code",env:[{name:"MUSE_RELEASE_INFO"}]},{id:"cline",name:"Cline",env:[{name:"CLINE_WRAPPER_PATH"}],process:[{pattern:/^cline$/i}]},{id:"kilocode",name:"Kilo Code",env:[{name:"KILO",value:"1"},{name:"KILOCODE_VERSION"},{name:"KILO_RUN_ID"}],process:[{pattern:/^(kilo|kilocode)$/i}],sessionEnv:["KILO_RUN_ID"]},{id:"copilot",name:"GitHub Copilot CLI",env:[{name:"COPILOT_CLI",value:"1"},{name:"COPILOT_AGENT_SESSION_ID"},{name:"COPILOT_RUN_APP",value:"1"}],process:[{pattern:/^(github-copilot-cli|copilot)$/i}],sessionEnv:["COPILOT_AGENT_SESSION_ID"]}]});import{platform as Ve,release as we}from"node:os";import{arch as je,env as Le,version as Re}from"node:process";function nwD(D){$K=D}function rwD(){return $K}function QE(D=Le){let $=XE({env:D}),J={cli_version:o$.version,node_version:Re,os_platform:Ve(),os_arch:je,os_release:we(),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||"undefined",is_ci:E5.isCI,is_tty:Boolean(process.stdout.isTTY),invocation_source:$K,agent_invoker:$.detected};if($.detected&&$.agent)J.agent_identity=$.agent;if(E5.name)J.ci_provider=E5.name;return J}var E5,$K="cli";var UE=S(()=>{YE();I8();E5=j$(iF(),1)});import{AsyncLocalStorage as Me}from"node:async_hooks";function awD(D,$){return WE.run(D,()=>Promise.resolve($()))}function Ae(){return WE.getStore()}function swD(){KE=!0}function qE(){return KE}function ewD(D){GE=D}function FE(D){try{GE?.(D)}catch{}}function $jD(D,$){let J;try{J=new URL(D).pathname}catch{J=D.split("?")[0]}let X="/functions/v1/",Y=J.indexOf(X);if(Y>=0){let K=J.slice(Y+X.length),q=0,G=K.length;while(q<G&&K[q]==="/")q+=1;while(G>q&&K[G-1]==="/")G-=1;let Z=K.slice(q,G);return Z?`${$} functions:${Z}`:`${$} functions`}let Q="/rest/v1/",U=J.indexOf(Q),F=U>=0?J.slice(U+Q.length):J.replace(/^\//,"");if(F.startsWith("rpc/"))return`rpc:${F.slice(4).split("/")[0]}`;let W=F.split("/")[0]||J;return`${$} ${W}`}function ve(D){let $=D?.headers;if(!$)return;let J=$.get;if(typeof J==="function")return J.call($,"capgkey")??void 0;if(Array.isArray($))return $.find(([X])=>X.toLowerCase()==="capgkey")?.[1];return $.capgkey}function ZE(){return async($,J)=>{let X=(J?.method??"GET").toUpperCase(),Y=typeof $==="string"?$:$ instanceof URL?$.href:$.url,Q=Ae(),U=ve(J),F=Date.now();try{let W=await globalThis.fetch($,J);return FE({url:Y,method:X,status:W.status,ok:W.ok,durationMs:Date.now()-F,source:Q,apikey:U}),W}catch(W){throw FE({url:Y,method:X,status:0,ok:!1,durationMs:Date.now()-F,source:Q,apikey:U,error:W}),W}}}var WE,KE=!1,GE,DjD=5000;var zE=S(()=>{WE=new Me});function Ee(D,$){if(!m9(D)||!m9($))return!1;return r1(s$(D),s$($))}function Te(D,$,J){let X=J?.trim()?`
${J.trim()}`:"";return`This Capgo API requires @capgo/cli@${$} or newer. You are using @capgo/cli@${D}.${X}
Please update: npx @capgo/cli@latest`}function HE(D,$,J=!1){let X=$||o$.version,Y=D.minCliVersion?.trim();if(!Y||!Ee(X,Y))return;let Q=Te(X,Y,D.minCliVersionReason);if(!J)lD.error(Q);throw new xD(Q,{minCliVersion:Y,currentVersion:X})}var IE=S(()=>{$1();EF();I8();p1()});function BE(D,$){let X=["normal","bold","dim","italic","underline","strikethrough"].indexOf(D),Y="\x1B[";return"\x1B["+X+"m"+$+"\x1B[0m"}var T5;var OE=S(()=>{T5=class T5{title=null;headers=[];rows=[];static narrowTheme={top:["╔","═","╤","╗"],row:["║"," ","│","║"],div:["╟","─","┼","╢"],bot:["╚","═","╧","╝"]};static wideTheme={top:["╔═","═","═╤═","═╗"],row:["║ "," "," │ "," ║"],div:["╟─","─","─┼─","─╢"],bot:["╚═","═","═╧═","═╝"]};static roundTheme={top:["╭─","─","─┬─","─╮"],row:["│ "," "," │ "," │"],div:["├─","─","─┼─","─┤"],bot:["╰─","─","─┴─","─╯"]};theme=T5.wideTheme;columnWidth(){let D=[this.headers,...this.rows].filter((J)=>J.length>0),$=D[0].map((J)=>this.cast(J).length);for(let J of D.slice(1))for(let X=0;X<$.length;X++){let Y=this.cast(J[X]).length;if(Y>$[X])$[X]=Y}return $}cast(D){if(typeof D==="object")return"obj";if(D!==void 0&&typeof D.toString==="function")return D.toString();else return""}renderTitle(){return"[ "+this.title+" ]"}renderLine(D){let $=this.columnWidth();return D[0]+$.map((J)=>D[1].repeat(J)).join(D[2])+D[3]}renderCell(D,$,J=!1){let X=this.cast(D),Y=J?BE("bold",X):X,Q=$-X.length,U=this.theme.row[1];switch(typeof D){case"number":return U.repeat(Q)+Y;case"string":return Y+U.repeat(Q);case"boolean":case"object":return U.repeat(Math.ceil(Q/2))+BE("italic",X)+U.repeat(Math.floor(Q/2));default:return U.repeat(Q)}}renderRow(D,$=!1){let J=this.theme.row,X=this.columnWidth();return J[0]+D.map((Y,Q)=>this.renderCell(Y,X[Q],$)).join(J[2])+J[3]}toString(){let D=this.theme,$=this.headers.length>0,J=this.rows.length>0;return[this.title?this.renderTitle():"",$||J?this.renderLine(D.top):"",$?this.renderRow(this.headers,!0):"",$&&J?this.renderLine(D.div):"",...this.rows.map((X)=>this.renderRow(X)),$||J?this.renderLine(D.bot):""].filter((X)=>X.length>0).join(`
`)}}});var NE=S(()=>{OE()});async function VE(D){try{let J=`https://registry.npmjs.org/${encodeURIComponent(D.toLowerCase())}`,X=await fetch(J,{headers:{accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"}});if(!X.ok)return null;return(await X.json())["dist-tags"]?.latest||null}catch{return null}}async function Pe(){let D=await VE("@capgo/cli")??"",$=D?.split(".")[0]??"";return{currentVersion:o$.version,latestVersion:D,isOutdated:!!D&&D!==o$.version,majorVersion:$}}async function wE(D={warn:($)=>lD.warning($)}){let{isOutdated:$,currentVersion:J,latestVersion:X,majorVersion:Y}=await Pe();if($)D.warn(`\uD83D\uDEA8 You are using @capgo/cli@${J} it's not the latest version.
Please use @capgo/cli@${X}" or @capgo/cli@${Y} to keep up to date with the latest features and bug fixes.`)}var jE=S(()=>{$1();I8()});function RE(D,$,J=new Date,X=300000){return{appId:D,devicesId:$?[$]:void 0,order:[{key:"created_at",sortable:"desc"}],rangeStart:new Date(J.getTime()-X).toISOString()}}function ME(D,$=!1){if($)return!1;let J=D.replace(/\r|\n/g,"");return J==="c"||J==="C"}var LE=5000,JK="Press C to continue if you already verified the update in the Capgo dashboard";var fe={};y0(fe,{waitLog:()=>EE,sendCliEvent:()=>X2,getStats:()=>vE,debugApp:()=>xe,cancelCommand:()=>AE});import be from"node:process";function Se(D,$){return new Promise((J)=>{if($?.aborted){J();return}let X=()=>{clearTimeout(Y),J()},Y=setTimeout(()=>{$?.removeEventListener("abort",X),J()},D);$?.addEventListener("abort",X,{once:!0})})}function Ce(D){return new Date(D||"").toLocaleTimeString()}function ke(D,$){let J=D,X=J?.cause?.name,Y=J?.cause?.code||J?.code,Q=(J?.message||"").toLowerCase();if(Y==="UND_ERR_CONNECT_TIMEOUT"||X==="UND_ERR_CONNECT_TIMEOUT"||/connect timeout/.test(Q)||/timed out/.test(Q))return`Cannot reach ${$} (connection timeout after 10s). Check VPN/firewall/network rules or update API host settings in capacitor.config.json.`;if(Y==="ENOTFOUND"||Y==="ECONNREFUSED"||Q.includes("fetch failed"))return`Cannot reach ${$} (network error). Verify internet connectivity and that ${$} is reachable from this machine.`;if(Q.startsWith("http error! status: "))return J?.message||"Capgo API returned an HTTP error.";return m0(D)}async function X2(D,$,J,X,Y,Q){await Y2(J,{channel:D,event:X,org_id:$,tracking_version:2,...Y||Q?{tags:{...Y?{"app-id":Y}:{},...Q}}:{}})}async function AE(D,$,J,X){if(!n1($))return;throw await X2(D,J,X,"canceled"),lD.warn("Command cancelled"),new xD("Command cancelled")}async function vE(D,$,J,X){let Q=`${(await B4()).hostApi}/private/stats`;try{let U=J?{...$,rangeStart:J}:{...$},F=await fetch(Q,{method:"POST",headers:G6({"Content-Type":"application/json",capgkey:D}),body:JSON.stringify(U),signal:X});if(!F.ok)throw Error(`HTTP error! status: ${F.status}`);let W=await F.json();if(W?.length>0)return W}catch(U){if(X?.aborted||U instanceof Error&&U.name==="AbortError")return[];lD.error(`Cannot get stats: ${ke(U,Q)}`)}return[]}function _e(D){let $={get:{summary:()=>"Update request by device. Waiting for download…",level:"info",trackingEvent:"done"},delete:{summary:()=>"Bundle deleted on device",level:"info"},set:{summary:()=>"Bundle set on device ❤️",level:"info",trackingEvent:"set",stop:!0},NoChannelOrOverride:{summary:()=>"No default channel/override; create it in channel settings",level:"error"},needPlanUpgrade:{summary:({baseUrl:J})=>`Out of quota. Upgrade plan: ${J}/settings/organization/plans`,level:"error"},missingBundle:{summary:()=>"Requested bundle not found on server",level:"error"},noNew:{summary:()=>"Device already has latest available version",level:"info"},disablePlatformIos:{summary:()=>"iOS platform disabled in channel",level:"error"},disablePlatformAndroid:{summary:()=>"Android platform disabled in channel",level:"error"},disableAutoUpdate:{summary:()=>"Automatic updates disabled in channel",level:"error"},disableAutoUpdateToMajor:{summary:()=>"Auto-update to major versions disabled",level:"error"},disableAutoUpdateToMinor:{summary:()=>"Auto-update to minor versions disabled",level:"error"},disableAutoUpdateToPatch:{summary:()=>"Auto-update to patch versions disabled",level:"error"},disableAutoUpdateUnderNative:{summary:()=>"Channel update version is lower than device native",level:"error"},disableDevBuild:{summary:()=>"Dev build updates disabled in channel",level:"error"},disableProdBuild:{summary:()=>"Prod build updates disabled in channel",level:"error"},disableEmulator:{summary:()=>"Emulator updates disabled in channel",level:"error"},disableDevice:{summary:()=>"Physical device updates disabled in channel",level:"error"},cannotGetBundle:{summary:()=>"Cannot retrieve bundle from channel",level:"error"},cannotUpdateViaPrivateChannel:{summary:()=>"No access to private channel",level:"error"},channelMisconfigured:{summary:()=>"Channel configuration invalid or incomplete",level:"error"},disableAutoUpdateMetadata:{summary:()=>"Auto-update on metadata disabled",level:"error"},set_fail:{summary:()=>"Bundle set failed. Possibly corrupted",level:"error"},reset:{summary:()=>"Device reset to builtin bundle",level:"warn"},update_fail:{summary:()=>"Installed bundle failed to call notifyAppReady",level:"error"},checksum_fail:{summary:()=>"Downloaded bundle checksum validation failed",level:"error"},windows_path_fail:{summary:()=>"Bundle contains illegal Windows-style paths",level:"error"},canonical_path_fail:{summary:()=>"Bundle contains non-canonical paths",level:"error"},directory_path_fail:{summary:()=>"Bundle ZIP contains invalid directory paths",level:"error"},unzip_fail:{summary:()=>"Failed to unzip bundle on device",level:"error"},low_mem_fail:{summary:()=>"Download failed due to low device memory",level:"error"},app_moved_to_background:{summary:()=>"App moved to background",level:"info"},app_moved_to_foreground:{summary:()=>"App moved to foreground",level:"info"},decrypt_fail:{summary:()=>"Failed to decrypt downloaded bundle",level:"error"},getChannel:{summary:()=>"Queried current channel on device",level:"info"},setChannel:{summary:()=>"Channel set on device",level:"info"},InvalidIp:{summary:()=>"Device appears in Google datacenter; blocking recent updates (<4h)",level:"warn"},uninstall:{summary:()=>"App uninstalled or Capgo data cleared on device",level:"warn"}};if(D.action.startsWith("download_")){let J=D.action.split("_")[1];if(J==="complete")return{summary:()=>"Download complete; relaunch app to apply",level:"info",trackingEvent:"downloaded"};if(J==="fail")return{summary:()=>"Download failed on device",level:"error"};return{summary:()=>`Downloading ${J}%`,level:"info"}}return $[D.action]||null}async function ue(D,$,J,X,Y,Q){let U=_e(D);if(!U)return{};if(U.trackingEvent)await X2($,J,X,U.trackingEvent);let F=Ce(D.created_at),W=D.action,K=D.version_id?`(version #${D.version_id})`:"",q=D.version?` (version ${D.version})`:K,G=`${U.summary({data:D,baseAppUrl:Y,baseUrl:Q})}${q}`;return{row:[F,D.device_id,W,G],stop:U.stop}}function ge(D){return new Promise(($)=>{let J=be.stdin,X=Boolean(J.isTTY&&typeof J.setRawMode==="function"),Y=X?J.isRaw:void 0,Q=J.readableFlowing===!0,U=()=>{W(),$()},F=(K)=>{let q=String(K);if(q==="\x03"||ME(q))U()},W=()=>{if(J.off("data",F),D.removeEventListener("abort",U),X&&Y!==void 0)J.setRawMode(Y);if(!Q)J.pause()};if(D.addEventListener("abort",U,{once:!0}),X)J.setRawMode(!0),J.resume();if(J.isTTY)J.on("data",F)})}async function EE(D,$,J,X,Y={}){let Q=await B4(),U=`${Q.hostWeb}/app/${J}`;await X2(D,X,$,"Use waitlog",J);let F=RE(J,Y.deviceId,Y.now,Y.lookbackMs),W=null,K=new Set,q=Y.spinner??V8(),G=Y.logInfo??((j)=>{lD.info(j)}),Z=Y.sleep??Se,H=Y.pollMs??LE,z=`${Q.host}/docs/plugins/updater/debugging/#sent-from-the-backend`,I=`Waiting for logs (expect ~30s delay). ${JK}. More info: ${z}`;q.start(I);let B=new AbortController,N=Y.waitForSkip?Y.waitForSkip(B.signal):ge(B.signal),O=(async()=>{let j=!0;while(!B.signal.aborted){if(!j)await Z(H,B.signal);if(j=!1,B.signal.aborted)return"aborted";let v=await vE($,F,W,B.signal);if(B.signal.aborted)return"aborted";if(v.length===0)continue;let A=v.reduce((y,E)=>{let d=new Date(E.created_at).getTime();return Math.max(y,d)},W?new Date(W).getTime():0);if(A>0)W=new Date(A).toISOString();let C=v.filter((y)=>{let E=`${y.app_id}|${y.device_id}|${y.action}|${y.version_id}|${y.created_at}`;if(K.has(E))return!1;return K.add(E),!0}).sort((y,E)=>new Date(y.created_at).getTime()-new Date(E.created_at).getTime()),u=new T5;u.headers=["Time","Device","Key","Message"],u.theme=T5.roundTheme,u.rows=[];let _=!1;for(let y of C){let{row:E,stop:d}=await ue(y,D,X,$,U,Q.hostWeb);if(E)u.rows.push(E);if(d)_=!0}if(B.signal.aborted)return"aborted";if(u.rows.length){if(q.stop(""),G(u.toString()),!_)q.start(I)}if(_)return"set"}return"aborted"})();try{let j=await Promise.race([O,N.then(()=>"skip")]);if(B.abort(),await O,j==="skip")return q.stop("Skipped waiting for logs"),G("You can confirm the update in the Capgo dashboard anytime."),{skipped:!0};return q.stop("Stop watching logs"),{skipped:!1}}catch(j){throw B.abort(),await O.catch(()=>{return}),q.stop("Stop watching logs"),j}}async function xe(D,$){h3("Debug Live update in Capgo"),await wE(),$.apikey=$.apikey||PE();let J=await XK();D=SE(D,J?.config);let X=$.device;if(!$.apikey)throw lD.error("Missing API key, you need to provide an API key to delete your app"),Error("Missing API key");if(!D)throw lD.error("Missing argument, you need to provide a appId, or be in a capacitor project"),new xD("Missing appId");let Y=await bE($.apikey,D,{supaHost:$.supaHost,supaAnon:$.supaAnon}),Q=await N8({message:"Automatic check if update working in device ?"});if(await AE("debug",Q,Y,$.apikey),Q)lD.info(`Wait logs sent to Capgo from ${D} device, Please background your app and open it again \uD83D\uDCAA`),lD.info(JK),await EE("debug",$.apikey,D,Y,{deviceId:X}),g9("Done ✅");else g9("Canceled ❌")}var TE=S(()=>{$1();NE();S3();jE();p1();YK()});import{AsyncLocalStorage as ye}from"node:async_hooks";function EjD(){return QK.getStore()??CE}function kE(){let D=QK.getStore();return D===CE?void 0:D}function TjD(D,$){if(!D)return $();return QK.run(D,$)}var CE,QK;var _E=S(()=>{$1();CE={info:(D)=>lD.info(D),warn:(D)=>lD.warn(D),error:(D)=>lD.error(D),success:(D)=>lD.success(D),intro:h3,outro:g9,spinner:V8},QK=new ye});var gE=k((bjD,uE)=>{var Q2=1000,U2=Q2*60,F2=U2*60,O4=F2*24,he=O4*7,me=O4*365.25;uE.exports=function(D,$){$=$||{};var J=typeof D;if(J==="string"&&D.length>0)return le(D);else if(J==="number"&&isFinite(D))return $.long?ie(D):de(D);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(D))};function le(D){if(D=String(D),D.length>100)return;var $=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(D);if(!$)return;var J=parseFloat($[1]),X=($[2]||"ms").toLowerCase();switch(X){case"years":case"year":case"yrs":case"yr":case"y":return J*me;case"weeks":case"week":case"w":return J*he;case"days":case"day":case"d":return J*O4;case"hours":case"hour":case"hrs":case"hr":case"h":return J*F2;case"minutes":case"minute":case"mins":case"min":case"m":return J*U2;case"seconds":case"second":case"secs":case"sec":case"s":return J*Q2;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return J;default:return}}function de(D){var $=Math.abs(D);if($>=O4)return Math.round(D/O4)+"d";if($>=F2)return Math.round(D/F2)+"h";if($>=U2)return Math.round(D/U2)+"m";if($>=Q2)return Math.round(D/Q2)+"s";return D+"ms"}function ie(D){var $=Math.abs(D);if($>=O4)return $X(D,$,O4,"day");if($>=F2)return $X(D,$,F2,"hour");if($>=U2)return $X(D,$,U2,"minute");if($>=Q2)return $X(D,$,Q2,"second");return D+" ms"}function $X(D,$,J,X){var Y=$>=J*1.5;return Math.round(D/J)+" "+X+(Y?"s":"")}});var UK=k((SjD,xE)=>{function ce(D){J.debug=J,J.default=J,J.coerce=W,J.disable=U,J.enable=Y,J.enabled=F,J.humanize=gE(),J.destroy=K,Object.keys(D).forEach((q)=>{J[q]=D[q]}),J.names=[],J.skips=[],J.formatters={};function $(q){let G=0;for(let Z=0;Z<q.length;Z++)G=(G<<5)-G+q.charCodeAt(Z),G|=0;return J.colors[Math.abs(G)%J.colors.length]}J.selectColor=$;function J(q){let G,Z=null,H,z;function I(...B){if(!I.enabled)return;let N=I,V=Number(new Date),O=V-(G||V);if(N.diff=O,N.prev=G,N.curr=V,G=V,B[0]=J.coerce(B[0]),typeof B[0]!=="string")B.unshift("%O");let j=0;B[0]=B[0].replace(/%([a-zA-Z%])/g,(A,C)=>{if(A==="%%")return"%";j++;let u=J.formatters[C];if(typeof u==="function"){let _=B[j];A=u.call(N,_),B.splice(j,1),j--}return A}),J.formatArgs.call(N,B),(N.log||J.log).apply(N,B)}if(I.namespace=q,I.useColors=J.useColors(),I.color=J.selectColor(q),I.extend=X,I.destroy=J.destroy,Object.defineProperty(I,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(Z!==null)return Z;if(H!==J.namespaces)H=J.namespaces,z=J.enabled(q);return z},set:(B)=>{Z=B}}),typeof J.init==="function")J.init(I);return I}function X(q,G){let Z=J(this.namespace+(typeof G>"u"?":":G)+q);return Z.log=this.log,Z}function Y(q){J.save(q),J.namespaces=q,J.names=[],J.skips=[];let G=(typeof q==="string"?q:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let Z of G)if(Z[0]==="-")J.skips.push(Z.slice(1));else J.names.push(Z)}function Q(q,G){let Z=0,H=0,z=-1,I=0;while(Z<q.length)if(H<G.length&&(G[H]===q[Z]||G[H]==="*"))if(G[H]==="*")z=H,I=Z,H++;else Z++,H++;else if(z!==-1)H=z+1,I++,Z=I;else return!1;while(H<G.length&&G[H]==="*")H++;return H===G.length}function U(){let q=[...J.names,...J.skips.map((G)=>"-"+G)].join(",");return J.enable(""),q}function F(q){for(let G of J.skips)if(Q(q,G))return!1;for(let G of J.names)if(Q(q,G))return!0;return!1}function W(q){if(q instanceof Error)return q.stack||q.message;return q}function K(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return J.enable(J.load()),J}xE.exports=ce});var yE=k((fE,JX)=>{fE.formatArgs=ne;fE.save=re;fE.load=te;fE.useColors=pe;fE.storage=oe();fE.destroy=(()=>{let D=!1;return()=>{if(!D)D=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}})();fE.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function pe(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let D;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(D=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(D[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function ne(D){if(D[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+D[0]+(this.useColors?"%c ":" ")+"+"+JX.exports.humanize(this.diff),!this.useColors)return;let $="color: "+this.color;D.splice(1,0,$,"color: inherit");let J=0,X=0;D[0].replace(/%[a-zA-Z%]/g,(Y)=>{if(Y==="%%")return;if(J++,Y==="%c")X=J}),D.splice(X,0,$)}fE.log=console.debug||console.log||(()=>{});function re(D){try{if(D)fE.storage.setItem("debug",D);else fE.storage.removeItem("debug")}catch($){}}function te(){let D;try{D=fE.storage.getItem("debug")||fE.storage.getItem("DEBUG")}catch($){}if(!D&&typeof process<"u"&&"env"in process)D=process.env.DEBUG;return D}function oe(){try{return localStorage}catch(D){}}JX.exports=UK()(fE);var{formatters:ae}=JX.exports;ae.j=function(D){try{return JSON.stringify(D)}catch($){return"[UnexpectedJSONParseError]: "+$.message}}});var mE=k((kjD,hE)=>{hE.exports=(D,$=process.argv)=>{let J=D.startsWith("-")?"":D.length===1?"-":"--",X=$.indexOf(J+D),Y=$.indexOf("--");return X!==-1&&(Y===-1||X<Y)}});var iE=k((_jD,dE)=>{var QDD=XD("os"),lE=XD("tty"),d$=mE(),{env:M0}=process,G1;if(d$("no-color")||d$("no-colors")||d$("color=false")||d$("color=never"))G1=0;else if(d$("color")||d$("colors")||d$("color=true")||d$("color=always"))G1=1;if("FORCE_COLOR"in M0)if(M0.FORCE_COLOR==="true")G1=1;else if(M0.FORCE_COLOR==="false")G1=0;else G1=M0.FORCE_COLOR.length===0?1:Math.min(parseInt(M0.FORCE_COLOR,10),3);function FK(D){if(D===0)return!1;return{level:D,hasBasic:!0,has256:D>=2,has16m:D>=3}}function WK(D,$){if(G1===0)return 0;if(d$("color=16m")||d$("color=full")||d$("color=truecolor"))return 3;if(d$("color=256"))return 2;if(D&&!$&&G1===void 0)return 0;let J=G1||0;if(M0.TERM==="dumb")return J;if(process.platform==="win32"){let X=QDD.release().split(".");if(Number(X[0])>=10&&Number(X[2])>=10586)return Number(X[2])>=14931?3:2;return 1}if("CI"in M0){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((X)=>(X in M0))||M0.CI_NAME==="codeship")return 1;return J}if("TEAMCITY_VERSION"in M0)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(M0.TEAMCITY_VERSION)?1:0;if(M0.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in M0){let X=parseInt((M0.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(M0.TERM_PROGRAM){case"iTerm.app":return X>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(M0.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(M0.TERM))return 1;if("COLORTERM"in M0)return 1;return J}function UDD(D){let $=WK(D,D&&D.isTTY);return FK($)}dE.exports={supportsColor:UDD,stdout:FK(WK(!0,lE.isatty(1))),stderr:FK(WK(!0,lE.isatty(2)))}});var rE=k((pE,YX)=>{var FDD=XD("tty"),XX=XD("util");pE.init=HDD;pE.log=GDD;pE.formatArgs=KDD;pE.save=ZDD;pE.load=zDD;pE.useColors=WDD;pE.destroy=XX.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");pE.colors=[6,2,3,4,5,1];try{let D=iE();if(D&&(D.stderr||D).level>=2)pE.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}catch(D){}pE.inspectOpts=Object.keys(process.env).filter((D)=>{return/^debug_/i.test(D)}).reduce((D,$)=>{let J=$.substring(6).toLowerCase().replace(/_([a-z])/g,(Y,Q)=>{return Q.toUpperCase()}),X=process.env[$];if(/^(yes|on|true|enabled)$/i.test(X))X=!0;else if(/^(no|off|false|disabled)$/i.test(X))X=!1;else if(X==="null")X=null;else X=Number(X);return D[J]=X,D},{});function WDD(){return"colors"in pE.inspectOpts?Boolean(pE.inspectOpts.colors):FDD.isatty(process.stderr.fd)}function KDD(D){let{namespace:$,useColors:J}=this;if(J){let X=this.color,Y="\x1B[3"+(X<8?X:"8;5;"+X),Q=` ${Y};1m${$} \x1B[0m`;D[0]=Q+D[0].split(`
`).join(`
`+Q),D.push(Y+"m+"+YX.exports.humanize(this.diff)+"\x1B[0m")}else D[0]=qDD()+$+" "+D[0]}function qDD(){if(pE.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function GDD(...D){return process.stderr.write(XX.formatWithOptions(pE.inspectOpts,...D)+`
`)}function ZDD(D){if(D)process.env.DEBUG=D;else delete process.env.DEBUG}function zDD(){return process.env.DEBUG}function HDD(D){D.inspectOpts={};let $=Object.keys(pE.inspectOpts);for(let J=0;J<$.length;J++)D.inspectOpts[$[J]]=pE.inspectOpts[$[J]]}YX.exports=UK()(pE);var{formatters:cE}=YX.exports;cE.o=function(D){return this.inspectOpts.colors=this.useColors,XX.inspect(D,this.inspectOpts).split(`
`).map(($)=>$.trim()).join(" ")};cE.O=function(D){return this.inspectOpts.colors=this.useColors,XX.inspect(D,this.inspectOpts)}});var qK=k((gjD,KK)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)KK.exports=yE();else KK.exports=rE()});var A0=k((LDD)=>{LDD.fromCallback=function(D){return Object.defineProperty(function(...$){if(typeof $[$.length-1]==="function")D.apply(this,$);else return new Promise((J,X)=>{$.push((Y,Q)=>Y!=null?X(Y):J(Q)),D.apply(this,$)})},"name",{value:D.name})};LDD.fromPromise=function(D){return Object.defineProperty(function(...$){let J=$[$.length-1];if(typeof J!=="function")return D.apply(this,$);else $.pop(),D.apply(this,$).then((X)=>J(null,X),J)},"name",{value:D.name})}});var s0=k((GK)=>{var tE=A0().fromCallback,a0=F1(),ADD=["access","appendFile","chmod","chown","close","copyFile","cp","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","glob","lchmod","lchown","lutimes","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","statfs","symlink","truncate","unlink","utimes","writeFile"].filter((D)=>{return typeof a0[D]==="function"});Object.assign(GK,a0);ADD.forEach((D)=>{GK[D]=tE(a0[D])});GK.exists=function(D,$){if(typeof $==="function")return a0.exists(D,$);return new Promise((J)=>{return a0.exists(D,J)})};GK.read=function(D,$,J,X,Y,Q){if(typeof Q==="function")return a0.read(D,$,J,X,Y,Q);return new Promise((U,F)=>{a0.read(D,$,J,X,Y,(W,K,q)=>{if(W)return F(W);U({bytesRead:K,buffer:q})})})};GK.write=function(D,$,...J){if(typeof J[J.length-1]==="function")return a0.write(D,$,...J);return new Promise((X,Y)=>{a0.write(D,$,...J,(Q,U,F)=>{if(Q)return Y(Q);X({bytesWritten:U,buffer:F})})})};GK.readv=function(D,$,...J){if(typeof J[J.length-1]==="function")return a0.readv(D,$,...J);return new Promise((X,Y)=>{a0.readv(D,$,...J,(Q,U,F)=>{if(Q)return Y(Q);X({bytesRead:U,buffers:F})})})};GK.writev=function(D,$,...J){if(typeof J[J.length-1]==="function")return a0.writev(D,$,...J);return new Promise((X,Y)=>{a0.writev(D,$,...J,(Q,U,F)=>{if(Q)return Y(Q);X({bytesWritten:U,buffers:F})})})};if(typeof a0.realpath.native==="function")GK.realpath.native=tE(a0.realpath.native);else process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var aE=k((CDD,oE)=>{var SDD=XD("path");CDD.checkPath=function($){if(process.platform==="win32"){if(/[<>:"|?*]/.test($.replace(SDD.parse($).root,""))){let X=Error(`Path contains invalid characters: ${$}`);throw X.code="EINVAL",X}}}});var $T=k((_DD,ZK)=>{var sE=s0(),{checkPath:eE}=aE(),DT=(D)=>{let $={mode:511};if(typeof D==="number")return D;return{...$,...D}.mode};_DD.makeDir=async(D,$)=>{return eE(D),sE.mkdir(D,{mode:DT($),recursive:!0})};_DD.makeDirSync=(D,$)=>{return eE(D),sE.mkdirSync(D,{mode:DT($),recursive:!0})}});var $6=k((hjD,JT)=>{var xDD=A0().fromPromise,{makeDir:fDD,makeDirSync:zK}=$T(),HK=xDD(fDD);JT.exports={mkdirs:HK,mkdirsSync:zK,mkdirp:HK,mkdirpSync:zK,ensureDir:HK,ensureDirSync:zK}});var Z1=k((mjD,YT)=>{var yDD=A0().fromPromise,XT=s0();function hDD(D){return XT.access(D).then(()=>!0).catch(()=>!1)}YT.exports={pathExists:yDD(hDD),pathExistsSync:XT.existsSync}});var IK=k((ljD,QT)=>{var W2=s0(),mDD=A0().fromPromise;async function lDD(D,$,J){let X=await W2.open(D,"r+"),Y=null;try{await W2.futimes(X,$,J)}catch(Q){Y=Q}finally{try{await W2.close(X)}catch(Q){if(!Y)Y=Q}}if(Y)throw Y}function dDD(D,$,J){let X=W2.openSync(D,"r+"),Y=null;try{W2.futimesSync(X,$,J)}catch(Q){Y=Q}finally{try{W2.closeSync(X)}catch(Q){if(!Y)Y=Q}}if(Y)throw Y}QT.exports={utimesMillis:mDD(lDD),utimesMillisSync:dDD}});var V4=k((djD,KT)=>{var K2=s0(),v0=XD("path"),UT=A0().fromPromise;function iDD(D,$,J){let X=J.dereference?(Y)=>K2.stat(Y,{bigint:!0}):(Y)=>K2.lstat(Y,{bigint:!0});return Promise.all([X(D),X($).catch((Y)=>{if(Y.code==="ENOENT")return null;throw Y})]).then(([Y,Q])=>({srcStat:Y,destStat:Q}))}function cDD(D,$,J){let X,Y=J.dereference?(U)=>K2.statSync(U,{bigint:!0}):(U)=>K2.lstatSync(U,{bigint:!0}),Q=Y(D);try{X=Y($)}catch(U){if(U.code==="ENOENT")return{srcStat:Q,destStat:null};throw U}return{srcStat:Q,destStat:X}}async function pDD(D,$,J,X){let{srcStat:Y,destStat:Q}=await iDD(D,$,X);if(Q){if(b5(Y,Q)){let U=v0.basename(D),F=v0.basename($);if(J==="move"&&U!==F&&U.toLowerCase()===F.toLowerCase())return{srcStat:Y,destStat:Q,isChangingCase:!0};throw Error("Source and destination must not be the same.")}if(Y.isDirectory()&&!Q.isDirectory())throw Error(`Cannot overwrite non-directory '${$}' with directory '${D}'.`);if(!Y.isDirectory()&&Q.isDirectory())throw Error(`Cannot overwrite directory '${$}' with non-directory '${D}'.`)}if(Y.isDirectory()&&BK(D,$))throw Error(QX(D,$,J));return{srcStat:Y,destStat:Q}}function nDD(D,$,J,X){let{srcStat:Y,destStat:Q}=cDD(D,$,X);if(Q){if(b5(Y,Q)){let U=v0.basename(D),F=v0.basename($);if(J==="move"&&U!==F&&U.toLowerCase()===F.toLowerCase())return{srcStat:Y,destStat:Q,isChangingCase:!0};throw Error("Source and destination must not be the same.")}if(Y.isDirectory()&&!Q.isDirectory())throw Error(`Cannot overwrite non-directory '${$}' with directory '${D}'.`);if(!Y.isDirectory()&&Q.isDirectory())throw Error(`Cannot overwrite directory '${$}' with non-directory '${D}'.`)}if(Y.isDirectory()&&BK(D,$))throw Error(QX(D,$,J));return{srcStat:Y,destStat:Q}}async function FT(D,$,J,X){let Y=v0.resolve(v0.dirname(D)),Q=v0.resolve(v0.dirname(J));if(Q===Y||Q===v0.parse(Q).root)return;let U;try{U=await K2.stat(Q,{bigint:!0})}catch(F){if(F.code==="ENOENT")return;throw F}if(b5($,U))throw Error(QX(D,J,X));return FT(D,$,Q,X)}function WT(D,$,J,X){let Y=v0.resolve(v0.dirname(D)),Q=v0.resolve(v0.dirname(J));if(Q===Y||Q===v0.parse(Q).root)return;let U;try{U=K2.statSync(Q,{bigint:!0})}catch(F){if(F.code==="ENOENT")return;throw F}if(b5($,U))throw Error(QX(D,J,X));return WT(D,$,Q,X)}function b5(D,$){return $.ino!==void 0&&$.dev!==void 0&&$.ino===D.ino&&$.dev===D.dev}function BK(D,$){let J=v0.resolve(D).split(v0.sep).filter((Y)=>Y),X=v0.resolve($).split(v0.sep).filter((Y)=>Y);return J.every((Y,Q)=>X[Q]===Y)}function QX(D,$,J){return`Cannot ${J} '${D}' to a subdirectory of itself, '${$}'.`}KT.exports={checkPaths:UT(pDD),checkPathsSync:nDD,checkParentPaths:UT(FT),checkParentPathsSync:WT,isSrcSubdir:BK,areIdentical:b5}});var GT=k((ijD,qT)=>{async function rDD(D,$){let J=[];for await(let X of D)J.push($(X).then(()=>null,(Y)=>Y??Error("unknown error")));await Promise.all(J.map((X)=>X.then((Y)=>{if(Y!==null)throw Y})))}qT.exports={asyncIteratorConcurrentProcess:rDD}});var BT=k((cjD,IT)=>{var l0=s0(),S5=XD("path"),{mkdirs:tDD}=$6(),{pathExists:oDD}=Z1(),{utimesMillis:aDD}=IK(),C5=V4(),{asyncIteratorConcurrentProcess:sDD}=GT();async function eDD(D,$,J={}){if(typeof J==="function")J={filter:J};if(J.clobber="clobber"in J?!!J.clobber:!0,J.overwrite="overwrite"in J?!!J.overwrite:J.clobber,J.preserveTimestamps&&process.arch==="ia32")process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001");let{srcStat:X,destStat:Y}=await C5.checkPaths(D,$,"copy",J);if(await C5.checkParentPaths(D,X,$,"copy"),!await zT(D,$,J))return;let U=S5.dirname($);if(!await oDD(U))await tDD(U);await HT(Y,D,$,J)}async function zT(D,$,J){if(!J.filter)return!0;return J.filter(D,$)}async function HT(D,$,J,X){let Q=await(X.dereference?l0.stat:l0.lstat)($);if(Q.isDirectory())return X0D(Q,D,$,J,X);if(Q.isFile()||Q.isCharacterDevice()||Q.isBlockDevice())return D0D(Q,D,$,J,X);if(Q.isSymbolicLink())return Y0D(D,$,J,X);if(Q.isSocket())throw Error(`Cannot copy a socket file: ${$}`);if(Q.isFIFO())throw Error(`Cannot copy a FIFO pipe: ${$}`);throw Error(`Unknown file: ${$}`)}async function D0D(D,$,J,X,Y){if(!$)return ZT(D,J,X,Y);if(Y.overwrite)return await l0.unlink(X),ZT(D,J,X,Y);if(Y.errorOnExist)throw Error(`'${X}' already exists`)}async function ZT(D,$,J,X){if(await l0.copyFile($,J),X.preserveTimestamps){if($0D(D.mode))await J0D(J,D.mode);let Y=await l0.stat($);await aDD(J,Y.atime,Y.mtime)}return l0.chmod(J,D.mode)}function $0D(D){return(D&128)===0}function J0D(D,$){return l0.chmod(D,$|128)}async function X0D(D,$,J,X,Y){if(!$)await l0.mkdir(X);if(await sDD(await l0.opendir(J),async(Q)=>{let U=S5.join(J,Q.name),F=S5.join(X,Q.name);if(await zT(U,F,Y)){let{destStat:K}=await C5.checkPaths(U,F,"copy",Y);await HT(K,U,F,Y)}}),!$)await l0.chmod(X,D.mode)}async function Y0D(D,$,J,X){let Y=await l0.readlink($);if(X.dereference)Y=S5.resolve(process.cwd(),Y);if(!D)return l0.symlink(Y,J);let Q=null;try{Q=await l0.readlink(J)}catch(U){if(U.code==="EINVAL"||U.code==="UNKNOWN")return l0.symlink(Y,J);throw U}if(X.dereference)Q=S5.resolve(process.cwd(),Q);if(Y!==Q){if(C5.isSrcSubdir(Y,Q))throw Error(`Cannot copy '${Y}' to a subdirectory of itself, '${Q}'.`);if(C5.isSrcSubdir(Q,Y))throw Error(`Cannot overwrite '${Q}' with '${Y}'.`)}return await l0.unlink(J),l0.symlink(Y,J)}IT.exports=eDD});var jT=k((pjD,wT)=>{var e0=F1(),k5=XD("path"),Q0D=$6().mkdirsSync,U0D=IK().utimesMillisSync,_5=V4();function F0D(D,$,J){if(typeof J==="function")J={filter:J};if(J=J||{},J.clobber="clobber"in J?!!J.clobber:!0,J.overwrite="overwrite"in J?!!J.overwrite:J.clobber,J.preserveTimestamps&&process.arch==="ia32")process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:X,destStat:Y}=_5.checkPathsSync(D,$,"copy",J);if(_5.checkParentPathsSync(D,X,$,"copy"),J.filter&&!J.filter(D,$))return;let Q=k5.dirname($);if(!e0.existsSync(Q))Q0D(Q);return OT(Y,D,$,J)}function OT(D,$,J,X){let Q=(X.dereference?e0.statSync:e0.lstatSync)($);if(Q.isDirectory())return H0D(Q,D,$,J,X);else if(Q.isFile()||Q.isCharacterDevice()||Q.isBlockDevice())return W0D(Q,D,$,J,X);else if(Q.isSymbolicLink())return O0D(D,$,J,X);else if(Q.isSocket())throw Error(`Cannot copy a socket file: ${$}`);else if(Q.isFIFO())throw Error(`Cannot copy a FIFO pipe: ${$}`);throw Error(`Unknown file: ${$}`)}function W0D(D,$,J,X,Y){if(!$)return NT(D,J,X,Y);return K0D(D,J,X,Y)}function K0D(D,$,J,X){if(X.overwrite)return e0.unlinkSync(J),NT(D,$,J,X);else if(X.errorOnExist)throw Error(`'${J}' already exists`)}function NT(D,$,J,X){if(e0.copyFileSync($,J),X.preserveTimestamps)q0D(D.mode,$,J);return OK(J,D.mode)}function q0D(D,$,J){if(G0D(D))Z0D(J,D);return z0D($,J)}function G0D(D){return(D&128)===0}function Z0D(D,$){return OK(D,$|128)}function OK(D,$){return e0.chmodSync(D,$)}function z0D(D,$){let J=e0.statSync(D);return U0D($,J.atime,J.mtime)}function H0D(D,$,J,X,Y){if(!$)return I0D(D.mode,J,X,Y);return VT(J,X,Y)}function I0D(D,$,J,X){return e0.mkdirSync(J),VT($,J,X),OK(J,D)}function VT(D,$,J){let X=e0.opendirSync(D);try{let Y;while((Y=X.readSync())!==null)B0D(Y.name,D,$,J)}finally{X.closeSync()}}function B0D(D,$,J,X){let Y=k5.join($,D),Q=k5.join(J,D);if(X.filter&&!X.filter(Y,Q))return;let{destStat:U}=_5.checkPathsSync(Y,Q,"copy",X);return OT(U,Y,Q,X)}function O0D(D,$,J,X){let Y=e0.readlinkSync($);if(X.dereference)Y=k5.resolve(process.cwd(),Y);if(!D)return e0.symlinkSync(Y,J);else{let Q;try{Q=e0.readlinkSync(J)}catch(U){if(U.code==="EINVAL"||U.code==="UNKNOWN")return e0.symlinkSync(Y,J);throw U}if(X.dereference)Q=k5.resolve(process.cwd(),Q);if(Y!==Q){if(_5.isSrcSubdir(Y,Q))throw Error(`Cannot copy '${Y}' to a subdirectory of itself, '${Q}'.`);if(_5.isSrcSubdir(Q,Y))throw Error(`Cannot overwrite '${Q}' with '${Y}'.`)}return N0D(Y,J)}}function N0D(D,$){return e0.unlinkSync($),e0.symlinkSync(D,$)}wT.exports=F0D});var UX=k((njD,LT)=>{var V0D=A0().fromPromise;LT.exports={copy:V0D(BT()),copySync:jT()}});var u5=k((rjD,MT)=>{var RT=F1(),w0D=A0().fromCallback;function j0D(D,$){RT.rm(D,{recursive:!0,force:!0},$)}function L0D(D){RT.rmSync(D,{recursive:!0,force:!0})}MT.exports={remove:w0D(j0D),removeSync:L0D}});var CT=k((tjD,ST)=>{var R0D=A0().fromPromise,ET=s0(),TT=XD("path"),PT=$6(),bT=u5(),AT=R0D(async function($){let J;try{J=await ET.readdir($)}catch{return PT.mkdirs($)}return Promise.all(J.map((X)=>bT.remove(TT.join($,X))))});function vT(D){let $;try{$=ET.readdirSync(D)}catch{return PT.mkdirsSync(D)}$.forEach((J)=>{J=TT.join(D,J),bT.removeSync(J)})}ST.exports={emptyDirSync:vT,emptydirSync:vT,emptyDir:AT,emptydir:AT}});var gT=k((ojD,uT)=>{var M0D=A0().fromPromise,kT=XD("path"),u6=s0(),_T=$6();async function A0D(D){let $;try{$=await u6.stat(D)}catch{}if($&&$.isFile())return;let J=kT.dirname(D),X=null;try{X=await u6.stat(J)}catch(Y){if(Y.code==="ENOENT"){await _T.mkdirs(J),await u6.writeFile(D,"");return}else throw Y}if(X.isDirectory())await u6.writeFile(D,"");else await u6.readdir(J)}function v0D(D){let $;try{$=u6.statSync(D)}catch{}if($&&$.isFile())return;let J=kT.dirname(D);try{if(!u6.statSync(J).isDirectory())u6.readdirSync(J)}catch(X){if(X&&X.code==="ENOENT")_T.mkdirsSync(J);else throw X}u6.writeFileSync(D,"")}uT.exports={createFile:M0D(A0D),createFileSync:v0D}});var mT=k((ajD,hT)=>{var E0D=A0().fromPromise,xT=XD("path"),z1=s0(),fT=$6(),{pathExists:T0D}=Z1(),{areIdentical:yT}=V4();async function P0D(D,$){let J;try{J=await z1.lstat($,{bigint:!0})}catch{}let X;try{X=await z1.lstat(D,{bigint:!0})}catch(U){throw U.message=U.message.replace("lstat","ensureLink"),U}if(J&&yT(X,J))return;let Y=xT.dirname($);if(!await T0D(Y))await fT.mkdirs(Y);await z1.link(D,$)}function b0D(D,$){let J;try{J=z1.lstatSync($,{bigint:!0})}catch{}try{let Q=z1.lstatSync(D,{bigint:!0});if(J&&yT(Q,J))return}catch(Q){throw Q.message=Q.message.replace("lstat","ensureLink"),Q}let X=xT.dirname($);if(z1.existsSync(X))return z1.linkSync(D,$);return fT.mkdirsSync(X),z1.linkSync(D,$)}hT.exports={createLink:E0D(P0D),createLinkSync:b0D}});var dT=k((sjD,lT)=>{var H1=XD("path"),g5=s0(),{pathExists:S0D}=Z1(),C0D=A0().fromPromise;async function k0D(D,$){if(H1.isAbsolute(D)){try{await g5.lstat(D)}catch(Q){throw Q.message=Q.message.replace("lstat","ensureSymlink"),Q}return{toCwd:D,toDst:D}}let J=H1.dirname($),X=H1.join(J,D);if(await S0D(X))return{toCwd:X,toDst:D};try{await g5.lstat(D)}catch(Q){throw Q.message=Q.message.replace("lstat","ensureSymlink"),Q}return{toCwd:D,toDst:H1.relative(J,D)}}function _0D(D,$){if(H1.isAbsolute(D)){if(!g5.existsSync(D))throw Error("absolute srcpath does not exist");return{toCwd:D,toDst:D}}let J=H1.dirname($),X=H1.join(J,D);if(g5.existsSync(X))return{toCwd:X,toDst:D};if(!g5.existsSync(D))throw Error("relative srcpath does not exist");return{toCwd:D,toDst:H1.relative(J,D)}}lT.exports={symlinkPaths:C0D(k0D),symlinkPathsSync:_0D}});var pT=k((ejD,cT)=>{var iT=s0(),u0D=A0().fromPromise;async function g0D(D,$){if($)return $;let J;try{J=await iT.lstat(D)}catch{return"file"}return J&&J.isDirectory()?"dir":"file"}function x0D(D,$){if($)return $;let J;try{J=iT.lstatSync(D)}catch{return"file"}return J&&J.isDirectory()?"dir":"file"}cT.exports={symlinkType:u0D(g0D),symlinkTypeSync:x0D}});var tT=k((DLD,rT)=>{var f0D=A0().fromPromise,I1=XD("path"),H$=s0(),{mkdirs:y0D,mkdirsSync:h0D}=$6(),{symlinkPaths:m0D,symlinkPathsSync:l0D}=dT(),{symlinkType:d0D,symlinkTypeSync:i0D}=pT(),{pathExists:c0D}=Z1(),{areIdentical:nT}=V4();async function p0D(D,$,J){let X;try{X=await H$.lstat($)}catch{}if(X&&X.isSymbolicLink()){let F;if(I1.isAbsolute(D))F=await H$.stat(D,{bigint:!0});else{let K=I1.dirname($),q=I1.join(K,D);try{F=await H$.stat(q,{bigint:!0})}catch{F=await H$.stat(D,{bigint:!0})}}let W=await H$.stat($,{bigint:!0});if(nT(F,W))return}let Y=await m0D(D,$);D=Y.toDst;let Q=await d0D(Y.toCwd,J),U=I1.dirname($);if(!await c0D(U))await y0D(U);return H$.symlink(D,$,Q)}function n0D(D,$,J){let X;try{X=H$.lstatSync($)}catch{}if(X&&X.isSymbolicLink()){let F;if(I1.isAbsolute(D))F=H$.statSync(D,{bigint:!0});else{let K=I1.dirname($),q=I1.join(K,D);try{F=H$.statSync(q,{bigint:!0})}catch{F=H$.statSync(D,{bigint:!0})}}let W=H$.statSync($,{bigint:!0});if(nT(F,W))return}let Y=l0D(D,$);D=Y.toDst,J=i0D(Y.toCwd,J);let Q=I1.dirname($);if(H$.existsSync(Q))return H$.symlinkSync(D,$,J);return h0D(Q),H$.symlinkSync(D,$,J)}rT.exports={createSymlink:f0D(p0D),createSymlinkSync:n0D}});var XP=k(($LD,JP)=>{var{createFile:oT,createFileSync:aT}=gT(),{createLink:sT,createLinkSync:eT}=mT(),{createSymlink:DP,createSymlinkSync:$P}=tT();JP.exports={createFile:oT,createFileSync:aT,ensureFile:oT,ensureFileSync:aT,createLink:sT,createLinkSync:eT,ensureLink:sT,ensureLinkSync:eT,createSymlink:DP,createSymlinkSync:$P,ensureSymlink:DP,ensureSymlinkSync:$P}});var FX=k((JLD,YP)=>{function r0D(D,{EOL:$=`
`,finalEOL:J=!0,replacer:X=null,spaces:Y}={}){let Q=J?$:"",U=JSON.stringify(D,X,Y);if(U===void 0)throw TypeError(`Converting ${typeof D} value to JSON is not supported`);return U.replace(/\n/g,$)+Q}function t0D(D){if(Buffer.isBuffer(D))D=D.toString("utf8");return D.replace(/^\uFEFF/,"")}YP.exports={stringify:r0D,stripBom:t0D}});var WP=k((XLD,FP)=>{var q2;try{q2=F1()}catch(D){q2=XD("fs")}var WX=A0(),{stringify:QP,stripBom:UP}=FX();async function o0D(D,$={}){if(typeof $==="string")$={encoding:$};let J=$.fs||q2,X="throws"in $?$.throws:!0,Y=await WX.fromCallback(J.readFile)(D,$);Y=UP(Y);let Q;try{Q=JSON.parse(Y,$?$.reviver:null)}catch(U){if(X)throw U.message=`${D}: ${U.message}`,U;else return null}return Q}var a0D=WX.fromPromise(o0D);function s0D(D,$={}){if(typeof $==="string")$={encoding:$};let J=$.fs||q2,X="throws"in $?$.throws:!0;try{let Y=J.readFileSync(D,$);return Y=UP(Y),JSON.parse(Y,$.reviver)}catch(Y){if(X)throw Y.message=`${D}: ${Y.message}`,Y;else return null}}async function e0D(D,$,J={}){let X=J.fs||q2,Y=QP($,J);await WX.fromCallback(X.writeFile)(D,Y,J)}var D$D=WX.fromPromise(e0D);function $$D(D,$,J={}){let X=J.fs||q2,Y=QP($,J);return X.writeFileSync(D,Y,J)}FP.exports={readFile:a0D,readFileSync:s0D,writeFile:D$D,writeFileSync:$$D}});var qP=k((YLD,KP)=>{var KX=WP();KP.exports={readJson:KX.readFile,readJsonSync:KX.readFileSync,writeJson:KX.writeFile,writeJsonSync:KX.writeFileSync}});var qX=k((QLD,zP)=>{var J$D=A0().fromPromise,NK=s0(),GP=XD("path"),ZP=$6(),X$D=Z1().pathExists;async function Y$D(D,$,J="utf-8"){let X=GP.dirname(D);if(!await X$D(X))await ZP.mkdirs(X);return NK.writeFile(D,$,J)}function Q$D(D,...$){let J=GP.dirname(D);if(!NK.existsSync(J))ZP.mkdirsSync(J);NK.writeFileSync(D,...$)}zP.exports={outputFile:J$D(Y$D),outputFileSync:Q$D}});var IP=k((ULD,HP)=>{var{stringify:U$D}=FX(),{outputFile:F$D}=qX();async function W$D(D,$,J={}){let X=U$D($,J);await F$D(D,X,J)}HP.exports=W$D});var OP=k((FLD,BP)=>{var{stringify:K$D}=FX(),{outputFileSync:q$D}=qX();function G$D(D,$,J){let X=K$D($,J);q$D(D,X,J)}BP.exports=G$D});var VP=k((WLD,NP)=>{var Z$D=A0().fromPromise,D$=qP();D$.outputJson=Z$D(IP());D$.outputJsonSync=OP();D$.outputJSON=D$.outputJson;D$.outputJSONSync=D$.outputJsonSync;D$.writeJSON=D$.writeJson;D$.writeJSONSync=D$.writeJsonSync;D$.readJSON=D$.readJson;D$.readJSONSync=D$.readJsonSync;NP.exports=D$});var MP=k((KLD,RP)=>{var z$D=s0(),wP=XD("path"),{copy:H$D}=UX(),{remove:LP}=u5(),{mkdirp:I$D}=$6(),{pathExists:B$D}=Z1(),jP=V4();async function O$D(D,$,J={}){let X=J.overwrite||J.clobber||!1,{srcStat:Y,isChangingCase:Q=!1}=await jP.checkPaths(D,$,"move",J);await jP.checkParentPaths(D,Y,$,"move");let U=wP.dirname($);if(wP.parse(U).root!==U)await I$D(U);return N$D(D,$,X,Q)}async function N$D(D,$,J,X){if(!X){if(J)await LP($);else if(await B$D($))throw Error("dest already exists.")}try{await z$D.rename(D,$)}catch(Y){if(Y.code!=="EXDEV")throw Y;await V$D(D,$,J)}}async function V$D(D,$,J){return await H$D(D,$,{overwrite:J,errorOnExist:!0,preserveTimestamps:!0}),LP(D)}RP.exports=O$D});var PP=k((qLD,TP)=>{var vP=F1(),wK=XD("path"),w$D=UX().copySync,EP=u5().removeSync,j$D=$6().mkdirpSync,AP=V4();function L$D(D,$,J){J=J||{};let X=J.overwrite||J.clobber||!1,{srcStat:Y,isChangingCase:Q=!1}=AP.checkPathsSync(D,$,"move",J);if(AP.checkParentPathsSync(D,Y,$,"move"),!R$D($))j$D(wK.dirname($));return M$D(D,$,X,Q)}function R$D(D){let $=wK.dirname(D);return wK.parse($).root===$}function M$D(D,$,J,X){if(X)return VK(D,$,J);if(J)return EP($),VK(D,$,J);if(vP.existsSync($))throw Error("dest already exists.");return VK(D,$,J)}function VK(D,$,J){try{vP.renameSync(D,$)}catch(X){if(X.code!=="EXDEV")throw X;return A$D(D,$,J)}}function A$D(D,$,J){return w$D(D,$,{overwrite:J,errorOnExist:!0,preserveTimestamps:!0}),EP(D)}TP.exports=L$D});var SP=k((GLD,bP)=>{var v$D=A0().fromPromise;bP.exports={move:v$D(MP()),moveSync:PP()}});var G2=k((ZLD,CP)=>{CP.exports={...s0(),...UX(),...CT(),...XP(),...VP(),...$6(),...SP(),...qX(),...Z1(),...u5()}});var yP=k((zLD,fP)=>{var jK,_P,uP,gP,xP=!0;if(typeof process<"u")({FORCE_COLOR:jK,NODE_DISABLE_COLORS:_P,NO_COLOR:uP,TERM:gP}=process.env||{}),xP=process.stdout&&process.stdout.isTTY;var dD={enabled:!_P&&uP==null&&gP!=="dumb"&&(jK!=null&&jK!=="0"||xP),reset:oD(0,0),bold:oD(1,22),dim:oD(2,22),italic:oD(3,23),underline:oD(4,24),inverse:oD(7,27),hidden:oD(8,28),strikethrough:oD(9,29),black:oD(30,39),red:oD(31,39),green:oD(32,39),yellow:oD(33,39),blue:oD(34,39),magenta:oD(35,39),cyan:oD(36,39),white:oD(37,39),gray:oD(90,39),grey:oD(90,39),bgBlack:oD(40,49),bgRed:oD(41,49),bgGreen:oD(42,49),bgYellow:oD(43,49),bgBlue:oD(44,49),bgMagenta:oD(45,49),bgCyan:oD(46,49),bgWhite:oD(47,49)};function kP(D,$){let J=0,X,Y="",Q="";for(;J<D.length;J++)if(X=D[J],Y+=X.open,Q+=X.close,~$.indexOf(X.close))$=$.replace(X.rgx,X.close+X.open);return Y+$+Q}function E$D(D,$){let J={has:D,keys:$};return J.reset=dD.reset.bind(J),J.bold=dD.bold.bind(J),J.dim=dD.dim.bind(J),J.italic=dD.italic.bind(J),J.underline=dD.underline.bind(J),J.inverse=dD.inverse.bind(J),J.hidden=dD.hidden.bind(J),J.strikethrough=dD.strikethrough.bind(J),J.black=dD.black.bind(J),J.red=dD.red.bind(J),J.green=dD.green.bind(J),J.yellow=dD.yellow.bind(J),J.blue=dD.blue.bind(J),J.magenta=dD.magenta.bind(J),J.cyan=dD.cyan.bind(J),J.white=dD.white.bind(J),J.gray=dD.gray.bind(J),J.grey=dD.grey.bind(J),J.bgBlack=dD.bgBlack.bind(J),J.bgRed=dD.bgRed.bind(J),J.bgGreen=dD.bgGreen.bind(J),J.bgYellow=dD.bgYellow.bind(J),J.bgBlue=dD.bgBlue.bind(J),J.bgMagenta=dD.bgMagenta.bind(J),J.bgCyan=dD.bgCyan.bind(J),J.bgWhite=dD.bgWhite.bind(J),J}function oD(D,$){let J={open:`\x1B[${D}m`,close:`\x1B[${$}m`,rgx:new RegExp(`\\x1b\\[${$}m`,"g")};return function(X){if(this!==void 0&&this.has!==void 0)return!!~this.has.indexOf(D)||(this.has.push(D),this.keys.push(J)),X===void 0?this:dD.enabled?kP(this.keys,X+""):X+"";return X===void 0?E$D([D],[J]):dD.enabled?kP([J],X+""):X+""}}fP.exports=dD});var Z2=k((hP)=>{Object.defineProperty(hP,"__esModule",{value:!0});hP.ancillary=hP.failure=hP.success=hP.input=hP.weak=hP.strong=void 0;var T$D=z$(),N6=T$D.__importDefault(yP());hP.strong=N6.default.bold;hP.weak=N6.default.dim;hP.input=N6.default.cyan;hP.success=N6.default.green;hP.failure=N6.default.red;hP.ancillary=N6.default.cyan;var P$D={strong:hP.strong,weak:hP.weak,input:hP.input,success:hP.success,failure:hP.failure,ancillary:hP.ancillary,log:{DEBUG:N6.default.magenta,INFO:N6.default.cyan,WARN:N6.default.yellow,ERROR:N6.default.red}};hP.default=P$D});var RK=k((pP)=>{Object.defineProperty(pP,"__esModule",{value:!0});pP.EscapeCode=void 0;var J6="\x1B[";class S0{}pP.EscapeCode=S0;S0.cursorLeft=()=>`${J6}G`;S0.cursorUp=(D=1)=>`${J6}${D}A`;S0.cursorDown=(D=1)=>`${J6}${D}B`;S0.cursorForward=(D=1)=>`${J6}${D}C`;S0.cursorBackward=(D=1)=>`${J6}${D}D`;S0.cursorHide=()=>`${J6}?25l`;S0.cursorShow=()=>`${J6}?25h`;S0.eraseLine=()=>`${J6}2K`;S0.eraseLines=(D)=>{let $="";for(let J=0;J<D;J++)if($+=S0.eraseLine(),J<D-1)$+=S0.cursorUp();return`${$}${S0.cursorLeft()}`};S0.eraseUp=()=>`${J6}1J`;S0.eraseDown=()=>`${J6}J`;S0.eraseScreen=()=>`${J6}2J`});var aP=k((tP)=>{Object.defineProperty(tP,"__esModule",{value:!0});tP.Cursor=void 0;var S$D=z$(),C$D=S$D.__importDefault(pW()),rP=RK();class C0{static show(){if(C0.stream.isTTY)C0._isVisible=!0,C0.stream.write(rP.EscapeCode.cursorShow())}static hide(){if(C0.stream.isTTY){if(!C0._listenerAttached)(0,C$D.default)(()=>{C0.show()}),C0._listenerAttached=!0;C0._isVisible=!1,C0.stream.write(rP.EscapeCode.cursorHide())}}static toggle(){if(C0._isVisible)C0.hide();else C0.show()}}tP.Cursor=C0;C0.stream=process.stderr;C0._isVisible=!0;C0._listenerAttached=!1});var AK=k((OLD,MK)=>{var sP=(D)=>{if(Number.isNaN(D))return!1;if(D>=4352&&(D<=4447||D===9001||D===9002||11904<=D&&D<=12871&&D!==12351||12880<=D&&D<=19903||19968<=D&&D<=42182||43360<=D&&D<=43388||44032<=D&&D<=55203||63744<=D&&D<=64255||65040<=D&&D<=65049||65072<=D&&D<=65131||65281<=D&&D<=65376||65504<=D&&D<=65510||110592<=D&&D<=110593||127488<=D&&D<=127569||131072<=D&&D<=262141))return!0;return!1};MK.exports=sP;MK.exports.default=sP});var Db=k((NLD,eP)=>{var k$D=(D)=>D&&D.exact?new RegExp(`^${"[\uD800-\uDBFF][\uDC00-\uDFFF]"}$`):new RegExp("[\uD800-\uDBFF][\uDC00-\uDFFF]","g");eP.exports=k$D});var Jb=k((VLD,$b)=>{$b.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var vK=k((wLD,Yb)=>{var x5=Jb(),Xb={};for(let D of Object.keys(x5))Xb[x5[D]]=D;var UD={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};Yb.exports=UD;for(let D of Object.keys(UD)){if(!("channels"in UD[D]))throw Error("missing channels property: "+D);if(!("labels"in UD[D]))throw Error("missing channel labels property: "+D);if(UD[D].labels.length!==UD[D].channels)throw Error("channel and label counts mismatch: "+D);let{channels:$,labels:J}=UD[D];delete UD[D].channels,delete UD[D].labels,Object.defineProperty(UD[D],"channels",{value:$}),Object.defineProperty(UD[D],"labels",{value:J})}UD.rgb.hsl=function(D){let $=D[0]/255,J=D[1]/255,X=D[2]/255,Y=Math.min($,J,X),Q=Math.max($,J,X),U=Q-Y,F,W;if(Q===Y)F=0;else if($===Q)F=(J-X)/U;else if(J===Q)F=2+(X-$)/U;else if(X===Q)F=4+($-J)/U;if(F=Math.min(F*60,360),F<0)F+=360;let K=(Y+Q)/2;if(Q===Y)W=0;else if(K<=0.5)W=U/(Q+Y);else W=U/(2-Q-Y);return[F,W*100,K*100]};UD.rgb.hsv=function(D){let $,J,X,Y,Q,U=D[0]/255,F=D[1]/255,W=D[2]/255,K=Math.max(U,F,W),q=K-Math.min(U,F,W),G=function(Z){return(K-Z)/6/q+0.5};if(q===0)Y=0,Q=0;else{if(Q=q/K,$=G(U),J=G(F),X=G(W),U===K)Y=X-J;else if(F===K)Y=0.3333333333333333+$-X;else if(W===K)Y=0.6666666666666666+J-$;if(Y<0)Y+=1;else if(Y>1)Y-=1}return[Y*360,Q*100,K*100]};UD.rgb.hwb=function(D){let $=D[0],J=D[1],X=D[2],Y=UD.rgb.hsl(D)[0],Q=0.00392156862745098*Math.min($,Math.min(J,X));return X=1-0.00392156862745098*Math.max($,Math.max(J,X)),[Y,Q*100,X*100]};UD.rgb.cmyk=function(D){let $=D[0]/255,J=D[1]/255,X=D[2]/255,Y=Math.min(1-$,1-J,1-X),Q=(1-$-Y)/(1-Y)||0,U=(1-J-Y)/(1-Y)||0,F=(1-X-Y)/(1-Y)||0;return[Q*100,U*100,F*100,Y*100]};function _$D(D,$){return(D[0]-$[0])**2+(D[1]-$[1])**2+(D[2]-$[2])**2}UD.rgb.keyword=function(D){let $=Xb[D];if($)return $;let J=1/0,X;for(let Y of Object.keys(x5)){let Q=x5[Y],U=_$D(D,Q);if(U<J)J=U,X=Y}return X};UD.keyword.rgb=function(D){return x5[D]};UD.rgb.xyz=function(D){let $=D[0]/255,J=D[1]/255,X=D[2]/255;$=$>0.04045?(($+0.055)/1.055)**2.4:$/12.92,J=J>0.04045?((J+0.055)/1.055)**2.4:J/12.92,X=X>0.04045?((X+0.055)/1.055)**2.4:X/12.92;let Y=$*0.4124+J*0.3576+X*0.1805,Q=$*0.2126+J*0.7152+X*0.0722,U=$*0.0193+J*0.1192+X*0.9505;return[Y*100,Q*100,U*100]};UD.rgb.lab=function(D){let $=UD.rgb.xyz(D),J=$[0],X=$[1],Y=$[2];J/=95.047,X/=100,Y/=108.883,J=J>0.008856?J**0.3333333333333333:7.787*J+0.13793103448275862,X=X>0.008856?X**0.3333333333333333:7.787*X+0.13793103448275862,Y=Y>0.008856?Y**0.3333333333333333:7.787*Y+0.13793103448275862;let Q=116*X-16,U=500*(J-X),F=200*(X-Y);return[Q,U,F]};UD.hsl.rgb=function(D){let $=D[0]/360,J=D[1]/100,X=D[2]/100,Y,Q,U;if(J===0)return U=X*255,[U,U,U];if(X<0.5)Y=X*(1+J);else Y=X+J-X*J;let F=2*X-Y,W=[0,0,0];for(let K=0;K<3;K++){if(Q=$+0.3333333333333333*-(K-1),Q<0)Q++;if(Q>1)Q--;if(6*Q<1)U=F+(Y-F)*6*Q;else if(2*Q<1)U=Y;else if(3*Q<2)U=F+(Y-F)*(0.6666666666666666-Q)*6;else U=F;W[K]=U*255}return W};UD.hsl.hsv=function(D){let $=D[0],J=D[1]/100,X=D[2]/100,Y=J,Q=Math.max(X,0.01);X*=2,J*=X<=1?X:2-X,Y*=Q<=1?Q:2-Q;let U=(X+J)/2,F=X===0?2*Y/(Q+Y):2*J/(X+J);return[$,F*100,U*100]};UD.hsv.rgb=function(D){let $=D[0]/60,J=D[1]/100,X=D[2]/100,Y=Math.floor($)%6,Q=$-Math.floor($),U=255*X*(1-J),F=255*X*(1-J*Q),W=255*X*(1-J*(1-Q));switch(X*=255,Y){case 0:return[X,W,U];case 1:return[F,X,U];case 2:return[U,X,W];case 3:return[U,F,X];case 4:return[W,U,X];case 5:return[X,U,F]}};UD.hsv.hsl=function(D){let $=D[0],J=D[1]/100,X=D[2]/100,Y=Math.max(X,0.01),Q,U;U=(2-J)*X;let F=(2-J)*Y;return Q=J*Y,Q/=F<=1?F:2-F,Q=Q||0,U/=2,[$,Q*100,U*100]};UD.hwb.rgb=function(D){let $=D[0]/360,J=D[1]/100,X=D[2]/100,Y=J+X,Q;if(Y>1)J/=Y,X/=Y;let U=Math.floor(6*$),F=1-X;if(Q=6*$-U,(U&1)!==0)Q=1-Q;let W=J+Q*(F-J),K,q,G;switch(U){default:case 6:case 0:K=F,q=W,G=J;break;case 1:K=W,q=F,G=J;break;case 2:K=J,q=F,G=W;break;case 3:K=J,q=W,G=F;break;case 4:K=W,q=J,G=F;break;case 5:K=F,q=J,G=W;break}return[K*255,q*255,G*255]};UD.cmyk.rgb=function(D){let $=D[0]/100,J=D[1]/100,X=D[2]/100,Y=D[3]/100,Q=1-Math.min(1,$*(1-Y)+Y),U=1-Math.min(1,J*(1-Y)+Y),F=1-Math.min(1,X*(1-Y)+Y);return[Q*255,U*255,F*255]};UD.xyz.rgb=function(D){let $=D[0]/100,J=D[1]/100,X=D[2]/100,Y,Q,U;return Y=$*3.2406+J*-1.5372+X*-0.4986,Q=$*-0.9689+J*1.8758+X*0.0415,U=$*0.0557+J*-0.204+X*1.057,Y=Y>0.0031308?1.055*Y**0.4166666666666667-0.055:Y*12.92,Q=Q>0.0031308?1.055*Q**0.4166666666666667-0.055:Q*12.92,U=U>0.0031308?1.055*U**0.4166666666666667-0.055:U*12.92,Y=Math.min(Math.max(0,Y),1),Q=Math.min(Math.max(0,Q),1),U=Math.min(Math.max(0,U),1),[Y*255,Q*255,U*255]};UD.xyz.lab=function(D){let $=D[0],J=D[1],X=D[2];$/=95.047,J/=100,X/=108.883,$=$>0.008856?$**0.3333333333333333:7.787*$+0.13793103448275862,J=J>0.008856?J**0.3333333333333333:7.787*J+0.13793103448275862,X=X>0.008856?X**0.3333333333333333:7.787*X+0.13793103448275862;let Y=116*J-16,Q=500*($-J),U=200*(J-X);return[Y,Q,U]};UD.lab.xyz=function(D){let $=D[0],J=D[1],X=D[2],Y,Q,U;Q=($+16)/116,Y=J/500+Q,U=Q-X/200;let F=Q**3,W=Y**3,K=U**3;return Q=F>0.008856?F:(Q-0.13793103448275862)/7.787,Y=W>0.008856?W:(Y-0.13793103448275862)/7.787,U=K>0.008856?K:(U-0.13793103448275862)/7.787,Y*=95.047,Q*=100,U*=108.883,[Y,Q,U]};UD.lab.lch=function(D){let $=D[0],J=D[1],X=D[2],Y;if(Y=Math.atan2(X,J)*360/2/Math.PI,Y<0)Y+=360;let U=Math.sqrt(J*J+X*X);return[$,U,Y]};UD.lch.lab=function(D){let $=D[0],J=D[1],Y=D[2]/360*2*Math.PI,Q=J*Math.cos(Y),U=J*Math.sin(Y);return[$,Q,U]};UD.rgb.ansi16=function(D,$=null){let[J,X,Y]=D,Q=$===null?UD.rgb.hsv(D)[2]:$;if(Q=Math.round(Q/50),Q===0)return 30;let U=30+(Math.round(Y/255)<<2|Math.round(X/255)<<1|Math.round(J/255));if(Q===2)U+=60;return U};UD.hsv.ansi16=function(D){return UD.rgb.ansi16(UD.hsv.rgb(D),D[2])};UD.rgb.ansi256=function(D){let $=D[0],J=D[1],X=D[2];if($===J&&J===X){if($<8)return 16;if($>248)return 231;return Math.round(($-8)/247*24)+232}return 16+36*Math.round($/255*5)+6*Math.round(J/255*5)+Math.round(X/255*5)};UD.ansi16.rgb=function(D){let $=D%10;if($===0||$===7){if(D>50)$+=3.5;return $=$/10.5*255,[$,$,$]}let J=(~~(D>50)+1)*0.5,X=($&1)*J*255,Y=($>>1&1)*J*255,Q=($>>2&1)*J*255;return[X,Y,Q]};UD.ansi256.rgb=function(D){if(D>=232){let Q=(D-232)*10+8;return[Q,Q,Q]}D-=16;let $,J=Math.floor(D/36)/5*255,X=Math.floor(($=D%36)/6)/5*255,Y=$%6/5*255;return[J,X,Y]};UD.rgb.hex=function(D){let J=(((Math.round(D[0])&255)<<16)+((Math.round(D[1])&255)<<8)+(Math.round(D[2])&255)).toString(16).toUpperCase();return"000000".substring(J.length)+J};UD.hex.rgb=function(D){let $=D.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!$)return[0,0,0];let J=$[0];if($[0].length===3)J=J.split("").map((F)=>{return F+F}).join("");let X=parseInt(J,16),Y=X>>16&255,Q=X>>8&255,U=X&255;return[Y,Q,U]};UD.rgb.hcg=function(D){let $=D[0]/255,J=D[1]/255,X=D[2]/255,Y=Math.max(Math.max($,J),X),Q=Math.min(Math.min($,J),X),U=Y-Q,F,W;if(U<1)F=Q/(1-U);else F=0;if(U<=0)W=0;else if(Y===$)W=(J-X)/U%6;else if(Y===J)W=2+(X-$)/U;else W=4+($-J)/U;return W/=6,W%=1,[W*360,U*100,F*100]};UD.hsl.hcg=function(D){let $=D[1]/100,J=D[2]/100,X=J<0.5?2*$*J:2*$*(1-J),Y=0;if(X<1)Y=(J-0.5*X)/(1-X);return[D[0],X*100,Y*100]};UD.hsv.hcg=function(D){let $=D[1]/100,J=D[2]/100,X=$*J,Y=0;if(X<1)Y=(J-X)/(1-X);return[D[0],X*100,Y*100]};UD.hcg.rgb=function(D){let $=D[0]/360,J=D[1]/100,X=D[2]/100;if(J===0)return[X*255,X*255,X*255];let Y=[0,0,0],Q=$%1*6,U=Q%1,F=1-U,W=0;switch(Math.floor(Q)){case 0:Y[0]=1,Y[1]=U,Y[2]=0;break;case 1:Y[0]=F,Y[1]=1,Y[2]=0;break;case 2:Y[0]=0,Y[1]=1,Y[2]=U;break;case 3:Y[0]=0,Y[1]=F,Y[2]=1;break;case 4:Y[0]=U,Y[1]=0,Y[2]=1;break;default:Y[0]=1,Y[1]=0,Y[2]=F}return W=(1-J)*X,[(J*Y[0]+W)*255,(J*Y[1]+W)*255,(J*Y[2]+W)*255]};UD.hcg.hsv=function(D){let $=D[1]/100,J=D[2]/100,X=$+J*(1-$),Y=0;if(X>0)Y=$/X;return[D[0],Y*100,X*100]};UD.hcg.hsl=function(D){let $=D[1]/100,X=D[2]/100*(1-$)+0.5*$,Y=0;if(X>0&&X<0.5)Y=$/(2*X);else if(X>=0.5&&X<1)Y=$/(2*(1-X));return[D[0],Y*100,X*100]};UD.hcg.hwb=function(D){let $=D[1]/100,J=D[2]/100,X=$+J*(1-$);return[D[0],(X-$)*100,(1-X)*100]};UD.hwb.hcg=function(D){let $=D[1]/100,X=1-D[2]/100,Y=X-$,Q=0;if(Y<1)Q=(X-Y)/(1-Y);return[D[0],Y*100,Q*100]};UD.apple.rgb=function(D){return[D[0]/65535*255,D[1]/65535*255,D[2]/65535*255]};UD.rgb.apple=function(D){return[D[0]/255*65535,D[1]/255*65535,D[2]/255*65535]};UD.gray.rgb=function(D){return[D[0]/100*255,D[0]/100*255,D[0]/100*255]};UD.gray.hsl=function(D){return[0,0,D[0]]};UD.gray.hsv=UD.gray.hsl;UD.gray.hwb=function(D){return[0,100,D[0]]};UD.gray.cmyk=function(D){return[0,0,0,D[0]]};UD.gray.lab=function(D){return[D[0],0,0]};UD.gray.hex=function(D){let $=Math.round(D[0]/100*255)&255,X=(($<<16)+($<<8)+$).toString(16).toUpperCase();return"000000".substring(X.length)+X};UD.rgb.gray=function(D){return[(D[0]+D[1]+D[2])/3/255*100]}});var Ub=k((jLD,Qb)=>{var GX=vK();function u$D(){let D={},$=Object.keys(GX);for(let J=$.length,X=0;X<J;X++)D[$[X]]={distance:-1,parent:null};return D}function g$D(D){let $=u$D(),J=[D];$[D].distance=0;while(J.length){let X=J.pop(),Y=Object.keys(GX[X]);for(let Q=Y.length,U=0;U<Q;U++){let F=Y[U],W=$[F];if(W.distance===-1)W.distance=$[X].distance+1,W.parent=X,J.unshift(F)}}return $}function x$D(D,$){return function(J){return $(D(J))}}function f$D(D,$){let J=[$[D].parent,D],X=GX[$[D].parent][D],Y=$[D].parent;while($[Y].parent)J.unshift($[Y].parent),X=x$D(GX[$[Y].parent][Y],X),Y=$[Y].parent;return X.conversion=J,X}Qb.exports=function(D){let $=g$D(D),J={},X=Object.keys($);for(let Y=X.length,Q=0;Q<Y;Q++){let U=X[Q];if($[U].parent===null)continue;J[U]=f$D(U,$)}return J}});var Wb=k((LLD,Fb)=>{var EK=vK(),y$D=Ub(),z2={},h$D=Object.keys(EK);function m$D(D){let $=function(...J){let X=J[0];if(X===void 0||X===null)return X;if(X.length>1)J=X;return D(J)};if("conversion"in D)$.conversion=D.conversion;return $}function l$D(D){let $=function(...J){let X=J[0];if(X===void 0||X===null)return X;if(X.length>1)J=X;let Y=D(J);if(typeof Y==="object")for(let Q=Y.length,U=0;U<Q;U++)Y[U]=Math.round(Y[U]);return Y};if("conversion"in D)$.conversion=D.conversion;return $}h$D.forEach((D)=>{z2[D]={},Object.defineProperty(z2[D],"channels",{value:EK[D].channels}),Object.defineProperty(z2[D],"labels",{value:EK[D].labels});let $=y$D(D);Object.keys($).forEach((X)=>{let Y=$[X];z2[D][X]=l$D(Y),z2[D][X].raw=m$D(Y)})});Fb.exports=z2});var PK=k((RLD,zb)=>{var Kb=(D,$)=>(...J)=>{return`\x1B[${D(...J)+$}m`},qb=(D,$)=>(...J)=>{let X=D(...J);return`\x1B[${38+$};5;${X}m`},Gb=(D,$)=>(...J)=>{let X=D(...J);return`\x1B[${38+$};2;${X[0]};${X[1]};${X[2]}m`},ZX=(D)=>D,Zb=(D,$,J)=>[D,$,J],H2=(D,$,J)=>{Object.defineProperty(D,$,{get:()=>{let X=J();return Object.defineProperty(D,$,{value:X,enumerable:!0,configurable:!0}),X},enumerable:!0,configurable:!0})},TK,I2=(D,$,J,X)=>{if(TK===void 0)TK=Wb();let Y=X?10:0,Q={};for(let[U,F]of Object.entries(TK)){let W=U==="ansi16"?"ansi":U;if(U===$)Q[W]=D(J,Y);else if(typeof F==="object")Q[W]=D(F[$],Y)}return Q};function d$D(){let D=new Map,$={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};$.color.gray=$.color.blackBright,$.bgColor.bgGray=$.bgColor.bgBlackBright,$.color.grey=$.color.blackBright,$.bgColor.bgGrey=$.bgColor.bgBlackBright;for(let[J,X]of Object.entries($)){for(let[Y,Q]of Object.entries(X))$[Y]={open:`\x1B[${Q[0]}m`,close:`\x1B[${Q[1]}m`},X[Y]=$[Y],D.set(Q[0],Q[1]);Object.defineProperty($,J,{value:X,enumerable:!1})}return Object.defineProperty($,"codes",{value:D,enumerable:!1}),$.color.close="\x1B[39m",$.bgColor.close="\x1B[49m",H2($.color,"ansi",()=>I2(Kb,"ansi16",ZX,!1)),H2($.color,"ansi256",()=>I2(qb,"ansi256",ZX,!1)),H2($.color,"ansi16m",()=>I2(Gb,"rgb",Zb,!1)),H2($.bgColor,"ansi",()=>I2(Kb,"ansi16",ZX,!0)),H2($.bgColor,"ansi256",()=>I2(qb,"ansi256",ZX,!0)),H2($.bgColor,"ansi16m",()=>I2(Gb,"rgb",Zb,!0)),$}Object.defineProperty(zb,"exports",{enumerable:!0,get:d$D})});var Nb=k((MLD,Ob)=>{var i$D=AK(),c$D=Db(),Hb=PK(),Bb=["\x1B",""],zX=(D)=>`${Bb[0]}[${D}m`,Ib=(D,$,J)=>{let X=[];D=[...D];for(let Y of D){let Q=Y;if(Y.includes(";"))Y=Y.split(";")[0][0]+"0";let U=Hb.codes.get(Number.parseInt(Y,10));if(U){let F=D.indexOf(U.toString());if(F===-1)X.push(zX($?U:Q));else D.splice(F,1)}else if($){X.push(zX(0));break}else X.push(zX(Q))}if($){if(X=X.filter((Y,Q)=>X.indexOf(Y)===Q),J!==void 0){let Y=zX(Hb.codes.get(Number.parseInt(J,10)));X=X.reduce((Q,U)=>U===Y?[U,...Q]:[...Q,U],[])}}return X.join("")};Ob.exports=(D,$,J)=>{let X=[...D],Y=[],Q=typeof J==="number"?J:X.length,U=!1,F,W=0,K="";for(let[q,G]of X.entries()){let Z=!1;if(Bb.includes(G)){let H=/\d[^m]*/.exec(D.slice(q,q+18));if(F=H&&H.length>0?H[0]:void 0,W<Q){if(U=!0,F!==void 0)Y.push(F)}}else if(U&&G==="m")U=!1,Z=!0;if(!U&&!Z)W++;if(!c$D({exact:!0}).test(G)&&i$D(G.codePointAt())){if(W++,typeof J!=="number")Q++}if(W>$&&W<=Q)K+=G;else if(W===$&&!U&&F!==void 0)K=Ib(Y);else if(W>=Q){K+=Ib(Y,!0,F);break}}return K}});var wb=k((ALD,Vb)=>{Vb.exports=({onlyFirst:D=!1}={})=>{let $=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp($,D?void 0:"g")}});var HX=k((vLD,jb)=>{var p$D=wb();jb.exports=(D)=>typeof D==="string"?D.replace(p$D(),""):D});var Rb=k((ELD,Lb)=>{Lb.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var SK=k((TLD,bK)=>{var n$D=HX(),r$D=AK(),t$D=Rb(),Mb=(D)=>{if(typeof D!=="string"||D.length===0)return 0;if(D=n$D(D),D.length===0)return 0;D=D.replace(t$D()," ");let $=0;for(let J=0;J<D.length;J++){let X=D.codePointAt(J);if(X<=31||X>=127&&X<=159)continue;if(X>=768&&X<=879)continue;if(X>65535)J++;$+=r$D(X)?2:1}return $};bK.exports=Mb;bK.exports.default=Mb});var Tb=k((PLD,Eb)=>{var f5=SK(),o$D=HX(),a$D=PK(),IX=new Set(["\x1B",""]),Ab=(D)=>`${IX.values().next().value}[${D}m`,vb=(D)=>`${IX.values().next().value}]8;;${D}\x07`,s$D=(D)=>D.split(" ").map(($)=>f5($)),CK=(D,$,J)=>{let X=[...$],Y=!1,Q=!1,U=f5(o$D(D[D.length-1]));for(let[F,W]of X.entries()){let K=f5(W);if(U+K<=J)D[D.length-1]+=W;else D.push(W),U=0;if(IX.has(W))Y=!0,Q=X.slice(F+1).join("").startsWith("]8;;");if(Y){if(Q){if(W==="\x07")Y=!1,Q=!1}else if(W==="m")Y=!1;continue}if(U+=K,U===J&&F<X.length-1)D.push(""),U=0}if(!U&&D[D.length-1].length>0&&D.length>1)D[D.length-2]+=D.pop()},e$D=(D)=>{let $=D.split(" "),J=$.length;while(J>0){if(f5($[J-1])>0)break;J--}if(J===$.length)return D;return $.slice(0,J).join(" ")+$.slice(J).join("")},D6D=(D,$,J={})=>{if(J.trim!==!1&&D.trim()==="")return"";let X="",Y,Q,U=s$D(D),F=[""];for(let[K,q]of D.split(" ").entries()){if(J.trim!==!1)F[F.length-1]=F[F.length-1].trimStart();let G=f5(F[F.length-1]);if(K!==0){if(G>=$&&(J.wordWrap===!1||J.trim===!1))F.push(""),G=0;if(G>0||J.trim===!1)F[F.length-1]+=" ",G++}if(J.hard&&U[K]>$){let Z=$-G,H=1+Math.floor((U[K]-Z-1)/$);if(Math.floor((U[K]-1)/$)<H)F.push("");CK(F,q,$);continue}if(G+U[K]>$&&G>0&&U[K]>0){if(J.wordWrap===!1&&G<$){CK(F,q,$);continue}F.push("")}if(G+U[K]>$&&J.wordWrap===!1){CK(F,q,$);continue}F[F.length-1]+=q}if(J.trim!==!1)F=F.map(e$D);let W=[...F.join(`
`)];for(let[K,q]of W.entries()){if(X+=q,IX.has(q)){let{groups:Z}=new RegExp("(?:\\[(?<code>\\d+)m|\\]8;;(?<uri>.*)\x07)").exec(W.slice(K).join(""))||{groups:{}};if(Z.code!==void 0){let H=Number.parseFloat(Z.code);Y=H===39?void 0:H}else if(Z.uri!==void 0)Q=Z.uri.length===0?void 0:Z.uri}let G=a$D.codes.get(Number(Y));if(W[K+1]===`
`){if(Q)X+=vb("");if(Y&&G)X+=Ab(G)}else if(q===`
`){if(Y&&G)X+=Ab(Y);if(Q)X+=vb(Q)}}return X};Eb.exports=(D,$,J)=>{return String(D).normalize().replace(/\r\n/g,`
`).split(`
`).map((X)=>D6D(X,$,J)).join(`
`)}});var Sb=k((bLD,bb)=>{var $6D=XD("os"),Pb=$6D.homedir();bb.exports=(D)=>{if(typeof D!=="string")throw TypeError(`Expected a string, got ${typeof D}`);return Pb?D.replace(/^~(?=$|\/|\\)/,Pb):D}});var hb=k((xb)=>{Object.defineProperty(xb,"__esModule",{value:!0});xb.columnar=xb.generateFillSpaceStringList=xb.expandPath=xb.prettyPath=xb.wordWrap=xb.indent=xb.TTY_WIDTH=xb.stripAnsi=xb.stringWidth=xb.sliceAnsi=void 0;var Cb=z$(),J6D=Cb.__importStar(XD("os")),g6=Cb.__importStar(XD("path")),kb=Nb();xb.sliceAnsi=kb;var BX=SK();xb.stringWidth=BX;var X6D=HX();xb.stripAnsi=X6D;var Y6D=Tb(),Q6D=Sb(),U6D=80,F6D=120;xb.TTY_WIDTH=process.stdout.columns?Math.max(U6D,Math.min(process.stdout.columns,F6D)):1/0;function _b(D=4){return" ".repeat(D)}xb.indent=_b;function W6D(D,{width:$=xb.TTY_WIDTH,indentation:J=0,append:X=""}){return Y6D(D,$-J-X.length,{trim:!0}).split(`
`).join(`${X}
${_b(J)}`)}xb.wordWrap=W6D;function K6D(D){D=ub(D);let $=process.cwd(),J=g6.dirname(D),X=J6D.homedir(),Y=Math.abs(J.split(g6.sep).length-$.split(g6.sep).length);if($===J)return"."+g6.sep+g6.basename(D);else if(J.startsWith($))return"."+g6.sep+D.substring($.length+1);else if(Y<=2){let Q=g6.relative($,D);return Q?Q:"."}else if(D===X)return"~";else if(D.indexOf(X)===0)return"~"+g6.sep+D.substring(X.length+1);return D}xb.prettyPath=K6D;function ub(D){return g6.resolve(Q6D(D))}xb.expandPath=ub;function gb(D,$=1,J=" "){if($<2)$=2;let X=Math.max(...D.map((U)=>BX(U))),Y=X>$?X+1:$,Q=J.repeat(Y);return D.map((U)=>kb(Q,0,Y-BX(U)))}xb.generateFillSpaceStringList=gb;function q6D(D,{hsep:$="-",vsep:J="|",headers:X}){let Y=X?!0:!1;if(!D[0])return"";let Q=X?X.length:D[0].length,U=X?X.map((q)=>[q]):D[0].map(()=>[]);for(let q of D){let G=0,Z=q.map((H)=>{let z=H.split(`
`);return G=Math.max(G,z.length),z});for(let H in q)if(U[H])U[H].push(...Z[H],...Array(G-Z[H].length).fill(""))}let F=U.map((q,G)=>{if(G<Q-1){let Z=gb(q);return q.map((H,z)=>`${H}${Z[z]}${J===""?"":`${J} `}`)}else return q}),W=0,K=F.reduce((q,G)=>{return q.map((Z,H)=>{let z=q[H]+G[H];return W=Math.max(W,BX(z)),z})});if(Y&&$!=="")K.splice(1,0,$.repeat(W));return K.join(`
`)}xb.columnar=q6D});var ib=k((mb)=>{Object.defineProperty(mb,"__esModule",{value:!0});mb.TERMINAL_INFO=mb.CI_ENVIRONMENT_VARIABLES_DETECTED=mb.CI_ENVIRONMENT_VARIABLES=void 0;var V6D=z$(),w6D=qK(),j6D=V6D.__importStar(XD("os")),L6D=(0,w6D.debug)("ionic:utils-terminal:info");mb.CI_ENVIRONMENT_VARIABLES=["CI","BUILD_ID","BUILD_NUMBER","BITBUCKET_COMMIT","CODEBUILD_BUILD_ARN","GITHUB_ACTIONS"];mb.CI_ENVIRONMENT_VARIABLES_DETECTED=mb.CI_ENVIRONMENT_VARIABLES.filter((D)=>!!process.env[D]);function R6D(){let{shell:D}=j6D.userInfo();if(D)return D;if(process.env.SHELL)return process.env.SHELL;if(process.platform==="darwin")return"/bin/bash";if(process.platform==="win32")return process.env.COMSPEC?process.env.COMSPEC:"cmd.exe";return"/bin/sh"}if(mb.CI_ENVIRONMENT_VARIABLES_DETECTED.length>0)L6D(`Environment variables for CI detected: ${mb.CI_ENVIRONMENT_VARIABLES_DETECTED.join(", ")}`);mb.TERMINAL_INFO=Object.freeze({ci:mb.CI_ENVIRONMENT_VARIABLES_DETECTED.length>0,shell:R6D(),tty:Boolean(process.stdin.isTTY&&process.stdout.isTTY&&process.stderr.isTTY),windows:process.platform==="win32"||!!(process.env.OSTYPE&&/^(msys|cygwin)$/.test(process.env.OSTYPE)||process.env.MSYSTEM&&/^MINGW(32|64)$/.test(process.env.MSYSTEM))})});var kK=k((B2)=>{Object.defineProperty(B2,"__esModule",{value:!0});var NX=z$();NX.__exportStar(RK(),B2);NX.__exportStar(aP(),B2);NX.__exportStar(hb(),B2);NX.__exportStar(ib(),B2)});var wX=k((cb)=>{Object.defineProperty(cb,"__esModule",{value:!0});cb.isFatal=cb.fatal=cb.FatalException=cb.BaseException=void 0;class _K extends Error{constructor(D,$){super(D);this.message=D,this.code=$}}cb.BaseException=_K;class VX extends _K{constructor(D,$=1){super(D,"FATAL");this.message=D,this.exitCode=$}}cb.FatalException=VX;function M6D(D){throw new VX(D)}cb.fatal=M6D;function A6D(D){return D&&D instanceof VX}cb.isFatal=A6D});var gK={};y0(gK,{wordWrap:()=>_6D,stripAnsi:()=>k6D,stringWidth:()=>C6D,sliceAnsi:()=>S6D,indent:()=>b6D,createDefaultLogger:()=>u6D,TTY_WIDTH:()=>P6D,TTYOutputStrategy:()=>rb,StreamOutputStrategy:()=>uK,NO_COLORS:()=>nb,Logger:()=>tb,LOGGER_LEVELS:()=>g6D});class uK{constructor(){this.colors=nb,this.stream=process.stdout}}class tb{constructor(){}info(){}warn(){}error(){}debug(){}}var P6D=80,b6D=(D)=>D,S6D=(D)=>D,C6D=(D)=>D.length,k6D=(D)=>D,_6D=(D)=>D,u6D=()=>({info:console.log,warn:console.warn,error:console.error,debug:console.debug}),nb,rb,g6D;var xK=S(()=>{nb={};rb=class rb extends uK{constructor(D){super();this.options=D}};g6D={DEBUG:"DEBUG",INFO:"INFO",WARN:"WARN",ERROR:"ERROR"}});var sb=k((ab)=>{Object.defineProperty(ab,"__esModule",{value:!0});ab.isInteractive=ab.checkInteractive=void 0;var x6D=z$(),ob=kK(),f6D=x6D.__importDefault(Z2()),y6D=y5(),h6D=(...D)=>{if(ab.isInteractive())return!0;if(!D.length)return!1;if(D.filter(($)=>!$).length)return y6D.logger.error(`Non-interactive shell detected.
Run the command with ${f6D.default.input("--help")} to see a list of arguments that must be provided.`),!1;return!0};ab.checkInteractive=h6D;var m6D=()=>ob.TERMINAL_INFO.tty&&!ob.TERMINAL_INFO.ci;ab.isInteractive=m6D});var jX={};y0(jX,{default:()=>eb});function eb(){throw Error("Prompts are not supported in this CLI build")}var y5=k(($S)=>{Object.defineProperty($S,"__esModule",{value:!0});$S.logSuccess=$S.logPrompt=$S.logger=$S.output=void 0;var yK=z$(),w4=(xK(),e6(gK)),j4=yK.__importDefault(Z2()),d6D=sb(),DS={colors:j4.default,stream:process.argv.includes("--json")?process.stderr:process.stdout};$S.output=(0,d6D.isInteractive)()?new w4.TTYOutputStrategy(DS):new w4.StreamOutputStrategy(DS);$S.logger=(0,w4.createDefaultLogger)({output:$S.output,formatterOptions:{titleize:!1,tags:new Map([[w4.LOGGER_LEVELS.DEBUG,j4.default.log.DEBUG("[debug]")],[w4.LOGGER_LEVELS.INFO,j4.default.log.INFO("[info]")],[w4.LOGGER_LEVELS.WARN,j4.default.log.WARN("[warn]")],[w4.LOGGER_LEVELS.ERROR,j4.default.log.ERROR("[error]")]])}});async function i6D(D,$){let{wordWrap:J}=await Promise.resolve().then(()=>yK.__importStar((xK(),e6(gK)))),{prompt:X}=await Promise.resolve().then(()=>yK.__importStar(e6(jX)));return $S.logger.log({msg:`${j4.default.input("[?]")} ${J(D,{indentation:4})}`,logger:$S.logger,format:!1}),X($,{onCancel:()=>process.exit(1)})}$S.logPrompt=i6D;function c6D(D){$S.logger.msg(`${j4.default.success("[success]")} ${D}`)}$S.logSuccess=c6D});var h5=k((YS)=>{Object.defineProperty(YS,"__esModule",{value:!0});YS.resolveNode=YS.requireTS=void 0;var n6D=XD("fs"),r6D=G2(),t6D=XD("path"),o6D=XD("url");function a6D(D){return typeof D.transpileModule==="function"}var s6D=Function("specifier","return import(specifier)"),e6D=async(D,$)=>{let J=(0,t6D.resolve)($);if(!a6D(D))try{return await s6D((0,o6D.pathToFileURL)(J).href)}catch(Y){if((Y===null||Y===void 0?void 0:Y.code)==="ERR_UNKNOWN_FILE_EXTENSION")throw Error(`Your installed version of TypeScript (${D.version}) no longer provides the compiler API Capacitor previously used to load .ts config files, and your Node.js runtime (${process.version}) doesn't support loading them natively either.
Upgrade to Node.js 22.6+ (running with --experimental-strip-types), or Node.js 23.6+, to continue using capacitor.config.ts.`);throw Y}delete XD.cache[J],XD.extensions[".ts"]=(Y,Q)=>{var U;let F=(0,r6D.readFileSync)(Q,"utf8");if(Q.endsWith(".ts"))F=D.transpileModule(F,{fileName:Q,compilerOptions:{module:D.ModuleKind.CommonJS,moduleResolution:D.ModuleResolutionKind.NodeJs,esModuleInterop:!0,strict:!0,target:D.ScriptTarget.ES2017},reportDiagnostics:!0}).outputText;else F=F.replace(/export\s+\w+\s+(\w+)/gm,"exports.$1");(U=Y._compile)===null||U===void 0||U.call(Y,F,Q)};let X=XD(J);return delete XD.extensions[".ts"],X};YS.requireTS=e6D;function D1D(D,...$){try{return XD.resolve($.join("/"),{paths:[D]})}catch(J){let X=[D,"node_modules",...$].join("/");if((0,n6D.existsSync)(X))return X;return null}}YS.resolveNode=D1D});var US={};y0(US,{default:()=>J1D});var J1D;var FS=S(()=>{J1D={}});var qS=k((WS)=>{Object.defineProperty(WS,"__esModule",{value:!0});WS.buildXmlElement=WS.writeXML=WS.parseXML=WS.readXML=void 0;var X1D=z$(),Y1D=G2(),m5=X1D.__importDefault((FS(),e6(US)));async function Q1D(D){var $;try{let J=await(0,Y1D.readFile)(D,{encoding:"utf-8"});try{return await m5.default.parseStringPromise(J)}catch(X){throw`Error parsing: ${D}, ${($=X.stack)!==null&&$!==void 0?$:X}`}}catch(J){throw`Unable to read: ${D}`}}WS.readXML=Q1D;function U1D(D,$){let J=$!==void 0?new m5.default.Parser({...$}):new m5.default.Parser,X;return J.parseString(D,(Y,Q)=>{if(!Y)X=Q}),X}WS.parseXML=U1D;async function F1D(D){return new Promise(($)=>{let X=new m5.default.Builder({headless:!0,explicitRoot:!1,rootName:"deleteme"}).buildObject(D);X=X.replace("<deleteme>","").replace("</deleteme>",""),$(X)})}WS.writeXML=F1D;function W1D(D,$){return new m5.default.Builder({headless:!0,explicitRoot:!1,rootName:$}).buildObject(D)}WS.buildXmlElement=W1D});var OS=k((IS)=>{Object.defineProperty(IS,"__esModule",{value:!0});IS.getAllElements=IS.getFilePath=IS.getAssets=IS.getJSModules=IS.getPluginType=IS.getPlatformElement=IS.getPluginPlatform=IS.printPlugins=IS.fixName=IS.getDependencies=IS.resolvePlugin=IS.getPlugins=IS.getIncludedPluginPackages=void 0;var Z1D=z$(),z1D=G2(),hK=XD("path"),O2=Z1D.__importDefault(Z2()),H1D=wX(),I1D=y5(),GS=h5(),B1D=qS();function ZS(D,$){var J,X,Y,Q;let{extConfig:U}=D.app;switch($){case"android":return(X=(J=U.android)===null||J===void 0?void 0:J.includePlugins)!==null&&X!==void 0?X:U.includePlugins;case"ios":return(Q=(Y=U.ios)===null||Y===void 0?void 0:Y.includePlugins)!==null&&Q!==void 0?Q:U.includePlugins}}IS.getIncludedPluginPackages=ZS;async function O1D(D,$){var J;let X=(J=ZS(D,$))!==null&&J!==void 0?J:HS(D);return(await Promise.all(X.map(async(Q)=>zS(D,Q)))).filter((Q)=>!!Q)}IS.getPlugins=O1D;async function zS(D,$){try{let J=(0,GS.resolveNode)(D.app.rootDir,$,"package.json");if(!J)(0,H1D.fatal)(`Unable to find ${O2.default.strong(`node_modules/${$}`)}.
Are you sure ${O2.default.strong($)} is installed?`);let X=(0,hK.dirname)(J),Y=await(0,z1D.readJSON)(J);if(!Y)return null;if(Y.capacitor)return{id:$,name:mK($),version:Y.version,rootPath:X,repository:Y.repository,manifest:Y.capacitor};let Q=(0,hK.join)(X,"plugin.xml"),U=await(0,B1D.readXML)(Q);return{id:$,name:mK($),version:Y.version,rootPath:X,repository:Y.repository,xml:U.plugin}}catch(J){}return null}IS.resolvePlugin=zS;function HS(D){var $,J;return[...Object.keys(($=D.app.package.dependencies)!==null&&$!==void 0?$:{}),...Object.keys((J=D.app.package.devDependencies)!==null&&J!==void 0?J:{})]}IS.getDependencies=HS;function mK(D){return D=D.replace(/\//g,"_").replace(/-/g,"_").replace(/@/g,"").replace(/_\w/g,($)=>$[1].toUpperCase()),D.charAt(0).toUpperCase()+D.slice(1)}IS.fixName=mK;function N1D(D,$,J="capacitor"){if(D.length===0)return;let X,Y=D.length===1?"":"s";switch(J){case"cordova":X=`Found ${D.length} Cordova plugin${Y} for ${O2.default.strong($)}:
`;break;case"incompatible":X=`Found ${D.length} incompatible Cordova plugin${Y} for ${O2.default.strong($)}, skipped install:
`;break;case"capacitor":X=`Found ${D.length} Capacitor plugin${Y} for ${O2.default.strong($)}:
`;break}X+=D.map((Q)=>`${Q.id}${O2.default.weak(`@${Q.version}`)}`).join(`
`),I1D.logger.info(X)}IS.printPlugins=N1D;function lK(D,$){if(D.xml.platform)return D.xml.platform.filter(function(Y){return Y.$.name===$})[0];return[]}IS.getPluginPlatform=lK;function V1D(D,$,J){let X=lK(D,$);if(X){let Y=X[J];if(Y)return Y}return[]}IS.getPlatformElement=V1D;function w1D(D,$){var J,X,Y,Q;switch($){case"ios":return(X=(J=D.ios)===null||J===void 0?void 0:J.type)!==null&&X!==void 0?X:0;case"android":return(Q=(Y=D.android)===null||Y===void 0?void 0:Y.type)!==null&&Q!==void 0?Q:0}return 0}IS.getPluginType=w1D;function j1D(D,$){return dK(D,$,"js-module")}IS.getJSModules=j1D;function L1D(D,$){return dK(D,$,"asset")}IS.getAssets=L1D;function R1D(D,$,J){if(J.startsWith("node_modules")){let X=J.split("/").slice(1);if(X[0].startsWith("@"))X=[X[0]+"/"+X[1],...X.slice(2)];let Y=(0,GS.resolveNode)(D.app.rootDir,...X);if(!Y)throw Error(`Can't resolve module ${X[0]}`);return Y}return(0,hK.join)($.rootPath,J)}IS.getFilePath=R1D;function dK(D,$,J){let X=[];if(D.xml[J])X=X.concat(D.xml[J]);let Y=lK(D,$);if(Y===null||Y===void 0?void 0:Y[J])X=X.concat(Y[J]);return X}IS.getAllElements=dK});var MX=k((NS)=>{Object.defineProperty(NS,"__esModule",{value:!0});NS.isNXMonorepo=NS.isMonorepo=NS.findPackageRelativePathInMonorepo=NS.findPackagePath=NS.findNXMonorepoRoot=NS.findMonorepoRoot=void 0;var l5=XD("node:fs"),B1=XD("node:path");function RX(D){let $=(0,B1.join)(D,"package.json"),J=(0,B1.join)(D,"pnpm-workspace.yaml");if((0,l5.existsSync)(J)||(0,l5.existsSync)($)&&JSON.parse((0,l5.readFileSync)($,"utf-8")).workspaces)return D;let X=(0,B1.dirname)(D);if(X===D)throw Error("Monorepo root not found");return RX(X)}NS.findMonorepoRoot=RX;function iK(D){let $=(0,B1.join)(D,"nx.json");if((0,l5.existsSync)($))return D;let J=(0,B1.dirname)(D);if(J===D)throw Error("Monorepo root not found");return iK(J)}NS.findNXMonorepoRoot=iK;function cK(D,$,J){let X=(0,B1.join)($,"node_modules",D);if((0,l5.existsSync)(X))return X;if($===J)return null;let Y=(0,B1.dirname)($);return cK(D,Y,J)}NS.findPackagePath=cK;function g1D(D,$){let J=RX($),X=cK(D,$,J);if(X)return(0,B1.relative)($,X);return null}NS.findPackageRelativePathInMonorepo=g1D;function x1D(D){try{return RX(D),!0}catch($){return!1}}NS.isMonorepo=x1D;function f1D(D){try{return iK(D),!0}catch($){return!1}}NS.isNXMonorepo=f1D});var wS={};y0(wS,{default:()=>i1D});var i1D;var jS=S(()=>{i1D={}});var AX=k((RS)=>{Object.defineProperty(RS,"__esModule",{value:!0});RS.isInstalled=RS.getCommandOutput=RS.runCommand=void 0;var pK=(jS(),e6(wS));async function LS(D,$,J={}){let X=new pK.Subprocess(D,$,J);try{return await X.output()}catch(Y){if(Y instanceof pK.SubprocessError)throw Y.output?Y.output:Y.cause?`${Y.message} ${Y.cause.toString()}`:Y.code?Y.code:"Unknown error";throw Y}}RS.runCommand=LS;async function c1D(D,$,J={}){try{return(await LS(D,$,J)).trim()}catch(X){return null}}RS.getCommandOutput=c1D;async function p1D(D){try{await(0,pK.which)(D)}catch($){return!1}return!0}RS.isInstalled=p1D});var AS={};y0(AS,{validRange:()=>H4D,valid:()=>a1D,satisfies:()=>G4D,rcompare:()=>Y4D,patch:()=>J4D,parse:()=>o1D,outside:()=>I4D,neq:()=>W4D,minor:()=>$4D,minSatisfying:()=>z4D,maxSatisfying:()=>Z4D,major:()=>D4D,ltr:()=>O4D,lte:()=>q4D,lt:()=>U4D,intersects:()=>N4D,inc:()=>e1D,gtr:()=>B4D,gte:()=>K4D,gt:()=>Q4D,eq:()=>F4D,diff:()=>t1D,compare:()=>X4D,coerce:()=>V4D,clean:()=>s1D,SemVer:()=>j4D,Range:()=>w4D,Comparator:()=>L4D});var t1D=()=>null,o1D=()=>null,a1D=()=>null,s1D=()=>null,e1D=()=>null,D4D=()=>null,$4D=()=>null,J4D=()=>null,X4D=()=>0,Y4D=()=>0,Q4D=()=>!1,U4D=()=>!1,F4D=()=>!1,W4D=()=>!0,K4D=()=>!1,q4D=()=>!1,G4D=()=>!1,Z4D=()=>null,z4D=()=>null,H4D=()=>null,I4D=()=>!1,B4D=()=>!1,O4D=()=>!1,N4D=()=>!1,V4D=()=>null,w4D=class{},j4D=class{},L4D=class{};var yS=k((xS)=>{Object.defineProperty(xS,"__esModule",{value:!0});xS.parseApkNameFromFlavor=xS.checkJDKMajorVersion=xS.resolvePlatform=xS.checkPlatformVersions=xS.getAddedPlatforms=xS.getPlatformTargetName=xS.promptForPlatformTarget=xS.promptForPlatform=xS.isValidEnterprisePlatform=xS.getKnownEnterprisePlatforms=xS.isValidCommunityPlatform=xS.getKnownCommunityPlatforms=xS.isValidPlatform=xS.getKnownPlatforms=xS.selectPlatforms=xS.getProjectPlatformDirectory=xS.getCLIVersion=xS.getCoreVersion=xS.getCapacitorPackageVersion=xS.requireCapacitorPackage=xS.getCapacitorPackage=xS.runTask=xS.runPlatformHook=xS.runHooks=xS.wait=xS.checkAppName=xS.checkAppId=xS.checkAppDir=xS.checkAppConfig=xS.checkCapacitorPlatform=xS.checkPackage=xS.checkWebDir=xS.check=void 0;var i5=z$(),vS=kK(),O1=G2(),L4=XD("path"),iD=i5.__importDefault(Z2()),R4=wX(),TS=y5(),R4D=OS(),ES=MX(),d5=h5(),M4D=AX();async function A4D(D){let J=(await Promise.all(D.map((X)=>X()))).filter((X)=>X!=null);if(J.length>0)throw J.join(`
`)}xS.check=A4D;async function v4D(D){var $;if(($=D.app.extConfig.server)===null||$===void 0?void 0:$.url)return null;if(["",".","..","../","./"].includes(D.app.webDir))return`"${D.app.webDir}" is not a valid value for webDir`;if(!await(0,O1.pathExists)(D.app.webDirAbs))return`Could not find the web assets directory: ${iD.default.strong((0,vS.prettyPath)(D.app.webDirAbs))}.
Please create it and make sure it has an ${iD.default.strong("index.html")} file. You can change the path of this directory in ${iD.default.strong(D.app.extConfigName)} (${iD.default.input("webDir")} option). You may need to compile the web assets for your app (typically ${iD.default.input("npm run build")}). More info: ${iD.default.strong("https://capacitorjs.com/docs/basics/workflow#sync-your-project")}`;if(!await(0,O1.pathExists)((0,L4.join)(D.app.webDirAbs,"index.html")))return`The web assets directory (${iD.default.strong((0,vS.prettyPath)(D.app.webDirAbs))}) must contain an ${iD.default.strong("index.html")} file.
It will be the entry point for the web portion of the Capacitor app.`;return null}xS.checkWebDir=v4D;async function E4D(){if(!await(0,O1.pathExists)("package.json"))if(await(0,O1.pathExists)("project.json"))return null;else return`The Capacitor CLI needs to run at the root of an npm package or in a valid NX monorepo.
Make sure you have a package.json or project.json file in the directory where you run the Capacitor CLI.
More info: ${iD.default.strong("https://docs.npmjs.com/cli/init")}`;return null}xS.checkPackage=E4D;async function T4D(D,$){if(!await rK(D,$))return`Could not find the ${iD.default.input($)} platform.
You must install it in your project first, e.g. w/ ${iD.default.input(`npm install @capacitor/${$}`)}`;return null}xS.checkCapacitorPlatform=T4D;async function P4D(D){if(!D.app.appId)return`Missing ${iD.default.input("appId")} for new platform.
Please add it in ${D.app.extConfigName} or run ${iD.default.input("npx cap init")}.`;if(!D.app.appName)return`Missing ${iD.default.input("appName")} for new platform.
Please add it in ${D.app.extConfigName} or run ${iD.default.input("npx cap init")}.`;let $=await PS(D,D.app.appId);if($)return $;let J=await bS(D,D.app.appName);if(J)return J;return null}xS.checkAppConfig=P4D;async function b4D(D,$){if(!/^\S*$/.test($))return"Your app directory should not contain spaces";return null}xS.checkAppDir=b4D;async function PS(D,$){if(!$)return"Invalid App ID. App ID is required and cannot be blank.";if(/^[a-zA-Z][\w]*(?:\.[a-zA-Z][\w]*)+$/.test($.toLowerCase()))return null;return`
Invalid App ID "${$}". Your App ID must meet the following requirements to be valid on both iOS and Android:
- Must be in Java package form with no dashes (ex: com.example.app)
- It must have at least two segments (one or more dots).
- Each segment must start with a letter.
- All characters must be alphanumeric or an underscore [a-zA-Z][a-zA-Z0-9]+.
If you would like to skip validation, run "cap init" with the "--skip-appid-validation" flag.
`}xS.checkAppId=PS;async function bS(D,$){if(!($===null||$===void 0?void 0:$.length))return"Must provide an app name. For example: 'Spacebook'";return null}xS.checkAppName=bS;async function S4D(D){return new Promise(($)=>setTimeout($,D))}xS.wait=S4D;async function C4D(D,$,J,X){await nK(D,$,J,X);let Y=await(0,R4D.getPlugins)(D,$);for(let Q of Y)await nK(D,$,Q.rootPath,X)}xS.runHooks=C4D;async function nK(D,$,J,X){var Y;let{spawn:Q}=await Promise.resolve().then(()=>i5.__importStar(XD("child_process"))),U;if((0,ES.isNXMonorepo)(J))U=await(0,O1.readJSON)((0,L4.join)((0,ES.findNXMonorepoRoot)(J),"package.json"));else U=await(0,O1.readJSON)((0,L4.join)(J,"package.json"));let F=(Y=U.scripts)===null||Y===void 0?void 0:Y[X];if(!F)return;return new Promise((W,K)=>{let q=Q(F,{stdio:"inherit",shell:!0,cwd:J,env:{INIT_CWD:J,CAPACITOR_ROOT_DIR:D.app.rootDir,CAPACITOR_WEB_DIR:D.app.webDirAbs,CAPACITOR_CONFIG:JSON.stringify(D.app.extConfig),CAPACITOR_PLATFORM_NAME:$,...process.env}});q.on("close",(G)=>{if(G===0)W();else K(Error(`${X} hook on ${$} failed with error code: ${G} while running command: ${F}`))}),q.on("error",(G)=>{K(G)})})}xS.runPlatformHook=nK;async function k4D(D,$){let J=TS.output.createTaskChain();J.next(D);try{let X=await $();return J.end(),X}catch(X){throw J.fail(),X}}xS.runTask=k4D;async function rK(D,$){let J=(0,d5.resolveNode)(D.app.rootDir,`@capacitor/${$}`,"package.json");if(!J)return null;return(0,O1.readJSON)(J)}xS.getCapacitorPackage=rK;async function SS(D,$){let J=await rK(D,$);if(!J)(0,R4.fatal)(`Unable to find node_modules/@capacitor/${$}.
Are you sure ${iD.default.strong(`@capacitor/${$}`)} is installed?`);return J}xS.requireCapacitorPackage=SS;async function EX(D,$){return(await SS(D,$)).version}xS.getCapacitorPackageVersion=EX;async function CS(D){return EX(D,"core")}xS.getCoreVersion=CS;async function _4D(D){return EX(D,"cli")}xS.getCLIVersion=_4D;function u4D(D,$){switch($){case"android":return D.android.platformDirAbs;case"ios":return D.ios.platformDirAbs;case"web":return D.web.platformDirAbs}return null}async function vX(D,$){let J=u4D(D,$);if(J&&await(0,O1.pathExists)(J))return J;return null}xS.getProjectPlatformDirectory=vX;async function g4D(D,$){if($){let J=$.toLowerCase().trim();if(!await oK(J))(0,R4.fatal)(`Invalid platform: ${iD.default.input(J)}`);else if(!await vX(D,J)){if(J==="web")(0,R4.fatal)(`Could not find the web platform directory.
Make sure ${iD.default.strong(D.app.webDir)} exists.`);(0,R4.fatal)(`${iD.default.strong(J)} platform has not been added yet.
See the docs for adding the ${iD.default.strong(J)} platform: ${iD.default.strong(`https://capacitorjs.com/docs/${J}#adding-the-${J}-platform`)}`)}return[J]}return gS(D)}xS.selectPlatforms=g4D;async function tK(){return["web","android","ios"]}xS.getKnownPlatforms=tK;async function oK(D){return(await tK()).includes(D)}xS.isValidPlatform=oK;async function kS(){return["electron"]}xS.getKnownCommunityPlatforms=kS;async function x4D(D){return(await kS()).includes(D)}xS.isValidCommunityPlatform=x4D;async function _S(){return["windows"]}xS.getKnownEnterprisePlatforms=_S;async function f4D(D){return(await _S()).includes(D)}xS.isValidEnterprisePlatform=f4D;async function y4D(D,$,J){let{prompt:X}=await Promise.resolve().then(()=>i5.__importStar(e6(jX)));if(!J)return(await X([{type:"select",name:"mode",message:$,choices:D.map((U)=>({title:U,value:U}))}],{onCancel:()=>process.exit(1)})).mode.toLowerCase().trim();let Y=J.toLowerCase().trim();if(!await oK(Y)){let Q=await tK();(0,R4.fatal)(`Invalid platform: ${iD.default.input(Y)}.
Valid platforms include: ${Q.join(", ")}`)}return Y}xS.promptForPlatform=y4D;async function h4D(D,$,J,X){let{prompt:Y}=await Promise.resolve().then(()=>i5.__importStar(e6(jX))),Q=D.filter((W)=>W.id!==void 0);if(!$)if(Q.length===1)return Q[0];else return(await Y([{type:"select",name:"target",message:"Please choose a target device:",choices:Q.map((K)=>({title:`${uS(K)} (${K.id})`,value:K}))}],{onCancel:()=>process.exit(1)})).target;let U=$.trim(),F=D.find((W)=>{var K;if(X===!0){let q=(K=W.name)!==null&&K!==void 0?K:W.model;if(q)q=q.replace(/[\u2018\u2019]/g,"'").replace(/[\u201C\u201D]/g,'"');if(J)return q===U&&W.sdkVersion===J;return q===U}return W.id===U});if(!F){if(X){let W=U;if(J)W+=` [${J}]`;(0,R4.fatal)(`Invalid target name: ${iD.default.input(W)}.
Valid targets are:
${D.map((K)=>{var q;return`${(q=K.name)!==null&&q!==void 0?q:K.model} [${K.sdkVersion}]`}).join(`
`)}`)}(0,R4.fatal)(`Invalid target ID: ${iD.default.input(U)}.
Valid targets are:
${D.map((W)=>W.id).join(`
`)}`)}return F}xS.promptForPlatformTarget=h4D;function uS(D){var $,J,X;return`${(X=(J=($=D.name)!==null&&$!==void 0?$:D.model)!==null&&J!==void 0?J:D.id)!==null&&X!==void 0?X:"?"}${D.virtual?` (${D.platform==="ios"?"simulator":"emulator"})`:""}`}xS.getPlatformTargetName=uS;async function gS(D){let $=[];if(await vX(D,D.android.name))$.push(D.android.name);if(await vX(D,D.ios.name))$.push(D.ios.name);return $.push(D.web.name),$}xS.getAddedPlatforms=gS;async function m4D(D,$){let J=await Promise.resolve().then(()=>i5.__importStar(e6(AS))),X=await CS(D),Y=await EX(D,$);if(J.diff(X,Y)==="minor"||J.diff(X,Y)==="major")TS.logger.warn(`${iD.default.strong("@capacitor/core")}${iD.default.weak(`@${X}`)} version doesn't match ${iD.default.strong(`@capacitor/${$}`)}${iD.default.weak(`@${Y}`)} version.
Consider updating to a matching version, e.g. w/ ${iD.default.input(`npm install @capacitor/core@${Y}`)}`)}xS.checkPlatformVersions=m4D;function l4D(D,$){if($[0]!=="@"){let X=(0,d5.resolveNode)(D.app.rootDir,`@capacitor/${$}`,"package.json");if(X)return(0,L4.dirname)(X);let Y=(0,d5.resolveNode)(D.app.rootDir,`@capacitor-community/${$}`,"package.json");if(Y)return(0,L4.dirname)(Y);let Q=(0,d5.resolveNode)(D.app.rootDir,`@ionic-enterprise/capacitor-${$}`,"package.json");if(Q)return(0,L4.dirname)(Q)}let J=(0,d5.resolveNode)(D.app.rootDir,$,"package.json");if(J)return(0,L4.dirname)(J);return null}xS.resolvePlatform=l4D;async function d4D(){try{let D=await(0,M4D.runCommand)("java",["--version"]),J=RegExp(/([0-9]+)\.?([0-9]*)\.?([0-9]*)/).exec(D);if(J===null)return-1;let X=parseInt(J[1]),Y=parseInt(J[2]);if(typeof X==="number"&&X!=1)return X;else if(typeof Y==="number"&&X==1&&Y<9)return Y;else return-1}catch(D){return-1}}xS.checkJDKMajorVersion=d4D;function i4D(D){let $=D.replace(/([A-Z])/g,"-$1").toLowerCase();if($.startsWith("-"))$=$.replace("-","");return`app-${$?`${$}-`:""}debug.apk`}xS.parseApkNameFromFlavor=i4D});var lS=k((hS)=>{Object.defineProperty(hS,"__esModule",{value:!0});hS.tryFn=void 0;var R8D=async(D,...$)=>{try{return await D(...$)}catch{}return null};hS.tryFn=R8D});var aK=k((dS)=>{Object.defineProperty(dS,"__esModule",{value:!0});dS.formatJSObject=void 0;var M8D=z$(),A8D=M8D.__importDefault(XD("util"));function v8D(D){try{D=JSON.parse(JSON.stringify(D))}catch($){throw Error(`Cannot parse object as JSON: ${$.stack?$.stack:$}`)}return A8D.default.inspect(D,{compact:!1,breakLength:1/0,depth:1/0,maxArrayLength:1/0,maxStringLength:1/0})}dS.formatJSObject=v8D});var nS=k((cS)=>{Object.defineProperty(cS,"__esModule",{value:!0});cS.lazy=cS.LazyPromise=cS.allSerial=void 0;function E8D(D){return D.reduce(($,J)=>$.then((X)=>J().then((Y)=>X.concat(Y))),Promise.resolve([]))}cS.allSerial=E8D;class sK extends Promise{constructor(D){super(()=>{});this._executor=D}then(D,$){return this._promise=this._promise||new Promise(this._executor),this._promise.then(D,$)}catch(D){return this._promise=this._promise||new Promise(this._executor),this._promise.catch(D)}}cS.LazyPromise=sK;function T8D(D){return new sK(async($,J)=>{try{$(await D())}catch(X){J(X)}})}cS.lazy=T8D});var eS=k((aS)=>{Object.defineProperty(aS,"__esModule",{value:!0});aS.writeConfig=aS.loadConfig=aS.CONFIG_FILE_NAME_JSON=aS.CONFIG_FILE_NAME_JS=aS.CONFIG_FILE_NAME_TS=void 0;var Yq=z$(),S8D=Yq.__importDefault(qK()),d0=G2(),BD=XD("path"),A4=Yq.__importDefault(Z2()),C8D=yS(),TX=wX(),k8D=y5(),eK=lS(),_8D=aK(),rS=MX(),tS=h5(),M4=nS(),oS=AX(),Dq=(0,S8D.default)("capacitor:config");aS.CONFIG_FILE_NAME_TS="capacitor.config.ts";aS.CONFIG_FILE_NAME_JS="capacitor.config.js";aS.CONFIG_FILE_NAME_JSON="capacitor.config.json";async function u8D(){var D,$,J,X;let Y=process.cwd(),Q=(0,BD.dirname)(XD("path").dirname(XD("url").fileURLToPath(import.meta.url))),U=await y8D(Y),F=await(async()=>{var H,z;if((0,rS.isNXMonorepo)(Y)){let I=(0,rS.findNXMonorepoRoot)(Y),B=await(0,eK.tryFn)(d0.readJSON,(0,BD.resolve)(I,"package.json")),N=(H=B===null||B===void 0?void 0:B.devDependencies)!==null&&H!==void 0?H:{},V=(z=B===null||B===void 0?void 0:B.dependencies)!==null&&z!==void 0?z:{};return{devDependencies:N,dependencies:V}}return{}})(),W=(D=U.extConfig.appId)!==null&&D!==void 0?D:"",K=($=U.extConfig.appName)!==null&&$!==void 0?$:"",q=(J=U.extConfig.webDir)!==null&&J!==void 0?J:"www",G=await h8D(Q),Z={android:await m8D(Y,U.extConfig,G),ios:await l8D(Y,U.extConfig),web:await d8D(Y,q),cli:G,app:{rootDir:Y,appId:W,appName:K,webDir:q,webDirAbs:(0,BD.resolve)(Y,q),package:(X=await(0,eK.tryFn)(d0.readJSON,(0,BD.resolve)(Y,"package.json")))!==null&&X!==void 0?X:{name:K,version:"1.0.0",...F},...U}};return Dq("config: %O",Z),Z}aS.loadConfig=u8D;async function g8D(D,$){switch((0,BD.extname)($)){case".json":{await(0,d0.writeJSON)($,D,{spaces:2});break}case".ts":{await(0,d0.writeFile)($,o8D(D));break}}}aS.writeConfig=g8D;async function x8D(D,$,J){var X;try{let Y=(0,tS.resolveNode)(D,"typescript");if(!Y)(0,TX.fatal)(`Could not find installation of TypeScript.
To use ${A4.default.strong($)} files, you must install TypeScript in your project, e.g. w/ ${A4.default.input("npm install -D typescript")}`);let Q=XD(Y),U=await(0,tS.requireTS)(Q,J),F=U.default?await U.default:U;return{extConfigType:"ts",extConfigName:$,extConfigFilePath:J,extConfig:F}}catch(Y){if(!(0,TX.isFatal)(Y))(0,TX.fatal)(`Parsing ${A4.default.strong($)} failed.
${(X=Y.stack)!==null&&X!==void 0?X:Y}`);throw Y}}async function f8D(D,$,J){var X;try{return{extConfigType:"js",extConfigName:$,extConfigFilePath:J,extConfig:await XD(J)}}catch(Y){(0,TX.fatal)(`Parsing ${A4.default.strong($)} failed.
${(X=Y.stack)!==null&&X!==void 0?X:Y}`)}}async function y8D(D){var $;let J=(0,BD.resolve)(D,aS.CONFIG_FILE_NAME_TS);if(await(0,d0.pathExists)(J))return x8D(D,aS.CONFIG_FILE_NAME_TS,J);let X=(0,BD.resolve)(D,aS.CONFIG_FILE_NAME_JS);if(await(0,d0.pathExists)(X))return f8D(D,aS.CONFIG_FILE_NAME_JS,X);let Y=(0,BD.resolve)(D,aS.CONFIG_FILE_NAME_JSON);return{extConfigType:"json",extConfigName:aS.CONFIG_FILE_NAME_JSON,extConfigFilePath:Y,extConfig:($=await(0,eK.tryFn)(d0.readJSON,Y))!==null&&$!==void 0?$:{}}}async function h8D(D){let J=(0,BD.join)(D,"assets"),X="ios-spm-template.tar.gz",Y="capacitor-cordova-ios-plugins.tar.gz",Q="android-template.tar.gz",U="capacitor-cordova-android-plugins.tar.gz";return{rootDir:D,assetsDir:"assets",assetsDirAbs:J,assets:{ios:{platformTemplateArchive:"ios-spm-template.tar.gz",platformTemplateArchiveAbs:(0,BD.resolve)(J,"ios-spm-template.tar.gz"),cordovaPluginsTemplateArchive:"capacitor-cordova-ios-plugins.tar.gz",cordovaPluginsTemplateArchiveAbs:(0,BD.resolve)(J,"capacitor-cordova-ios-plugins.tar.gz")},android:{platformTemplateArchive:"android-template.tar.gz",platformTemplateArchiveAbs:(0,BD.resolve)(J,"android-template.tar.gz"),cordovaPluginsTemplateArchive:"capacitor-cordova-android-plugins.tar.gz",cordovaPluginsTemplateArchiveAbs:(0,BD.resolve)(J,"capacitor-cordova-android-plugins.tar.gz")}},package:await(0,d0.readJSON)((0,BD.resolve)(D,"package.json")).catch(()=>({name:"@capacitor/cli",version:"0.0.0"})),os:i8D(process.platform)}}async function m8D(D,$,J){var X,Y,Q,U,F,W,K,q,G,Z,H,z,I,B,N,V,O;let j="android",v=(Y=(X=$.android)===null||X===void 0?void 0:X.path)!==null&&Y!==void 0?Y:"android",A=(0,BD.resolve)(D,v),C="app",u="app/src",_="app/src/main",y="app/src/main/assets",E="app/src/main/assets/public",d="app/src/main/res",c="app/build/outputs/apk/",p=((Q=$.android)===null||Q===void 0?void 0:Q.flavor)||"";if((U=$.android)===null||U===void 0?void 0:U.flavor)c=`${c}/${(F=$.android)===null||F===void 0?void 0:F.flavor}`;let o=(0,C8D.parseApkNameFromFlavor)(p),R=`${c}/debug`,w="capacitor-cordova-android-plugins",L=(0,M4.lazy)(()=>n8D(J.os)),P={keystorePath:(K=(W=$.android)===null||W===void 0?void 0:W.buildOptions)===null||K===void 0?void 0:K.keystorePath,keystorePassword:(G=(q=$.android)===null||q===void 0?void 0:q.buildOptions)===null||G===void 0?void 0:G.keystorePassword,keystoreAlias:(H=(Z=$.android)===null||Z===void 0?void 0:Z.buildOptions)===null||H===void 0?void 0:H.keystoreAlias,keystoreAliasPassword:(I=(z=$.android)===null||z===void 0?void 0:z.buildOptions)===null||I===void 0?void 0:I.keystoreAliasPassword,signingType:(N=(B=$.android)===null||B===void 0?void 0:B.buildOptions)===null||N===void 0?void 0:N.signingType,releaseType:(O=(V=$.android)===null||V===void 0?void 0:V.buildOptions)===null||O===void 0?void 0:O.releaseType};return{name:"android",minVersion:"24",studioPath:L,platformDir:v,platformDirAbs:A,cordovaPluginsDir:w,cordovaPluginsDirAbs:(0,BD.resolve)(A,w),appDir:"app",appDirAbs:(0,BD.resolve)(A,"app"),srcDir:"app/src",srcDirAbs:(0,BD.resolve)(A,"app/src"),srcMainDir:"app/src/main",srcMainDirAbs:(0,BD.resolve)(A,"app/src/main"),assetsDir:"app/src/main/assets",assetsDirAbs:(0,BD.resolve)(A,"app/src/main/assets"),webDir:"app/src/main/assets/public",webDirAbs:(0,BD.resolve)(A,"app/src/main/assets/public"),resDir:"app/src/main/res",resDirAbs:(0,BD.resolve)(A,"app/src/main/res"),apkName:o,buildOutputDir:R,buildOutputDirAbs:(0,BD.resolve)(A,R),flavor:p,buildOptions:P}}async function l8D(D,$){var J,X,Y,Q,U,F,W,K,q,G,Z,H;let z="ios",I=(X=(J=$.ios)===null||J===void 0?void 0:J.path)!==null&&X!==void 0?X:"ios",B=(0,BD.resolve)(D,I),N=(Q=(Y=$.ios)===null||Y===void 0?void 0:Y.scheme)!==null&&Q!==void 0?Q:"App",V="App",O=(0,BD.resolve)(B,"App"),j="App/App",v=(0,BD.resolve)(B,"App/App"),A="App/App.xcodeproj",C=(0,BD.resolve)(B,"App/App.xcodeproj"),u=(0,M4.lazy)(()=>c8D(O)),_=(0,M4.lazy)(()=>r8D()),y=(0,M4.lazy)(()=>t8D(D,B,O)),E=(0,M4.lazy)(()=>p8D(O,v,C)),d="capacitor-cordova-ios-plugins",c={exportMethod:(F=(U=$.ios)===null||U===void 0?void 0:U.buildOptions)===null||F===void 0?void 0:F.exportMethod,xcodeSigningStyle:(K=(W=$.ios)===null||W===void 0?void 0:W.buildOptions)===null||K===void 0?void 0:K.signingStyle,signingCertificate:(G=(q=$.ios)===null||q===void 0?void 0:q.buildOptions)===null||G===void 0?void 0:G.signingCertificate,provisioningProfile:(H=(Z=$.ios)===null||Z===void 0?void 0:Z.buildOptions)===null||H===void 0?void 0:H.provisioningProfile};return{name:"ios",minVersion:"15.0",platformDir:I,platformDirAbs:B,scheme:N,cordovaPluginsDir:"capacitor-cordova-ios-plugins",cordovaPluginsDirAbs:(0,BD.resolve)(B,"capacitor-cordova-ios-plugins"),nativeProjectDir:"App",nativeProjectDirAbs:O,nativeTargetDir:"App/App",nativeTargetDirAbs:v,nativeXcodeProjDir:"App/App.xcodeproj",nativeXcodeProjDirAbs:C,nativeXcodeWorkspaceDir:(0,M4.lazy)(async()=>(0,BD.relative)(B,await u)),nativeXcodeWorkspaceDirAbs:u,webDir:(0,M4.lazy)(async()=>(0,BD.relative)(B,await E)),webDirAbs:E,podPath:_,packageManager:y,buildOptions:c}}async function d8D(D,$){let J=$,X=(0,BD.resolve)(D,J);return{name:"web",platformDir:J,platformDirAbs:X}}function i8D(D){switch(D){case"darwin":return"mac";case"win32":return"windows";case"linux":return"linux"}return"unknown"}async function c8D(D){return(0,BD.resolve)(D,"App.xcworkspace")}async function p8D(D,$,J){let X=/path\s=\spublic[\s\S]+?sourceTree\s=\s([^;]+)/,Y=(0,BD.resolve)(J,"project.pbxproj");try{let U=(await(0,d0.readFile)(Y,{encoding:"utf8"})).match(X);if(U&&U[1]==="SOURCE_ROOT")return k8D.logger.warn(`Using the iOS project root for the ${A4.default.strong("public")} directory is deprecated.
Please follow the Upgrade Guide to move ${A4.default.strong("public")} inside the iOS target directory: ${A4.default.strong("https://capacitorjs.com/docs/updating/3-0#move-public-into-the-ios-target-directory")}`),(0,BD.resolve)(D,"public")}catch(Q){}return(0,BD.resolve)($,"public")}async function n8D(D){if(process.env.CAPACITOR_ANDROID_STUDIO_PATH)return process.env.CAPACITOR_ANDROID_STUDIO_PATH;switch(D){case"mac":return"/Applications/Android Studio.app";case"windows":{let{runCommand:$}=await Promise.resolve().then(()=>Yq.__importStar(AX())),J="C:\\Program Files\\Android\\Android Studio\\bin\\studio64.exe";try{if(!await(0,d0.pathExists)(J)){let X=await $("REG",["QUERY","HKEY_LOCAL_MACHINE\\SOFTWARE\\Android Studio","/v","Path"]);X=X.replace(/(\r\n|\n|\r)/gm,"");let Y=X.indexOf("REG_SZ");if(Y>0)J=X.substring(Y+6).trim()+"\\bin\\studio64.exe"}}catch(X){Dq("Error checking registry for Android Studio path: %O",X);break}return J}case"linux":{try{if(await(0,d0.pathExists)("/usr/local/android-studio/bin/studio"))return"/usr/local/android-studio/bin/studio"}catch(X){Dq("Error checking for studio executable: %O",X)}return"/usr/local/android-studio/bin/studio.sh"}}return""}async function r8D(){if(process.env.CAPACITOR_COCOAPODS_PATH)return process.env.CAPACITOR_COCOAPODS_PATH;return"pod"}async function t8D(D,$,J){if((0,d0.existsSync)((0,BD.resolve)(J,"CapApp-SPM")))return"SPM";if(process.env.CAPACITOR_COCOAPODS_PATH)return"Cocoapods";let X="";if(await(0,d0.pathExists)((0,BD.resolve)(D,"Gemfile")))X=(0,BD.resolve)(D,"Gemfile");else if(await(0,d0.pathExists)((0,BD.resolve)($,"Gemfile")))X=(0,BD.resolve)($,"Gemfile");else if(await(0,d0.pathExists)((0,BD.resolve)(J,"Gemfile")))X=(0,BD.resolve)(J,"Gemfile");if(X=="")try{let Q=await(0,oS.getCommandOutput)("git",["rev-parse","--show-toplevel"],{cwd:D});if(Q!=null)X=(0,BD.resolve)(Q,"Gemfile")}catch(Q){}try{let Q=(await(0,d0.readFile)(X)).toString();if(!Q)return"Cocoapods";if(new RegExp(/gem\s+['"]cocoapods/).test(Q)&&await(0,oS.isInstalled)("bundle"))return"bundler";else return"Cocoapods"}catch{return"Cocoapods"}}function o8D(D){return`import type { CapacitorConfig } from '@capacitor/cli';
const config: CapacitorConfig = ${(0,_8D.formatJSObject)(D)};
export default config;
`}});var PX,N1,DC,$C,JC,XC,YC,QC,UC,FC,Qq,Uq;var Fq=S(()=>{PX=j$(eS(),1),N1=j$(MX(),1),DC=j$(aK(),1),$C=j$(h5(),1),JC=$C.requireTS,XC=DC.formatJSObject,YC=PX.loadConfig,QC=PX.writeConfig,UC=N1.findMonorepoRoot,FC=N1.findNXMonorepoRoot,Qq=N1.isMonorepo,Uq=N1.isNXMonorepo});import{Buffer as WC}from"node:buffer";import{createHash as s8D}from"node:crypto";function D2D(D){let $=4294967295;for(let J=0;J<D.length;J++){let X=D[J];$=e8D[($^X)&255]^$>>>8}return $=$^4294967295,($>>>0).toString(16).padStart(8,"0")}async function KC(D,$="sha256"){let J=WC.isBuffer(D)?D:WC.from(D);if($==="crc32")return D2D(J);let X=s8D($);return X.update(J),X.digest("hex")}var e8D;var qC=S(()=>{e8D=(()=>{let D=[];for(let $=0;$<256;$++){let J=$;for(let X=0;X<8;X++)J=J&1?3988292384^J>>>1:J>>>1;D[$]=J}return D})()});import{AsyncLocalStorage as $2D}from"node:async_hooks";import{existsSync as Gq,realpathSync as GC,statSync as IC}from"node:fs";import{readFile as J2D,writeFile as X2D}from"node:fs/promises";import{createRequire as Zq}from"node:module";import{basename as Y2D,extname as zq,isAbsolute as Q2D,relative as U2D,resolve as N2,sep as F2D}from"node:path";import{cwd as Wq}from"node:process";import{pathToFileURL as ZC}from"node:url";function bX(D,$,J=!1){if(J){let X=$?.path;lD.error(typeof X==="string"?`${D}: ${X}`:D)}throw new xD(D,$)}function KRD(D){BC=D}function Kq(){let D=OC.getStore();return D===void 0?BC:D.filePath}function qRD(D,$){return OC.run({filePath:D},$)}function GRD(D,$=Wq(),J){let X=J?.logError??!1;if(D===void 0)return;if(!D.trim())bX("Capacitor config path must not be empty",void 0,X);let Y=N2($,D);if(!Gq(Y)||!IC(Y).isFile())bX("Capacitor config path does not exist",{path:Y},X);if(!W2D.test(Y2D(Y)))bX("Capacitor config path must point to a capacitor.config.*.ts, capacitor.config.*.js, or capacitor.config.*.json file",{path:Y},X);let Q=GC($),U=GC(Y),F=U2D(Q,U);if(F===".."||F.startsWith(`..${F2D}`)||Q2D(F))bX("Capacitor config path must stay within the current working directory",{path:Y},X);return U}function qq(D){if(D===null||typeof D!=="object")return!1;let $=D;return typeof $.transpileModule==="function"&&typeof $.ModuleKind?.CommonJS==="number"}function q2D(D){for(let $ of K2D){let J=N2(D,$);if(Gq(J)&&IC(J).isFile())return J}return}function G2D(D){let $=N2(D,"package.json");try{return Zq(Gq($)?$:N2(D,"capacitor.config.ts"))("typescript")}catch{return}}function Z2D(D){return!qq(G2D(D))}function z2D(){if(SX===void 0)try{SX=Zq(import.meta.url)("typescript")}catch{SX=null}return SX}function HC(){if(process.versions.bun)return!0;let D=Number(process.versions.node.split(".")[0]);return Number.isFinite(D)&&D>=22}async function NC(D){let $=zq(D);if($===".json")return JSON.parse(await J2D(D,"utf8"));let J=Zq(D);if($===".js"){let F=J(D),W=F.default??F;return typeof W==="function"?await W():await W}let X;try{X=J("typescript")}catch{X=void 0}let Y=qq(X)?X:z2D(),Q;if(qq(Y))try{Q=await Promise.resolve(JC(Y,D))}catch(F){if(!HC())throw F;Q=await zC(ZC(N2(D)).href)}else if(HC())Q=await zC(ZC(N2(D)).href);else throw Error("Could not load a usable TypeScript compiler for the Capacitor config");let U=Q.default??Q;return typeof U==="function"?await U():await U}async function H2D(D,$){if(zq($)===".js"){let J=`/** @type {import('@capacitor/cli').CapacitorConfig} */
const config = ${XC(D)}
module.exports = config
`;await X2D($,J);return}await QC(D,$)}async function Hq(){let D=q2D(Wq());if(D&&zq(D)===".ts"&&Z2D(Wq()))return{config:await NC(D),path:Kq()??D};let $=await YC();return{config:$.app.extConfig,path:Kq()??$.app.extConfigFilePath}}async function Iq(){let D=Kq();if(D)return{config:await NC(D),path:D};return Hq()}async function Bq(D,$,J=!1){let X=await Iq();if(!X)return;let{config:Y}=X;if(Y){if(!Y.plugins)Y.plugins={extConfig:{},[D]:{}};if(!Y.plugins[D])Y.plugins[D]={};if(!J)Y.plugins[D]=$.config.plugins?.[D];else Y=$.config;await H2D(Y,X.path)}}async function ZRD(D,$=!1){await Bq("CapacitorUpdater",D,$)}var zC,BC,OC,W2D,K2D,SX;var VC=S(()=>{$1();Fq();p1();zC=Function("specifier","return import(specifier)"),OC=new $2D,W2D=/^capacitor\.config(?:\.[^.]+)*\.(?:ts|js|json)$/;K2D=["capacitor.config.ts","capacitor.config.js","capacitor.config.json"]});import{writeSync as I2D}from"node:fs";import{performance as B2D}from"node:perf_hooks";import{env as jC}from"node:process";import{parentPort as wC,threadId as O2D}from"node:worker_threads";function LC(D){try{if(wC)wC.postMessage({type:"setup-debug",line:D});else I2D(2,`${D}
`)}catch{}}function A$(D,$={}){if(jC.CAPGO_SETUP_DEBUG!=="1")return;let J=Object.entries({thread:O2D,...$}).filter(([,X])=>X!==void 0).map(([X,Y])=>`${X}=${Y}`).join(" ");LC(`[setup-debug +${Math.round(B2D.now())}ms] ${D} ${J}`)}function NRD(D){if(jC.CAPGO_SETUP_DEBUG==="1"&&D?.type==="setup-debug"&&typeof D.line==="string"&&D.line.startsWith("[setup-debug "))LC(D.line)}function c5(D){let $=D instanceof Error?D.name:"",X=(D instanceof Error?D.cause:void 0)?.code,Y=typeof X==="string"&&["ENOTFOUND","ECONNRESET","ECONNREFUSED","ETIMEDOUT","UND_ERR_CONNECT_TIMEOUT","CERT_HAS_EXPIRED","UNABLE_TO_VERIFY_LEAF_SIGNATURE"].includes(X)?X:void 0;return[["AbortError","TimeoutError","TypeError","SyntaxError","Error"].includes($)?$:"unknown",Y].filter(Boolean).join(":")}var Oq=()=>{};function MC(D){RC.add(D)}function wRD(D){return RC.has(D)}var RC;var AC=S(()=>{RC=new Set});function V1(D){let $=D.length;while($>0&&D[$-1]==="/")$-=1;return D.slice(0,$)}import{randomUUID as vC}from"node:crypto";import{existsSync as N2D,mkdirSync as V2D,readFileSync as w2D,writeFileSync as j2D}from"node:fs";import{homedir as Vq,platform as L2D,release as R2D}from"node:os";import{join as EC}from"node:path";import{arch as M2D,cwd as TC,env as v4,version as A2D}from"node:process";function p5(D){return D==="1"||D?.toLowerCase()==="true"||D?.toLowerCase()==="yes"}function b2D(){if(p5(v4.CAPGO_DISABLE_TELEMETRY)||p5(v4.CAPGO_DISABLE_POSTHOG))return;return v4.CAPGO_CLI_POSTHOG_API_KEY?.trim()||v4.POSTHOG_API_KEY?.trim()||E2D}function S2D(D){let $=V1(D);if($.endsWith("/i/v0/e"))return`${$}/`;let J=$.replace(/\/capture$/,"/");return new URL("i/v0/e/",J.endsWith("/")?J:`${J}/`).toString()}function C2D(D){if(D instanceof Error)return{cause:D.cause,message:D.message,name:D.name||"Error",stack:D.stack};if(typeof D==="string")return{message:D,name:"Error",stack:void 0};try{return{message:JSON.stringify(D)??String(D),name:"Error",stack:void 0}}catch{return{message:String(D),name:"Error",stack:void 0}}}function k2D(D){let $=D,J=TC(),X=Vq();if(J)$=$.replaceAll(J,"<cwd>");if(X)$=$.replaceAll(X,"~");return $}function _2D(D){let $=D,J=TC(),X=Vq();if(J)$=$.replaceAll(J,"<cwd>");if(X)$=$.replaceAll(X,"~");return $.replace(/<cwd>\/[^\s"',)]+/g,"<cwd>/<path>").replace(/~\/[^\s"',)]+/g,"~/<path>").replace(/[\w.%+-]+@[\w.-]+\.[A-Z]{2,}/gi,"<email>").replace(/(https?:\/\/)([^/\s:@]+):([^/\s@]+)@/gi,"$1<redacted>@").replace(/\b[a-z][\w-]*(?:\.[\w-]+){1,}\b/gi,"<app_id>").replace(/\b[a-z]:\\[^\s"',)]+/gi,"<path>").replace(/(^|[\s"'(])\/[^\s"',)]+/g,"$1<path>").replace(/(--(?:token|api[-_]?key|key|password|secret|private[-_]?key|jwt|session|auth)(?:=|\s+))("[^"]+"|'[^']+'|\S+)/gi,"$1<redacted>").replace(/\b((?:token|api[-_]?key|password|secret|authorization)\s*[:=]\s*)[^\s,;]+/gi,"$1<redacted>")}function u2D(D,$){let J=D?.split(`
`).slice(1).map((X)=>{let Y=X.trim(),Q=Y.startsWith("at ")?Y.slice(3):Y,U=$,F=Q,W=Q.lastIndexOf(" (");if(W!==-1&&Q.endsWith(")"))U=Q.slice(0,W).trim()||$,F=Q.slice(W+2,-1);else{let G=Q.lastIndexOf(" "),Z=G===-1?"":Q.slice(G+1);if(/:\d+:\d+$/.test(Z))U=Q.slice(0,G).trim()||$,F=Z}let K=F.lastIndexOf(":"),q=K===-1?-1:F.lastIndexOf(":",K-1);if(K===-1||q===-1)return{function:$,platform:"custom",lang:"javascript"};return{function:U,filename:k2D(F.slice(0,q)),lineno:Number.parseInt(F.slice(q+1,K),10),colno:Number.parseInt(F.slice(K+1),10),platform:"custom",lang:"javascript"}}).filter(Boolean);return J&&J.length>0?J:[{function:$,platform:"custom",lang:"javascript"}]}function g2D(D){if(!D||typeof D!=="object"||!("code"in D))return;let{code:$}=D;return typeof $==="string"?$:void 0}function f2D(D){if(!D||typeof D!=="object")return;let $=D;if(typeof $.status==="number")return $.status;if(typeof $.statusCode==="number")return $.statusCode;let J=$.context&&typeof $.context==="object"?$.context.status:void 0;return typeof J==="number"?J:void 0}function y2D(D){let $=(D instanceof Error?D.message:typeof D==="string"?D:"").toLowerCase();if(x2D.some((J)=>$.includes(J)))return!0;return f2D(D)===401}function PC(D){if(D instanceof xD){if(P2D.has(D.message))return!0;return!1}if(y2D(D))return!1;return!g2D(D)?.startsWith("commander.")}function SRD(D){let $=[],J=D;while(J?.parent){let X=J.name();if(X)$.push(X);J=J.parent}return $.reverse().join(" ")||"unknown"}function h2D(D=EC(Vq(),".capgo-credentials")){if(Nq)return Nq;let $=EC(D,"install-id"),J;try{let X=N2D($)?w2D($,"utf8").trim():"";if(X)J=X;else J=vC(),V2D(D,{recursive:!0}),j2D($,J,{encoding:"utf8",mode:384})}catch{J=vC()}return Nq=J,J}async function bC(D){let $=b2D();if(!$)return!1;let J=v4.CAPGO_CLI_POSTHOG_API_HOST?.trim()||v4.POSTHOG_API_HOST?.trim()||v2D,X;try{X=S2D(J)}catch{return!1}let Y=C2D(D.error),Q=_2D(Y.message),U=h2D(),F=u2D(Y.stack,D.functionName),W=[D.functionName,D.kind,Y.name||"Error",String(D.status??1)].join(":"),K={token:$,event:"$exception",properties:{distinct_id:U,$exception_list:[{type:Y.name||"Error",value:Q,mechanism:{handled:!0,synthetic:!1},stacktrace:{type:"raw",frames:F}}],$exception_fingerprint:W,architecture:M2D,cli_version:o$.version,error_kind:D.kind,function_name:D.functionName,is_ci:Boolean(v4.CI),node_version:A2D,os_platform:L2D(),os_release:R2D(),runtime:"cli",status:D.status},timestamp:new Date().toISOString()};try{let q=new AbortController,G=setTimeout(()=>q.abort(),T2D);try{return(await fetch(X,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(K),signal:q.signal})).ok}finally{clearTimeout(G)}}catch{return!1}}var v2D="https://eu.i.posthog.com/i/v0/e/",E2D="phc_NXDyDajQaTQVwb25DEhIVZfxVUn4R0Y348Z7vWYHZUi",T2D=1500,wq="iOS sync validation failed. Delete your iOS folder, then rerun the add and sync commands above and retry.",P2D,x2D,Nq;var jq=S(()=>{I8();p1();P2D=new Set([wq]);x2D=["invalid_apikey","invalid apikey","no_key_provided","no key provided","invalid api key or insufficient permissions","does not exist, run first"]});import{env as m2D}from"node:process";function i2D(D,$){return`${D} ${$.join(" ")}`}function c2D(D){let[$=""]=D.npm_config_user_agent?.trim().toLowerCase().split(/\s+/,1)??[],[J,X]=$.split("/",2);if(J==="bun")return"bunx";if(J==="pnpm")return"pnpm dlx";if(J==="yarn"){let Q=Number.parseInt(X??"",10);return Number.isNaN(Q)||Q<2?"npx -y":"yarn dlx"}if(J==="npm")return"npx -y";let Y=D.npm_execpath?.toLowerCase()??"";if(Y.includes("pnpm"))return"pnpm dlx";if(Y.includes("yarn"))return"npx -y";if(Y.includes("bun"))return"bunx";return"npx -y"}function SC(D=m2D){return i2D(c2D(D),["@capgo/cli@latest","login"])}function _RD(D){let $=D.trim().replaceAll(l2D," ");if(!d2D.has($))throw Error(`Unsupported package manager runner: "${D}"`);let J=$.split(" ").map((Q)=>Q.trim()).filter(Boolean),[X=D,...Y]=J;return{command:X,args:Y}}var l2D,d2D;var CC=S(()=>{l2D=/\s+/g,d2D=new Set(["bunx","npx","pnpm exec","yarn dlx"])});var h={};y0(h,{unwrapMessage:()=>V2,uint8ArrayToHex:()=>N9D,uint8ArrayToBase64url:()=>B9D,uint8ArrayToBase64:()=>yC,toZod:()=>n5,stringifyPrimitive:()=>m,slugify:()=>Mq,shallowClone:()=>t5,safeExtend:()=>K9D,required:()=>Z9D,rawShape:()=>R2,randomString:()=>J9D,propertyKeyTypes:()=>o5,promiseAllObject:()=>$9D,primitiveTypes:()=>vq,prefixIssues:()=>I$,pick:()=>U9D,partial:()=>G9D,parsedType:()=>l,own:()=>j1,optionalKeys:()=>Eq,omit:()=>F9D,objectClone:()=>a2D,numKeys:()=>X9D,nullish:()=>CX,normalizeParams:()=>n,mergeDefs:()=>X6,merge:()=>q9D,members:()=>Pq,jsonStringifyReplacer:()=>j2,joinValues:()=>b,issue:()=>M2,isPlainObject:()=>i$,isObject:()=>T4,installLazyProp:()=>R9D,hide:()=>$7,hexToUint8Array:()=>O9D,getSizableOrigin:()=>e5,getParsedType:()=>Y9D,getLengthableOrigin:()=>D7,getEnumValues:()=>w2,getElementAtPath:()=>D9D,floatSafeRemainder:()=>r5,finalizeIssue:()=>B$,extend:()=>W9D,explicitlyAborted:()=>Tq,escapeRegex:()=>c$,esc:()=>$$,derived:()=>V9D,defineLazyInternal:()=>wD,defineLazy:()=>Rq,createTransparentProxy:()=>Q9D,constantCatch:()=>bq,codePointLength:()=>P4,cloneDef:()=>e2D,clone:()=>fD,cleanRegex:()=>f6,cleanEnum:()=>H9D,captureStackTrace:()=>kX,cached:()=>L2,base64urlToUint8Array:()=>I9D,base64ToUint8Array:()=>fC,attachSchema:()=>uX,assignProp:()=>k0,assertNotEqual:()=>n2D,assertNever:()=>t2D,assertIs:()=>r2D,assertEqual:()=>p2D,assert:()=>o2D,allowsEval:()=>Aq,aborted:()=>J$,NUMBER_FORMAT_RANGES:()=>a5,Class:()=>hC,CONSTANT_CATCH:()=>gX,BIGINT_FORMAT_RANGES:()=>s5});function p2D(D){return D}function n2D(D){return D}function n5(){return(D)=>D}function r2D(D){}function t2D(D){throw Error("Unexpected value in exhaustive check")}function o2D(D){}function w2(D){let $=Object.values(D).filter((X)=>typeof X==="number");return Object.entries(D).filter(([X,Y])=>$.indexOf(+X)===-1).map(([X,Y])=>Y)}function b(D,$="|"){return D.map((J)=>m(J)).join($)}function j2(D,$){if(typeof $==="bigint")return $.toString();return $}class _C{constructor(D){this._getter=D,this._value=void 0}get value(){let D=this._getter;if(D!==void 0)this._value=D(),this._getter=void 0;return this._value}}function L2(D){return new _C(D)}function CX(D){return D===null||D===void 0}function f6(D){let $=D.startsWith("^")?1:0,J=D.endsWith("$")?D.length-1:D.length;return D.slice($,J)}function r5(D,$){let J=D/$,X=Math.round(J),Y=4*Number.EPSILON*Math.max(Math.abs(J),1);if(Math.abs(J-X)<Y)return 0;return J-X}function Rq(D,$,J){let X=void 0;Object.defineProperty(D,$,{get(){if(X===kC)return;if(X===void 0)X=kC,X=J();return X},set(Y){Object.defineProperty(D,$,{value:Y})},configurable:!0})}function a2D(D){return Object.create(Object.getPrototypeOf(D),Object.getOwnPropertyDescriptors(D))}function k0(D,$,J){Object.defineProperty(D,$,{value:J,writable:!0,enumerable:!0,configurable:!0})}function R2(D){let $=Object.getOwnPropertyDescriptor(D,"shape");return $?.get?$.get.raw:$?.value}function x6(D){return R2(D._zod.def)??D._zod.def.shape}function uC(D,$,J){Object.defineProperty(D,$,{get(){let X=J();return k0(this,$,X),X},enumerable:!0,configurable:!0})}function gC(D,$,J){if($ in D)k0(D,$,J);else D[$]=J}function E4(D,$,J,X){let Y=x6($);for(let Q of J){let U=Object.getOwnPropertyDescriptor(Y,Q);if(!U.enumerable)continue;if(U.get)uC(D,Q,()=>{let F=$._zod.def.shape[Q];return X?X(F,Q):F});else gC(D,Q,X?X(U.value,Q):U.value)}}function s2D(D,$){for(let J of Reflect.ownKeys($)){let X=Object.getOwnPropertyDescriptor($,J);if(!X.enumerable)continue;if(X.get)uC(D,J,()=>$[J]);else gC(D,J,X.value)}}function X6(...D){let $={};for(let J of D){let X=Object.getOwnPropertyDescriptors(J);Object.assign($,X)}return Object.defineProperties({},$)}function e2D(D){return X6(D._zod.def)}function D9D(D,$){if(!$)return D;return $.reduce((J,X)=>J?.[X],D)}function $9D(D){let $=Object.keys(D),J=$.map((X)=>D[X]);return Promise.all(J).then((X)=>{let Y={};for(let Q=0;Q<$.length;Q++)Y[$[Q]]=X[Q];return Y})}function J9D(D=10){let J="";for(let X=0;X<D;X++)J+="abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random()*26)];return J}function $$(D){return JSON.stringify(D)}function Mq(D){return D.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function T4(D){return typeof D==="object"&&D!==null&&!Array.isArray(D)}function i$(D){if(T4(D)===!1)return!1;let $=D.constructor;if($===void 0)return!0;if(typeof $!=="function")return!0;let J=$.prototype;if(T4(J)===!1)return!1;if(Object.prototype.hasOwnProperty.call(J,"isPrototypeOf")===!1)return!1;return!0}function t5(D){if(i$(D))return{...D};if(Array.isArray(D))return[...D];if(D instanceof Map)return new Map(D);if(D instanceof Set)return new Set(D);return D}function X9D(D){let $=0;for(let J in D)if(Object.prototype.hasOwnProperty.call(D,J))$++;return $}function c$(D){return D.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function fD(D,$,J){let X=new D._zod.constr($??D._zod.def);if(!$||J?.parent)X._zod.parent=D;return X}function n(D){let $=D;if(!$)return{};if(typeof $==="string")return{error:()=>$};if($?.message!==void 0){if($?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");$.error=$.message}if(delete $.message,typeof $.error==="string")return{...$,error:()=>$.error};return $}function Q9D(D){let $;return new Proxy({},{get(J,X,Y){return $??($=D()),Reflect.get($,X,Y)},set(J,X,Y,Q){return $??($=D()),Reflect.set($,X,Y,Q)},has(J,X){return $??($=D()),Reflect.has($,X)},deleteProperty(J,X){return $??($=D()),Reflect.deleteProperty($,X)},ownKeys(J){return $??($=D()),Reflect.ownKeys($)},getOwnPropertyDescriptor(J,X){return $??($=D()),Reflect.getOwnPropertyDescriptor($,X)},defineProperty(J,X,Y){return $??($=D()),Reflect.defineProperty($,X,Y)}})}function m(D){if(typeof D==="bigint")return D.toString()+"n";if(typeof D==="string")return`"${D}"`;return`${D}`}function Eq(D){return Object.keys(D).filter(($)=>{return D[$]._zod.optin!==void 0&&D[$]._zod.optout==="optional"})}function U9D(D,$){let J=D._zod.def,X=J.checks;if(X&&X.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let Q={};return E4(Q,D,_X(D,$)),fD(D,X6(J,{shape:Q,checks:[]}))}function _X(D,$){let J=x6(D),X=[];for(let Y of Reflect.ownKeys($)){if(!Object.getOwnPropertyDescriptor(J,Y)?.enumerable)throw Error(`Unrecognized key: "${String(Y)}"`);if($[Y])X.push(Y)}return X}function F9D(D,$){let J=D._zod.def,X=J.checks;if(X&&X.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let Q=new Set(_X(D,$)),U={};return E4(U,D,Reflect.ownKeys(x6(D)).filter((F)=>!Q.has(F))),fD(D,X6(J,{shape:U,checks:[]}))}function W9D(D,$){if(!i$($))throw Error("Invalid input to extend: expected a plain object");let J=D._zod.def.checks;if(J&&J.length>0){let Y=x6(D);for(let Q of Reflect.ownKeys($))if(Object.getOwnPropertyDescriptor(Y,Q)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return fD(D,X6(D._zod.def,{shape:xC(D,$)}))}function xC(D,$){let J={};return E4(J,D,Reflect.ownKeys(x6(D))),s2D(J,$),J}function K9D(D,$){if(!i$($))throw Error("Invalid input to safeExtend: expected a plain object");return fD(D,X6(D._zod.def,{shape:xC(D,$)}))}function q9D(D,$){if(!$?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(D._zod.def.checks?.length)throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let J={};E4(J,D,Reflect.ownKeys(x6(D))),E4(J,$,Reflect.ownKeys(x6($)));let X=X6(D._zod.def,{shape:J,get catchall(){return $._zod.def.catchall},checks:$._zod.def.checks??[]});return fD(D,X)}function G9D(D,$,J,X="partial"){let Q=$._zod.def.checks;if(Q&&Q.length>0)throw Error(`.${X}() cannot be used on object schemas containing refinements`);let F=J?new Set(_X($,J)):void 0,W={};return E4(W,$,Reflect.ownKeys(x6($)),D&&((K,q)=>F&&!F.has(q)?K:new D({type:"optional",innerType:K}))),fD($,X6($._zod.def,{shape:W,checks:[]}))}function Z9D(D,$,J){let X=J?new Set(_X($,J)):void 0,Y={};return E4(Y,$,Reflect.ownKeys(x6($)),(Q,U)=>X&&!X.has(U)?Q:new D({type:"nonoptional",innerType:Q})),fD($,X6($._zod.def,{shape:Y}))}function J$(D,$=0){if(D.aborted===!0)return!0;for(let J=$;J<D.issues.length;J++)if(D.issues[J]?.continue!==!0)return!0;return!1}function Tq(D,$=0){if(D.aborted===!0)return!0;for(let J=$;J<D.issues.length;J++)if(D.issues[J]?.continue===!1)return!0;return!1}function I$(D,$){return $.map((J)=>{var X;return(X=J).path??(X.path=[]),J.path.unshift(D),J})}function V2(D){return typeof D==="string"?D:D?.message}function uX(D,$,J){var X;for(let Y=$;Y<D.length;Y++)(X=D[Y]).schema??(X.schema=J)}function B$(D,$,J){var X;let Y=D.inst?._zod?.traits;if(Y?.has("$ZodType"))if(Y.has("$ZodCheck"))(X=D).schema??(X.schema=D.inst);else D.schema=D.inst;let Q=D.schema!==D.inst?D.schema?._zod.def?.error:void 0,U=D.message?D.message:V2(D.inst?._zod.def?.error?.(D))??V2(Q?.(D))??V2($?.error?.(D))??V2(J.customError?.(D))??V2(J.localeError?.(D))??"Invalid input",F={};for(let W of Object.keys(D)){if(W==="inst"||W==="schema"||W==="continue"||W==="input"||W==="__proto__")continue;F[W]=D[W]}if(F.path??(F.path=[]),F.message=U,$?.reportInput)F.input=D.input;return F}function e5(D){if(D instanceof Set)return"set";if(D instanceof Map)return"map";if(D instanceof File)return"file";return"unknown"}function P4(D){let $=D.length;if(!z9D.test(D))return $;let J=$;for(let X=0;X<$-1;X++)if((D.charCodeAt(X)&64512)===55296&&(D.charCodeAt(X+1)&64512)===56320)J--,X++;return J}function D7(D){if(Array.isArray(D))return"array";if(typeof D==="string")return"string";return"unknown"}function l(D){let $=typeof D;switch($){case"number":return Number.isNaN(D)?"nan":"number";case"object":{if(D===null)return"null";if(Array.isArray(D))return"array";let J=D;if(J&&Object.getPrototypeOf(J)!==Object.prototype&&"constructor"in J&&J.constructor)return J.constructor.name}}return $}function M2(...D){let[$,J,X]=D;if(typeof $==="string")return{message:$,code:"custom",input:J,inst:X};return{...$}}function H9D(D){return Object.entries(D).filter(([$,J])=>{return Number.isNaN(Number.parseInt($,10))}).map(($)=>$[1])}function fC(D){let $=atob(D),J=new Uint8Array($.length);for(let X=0;X<$.length;X++)J[X]=$.charCodeAt(X);return J}function yC(D){let $="";for(let J=0;J<D.length;J++)$+=String.fromCharCode(D[J]);return btoa($)}function I9D(D){let $=D.replace(/-/g,"+").replace(/_/g,"/"),J="=".repeat((4-$.length%4)%4);return fC($+J)}function B9D(D){return yC(D).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function O9D(D){let $=D.replace(/^0x/,"");if($.length%2!==0)throw Error("Invalid hex string length");let J=new Uint8Array($.length/2);for(let X=0;X<$.length;X+=2)J[X/2]=Number.parseInt($.slice(X,X+2),16);return J}function N9D(D){return Array.from(D).map(($)=>$.toString(16).padStart(2,"0")).join("")}class hC{constructor(...D){}}function Pq(D,$){for(let J in $){let X=Object.getOwnPropertyDescriptor($,J);if(X.get)Object.defineProperty(D,J,{...X,enumerable:!1});else w9D(D,J,X.value)}}function j1(D,$,J,X=!0){return Object.defineProperty(D,$,{configurable:!0,writable:!0,enumerable:X,value:J}),J}function $7(D,$,J){return j1(D,$,J,!1)}function V9D(D,$){for(let J in D){let X=D[J];Object.defineProperty($,J,{configurable:!0,enumerable:!0,get(){return j1(this,J,X(this))},set(Y){j1(this,J,Y)}})}return $}function w9D(D,$,J){Object.defineProperty(D,$,{configurable:!0,get(){return this==null?J:j1(this,$,J.bind(this))},set(X){j1(this,$,X)}})}function j9D(D,$){let J=Object.getPrototypeOf(D);return $ in J?void 0:J}function wD(D,$,J){let X=Object.getPrototypeOf(D._zod);if($ in X&&Lq!==D._zod){Lq=void 0;return}Lq=D._zod,Object.defineProperty(X,$,{configurable:!0,get(){Object.defineProperty(this,$,L9D);let Y=w1;w1=!1;try{let Q=J(this);if(w1)delete this[$];else Object.defineProperty(this,$,{configurable:!0,writable:!0,value:Q});return w1=w1||Y,Q}catch(Q){throw delete this[$],w1=w1||Y,Q}},set(Y){Object.defineProperty(this,$,{configurable:!0,writable:!0,value:Y})}})}function R9D(D,$,J,X){let Y=j9D(D,$);if(!Y)return;Object.defineProperty(Y,$,{configurable:!0,get(){let Q={configurable:!0,writable:!0,enumerable:X,value:void 0};return Object.defineProperty(this,$,Q),Q.value=J(this),Object.defineProperty(this,$,Q),Q.value},set(Q){Object.defineProperty(this,$,{configurable:!0,writable:!0,enumerable:X,value:Q})}})}function bq(D){let $=()=>D;return $[gX]=!0,$}var kC,kX,Aq,Y9D=(D)=>{let $=typeof D;switch($){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(D)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(D))return"array";if(D===null)return"null";if(D.then&&typeof D.then==="function"&&D.catch&&typeof D.catch==="function")return"promise";if(typeof Map<"u"&&D instanceof Map)return"map";if(typeof Set<"u"&&D instanceof Set)return"set";if(typeof Date<"u"&&D instanceof Date)return"date";if(typeof File<"u"&&D instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${$}`)}},o5,vq,a5,s5,z9D,Lq,w1=!1,L9D,gX="~constantCatch";var e=S(()=>{L1();kC=Symbol("evaluating");kX="captureStackTrace"in Error?Error.captureStackTrace:(...D)=>{};Aq=L2(()=>{if(E0.jitless)return!1;if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(D){return!1}});o5=new Set(["string","number","symbol"]),vq=new Set(["string","number","bigint","boolean","symbol","undefined"]);a5=(()=>({safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-340282346638528860000000000000000000000,340282346638528860000000000000000000000],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]}))(),s5={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};z9D=/[\uD800-\uDBFF]/;L9D={configurable:!0,get(){w1=!0;return}}});function M9D(D){let $=lC;if($){let J=$.stackTraceLimit;if(typeof J==="number"){try{$.stackTraceLimit=0}catch{return lC=null,new D}try{return new D}finally{$.stackTraceLimit=J}}}return new D}function T(D,$,J,X){let Y={};function Q(Z){this.def=Z,this.constr=G,this.traits=new Set}Q.prototype=Y;let U=J,F=U&&new WeakSet;function W(Z,H){if(!Z._zod){Sq.value=new Q(H);try{Object.defineProperty(Z,"_zod",Sq)}finally{Sq.value=void 0}}else if(Z._zod.traits.has(D))return;if(Z._zod.traits.add(D),$(Z,H),F){let I=Object.getPrototypeOf(Z),B=Z._zod.constr.prototype,N=I;while(N&&N!==B)N=Object.getPrototypeOf(N);let V=N??I;if(!F.has(V))F.add(V),Pq(V,U)}let z=G.prototype;for(let I in z){if(!Object.prototype.hasOwnProperty.call(z,I))continue;if(!(I in Z))Z[I]=z[I].bind(Z)}}let K=X?.Parent??Object;class q extends K{}Object.defineProperty(q,"name",{value:D});function G(Z){let H=X?.Parent?M9D(q):this;W(H,Z);let z=H._zod.deferred;if(z){for(let B of z)B();H._zod.deferred=void 0}let I=globalThis.__zod_globalConfig?.postProcessor;if(I)I(H);return H}return Object.defineProperty(G,"init",{value:W}),Object.defineProperty(G,Symbol.hasInstance,{value:(Z)=>{if(X?.Parent&&Z instanceof X.Parent)return!0;return Z?._zod?.traits?.has(D)}}),Object.defineProperty(G,"name",{value:D}),G}function Z0(D){if(D)Object.assign(E0,D);return E0}var mC,Cq,Sq,lC,kq,v$,b4,E0;var L1=S(()=>{e();Cq=Object.freeze({status:"aborted"}),Sq={value:void 0,enumerable:!1},lC="captureStackTrace"in Error?Error:null;kq=Symbol("zod_brand");v$=class v$ extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}};b4=class b4 extends Error{constructor(D){super(`Encountered unidirectional transform during encode: ${D}`);this.name="ZodEncodeError"}};(mC=globalThis).__zod_globalConfig??(mC.__zod_globalConfig={});E0=globalThis.__zod_globalConfig});function A9D(){let D=this._zod;return D.message??(D.message=JSON.stringify(D.def,j2,2)),D.message}function v9D(D){this._zod.message=D}function T9D(D,$,J){if(!Object.prototype.hasOwnProperty.call(D,$))if($==="__proto__")Object.defineProperty(D,$,{value:J(),writable:!0,enumerable:!0,configurable:!0});else D[$]=J();return D[$]}function J7(D,$=(J)=>J.message){let J={},X=[];for(let Y of D.issues)if(Y.path.length>0)T9D(J,Y.path[0],()=>[]).push($(Y));else X.push($(Y));return{formErrors:X,fieldErrors:J}}function X7(D,$=(J)=>J.message){let J={_errors:[]},X=(Y,Q=[])=>{for(let U of Y.issues)if(U.code==="invalid_union"&&U.errors.length)U.errors.map((F)=>X({issues:F},[...Q,...U.path]));else if(U.code==="invalid_key")X({issues:U.issues},[...Q,...U.path]);else if(U.code==="invalid_element")X({issues:U.issues},[...Q,...U.path]);else{let F=[...Q,...U.path];if(F.length===0)J._errors.push($(U));else{let W=J,K=0;while(K<F.length){let q=F[K],G=K===F.length-1;if(q==="_errors"){if(G)W._errors.push($(U));K++;continue}if(!Object.prototype.hasOwnProperty.call(W,q))Object.defineProperty(W,q,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let Z=W[q];if(G)Z._errors.push($(U));W=Z,K++}}}};return X(D),J}function xq(D,$=(J)=>J.message){let J={errors:[]},X=(Y,Q=[])=>{var U;for(let F of Y.issues)if(F.code==="invalid_union"&&F.errors.length)F.errors.map((W)=>X({issues:W},[...Q,...F.path]));else if(F.code==="invalid_key")X({issues:F.issues},[...Q,...F.path]);else if(F.code==="invalid_element")X({issues:F.issues},[...Q,...F.path]);else{let W=[...Q,...F.path];if(W.length===0){J.errors.push($(F));continue}let K=J,q=0;while(q<W.length){let G=W[q],Z=q===W.length-1;if(typeof G==="string"){if(K.properties??(K.properties={}),!Object.prototype.hasOwnProperty.call(K.properties,G))Object.defineProperty(K.properties,G,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0});K=K.properties[G]}else K.items??(K.items=[]),(U=K.items)[G]??(U[G]={errors:[]}),K=K.items[G];if(Z)K.errors.push($(F));q++}}};return X(D),J}function cC(D){let $=[],J=D.map((X)=>typeof X==="object"?X.key:X);for(let X of J)if(typeof X==="number")$.push(`[${X}]`);else if(typeof X==="symbol")$.push(`[${JSON.stringify(String(X))}]`);else if(/[^\w$]/.test(X))$.push(`[${JSON.stringify(X)}]`);else{if($.length)$.push(".");$.push(X)}return $.join("")}function fq(D){let $=[],J=[...D.issues].sort((X,Y)=>(X.path??[]).length-(Y.path??[]).length);for(let X of J)if($.push(`✖ ${X.message}`),X.path?.length)$.push(` → at ${cC(X.path)}`);return $.join(`
`)}var E9D,uq,dC,iC=(D,$)=>{D.name="$ZodError",uq.value=$,Object.defineProperty(D,"issues",uq),uq.value=void 0,Object.defineProperty(D,"message",E9D);let J=Object.getPrototypeOf(D);if(!dC.has(J))dC.add(J),Object.defineProperty(J,"toString",{configurable:!0,enumerable:!1,get(){let X=()=>this.message;return Object.defineProperty(this,"toString",{value:X,configurable:!0,writable:!0}),X},set(X){Object.defineProperty(this,"toString",{value:X,configurable:!0,writable:!0})}})},gq,O$;var yq=S(()=>{L1();e();E9D={get:A9D,set:v9D,enumerable:!0,configurable:!0},uq={value:void 0,enumerable:!1},dC=new WeakSet([Object.prototype,Error.prototype]),gq=T("$ZodError",iC),O$=T("$ZodError",iC,void 0,{Parent:Error})});function xX(D,$){return{callee:$?.callee??D,Err:$?.Err}}function pC(D,$,J){let X;return{success:!1,get error(){if(!X)X=new D($.map((Y)=>B$(Y,J,Z0()))),$=void 0,J=void 0;return X},set error(Y){X=Y,$=void 0,J=void 0}}}function _9D(D,$,J){let X=J?{...J,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},Y=D._zod.bag.fallbackRun,Q;if(Y)X[k9D]=!0,Q=Y({value:$,issues:[]},X);else Q=D._zod.run({value:$,issues:[]},X);if(Q instanceof Promise)throw new v$;return Q.issues.length===0}var A2=(D)=>{let $=(J,X,Y,Q)=>{let U=Y?{...Y,async:!1}:{async:!1},F=J._zod.run({value:X,issues:[]},U);if(F instanceof Promise)throw new v$;if(F.issues.length){let W=new(Q?.Err??D)(F.issues.map((K)=>B$(K,U,Z0())));throw kX(W,Q?.callee??$),W}return F.value};return $},fX,v2=(D)=>{let $=async(J,X,Y,Q)=>{let U=Y?{...Y,async:!0}:{async:!0},F=J._zod.run({value:X,issues:[]},U);if(F instanceof Promise)F=await F;if(F.issues.length){let W=new(Q?.Err??D)(F.issues.map((K)=>B$(K,U,Z0())));throw kX(W,Q?.callee??$),W}return F.value};return $},yX,E2=(D)=>($,J,X)=>{let Y=X?{...X,async:!1}:{async:!1},Q=$._zod.run({value:J,issues:[]},Y);if(Q instanceof Promise)throw new v$;return Q.issues.length?pC(D,Q.issues,Y):{success:!0,data:Q.value}},b9D,T2=(D)=>async($,J,X)=>{let Y=X?{...X,async:!0}:{async:!0},Q=$._zod.run({value:J,issues:[]},Y);if(Q instanceof Promise)Q=await Q;return Q.issues.length?pC(D,Q.issues,Y):{success:!0,data:Q.value}},S9D,C9D,k9D,Y7=(D,$,J)=>{let X=D._zod.bag.validator;if(X!==void 0){if(X($)!==C9D)return!0;if(X.definite===!0&&J===void 0)return!1}return _9D(D,$,J)},Q7=async(D,$,J)=>{let X=J?{...J,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},Y=D._zod.run({value:$,issues:[]},X);if(Y instanceof Promise)Y=await Y;return Y.issues.length===0},hX=(D)=>{let $=A2(D),J=(X,Y,Q,U)=>{let F=Q?{...Q,direction:"backward"}:{direction:"backward"};return $(X,Y,F,xX(J,U))};return J},u9D,mX=(D)=>{let $=A2(D),J=(X,Y,Q,U)=>{return $(X,Y,Q,xX(J,U))};return J},g9D,lX=(D)=>{let $=v2(D),J=async(X,Y,Q,U)=>{let F=Q?{...Q,direction:"backward"}:{direction:"backward"};return await $(X,Y,F,xX(J,U))};return J},x9D,dX=(D)=>{let $=v2(D),J=async(X,Y,Q,U)=>{return await $(X,Y,Q,xX(J,U))};return J},f9D,iX=(D)=>($,J,X)=>{let Y=X?{...X,direction:"backward"}:{direction:"backward"};return E2(D)($,J,Y)},y9D,cX=(D)=>($,J,X)=>{return E2(D)($,J,X)},h9D,pX=(D)=>async($,J,X)=>{let Y=X?{...X,direction:"backward"}:{direction:"backward"};return T2(D)($,J,Y)},m9D,nX=(D)=>async($,J,X)=>{return T2(D)($,J,X)},l9D;var hq=S(()=>{L1();yq();e();fX=A2(O$),yX=v2(O$),b9D=E2(O$);S9D=T2(O$),C9D=Symbol.for("zod.compile.invalid"),k9D=Symbol.for("zod.compile.fallback");u9D=hX(O$),g9D=mX(O$),x9D=lX(O$),f9D=dX(O$),y9D=iX(O$),h9D=cX(O$),m9D=pX(O$),l9D=nX(O$)});var p$={};y0(p$,{xid:()=>cq,uuid7:()=>p9D,uuid6:()=>c9D,uuid4:()=>i9D,uuid:()=>S4,uppercase:()=>wG,unicodeEmail:()=>nC,undefined:()=>NG,ulid:()=>iq,time:()=>GG,string:()=>HG,sha512_hex:()=>G5D,sha512_base64url:()=>z5D,sha512_base64:()=>Z5D,sha384_hex:()=>W5D,sha384_base64url:()=>q5D,sha384_base64:()=>K5D,sha256_hex:()=>Q5D,sha256_base64url:()=>F5D,sha256_base64:()=>U5D,sha1_hex:()=>J5D,sha1_base64url:()=>Y5D,sha1_base64:()=>X5D,rfc5322Email:()=>r9D,number:()=>V6,null:()=>OG,nanoidOfLength:()=>rq,nanoid:()=>nq,md5_hex:()=>e9D,md5_base64url:()=>$5D,md5_base64:()=>D5D,mac:()=>$G,lowercase:()=>VG,ksuid:()=>pq,ipv6:()=>DG,ipv4:()=>eq,integer:()=>F7,idnEmail:()=>t9D,iban:()=>tX,httpProtocol:()=>U7,html5Email:()=>n9D,hostname:()=>UG,hex:()=>jG,guid:()=>oq,extendedDuration:()=>d9D,emoji:()=>sq,email:()=>aq,e164:()=>WG,duration:()=>tq,domain:()=>FG,datetime:()=>ZG,date:()=>qG,currencyCode:()=>KG,cuid2:()=>dq,cuid:()=>lq,creditCard:()=>rX,cidrv6:()=>XG,cidrv4:()=>JG,browserEmail:()=>o9D,boolean:()=>BG,bigint:()=>IG,base64url:()=>QG,base64:()=>YG,anyString:()=>zG});function rq(D){return new RegExp(`^[a-zA-Z0-9_-]{${D}}$`)}function sq(){return new RegExp(a9D,"u")}function s9D(D){return new RegExp(`^${D}$`)}function mq(D){return typeof D.precision==="number"?D.precision===-1?"(?:[01]\\d|2[0-3]):[0-5]\\d":D.precision===0?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d":`(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{${D.precision}}`:D.seconds?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?":"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function GG(D){return new RegExp(`^${mq(D)}$`)}function ZG(D){let $=["Z"];if(D.offset)$.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let J=`${mq({precision:D.precision,seconds:!0})}(?:${$.join("|")})`,X=D.local?`${J}|${mq({precision:D.precision})}`:J;return new RegExp(`^${rC}T(?:${X})$`)}function W7(D,$){return new RegExp(`^[A-Za-z0-9+/]{${D}}${$}$`)}function K7(D){return new RegExp(`^[A-Za-z0-9_-]{${D}}$`)}var lq,dq,iq,cq,pq,nq,tq,d9D,oq,S4=(D)=>{if(!D)return/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${D}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`)},i9D,c9D,p9D,aq,n9D,r9D,nC,t9D,o9D,a9D="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$",eq,DG,$G=(D)=>{let $=c$(D??":");return new RegExp(`^(?:[0-9A-F]{2}${$}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${$}){5}[0-9a-f]{2}$`)},JG,XG,YG,QG,UG,FG,U7,WG,rX,KG,tX,rC="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",qG,zG,HG=(D)=>{let $=D?`[\\s\\S]{${D?.minimum??0},${D?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${$}$`)},IG,F7,V6,BG,OG,NG,VG,wG,jG,e9D,D5D,$5D,J5D,X5D,Y5D,Q5D,U5D,F5D,W5D,K5D,q5D,G5D,Z5D,z5D;var C4=S(()=>{e();lq=/^[cC][0-9a-z]{6,}$/,dq=/^[0-9a-z]+$/,iq=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,cq=/^[0-9a-vA-V]{20}$/,pq=/^[A-Za-z0-9]{27}$/,nq=/^[a-zA-Z0-9_-]{21}$/;tq=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,d9D=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,oq=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,i9D=S4(4),c9D=S4(6),p9D=S4(7),aq=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,n9D=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,r9D=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,nC=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,t9D=nC,o9D=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;eq=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,DG=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,JG=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,XG=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,YG=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,QG=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,UG=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,FG=/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$/,U7=/^https?$/,WG=/^\+[1-9]\d{6,14}$/,rX=/^\d(?:[ -]?\d){11,18}$/,KG=/^(?:AED|AFN|ALL|AMD|AOA|ARS|AUD|AWG|AZN|BAM|BBD|BDT|BHD|BIF|BMD|BND|BOB|BOV|BRL|BSD|BTN|BWP|BYN|BZD|CAD|CDF|CHE|CHF|CHW|CLF|CLP|CNY|COP|COU|CRC|CUP|CVE|CZK|DJF|DKK|DOP|DZD|EGP|ERN|ETB|EUR|FJD|FKP|GBP|GEL|GHS|GIP|GMD|GNF|GTQ|GYD|HKD|HNL|HTG|HUF|IDR|ILS|INR|IQD|IRR|ISK|JMD|JOD|JPY|KES|KGS|KHR|KMF|KPW|KRW|KWD|KYD|KZT|LAK|LBP|LKR|LRD|LSL|LYD|MAD|MDL|MGA|MKD|MMK|MNT|MOP|MRU|MUR|MVR|MWK|MXN|MXV|MYR|MZN|NAD|NGN|NIO|NOK|NPR|NZD|OMR|PAB|PEN|PGK|PHP|PKR|PLN|PYG|QAR|RON|RSD|RUB|RWF|SAR|SBD|SCR|SDG|SEK|SGD|SHP|SLE|SOS|SRD|SSP|STN|SVC|SYP|SZL|THB|TJS|TMT|TND|TOP|TRY|TTD|TWD|TZS|UAH|UGX|USD|USN|UYI|UYU|UYW|UZS|VED|VES|VND|VUV|WST|XAD|XAF|XAG|XAU|XBA|XBB|XBC|XBD|XCD|XCG|XDR|XOF|XPD|XPF|XPT|XSU|XTS|XUA|XXX|YER|ZAR|ZMW|ZWG)$/,tX=/^[A-Z]{2}(?!00|01|99)\d{2}[A-Z0-9]{11,30}$/;qG=s9D(rC);zG=/^[\s\S]{0,}$/,IG=/^-?\d+n?$/,F7=/^-?\d+$/,V6=/^-?\d+(?:\.\d+)?$/,BG=/^(?:true|false)$/i,OG=/^null$/i,NG=/^undefined$/i,VG=/^[^A-Z]*$/,wG=/^[^a-z]*$/,jG=/^[0-9a-fA-F]*$/;e9D=/^[0-9a-fA-F]{32}$/,D5D=W7(22,"=="),$5D=K7(22),J5D=/^[0-9a-fA-F]{40}$/,X5D=W7(27,"="),Y5D=K7(27),Q5D=/^[0-9a-fA-F]{64}$/,U5D=W7(43,"="),F5D=K7(43),W5D=/^[0-9a-fA-F]{96}$/,K5D=W7(64,""),q5D=K7(64),G5D=/^[0-9a-fA-F]{128}$/,Z5D=W7(86,"=="),z5D=K7(86)});function aX(D,$,J){if(D.issues.length)$.issues.push(...I$(J,D.issues))}var nD,LG=(D)=>{let $=D.value;return!CX($)&&$.size!==void 0},RG=(D)=>{let $=D.value;return!CX($)&&$.length!==void 0},oX,sX,eX,MG,AG,vG,EG,TG,PG,bG,SG,CG,P2,kG,_G,uG,gG,xG,fG,yG,hG,mG,lG;var DY=S(()=>{L1();C4();e();nD=T("$ZodCheck",(D,$)=>{var J;D._zod??(D._zod={}),D._zod.def=$,(J=D._zod).onattach??(J.onattach=[])}),oX={number:"number",bigint:"bigint",object:"date"},sX=T("$ZodCheckLessThan",(D,$)=>{nD.init(D,$);let J=oX[typeof $.value];D._zod.check=(X)=>{if($.inclusive?X.value<=$.value:X.value<$.value)return;X.issues.push({origin:oX[typeof X.value]??J,code:"too_big",maximum:typeof $.value==="object"?$.value.getTime():$.value,input:X.value,inclusive:$.inclusive,inst:D,continue:!$.abort})}}),eX=T("$ZodCheckGreaterThan",(D,$)=>{nD.init(D,$);let J=oX[typeof $.value];D._zod.check=(X)=>{if($.inclusive?X.value>=$.value:X.value>$.value)return;X.issues.push({origin:oX[typeof X.value]??J,code:"too_small",minimum:typeof $.value==="object"?$.value.getTime():$.value,input:X.value,inclusive:$.inclusive,inst:D,continue:!$.abort})}}),MG=T("$ZodCheckMultipleOf",(D,$)=>{nD.init(D,$),D._zod.check=(J)=>{if(typeof J.value!==typeof $.value)throw Error("Cannot mix number and bigint in multiple_of check.");if(typeof J.value==="bigint"?$.value!==BigInt(0)&&J.value%$.value===BigInt(0):r5(J.value,$.value)===0)return;J.issues.push({origin:typeof J.value,code:"not_multiple_of",divisor:$.value,input:J.value,inst:D,continue:!$.abort})}}),AG=T("$ZodCheckNumberFormat",(D,$)=>{nD.init(D,$),$.format=$.format||"float64";let J=$.format?.includes("int"),X=J?"int":"number",[Y,Q]=a5[$.format];D._zod.check=(U)=>{let F=U.value;if(J){if(!Number.isInteger(F)){U.issues.push({expected:X,format:$.format,code:"invalid_type",continue:!1,input:F,inst:D});return}if(!Number.isSafeInteger(F)){if(F>0)U.issues.push({input:F,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:D,origin:X,inclusive:!0,continue:!$.abort});else U.issues.push({input:F,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:D,origin:X,inclusive:!0,continue:!$.abort});return}}if(F<Y)U.issues.push({origin:"number",input:F,code:"too_small",minimum:Y,inclusive:!0,inst:D,continue:!$.abort});if(F>Q)U.issues.push({origin:"number",input:F,code:"too_big",maximum:Q,inclusive:!0,inst:D,continue:!$.abort})}}),vG=T("$ZodCheckBigIntFormat",(D,$)=>{nD.init(D,$);let[J,X]=s5[$.format];D._zod.check=(Y)=>{let Q=Y.value;if(Q<J)Y.issues.push({origin:"bigint",input:Q,code:"too_small",minimum:J,inclusive:!0,inst:D,continue:!$.abort});if(Q>X)Y.issues.push({origin:"bigint",input:Q,code:"too_big",maximum:X,inclusive:!0,inst:D,continue:!$.abort})}}),EG=T("$ZodCheckMaxSize",(D,$)=>{var J;nD.init(D,$),(J=D._zod.def).when??(J.when=LG),D._zod.check=(X)=>{let Y=X.value;if(Y.size<=$.maximum)return;X.issues.push({origin:e5(Y),code:"too_big",maximum:$.maximum,inclusive:!0,input:Y,inst:D,continue:!$.abort})}}),TG=T("$ZodCheckMinSize",(D,$)=>{var J;nD.init(D,$),(J=D._zod.def).when??(J.when=LG),D._zod.check=(X)=>{let Y=X.value;if(Y.size>=$.minimum)return;X.issues.push({origin:e5(Y),code:"too_small",minimum:$.minimum,inclusive:!0,input:Y,inst:D,continue:!$.abort})}}),PG=T("$ZodCheckSizeEquals",(D,$)=>{var J;nD.init(D,$),(J=D._zod.def).when??(J.when=LG),D._zod.check=(X)=>{let Y=X.value,Q=Y.size;if(Q===$.size)return;let U=Q>$.size;X.issues.push({origin:e5(Y),...U?{code:"too_big",maximum:$.size}:{code:"too_small",minimum:$.size},inclusive:!0,exact:!0,input:X.value,inst:D,continue:!$.abort})}}),bG=T("$ZodCheckMaxLength",(D,$)=>{var J;nD.init(D,$),(J=D._zod.def).when??(J.when=RG),D._zod.check=(X)=>{let Y=X.value,Q=Y.length;if((typeof Y==="string"&&Q>$.maximum?P4(Y):Q)<=$.maximum)return;let F=D7(Y);X.issues.push({origin:F,code:"too_big",maximum:$.maximum,inclusive:!0,input:Y,inst:D,continue:!$.abort})}}),SG=T("$ZodCheckMinLength",(D,$)=>{var J;nD.init(D,$),(J=D._zod.def).when??(J.when=RG),D._zod.check=(X)=>{let Y=X.value,Q=Y.length;if((typeof Y==="string"&&Q>=$.minimum&&Q<$.minimum*2?P4(Y):Q)>=$.minimum)return;let F=D7(Y);X.issues.push({origin:F,code:"too_small",minimum:$.minimum,inclusive:!0,input:Y,inst:D,continue:!$.abort})}}),CG=T("$ZodCheckLengthEquals",(D,$)=>{var J;nD.init(D,$),(J=D._zod.def).when??(J.when=RG),D._zod.check=(X)=>{let Y=X.value,Q=Y.length,U=typeof Y==="string"&&Q>=$.length&&Q<=$.length*2?P4(Y):Q;if(U===$.length)return;let F=D7(Y),W=U>$.length;X.issues.push({origin:F,...W?{code:"too_big",maximum:$.length}:{code:"too_small",minimum:$.length},inclusive:!0,exact:!0,input:X.value,inst:D,continue:!$.abort})}}),P2=T("$ZodCheckStringFormat",(D,$)=>{var J,X;if(nD.init(D,$),$.pattern)(J=D._zod).check??(J.check=(Y)=>{if($.pattern.lastIndex=0,$.pattern.test(Y.value))return;Y.issues.push({origin:"string",code:"invalid_format",format:$.format,input:Y.value,...$.pattern?{pattern:$.pattern.toString()}:{},inst:D,continue:!$.abort})});else(X=D._zod).check??(X.check=()=>{})}),kG=T("$ZodCheckRegex",(D,$)=>{P2.init(D,$),D._zod.check=(J)=>{if($.pattern.lastIndex=0,$.pattern.test(J.value))return;J.issues.push({origin:"string",code:"invalid_format",format:"regex",input:J.value,pattern:$.pattern.toString(),inst:D,continue:!$.abort})}}),_G=T("$ZodCheckLowerCase",(D,$)=>{$.pattern??($.pattern=VG),P2.init(D,$)}),uG=T("$ZodCheckUpperCase",(D,$)=>{$.pattern??($.pattern=wG),P2.init(D,$)}),gG=T("$ZodCheckIncludes",(D,$)=>{nD.init(D,$);let J=c$($.includes),X=new RegExp(typeof $.position==="number"?`^.{${$.position},}${J}`:J);$.pattern=X,D._zod.check=(Y)=>{if(Y.value.includes($.includes,$.position))return;Y.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:$.includes,input:Y.value,inst:D,continue:!$.abort})}}),xG=T("$ZodCheckStartsWith",(D,$)=>{nD.init(D,$);let J=new RegExp(`^${c$($.prefix)}.*`);$.pattern??($.pattern=J),D._zod.check=(X)=>{if(X.value.startsWith($.prefix))return;X.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:$.prefix,input:X.value,inst:D,continue:!$.abort})}}),fG=T("$ZodCheckEndsWith",(D,$)=>{nD.init(D,$);let J=new RegExp(`.*${c$($.suffix)}$`);$.pattern??($.pattern=J),D._zod.check=(X)=>{if(X.value.endsWith($.suffix))return;X.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:$.suffix,input:X.value,inst:D,continue:!$.abort})}});yG=T("$ZodCheckProperty",(D,$)=>{nD.init(D,$),D._zod.check=(J)=>{let X=$.schema._zod.run({value:J.value[$.property],issues:[]},{});if(X instanceof Promise)return X.then((Y)=>aX(Y,J,$.property));aX(X,J,$.property);return}}),hG=T("$ZodCheckProperties",(D,$)=>{nD.init(D,$),$7(D,Symbol.iterator,function*(){yield D});let J;D._zod.check=(X)=>{if(X.value==null){X.issues.push({expected:"object",code:"invalid_type",input:X.value,inst:D});return}J??(J=Reflect.ownKeys($.shape).map((U)=>[U,$.shape[U]]));let Y=X.value,Q;for(let[U,F]of J){let W=F._zod.run({value:Y[U],issues:[]},{});if(W instanceof Promise)Q??(Q=[]),Q.push(W.then((K)=>aX(K,X,U)));else aX(W,X,U)}if(Q)return Promise.all(Q).then(()=>{return});return}}),mG=T("$ZodCheckMimeType",(D,$)=>{nD.init(D,$);let J=new Set($.mime);D._zod.check=(X)=>{if(J.has(X.value.type))return;X.issues.push({code:"invalid_value",values:$.mime,input:X.value.type,inst:D,continue:!$.abort})}}),lG=T("$ZodCheckOverwrite",(D,$)=>{nD.init(D,$),D._zod.check=(J)=>{J.value=$.tx(J.value)}})});class b2{constructor(D=[],$={}){this.content=[],this.indent=0,this.args=D,this.closed=$}indented(D){this.indent+=1;try{D(this)}finally{this.indent-=1}}write(D){if(typeof D==="function"){D(this,{execution:"sync"}),D(this,{execution:"async"});return}let J=D.split(`
`).filter((Q)=>Q),X=Math.min(...J.map((Q)=>Q.length-Q.trimStart().length)),Y=J.map((Q)=>Q.slice(X)).map((Q)=>" ".repeat(this.indent*2)+Q);for(let Q of Y)this.content.push(Q)}compile(){let D=Function,$=this?.content??[""];return new D(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
${$.join(`
`)}
};`)(...Object.values(this.closed))}}var dG;var iG=S(()=>{dG={major:4,minor:6,patch:5}});async function H5D(D,$){let J={async:!0};return Gk(await D._zod.run({value:$,issues:[]},J),J)}function QY(D){return{validate:($)=>{let J={async:!1};try{let X=D._zod.run({value:$,issues:[]},J);if(!(X instanceof Promise))return Gk(X,J)}catch(X){}return H5D(D,$)},vendor:"zod",version:1}}function oG(D){try{if(typeof URL<"u"&&typeof URL.canParse==="function")return URL.canParse(D);return new URL(D),!0}catch{return!1}}function UY(D,$){if(!("normalize"in $)&&!("hostname"in $)&&!("protocol"in $))return oG(D)||q7;return Zk(D,$)}function Zk(D,$){if(!$.normalize&&$.protocol?.source===U7.source&&!/^https?:\/\//i.test(D))return tG;try{if(typeof URL<"u"){let J=URL;if(typeof J.parse==="function")return J.parse(D)??q7}return new URL(D)}catch{return q7}}function G7(D){return D.replace(I5D,"")}function FY(D,$){return $.lastIndex=0,$.test(D.hostname)}function WY(D,$){return $.lastIndex=0,$.test(D.protocol.endsWith(":")?D.protocol.slice(0,-1):D.protocol)}function Z7(D){if(!B5D.test(D))return!1;return oG(`http://[${D}]`)}function KY(D){let $=D.split("/");if($.length!==2)return!1;let[J,X]=$;if(!X)return!1;let Y=Number(X);if(`${Y}`!==X)return!1;if(Y<0||Y>128)return!1;return Z7(J)}function z7(D){if(D==="")return!0;if(/\s/.test(D))return!1;if(D.length%4!==0)return!1;try{return atob(D),!0}catch{return!1}}function GY(D){if(!H7.test(D))return!1;let $=D.replace(/[-_]/g,(X)=>X==="-"?"+":"/"),J=$.padEnd(Math.ceil($.length/4)*4,"=");return z7(J)}function N5D(D){let $=D.length,J=1,X=0;while($){let Y=D.charCodeAt(--$)-48;J^=1,X+=J?[0,2,4,6,8,1,3,5,7,9][Y]:Y}return X%10===0}function ZY(D){if(!rX.test(D))return!1;return N5D(D.replace(O5D,""))}function V5D(D){let $=0,J=D.length;for(let X=4;X<J;X++){let Y=D.charCodeAt(X);$=(Y>=65?$*100+(Y-55):$*10+(Y-48))%97}for(let X=0;X<4;X++){let Y=D.charCodeAt(X);$=(Y>=65?$*100+(Y-55):$*10+(Y-48))%97}return $===1}function zY(D){if(!tX.test(D))return!1;return V5D(D)}function HY(D,$=null){try{let J=D.split(".");if(J.length!==3)return!1;let[X]=J;if(!X)return!1;let Y=JSON.parse(atob(X));if("typ"in Y&&Y?.typ!=="JWT")return!1;if(!Y.alg)return!1;if($&&(!("alg"in Y)||Y.alg!==$))return!1;return!0}catch{return!1}}function oC(D,$,J){if(D.issues.length)$.issues.push(...I$(J,D.issues));$.value[J]=D.value}function YY(D,$,J,X,Y,Q){let U=J in X,F=Q==="optional";if(!U&&F&&Y==="optional")return;if(D.issues.length){if(Y!==void 0&&F&&!U)return;$.issues.push(...I$(J,D.issues))}if(!U&&Y===void 0){if(!D.issues.length)$.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[J]});return}if(D.value===void 0){if(U||Y==="defaulted"&&!F)$.value[J]=void 0}else $.value[J]=D.value}function zk(D){let $=Object.keys(D.shape),J=Object.getOwnPropertySymbols(D.shape),X=J.length?J:w5D,Y=X.length?[...$,...X]:$;for(let U of Y)if(!D.shape?.[U]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${String(U)}": expected a Zod schema`);let Q=Eq(D.shape);return{...D,allKeys:Y,symbolKeys:X,keySet:new Set($),numKeys:$.length,optionalKeys:new Set(Q)}}function Hk(D,$,J,X,Y,Q,U){let F=[],W=Y.keySet,K=Y.catchall._zod,q=K.def.type,G=K.optin,Z=K.optout,H=0;for(let z in $){if(U&&J.issues.length!==H){if(J$(J,H))break;H=J.issues.length}if(W.has(z))continue;if(z==="__proto__"){if(q==="never")F.push(z);continue}if(q==="never"){F.push(z);continue}let I=K.run({value:$[z],issues:[]},X);if(I instanceof Promise)D.push(I.then((B)=>YY(B,J,z,$,G,Z)));else YY(I,J,z,$,G,Z)}if(F.length)J.issues.push({code:"unrecognized_keys",keys:F,input:$,inst:Q,continue:!0});if(!D.length)return J;return Promise.all(D).then(()=>{return J})}function aC(D,$,J,X){for(let Q of D)if(Q.issues.length===0)return $.value=Q.value,$;let Y=D.filter((Q)=>!J$(Q));if(Y.length===1)return $.value=Y[0].value,Y[0];return $.issues.push({code:"invalid_union",input:$.value,inst:J,errors:D.map((Q)=>Q.issues.map((U)=>B$(U,X,Z0())))}),$}function sC(D,$,J,X){let Y=[];for(let Q=0;Q<D.length;Q++)if(D[Q].issues.length===0)Y.push(Q);if(Y.length===1)return $.value=D[Y[0]].value,$;if(Y.length===0)$.issues.push({code:"invalid_union",input:$.value,inst:J,errors:D.map((Q)=>Q.issues.map((U)=>B$(U,X,Z0())))});else $.issues.push({code:"invalid_union",input:$.value,inst:J,errors:[],inclusive:!1,matches:Y});return $}function _Z(D,$){let J=D._zod,X=J.bag.optionsMap;if(!X)X=Bk(J.def),J.bag.optionsMap=X;let Y=X.get($);if(Y===null)throw Error(`Ambiguous discriminator value "${String($)}"`);return Y}function Bk(D){let $=new Map;for(let J of D.options){let X=J._zod.propValues?.[D.discriminator];if(!X||X.size===0)throw Error(`Invalid discriminated union option at index "${D.options.indexOf(J)}"`);for(let Y of X)if($.has(Y)){if(Y!==void 0)throw Error(`Duplicate discriminator value "${String(Y)}"`);$.set(Y,null)}else $.set(Y,J)}return $}function S2(D,$){if(D===$)return{valid:!0,data:D};if(D instanceof Date&&$ instanceof Date&&+D===+$)return{valid:!0,data:D};if(i$(D)&&i$($)){let J=Object.keys($),X=Object.keys(D).filter((Q)=>J.indexOf(Q)!==-1),Y={...D,...$};if(Object.prototype.hasOwnProperty.call(Y,"__proto__"))delete Y.__proto__;for(let Q of X){if(Q==="__proto__")continue;let U=S2(D[Q],$[Q]);if(!U.valid)return{valid:!1,mergeErrorPath:[Q,...U.mergeErrorPath]};Y[Q]=U.data}return{valid:!0,data:Y}}if(Array.isArray(D)&&Array.isArray($)){if(D.length!==$.length)return{valid:!1,mergeErrorPath:[]};let J=[];for(let X=0;X<D.length;X++){let Y=D[X],Q=$[X],U=S2(Y,Q);if(!U.valid)return{valid:!1,mergeErrorPath:[X,...U.mergeErrorPath]};J.push(U.data)}return{valid:!0,data:J}}return{valid:!1,mergeErrorPath:[]}}function eC(D,$,J){let X=new Map,Y,Q=new Map,U=(K,q)=>{let G;if(K.code==="unrecognized_keys"&&!K.path?.length)Y??(Y=K),G=K.keys;else if(K.code==="invalid_key"&&K.origin==="record"&&K.path?.length===1){let Z=String(K.path[0]);if(!Q.has(Z))Q.set(Z,K);G=[Z]}else return!1;for(let Z of G){if(!X.has(Z))X.set(Z,{});X.get(Z)[q]=!0}return!0};for(let K of $.issues)if(!U(K,"l"))D.issues.push(K);for(let K of J.issues)if(!U(K,"r"))D.issues.push(K);let F=[...X].filter(([,K])=>K.l&&K.r).map(([K])=>K);if(F.length){let K=Y?F.filter((q)=>Y.keys.includes(q)):[];if(K.length)D.issues.push({...Y,keys:K});for(let q of F)if(!K.includes(q)&&Q.has(q))D.issues.push(Q.get(q))}let W=S2($.value,J.value);if(!W.valid){if(J$(D))return D;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(W.mergeErrorPath)}`)}return D.value=W.data,D}function Dk(D,$){for(let J=D.length-1;J>=0;J--)if(!($==="optin"?D[J]._zod.optin!==void 0:D[J]._zod.optout==="optional"))return J+1;return 0}function $k(D,$,J){if(D.issues.length)$.issues.push(...I$(J,D.issues));$.value[J]=D.value}function Jk(D,$,J,X,Y){for(let Q=0;Q<J.length;Q++){let U=D[Q],F=Q<X.length;if(!F&&Q>=Y&&J[Q]._zod.optin==="optional"){$.value.length=Q;break}if(U.issues.length){if(!F&&Q>=Y){$.value.length=Q;break}$.issues.push(...I$(Q,U.issues))}$.value[Q]=U.value}for(let Q=$.value.length-1;Q>=X.length;Q--)if(J[Q]._zod.optout==="optional"&&$.value[Q]===void 0)$.value.length=Q;else break;return $}function Xk(D,$,J,X,Y,Q,U){if(D.issues.length)if(o5.has(typeof X))J.issues.push(...I$(X,D.issues));else J.issues.push({code:"invalid_key",origin:"map",input:Y,inst:Q,issues:D.issues.map((F)=>B$(F,U,Z0()))});if($.issues.length)if(o5.has(typeof X))J.issues.push(...I$(X,$.issues));else J.issues.push({origin:"map",code:"invalid_element",input:Y,inst:Q,key:X,issues:$.issues.map((F)=>B$(F,U,Z0()))});J.value.set(D.value,$.value)}function Yk(D,$){if(D.issues.length)$.issues.push(...D.issues);$.value.add(D.value)}function Qk(D,$){return D.value=$.issues.length?void 0:$.value,D}function Uk(D,$){if(D.value===void 0)D.value=$.defaultValue;return D}function Fk(D,$){if(!D.issues.length&&D.value===void 0)D.issues.push({code:"invalid_type",expected:"nonoptional",input:D.value,inst:$});return D}function Wk(D,$,J,X){if(!$.issues.length){if(D.value=$.value,$.memo)D.memo=!0;return D}return D.value=J.catchValue({...$,value:D.value,error:{issues:$.issues.map((Y)=>B$(Y,X,Z0()))},input:D.value}),D}function $Y(D,$,J){if(D.issues.some((X)=>X.code!=="unrecognized_keys"))return D.aborted=!0,D;return $._zod.run({value:D.value,issues:D.issues},J)}function JY(D,$,J){if(D.issues.length)return D.aborted=!0,D;if((J.direction||"forward")==="forward"){let Y=$.transform(D.value,D);if(Y instanceof Promise)return Y.then((Q)=>XY(D,Q,$.out,J));return XY(D,Y,$.out,J)}else{let Y=$.reverseTransform(D.value,D);if(Y instanceof Promise)return Y.then((Q)=>XY(D,Q,$.in,J));return XY(D,Y,$.in,J)}}function XY(D,$,J,X){if(D.issues.length)return D.aborted=!0,D;return J._zod.run({value:$,issues:D.issues},X)}function Kk(D){if(!D.memo)D.value=Object.freeze(D.value);return D}function j5D(D){let $=D._zod.def,J=$.pattern,X=!!$.format?.includes("int"),Y,Q;for(let F of $.checks??[]){let W=F._zod.def;if(W.pattern)J=W.pattern;X||(X=!!W.format?.includes("int"));let K=W.minimum??W.length,q=W.maximum??W.length;if(K!==void 0&&(Y===void 0||K>Y))Y=K;if(q!==void 0&&(Q===void 0||q<Q))Q=q}if(J)return J.source;if(Y!==void 0&&Q!==void 0&&Y>Q)return"(?!)";if(Y!==void 0||Q!==void 0)return HG({minimum:Y,maximum:Q}).source;let U=D._zod.pattern;return(X&&U===V6?F7:U)?.source}function cG(D){let $=D._zod.def,J=D._zod.pattern?.source,X=$.innerType??D._zod.innerType;if(X){let Y=X._zod.pattern?.source,Q=cG(X);if(J&&Y&&Q&&Q!==Y)return J.replace(f6(Y),()=>f6(Q));return J}if($.options){let Y=$.options.map(cG);if(Y.every(Boolean))return`^(${Y.map((Q)=>f6(Q)).join("|")})$`}return j5D(D)}function qk(D,$,J,X){if(!D){let Y={code:"custom",input:J,inst:X,path:[...X._zod.def.path??[]],continue:!X._zod.def.abort};if(X._zod.def.params)Y.params=X._zod.def.params;$.issues.push(M2(Y))}}var zD,Gk=(D,$)=>D.issues.length?{issues:D.issues.map((J)=>B$(J,$,Z0()))}:{value:D.value},k4,yD,pG,nG,rG,tG=1,q7=2,I5D,aG,sG,eG,DZ,$Z,JZ,XZ,YZ,QZ,UZ,FZ,WZ,KZ,B5D,qZ,GZ,ZZ,zZ,qY,HZ,H7,IZ,BZ,O5D,OZ,NZ,VZ,wZ,IY,jZ,I7,BY,LZ,RZ,MZ,AZ,vZ,EZ,TZ,PZ,bZ,SZ,w5D,Ik,CZ,B7,kZ,uZ,gZ,OY,xZ,fZ,yZ,hZ,mZ,lZ,dZ,NY,iZ,cZ,pZ,nZ,rZ,tZ,oZ,aZ,VY,O7,sZ,eZ,Dz,$z,Jz,N7,Xz;var C2=S(()=>{DY();L1();hq();C4();e();iG();e();zD=T("$ZodType",(D,$)=>{var J;D??(D={}),D._zod.def=$,D._zod.bag=D._zod.bag||{},D._zod.version=dG;let X=D._zod.def.checks,Y=D._zod.traits.has("$ZodCheck")?[D,...X??[]]:X?.length?[...X]:[];for(let Q of Y)for(let U of Q._zod.onattach)U(D);if(Y.length===0)(J=D._zod).deferred??(J.deferred=[]),D._zod.deferred?.push(()=>{D._zod.run=D._zod.parse});else{let Q=(F,W,K)=>{if(F.memo)return F;let q=J$(F),G;for(let Z of W){if(Z._zod.def.when){if(Tq(F))continue;if(!Z._zod.def.when(F))continue}else if(q)continue;let H=F.issues.length,z=Z._zod.check(F);if(z instanceof Promise&&K?.async===!1)throw new v$;if(G||z instanceof Promise)G=(G??Promise.resolve()).then(async()=>{if(await z,F.issues.length===H)return;if(uX(F.issues,H,D),!q)q=J$(F,H)});else{if(F.issues.length===H)continue;if(uX(F.issues,H,D),!q)q=J$(F,H)}}if(G)return G.then(()=>{return F});return F},U=(F,W,K)=>{if(J$(F))return F.aborted=!0,F;let q=Q(W,Y,K);if(q instanceof Promise){if(K.async===!1)throw new v$;return q.then((G)=>D._zod.parse(G,K))}return D._zod.parse(q,K)};D._zod.run=(F,W)=>{if(W.skipChecks)return D._zod.parse(F,W);if(W.direction==="backward"){let q=D._zod.parse({value:F.value,issues:[]},{...W,skipChecks:!0});if(q instanceof Promise)return q.then((G)=>{return U(G,F,W)});return U(q,F,W)}let K=D._zod.parse(F,W);if(K instanceof Promise){if(W.async===!1)throw new v$;return K.then((q)=>Q(q,Y,W))}return Q(K,Y,W)}}},{get "~standard"(){return $7(this,"~standard",QY(this))},set "~standard"(D){j1(this,"~standard",D)}});k4=T("$ZodString",(D,$)=>{zD.init(D,$),D._zod.pattern=$.pattern??zG,D._zod.parse=(J,X)=>{if($.coerce)try{J.value=String(J.value)}catch(Y){}if(typeof J.value==="string")return J;return J.issues.push({expected:"string",code:"invalid_type",input:J.value,inst:D}),J}}),yD=T("$ZodStringFormat",(D,$)=>{P2.init(D,$),k4.init(D,$)}),pG=T("$ZodGUID",(D,$)=>{$.pattern??($.pattern=oq),yD.init(D,$)}),nG=T("$ZodUUID",(D,$)=>{if($.version){let X={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[$.version];if(X===void 0)throw Error(`Invalid UUID version: "${$.version}"`);$.pattern??($.pattern=S4(X))}else $.pattern??($.pattern=S4());yD.init(D,$)}),rG=T("$ZodEmail",(D,$)=>{$.pattern??($.pattern=aq),yD.init(D,$)});I5D=/[\t\n\r]/g;aG=T("$ZodURL",(D,$)=>{yD.init(D,$),D._zod.check=(J)=>{try{let X=J.value.trim(),Y=UY(X,$);if(Y===tG){J.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:J.value,inst:D,continue:!$.abort});return}if(Y===q7){J.issues.push({code:"invalid_format",format:"url",input:J.value,inst:D,continue:!$.abort});return}if(Y===!0){J.value=G7(X);return}if($.hostname&&!FY(Y,$.hostname))J.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:$.hostname.source,input:J.value,inst:D,continue:!$.abort});if($.protocol&&!WY(Y,$.protocol))J.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:$.protocol.source,input:J.value,inst:D,continue:!$.abort});J.value=$.normalize?Y.href:G7(X);return}catch(X){J.issues.push({code:"invalid_format",format:"url",input:J.value,inst:D,continue:!$.abort})}}}),sG=T("$ZodEmoji",(D,$)=>{$.pattern??($.pattern=sq()),yD.init(D,$)}),eG=T("$ZodNanoID",(D,$)=>{if($.length!==void 0&&(!Number.isInteger($.length)||$.length<1))throw Error(`Invalid nanoid length: ${$.length}`);$.pattern??($.pattern=$.length===void 0?nq:rq($.length)),yD.init(D,$)}),DZ=T("$ZodCUID",(D,$)=>{$.pattern??($.pattern=lq),yD.init(D,$)}),$Z=T("$ZodCUID2",(D,$)=>{$.pattern??($.pattern=dq),yD.init(D,$)}),JZ=T("$ZodULID",(D,$)=>{$.pattern??($.pattern=iq),yD.init(D,$)}),XZ=T("$ZodXID",(D,$)=>{$.pattern??($.pattern=cq),yD.init(D,$)}),YZ=T("$ZodKSUID",(D,$)=>{$.pattern??($.pattern=pq),yD.init(D,$)}),QZ=T("$ZodISODateTime",(D,$)=>{$.pattern??($.pattern=ZG($)),yD.init(D,$)}),UZ=T("$ZodISODate",(D,$)=>{$.pattern??($.pattern=qG),yD.init(D,$)}),FZ=T("$ZodISOTime",(D,$)=>{$.pattern??($.pattern=GG($)),yD.init(D,$)}),WZ=T("$ZodISODuration",(D,$)=>{$.pattern??($.pattern=tq),yD.init(D,$)}),KZ=T("$ZodIPv4",(D,$)=>{$.pattern??($.pattern=eq),yD.init(D,$)}),B5D=/^[0-9a-fA-F:.]+$/;qZ=T("$ZodIPv6",(D,$)=>{$.pattern??($.pattern=DG),yD.init(D,$),D._zod.check=(J)=>{if(!Z7(J.value))J.issues.push({code:"invalid_format",format:"ipv6",input:J.value,inst:D,continue:!$.abort})}}),GZ=T("$ZodMAC",(D,$)=>{$.pattern??($.pattern=$G($.delimiter)),yD.init(D,$)}),ZZ=T("$ZodCIDRv4",(D,$)=>{$.pattern??($.pattern=JG),yD.init(D,$)});zZ=T("$ZodCIDRv6",(D,$)=>{$.pattern??($.pattern=XG),yD.init(D,$),D._zod.check=(J)=>{if(!KY(J.value))J.issues.push({code:"invalid_format",format:"cidrv6",input:J.value,inst:D,continue:!$.abort})}});qY=/^[0-9a-zA-Z+/]*={0,2}$/,HZ=T("$ZodBase64",(D,$)=>{$.pattern??($.pattern=qY),yD.init(D,$),D._zod.check=(J)=>{if(z7(J.value))return;J.issues.push({code:"invalid_format",format:"base64",input:J.value,inst:D,continue:!$.abort})}}),H7=/^[A-Za-z0-9_-]*$/;IZ=T("$ZodBase64URL",(D,$)=>{$.pattern??($.pattern=H7),yD.init(D,$),D._zod.check=(J)=>{if(GY(J.value))return;J.issues.push({code:"invalid_format",format:"base64url",input:J.value,inst:D,continue:!$.abort})}}),BZ=T("$ZodE164",(D,$)=>{$.pattern??($.pattern=WG),yD.init(D,$)}),O5D=/[- ]/g;OZ=T("$ZodCreditCard",(D,$)=>{$.pattern??($.pattern=rX),yD.init(D,$),D._zod.check=(J)=>{if(ZY(J.value))return;J.issues.push({code:"invalid_format",format:"credit_card",input:J.value,inst:D,continue:!$.abort})}});NZ=T("$ZodIBAN",(D,$)=>{$.pattern??($.pattern=tX),yD.init(D,$),D._zod.check=(J)=>{if(zY(J.value))return;J.issues.push({code:"invalid_format",format:"iban",input:J.value,inst:D,continue:!$.abort})}});VZ=T("$ZodJWT",(D,$)=>{yD.init(D,$),D._zod.check=(J)=>{if(HY(J.value,$.alg))return;J.issues.push({code:"invalid_format",format:"jwt",input:J.value,inst:D,continue:!$.abort})}}),wZ=T("$ZodCustomStringFormat",(D,$)=>{yD.init(D,$),D._zod.check=(J)=>{if($.fn(J.value))return;J.issues.push({code:"invalid_format",format:$.format,input:J.value,inst:D,continue:!$.abort})}}),IY=T("$ZodNumber",(D,$)=>{zD.init(D,$),D._zod.pattern=V6,D._zod.parse=(J,X)=>{if($.coerce)try{J.value=Number(J.value)}catch(U){}let Y=J.value;if(typeof Y==="number"&&!Number.isNaN(Y)&&Number.isFinite(Y))return J;let Q=typeof Y==="number"?Number.isNaN(Y)?"NaN":!Number.isFinite(Y)?String(Y):void 0:void 0;return J.issues.push({expected:"number",code:"invalid_type",input:Y,inst:D,...Q?{received:Q}:{}}),J}}),jZ=T("$ZodNumberFormat",(D,$)=>{AG.init(D,$),IY.init(D,$)}),I7=T("$ZodBoolean",(D,$)=>{zD.init(D,$),D._zod.pattern=BG,D._zod.parse=(J,X)=>{if($.coerce)try{J.value=Boolean(J.value)}catch(Q){}let Y=J.value;if(typeof Y==="boolean")return J;return J.issues.push({expected:"boolean",code:"invalid_type",input:Y,inst:D}),J}}),BY=T("$ZodBigInt",(D,$)=>{zD.init(D,$),D._zod.pattern=IG,D._zod.parse=(J,X)=>{if($.coerce)try{J.value=BigInt(J.value)}catch(Y){}if(typeof J.value==="bigint")return J;return J.issues.push({expected:"bigint",code:"invalid_type",input:J.value,inst:D}),J}}),LZ=T("$ZodBigIntFormat",(D,$)=>{vG.init(D,$),BY.init(D,$)}),RZ=T("$ZodSymbol",(D,$)=>{zD.init(D,$),D._zod.parse=(J,X)=>{let Y=J.value;if(typeof Y==="symbol")return J;return J.issues.push({expected:"symbol",code:"invalid_type",input:Y,inst:D}),J}}),MZ=T("$ZodUndefined",(D,$)=>{zD.init(D,$),D._zod.pattern=NG,D._zod.values=new Set([void 0]),D._zod.parse=(J,X)=>{let Y=J.value;if(typeof Y>"u")return J;return J.issues.push({expected:"undefined",code:"invalid_type",input:Y,inst:D}),J}}),AZ=T("$ZodNull",(D,$)=>{zD.init(D,$),D._zod.pattern=OG,D._zod.values=new Set([null]),D._zod.parse=(J,X)=>{let Y=J.value;if(Y===null)return J;return J.issues.push({expected:"null",code:"invalid_type",input:Y,inst:D}),J}}),vZ=T("$ZodAny",(D,$)=>{zD.init(D,$),D._zod.parse=(J)=>J}),EZ=T("$ZodUnknown",(D,$)=>{zD.init(D,$),D._zod.parse=(J)=>J}),TZ=T("$ZodNever",(D,$)=>{zD.init(D,$),D._zod.parse=(J,X)=>{return J.issues.push({expected:"never",code:"invalid_type",input:J.value,inst:D}),J}}),PZ=T("$ZodVoid",(D,$)=>{zD.init(D,$),D._zod.parse=(J,X)=>{let Y=J.value;if(typeof Y>"u")return J;return J.issues.push({expected:"void",code:"invalid_type",input:Y,inst:D}),J}}),bZ=T("$ZodDate",(D,$)=>{zD.init(D,$),D._zod.parse=(J,X)=>{if($.coerce)try{J.value=new Date(J.value)}catch(F){}let Y=J.value,Q=Y instanceof Date;if(Q&&!Number.isNaN(Y.getTime()))return J;return J.issues.push({expected:"date",code:"invalid_type",input:Y,...Q?{received:"Invalid Date"}:{},inst:D}),J}});SZ=T("$ZodArray",(D,$)=>{zD.init(D,$);let J=E0.memoizer;J?.attach(D),D._zod.parse=(X,Y)=>{let Q=X.value;if(!Array.isArray(Q))return X.issues.push({expected:"array",code:"invalid_type",input:Q,inst:D}),X;X.value=J?J.alloc(D,X,Array(Q.length),Y):Array(Q.length);let U=[],F=Y?.abortEarly;for(let W=0;W<Q.length;W++){let K=Q[W],q=$.element._zod.run({value:K,issues:[]},Y);if(q instanceof Promise)U.push(q.then((G)=>oC(G,X,W)));else if(oC(q,X,W),F&&q.issues.length!==0&&J$(q))break}if(U.length)return Promise.all(U).then(()=>X);return X}});w5D=[];Ik=T("$ZodObject",(D,$)=>{zD.init(D,$);let J=Object.getOwnPropertyDescriptor($,"shape"),X=J?.get?J.get.raw:$.shape??{};if(X){let K=()=>{let q={...X};return Object.defineProperty($,"shape",{value:q}),K.raw=q,q};K.raw=X,Object.defineProperty($,"shape",{get:K})}let Y=L2(()=>zk($));wD(D,"propValues",(K)=>{let q=K.def.shape,G={};for(let Z in q){let H=q[Z]._zod;if(H.values){if(!Object.prototype.hasOwnProperty.call(G,Z))k0(G,Z,new Set);for(let z of H.values)G[Z].add(z);if(H.optin!==void 0)G[Z].add(void 0)}}return G});let Q=T4,U=$.catchall,F,W=E0.memoizer;W?.attach(D),D._zod.parse=(K,q)=>{F??(F=Y.value);let G=K.value;if(!Q(G))return K.issues.push({expected:"object",code:"invalid_type",input:G,inst:D}),K;K.value=W?W.alloc(D,K,{},q):{};let Z=[],H=F.shape,z=q?.abortEarly,I=K.issues.length;for(let B of F.allKeys){if(z&&K.issues.length!==I){if(J$(K,I))break;I=K.issues.length}if(B==="__proto__")continue;let N=H[B],V=N._zod.optin,O=N._zod.optout,j=N._zod.run({value:G[B],issues:[]},q);if(j instanceof Promise)Z.push(j.then((v)=>YY(v,K,B,G,V,O)));else YY(j,K,B,G,V,O)}if(!U)return Z.length?Promise.all(Z).then(()=>K):K;return Hk(Z,G,K,q,Y.value,D,z===!0)}}),CZ=T("$ZodObjectJIT",(D,$)=>{Ik.init(D,$);let J=D._zod.parse,X=L2(()=>zk($)),Y=E0.memoizer,Q=(H)=>{let z=X.value,I=z.symbolKeys,B=new b2(["payload","ctx"],{shape:H,inst:D,memo:Y,syms:I}),N=(v)=>`shape[${v}]._zod.run({ value: input[${v}], issues: [] }, ctx)`,V=(v,A)=>`
let ${v}_ab = false;
for (let i = 0; i < ${v}.issues.length; i++) {
const iss = ${v}.issues[i];
iss.path = iss.path ? [${A}, ...iss.path] : [${A}];
payload.issues.push(iss);
if (iss.continue !== true) ${v}_ab = true;
}
if (${v}_ab && ctx && ctx.abortEarly) {
payload.value = newResult;
return payload;
}`;B.write("const input = payload.value;");let O=Object.create(null),j=0;for(let v of z.allKeys)O[v]=`key_${j++}`;B.write(Y?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let v of z.allKeys){if(v==="__proto__")continue;let A=O[v],C=typeof v==="symbol"?`syms[${I.indexOf(v)}]`:$$(v),u=`${C} in input`,_=H[v],y=_?._zod?.optin,E=y!==void 0,d=_?._zod?.optout==="optional";if(B.write(`const ${A} = ${N(C)};`),E&&d){let c=y==="optional"?`${A}_present`:`${A}.value !== undefined || ${A}_present`;B.write(`
const ${A}_present = ${u};
if (!${A}.issues.length || ${A}_present) {
if (${A}.issues.length) {${V(A,C)}
}
if (${c}) {
newResult[${C}] = ${A}.value;
}
}
`)}else if(!E)B.write(`
const ${A}_present = ${u};
if (${A}.issues.length) {${V(A,C)}
}
if (!${A}_present && !${A}.issues.length) {
payload.issues.push({
code: "invalid_type",
expected: "nonoptional",
input: undefined,
path: [${C}]
});
if (ctx && ctx.abortEarly) {
payload.value = newResult;
return payload;
}
}
if (${A}_present) {
newResult[${C}] = ${A}.value;
}
`);else if(B.write(`
if (${A}.issues.length) {${V(A,C)}
}
`),y==="defaulted")B.write(`newResult[${C}] = ${A}.value;`);else B.write(`
if (${A}.value !== undefined || ${u}) {
newResult[${C}] = ${A}.value;
}
`)}return B.write("payload.value = newResult;"),B.write("return payload;"),B.compile()},U,F=T4,W=!E0.jitless,q=W&&Aq.value,G=$.catchall,Z;D._zod.parse=(H,z)=>{Z??(Z=X.value);let I=H.value;if(!F(I))return H.issues.push({expected:"object",code:"invalid_type",input:I,inst:D}),H;if(W&&q&&z?.async===!1&&z.jitless!==!0){if(!U)U=Q($.shape);if(H=U(H,z),!G)return H;return Hk([],I,H,z,Z,D,z?.abortEarly===!0)}return J(H,z)}});B7=T("$ZodUnion",(D,$)=>{zD.init(D,$),wD(D,"optin",(X)=>X.def.options.some((Y)=>Y._zod.optin==="defaulted")?"defaulted":X.def.options.some((Y)=>Y._zod.optin!==void 0)?"optional":void 0),wD(D,"optout",(X)=>X.def.options.some((Y)=>Y._zod.optout==="optional")?"optional":void 0),wD(D,"values",(X)=>{if(X.def.options.every((Y)=>Y._zod.values))return new Set(X.def.options.flatMap((Y)=>Array.from(Y._zod.values)));return}),wD(D,"pattern",(X)=>{if(X.def.options.every((Y)=>Y._zod.pattern)){let Y=X.def.options.map((Q)=>Q._zod.pattern);return new RegExp(`^(${Y.map((Q)=>f6(Q.source)).join("|")})$`)}return});let J=$.options.length===1?$.options[0]._zod.run:null;D._zod.parse=(X,Y)=>{if(J)return J(X,Y);let Q=!1,U=[];for(let F of $.options){let W=F._zod.run({value:X.value,issues:[]},Y);if(W instanceof Promise)U.push(W),Q=!0;else{if(W.issues.length===0)return W;U.push(W)}}if(!Q)return aC(U,X,D,Y);return Promise.all(U).then((F)=>{return aC(F,X,D,Y)})}});kZ=T("$ZodXor",(D,$)=>{B7.init(D,$),$.inclusive=!1;let J=$.options.length===1?$.options[0]._zod.run:null;D._zod.parse=(X,Y)=>{if(J)return J(X,Y);let Q=!1,U=[];for(let F of $.options){let W=F._zod.run({value:X.value,issues:[]},Y);if(W instanceof Promise)U.push(W),Q=!0;else U.push(W)}if(!Q)return sC(U,X,D,Y);return Promise.all(U).then((F)=>{return sC(F,X,D,Y)})}});uZ=T("$ZodDiscriminatedUnion",(D,$)=>{$.inclusive=!1,B7.init(D,$);let J=D._zod.parse;wD(D,"propValues",(Y)=>{let Q={},U=0;for(let F of Y.def.options){let W=F._zod.propValues;if(!W||Object.keys(W).length===0)throw Error(`Invalid discriminated union option at index "${Y.def.options.indexOf(F)}"`);if(W[Y.def.discriminator]?.has(void 0))U++;for(let[K,q]of Object.entries(W)){if(!Object.prototype.hasOwnProperty.call(Q,K))k0(Q,K,new Set);for(let G of q)Q[K].add(G)}}if(!Y.def.unionFallback&&U>1)Q[Y.def.discriminator]?.delete(void 0);return Q}),$.options.forEach((Y,Q)=>{let U=R2(Y._zod.def);if(U&&!Object.prototype.hasOwnProperty.call(U,$.discriminator))throw Error(`Invalid discriminated union option at index "${Q}"`)});let X=L2(()=>Bk($));D._zod.parse=(Y,Q)=>{let U=Y.value;if(!T4(U))return Y.issues.push({code:"invalid_type",expected:"object",input:U,inst:D}),Y;let F=U?.[$.discriminator],W=X.value.get(F);if(W&&(F!==void 0||Q.direction!=="backward"))return W._zod.run(Y,Q);if($.unionFallback||Q.direction==="backward")return J(Y,Q);return Y.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:$.discriminator,options:Array.from(X.value.keys()).filter((K)=>X.value.get(K)!==null),input:U,path:[$.discriminator],inst:D}),Y}}),gZ=T("$ZodIntersection",(D,$)=>{zD.init(D,$),D._zod.parse=(J,X)=>{let Y=J.value,Q=$.left._zod.run({value:Y,issues:[]},X),U=$.right._zod.run({value:Y,issues:[]},X);if(Q instanceof Promise||U instanceof Promise)return Promise.all([Q,U]).then(([W,K])=>{return eC(J,W,K)});return eC(J,Q,U)}});OY=T("$ZodTuple",(D,$)=>{zD.init(D,$);let J=$.items,X=E0.memoizer;X?.attach(D),D._zod.parse=(Y,Q)=>{let U=Y.value;if(!Array.isArray(U))return Y.issues.push({input:U,inst:D,expected:"tuple",code:"invalid_type"}),Y;Y.value=X?X.alloc(D,Y,[],Q):[];let F=[],W=Dk(J,"optin"),K=Dk(J,"optout");if(!$.rest){if(U.length<W)return Y.issues.push({code:"too_small",minimum:W,inclusive:!0,input:U,inst:D,origin:"array"}),Y;if(U.length>J.length)Y.issues.push({code:"too_big",maximum:J.length,inclusive:!0,input:U,inst:D,origin:"array"})}let q=Array(J.length),G=$.rest?Q?.abortEarly:void 0,Z=!1;for(let H=0;H<J.length;H++){let z=J[H]._zod.run({value:U[H],issues:[]},Q);if(z instanceof Promise)F.push(z.then((I)=>{q[H]=I}));else if(q[H]=z,G&&!Z&&z.issues.length)Z=J$(z)}if($.rest&&!Z){let H=J.length-1,z=U.slice(J.length),I=Y.issues.length;for(let B of z){if(G&&Y.issues.length!==I){if(J$(Y,I))break;I=Y.issues.length}H++;let N=$.rest._zod.run({value:B,issues:[]},Q);if(N instanceof Promise)F.push(N.then((V)=>$k(V,Y,H)));else $k(N,Y,H)}}if(F.length)return Promise.all(F).then(()=>Jk(q,Y,J,U,K));return Jk(q,Y,J,U,K)}});xZ=T("$ZodRecord",(D,$)=>{zD.init(D,$);let J=E0.memoizer;J?.attach(D),D._zod.parse=(X,Y)=>{let Q=X.value;if(!i$(Q))return X.issues.push({expected:"record",code:"invalid_type",input:Q,inst:D}),X;let U=[],F=$.keyType._zod.values;if(F&&!$.partial){X.value=J?J.alloc(D,X,{},Y):{};let W=new Set;for(let q of F)if(typeof q==="string"||typeof q==="number"||typeof q==="symbol"){if(W.add(typeof q==="number"?q.toString():q),q==="__proto__")continue;let G=$.keyType._zod.run({value:q,issues:[]},Y);if(G instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(G.issues.length){X.issues.push({code:"invalid_key",origin:"record",issues:G.issues.map((z)=>B$(z,Y,Z0())),input:q,path:[q],inst:D});continue}let Z=G.value;if(Z==="__proto__")continue;let H=$.valueType._zod.run({value:Q[q],issues:[]},Y);if(H instanceof Promise)U.push(H.then((z)=>{if(z.issues.length)X.issues.push(...I$(q,z.issues));X.value[Z]=z.value}));else{if(H.issues.length)X.issues.push(...I$(q,H.issues));X.value[Z]=H.value}}let K;for(let q in Q)if(!W.has(q))if($.mode==="loose"){if(q==="__proto__")continue;X.value[q]=Q[q]}else K=K??[],K.push(q);if(K&&K.length>0)X.issues.push({code:"unrecognized_keys",input:Q,inst:D,keys:K,continue:!0})}else{X.value=J?J.alloc(D,X,{},Y):{};let W;for(let K of Reflect.ownKeys(Q)){if(K==="__proto__")continue;if(!Object.prototype.propertyIsEnumerable.call(Q,K))continue;let q=$.keyType._zod.run({value:K,issues:[]},Y);if(q instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(typeof K==="string"&&V6.test(K)&&q.issues.length){let z=$.keyType._zod.run({value:Number(K),issues:[]},Y);if(z instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(z.issues.length===0)q=z}if(q.issues.length){if($.mode==="loose")X.value[K]=Q[K];else if(F)W=W??[],W.push(K);else X.issues.push({code:"invalid_key",origin:"record",issues:q.issues.map((z)=>B$(z,Y,Z0())),input:K,path:[K],inst:D});continue}let Z=q.value;if(Z==="__proto__")continue;let H=$.valueType._zod.run({value:Q[K],issues:[]},Y);if(H instanceof Promise)U.push(H.then((z)=>{if(z.issues.length)X.issues.push(...I$(K,z.issues));X.value[Z]=z.value}));else{if(H.issues.length)X.issues.push(...I$(K,H.issues));X.value[Z]=H.value}}if(W&&W.length>0)X.issues.push({code:"unrecognized_keys",input:Q,inst:D,keys:W,continue:!0})}if(U.length)return Promise.all(U).then(()=>X);return X}}),fZ=T("$ZodMap",(D,$)=>{zD.init(D,$);let J=E0.memoizer;J?.attach(D),D._zod.parse=(X,Y)=>{let Q=X.value;if(!(Q instanceof Map))return X.issues.push({expected:"map",code:"invalid_type",input:Q,inst:D}),X;let U=[];X.value=J?J.alloc(D,X,new Map,Y):new Map;let F=Y?.abortEarly,W=X.issues.length;for(let[K,q]of Q){if(F&&X.issues.length!==W){if(J$(X,W))break;W=X.issues.length}let G=$.keyType._zod.run({value:K,issues:[]},Y),Z=$.valueType._zod.run({value:q,issues:[]},Y);if(G instanceof Promise||Z instanceof Promise)U.push(Promise.all([G,Z]).then(([H,z])=>{Xk(H,z,X,K,Q,D,Y)}));else Xk(G,Z,X,K,Q,D,Y)}if(U.length)return Promise.all(U).then(()=>X);return X}});yZ=T("$ZodSet",(D,$)=>{zD.init(D,$);let J=E0.memoizer;J?.attach(D),D._zod.parse=(X,Y)=>{let Q=X.value;if(!(Q instanceof Set))return X.issues.push({input:Q,inst:D,expected:"set",code:"invalid_type"}),X;let U=[];X.value=J?J.alloc(D,X,new Set,Y):new Set;let F=Y?.abortEarly,W=X.issues.length;for(let K of Q){if(F&&X.issues.length!==W){if(J$(X,W))break;W=X.issues.length}let q=$.valueType._zod.run({value:K,issues:[]},Y);if(q instanceof Promise)U.push(q.then((G)=>Yk(G,X)));else Yk(q,X)}if(U.length)return Promise.all(U).then(()=>X);return X}});hZ=T("$ZodEnum",(D,$)=>{zD.init(D,$);let J=w2($.entries),X=new Set(J);D._zod.values=X,wD(D,"pattern",(Y)=>{let Q=w2(Y.def.entries).filter((U)=>o5.has(typeof U));return new RegExp(Q.length?`^(${Q.map((U)=>c$(U.toString())).join("|")})$`:"^[^\\s\\S]$")}),D._zod.parse=(Y,Q)=>{let U=Y.value;if(X.has(U))return Y;return Y.issues.push({code:"invalid_value",values:J,input:U,inst:D}),Y}}),mZ=T("$ZodLiteral",(D,$)=>{zD.init(D,$);let J=new Set($.values);D._zod.values=J,wD(D,"pattern",(X)=>{let Y=X.def.values;return new RegExp(Y.length?`^(${Y.map((Q)=>typeof Q==="string"?c$(Q):Q?c$(Q.toString()):String(Q)).join("|")})$`:"^[^\\s\\S]$")}),D._zod.parse=(X,Y)=>{let Q=X.value;if(J.has(Q))return X;return X.issues.push({code:"invalid_value",values:$.values,input:Q,inst:D}),X}}),lZ=T("$ZodFile",(D,$)=>{zD.init(D,$),D._zod.parse=(J,X)=>{let Y=J.value;if(Y instanceof File)return J;return J.issues.push({expected:"file",code:"invalid_type",input:Y,inst:D}),J}}),dZ=T("$ZodTransform",(D,$)=>{zD.init(D,$),D._zod.optin="optional",E0.memoizer?.guard(D),D._zod.parse=(J,X)=>{if(X.direction==="backward")throw new b4(D.constructor.name);let Y=$.transform(J.value,J);if(X.async)return(Y instanceof Promise?Y:Promise.resolve(Y)).then((U)=>{return J.value=U,J});if(Y instanceof Promise)throw new v$;return J.value=Y,J}});NY=T("$ZodOptional",(D,$)=>{zD.init(D,$),wD(D,"optin",(J)=>J.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),D._zod.optout="optional",wD(D,"values",(J)=>{let X=J.def.innerType._zod.values;return X?new Set([...X,void 0]):void 0}),wD(D,"pattern",(J)=>{let X=J.def.innerType._zod.pattern;return X?new RegExp(`^(${f6(X.source)})?$`):void 0}),D._zod.parse=(J,X)=>{if(J.value===void 0){if($.innerType._zod.optin!=="defaulted")return J;let Y=$.innerType._zod.run({value:J.value,issues:[]},X);if(Y instanceof Promise)return Y.then((Q)=>Qk(J,Q));return Qk(J,Y)}return $.innerType._zod.run(J,X)}}),iZ=T("$ZodExactOptional",(D,$)=>{NY.init(D,$),wD(D,"values",(J)=>J.def.innerType._zod.values),wD(D,"pattern",(J)=>J.def.innerType._zod.pattern),D._zod.parse=(J,X)=>{return $.innerType._zod.run(J,X)}}),cZ=T("$ZodNullable",(D,$)=>{zD.init(D,$),wD(D,"optin",(J)=>J.def.innerType._zod.optin),wD(D,"optout",(J)=>J.def.innerType._zod.optout),wD(D,"pattern",(J)=>{let X=J.def.innerType._zod.pattern;return X?new RegExp(`^(${f6(X.source)}|null)$`):void 0}),wD(D,"values",(J)=>{return J.def.innerType._zod.values?new Set([...J.def.innerType._zod.values,null]):void 0}),D._zod.parse=(J,X)=>{if(J.value===null)return J;return $.innerType._zod.run(J,X)}}),pZ=T("$ZodDefault",(D,$)=>{zD.init(D,$),D._zod.optin="defaulted",wD(D,"values",(J)=>J.def.innerType._zod.values),D._zod.parse=(J,X)=>{if(X.direction==="backward")return $.innerType._zod.run(J,X);if(J.value===void 0)return J.value=$.defaultValue,J;let Y=$.innerType._zod.run(J,X);if(Y instanceof Promise)return Y.then((Q)=>Uk(Q,$));return Uk(Y,$)}});nZ=T("$ZodPrefault",(D,$)=>{zD.init(D,$),D._zod.optin="defaulted",wD(D,"values",(J)=>J.def.innerType._zod.values),D._zod.parse=(J,X)=>{if(X.direction==="backward")return $.innerType._zod.run(J,X);if(J.value===void 0)J.value=$.defaultValue;return $.innerType._zod.run(J,X)}}),rZ=T("$ZodNonOptional",(D,$)=>{zD.init(D,$),wD(D,"values",(J)=>{let X=J.def.innerType._zod.values;return X?new Set([...X].filter((Y)=>Y!==void 0)):void 0}),D._zod.parse=(J,X)=>{let Y=$.innerType._zod.run(J,X);if(Y instanceof Promise)return Y.then((Q)=>Fk(Q,D));return Fk(Y,D)}});tZ=T("$ZodSuccess",(D,$)=>{zD.init(D,$),D._zod.parse=(J,X)=>{if(X.direction==="backward")throw new b4("ZodSuccess");let Y=$.innerType._zod.run(J,X);if(Y instanceof Promise)return Y.then((Q)=>{return J.value=Q.issues.length===0,J});return J.value=Y.issues.length===0,J}});oZ=T("$ZodCatch",(D,$)=>{zD.init(D,$),wD(D,"optin",(J)=>J.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),wD(D,"optout",(J)=>J.def.innerType._zod.optout),wD(D,"values",(J)=>J.def.innerType._zod.values),D._zod.parse=(J,X)=>{if(X.direction==="backward")return $.innerType._zod.run(J,X);let Y=$.innerType._zod.run({value:J.value,issues:[]},X);if(Y instanceof Promise)return Y.then((Q)=>Wk(J,Q,$,X));return Wk(J,Y,$,X)}}),aZ=T("$ZodNaN",(D,$)=>{zD.init(D,$),D._zod.parse=(J,X)=>{if(typeof J.value!=="number"||!Number.isNaN(J.value))return J.issues.push({input:J.value,inst:D,expected:"nan",code:"invalid_type"}),J;return J}}),VY=T("$ZodPipe",(D,$)=>{zD.init(D,$),wD(D,"values",(J)=>J.def.in._zod.values),wD(D,"optin",(J)=>J.def.in._zod.optin),wD(D,"optout",(J)=>J.def.out._zod.optout),wD(D,"propValues",(J)=>J.def.in._zod.propValues),D._zod.parse=(J,X)=>{if(X.direction==="backward"){let Q=$.out._zod.run(J,X);if(Q instanceof Promise)return Q.then((U)=>$Y(U,$.in,X));return $Y(Q,$.in,X)}let Y=$.in._zod.run(J,X);if(Y instanceof Promise)return Y.then((Q)=>$Y(Q,$.out,X));return $Y(Y,$.out,X)}});O7=T("$ZodCodec",(D,$)=>{zD.init(D,$),wD(D,"values",(J)=>J.def.in._zod.values),wD(D,"optin",(J)=>J.def.in._zod.optin),wD(D,"optout",(J)=>J.def.out._zod.optout),wD(D,"propValues",(J)=>J.def.in._zod.propValues),D._zod.parse=(J,X)=>{if((X.direction||"forward")==="forward"){let Q=$.in._zod.run(J,X);if(Q instanceof Promise)return Q.then((U)=>JY(U,$,X));return JY(Q,$,X)}else{let Q=$.out._zod.run(J,X);if(Q instanceof Promise)return Q.then((U)=>JY(U,$,X));return JY(Q,$,X)}}});sZ=T("$ZodPreprocess",(D,$)=>{VY.init(D,$)}),eZ=T("$ZodReadonly",(D,$)=>{zD.init(D,$),wD(D,"propValues",(J)=>J.def.innerType._zod.propValues),wD(D,"values",(J)=>J.def.innerType._zod.values),wD(D,"optin",(J)=>J.def.innerType?._zod?.optin),wD(D,"optout",(J)=>J.def.innerType?._zod?.optout),D._zod.parse=(J,X)=>{if(X.direction==="backward")return $.innerType._zod.run(J,X);let Y=$.innerType._zod.run(J,X);if(Y instanceof Promise)return Y.then(Kk);return Kk(Y)}});Dz=T("$ZodTemplateLiteral",(D,$)=>{zD.init(D,$);let J=[];for(let X of $.parts)if(typeof X==="object"&&X!==null){let Y=cG(X);if(!Y)throw Error(`Invalid template literal part, no pattern found: ${[...X._zod.traits].shift()}`);J.push(f6(Y))}else if(X===null||vq.has(typeof X))J.push(c$(`${X}`));else throw Error(`Invalid template literal part: ${X}`);D._zod.pattern=new RegExp(`^${J.join("")}$`),D._zod.parse=(X,Y)=>{if(typeof X.value!=="string")return X.issues.push({input:X.value,inst:D,expected:"string",code:"invalid_type"}),X;if(D._zod.pattern.lastIndex=0,!D._zod.pattern.test(X.value))return X.issues.push({input:X.value,inst:D,code:"invalid_format",format:$.format??"template_literal",pattern:D._zod.pattern.source}),X;return X}}),$z=T("$ZodFunction",(D,$)=>{return zD.init(D,$),Object.defineProperty(D,"_def",{value:$}),D._zod.def=$,D.implement=(J)=>{if(typeof J!=="function")throw Error("implement() must be called with a function");return Object.defineProperty(function(...X){let Y=D._def.input?fX(D._def.input,X):X,Q=Reflect.apply(J,this,Y);if(D._def.output)return fX(D._def.output,Q);return Q},"_zod",{value:D._zod,enumerable:!1})},D.implementAsync=(J)=>{if(typeof J!=="function")throw Error("implementAsync() must be called with a function");return Object.defineProperty(async function(...X){let Y=D._def.input?await yX(D._def.input,X):X,Q=await Reflect.apply(J,this,Y);if(D._def.output)return await yX(D._def.output,Q);return Q},"_zod",{value:D._zod,enumerable:!1})},D._zod.parse=(J,X)=>{if(typeof J.value!=="function")return J.issues.push({code:"invalid_type",expected:"function",input:J.value,inst:D}),J;if(D._def.output&&D._def.output._zod.def.type==="promise")J.value=D.implementAsync(J.value);else J.value=D.implement(J.value);return J},D.input=(...J)=>{let X=D.constructor;if(Array.isArray(J[0]))return new X({type:"function",input:new OY({type:"tuple",items:J[0],rest:J[1]}),output:D._def.output});return new X({type:"function",input:J[0],output:D._def.output})},D.output=(J)=>{return new D.constructor({type:"function",input:D._def.input,output:J})},D}),Jz=T("$ZodPromise",(D,$)=>{zD.init(D,$),D._zod.parse=(J,X)=>{return Promise.resolve(J.value).then((Y)=>$.innerType._zod.run({value:Y,issues:[]},X))}}),N7=T("$ZodLazy",(D,$)=>{zD.init(D,$),Rq(D._zod,"innerType",()=>{let J=$;if(!J._cachedInner)J._cachedInner=$.getter();return J._cachedInner}),wD(D,"pattern",(J)=>J.innerType?._zod?.pattern),wD(D,"propValues",(J)=>J.innerType?._zod?.propValues),wD(D,"optin",(J)=>J.innerType?._zod?.optin??void 0),wD(D,"optout",(J)=>J.innerType?._zod?.optout??void 0),D._zod.parse=(J,X)=>{return D._zod.innerType._zod.run(J,X)}}),Xz=T("$ZodCustom",(D,$)=>{nD.init(D,$),zD.init(D,$),D._zod.parse=(J,X)=>{return J},D._zod.check=(J)=>{let X=J.value,Y=$.fn(X);if(Y instanceof Promise)return Y.then((Q)=>qk(Q,J,X,D));qk(Y,J,X,D);return}})});function Vk(D){return D!==null&&typeof D==="object"}function Yz(D){return D.map(($)=>$.path?{...$,path:$.path.slice()}:{...$})}function w7(D,$,J){let X=wk.get(D);if(X!==void 0)return X?V7:k2;if($.has(D))return V7;$.add(D);let Y=k2,Q=(q)=>{if(Y!==V7&&q?._zod){let G=w7(q,$,J);if(G>Y)Y=G}},U=(q,G)=>{let Z=k2;for(let H of Reflect.ownKeys(q)){let z=Object.getOwnPropertyDescriptor(q,H);if(G&&!z.enumerable)continue;let I=z.get?LY:z.value?._zod?w7(z.value,$,J):k2;if(I>Z)Z=I}return Z},F=(q)=>{if(q>Y)Y=q},W=D._zod.def,K=W.type;switch(K){case"object":{let q=R2(W);F(q?U(q,!0):LY),Q(W.catchall);break}case"array":Q(W.element);break;case"tuple":for(let q of W.items)Q(q);Q(W.rest);break;case"record":case"map":Q(W.keyType),Q(W.valueType);break;case"set":Q(W.valueType);break;case"union":for(let q of W.options)Q(q);break;case"intersection":Q(W.left),Q(W.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":Q(W.innerType);break;case"pipe":Q(W.in),Q(W.out);break;case"function":Q(W.input),Q(W.output);break;case"lazy":{let q=W._cachedInner??(J?D._zod.innerType:void 0);F(q?w7(q,$,!1):LY);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let q in W){let G=Object.getOwnPropertyDescriptor(W,q);if(!G||G.get)continue;let Z=G.value;if(!Z||typeof Z!=="object")continue;if(Z._zod)Q(Z);else if(Array.isArray(Z))for(let H of Z)Q(H)}}return $.delete(D),L5D(D,Y)}function L5D(D,$){if($!==LY)wk.set(D,$===V7);return $}function RY(D){return w7(D,new Set,!0)!==k2}function R5D(D,$){let J=D.buckets.get($);if(!J)J=new WeakMap,D.buckets.set($,J);return J}function j7(){return M5D}function MY(D,$){let J=D[Qz]?.backEdges;return J!==void 0&&Vk($)&&J.has($)}var Uz,Qz="~memo",Nk,wk,k2=0,LY=1,V7=2,wY,jY,M5D;var Fz=S(()=>{e();Uz=class Uz extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform");this.name="ZodCyclicError"}};Nk=[];wk=new WeakMap;jY=[],M5D={alloc(D,$,J){let X=wY;if(!X)return J;wY=void 0;let Y={value:J,issues:null};return X.set($.value,Y),jY.push(Y),J},guard(D){var $;($=D._zod).deferred??($.deferred=[]),D._zod.deferred.push(()=>{let J=D._zod.parse,X=(Y,Q)=>{if(Q.direction!=="backward"&&MY(Q,Y.value))throw new Uz;return J(Y,Q)};if(D._zod.parse=X,D._zod.run===J)D._zod.run=X})},attach(D){var $;let J,X=!1,Y,Q;($=D._zod).deferred??($.deferred=[]),D._zod.deferred.push(()=>{let U=D._zod.parse,F=(W,K)=>{if(J===void 0){let N=w7(D,new Set,!1);if(N===k2){if(D._zod.parse=U,D._zod.run===F)D._zod.run=U;return U(W,K)}if(N===V7||X)J=!0;else X=!0}let q=W.value;if(!Vk(q))return U(W,K);let G=K[Qz];if(!G)G={buckets:new WeakMap,backEdges:void 0},K[Qz]=G;let Z;if(Y===K)Z=Q;else Z=R5D(G,D),Y=K,Q=Z;let H=Z.get(q);if(H){if(W.value=H.value,H.issues){if(H.issues.length)W.issues.push(...Yz(H.issues))}else W.memo=!0,G.backEdges??(G.backEdges=new WeakSet),G.backEdges.add(H.value);return W}wY=Z;let z=jY.length,I=U(W,K);wY=void 0;let B=jY.length>z?jY.pop():void 0;if(I instanceof Promise)return I.then((N)=>{if(B)B.issues=N.issues.length?Yz(N.issues):Nk;return N});if(B)B.issues=I.issues.length?Yz(I.issues):Nk;return I};if(D._zod.parse=F,D._zod.run===U)D._zod.run=F})}}});function Wz(){return{localeError:A5D()}}var A5D=()=>{let D={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"},map:{unit:"عنصر",verb:"أن يحوي"}};function $(Y){return D[Y]??null}let J={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",mac:"عنوان MAC",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",credit_card:"رقم بطاقة الائتمان",currency_code:"رمز العملة",iban:"IBAN",jwt:"JWT",template_literal:"مدخل"},X={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`مدخلات غير مقبولة: يفترض إدخال instanceof ${Y.expected}، ولكن تم إدخال ${F}`;return`مدخلات غير مقبولة: يفترض إدخال ${Q}، ولكن تم إدخال ${F}`}case"invalid_value":if(Y.values.length===1)return`مدخلات غير مقبولة: يفترض إدخال ${m(Y.values[0])}`;return`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return` أكبر من اللازم: يفترض أن تكون ${Y.origin??"القيمة"} ${Q} ${Y.maximum.toString()} ${U.unit??"عنصر"}`;return`أكبر من اللازم: يفترض أن تكون ${Y.origin??"القيمة"} ${Q} ${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`أصغر من اللازم: يفترض لـ ${Y.origin} أن يكون ${Q} ${Y.minimum.toString()} ${U.unit}`;return`أصغر من اللازم: يفترض لـ ${Y.origin} أن يكون ${Q} ${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`نَص غير مقبول: يجب أن يبدأ بـ "${Y.prefix}"`;if(Q.format==="ends_with")return`نَص غير مقبول: يجب أن ينتهي بـ "${Q.suffix}"`;if(Q.format==="includes")return`نَص غير مقبول: يجب أن يتضمَّن "${Q.includes}"`;if(Q.format==="regex")return`نَص غير مقبول: يجب أن يطابق النمط ${Q.pattern}`;return`${J[Q.format]??Y.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${Y.divisor}`;case"unrecognized_keys":return`معرف${Y.keys.length>1?"ات":""} غريب${Y.keys.length>1?"ة":""}: ${b(Y.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${Y.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${Y.origin}`;default:return"مدخل غير مقبول"}}};var jk=S(()=>{e()});function Kz(){return{localeError:v5D()}}var v5D=()=>{let D={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"},map:{unit:"element",verb:"olmalıdır"}};function $(Y){return D[Y]??null}let J={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",credit_card:"kredit kartı nömrəsi",currency_code:"valyuta kodu",iban:"IBAN",jwt:"JWT",template_literal:"input"},X={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Yanlış dəyər: gözlənilən instanceof ${Y.expected}, daxil olan ${F}`;return`Yanlış dəyər: gözlənilən ${Q}, daxil olan ${F}`}case"invalid_value":if(Y.values.length===1)return`Yanlış dəyər: gözlənilən ${m(Y.values[0])}`;return`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Çox böyük: gözlənilən ${Y.origin??"dəyər"} ${Q}${Y.maximum.toString()} ${U.unit??"element"}`;return`Çox böyük: gözlənilən ${Y.origin??"dəyər"} ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Çox kiçik: gözlənilən ${Y.origin} ${Q}${Y.minimum.toString()} ${U.unit}`;return`Çox kiçik: gözlənilən ${Y.origin} ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Yanlış mətn: "${Q.prefix}" ilə başlamalıdır`;if(Q.format==="ends_with")return`Yanlış mətn: "${Q.suffix}" ilə bitməlidir`;if(Q.format==="includes")return`Yanlış mətn: "${Q.includes}" daxil olmalıdır`;if(Q.format==="regex")return`Yanlış mətn: ${Q.pattern} şablonuna uyğun olmalıdır`;return`Yanlış ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Yanlış ədəd: ${Y.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${Y.keys.length>1?"lar":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`${Y.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${Y.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};var Lk=S(()=>{e()});function Rk(D,$,J,X){let Y=Math.abs(D),Q=Y%10,U=Y%100;if(U>=11&&U<=19)return X;if(Q===1)return $;if(Q>=2&&Q<=4)return J;return X}function qz(){return{localeError:E5D()}}var E5D=()=>{let D={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},map:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function $(Y){return D[Y]??null}let J={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",mac:"MAC адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",credit_card:"нумар крэдытнай карты",currency_code:"код валюты",iban:"IBAN",jwt:"JWT",template_literal:"увод"},X={nan:"NaN",number:"лік",array:"масіў"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Няправільны ўвод: чакаўся instanceof ${Y.expected}, атрымана ${F}`;return`Няправільны ўвод: чакаўся ${Q}, атрымана ${F}`}case"invalid_value":if(Y.values.length===1)return`Няправільны ўвод: чакалася ${m(Y.values[0])}`;return`Няправільны варыянт: чакаўся адзін з ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U){let F=Number(Y.maximum),W=Rk(F,U.unit.one,U.unit.few,U.unit.many);return`Занадта вялікі: чакалася, што ${Y.origin??"значэнне"} павінна ${U.verb} ${Q}${Y.maximum.toString()} ${W}`}return`Занадта вялікі: чакалася, што ${Y.origin??"значэнне"} павінна быць ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U){let F=Number(Y.minimum),W=Rk(F,U.unit.one,U.unit.few,U.unit.many);return`Занадта малы: чакалася, што ${Y.origin} павінна ${U.verb} ${Q}${Y.minimum.toString()} ${W}`}return`Занадта малы: чакалася, што ${Y.origin} павінна быць ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Няправільны радок: павінен пачынацца з "${Q.prefix}"`;if(Q.format==="ends_with")return`Няправільны радок: павінен заканчвацца на "${Q.suffix}"`;if(Q.format==="includes")return`Няправільны радок: павінен змяшчаць "${Q.includes}"`;if(Q.format==="regex")return`Няправільны радок: павінен адпавядаць шаблону ${Q.pattern}`;return`Няправільны ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${Y.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${Y.keys.length>1?"ключы":"ключ"}: ${b(Y.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${Y.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${Y.origin}`;default:return"Няправільны ўвод"}}};var Mk=S(()=>{e()});function Gz(){return{localeError:T5D()}}var T5D=()=>{let D={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"},map:{unit:"елемента",verb:"да съдържа"}};function $(Y){return D[Y]??null}let J={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",mac:"MAC адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",credit_card:"номер на кредитна карта",currency_code:"код на валута",iban:"IBAN",jwt:"JWT",template_literal:"вход"},X={nan:"NaN",number:"число",array:"масив"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Невалиден вход: очакван instanceof ${Y.expected}, получен ${F}`;return`Невалиден вход: очакван ${Q}, получен ${F}`}case"invalid_value":if(Y.values.length===1)return`Невалиден вход: очакван ${m(Y.values[0])}`;return`Невалидна опция: очаквано едно от ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Твърде голямо: очаква се ${Y.origin??"стойност"} да съдържа ${Q}${Y.maximum.toString()} ${U.unit??"елемента"}`;return`Твърде голямо: очаква се ${Y.origin??"стойност"} да бъде ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Твърде малко: очаква се ${Y.origin} да съдържа ${Q}${Y.minimum.toString()} ${U.unit}`;return`Твърде малко: очаква се ${Y.origin} да бъде ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Невалиден низ: трябва да започва с "${Q.prefix}"`;if(Q.format==="ends_with")return`Невалиден низ: трябва да завършва с "${Q.suffix}"`;if(Q.format==="includes")return`Невалиден низ: трябва да включва "${Q.includes}"`;if(Q.format==="regex")return`Невалиден низ: трябва да съвпада с ${Q.pattern}`;let U="Невалиден";if(Q.format==="emoji")U="Невалидно";if(Q.format==="datetime")U="Невалидно";if(Q.format==="date")U="Невалидна";if(Q.format==="time")U="Невалидно";if(Q.format==="duration")U="Невалидна";return`${U} ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${Y.divisor}`;case"unrecognized_keys":return`Неразпознат${Y.keys.length>1?"и":""} ключ${Y.keys.length>1?"ове":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${Y.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${Y.origin}`;default:return"Невалиден вход"}}};var Ak=S(()=>{e()});function Zz(){return{localeError:P5D()}}var P5D=()=>{let D={string:{unit:"অক্ষর",verb:"থাকতে হবে"},file:{unit:"বাইট",verb:"থাকতে হবে"},array:{unit:"আইটেম",verb:"থাকতে হবে"},set:{unit:"আইটেম",verb:"থাকতে হবে"},map:{unit:"এন্ট্রি",verb:"থাকতে হবে"}};function $(Y){return D[Y]??null}let J={regex:"ইনপুট",email:"ইমেইল ঠিকানা",url:"URL",emoji:"ইমোজি",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO তারিখ ও সময়",date:"ISO তারিখ",time:"ISO সময়",duration:"ISO সময়কাল",ipv4:"IPv4 ঠিকানা",ipv6:"IPv6 ঠিকানা",mac:"MAC ঠিকানা",cidrv4:"IPv4 রেঞ্জ",cidrv6:"IPv6 রেঞ্জ",base64:"base64-এনকোডেড স্ট্রিং",base64url:"base64url-এনকোডেড স্ট্রিং",json_string:"JSON স্ট্রিং",e164:"E.164 নম্বর",credit_card:"ক্রেডিট কার্ড নম্বর",currency_code:"মুদ্রা কোড",iban:"IBAN",jwt:"JWT",template_literal:"ইনপুট"},X={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;return`অবৈধ ইনপুট: প্রত্যাশিত ${Q}, প্রাপ্ত ${F}`}case"invalid_value":if(Y.values.length===1)return`অবৈধ ইনপুট: প্রত্যাশিত ${m(Y.values[0])}`;return`অবৈধ অপশন: ${b(Y.values," | ")} এর মধ্যে একটি প্রত্যাশিত`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`অনেক বড়: ${Y.origin??"মান"} ${Q}${Y.maximum.toString()} ${U.unit??"এলিমেন্ট"} হতে হবে`;return`অনেক বড়: ${Y.origin??"মান"} ${Q}${Y.maximum.toString()} হতে হবে`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`অনেক ছোট: ${Y.origin} ${Q}${Y.minimum.toString()} ${U.unit} হতে হবে`;return`অনেক ছোট: ${Y.origin} ${Q}${Y.minimum.toString()} হতে হবে`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`অবৈধ স্ট্রিং: "${Q.prefix}" দিয়ে শুরু হতে হবে`;if(Q.format==="ends_with")return`অবৈধ স্ট্রিং: "${Q.suffix}" দিয়ে শেষ হতে হবে`;if(Q.format==="includes")return`অবৈধ স্ট্রিং: "${Q.includes}" অন্তর্ভুক্ত থাকতে হবে`;if(Q.format==="regex")return`অবৈধ স্ট্রিং: ${Q.pattern} প্যাটার্ন মিলতে হবে`;return`অবৈধ ${J[Q.format]??Y.format}`}case"not_multiple_of":return`অবৈধ নম্বর: ${Y.divisor} এর গুণিতক হতে হবে`;case"unrecognized_keys":return`অচেনা কী${Y.keys.length>1?"গুলো":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`${Y.origin} এ অবৈধ কী`;case"invalid_union":if(Y.options&&Array.isArray(Y.options)&&Y.options.length>0)return`অবৈধ ডিসক্রিমিনেটর মান। প্রত্যাশিত ${Y.options.map((U)=>`'${U}'`).join(" | ")}`;return"অবৈধ ইনপুট";case"invalid_element":return`${Y.origin} এ অবৈধ মান`;default:return"অবৈধ ইনপুট"}}};var vk=S(()=>{e()});function zz(){return{localeError:b5D()}}var b5D=()=>{let D={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"},map:{unit:"elements",verb:"contenir"}};function $(Y){return D[Y]??null}let J={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",mac:"adreça MAC",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",credit_card:"número de targeta de crèdit",currency_code:"codi de moneda",iban:"IBAN",jwt:"JWT",template_literal:"entrada"},X={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Tipus invàlid: s'esperava instanceof ${Y.expected}, s'ha rebut ${F}`;return`Tipus invàlid: s'esperava ${Q}, s'ha rebut ${F}`}case"invalid_value":if(Y.values.length===1)return`Valor invàlid: s'esperava ${m(Y.values[0])}`;return`Opció invàlida: s'esperava una de ${b(Y.values," o ")}`;case"too_big":{let Q=Y.inclusive?"com a màxim":"menys de",U=$(Y.origin);if(U)return`Massa gran: s'esperava que ${Y.origin??"el valor"} contingués ${Q} ${Y.maximum.toString()} ${U.unit??"elements"}`;return`Massa gran: s'esperava que ${Y.origin??"el valor"} fos ${Q} ${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?"com a mínim":"més de",U=$(Y.origin);if(U)return`Massa petit: s'esperava que ${Y.origin} contingués ${Q} ${Y.minimum.toString()} ${U.unit}`;return`Massa petit: s'esperava que ${Y.origin} fos ${Q} ${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Format invàlid: ha de començar amb "${Q.prefix}"`;if(Q.format==="ends_with")return`Format invàlid: ha d'acabar amb "${Q.suffix}"`;if(Q.format==="includes")return`Format invàlid: ha d'incloure "${Q.includes}"`;if(Q.format==="regex")return`Format invàlid: ha de coincidir amb el patró ${Q.pattern}`;return`Format invàlid per a ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${Y.divisor}`;case"unrecognized_keys":return`Clau${Y.keys.length>1?"s":""} no reconeguda${Y.keys.length>1?"s":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${Y.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${Y.origin}`;default:return"Entrada invàlida"}}};var Ek=S(()=>{e()});function Hz(){return{localeError:S5D()}}var S5D=()=>{let D={string:{unit:"پیت",verb:"بێت"},file:{unit:"بایت",verb:"بێت"},array:{unit:"دانە",verb:"بێت"},set:{unit:"دانە",verb:"بێت"},map:{unit:"دانە",verb:"بێت"}};function $(Y){return D[Y]??null}let J={regex:"regex",email:"ئیمەیڵ",url:"بەستەر (URL)",emoji:"ئیمۆجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ڕێکەوت و کات",date:"ڕێکەوت",time:"کات",duration:"ماوە",ipv4:"ناونیشانی IPv4",ipv6:"ناونیشانی IPv6",mac:"ناونیشانی MAC",cidrv4:"مەودای IPv4",cidrv6:"مەودای IPv6",base64:"دەقی base64",base64url:"دەقی base64url",json_string:"دەقی JSON",e164:"ژمارەی E.164",credit_card:"ژمارەی کارتی کرێدیت",currency_code:"کۆدی دراو",iban:"IBAN",jwt:"JWT",template_literal:"تێکردە"},X={nan:"NaN",string:"نووسین",number:"ژمارە",boolean:"boolean",array:"array",object:"object",date:"ڕێکەوت",integer:"ژمارە",float:"ژمارە",null:"null",undefined:"undefined",function:"function",symbol:"symbol",unknown:"unknown",promise:"promise",void:"void",never:"never",map:"map",set:"set"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U,W=["ا","و","ۆ","وو","ە","ی","ێ"].some((q)=>F.endsWith(q))?"یە":"ە",K=/^[a-zA-Z]+$/.test(F);if(U==="null"||U==="undefined")return"داواکراوە";return`چاوەڕوانکراوە ${Q} بێت، بەڵام ${F}${K?"":W}`}case"invalid_value":if(Y.values.length===1)return`بەهاکە نادرووستە: چاوەڕوانکراوە ${m(Y.values[0])} بێت`;return`هەڵبژاردەی نادروست: چاوەڕوانکراوە یەکێک بێت لە ${b(Y.values,"|")}`;case"too_big":{let Q=$(Y.origin);if(Q)return`پێویستە بە لایەنی زۆرەوە ${Y.maximum.toString()} ${Q.unit} ${Q.verb}`;return`پێویستە بە لایەنی زۆرەوە ${Y.maximum.toString()} بێت`}case"too_small":{let Q=$(Y.origin);if(Q)return`پێویستە بە لایەنی کەمەوە ${Y.minimum.toString()} ${Q.unit} ${Q.verb}`;return`پێویستە بە لایەنی کەمەوە ${Y.minimum.toString()} بێت`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`دەقی نادروست: پێویستە دەستپێبکات بە "${Q.prefix}"`;if(Q.format==="ends_with")return`دەقی نادروست: پێویستە کۆتاییبێت بە "${Q.suffix}"`;if(Q.format==="includes")return`دەقی نادروست: پێویستە "${Q.includes}" لەخۆبگرێت`;if(Q.format==="regex")return`دەقی نادروست: پێویستە لەگەڵ پاتێرنی ${Q.pattern} بگونجێت`;return`بەهای ${J[Q.format]??Y.format} نادروستە`}case"not_multiple_of":return`ژمارەی نادروست: دەبێت چەند هێندە بێت بۆ ${Y.divisor}`;case"unrecognized_keys":return`کلیلی نەناسراو: ${b(Y.keys,", ")}`;case"invalid_key":return`کلیلی نادروست لە ${Y.origin}`;case"invalid_union":if(Y.options&&Array.isArray(Y.options)&&Y.options.length>0)return`بەهای نەناسراو هەیە. بەهای چاوەڕوانکراو: ${Y.options.map((U)=>`'${U}'`).join(" | ")}`;return"یەکگرتنی نادروست";case"invalid_element":return`${Y.origin} بەهاکە نادروستە`;default:return"تێکردەی نادروست"}}};var Tk=S(()=>{e()});function Iz(){return{localeError:C5D()}}var C5D=()=>{let D={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"},map:{unit:"prvků",verb:"mít"}};function $(Y){return D[Y]??null}let J={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",credit_card:"číslo kreditní karty",currency_code:"kód měny",iban:"IBAN",jwt:"JWT",template_literal:"vstup"},X={nan:"NaN",number:"číslo",string:"řetězec",function:"funkce",array:"pole"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Neplatný vstup: očekáváno instanceof ${Y.expected}, obdrženo ${F}`;return`Neplatný vstup: očekáváno ${Q}, obdrženo ${F}`}case"invalid_value":if(Y.values.length===1)return`Neplatný vstup: očekáváno ${m(Y.values[0])}`;return`Neplatná možnost: očekávána jedna z hodnot ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Hodnota je příliš velká: ${Y.origin??"hodnota"} musí mít ${Q}${Y.maximum.toString()} ${U.unit??"prvků"}`;return`Hodnota je příliš velká: ${Y.origin??"hodnota"} musí být ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Hodnota je příliš malá: ${Y.origin??"hodnota"} musí mít ${Q}${Y.minimum.toString()} ${U.unit??"prvků"}`;return`Hodnota je příliš malá: ${Y.origin??"hodnota"} musí být ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Neplatný řetězec: musí začínat na "${Q.prefix}"`;if(Q.format==="ends_with")return`Neplatný řetězec: musí končit na "${Q.suffix}"`;if(Q.format==="includes")return`Neplatný řetězec: musí obsahovat "${Q.includes}"`;if(Q.format==="regex")return`Neplatný řetězec: musí odpovídat vzoru ${Q.pattern}`;return`Neplatný formát ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${Y.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${b(Y.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${Y.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${Y.origin}`;default:return"Neplatný vstup"}}};var Pk=S(()=>{e()});function Bz(){return{localeError:k5D()}}var k5D=()=>{let D={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"},map:{unit:"elementer",verb:"indeholdt"}};function $(Y){return D[Y]??null}let J={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kreditkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},X={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Ugyldigt input: forventede instanceof ${Y.expected}, fik ${F}`;return`Ugyldigt input: forventede ${Q}, fik ${F}`}case"invalid_value":if(Y.values.length===1)return`Ugyldig værdi: forventede ${m(Y.values[0])}`;return`Ugyldigt valg: forventede en af følgende ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin),F=X[Y.origin]??Y.origin;if(U)return`For stor: forventede ${F??"value"} ${U.verb} ${Q} ${Y.maximum.toString()} ${U.unit??"elementer"}`;return`For stor: forventede ${F??"value"} havde ${Q} ${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin),F=X[Y.origin]??Y.origin;if(U)return`For lille: forventede ${F} ${U.verb} ${Q} ${Y.minimum.toString()} ${U.unit}`;return`For lille: forventede ${F} havde ${Q} ${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Ugyldig streng: skal starte med "${Q.prefix}"`;if(Q.format==="ends_with")return`Ugyldig streng: skal ende med "${Q.suffix}"`;if(Q.format==="includes")return`Ugyldig streng: skal indeholde "${Q.includes}"`;if(Q.format==="regex")return`Ugyldig streng: skal matche mønsteret ${Q.pattern}`;return`Ugyldig ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${Y.divisor}`;case"unrecognized_keys":return`${Y.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${b(Y.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${Y.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${Y.origin}`;default:return"Ugyldigt input"}}};var bk=S(()=>{e()});function Oz(){return{localeError:_5D()}}var _5D=()=>{let D={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"},map:{unit:"Elemente",verb:"zu haben"}};function $(Y){return D[Y]??null}let J={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",mac:"MAC-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",credit_card:"Kreditkartennummer",currency_code:"Währungscode",iban:"IBAN",jwt:"JWT",template_literal:"Eingabe"},X={nan:"NaN",number:"Zahl",array:"Array"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Ungültige Eingabe: erwartet instanceof ${Y.expected}, erhalten ${F}`;return`Ungültige Eingabe: erwartet ${Q}, erhalten ${F}`}case"invalid_value":if(Y.values.length===1)return`Ungültige Eingabe: erwartet ${m(Y.values[0])}`;return`Ungültige Option: erwartet eine von ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Zu groß: erwartet, dass ${Y.origin??"Wert"} ${Q}${Y.maximum.toString()} ${U.unit??"Elemente"} hat`;return`Zu groß: erwartet, dass ${Y.origin??"Wert"} ${Q}${Y.maximum.toString()} ist`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Zu klein: erwartet, dass ${Y.origin} ${Q}${Y.minimum.toString()} ${U.unit} hat`;return`Zu klein: erwartet, dass ${Y.origin} ${Q}${Y.minimum.toString()} ist`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Ungültiger String: muss mit "${Q.prefix}" beginnen`;if(Q.format==="ends_with")return`Ungültiger String: muss mit "${Q.suffix}" enden`;if(Q.format==="includes")return`Ungültiger String: muss "${Q.includes}" enthalten`;if(Q.format==="regex")return`Ungültiger String: muss dem Muster ${Q.pattern} entsprechen`;return`Ungültig: ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${Y.divisor} sein`;case"unrecognized_keys":return`${Y.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${b(Y.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${Y.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${Y.origin}`;default:return"Ungültige Eingabe"}}};var Sk=S(()=>{e()});function Nz(){return{localeError:u5D()}}var u5D=()=>{let D={string:{unit:"χαρακτήρες",verb:"να έχει"},file:{unit:"bytes",verb:"να έχει"},array:{unit:"στοιχεία",verb:"να έχει"},set:{unit:"στοιχεία",verb:"να έχει"},map:{unit:"καταχωρήσεις",verb:"να έχει"}};function $(Y){return D[Y]??null}let J={regex:"είσοδος",email:"διεύθυνση email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ημερομηνία και ώρα",date:"ISO ημερομηνία",time:"ISO ώρα",duration:"ISO διάρκεια",ipv4:"διεύθυνση IPv4",ipv6:"διεύθυνση IPv6",mac:"διεύθυνση MAC",cidrv4:"εύρος IPv4",cidrv6:"εύρος IPv6",base64:"συμβολοσειρά κωδικοποιημένη σε base64",base64url:"συμβολοσειρά κωδικοποιημένη σε base64url",json_string:"συμβολοσειρά JSON",e164:"αριθμός E.164",credit_card:"αριθμός πιστωτικής κάρτας",currency_code:"κωδικός νομίσματος",iban:"IBAN",jwt:"JWT",template_literal:"είσοδος"},X={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(typeof Y.expected==="string"&&/^[A-Z]/.test(Y.expected))return`Μη έγκυρη είσοδος: αναμενόταν instanceof ${Y.expected}, λήφθηκε ${F}`;return`Μη έγκυρη είσοδος: αναμενόταν ${Q}, λήφθηκε ${F}`}case"invalid_value":if(Y.values.length===1)return`Μη έγκυρη είσοδος: αναμενόταν ${m(Y.values[0])}`;return`Μη έγκυρη επιλογή: αναμενόταν ένα από ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Πολύ μεγάλο: αναμενόταν ${Y.origin??"τιμή"} να έχει ${Q}${Y.maximum.toString()} ${U.unit??"στοιχεία"}`;return`Πολύ μεγάλο: αναμενόταν ${Y.origin??"τιμή"} να είναι ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Πολύ μικρό: αναμενόταν ${Y.origin} να έχει ${Q}${Y.minimum.toString()} ${U.unit}`;return`Πολύ μικρό: αναμενόταν ${Y.origin} να είναι ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${Q.prefix}"`;if(Q.format==="ends_with")return`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${Q.suffix}"`;if(Q.format==="includes")return`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${Q.includes}"`;if(Q.format==="regex")return`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${Q.pattern}`;return`Μη έγκυρο: ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${Y.divisor}`;case"unrecognized_keys":return`Άγνωστ${Y.keys.length>1?"α":"ο"} κλειδ${Y.keys.length>1?"ιά":"ί"}: ${b(Y.keys,", ")}`;case"invalid_key":return`Μη έγκυρο κλειδί στο ${Y.origin}`;case"invalid_union":return"Μη έγκυρη είσοδος";case"invalid_element":return`Μη έγκυρη τιμή στο ${Y.origin}`;default:return"Μη έγκυρη είσοδος"}}};var Ck=S(()=>{e()});function L7(){return{localeError:g5D()}}var g5D=()=>{let D={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function $(Q){return D[Q]??null}let J={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},X={nan:"NaN"};function Y(Q,U){if(Q==="number"&&typeof U==="number"&&!Number.isFinite(U))return String(U);return X[Q]??Q}return(Q)=>{switch(Q.code){case"invalid_type":{let U=Y(Q.expected),F=l(Q.input),W=Y(F,Q.input);return`Invalid input: expected ${U}, received ${W}`}case"invalid_value":if(Q.values.length===1)return`Invalid input: expected ${m(Q.values[0])}`;return`Invalid option: expected one of ${b(Q.values,"|")}`;case"too_big":{let U=Q.exact?"exactly ":Q.inclusive?"<=":"<",F=$(Q.origin);if(F)return`Too big: expected ${Q.origin??"value"} to have ${U}${Q.maximum.toString()} ${F.unit??"elements"}`;return`Too big: expected ${Q.origin??"value"} to be ${U}${Q.maximum.toString()}`}case"too_small":{let U=Q.exact?"exactly ":Q.inclusive?">=":">",F=$(Q.origin);if(F)return`Too small: expected ${Q.origin} to have ${U}${Q.minimum.toString()} ${F.unit}`;return`Too small: expected ${Q.origin} to be ${U}${Q.minimum.toString()}`}case"invalid_format":{let U=Q;if(U.format==="starts_with")return`Invalid string: must start with "${U.prefix}"`;if(U.format==="ends_with")return`Invalid string: must end with "${U.suffix}"`;if(U.format==="includes")return`Invalid string: must include "${U.includes}"`;if(U.format==="regex")return`Invalid string: must match pattern ${U.pattern}`;return`Invalid ${J[U.format]??Q.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${Q.divisor}`;case"unrecognized_keys":return`Unrecognized key${Q.keys.length>1?"s":""}: ${b(Q.keys,", ")}`;case"invalid_key":return`Invalid key in ${Q.origin}`;case"invalid_union":if(Q.options&&Array.isArray(Q.options)&&Q.options.length>0)return`Invalid discriminator value. Expected ${Q.options.map((F)=>`'${F}'`).join(" | ")}`;if(Q.inclusive===!1)return"Invalid input: more than one option matched";return"Invalid input";case"invalid_element":return`Invalid value in ${Q.origin}`;default:return"Invalid input"}}};var Vz=S(()=>{e()});function wz(){return{localeError:x5D()}}var x5D=()=>{let D={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"},map:{unit:"elementojn",verb:"havi"}};function $(Y){return D[Y]??null}let J={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",mac:"MAC-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",credit_card:"kreditkarta numero",currency_code:"valuta kodo",iban:"IBAN",jwt:"JWT",template_literal:"enigo"},X={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Nevalida enigo: atendiĝis instanceof ${Y.expected}, riceviĝis ${F}`;return`Nevalida enigo: atendiĝis ${Q}, riceviĝis ${F}`}case"invalid_value":if(Y.values.length===1)return`Nevalida enigo: atendiĝis ${m(Y.values[0])}`;return`Nevalida opcio: atendiĝis unu el ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Tro granda: atendiĝis ke ${Y.origin??"valoro"} havu ${Q}${Y.maximum.toString()} ${U.unit??"elementojn"}`;return`Tro granda: atendiĝis ke ${Y.origin??"valoro"} havu ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Tro malgranda: atendiĝis ke ${Y.origin} havu ${Q}${Y.minimum.toString()} ${U.unit}`;return`Tro malgranda: atendiĝis ke ${Y.origin} estu ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Nevalida karaktraro: devas komenciĝi per "${Q.prefix}"`;if(Q.format==="ends_with")return`Nevalida karaktraro: devas finiĝi per "${Q.suffix}"`;if(Q.format==="includes")return`Nevalida karaktraro: devas inkluzivi "${Q.includes}"`;if(Q.format==="regex")return`Nevalida karaktraro: devas kongrui kun la modelo ${Q.pattern}`;return`Nevalida ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${Y.divisor}`;case"unrecognized_keys":return`Nekonata${Y.keys.length>1?"j":""} ŝlosilo${Y.keys.length>1?"j":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${Y.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${Y.origin}`;default:return"Nevalida enigo"}}};var kk=S(()=>{e()});function jz(){return{localeError:f5D()}}var f5D=()=>{let D={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function $(Y){return D[Y]??null}let J={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",mac:"dirección MAC",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",credit_card:"número de tarjeta de crédito",currency_code:"código de moneda",iban:"IBAN",jwt:"JWT",template_literal:"entrada"},X={nan:"NaN",string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Entrada inválida: se esperaba instanceof ${Y.expected}, recibido ${F}`;return`Entrada inválida: se esperaba ${Q}, recibido ${F}`}case"invalid_value":if(Y.values.length===1)return`Entrada inválida: se esperaba ${m(Y.values[0])}`;return`Opción inválida: se esperaba una de ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin),F=X[Y.origin]??Y.origin;if(U)return`Demasiado grande: se esperaba que ${F??"valor"} tuviera ${Q}${Y.maximum.toString()} ${U.unit??"elementos"}`;return`Demasiado grande: se esperaba que ${F??"valor"} fuera ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin),F=X[Y.origin]??Y.origin;if(U)return`Demasiado pequeño: se esperaba que ${F} tuviera ${Q}${Y.minimum.toString()} ${U.unit}`;return`Demasiado pequeño: se esperaba que ${F} fuera ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Cadena inválida: debe comenzar con "${Q.prefix}"`;if(Q.format==="ends_with")return`Cadena inválida: debe terminar en "${Q.suffix}"`;if(Q.format==="includes")return`Cadena inválida: debe incluir "${Q.includes}"`;if(Q.format==="regex")return`Cadena inválida: debe coincidir con el patrón ${Q.pattern}`;return`Inválido ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${Y.divisor}`;case"unrecognized_keys":return`Llave${Y.keys.length>1?"s":""} desconocida${Y.keys.length>1?"s":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`Llave inválida en ${X[Y.origin]??Y.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${X[Y.origin]??Y.origin}`;default:return"Entrada inválida"}}};var _k=S(()=>{e()});function Lz(){return{localeError:y5D()}}var y5D=()=>{let D={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"},map:{unit:"آیتم",verb:"داشته باشد"}};function $(Y){return D[Y]??null}let J={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",mac:"MAC آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",credit_card:"شماره کارت اعتباری",currency_code:"کد ارز",iban:"IBAN",jwt:"JWT",template_literal:"ورودی"},X={nan:"NaN",number:"عدد",array:"آرایه"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`ورودی نامعتبر: میبایست instanceof ${Y.expected} میبود، ${F} دریافت شد`;return`ورودی نامعتبر: میبایست ${Q} میبود، ${F} دریافت شد`}case"invalid_value":if(Y.values.length===1)return`ورودی نامعتبر: میبایست ${m(Y.values[0])} میبود`;return`گزینه نامعتبر: میبایست یکی از ${b(Y.values,"|")} میبود`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`خیلی بزرگ: ${Y.origin??"مقدار"} باید ${Q}${Y.maximum.toString()} ${U.unit??"عنصر"} باشد`;return`خیلی بزرگ: ${Y.origin??"مقدار"} باید ${Q}${Y.maximum.toString()} باشد`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`خیلی کوچک: ${Y.origin} باید ${Q}${Y.minimum.toString()} ${U.unit} باشد`;return`خیلی کوچک: ${Y.origin} باید ${Q}${Y.minimum.toString()} باشد`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`رشته نامعتبر: باید با "${Q.prefix}" شروع شود`;if(Q.format==="ends_with")return`رشته نامعتبر: باید با "${Q.suffix}" تمام شود`;if(Q.format==="includes")return`رشته نامعتبر: باید شامل "${Q.includes}" باشد`;if(Q.format==="regex")return`رشته نامعتبر: باید با الگوی ${Q.pattern} مطابقت داشته باشد`;return`${J[Q.format]??Y.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${Y.divisor} باشد`;case"unrecognized_keys":return`کلید${Y.keys.length>1?"های":""} ناشناس: ${b(Y.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${Y.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${Y.origin}`;default:return"ورودی نامعتبر"}}};var uk=S(()=>{e()});function Rz(){return{localeError:h5D()}}var h5D=()=>{let D={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},map:{unit:"alkiota",subject:"kuvauksen"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function $(Y){return D[Y]??null}let J={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",mac:"MAC-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",credit_card:"luottokortin numero",currency_code:"valuuttakoodi",iban:"IBAN",jwt:"JWT",template_literal:"templaattimerkkijono"},X={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Virheellinen tyyppi: odotettiin instanceof ${Y.expected}, oli ${F}`;return`Virheellinen tyyppi: odotettiin ${Q}, oli ${F}`}case"invalid_value":if(Y.values.length===1)return`Virheellinen syöte: täytyy olla ${m(Y.values[0])}`;return`Virheellinen valinta: täytyy olla yksi seuraavista: ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Liian suuri: ${U.subject} täytyy olla ${Q}${Y.maximum.toString()} ${U.unit}`.trim();return`Liian suuri: arvon täytyy olla ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Liian pieni: ${U.subject} täytyy olla ${Q}${Y.minimum.toString()} ${U.unit}`.trim();return`Liian pieni: arvon täytyy olla ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Virheellinen syöte: täytyy alkaa "${Q.prefix}"`;if(Q.format==="ends_with")return`Virheellinen syöte: täytyy loppua "${Q.suffix}"`;if(Q.format==="includes")return`Virheellinen syöte: täytyy sisältää "${Q.includes}"`;if(Q.format==="regex")return`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${Q.pattern}`;return`Virheellinen ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${Y.divisor} monikerta`;case"unrecognized_keys":return`${Y.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${b(Y.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};var gk=S(()=>{e()});function Mz(){return{localeError:m5D()}}var m5D=()=>{let D={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function $(Y){return D[Y]??null}let J={regex:"expression régulière",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",mac:"adresse MAC",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne de caractères encodée en base64",base64url:"chaîne de caractères encodée en base64url",json_string:"chaîne de caractères JSON",e164:"numéro au format E.164",credit_card:"numéro de carte de crédit",currency_code:"code de devise",iban:"IBAN",jwt:"JWT",template_literal:"entrée"},X={string:"chaîne de caractères",number:"nombre",int:"entier",boolean:"booléen",bigint:"grand entier",symbol:"symbole",undefined:"indéfini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"record",map:"map",set:"ensemble",file:"fichier",nonoptional:"non optionnel",nan:"NaN",function:"fonction"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Entrée invalide : instance de ${Y.expected} attendu, ${F} reçu`;return`Entrée invalide : ${Q} attendu, ${F} reçu`}case"invalid_value":if(Y.values.length===1)return`Entrée invalide : ${m(Y.values[0])} attendu`;return`Option invalide : une valeur parmi ${b(Y.values,"|")} attendue`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Trop grand : ${X[Y.origin]??"valeur"} doit ${U.verb} ${Q}${Y.maximum.toString()} ${U.unit??"élément(s)"}`;return`Trop grand : ${X[Y.origin]??"valeur"} doit être ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Trop petit : ${X[Y.origin]??"valeur"} doit ${U.verb} ${Q}${Y.minimum.toString()} ${U.unit}`;return`Trop petit : ${X[Y.origin]??"valeur"} doit être ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Chaîne de caractères invalide : doit commencer par "${Q.prefix}"`;if(Q.format==="ends_with")return`Chaîne de caractères invalide : doit se terminer par "${Q.suffix}"`;if(Q.format==="includes")return`Chaîne de caractères invalide : doit inclure "${Q.includes}"`;if(Q.format==="regex")return`Chaîne de caractères invalide : doit correspondre au motif ${Q.pattern}`;return`${J[Q.format]??Y.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${Y.divisor}`;case"unrecognized_keys":return`Clé${Y.keys.length>1?"s":""} non reconnue${Y.keys.length>1?"s":""} : ${b(Y.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${Y.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${Y.origin}`;default:return"Entrée invalide"}}};var xk=S(()=>{e()});function Az(){return{localeError:l5D()}}var l5D=()=>{let D={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"},map:{unit:"éléments",verb:"avoir"}};function $(Y){return D[Y]??null}let J={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",mac:"adresse MAC",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",credit_card:"numéro de carte de crédit",currency_code:"code de devise",iban:"IBAN",jwt:"JWT",template_literal:"entrée"},X={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Entrée invalide : attendu instanceof ${Y.expected}, reçu ${F}`;return`Entrée invalide : attendu ${Q}, reçu ${F}`}case"invalid_value":if(Y.values.length===1)return`Entrée invalide : attendu ${m(Y.values[0])}`;return`Option invalide : attendu l'une des valeurs suivantes ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"≤":"<",U=$(Y.origin);if(U)return`Trop grand : attendu que ${Y.origin??"la valeur"} ait ${Q}${Y.maximum.toString()} ${U.unit}`;return`Trop grand : attendu que ${Y.origin??"la valeur"} soit ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?"≥":">",U=$(Y.origin);if(U)return`Trop petit : attendu que ${Y.origin} ait ${Q}${Y.minimum.toString()} ${U.unit}`;return`Trop petit : attendu que ${Y.origin} soit ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Chaîne invalide : doit commencer par "${Q.prefix}"`;if(Q.format==="ends_with")return`Chaîne invalide : doit se terminer par "${Q.suffix}"`;if(Q.format==="includes")return`Chaîne invalide : doit inclure "${Q.includes}"`;if(Q.format==="regex")return`Chaîne invalide : doit correspondre au motif ${Q.pattern}`;return`${J[Q.format]??Y.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${Y.divisor}`;case"unrecognized_keys":return`Clé${Y.keys.length>1?"s":""} non reconnue${Y.keys.length>1?"s":""} : ${b(Y.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${Y.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${Y.origin}`;default:return"Entrée invalide"}}};var fk=S(()=>{e()});function vz(){return{localeError:d5D()}}var d5D=()=>{let D={string:{unit:"અક્ષર",verb:"હોવા જોઈએ"},file:{unit:"બાયટ",verb:"હોવા જોઈએ"},array:{unit:"આઇટમ",verb:"હોવા જોઈએ"},set:{unit:"આઇટમ",verb:"હોવા જોઈએ"},map:{unit:"એન્ટ્રી",verb:"હોવા જોઈએ"}};function $(Y){return D[Y]??null}let J={regex:"ઇનપુટ",email:"ઈમેઇલ એડ્રેસ",url:"URL",emoji:"ઇમોજી",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO તારીખ અને સમય",date:"ISO તારીખ",time:"ISO સમય",duration:"ISO અવધિ",ipv4:"IPv4 એડ્રેસ",ipv6:"IPv6 એડ્રેસ",mac:"MAC એડ્રેસ",cidrv4:"IPv4 શ્રેણી",cidrv6:"IPv6 શ્રેણી",base64:"base64-એન્કોડેડ સ્ટ્રિંગ",base64url:"base64url-એન્કોડેડ સ્ટ્રિંગ",json_string:"JSON સ્ટ્રિંગ",e164:"E.164 નંબર",credit_card:"ક્રેડિટ કાર્ડ નંબર",currency_code:"ચલણ કોડ",iban:"IBAN",jwt:"JWT",template_literal:"ઇનપુટ"},X={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;return`અમાન્ય ઇનપુટ: અપેક્ષિત ${Q}, પ્રાપ્ત ${F}`}case"invalid_value":if(Y.values.length===1)return`અમાન્ય ઇનપુટ: અપેક્ષિત ${m(Y.values[0])}`;return`અમાન્ય વિકલ્પ: ${b(Y.values," | ")} માધ્યમથી એક અપેક્ષિત`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`ખૂબ મોટું: ${Y.origin??"મૂલ્ય"} ${Q}${Y.maximum.toString()} ${U.unit??"એલિમેન્ટ"} હોવા જોઈએ`;return`ખૂબ મોટું: ${Y.origin??"મૂલ્ય"} ${Q}${Y.maximum.toString()} હોવું જોઈએ`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`ખૂબ નાનું: ${Y.origin} ${Q}${Y.minimum.toString()} ${U.unit} હોવા જોઈએ`;return`ખૂબ નાનું: ${Y.origin} ${Q}${Y.minimum.toString()} હોવું જોઈએ`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`અમાન્ય સ્ટ્રિંગ: "${Q.prefix}" થી શરૂ થવું જોઈએ`;if(Q.format==="ends_with")return`અમાન્ય સ્ટ્રિંગ: "${Q.suffix}" પર સમાપ્ત થવું જોઈએ`;if(Q.format==="includes")return`અમાન્ય સ્ટ્રિંગ: "${Q.includes}" શામેલ હોવું જોઈએ`;if(Q.format==="regex")return`અમાન્ય સ્ટ્રિંગ: પેટર્ન ${Q.pattern} સાથે મેળ ખાવું જોઈએ`;return`અમાન્ય ${J[Q.format]??Y.format}`}case"not_multiple_of":return`અમાન્ય નંબર: ${Y.divisor} નો ગુણાંક હોવો જોઈએ`;case"unrecognized_keys":return`ઓળખી શકાતા નહીં તે કી${Y.keys.length>1?"ઓ":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`${Y.origin} માં અમાન્ય કી`;case"invalid_union":if(Y.options&&Array.isArray(Y.options)&&Y.options.length>0)return`અમાન્ય ડિસ્ક્રિમિનેટર મૂલ્ય. અપેક્ષિત ${Y.options.map((U)=>`'${U}'`).join(" | ")}`;return"અમાન્ય ઇનપુટ";case"invalid_element":return`${Y.origin} માં અમાન્ય મૂલ્ય`;default:return"અમાન્ય ઇનપુટ"}}};var yk=S(()=>{e()});function Ez(){return{localeError:i5D()}}var i5D=()=>{let D={string:{label:"מחרוזת",gender:"f"},number:{label:"מספר",gender:"m"},boolean:{label:"ערך בוליאני",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"תאריך",gender:"m"},array:{label:"מערך",gender:"m"},object:{label:"אובייקט",gender:"m"},null:{label:"ערך ריק (null)",gender:"m"},undefined:{label:"ערך לא מוגדר (undefined)",gender:"m"},symbol:{label:"סימבול (Symbol)",gender:"m"},function:{label:"פונקציה",gender:"f"},map:{label:"מפה (Map)",gender:"f"},set:{label:"קבוצה (Set)",gender:"f"},file:{label:"קובץ",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"ערך לא ידוע",gender:"m"},value:{label:"ערך",gender:"m"}},$={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},J=(K)=>K?D[K]:void 0,X=(K)=>{let q=J(K);if(q)return q.label;return K??D.unknown.label},Y=(K)=>`ה${X(K)}`,Q=(K)=>{return(J(K)?.gender??"m")==="f"?"צריכה להיות":"צריך להיות"},U=(K)=>{if(!K)return null;return $[K]??null},F={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",gender:"m"},uuid:{label:"UUID",gender:"m"},uuidv4:{label:"UUIDv4",gender:"m"},uuidv6:{label:"UUIDv6",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},mac:{label:"כתובת MAC",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},credit_card:{label:"מספר כרטיס אשראי",gender:"m"},currency_code:{label:"קוד מטבע",gender:"m"},iban:{label:"IBAN",gender:"m"},jwt:{label:"JWT",gender:"m"},template_literal:{label:"קלט",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}},W={nan:"NaN"};return(K)=>{switch(K.code){case"invalid_type":{let q=K.expected,G=W[q??""]??X(q),Z=l(K.input),H=W[Z]??D[Z]?.label??Z;if(/^[A-Z]/.test(K.expected))return`קלט לא תקין: צריך להיות instanceof ${K.expected}, התקבל ${H}`;return`קלט לא תקין: צריך להיות ${G}, התקבל ${H}`}case"invalid_value":{if(K.values.length===1)return`ערך לא תקין: הערך חייב להיות ${m(K.values[0])}`;let q=K.values.map((H)=>m(H));if(K.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${q[0]} או ${q[1]}`;let G=q[q.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${q.slice(0,-1).join(", ")} או ${G}`}case"too_big":{let q=U(K.origin),G=Y(K.origin??"value");if(K.origin==="string")return`${q?.longLabel??"ארוך"} מדי: ${G} צריכה להכיל ${K.maximum.toString()} ${q?.unit??""} ${K.inclusive?"או פחות":"לכל היותר"}`.trim();if(K.origin==="number"){let z=K.inclusive?`קטן או שווה ל-${K.maximum}`:`קטן מ-${K.maximum}`;return`גדול מדי: ${G} צריך להיות ${z}`}if(K.origin==="array"||K.origin==="set"){let z=K.origin==="set"?"צריכה":"צריך",I=K.inclusive?`${K.maximum} ${q?.unit??""} או פחות`:`פחות מ-${K.maximum} ${q?.unit??""}`;return`גדול מדי: ${G} ${z} להכיל ${I}`.trim()}let Z=K.inclusive?"<=":"<",H=Q(K.origin??"value");if(q?.unit)return`${q.longLabel} מדי: ${G} ${H} ${Z}${K.maximum.toString()} ${q.unit}`;return`${q?.longLabel??"גדול"} מדי: ${G} ${H} ${Z}${K.maximum.toString()}`}case"too_small":{let q=U(K.origin),G=Y(K.origin??"value");if(K.origin==="string")return`${q?.shortLabel??"קצר"} מדי: ${G} צריכה להכיל ${K.minimum.toString()} ${q?.unit??""} ${K.inclusive?"או יותר":"לפחות"}`.trim();if(K.origin==="number"){let z=K.inclusive?`גדול או שווה ל-${K.minimum}`:`גדול מ-${K.minimum}`;return`קטן מדי: ${G} צריך להיות ${z}`}if(K.origin==="array"||K.origin==="set"){let z=K.origin==="set"?"צריכה":"צריך";if(K.minimum===1&&K.inclusive){let B=K.origin==="set"?"לפחות פריט אחד":"לפחות פריט אחד";return`קטן מדי: ${G} ${z} להכיל ${B}`}let I=K.inclusive?`${K.minimum} ${q?.unit??""} או יותר`:`יותר מ-${K.minimum} ${q?.unit??""}`;return`קטן מדי: ${G} ${z} להכיל ${I}`.trim()}let Z=K.inclusive?">=":">",H=Q(K.origin??"value");if(q?.unit)return`${q.shortLabel} מדי: ${G} ${H} ${Z}${K.minimum.toString()} ${q.unit}`;return`${q?.shortLabel??"קטן"} מדי: ${G} ${H} ${Z}${K.minimum.toString()}`}case"invalid_format":{let q=K;if(q.format==="starts_with")return`המחרוזת חייבת להתחיל ב "${q.prefix}"`;if(q.format==="ends_with")return`המחרוזת חייבת להסתיים ב "${q.suffix}"`;if(q.format==="includes")return`המחרוזת חייבת לכלול "${q.includes}"`;if(q.format==="regex")return`המחרוזת חייבת להתאים לתבנית ${q.pattern}`;let G=F[q.format],Z=G?.label??q.format,z=(G?.gender??"m")==="f"?"תקינה":"תקין";return`${Z} לא ${z}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${K.divisor}`;case"unrecognized_keys":return`מפתח${K.keys.length>1?"ות":""} לא מזוה${K.keys.length>1?"ים":"ה"}: ${b(K.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${Y(K.origin??"array")}`;default:return"קלט לא תקין"}}};var hk=S(()=>{e()});function Tz(){return{localeError:c5D()}}var c5D=()=>{let D={string:{unit:"अक्षर",verb:"रखने के लिए"},file:{unit:"बाइट्स",verb:"रखने के लिए"},array:{unit:"तत्व",verb:"रखने के लिए"},set:{unit:"तत्व",verb:"रखने के लिए"},map:{unit:"प्रविष्टियाँ",verb:"रखने के लिए"}};function $(Y){return D[Y]??null}let J={regex:"इनपुट",email:"ईमेल पता",url:"URL",emoji:"इमोजी",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO तिथि और समय",date:"ISO तिथि",time:"ISO समय",duration:"ISO अवधि",ipv4:"IPv4 पता",ipv6:"IPv6 पता",mac:"MAC पता",cidrv4:"IPv4 श्रेणी",cidrv6:"IPv6 श्रेणी",base64:"Base64-एन्कोडेड स्ट्रिंग",base64url:"Base64URL-एन्कोडेड स्ट्रिंग",json_string:"JSON स्ट्रिंग",e164:"E.164 संख्या",credit_card:"क्रेडिट कार्ड संख्या",currency_code:"मुद्रा कोड",iban:"IBAN",jwt:"JWT",template_literal:"इनपुट"},X={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;return`अमान्य इनपुट: अपेक्षित ${Q}, प्राप्त ${F}`}case"invalid_value":if(Y.values.length===1)return`अमान्य इनपुट: अपेक्षित ${m(Y.values[0])}`;return`अमान्य विकल्प: अपेक्षित मानों में से एक ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`बहुत बड़ा: अपेक्षित था कि ${Y.origin??"मान"} में ${Q}${Y.maximum} ${U.unit} हों`;return`बहुत बड़ा: अपेक्षित था कि ${Y.origin??"मान"} ${Q}${Y.maximum} हो`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`बहुत छोटा: अपेक्षित था कि ${Y.origin} में ${Q}${Y.minimum} ${U.unit} हों`;return`बहुत छोटा: अपेक्षित था कि ${Y.origin} ${Q}${Y.minimum} हो`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`अमान्य स्ट्रिंग: "${Q.prefix}" से शुरू होना चाहिए`;if(Q.format==="ends_with")return`अमान्य स्ट्रिंग: "${Q.suffix}" पर समाप्त होना चाहिए`;if(Q.format==="includes")return`अमान्य स्ट्रिंग: इसमें "${Q.includes}" शामिल होना चाहिए`;if(Q.format==="regex")return`अमान्य स्ट्रिंग: पैटर्न ${Q.pattern} से मेल खाना चाहिए`;return`अमान्य ${J[Q.format]??Y.format}`}case"not_multiple_of":return`अमान्य संख्या: यह ${Y.divisor} का गुणज होना चाहिए`;case"unrecognized_keys":return`अपरिचित कुंजी${Y.keys.length>1?"याँ":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`अमान्य कुंजी: ${Y.origin} में`;case"invalid_union":if(Y.options&&Array.isArray(Y.options)&&Y.options.length>0)return`अमान्य डिस्क्रिमिनेटर मान: अपेक्षित ${Y.options.map((U)=>`'${U}'`).join(" | ")}`;return"अमान्य इनपुट";case"invalid_element":return`अमान्य मान: ${Y.origin} में`;default:return"अमान्य इनपुट"}}};var mk=S(()=>{e()});function Pz(){return{localeError:p5D()}}var p5D=()=>{let D={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function $(Y){return D[Y]??null}let J={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",credit_card:"broj kreditne kartice",currency_code:"kod valute",iban:"IBAN",jwt:"JWT",template_literal:"unos"},X={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Neispravan unos: očekuje se instanceof ${Y.expected}, a primljeno je ${F}`;return`Neispravan unos: očekuje se ${Q}, a primljeno je ${F}`}case"invalid_value":if(Y.values.length===1)return`Neispravna vrijednost: očekivano ${m(Y.values[0])}`;return`Neispravna opcija: očekivano jedno od ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin),F=X[Y.origin]??Y.origin;if(U)return`Preveliko: očekivano da ${F??"vrijednost"} ima ${Q}${Y.maximum.toString()} ${U.unit??"elemenata"}`;return`Preveliko: očekivano da ${F??"vrijednost"} bude ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin),F=X[Y.origin]??Y.origin;if(U)return`Premalo: očekivano da ${F} ima ${Q}${Y.minimum.toString()} ${U.unit}`;return`Premalo: očekivano da ${F} bude ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Neispravan tekst: mora započinjati s "${Q.prefix}"`;if(Q.format==="ends_with")return`Neispravan tekst: mora završavati s "${Q.suffix}"`;if(Q.format==="includes")return`Neispravan tekst: mora sadržavati "${Q.includes}"`;if(Q.format==="regex")return`Neispravan tekst: mora odgovarati uzorku ${Q.pattern}`;return`Neispravna ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Neispravan broj: mora biti višekratnik od ${Y.divisor}`;case"unrecognized_keys":return`Neprepoznat${Y.keys.length>1?"i ključevi":" ključ"}: ${b(Y.keys,", ")}`;case"invalid_key":return`Neispravan ključ u ${X[Y.origin]??Y.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${X[Y.origin]??Y.origin}`;default:return"Neispravan unos"}}};var lk=S(()=>{e()});function bz(){return{localeError:n5D()}}var n5D=()=>{let D={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"},map:{unit:"elem",verb:"legyen"}};function $(Y){return D[Y]??null}let J={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",mac:"MAC cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",credit_card:"hitelkártyaszám",currency_code:"pénznemkód",iban:"IBAN",jwt:"JWT",template_literal:"bemenet"},X={nan:"NaN",number:"szám",array:"tömb"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Érvénytelen bemenet: a várt érték instanceof ${Y.expected}, a kapott érték ${F}`;return`Érvénytelen bemenet: a várt érték ${Q}, a kapott érték ${F}`}case"invalid_value":if(Y.values.length===1)return`Érvénytelen bemenet: a várt érték ${m(Y.values[0])}`;return`Érvénytelen opció: valamelyik érték várt ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Túl nagy: ${Y.origin??"érték"} mérete túl nagy ${Q}${Y.maximum.toString()} ${U.unit??"elem"}`;return`Túl nagy: a bemeneti érték ${Y.origin??"érték"} túl nagy: ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Túl kicsi: a bemeneti érték ${Y.origin} mérete túl kicsi ${Q}${Y.minimum.toString()} ${U.unit}`;return`Túl kicsi: a bemeneti érték ${Y.origin} túl kicsi ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Érvénytelen string: "${Q.prefix}" értékkel kell kezdődnie`;if(Q.format==="ends_with")return`Érvénytelen string: "${Q.suffix}" értékkel kell végződnie`;if(Q.format==="includes")return`Érvénytelen string: "${Q.includes}" értéket kell tartalmaznia`;if(Q.format==="regex")return`Érvénytelen string: ${Q.pattern} mintának kell megfelelnie`;return`Érvénytelen ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Érvénytelen szám: ${Y.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${Y.keys.length>1?"s":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${Y.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${Y.origin}`;default:return"Érvénytelen bemenet"}}};var dk=S(()=>{e()});function ik(D,$,J){return Math.abs(D)===1?$:J}function _2(D){if(!D)return"";let $=["ա","ե","ը","ի","ո","ու","օ"],J=D[D.length-1];return D+($.includes(J)?"ն":"ը")}function Sz(){return{localeError:r5D()}}var r5D=()=>{let D={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},map:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}};function $(Y){return D[Y]??null}let J={regex:"մուտք",email:"էլ. հասցե",url:"URL",emoji:"էմոջի",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ամսաթիվ և ժամ",date:"ISO ամսաթիվ",time:"ISO ժամ",duration:"ISO տևողություն",ipv4:"IPv4 հասցե",ipv6:"IPv6 հասցե",mac:"MAC հասցե",cidrv4:"IPv4 միջակայք",cidrv6:"IPv6 միջակայք",base64:"base64 ձևաչափով տող",base64url:"base64url ձևաչափով տող",json_string:"JSON տող",e164:"E.164 համար",credit_card:"կրեդիտ քարտի համար",currency_code:"արժույթի կոդ",iban:"IBAN",jwt:"JWT",template_literal:"մուտք"},X={nan:"NaN",number:"թիվ",array:"զանգված"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Սխալ մուտքագրում․ սպասվում էր instanceof ${Y.expected}, ստացվել է ${F}`;return`Սխալ մուտքագրում․ սպասվում էր ${Q}, ստացվել է ${F}`}case"invalid_value":if(Y.values.length===1)return`Սխալ մուտքագրում․ սպասվում էր ${m(Y.values[1])}`;return`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U){let F=Number(Y.maximum),W=ik(F,U.unit.one,U.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${_2(Y.origin??"արժեք")} կունենա ${Q}${Y.maximum.toString()} ${W}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${_2(Y.origin??"արժեք")} լինի ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U){let F=Number(Y.minimum),W=ik(F,U.unit.one,U.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${_2(Y.origin)} կունենա ${Q}${Y.minimum.toString()} ${W}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${_2(Y.origin)} լինի ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Սխալ տող․ պետք է սկսվի "${Q.prefix}"-ով`;if(Q.format==="ends_with")return`Սխալ տող․ պետք է ավարտվի "${Q.suffix}"-ով`;if(Q.format==="includes")return`Սխալ տող․ պետք է պարունակի "${Q.includes}"`;if(Q.format==="regex")return`Սխալ տող․ պետք է համապատասխանի ${Q.pattern} ձևաչափին`;return`Սխալ ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${Y.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${Y.keys.length>1?"ներ":""}. ${b(Y.keys,", ")}`;case"invalid_key":return`Սխալ բանալի ${_2(Y.origin)}-ում`;case"invalid_union":return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${_2(Y.origin)}-ում`;default:return"Սխալ մուտքագրում"}}};var ck=S(()=>{e()});function Cz(){return{localeError:t5D()}}var t5D=()=>{let D={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"},map:{unit:"item",verb:"memiliki"}};function $(Y){return D[Y]??null}let J={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",mac:"alamat MAC",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",credit_card:"nomor kartu kredit",currency_code:"kode mata uang",iban:"IBAN",jwt:"JWT",template_literal:"input"},X={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Input tidak valid: diharapkan instanceof ${Y.expected}, diterima ${F}`;return`Input tidak valid: diharapkan ${Q}, diterima ${F}`}case"invalid_value":if(Y.values.length===1)return`Input tidak valid: diharapkan ${m(Y.values[0])}`;return`Pilihan tidak valid: diharapkan salah satu dari ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Terlalu besar: diharapkan ${Y.origin??"value"} memiliki ${Q}${Y.maximum.toString()} ${U.unit??"elemen"}`;return`Terlalu besar: diharapkan ${Y.origin??"value"} menjadi ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Terlalu kecil: diharapkan ${Y.origin} memiliki ${Q}${Y.minimum.toString()} ${U.unit}`;return`Terlalu kecil: diharapkan ${Y.origin} menjadi ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`String tidak valid: harus dimulai dengan "${Q.prefix}"`;if(Q.format==="ends_with")return`String tidak valid: harus berakhir dengan "${Q.suffix}"`;if(Q.format==="includes")return`String tidak valid: harus menyertakan "${Q.includes}"`;if(Q.format==="regex")return`String tidak valid: harus sesuai pola ${Q.pattern}`;return`${J[Q.format]??Y.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${Y.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${Y.keys.length>1?"s":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${Y.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${Y.origin}`;default:return"Input tidak valid"}}};var pk=S(()=>{e()});function kz(){return{localeError:o5D()}}var o5D=()=>{let D={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"},map:{unit:"hluti",verb:"að hafa"}};function $(Y){return D[Y]??null}let J={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",credit_card:"kreditkortanúmer",currency_code:"gjaldmiðilskóði",iban:"IBAN",jwt:"JWT",template_literal:"gildi"},X={nan:"NaN",number:"númer",array:"fylki"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Rangt gildi: Þú slóst inn ${F} þar sem á að vera instanceof ${Y.expected}`;return`Rangt gildi: Þú slóst inn ${F} þar sem á að vera ${Q}`}case"invalid_value":if(Y.values.length===1)return`Rangt gildi: gert ráð fyrir ${m(Y.values[0])}`;return`Ógilt val: má vera eitt af eftirfarandi ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Of stórt: gert er ráð fyrir að ${Y.origin??"gildi"} hafi ${Q}${Y.maximum.toString()} ${U.unit??"hluti"}`;return`Of stórt: gert er ráð fyrir að ${Y.origin??"gildi"} sé ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Of lítið: gert er ráð fyrir að ${Y.origin} hafi ${Q}${Y.minimum.toString()} ${U.unit}`;return`Of lítið: gert er ráð fyrir að ${Y.origin} sé ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Ógildur strengur: verður að byrja á "${Q.prefix}"`;if(Q.format==="ends_with")return`Ógildur strengur: verður að enda á "${Q.suffix}"`;if(Q.format==="includes")return`Ógildur strengur: verður að innihalda "${Q.includes}"`;if(Q.format==="regex")return`Ógildur strengur: verður að fylgja mynstri ${Q.pattern}`;return`Rangt ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${Y.divisor}`;case"unrecognized_keys":return`Óþekkt ${Y.keys.length>1?"ir lyklar":"ur lykill"}: ${b(Y.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${Y.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${Y.origin}`;default:return"Rangt gildi"}}};var nk=S(()=>{e()});function _z(){return{localeError:a5D()}}var a5D=()=>{let D={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"},map:{unit:"elementi",verb:"avere"}};function $(Y){return D[Y]??null}let J={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",mac:"indirizzo MAC",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",credit_card:"numero di carta di credito",currency_code:"codice valuta",iban:"IBAN",jwt:"JWT",template_literal:"input"},X={nan:"NaN",number:"numero",array:"vettore"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Input non valido: atteso instanceof ${Y.expected}, ricevuto ${F}`;return`Input non valido: atteso ${Q}, ricevuto ${F}`}case"invalid_value":if(Y.values.length===1)return`Input non valido: atteso ${m(Y.values[0])}`;return`Opzione non valida: atteso uno tra ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Troppo grande: ${Y.origin??"valore"} deve avere ${Q}${Y.maximum.toString()} ${U.unit??"elementi"}`;return`Troppo grande: ${Y.origin??"valore"} deve essere ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Troppo piccolo: ${Y.origin} deve avere ${Q}${Y.minimum.toString()} ${U.unit}`;return`Troppo piccolo: ${Y.origin} deve essere ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Stringa non valida: deve iniziare con "${Q.prefix}"`;if(Q.format==="ends_with")return`Stringa non valida: deve terminare con "${Q.suffix}"`;if(Q.format==="includes")return`Stringa non valida: deve includere "${Q.includes}"`;if(Q.format==="regex")return`Stringa non valida: deve corrispondere al pattern ${Q.pattern}`;return`Input non valido: ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${Y.divisor}`;case"unrecognized_keys":return`Chiav${Y.keys.length>1?"i":"e"} non riconosciut${Y.keys.length>1?"e":"a"}: ${b(Y.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${Y.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${Y.origin}`;default:return"Input non valido"}}};var rk=S(()=>{e()});function uz(){return{localeError:s5D()}}var s5D=()=>{let D={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"},map:{unit:"要素",verb:"である"}};function $(Y){return D[Y]??null}let J={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",mac:"MACアドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",credit_card:"クレジットカード番号",currency_code:"通貨コード",iban:"IBAN",jwt:"JWT",template_literal:"入力値"},X={nan:"NaN",number:"数値",array:"配列"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`無効な入力: instanceof ${Y.expected}が期待されましたが、${F}が入力されました`;return`無効な入力: ${Q}が期待されましたが、${F}が入力されました`}case"invalid_value":if(Y.values.length===1)return`無効な入力: ${m(Y.values[0])}が期待されました`;return`無効な選択: ${b(Y.values,"、")}のいずれかである必要があります`;case"too_big":{let Q=Y.inclusive?"以下である":"より小さい",U=$(Y.origin);if(U)return`大きすぎる値: ${Y.origin??"値"}は${Y.maximum.toString()}${U.unit??"要素"}${Q}必要があります`;return`大きすぎる値: ${Y.origin??"値"}は${Y.maximum.toString()}${Q}必要があります`}case"too_small":{let Q=Y.inclusive?"以上である":"より大きい",U=$(Y.origin);if(U)return`小さすぎる値: ${Y.origin}は${Y.minimum.toString()}${U.unit}${Q}必要があります`;return`小さすぎる値: ${Y.origin}は${Y.minimum.toString()}${Q}必要があります`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`無効な文字列: "${Q.prefix}"で始まる必要があります`;if(Q.format==="ends_with")return`無効な文字列: "${Q.suffix}"で終わる必要があります`;if(Q.format==="includes")return`無効な文字列: "${Q.includes}"を含む必要があります`;if(Q.format==="regex")return`無効な文字列: パターン${Q.pattern}に一致する必要があります`;return`無効な${J[Q.format]??Y.format}`}case"not_multiple_of":return`無効な数値: ${Y.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${Y.keys.length>1?"群":""}: ${b(Y.keys,"、")}`;case"invalid_key":return`${Y.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${Y.origin}内の無効な値`;default:return"無効な入力"}}};var tk=S(()=>{e()});function gz(){return{localeError:e5D()}}var e5D=()=>{let D={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},map:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function $(Y){return D[Y]??null}let J={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",mac:"MAC მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული ველი",base64url:"base64url-კოდირებული ველი",json_string:"JSON ველი",e164:"E.164 ნომერი",credit_card:"საკრედიტო ბარათის ნომერი",currency_code:"ვალუტის კოდი",iban:"IBAN",jwt:"JWT",template_literal:"შეყვანა"},X={nan:"NaN",number:"რიცხვი",string:"ველი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`არასწორი შეყვანა: მოსალოდნელი instanceof ${Y.expected}, მიღებული ${F}`;return`არასწორი შეყვანა: მოსალოდნელი ${Q}, მიღებული ${F}`}case"invalid_value":if(Y.values.length===1)return`არასწორი შეყვანა: მოსალოდნელი ${m(Y.values[0])}`;return`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${b(Y.values,"|")}-დან`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`ზედმეტად დიდი: მოსალოდნელი ${Y.origin??"მნიშვნელობა"} ${U.verb} ${Q}${Y.maximum.toString()} ${U.unit}`;return`ზედმეტად დიდი: მოსალოდნელი ${Y.origin??"მნიშვნელობა"} იყოს ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`ზედმეტად პატარა: მოსალოდნელი ${Y.origin} ${U.verb} ${Q}${Y.minimum.toString()} ${U.unit}`;return`ზედმეტად პატარა: მოსალოდნელი ${Y.origin} იყოს ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`არასწორი ველი: უნდა იწყებოდეს "${Q.prefix}"-ით`;if(Q.format==="ends_with")return`არასწორი ველი: უნდა მთავრდებოდეს "${Q.suffix}"-ით`;if(Q.format==="includes")return`არასწორი ველი: უნდა შეიცავდეს "${Q.includes}"-ს`;if(Q.format==="regex")return`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${Q.pattern}`;return`არასწორი ${J[Q.format]??Y.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${Y.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${Y.keys.length>1?"ები":"ი"}: ${b(Y.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${Y.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${Y.origin}-ში`;default:return"არასწორი შეყვანა"}}};var ok=S(()=>{e()});function R7(){return{localeError:D7D()}}var D7D=()=>{let D={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"},map:{unit:"ធាតុ",verb:"គួរមាន"}};function $(Y){return D[Y]??null}let J={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",mac:"អាសយដ្ឋាន MAC",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",credit_card:"លេខប័ណ្ណឥណទាន",currency_code:"កូដរូបិយប័ណ្ណ",iban:"IBAN",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"},X={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${Y.expected} ប៉ុន្តែទទួលបាន ${F}`;return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${Q} ប៉ុន្តែទទួលបាន ${F}`}case"invalid_value":if(Y.values.length===1)return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${m(Y.values[0])}`;return`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`ធំពេក៖ ត្រូវការ ${Y.origin??"តម្លៃ"} ${Q} ${Y.maximum.toString()} ${U.unit??"ធាតុ"}`;return`ធំពេក៖ ត្រូវការ ${Y.origin??"តម្លៃ"} ${Q} ${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`តូចពេក៖ ត្រូវការ ${Y.origin} ${Q} ${Y.minimum.toString()} ${U.unit}`;return`តូចពេក៖ ត្រូវការ ${Y.origin} ${Q} ${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${Q.prefix}"`;if(Q.format==="ends_with")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${Q.suffix}"`;if(Q.format==="includes")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${Q.includes}"`;if(Q.format==="regex")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${Q.pattern}`;return`មិនត្រឹមត្រូវ៖ ${J[Q.format]??Y.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${Y.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${b(Y.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${Y.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${Y.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};var xz=S(()=>{e()});function fz(){return R7()}var ak=S(()=>{xz()});function yz(){return{localeError:$7D()}}var $7D=()=>{let D={string:{unit:"ಅಕ್ಷರಗಳು",verb:"ಹೊಂದಲು"},file:{unit:"ಬೈಟ್ಗಳು",verb:"ಹೊಂದಲು"},array:{unit:"ವಸ್ತುಗಳು",verb:"ಹೊಂದಲು"},set:{unit:"ವಸ್ತುಗಳು",verb:"ಹೊಂದಲು"},map:{unit:"entries",verb:"ಹೊಂದಲು"}};function $(Y){return D[Y]??null}let J={regex:"ಇನ್ಪುಟ್",email:"email ವಿಳಾಸ",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ದಿನಾಂಕದ ಸಮಯ",date:"ISO ದಿನಾಂಕ",time:"ISO ಸಮಯ",duration:"ISO ಅವಧಿ",ipv4:"IPv4 ವಿಳಾಸ",ipv6:"IPv6 ವಿಳಾಸ",mac:"MAC ವಿಳಾಸ",cidrv4:"IPv4 ವ್ಯಾಪ್ತಿಯ",cidrv6:"IPv6 ವ್ಯಾಪ್ತಿಯ",base64:"base64-encodedಸ್ಟ್ರಿಂಗ್",base64url:"base64url-encodedಸ್ಟ್ರಿಂಗ್",json_string:"JSONಸ್ಟ್ರಿಂಗ್",e164:"E.164 ಸಂಖ್ಯೆ",credit_card:"ಕ್ರೆಡಿಟ್ ಕಾರ್ಡ್ ಸಂಖ್ಯೆ",currency_code:"ಕರೆನ್ಸಿ ಕೋಡ್",iban:"IBAN",jwt:"JWT",template_literal:"ಇನ್ಪುಟ್"},X={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;return`ಅಮಾನ್ಯ ಇನ್ಪುಟ್: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${Q}, ಸ್ವೀಕರಿಸಿದನು ${F}`}case"invalid_value":if(Y.values.length===1)return`ಅಮಾನ್ಯ ಇನ್ಪುಟ್: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${m(Y.values[0])}`;return`ಅಮಾನ್ಯ ಆಯ್ಕೆ: ಇವುಗಳಲ್ಲಿ ಒಂದನ್ನು ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`ತುಂಬಾ ದೊಡ್ಡದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${Y.origin??"value"} ಹೊಂದಲು ${Q}${Y.maximum.toString()} ${U.unit??"ಅಂಶಗಳು"}`;return`ತುಂಬಾ ದೊಡ್ಡದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${Y.origin??"value"} ಎಂದು ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`ತುಂಬಾ ಚಿಕ್ಕದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${Y.origin} ಹೊಂದಲು ${Q}${Y.minimum.toString()} ${U.unit}`;return`ತುಂಬಾ ಚಿಕ್ಕದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${Y.origin} ಎಂದು ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`ಅಮಾನ್ಯವಾದ ಸ್ಟ್ರಿಂಗ್: ಇದರೊಂದಿಗೆ ಪ್ರಾರಂಭಿಸಬೇಕು "${Q.prefix}"`;if(Q.format==="ends_with")return`ಅಮಾನ್ಯವಾದ ಸ್ಟ್ರಿಂಗ್: ಇದರೊಂದಿಗೆ ಕೊನೆಗೊಳ್ಳಬೇಕು "${Q.suffix}"`;if(Q.format==="includes")return`ಅಮಾನ್ಯ ಸ್ಟ್ರಿಂಗ್: ಒಳಗೊಂಡಿರಬೇಕು "${Q.includes}"`;if(Q.format==="regex")return`ಅಮಾನ್ಯವಾದ ಸ್ಟ್ರಿಂಗ್: ಮಾದರಿಗೆ ಹೊಂದಿಕೆಯಾಗಬೇಕು ${Q.pattern}`;return`ಅಮಾನ್ಯ ${J[Q.format]??Y.format}`}case"not_multiple_of":return`ಅಮಾನ್ಯ ಸಂಖ್ಯೆ: ಬಹುಸಂಖ್ಯೆಯಾಗಿರಬೇಕು ${Y.divisor}`;case"unrecognized_keys":return`ಗುರುತಿಸಲಾಗದ ಕೀ ${Y.keys.length>1?"s":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`ಅಮಾನ್ಯವಾದ ಕೀ ಇನ್ ${Y.origin}`;case"invalid_union":if(Y.options&&Array.isArray(Y.options)&&Y.options.length>0)return`ಅಮಾನ್ಯ ತಾರತಮ್ಯ ಮೌಲ್ಯ. ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${Y.options.map((U)=>`'${U}'`).join(" | ")}`;return"ಅಮಾನ್ಯ ಇನ್ಪುಟ್";case"invalid_element":return`ರಲ್ಲಿ ಅಮಾನ್ಯ ಮೌಲ್ಯ ${Y.origin}`;default:return"ಅಮಾನ್ಯ ಇನ್ಪುಟ್"}}};var sk=S(()=>{e()});function hz(){return{localeError:J7D()}}var J7D=()=>{let D={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"},map:{unit:"개",verb:"to have"}};function $(Y){return D[Y]??null}let J={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",mac:"MAC 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",credit_card:"신용카드 번호",currency_code:"통화 코드",iban:"IBAN",jwt:"JWT",template_literal:"입력"},X={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`잘못된 입력: 예상 타입은 instanceof ${Y.expected}, 받은 타입은 ${F}입니다`;return`잘못된 입력: 예상 타입은 ${Q}, 받은 타입은 ${F}입니다`}case"invalid_value":if(Y.values.length===1)return`잘못된 입력: 값은 ${m(Y.values[0])} 이어야 합니다`;return`잘못된 옵션: ${b(Y.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{let Q=Y.inclusive?"이하":"미만",U=Q==="미만"?"이어야 합니다":"여야 합니다",F=$(Y.origin),W=F?.unit??"요소";if(F)return`${Y.origin??"값"}이 너무 큽니다: ${Y.maximum.toString()}${W} ${Q}${U}`;return`${Y.origin??"값"}이 너무 큽니다: ${Y.maximum.toString()} ${Q}${U}`}case"too_small":{let Q=Y.inclusive?"이상":"초과",U=Q==="이상"?"이어야 합니다":"여야 합니다",F=$(Y.origin),W=F?.unit??"요소";if(F)return`${Y.origin??"값"}이 너무 작습니다: ${Y.minimum.toString()}${W} ${Q}${U}`;return`${Y.origin??"값"}이 너무 작습니다: ${Y.minimum.toString()} ${Q}${U}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`잘못된 문자열: "${Q.prefix}"(으)로 시작해야 합니다`;if(Q.format==="ends_with")return`잘못된 문자열: "${Q.suffix}"(으)로 끝나야 합니다`;if(Q.format==="includes")return`잘못된 문자열: "${Q.includes}"을(를) 포함해야 합니다`;if(Q.format==="regex")return`잘못된 문자열: 정규식 ${Q.pattern} 패턴과 일치해야 합니다`;return`잘못된 ${J[Q.format]??Y.format}`}case"not_multiple_of":return`잘못된 숫자: ${Y.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${b(Y.keys,", ")}`;case"invalid_key":return`잘못된 키: ${Y.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${Y.origin}`;default:return"잘못된 입력"}}};var ek=S(()=>{e()});function D_(D){let $=Math.abs(D),J=$%10,X=$%100;if(X>=11&&X<=19||J===0)return"many";if(J===1)return"one";return"few"}function mz(){return{localeError:X7D()}}var M7=(D)=>{return D.charAt(0).toUpperCase()+D.slice(1)},X7D=()=>{let D={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function $(Y,Q,U,F){let W=D[Y]??null;if(W===null)return W;return{unit:W.unit[Q],verb:W.verb[F][U?"inclusive":"notInclusive"]}}let J={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",mac:"MAC adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",credit_card:"kredito kortelės numeris",currency_code:"valiutos kodas",iban:"IBAN",jwt:"JWT",template_literal:"įvestis"},X={nan:"NaN",number:"skaičius",bigint:"sveikasis skaičius",string:"eilutė",boolean:"loginė reikšmė",undefined:"neapibrėžta reikšmė",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulinė reikšmė"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Gautas tipas ${F}, o tikėtasi - instanceof ${Y.expected}`;return`Gautas tipas ${F}, o tikėtasi - ${Q}`}case"invalid_value":if(Y.values.length===1)return`Privalo būti ${m(Y.values[0])}`;return`Privalo būti vienas iš ${b(Y.values,"|")} pasirinkimų`;case"too_big":{let Q=X[Y.origin]??Y.origin,U=$(Y.origin,D_(Number(Y.maximum)),Y.inclusive??!1,"smaller");if(U?.verb)return`${M7(Q??Y.origin??"reikšmė")} ${U.verb} ${Y.maximum.toString()} ${U.unit??"elementų"}`;let F=Y.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${M7(Q??Y.origin??"reikšmė")} turi būti ${F} ${Y.maximum.toString()} ${U?.unit}`}case"too_small":{let Q=X[Y.origin]??Y.origin,U=$(Y.origin,D_(Number(Y.minimum)),Y.inclusive??!1,"bigger");if(U?.verb)return`${M7(Q??Y.origin??"reikšmė")} ${U.verb} ${Y.minimum.toString()} ${U.unit??"elementų"}`;let F=Y.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${M7(Q??Y.origin??"reikšmė")} turi būti ${F} ${Y.minimum.toString()} ${U?.unit}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Eilutė privalo prasidėti "${Q.prefix}"`;if(Q.format==="ends_with")return`Eilutė privalo pasibaigti "${Q.suffix}"`;if(Q.format==="includes")return`Eilutė privalo įtraukti "${Q.includes}"`;if(Q.format==="regex")return`Eilutė privalo atitikti ${Q.pattern}`;return`Neteisingas ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Skaičius privalo būti ${Y.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${Y.keys.length>1?"i":"as"} rakt${Y.keys.length>1?"ai":"as"}: ${b(Y.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{let Q=X[Y.origin]??Y.origin;return`${M7(Q??Y.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};var $_=S(()=>{e()});function lz(){return{localeError:Y7D()}}var Y7D=()=>{let D={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"},map:{unit:"ставки",verb:"да имаат"}};function $(Y){return D[Y]??null}let J={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",mac:"MAC адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",credit_card:"број на кредитна картичка",currency_code:"код на валута",iban:"IBAN",jwt:"JWT",template_literal:"внес"},X={nan:"NaN",number:"број",array:"низа"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Грешен внес: се очекува instanceof ${Y.expected}, примено ${F}`;return`Грешен внес: се очекува ${Q}, примено ${F}`}case"invalid_value":if(Y.values.length===1)return`Invalid input: expected ${m(Y.values[0])}`;return`Грешана опција: се очекува една ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Премногу голем: се очекува ${Y.origin??"вредноста"} да има ${Q}${Y.maximum.toString()} ${U.unit??"елементи"}`;return`Премногу голем: се очекува ${Y.origin??"вредноста"} да биде ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Премногу мал: се очекува ${Y.origin} да има ${Q}${Y.minimum.toString()} ${U.unit}`;return`Премногу мал: се очекува ${Y.origin} да биде ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Неважечка низа: мора да започнува со "${Q.prefix}"`;if(Q.format==="ends_with")return`Неважечка низа: мора да завршува со "${Q.suffix}"`;if(Q.format==="includes")return`Неважечка низа: мора да вклучува "${Q.includes}"`;if(Q.format==="regex")return`Неважечка низа: мора да одгоара на патернот ${Q.pattern}`;return`Invalid ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${Y.divisor}`;case"unrecognized_keys":return`${Y.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${b(Y.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${Y.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${Y.origin}`;default:return"Грешен внес"}}};var J_=S(()=>{e()});function dz(){return{localeError:Q7D()}}var Q7D=()=>{let D={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"},map:{unit:"elemen",verb:"mempunyai"}};function $(Y){return D[Y]??null}let J={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",mac:"alamat MAC",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",credit_card:"nombor kad kredit",currency_code:"kod mata wang",iban:"IBAN",jwt:"JWT",template_literal:"input"},X={nan:"NaN",number:"nombor"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Input tidak sah: dijangka instanceof ${Y.expected}, diterima ${F}`;return`Input tidak sah: dijangka ${Q}, diterima ${F}`}case"invalid_value":if(Y.values.length===1)return`Input tidak sah: dijangka ${m(Y.values[0])}`;return`Pilihan tidak sah: dijangka salah satu daripada ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Terlalu besar: dijangka ${Y.origin??"nilai"} ${U.verb} ${Q}${Y.maximum.toString()} ${U.unit??"elemen"}`;return`Terlalu besar: dijangka ${Y.origin??"nilai"} adalah ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Terlalu kecil: dijangka ${Y.origin} ${U.verb} ${Q}${Y.minimum.toString()} ${U.unit}`;return`Terlalu kecil: dijangka ${Y.origin} adalah ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`String tidak sah: mesti bermula dengan "${Q.prefix}"`;if(Q.format==="ends_with")return`String tidak sah: mesti berakhir dengan "${Q.suffix}"`;if(Q.format==="includes")return`String tidak sah: mesti mengandungi "${Q.includes}"`;if(Q.format==="regex")return`String tidak sah: mesti sepadan dengan corak ${Q.pattern}`;return`${J[Q.format]??Y.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${Y.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${b(Y.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${Y.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${Y.origin}`;default:return"Input tidak sah"}}};var X_=S(()=>{e()});function iz(){return{localeError:U7D()}}var U7D=()=>{let D={string:{unit:"अक्षर",verb:"हुनुपर्छ"},file:{unit:"बाइट",verb:"हुनुपर्छ"},array:{unit:"तत्व",verb:"हुनुपर्छ"},set:{unit:"तत्व",verb:"हुनुपर्छ"},map:{unit:"प्रविष्टि",verb:"हुनुपर्छ"}};function $(Y){return D[Y]??null}let J={regex:"इनपुट",email:"इमेल ठेगाना",url:"URL",emoji:"इमोजी",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO मिति र समय",date:"ISO मिति",time:"ISO समय",duration:"ISO अवधि",ipv4:"IPv4 ठेगाना",ipv6:"IPv6 ठेगाना",mac:"MAC ठेगाना",cidrv4:"IPv4 दायरा",cidrv6:"IPv6 दायरा",base64:"base64-इन्कोड गरिएको स्ट्रिङ",base64url:"base64url-इन्कोड गरिएको स्ट्रिङ",json_string:"JSON स्ट्रिङ",e164:"E.164 नम्बर",credit_card:"क्रेडिट कार्ड नम्बर",currency_code:"मुद्रा कोड",iban:"IBAN",jwt:"JWT",template_literal:"इनपुट"},X={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;return`अमान्य इनपुट: अपेक्षित ${Q}, प्राप्त ${F}`}case"invalid_value":if(Y.values.length===1)return`अमान्य इनपुट: अपेक्षित ${m(Y.values[0])}`;return`अमान्य विकल्प: अपेक्षित मानहरू मध्ये एक ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`धेरै ठूलो: ${Y.origin??"मान"} मा ${Q}${Y.maximum.toString()} ${U.unit} ${U.verb}`;return`धेरै ठूलो: ${Y.origin??"मान"} ${Q}${Y.maximum.toString()} हुनुपर्छ`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`धेरै सानो: ${Y.origin} मा ${Q}${Y.minimum.toString()} ${U.unit} ${U.verb}`;return`धेरै सानो: ${Y.origin} ${Q}${Y.minimum.toString()} हुनुपर्छ`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`अमान्य स्ट्रिङ: "${Q.prefix}" बाट सुरु हुनुपर्छ`;if(Q.format==="ends_with")return`अमान्य स्ट्रिङ: "${Q.suffix}" मा समाप्त हुनुपर्छ`;if(Q.format==="includes")return`अमान्य स्ट्रिङ: "${Q.includes}" समावेश हुनुपर्छ`;if(Q.format==="regex")return`अमान्य स्ट्रिङ: ढाँचा ${Q.pattern} सँग मेल खानुपर्छ`;return`अमान्य ${J[Q.format]??Y.format}`}case"not_multiple_of":return`अमान्य संख्या: ${Y.divisor} को गुणज हुनुपर्छ`;case"unrecognized_keys":return`अपरिचित कुञ्जी${Y.keys.length>1?"हरू":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`अमान्य कुञ्जी: ${Y.origin} मा`;case"invalid_union":if(Y.options&&Array.isArray(Y.options)&&Y.options.length>0)return`अमान्य डिस्क्रिमिनेटर मान: अपेक्षित ${Y.options.map((U)=>`'${U}'`).join(" | ")}`;return"अमान्य इनपुट";case"invalid_element":return`अमान्य मान: ${Y.origin} मा`;default:return"अमान्य इनपुट"}}};var Y_=S(()=>{e()});function cz(){return{localeError:F7D()}}var F7D=()=>{let D={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"},map:{unit:"elementen",verb:"heeft"}};function $(Y){return D[Y]??null}let J={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",mac:"MAC-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",credit_card:"creditcardnummer",currency_code:"valutacode",iban:"IBAN",jwt:"JWT",template_literal:"invoer"},X={nan:"NaN",number:"getal"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Ongeldige invoer: verwacht instanceof ${Y.expected}, ontving ${F}`;return`Ongeldige invoer: verwacht ${Q}, ontving ${F}`}case"invalid_value":if(Y.values.length===1)return`Ongeldige invoer: verwacht ${m(Y.values[0])}`;return`Ongeldige optie: verwacht één van ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin),F=Y.origin==="date"?"laat":Y.origin==="string"?"lang":"groot";if(U)return`Te ${F}: verwacht dat ${Y.origin??"waarde"} ${Q}${Y.maximum.toString()} ${U.unit??"elementen"} ${U.verb}`;return`Te ${F}: verwacht dat ${Y.origin??"waarde"} ${Q}${Y.maximum.toString()} is`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin),F=Y.origin==="date"?"vroeg":Y.origin==="string"?"kort":"klein";if(U)return`Te ${F}: verwacht dat ${Y.origin} ${Q}${Y.minimum.toString()} ${U.unit} ${U.verb}`;return`Te ${F}: verwacht dat ${Y.origin} ${Q}${Y.minimum.toString()} is`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Ongeldige tekst: moet met "${Q.prefix}" beginnen`;if(Q.format==="ends_with")return`Ongeldige tekst: moet op "${Q.suffix}" eindigen`;if(Q.format==="includes")return`Ongeldige tekst: moet "${Q.includes}" bevatten`;if(Q.format==="regex")return`Ongeldige tekst: moet overeenkomen met patroon ${Q.pattern}`;return`Ongeldig: ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${Y.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${Y.keys.length>1?"s":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${Y.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${Y.origin}`;default:return"Ongeldige invoer"}}};var Q_=S(()=>{e()});function pz(){return{localeError:W7D()}}var W7D=()=>{let D={string:{unit:"teikn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"element",verb:"å innehalde"},set:{unit:"element",verb:"å innehalde"},map:{unit:"element",verb:"å innehalde"}};function $(Y){return D[Y]??null}let J={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varigheit",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkoda streng",base64url:"base64url-enkoda streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},X={nan:"NaN",number:"tal",array:"liste"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Ugyldig input: forventa instanceof ${Y.expected}, fekk ${F}`;return`Ugyldig input: forventa ${Q}, fekk ${F}`}case"invalid_value":if(Y.values.length===1)return`Ugyldig verdi: forventa ${m(Y.values[0])}`;return`Ugyldig val: forventa eitt av ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`For stor(t): forventa ${Y.origin??"value"} til å ha ${Q}${Y.maximum.toString()} ${U.unit??"element"}`;return`For stor(t): forventa ${Y.origin??"value"} til å ha ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`For lite(n): forventa ${Y.origin} til å ha ${Q}${Y.minimum.toString()} ${U.unit}`;return`For lite(n): forventa ${Y.origin} til å ha ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Ugyldig streng: må starte med "${Q.prefix}"`;if(Q.format==="ends_with")return`Ugyldig streng: må slutte med "${Q.suffix}"`;if(Q.format==="includes")return`Ugyldig streng: må innehalde "${Q.includes}"`;if(Q.format==="regex")return`Ugyldig streng: må matche mønsteret ${Q.pattern}`;return`Ugyldig ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Ugyldig tal: må vere eit multiplum av ${Y.divisor}`;case"unrecognized_keys":return`${Y.keys.length>1?"Ukjende nøklar":"Ukjend nøkkel"}: ${b(Y.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${Y.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${Y.origin}`;default:return"Ugyldig input"}}};var U_=S(()=>{e()});function nz(){return{localeError:K7D()}}var K7D=()=>{let D={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"},map:{unit:"elementer",verb:"å inneholde"}};function $(Y){return D[Y]??null}let J={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},X={nan:"NaN",number:"tall",array:"liste"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Ugyldig input: forventet instanceof ${Y.expected}, fikk ${F}`;return`Ugyldig input: forventet ${Q}, fikk ${F}`}case"invalid_value":if(Y.values.length===1)return`Ugyldig verdi: forventet ${m(Y.values[0])}`;return`Ugyldig valg: forventet en av ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`For stor(t): forventet ${Y.origin??"value"} til å ha ${Q}${Y.maximum.toString()} ${U.unit??"elementer"}`;return`For stor(t): forventet ${Y.origin??"value"} til å ha ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`For lite(n): forventet ${Y.origin} til å ha ${Q}${Y.minimum.toString()} ${U.unit}`;return`For lite(n): forventet ${Y.origin} til å ha ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Ugyldig streng: må starte med "${Q.prefix}"`;if(Q.format==="ends_with")return`Ugyldig streng: må ende med "${Q.suffix}"`;if(Q.format==="includes")return`Ugyldig streng: må inneholde "${Q.includes}"`;if(Q.format==="regex")return`Ugyldig streng: må matche mønsteret ${Q.pattern}`;return`Ugyldig ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${Y.divisor}`;case"unrecognized_keys":return`${Y.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${b(Y.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${Y.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${Y.origin}`;default:return"Ugyldig input"}}};var F_=S(()=>{e()});function rz(){return{localeError:q7D()}}var q7D=()=>{let D={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"},map:{unit:"unsur",verb:"olmalıdır"}};function $(Y){return D[Y]??null}let J={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",mac:"MAC nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",credit_card:"i'tibâr kartı numarası",currency_code:"para birimi kodu",iban:"IBAN",jwt:"JWT",template_literal:"giren"},X={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Fâsit giren: umulan instanceof ${Y.expected}, alınan ${F}`;return`Fâsit giren: umulan ${Q}, alınan ${F}`}case"invalid_value":if(Y.values.length===1)return`Fâsit giren: umulan ${m(Y.values[0])}`;return`Fâsit tercih: mûteberler ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Fazla büyük: ${Y.origin??"value"}, ${Q}${Y.maximum.toString()} ${U.unit??"elements"} sahip olmalıydı.`;return`Fazla büyük: ${Y.origin??"value"}, ${Q}${Y.maximum.toString()} olmalıydı.`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Fazla küçük: ${Y.origin}, ${Q}${Y.minimum.toString()} ${U.unit} sahip olmalıydı.`;return`Fazla küçük: ${Y.origin}, ${Q}${Y.minimum.toString()} olmalıydı.`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Fâsit metin: "${Q.prefix}" ile başlamalı.`;if(Q.format==="ends_with")return`Fâsit metin: "${Q.suffix}" ile bitmeli.`;if(Q.format==="includes")return`Fâsit metin: "${Q.includes}" ihtivâ etmeli.`;if(Q.format==="regex")return`Fâsit metin: ${Q.pattern} nakşına uymalı.`;return`Fâsit ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Fâsit sayı: ${Y.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${Y.keys.length>1?"s":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`${Y.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${Y.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};var W_=S(()=>{e()});function tz(){return{localeError:G7D()}}var G7D=()=>{let D={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"},map:{unit:"توکي",verb:"ولري"}};function $(Y){return D[Y]??null}let J={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",mac:"د MAC پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",credit_card:"د کریډیټ کارت شمیره",currency_code:"د اسعارو کوډ",iban:"IBAN",jwt:"JWT",template_literal:"ورودي"},X={nan:"NaN",number:"عدد",array:"ارې"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`ناسم ورودي: باید instanceof ${Y.expected} وای, مګر ${F} ترلاسه شو`;return`ناسم ورودي: باید ${Q} وای, مګر ${F} ترلاسه شو`}case"invalid_value":if(Y.values.length===1)return`ناسم ورودي: باید ${m(Y.values[0])} وای`;return`ناسم انتخاب: باید یو له ${b(Y.values,"|")} څخه وای`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`ډیر لوی: ${Y.origin??"ارزښت"} باید ${Q}${Y.maximum.toString()} ${U.unit??"عنصرونه"} ولري`;return`ډیر لوی: ${Y.origin??"ارزښت"} باید ${Q}${Y.maximum.toString()} وي`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`ډیر کوچنی: ${Y.origin} باید ${Q}${Y.minimum.toString()} ${U.unit} ولري`;return`ډیر کوچنی: ${Y.origin} باید ${Q}${Y.minimum.toString()} وي`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`ناسم متن: باید د "${Q.prefix}" سره پیل شي`;if(Q.format==="ends_with")return`ناسم متن: باید د "${Q.suffix}" سره پای ته ورسيږي`;if(Q.format==="includes")return`ناسم متن: باید "${Q.includes}" ولري`;if(Q.format==="regex")return`ناسم متن: باید د ${Q.pattern} سره مطابقت ولري`;return`${J[Q.format]??Y.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${Y.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${Y.keys.length>1?"کلیډونه":"کلیډ"}: ${b(Y.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${Y.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${Y.origin} کې`;default:return"ناسمه ورودي"}}};var K_=S(()=>{e()});function oz(){return{localeError:Z7D()}}var Z7D=()=>{let D={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"},map:{unit:"elementów",verb:"mieć"}};function $(Y){return D[Y]??null}let J={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",mac:"adres MAC",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",credit_card:"numer karty kredytowej",currency_code:"kod waluty",iban:"IBAN",jwt:"JWT",template_literal:"wejście"},X={nan:"NaN",number:"liczba",array:"tablica"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${Y.expected}, otrzymano ${F}`;return`Nieprawidłowe dane wejściowe: oczekiwano ${Q}, otrzymano ${F}`}case"invalid_value":if(Y.values.length===1)return`Nieprawidłowe dane wejściowe: oczekiwano ${m(Y.values[0])}`;return`Nieprawidłowa opcja: oczekiwano jednej z wartości ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Za duża wartość: oczekiwano, że ${Y.origin??"wartość"} będzie mieć ${Q}${Y.maximum.toString()} ${U.unit??"elementów"}`;return`Zbyt duż(y/a/e): oczekiwano, że ${Y.origin??"wartość"} będzie wynosić ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Za mała wartość: oczekiwano, że ${Y.origin??"wartość"} będzie mieć ${Q}${Y.minimum.toString()} ${U.unit??"elementów"}`;return`Zbyt mał(y/a/e): oczekiwano, że ${Y.origin??"wartość"} będzie wynosić ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Nieprawidłowy ciąg znaków: musi zaczynać się od "${Q.prefix}"`;if(Q.format==="ends_with")return`Nieprawidłowy ciąg znaków: musi kończyć się na "${Q.suffix}"`;if(Q.format==="includes")return`Nieprawidłowy ciąg znaków: musi zawierać "${Q.includes}"`;if(Q.format==="regex")return`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${Q.pattern}`;return`Nieprawidłow(y/a/e) ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${Y.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${Y.keys.length>1?"s":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${Y.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${Y.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};var q_=S(()=>{e()});function az(){return{localeError:z7D()}}var z7D=()=>{let D={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function $(U){return D[U]??null}let J={regex:"a entrada",email:"o endereço de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a duração ISO",ipv4:"o endereço IPv4",ipv6:"o endereço IPv6",mac:"o endereço MAC",cidrv4:"o intervalo de endereços IPv4",cidrv6:"o intervalo de endereços IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o número E.164",credit_card:"o número de cartão de crédito",currency_code:"o código de moeda",iban:"o IBAN",jwt:"o JWT",template_literal:"a entrada"},X={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},Y={string:{name:"texto",articles:X.masculine},number:{name:"número",articles:X.masculine},int:{name:"número inteiro",articles:X.masculine},boolean:{name:"valor booleano",articles:X.masculine},bigint:{name:"número bigint",articles:X.masculine},symbol:{name:"símbolo",articles:X.masculine},undefined:{name:'valor "undefined"',articles:X.masculine},null:{name:'valor "nulo"',articles:X.masculine},never:{name:'valor "never"',articles:X.masculine},void:{name:'valor "void"',articles:X.masculine},date:{name:"data",articles:X.feminine},array:{name:"vetor",articles:X.masculine},object:{name:"objeto",articles:X.masculine},tuple:{name:"tuplo",articles:X.masculine},record:{name:"registo",articles:X.masculine},map:{name:"mapa",articles:X.masculine},set:{name:"conjunto",articles:X.masculine},file:{name:"ficheiro",articles:X.masculine},nonoptional:{name:"valor não opcional",articles:X.masculine},nan:{name:'valor "NaN"',articles:X.masculine},function:{name:"função",articles:X.feminine}};function Q(U,F){let W=Y[U]??{name:`valor "${U}"`,articles:X.masculine};return`${W.articles[F]} ${W.name}`}return(U)=>{switch(U.code){case"invalid_type":{let F=Q(U.expected,"indefinite"),W=l(U.input),K=Q(W,"indefinite");return`Entrada inválida: esperava ${F}, recebeu ${K}`}case"invalid_value":if(U.values.length===1)return`Entrada inválida: esperava ${m(U.values[0])}`;return`Opção inválida: esperava uma das seguintes opções: ${b(U.values,"|")}`;case"too_big":{let F=U.inclusive?"<=":"<",W=$(U.origin);if(W)return`Demasiado grande: esperava que ${Q(U.origin,"definite")} tivesse ${F} ${U.maximum.toString()} ${W.unit??"elementos"}`;return`Demasiado grande: esperava que ${Q(U.origin,"definite")} fosse ${F} ${U.maximum.toString()}`}case"too_small":{let F=U.inclusive?">=":">",W=$(U.origin);if(W)return`Demasiado pequeno: esperava que ${Q(U.origin,"definite")} tivesse ${F} ${U.minimum.toString()} ${W.unit??"elementos"}`;return`Demasiado pequeno: esperava que ${Q(U.origin,"definite")} fosse ${F} ${U.minimum.toString()}`}case"invalid_format":{let F=U;if(F.format==="starts_with")return`Texto inválido: deve começar por "${F.prefix}"`;if(F.format==="ends_with")return`Texto inválido: deve terminar em "${F.suffix}"`;if(F.format==="includes")return`Texto inválido: deve incluir "${F.includes}"`;if(F.format==="regex")return`Texto inválido: deve corresponder ao padrão ${F.pattern}`;return`Formato d${J[F.format]??U.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${U.divisor}`;case"unrecognized_keys":{let F=U.keys.length>1?"s":"";return`Chave${F} inválida${F}: ${b(U.keys,", ")}`}case"invalid_key":return`Entrada inválida n${Q(U.origin,"definite")}`;case"invalid_union":if(U.options&&Array.isArray(U.options)&&U.options.length>0)return`Valor de discriminação inválido. Esperava ${U.options.map((W)=>`'${W}'`).join(" | ")}`;return"Entrada inválida";case"invalid_element":return`Entrada inválida n${Q(U.origin,"definite")}`;default:return"Entrada inválida"}}};var G_=S(()=>{e()});function sz(){return{localeError:H7D()}}var H7D=()=>{let D={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function $(U){return D[U]??null}let J={regex:"a entrada",email:"o endereço de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a duração ISO",ipv4:"o endereço IPv4",ipv6:"o endereço IPv6",mac:"o endereço MAC",cidrv4:"a faixa de endereços IPv4",cidrv6:"a faixa de endereços IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o número E.164",credit_card:"o número de cartão de crédito",currency_code:"o código de moeda",iban:"o IBAN",jwt:"o JWT",template_literal:"a entrada"},X={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},Y={string:{name:"texto",articles:X.masculine},number:{name:"número",articles:X.masculine},int:{name:"número inteiro",articles:X.masculine},boolean:{name:"valor booleano",articles:X.masculine},bigint:{name:"número bigint",articles:X.masculine},symbol:{name:"símbolo",articles:X.masculine},undefined:{name:'valor "undefined"',articles:X.masculine},null:{name:'valor "nulo"',articles:X.masculine},never:{name:'valor "never"',articles:X.masculine},void:{name:'valor "void"',articles:X.masculine},date:{name:"data",articles:X.feminine},array:{name:"vetor",articles:X.masculine},object:{name:"objeto",articles:X.masculine},tuple:{name:"tupla",articles:X.feminine},record:{name:"registro",articles:X.masculine},map:{name:"mapa",articles:X.masculine},set:{name:"conjunto",articles:X.masculine},file:{name:"arquivo",articles:X.masculine},nonoptional:{name:"valor não opcional",articles:X.masculine},nan:{name:'valor "NaN"',articles:X.masculine},function:{name:"função",articles:X.feminine}};function Q(U,F){let W=Y[U]??{name:`valor "${U}"`,articles:X.masculine};return`${W.articles[F]} ${W.name}`}return(U)=>{switch(U.code){case"invalid_type":{let F=Q(U.expected,"indefinite"),W=l(U.input),K=Q(W,"indefinite");return`Entrada inválida: esperava ${F}, recebeu ${K}`}case"invalid_value":if(U.values.length===1)return`Entrada inválida: esperava ${m(U.values[0])}`;return`Opção inválida: esperava uma das seguintes opções: ${b(U.values,"|")}`;case"too_big":{let F=U.inclusive?"<=":"<",W=$(U.origin);if(W)return`Grande demais: esperava que ${Q(U.origin,"definite")} tivesse ${F} ${U.maximum.toString()} ${W.unit??"elementos"}`;return`Grande demais: esperava que ${Q(U.origin,"definite")} fosse ${F} ${U.maximum.toString()}`}case"too_small":{let F=U.inclusive?">=":">",W=$(U.origin);if(W)return`Pequeno demais: esperava que ${Q(U.origin,"definite")} tivesse ${F} ${U.minimum.toString()} ${W.unit??"elementos"}`;return`Pequeno demais: esperava que ${Q(U.origin,"definite")} fosse ${F} ${U.minimum.toString()}`}case"invalid_format":{let F=U;if(F.format==="starts_with")return`Texto inválido: deve começar com "${F.prefix}"`;if(F.format==="ends_with")return`Texto inválido: deve terminar com "${F.suffix}"`;if(F.format==="includes")return`Texto inválido: deve incluir "${F.includes}"`;if(F.format==="regex")return`Texto inválido: deve corresponder ao padrão ${F.pattern}`;return`Formato d${J[F.format]??U.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${U.divisor}`;case"unrecognized_keys":{let F=U.keys.length>1?"s":"";return`Chave${F} inválida${F}: ${b(U.keys,", ")}`}case"invalid_key":return`Entrada inválida n${Q(U.origin,"definite")}`;case"invalid_union":if(U.options&&Array.isArray(U.options)&&U.options.length>0)return`Valor de discriminação inválido. Esperava ${U.options.map((W)=>`'${W}'`).join(" | ")}`;return"Entrada inválida";case"invalid_element":return`Entrada inválida n${Q(U.origin,"definite")}`;default:return"Entrada inválida"}}};var Z_=S(()=>{e()});function ez(){return{localeError:I7D()}}var I7D=()=>{let D={string:{unit:"caractere",verb:"să aibă"},file:{unit:"octeți",verb:"să aibă"},array:{unit:"elemente",verb:"să aibă"},set:{unit:"elemente",verb:"să aibă"},map:{unit:"intrări",verb:"să aibă"}};function $(Y){return D[Y]??null}let J={regex:"intrare",email:"adresă de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dată și oră ISO",date:"dată ISO",time:"oră ISO",duration:"durată ISO",ipv4:"adresă IPv4",ipv6:"adresă IPv6",mac:"adresă MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"șir codat base64",base64url:"șir codat base64url",json_string:"șir JSON",e164:"număr E.164",credit_card:"număr de card de credit",currency_code:"cod valutar",iban:"IBAN",jwt:"JWT",template_literal:"intrare"},X={nan:"NaN",string:"șir",number:"număr",boolean:"boolean",function:"funcție",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"număr mare",void:"void",never:"never",map:"hartă",set:"set"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;return`Intrare invalidă: așteptat ${Q}, primit ${F}`}case"invalid_value":if(Y.values.length===1)return`Intrare invalidă: așteptat ${m(Y.values[0])}`;return`Opțiune invalidă: așteptat una dintre ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Prea mare: așteptat ca ${Y.origin??"valoarea"} ${U.verb} ${Q}${Y.maximum.toString()} ${U.unit??"elemente"}`;return`Prea mare: așteptat ca ${Y.origin??"valoarea"} să fie ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Prea mic: așteptat ca ${Y.origin} ${U.verb} ${Q}${Y.minimum.toString()} ${U.unit}`;return`Prea mic: așteptat ca ${Y.origin} să fie ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Șir invalid: trebuie să înceapă cu "${Q.prefix}"`;if(Q.format==="ends_with")return`Șir invalid: trebuie să se termine cu "${Q.suffix}"`;if(Q.format==="includes")return`Șir invalid: trebuie să includă "${Q.includes}"`;if(Q.format==="regex")return`Șir invalid: trebuie să se potrivească cu modelul ${Q.pattern}`;return`Format invalid: ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Număr invalid: trebuie să fie multiplu de ${Y.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${b(Y.keys,", ")}`;case"invalid_key":return`Cheie invalidă în ${Y.origin}`;case"invalid_union":return"Intrare invalidă";case"invalid_element":return`Valoare invalidă în ${Y.origin}`;default:return"Intrare invalidă"}}};var z_=S(()=>{e()});function H_(D,$,J,X){let Y=Math.abs(D),Q=Y%10,U=Y%100;if(U>=11&&U<=19)return X;if(Q===1)return $;if(Q>=2&&Q<=4)return J;return X}function DH(){return{localeError:B7D()}}var B7D=()=>{let D={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},map:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function $(Y){return D[Y]??null}let J={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",mac:"MAC адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",credit_card:"номер кредитной карты",currency_code:"код валюты",iban:"IBAN",jwt:"JWT",template_literal:"ввод"},X={nan:"NaN",number:"число",array:"массив"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Неверный ввод: ожидалось instanceof ${Y.expected}, получено ${F}`;return`Неверный ввод: ожидалось ${Q}, получено ${F}`}case"invalid_value":if(Y.values.length===1)return`Неверный ввод: ожидалось ${m(Y.values[0])}`;return`Неверный вариант: ожидалось одно из ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U){let F=Number(Y.maximum),W=H_(F,U.unit.one,U.unit.few,U.unit.many);return`Слишком большое значение: ожидалось, что ${Y.origin??"значение"} будет иметь ${Q}${Y.maximum.toString()} ${W}`}return`Слишком большое значение: ожидалось, что ${Y.origin??"значение"} будет ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U){let F=Number(Y.minimum),W=H_(F,U.unit.one,U.unit.few,U.unit.many);return`Слишком маленькое значение: ожидалось, что ${Y.origin} будет иметь ${Q}${Y.minimum.toString()} ${W}`}return`Слишком маленькое значение: ожидалось, что ${Y.origin} будет ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Неверная строка: должна начинаться с "${Q.prefix}"`;if(Q.format==="ends_with")return`Неверная строка: должна заканчиваться на "${Q.suffix}"`;if(Q.format==="includes")return`Неверная строка: должна содержать "${Q.includes}"`;if(Q.format==="regex")return`Неверная строка: должна соответствовать шаблону ${Q.pattern}`;return`Неверный ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${Y.divisor}`;case"unrecognized_keys":return`Нераспознанн${Y.keys.length>1?"ые":"ый"} ключ${Y.keys.length>1?"и":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${Y.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${Y.origin}`;default:return"Неверные входные данные"}}};var I_=S(()=>{e()});function $H(){return{localeError:O7D()}}var O7D=()=>{let D={string:{unit:"znakov",verb:"mať"},file:{unit:"bajtov",verb:"mať"},array:{unit:"prvkov",verb:"mať"},set:{unit:"prvkov",verb:"mať"},map:{unit:"položiek",verb:"mať"}};function $(Y){return D[Y]??null}let J={regex:"regulárny výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dátum a čas vo formáte ISO",date:"dátum vo formáte ISO",time:"čas vo formáte ISO",duration:"doba trvania ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"reťazec zakódovaný vo formáte base64",base64url:"reťazec zakódovaný vo formáte base64url",json_string:"reťazec vo formáte JSON",e164:"číslo E.164",credit_card:"číslo kreditnej karty",currency_code:"kód meny",iban:"IBAN",jwt:"JWT",template_literal:"vstup"},X={nan:"NaN",number:"číslo",string:"reťazec",function:"funkcia",array:"pole"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Neplatný vstup: očakávané instanceof ${Y.expected}, obdržané ${F}`;return`Neplatný vstup: očakávané ${Q}, obdržané ${F}`}case"invalid_value":if(Y.values.length===1)return`Neplatný vstup: očakávané ${m(Y.values[0])}`;return`Neplatný vstup: očakávaná jedna z hodnôt ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Hodnota je príliš veľká: ${Y.origin??"hodnota"} musí mať ${Q}${Y.maximum.toString()} ${U.unit??"prvkov"}`;return`Hodnota je príliš veľká: ${Y.origin??"hodnota"} musí byť ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Hodnota je príliš malá: ${Y.origin??"hodnota"} musí mať ${Q}${Y.minimum.toString()} ${U.unit??"prvkov"}`;return`Hodnota je príliš malá: ${Y.origin??"hodnota"} musí byť ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Neplatný reťazec: musí začínať na "${Q.prefix}"`;if(Q.format==="ends_with")return`Neplatný reťazec: musí končiť na "${Q.suffix}"`;if(Q.format==="includes")return`Neplatný reťazec: musí obsahovať "${Q.includes}"`;if(Q.format==="regex")return`Neplatný reťazec: musí zodpovedať vzoru ${Q.pattern}`;return`Neplatný formát ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Neplatné číslo: musí byť násobkom ${Y.divisor}`;case"unrecognized_keys":return`Neznáme klúče: ${b(Y.keys,", ")}`;case"invalid_key":return`Neplatný klúč v ${Y.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${Y.origin}`;default:return"Neplatný vstup"}}};var B_=S(()=>{e()});function JH(){return{localeError:N7D()}}var N7D=()=>{let D={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"},map:{unit:"elementov",verb:"imeti"}};function $(Y){return D[Y]??null}let J={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",mac:"MAC naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",credit_card:"številka kreditne kartice",currency_code:"koda valute",iban:"IBAN",jwt:"JWT",template_literal:"vnos"},X={nan:"NaN",number:"število",array:"tabela"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Neveljaven vnos: pričakovano instanceof ${Y.expected}, prejeto ${F}`;return`Neveljaven vnos: pričakovano ${Q}, prejeto ${F}`}case"invalid_value":if(Y.values.length===1)return`Neveljaven vnos: pričakovano ${m(Y.values[0])}`;return`Neveljavna možnost: pričakovano eno izmed ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Preveliko: pričakovano, da bo ${Y.origin??"vrednost"} imelo ${Q}${Y.maximum.toString()} ${U.unit??"elementov"}`;return`Preveliko: pričakovano, da bo ${Y.origin??"vrednost"} ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Premajhno: pričakovano, da bo ${Y.origin} imelo ${Q}${Y.minimum.toString()} ${U.unit}`;return`Premajhno: pričakovano, da bo ${Y.origin} ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Neveljaven niz: mora se začeti z "${Q.prefix}"`;if(Q.format==="ends_with")return`Neveljaven niz: mora se končati z "${Q.suffix}"`;if(Q.format==="includes")return`Neveljaven niz: mora vsebovati "${Q.includes}"`;if(Q.format==="regex")return`Neveljaven niz: mora ustrezati vzorcu ${Q.pattern}`;return`Neveljaven ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${Y.divisor}`;case"unrecognized_keys":return`Neprepoznan${Y.keys.length>1?"i ključi":" ključ"}: ${b(Y.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${Y.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${Y.origin}`;default:return"Neveljaven vnos"}}};var O_=S(()=>{e()});function XH(){return{localeError:V7D()}}var V7D=()=>{let D={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"},map:{unit:"objekt",verb:"att innehålla"}};function $(Y){return D[Y]??null}let J={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-adress",ipv6:"IPv6-adress",mac:"MAC-adress",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",credit_card:"kreditkortsnummer",currency_code:"valutakod",iban:"IBAN",jwt:"JWT",template_literal:"mall-literal"},X={nan:"NaN",number:"antal",array:"lista"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Ogiltig inmatning: förväntat instanceof ${Y.expected}, fick ${F}`;return`Ogiltig inmatning: förväntat ${Q}, fick ${F}`}case"invalid_value":if(Y.values.length===1)return`Ogiltig inmatning: förväntat ${m(Y.values[0])}`;return`Ogiltigt val: förväntade en av ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`För stor(t): förväntade ${Y.origin??"värdet"} att ha ${Q}${Y.maximum.toString()} ${U.unit??"element"}`;return`För stor(t): förväntat ${Y.origin??"värdet"} att ha ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`För lite(t): förväntade ${Y.origin??"värdet"} att ha ${Q}${Y.minimum.toString()} ${U.unit}`;return`För lite(t): förväntade ${Y.origin??"värdet"} att ha ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Ogiltig sträng: måste börja med "${Q.prefix}"`;if(Q.format==="ends_with")return`Ogiltig sträng: måste sluta med "${Q.suffix}"`;if(Q.format==="includes")return`Ogiltig sträng: måste innehålla "${Q.includes}"`;if(Q.format==="regex")return`Ogiltig sträng: måste matcha mönstret "${Q.pattern}"`;return`Ogiltig(t) ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${Y.divisor}`;case"unrecognized_keys":return`${Y.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${b(Y.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${Y.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${Y.origin??"värdet"}`;default:return"Ogiltig input"}}};var N_=S(()=>{e()});function YH(){return{localeError:w7D()}}var w7D=()=>{let D={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},map:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function $(Y){return D[Y]??null}let J={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",mac:"MAC முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",credit_card:"கடன் அட்டை எண்",currency_code:"நாணயக் குறியீடு",iban:"IBAN",jwt:"JWT",template_literal:"input"},X={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${Y.expected}, பெறப்பட்டது ${F}`;return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${Q}, பெறப்பட்டது ${F}`}case"invalid_value":if(Y.values.length===1)return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${m(Y.values[0])}`;return`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${b(Y.values,"|")} இல் ஒன்று`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${Y.origin??"மதிப்பு"} ${Q}${Y.maximum.toString()} ${U.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`;return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${Y.origin??"மதிப்பு"} ${Q}${Y.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${Y.origin} ${Q}${Y.minimum.toString()} ${U.unit} ஆக இருக்க வேண்டும்`;return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${Y.origin} ${Q}${Y.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`தவறான சரம்: "${Q.prefix}" இல் தொடங்க வேண்டும்`;if(Q.format==="ends_with")return`தவறான சரம்: "${Q.suffix}" இல் முடிவடைய வேண்டும்`;if(Q.format==="includes")return`தவறான சரம்: "${Q.includes}" ஐ உள்ளடக்க வேண்டும்`;if(Q.format==="regex")return`தவறான சரம்: ${Q.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`;return`தவறான ${J[Q.format]??Y.format}`}case"not_multiple_of":return`தவறான எண்: ${Y.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${Y.keys.length>1?"கள்":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`${Y.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${Y.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};var V_=S(()=>{e()});function QH(){return{localeError:j7D()}}var j7D=()=>{let D={string:{unit:"аломат",verb:"дошта бошад"},file:{unit:"байт",verb:"дошта бошад"},array:{unit:"унсур",verb:"дошта бошад"},set:{unit:"унсур",verb:"дошта бошад"},map:{unit:"сабт",verb:"дошта бошад"}};function $(Y){return D[Y]??null}let J={regex:"вуруд",email:"суроғаи email",url:"URL",emoji:"эмоҷи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"санаву вақти ISO",date:"санаи ISO",time:"вақти ISO",duration:"давомнокии ISO",ipv4:"суроғаи IPv4",ipv6:"суроғаи IPv6",mac:"суроғаи MAC",cidrv4:"маҳдудаи IPv4",cidrv6:"маҳдудаи IPv6",base64:"сатри дар формати base64",base64url:"сатри дар формати base64url",json_string:"сатри JSON",e164:"рақами E.164",credit_card:"рақами корти кредитӣ",currency_code:"рамзи асъор",iban:"IBAN",jwt:"JWT",template_literal:"вуруд"},X={nan:"NaN",number:"рақам",string:"сатр",array:"массив",object:"объект",date:"сана"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;return`Вуруди нодуруст: ${Q} интизор мерафт, ${F} гирифта шуд`}case"invalid_value":if(Y.values.length===1)return`Вуруди нодуруст: ${m(Y.values[0])} интизор мерафт`;return`Интихоби нодуруст: яке аз ${b(Y.values,"|")} интизор мерафт`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Хеле калон: ${Y.origin??"қимат"} бояд ${Q}${Y.maximum.toString()} ${U.unit} ${U.verb}`;return`Хеле калон: ${Y.origin??"қимат"} бояд ${Q}${Y.maximum.toString()} бошад`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Хеле хурд: ${Y.origin} бояд ${Q}${Y.minimum.toString()} ${U.unit} ${U.verb}`;return`Хеле хурд: ${Y.origin} бояд ${Q}${Y.minimum.toString()} бошад`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Сатри нодуруст: бояд бо "${Q.prefix}" оғоз шавад`;if(Q.format==="ends_with")return`Сатри нодуруст: бояд бо "${Q.suffix}" анҷом ёбад`;if(Q.format==="includes")return`Сатри нодуруст: бояд "${Q.includes}"-ро дар бар гирад`;if(Q.format==="regex")return`Сатри нодуруст: бояд ба намунаи ${Q.pattern} мувофиқат кунад`;return`${J[Q.format]??Y.format}-и нодуруст`}case"not_multiple_of":return`Рақами нодуруст: бояд ба ${Y.divisor} бе бақия тақсим шавад`;case"unrecognized_keys":return`Калид${Y.keys.length>1?"ҳои":"и"} номаълум: ${b(Y.keys,", ")}`;case"invalid_key":return`Калиди нодуруст дар ${Y.origin}`;case"invalid_union":if(Y.options&&Array.isArray(Y.options)&&Y.options.length>0)return`Қимати нодурусти дискриминатор: ${Y.options.map((U)=>`'${U}'`).join(" | ")} интизор мерафт`;return"Вуруди нодуруст";case"invalid_element":return`Қимати нодуруст дар ${Y.origin}`;default:return"Вуруди нодуруст"}}};var w_=S(()=>{e()});function UH(){return{localeError:L7D()}}var L7D=()=>{let D={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"},map:{unit:"รายการ",verb:"ควรมี"}};function $(Y){return D[Y]??null}let J={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",mac:"ที่อยู่ MAC",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",credit_card:"หมายเลขบัตรเครดิต",currency_code:"รหัสสกุลเงิน",iban:"IBAN",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"},X={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${Y.expected} แต่ได้รับ ${F}`;return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${Q} แต่ได้รับ ${F}`}case"invalid_value":if(Y.values.length===1)return`ค่าไม่ถูกต้อง: ควรเป็น ${m(Y.values[0])}`;return`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"ไม่เกิน":"น้อยกว่า",U=$(Y.origin);if(U)return`เกินกำหนด: ${Y.origin??"ค่า"} ควรมี${Q} ${Y.maximum.toString()} ${U.unit??"รายการ"}`;return`เกินกำหนด: ${Y.origin??"ค่า"} ควรมี${Q} ${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?"อย่างน้อย":"มากกว่า",U=$(Y.origin);if(U)return`น้อยกว่ากำหนด: ${Y.origin} ควรมี${Q} ${Y.minimum.toString()} ${U.unit}`;return`น้อยกว่ากำหนด: ${Y.origin} ควรมี${Q} ${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${Q.prefix}"`;if(Q.format==="ends_with")return`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${Q.suffix}"`;if(Q.format==="includes")return`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${Q.includes}" อยู่ในข้อความ`;if(Q.format==="regex")return`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${Q.pattern}`;return`รูปแบบไม่ถูกต้อง: ${J[Q.format]??Y.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${Y.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${b(Y.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${Y.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${Y.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};var j_=S(()=>{e()});function FH(){return{localeError:R7D()}}var R7D=()=>{let D={string:{unit:"simwol",verb:"bolmaly"},file:{unit:"baýt",verb:"bolmaly"},array:{unit:"elementler",verb:"bolmaly"},set:{unit:"elementler",verb:"bolmaly"},map:{unit:"elementler",verb:"bolmaly"}};function $(Y){return D[Y]??null}let J={regex:"giriş",email:"e-poçta salgysy",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sene we wagt",date:"ISO sene",time:"ISO wagt",duration:"ISO wagt aralygy",ipv4:"IPv4 salgysy",ipv6:"IPv6 salgysy",mac:"MAC salgysy",cidrv4:"IPv4 aralygy",cidrv6:"IPv6 aralygy",base64:"base64 bilen şifrlenen setir",base64url:"base64url bilen şifrlenen setir",json_string:"JSON setiri",e164:"E.164 nomeri",credit_card:"kredit kartynyň nomeri",currency_code:"walýuta kody",iban:"IBAN",jwt:"JWT",template_literal:"şablon"},X={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;return`Nädogry baha: garaşylan ${Q} ýerine ${F} alyndy`}case"invalid_value":if(Y.values.length===1)return`Nädogry baha: ${m(Y.values[0])} bolmaly`;return`Nädogry saýlaw: aşakdakylardan biri bolmaly: ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Has uly: garaşylýan ${Y.origin??"baha"} ${Q} ${Y.maximum.toString()} ${U.unit??"element"}`;return`Has uly: garaşylýan ${Y.origin??"baha"} ${Q} ${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Has kiçi: garaşylýan ${Y.origin} ${Q} ${Y.minimum.toString()} ${U.unit}`;return`Has kiçi: garaşylýan ${Y.origin} ${Q} ${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Nädogry setir: "${Q.prefix}" bilen başlamaly`;if(Q.format==="ends_with")return`Nädogry setir: "${Q.suffix}" bilen gutarmaly`;if(Q.format==="includes")return`Nädogry setir: "${Q.includes}" saklamaly`;if(Q.format==="regex")return`Nädogry setir: ${Q.pattern} nusga laýyk bolmaly`;return`Nädogry ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Nädogry san: ${Y.divisor} bilen galyndysyz bölünmeli`;case"unrecognized_keys":return`Tanalmaýan açar${Y.keys.length>1?"lar":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`${Y.origin} içinde nädogry açar`;case"invalid_union":return"Nädogry baha";case"invalid_element":return`${Y.origin} içinde nädogry baha`;default:return"Nädogry baha"}}};var L_=S(()=>{e()});function WH(){return{localeError:M7D()}}var M7D=()=>{let D={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"},map:{unit:"öğe",verb:"olmalı"}};function $(Y){return D[Y]??null}let J={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",mac:"MAC adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",credit_card:"kredi kartı numarası",currency_code:"para birimi kodu",iban:"IBAN",jwt:"JWT",template_literal:"Şablon dizesi"},X={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Geçersiz değer: beklenen instanceof ${Y.expected}, alınan ${F}`;return`Geçersiz değer: beklenen ${Q}, alınan ${F}`}case"invalid_value":if(Y.values.length===1)return`Geçersiz değer: beklenen ${m(Y.values[0])}`;return`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Çok büyük: beklenen ${Y.origin??"değer"} ${Q}${Y.maximum.toString()} ${U.unit??"öğe"}`;return`Çok büyük: beklenen ${Y.origin??"değer"} ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Çok küçük: beklenen ${Y.origin} ${Q}${Y.minimum.toString()} ${U.unit}`;return`Çok küçük: beklenen ${Y.origin} ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Geçersiz metin: "${Q.prefix}" ile başlamalı`;if(Q.format==="ends_with")return`Geçersiz metin: "${Q.suffix}" ile bitmeli`;if(Q.format==="includes")return`Geçersiz metin: "${Q.includes}" içermeli`;if(Q.format==="regex")return`Geçersiz metin: ${Q.pattern} desenine uymalı`;return`Geçersiz ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Geçersiz sayı: ${Y.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${Y.keys.length>1?"lar":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`${Y.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${Y.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};var R_=S(()=>{e()});function A7(){return{localeError:A7D()}}var A7D=()=>{let D={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"},map:{unit:"елементів",verb:"матиме"}};function $(Y){return D[Y]??null}let J={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",mac:"адреса MAC",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",credit_card:"номер кредитної картки",currency_code:"код валюти",iban:"IBAN",jwt:"JWT",template_literal:"вхідні дані"},X={nan:"NaN",number:"число",array:"масив"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Неправильні вхідні дані: очікується instanceof ${Y.expected}, отримано ${F}`;return`Неправильні вхідні дані: очікується ${Q}, отримано ${F}`}case"invalid_value":if(Y.values.length===1)return`Неправильні вхідні дані: очікується ${m(Y.values[0])}`;return`Неправильна опція: очікується одне з ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Занадто велике: очікується, що ${Y.origin??"значення"} ${U.verb} ${Q}${Y.maximum.toString()} ${U.unit??"елементів"}`;return`Занадто велике: очікується, що ${Y.origin??"значення"} буде ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Занадто мале: очікується, що ${Y.origin} ${U.verb} ${Q}${Y.minimum.toString()} ${U.unit}`;return`Занадто мале: очікується, що ${Y.origin} буде ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Неправильний рядок: повинен починатися з "${Q.prefix}"`;if(Q.format==="ends_with")return`Неправильний рядок: повинен закінчуватися на "${Q.suffix}"`;if(Q.format==="includes")return`Неправильний рядок: повинен містити "${Q.includes}"`;if(Q.format==="regex")return`Неправильний рядок: повинен відповідати шаблону ${Q.pattern}`;return`Неправильний ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${Y.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${Y.keys.length>1?"і":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${Y.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${Y.origin}`;default:return"Неправильні вхідні дані"}}};var KH=S(()=>{e()});function qH(){return A7()}var M_=S(()=>{KH()});function GH(){return{localeError:v7D()}}var v7D=()=>{let D={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"},map:{unit:"آئٹمز",verb:"ہونا"}};function $(Y){return D[Y]??null}let J={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",mac:"ایم اے سی ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",credit_card:"کریڈٹ کارڈ نمبر",currency_code:"کرنسی کوڈ",iban:"IBAN",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"},X={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`غلط ان پٹ: instanceof ${Y.expected} متوقع تھا، ${F} موصول ہوا`;return`غلط ان پٹ: ${Q} متوقع تھا، ${F} موصول ہوا`}case"invalid_value":if(Y.values.length===1)return`غلط ان پٹ: ${m(Y.values[0])} متوقع تھا`;return`غلط آپشن: ${b(Y.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`بہت بڑا: ${Y.origin??"ویلیو"} کے ${Q}${Y.maximum.toString()} ${U.unit??"عناصر"} ہونے متوقع تھے`;return`بہت بڑا: ${Y.origin??"ویلیو"} کا ${Q}${Y.maximum.toString()} ہونا متوقع تھا`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`بہت چھوٹا: ${Y.origin} کے ${Q}${Y.minimum.toString()} ${U.unit} ہونے متوقع تھے`;return`بہت چھوٹا: ${Y.origin} کا ${Q}${Y.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`غلط سٹرنگ: "${Q.prefix}" سے شروع ہونا چاہیے`;if(Q.format==="ends_with")return`غلط سٹرنگ: "${Q.suffix}" پر ختم ہونا چاہیے`;if(Q.format==="includes")return`غلط سٹرنگ: "${Q.includes}" شامل ہونا چاہیے`;if(Q.format==="regex")return`غلط سٹرنگ: پیٹرن ${Q.pattern} سے میچ ہونا چاہیے`;return`غلط ${J[Q.format]??Y.format}`}case"not_multiple_of":return`غلط نمبر: ${Y.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${Y.keys.length>1?"ز":""}: ${b(Y.keys,"، ")}`;case"invalid_key":return`${Y.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${Y.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};var A_=S(()=>{e()});function ZH(){return{localeError:E7D()}}var E7D=()=>{let D={string:{unit:"belgi",verb:"bo‘lishi kerak"},file:{unit:"bayt",verb:"bo‘lishi kerak"},array:{unit:"element",verb:"bo‘lishi kerak"},set:{unit:"element",verb:"bo‘lishi kerak"},map:{unit:"yozuv",verb:"bo‘lishi kerak"}};function $(Y){return D[Y]??null}let J={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",credit_card:"kredit karta raqami",currency_code:"valyuta kodi",iban:"IBAN",jwt:"JWT",template_literal:"kirish"},X={nan:"NaN",number:"raqam",array:"massiv"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Noto‘g‘ri kirish: kutilgan instanceof ${Y.expected}, qabul qilingan ${F}`;return`Noto‘g‘ri kirish: kutilgan ${Q}, qabul qilingan ${F}`}case"invalid_value":if(Y.values.length===1)return`Noto‘g‘ri kirish: kutilgan ${m(Y.values[0])}`;return`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Juda katta: kutilgan ${Y.origin??"qiymat"} ${Q}${Y.maximum.toString()} ${U.unit} ${U.verb}`;return`Juda katta: kutilgan ${Y.origin??"qiymat"} ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Juda kichik: kutilgan ${Y.origin} ${Q}${Y.minimum.toString()} ${U.unit} ${U.verb}`;return`Juda kichik: kutilgan ${Y.origin} ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Noto‘g‘ri satr: "${Q.prefix}" bilan boshlanishi kerak`;if(Q.format==="ends_with")return`Noto‘g‘ri satr: "${Q.suffix}" bilan tugashi kerak`;if(Q.format==="includes")return`Noto‘g‘ri satr: "${Q.includes}" ni o‘z ichiga olishi kerak`;if(Q.format==="regex")return`Noto‘g‘ri satr: ${Q.pattern} shabloniga mos kelishi kerak`;return`Noto‘g‘ri ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Noto‘g‘ri raqam: ${Y.divisor} ning karralisi bo‘lishi kerak`;case"unrecognized_keys":return`Noma’lum kalit${Y.keys.length>1?"lar":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`${Y.origin} dagi kalit noto‘g‘ri`;case"invalid_union":return"Noto‘g‘ri kirish";case"invalid_element":return`${Y.origin} da noto‘g‘ri qiymat`;default:return"Noto‘g‘ri kirish"}}};var v_=S(()=>{e()});function zH(){return{localeError:T7D()}}var T7D=()=>{let D={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"},map:{unit:"phần tử",verb:"có"}};function $(Y){return D[Y]??null}let J={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",mac:"địa chỉ MAC",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",credit_card:"số thẻ tín dụng",currency_code:"mã tiền tệ",iban:"IBAN",jwt:"JWT",template_literal:"đầu vào"},X={nan:"NaN",number:"số",array:"mảng"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Đầu vào không hợp lệ: mong đợi instanceof ${Y.expected}, nhận được ${F}`;return`Đầu vào không hợp lệ: mong đợi ${Q}, nhận được ${F}`}case"invalid_value":if(Y.values.length===1)return`Đầu vào không hợp lệ: mong đợi ${m(Y.values[0])}`;return`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Quá lớn: mong đợi ${Y.origin??"giá trị"} ${U.verb} ${Q}${Y.maximum.toString()} ${U.unit??"phần tử"}`;return`Quá lớn: mong đợi ${Y.origin??"giá trị"} ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Quá nhỏ: mong đợi ${Y.origin} ${U.verb} ${Q}${Y.minimum.toString()} ${U.unit}`;return`Quá nhỏ: mong đợi ${Y.origin} ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Chuỗi không hợp lệ: phải bắt đầu bằng "${Q.prefix}"`;if(Q.format==="ends_with")return`Chuỗi không hợp lệ: phải kết thúc bằng "${Q.suffix}"`;if(Q.format==="includes")return`Chuỗi không hợp lệ: phải bao gồm "${Q.includes}"`;if(Q.format==="regex")return`Chuỗi không hợp lệ: phải khớp với mẫu ${Q.pattern}`;return`${J[Q.format]??Y.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${Y.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${b(Y.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${Y.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${Y.origin}`;default:return"Đầu vào không hợp lệ"}}};var E_=S(()=>{e()});function HH(){return{localeError:P7D()}}var P7D=()=>{let D={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"},map:{unit:"项",verb:"包含"}};function $(Y){return D[Y]??null}let J={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",mac:"MAC地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",credit_card:"信用卡号",currency_code:"货币代码",iban:"IBAN",jwt:"JWT",template_literal:"输入"},X={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`无效输入:期望 instanceof ${Y.expected},实际接收 ${F}`;return`无效输入:期望 ${Q},实际接收 ${F}`}case"invalid_value":if(Y.values.length===1)return`无效输入:期望 ${m(Y.values[0])}`;return`无效选项:期望以下之一 ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`数值过大:期望 ${Y.origin??"值"} ${Q}${Y.maximum.toString()} ${U.unit??"个元素"}`;return`数值过大:期望 ${Y.origin??"值"} ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`数值过小:期望 ${Y.origin} ${Q}${Y.minimum.toString()} ${U.unit}`;return`数值过小:期望 ${Y.origin} ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`无效字符串:必须以 "${Q.prefix}" 开头`;if(Q.format==="ends_with")return`无效字符串:必须以 "${Q.suffix}" 结尾`;if(Q.format==="includes")return`无效字符串:必须包含 "${Q.includes}"`;if(Q.format==="regex")return`无效字符串:必须满足正则表达式 ${Q.pattern}`;return`无效${J[Q.format]??Y.format}`}case"not_multiple_of":return`无效数字:必须是 ${Y.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${b(Y.keys,", ")}`;case"invalid_key":return`${Y.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${Y.origin} 中包含无效值(value)`;default:return"无效输入"}}};var T_=S(()=>{e()});function IH(){return{localeError:b7D()}}var b7D=()=>{let D={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"},map:{unit:"項目",verb:"擁有"}};function $(Y){return D[Y]??null}let J={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",mac:"MAC 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",credit_card:"信用卡號",currency_code:"貨幣代碼",iban:"IBAN",jwt:"JWT",template_literal:"輸入"},X={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`無效的輸入值:預期為 instanceof ${Y.expected},但收到 ${F}`;return`無效的輸入值:預期為 ${Q},但收到 ${F}`}case"invalid_value":if(Y.values.length===1)return`無效的輸入值:預期為 ${m(Y.values[0])}`;return`無效的選項:預期為以下其中之一 ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`數值過大:預期 ${Y.origin??"值"} 應為 ${Q}${Y.maximum.toString()} ${U.unit??"個元素"}`;return`數值過大:預期 ${Y.origin??"值"} 應為 ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`數值過小:預期 ${Y.origin} 應為 ${Q}${Y.minimum.toString()} ${U.unit}`;return`數值過小:預期 ${Y.origin} 應為 ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`無效的字串:必須以 "${Q.prefix}" 開頭`;if(Q.format==="ends_with")return`無效的字串:必須以 "${Q.suffix}" 結尾`;if(Q.format==="includes")return`無效的字串:必須包含 "${Q.includes}"`;if(Q.format==="regex")return`無效的字串:必須符合格式 ${Q.pattern}`;return`無效的 ${J[Q.format]??Y.format}`}case"not_multiple_of":return`無效的數字:必須為 ${Y.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${Y.keys.length>1?"們":""}:${b(Y.keys,"、")}`;case"invalid_key":return`${Y.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${Y.origin} 中有無效的值`;default:return"無效的輸入值"}}};var P_=S(()=>{e()});function BH(){return{localeError:S7D()}}var S7D=()=>{let D={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"},map:{unit:"nkan",verb:"ní"}};function $(Y){return D[Y]??null}let J={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",mac:"àdírẹ́sì MAC",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",credit_card:"nọmba kaadi gbese",currency_code:"koodu owó",iban:"IBAN",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"},X={nan:"NaN",number:"nọ́mbà",array:"akopọ"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${Y.expected}, àmọ̀ a rí ${F}`;return`Ìbáwọlé aṣìṣe: a ní láti fi ${Q}, àmọ̀ a rí ${F}`}case"invalid_value":if(Y.values.length===1)return`Ìbáwọlé aṣìṣe: a ní láti fi ${m(Y.values[0])}`;return`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Tó pọ̀ jù: a ní láti jẹ́ pé ${Y.origin??"iye"} ${U.verb} ${Q}${Y.maximum} ${U.unit}`;return`Tó pọ̀ jù: a ní láti jẹ́ ${Q}${Y.maximum}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Kéré ju: a ní láti jẹ́ pé ${Y.origin} ${U.verb} ${Q}${Y.minimum} ${U.unit}`;return`Kéré ju: a ní láti jẹ́ ${Q}${Y.minimum}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${Q.prefix}"`;if(Q.format==="ends_with")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${Q.suffix}"`;if(Q.format==="includes")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${Q.includes}"`;if(Q.format==="regex")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${Q.pattern}`;return`Aṣìṣe: ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${Y.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${b(Y.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${Y.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${Y.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};var b_=S(()=>{e()});var v7={};y0(v7,{zhTW:()=>IH,zhCN:()=>HH,yo:()=>BH,vi:()=>zH,uz:()=>ZH,ur:()=>GH,uk:()=>A7,ua:()=>qH,tr:()=>WH,tk:()=>FH,th:()=>UH,tg:()=>QH,ta:()=>YH,sv:()=>XH,sl:()=>JH,sk:()=>$H,ru:()=>DH,ro:()=>ez,ptBR:()=>sz,pt:()=>az,ps:()=>tz,pl:()=>oz,ota:()=>rz,no:()=>nz,nn:()=>pz,nl:()=>cz,ne:()=>iz,ms:()=>dz,mk:()=>lz,lt:()=>mz,ko:()=>hz,kn:()=>yz,km:()=>R7,kh:()=>fz,ka:()=>gz,ja:()=>uz,it:()=>_z,is:()=>kz,id:()=>Cz,hy:()=>Sz,hu:()=>bz,hr:()=>Pz,hi:()=>Tz,he:()=>Ez,gu:()=>vz,frCA:()=>Az,fr:()=>Mz,fi:()=>Rz,fa:()=>Lz,es:()=>jz,eo:()=>wz,en:()=>L7,el:()=>Nz,de:()=>Oz,da:()=>Bz,cs:()=>Iz,ckb:()=>Hz,ca:()=>zz,bn:()=>Zz,bg:()=>Gz,be:()=>qz,az:()=>Kz,ar:()=>Wz});var OH=S(()=>{jk();Lk();Mk();Ak();vk();Ek();Tk();Pk();bk();Sk();Ck();Vz();kk();_k();uk();gk();xk();fk();yk();hk();mk();lk();dk();ck();pk();nk();rk();tk();ok();ak();xz();sk();ek();$_();J_();X_();Y_();Q_();U_();F_();W_();K_();q_();G_();Z_();z_();I_();B_();O_();N_();V_();w_();j_();L_();R_();M_();KH();A_();v_();E_();T_();P_();b_()});class wH{constructor(){this._map=new WeakMap,this._idmap=new Map}add(D,...$){let J=$[0];if(this._map.set(D,J),J&&typeof J==="object"&&"id"in J)this._idmap.set(J.id,D);return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(D){let $=this._map.get(D);if($&&typeof $==="object"&&"id"in $)this._idmap.delete($.id);return this._map.delete(D),this}get(D){let $=D._zod.parent;if($){let J={...this.get($)??{}};delete J.id;let X={...J,...this._map.get(D)};return Object.keys(X).length?X:void 0}return this._map.get(D)}has(D){return this._map.has(D)}}function AY(){return new wH}var S_,NH,VH,_0;var E7=S(()=>{NH=Symbol("ZodOutput"),VH=Symbol("ZodInput");(S_=globalThis).__zod_globalRegistry??(S_.__zod_globalRegistry=AY());_0=globalThis.__zod_globalRegistry});function k7D(D,$){try{return EY(D,{assertOnly:!0})}catch{return $}}function MH(D,$){try{let J=EY(D),X=vY(D,J);return X._zod.bag.validator=k7D(D,J),X}catch(J){if($?.strict)throw J;return D}}function vY(D,$){if(RY(D))throw new ED("a schema whose subtree contains a reference cycle");let J=fD(D),X=D._zod.run,Y=X.__originalRun??X,Q=(U,F)=>{if(F?.async||F?.direction==="backward"||F?.skipChecks||F?.[C_])return Y(U,F);if(F&&MY(F,U.value))return Y(U,F);let W=$(U.value);if(W!==X$)return U.value=W,U;if(F)F[C_]=!0;return Y(U,F)};if(Q.__originalRun=Y,J._zod.bag.fallbackRun=Y,J._zod.bag.validator=$,J._zod.run=Q,!X.__originalRun)_7D(J,D,$);return J}function _7D(D,$,J){let X=D,Y=$;if(typeof Y.safeParse==="function"){let Q=Y.safeParse;X.safeParse=(U,F)=>{let W=J(U);if(W!==X$)return{success:!0,data:W};return Q(U,F)}}if(typeof Y.parse==="function"){let Q=Y.parse;X.parse=(U,F)=>{let W=J(U);if(W!==X$)return W;return Q(U,F)}}}function EY(D,$){let J=!0;try{J=RY(D)}catch{}if(J)throw new ED("a schema whose subtree contains a reference cycle");let X={constants:new Map,constantCounter:0,varCounter:0,definite:!0},Y=new b2(["input"]),Q=J0(Y,X,D,"input",!$?.assertOnly);Y.write(Q===null?"return true;":`return ${Q};`);let U=["INVALID",...X.constants.keys()],F=[X$,...X.constants.values()],W=Y.content.join(`
`),K=$?.debug?U.length>0?`// Constants: ${U.join(", ")}
${W}`:W:"",q=Function,G=`return (input) => {
${W}
}`,Z;try{Z=new q(...U,G)(...F)}catch(H){throw new ED(`this schema (generated code failed to evaluate: ${H.message})`)}if($?.debug)Z.code=K;return Z.definite=X.definite,Z}function ZD(D,$){for(let[X,Y]of D.constants)if(Y===$)return X;let J=`c${D.constantCounter++}`;return D.constants.set(J,$),J}function g4(D,$){return D.definite=!1,ZD(D,$)}function KD(D){return`v${D.varCounter++}`}function u7D(D,$){let J=D._zod.run({value:$,issues:[]},{});if(J&&typeof J.then==="function")return X$;let X=J;return X.issues.length===0?X.value:X$}function i0(D,$,J,X,Y=!0){let Q=D.content.length,U=$.constants.size,F=$.constantCounter,W=$.varCounter;try{return J0(D,$,J,X,Y)}catch(K){if(!(K instanceof ED)||!K.islandable)throw K;if(D.content.length=Q,$.constants.size>U){let q=Array.from($.constants.keys()).slice(U);for(let G of q)$.constants.delete(G)}return $.constantCounter=F,$.varCounter=W,g7D(D,$,J,X)}}function g7D(D,$,J,X){$.definite=!1;let Y=ZD($,J),Q=ZD($,u7D),U=KD($);return D.write(`const ${U} = ${Q}(${Y}, ${X});`),D.write(`if (${U} === INVALID) return INVALID;`),U}function f7D(D,$,J,X){let Y=J._zod.def.checks;if(!Y||Y.length===0)return X;let Q=X;for(let U of Y){let F=U._zod.def;if(F.when&&!x7D.has(F.check))throw new ED('check with a custom "when" condition');switch(F.check){case"greater_than":y7D(D,$,F,Q);break;case"less_than":h7D(D,$,F,Q);break;case"multiple_of":m7D(D,$,F,Q);break;case"number_format":f_(D,F,Q);break;case"min_length":{let W=_4(F.minimum,"min_length"),K=jH(D,$,Q,`${Q}.length >= ${W} && ${Q}.length < ${F.minimum*2}`);D.write(`if (${K} < ${W}) return INVALID;`);break}case"max_length":{let W=_4(F.maximum,"max_length"),K=jH(D,$,Q,`${Q}.length > ${W}`);D.write(`if (${K} > ${W}) return INVALID;`);break}case"length_equals":{let W=_4(F.length,"length_equals"),K=jH(D,$,Q,`${Q}.length >= ${W} && ${Q}.length <= ${F.length*2}`);D.write(`if (${K} !== ${W}) return INVALID;`);break}case"min_size":D.write(`if (${Q}.size < ${_4(F.minimum,"min_size")}) return INVALID;`);break;case"max_size":D.write(`if (${Q}.size > ${_4(F.maximum,"max_size")}) return INVALID;`);break;case"size_equals":D.write(`if (${Q}.size !== ${_4(F.size,"size_equals")}) return INVALID;`);break;case"string_format":Q=y_(D,$,F,Q);break;case"custom":Q=n7D(D,$,U,Q);break;case"bigint_format":l7D(D,F,Q);break;case"mime_type":d7D(D,$,F,Q);break;case"property":c7D(D,$,F,Q);break;case"properties":i7D(D,$,F,Q);break;case"overwrite":{let W=KD($);p7D(D,$,U,Q,W),Q=W;break}default:throw new ED(`check type ${F.check}`)}}return Q}function jH(D,$,J,X){let Y=ZD($,P4),Q=KD($);return D.write(`const ${Q} = typeof ${J} === "string" && ${X} ? ${Y}(${J}) : ${J}.length;`),Q}function _4(D,$){if(typeof D!=="number"||!Number.isFinite(D))throw new ED(`${$} bound of type ${typeof D}`);return`${D}`}function x_(D,$){if(typeof $==="bigint")return`${$}n`;if(typeof $==="number"){if(Number.isNaN($))throw new ED("comparison check with NaN bound");return`${$}`}if($ instanceof Date){if(Number.isNaN($.getTime()))throw new ED("comparison check with Invalid Date bound");return ZD(D,$)}throw new ED(`comparison check bound of type ${typeof $}`)}function y7D(D,$,J,X){let Y=J.inclusive?"<":"<=";D.write(`if (${X} ${Y} ${x_($,J.value)}) return INVALID;`)}function h7D(D,$,J,X){let Y=J.inclusive?">":">=";D.write(`if (${X} ${Y} ${x_($,J.value)}) return INVALID;`)}function m7D(D,$,J,X){if(typeof J.value==="bigint"){if(J.value===BigInt(0))throw new ED("multiple_of check with a zero divisor");D.write(`if (${X} % ${J.value}n !== 0n) return INVALID;`)}else{let Y=ZD($,r5);D.write(`if (${Y}(${X}, ${_4(J.value,"multiple_of")}) !== 0) return INVALID;`)}}function f_(D,$,J){let X=$.format;switch(X){case"safeint":D.write(`if (!Number.isSafeInteger(${J})) return INVALID;`);break;case"int32":D.write(`if (!Number.isInteger(${J}) || ${J} < -2147483648 || ${J} > 2147483647) return INVALID;`);break;case"uint32":D.write(`if (!Number.isInteger(${J}) || ${J} < 0 || ${J} > 4294967295) return INVALID;`);break;case"float32":D.write(`if (!Number.isFinite(${J}) || ${J} < -3.4028234663852886e38 || ${J} > 3.4028234663852886e38) return INVALID;`);break;case"float64":D.write(`if (!Number.isFinite(${J})) return INVALID;`);break;default:throw new ED(`number format ${X}`)}}function l7D(D,$,J){let X=$.format;if(!X)return;switch(X){case"int64":D.write(`if (${J} < -9223372036854775808n || ${J} > 9223372036854775807n) return INVALID;`);break;case"uint64":D.write(`if (${J} < 0n || ${J} > 18446744073709551615n) return INVALID;`);break;default:throw new ED(`bigint format ${X}`)}}function d7D(D,$,J,X){let Y=J.mime;if(Y&&Y.length>0){let Q=ZD($,new Set(Y));D.write(`if (!${Q}.has(${X}.type)) return INVALID;`)}}function i7D(D,$,J,X){if(J.when)throw new ED('check with a custom "when" condition');D.write(`if (${X} == null) return INVALID;`);let Y=J.shape;for(let Q of Reflect.ownKeys(Y)){let U=typeof Q==="symbol"?ZD($,Q):$$(Q),F=KD($);D.write(`const ${F} = ${X}[${U}];`),i0(D,$,Y[Q],F,!1)}}function c7D(D,$,J,X){let Y=`${X}[${JSON.stringify(J.property)}]`;J0(D,$,J.schema,Y)}function p7D(D,$,J,X,Y){let Q=J._zod.def.tx;if(!Q)throw new ED("overwrite check without a transform function");if(x4(Q))throw new w6("z.compile: async overwrite transforms are not supported");let U=ZD($,Q);D.write(`const ${Y} = ${U}(${X});`)}function LH(){throw new v$}function AH(D){this.issues.push(D)}function n7D(D,$,J,X){let Y=J._zod.def;if(Y.fn){if(x4(Y.fn))throw new w6("z.compile: async .refine() predicates are not supported");let Q=g4($,Y.fn),U=ZD($,LH),F=KD($);return D.write(`const ${F} = ${Q}(${X});`),D.write(`if (${F} instanceof Promise) ${U}();`),D.write(`if (!${F}) return INVALID;`),X}if(J._zod.check){if(x4(J._zod.check))throw new w6("z.compile: async .superRefine() / check functions are not supported");let Q=J._zod.check,F=g4($,(K)=>{let q={value:K,issues:[],addIssue:AH};if(Q(q)instanceof Promise)LH();return q.issues.length===0?q.value:X$}),W=KD($);return D.write(`const ${W} = ${F}(${X});`),D.write(`if (${W} === INVALID) return INVALID;`),W}throw new ED("custom check without a predicate or check function")}function y_(D,$,J,X,Y=!0){let Q=J.format;if(Q==="base64"){let K=ZD($,z7);return D.write(`if (!${K}(${X})) return INVALID;`),X}if(Q==="base64url"){let K=ZD($,GY);return D.write(`if (!${K}(${X})) return INVALID;`),X}if(Q==="jwt"){let K=ZD($,HY),q=ZD($,J.alg??null);return D.write(`if (!${K}(${X}, ${q})) return INVALID;`),X}if(Q==="ipv6"){let K=ZD($,Z7);return D.write(`if (!${K}(${X})) return INVALID;`),X}if(Q==="cidrv6"){let K=ZD($,KY);return D.write(`if (!${K}(${X})) return INVALID;`),X}if(Q==="credit_card"){let K=ZD($,ZY);return D.write(`if (!${K}(${X})) return INVALID;`),X}if(Q==="iban"){let K=ZD($,zY);return D.write(`if (!${K}(${X})) return INVALID;`),X}let U=J;if(Q==="url"||Q==="httpurl"||U.normalize||U.hostname!==void 0||U.protocol!==void 0){let K=ZD($,UY),q=ZD($,J),G=KD($),Z=KD($);if(D.write(`const ${G} = ${X}.trim();`),D.write(`const ${Z} = ${K}(${G}, ${q});`),D.write(`if (typeof ${Z} === "number") return INVALID;`),U.hostname!==void 0){let I=ZD($,FY);D.write(`if (!${I}(${Z}, ${q}.hostname)) return INVALID;`)}if(U.protocol!==void 0){let I=ZD($,WY);D.write(`if (!${I}(${Z}, ${q}.protocol)) return INVALID;`)}if(!Y)return null;let H=KD($),z=U.normalize?`${Z}.href`:`${ZD($,G7)}(${G})`;return D.write(`const ${H} = ${z};`),H}let F=J.fn;if(F){if(x4(F))throw new ED(`async string format ${Q}`);let K=ZD($,F);return D.write(`if (!${K}(${X})) return INVALID;`),X}if(r7D.has(Q)&&J.pattern){let K=ZD($,J.pattern);return D.write(`${K}.lastIndex = 0;`),D.write(`if (!${K}.test(${X})) return INVALID;`),X}let W=J.format;switch(W){case"regex":throw new ED("regex format without a pattern");case"lowercase":D.write(`if (${X} !== ${X}.toLowerCase()) return INVALID;`);break;case"uppercase":D.write(`if (${X} !== ${X}.toUpperCase()) return INVALID;`);break;case"includes":D.write(`if (!${X}.includes(${$$(J.includes)})) return INVALID;`);break;case"starts_with":{let K=J.prefix;D.write(`if (${X}.slice(0, ${K.length}) !== ${$$(K)}) return INVALID;`);break}case"ends_with":{let K=J.suffix;D.write(`if (${X}.slice(-${K.length}) !== ${$$(K)}) return INVALID;`);break}default:throw new ED(`string format ${W}`)}return X}function J0(D,$,J,X,Y=!0){let Q=J._zod.def,U=Q.type;if(Q.coerce)throw new ED(`coercion (z.coerce.${U}())`);let F=Y||!!Q.checks?.length,W;switch(U){case"string":W=t7D(D,$,J,X,F);break;case"number":W=o7D(D,J,X);break;case"boolean":W=a7D(D,X);break;case"bigint":W=s7D(D,J,X);break;case"symbol":W=e7D(D,X);break;case"undefined":W=D3D(D,X);break;case"null":W=$3D(D,X);break;case"any":case"unknown":W=X;break;case"never":D.write("return INVALID;"),W=X;break;case"void":W=J3D(D,X);break;case"nan":W=X3D(D,X);break;case"date":W=Y3D(D,X);break;case"object":W=Q3D(D,$,J,X,F);break;case"optional":W=U3D(D,$,J,X,F);break;case"nullable":W=K3D(D,$,J,X,F);break;case"array":W=q3D(D,$,J,X,F);break;case"literal":W=G3D(D,$,J,X);break;case"enum":W=Z3D(D,$,J,X);break;case"readonly":{let K=__(D,$,J,X),q=KD($);D.write(`const ${q} = Object.freeze(${K});`),W=q;break}case"success":__(D,$,J,X),W="true";break;case"default":case"prefault":W=z3D(D,$,J,X);break;case"nonoptional":W=H3D(D,$,J,X);break;case"tuple":W=I3D(D,$,J,X);break;case"union":W=B3D(D,$,J,X);break;case"intersection":W=V3D(D,$,J,X);break;case"record":W=w3D(D,$,J,X);break;case"map":W=L3D(D,$,J,X);break;case"set":W=R3D(D,$,J,X);break;case"file":W=M3D(D,X);break;case"template_literal":W=A3D(D,$,J,X);break;case"lazy":W=v3D(D,$,J,X);break;case"pipe":W=E3D(D,$,J,X);break;case"custom":W=T3D(D,$,J,X);break;case"transform":W=S3D(D,$,J,X);break;case"catch":W=b3D(D,$,J,X);break;default:throw new ED(`schema type ${U}`)}if(W===null)return null;return f7D(D,$,J,W)}function t7D(D,$,J,X,Y=!0){D.write(`if (typeof ${X} !== "string") return INVALID;`);let Q=J._zod.def;if(Q.format===void 0)return X;return y_(D,$,Q,X,Y)}function o7D(D,$,J){D.write(`if (typeof ${J} !== "number" || !Number.isFinite(${J})) return INVALID;`);let X=$._zod.def;if(X.check==="number_format"&&X.format)f_(D,{format:X.format},J);return J}function a7D(D,$){return D.write(`if (typeof ${$} !== "boolean") return INVALID;`),$}function s7D(D,$,J){D.write(`if (typeof ${J} !== "bigint") return INVALID;`);let X=$._zod.def;if(X.format)switch(X.format){case"int64":D.write(`if (${J} < -9223372036854775808n || ${J} > 9223372036854775807n) return INVALID;`);break;case"uint64":D.write(`if (${J} < 0n || ${J} > 18446744073709551615n) return INVALID;`);break}return J}function e7D(D,$){return D.write(`if (typeof ${$} !== "symbol") return INVALID;`),$}function D3D(D,$){return D.write(`if (${$} !== undefined) return INVALID;`),$}function $3D(D,$){return D.write(`if (${$} !== null) return INVALID;`),$}function J3D(D,$){return D.write(`if (${$} !== undefined) return INVALID;`),$}function X3D(D,$){return D.write(`if (typeof ${$} !== "number" || !Number.isNaN(${$})) return INVALID;`),$}function Y3D(D,$){return D.write(`if (!(${$} instanceof Date) || Number.isNaN(${$}.getTime())) return INVALID;`),$}function Q3D(D,$,J,X,Y=!0){let Q=J._zod.def;D.write(`if (typeof ${X} !== "object" || ${X} === null || Array.isArray(${X})) return INVALID;`);let U=Q.shape,F=Object.keys(U),W=Object.getOwnPropertySymbols(U),K=W.length?[...F,...W]:F,q=(V)=>typeof V==="symbol"?ZD($,V):$$(V),G=(V)=>typeof V==="symbol"?`[${q(V)}]`:$$(V),Z=U;if(F.includes("__proto__"))throw new ED('object shape key "__proto__"');let H=new Map;for(let V of K){let O=Z[V],j=q(V),v=KD($);if(D.write(`const ${v} = ${X}[${j}];`),O._zod.optin!==void 0){let A=KD($);if(D.write(`let ${A} = (() => {`),D.indented((C)=>{let u=i0(C,$,O,v);C.write(`return ${u};`)}),D.write("})();"),O._zod.optout==="optional")D.write(`if (${A} === INVALID) {`),D.indented((C)=>{C.write(`if (${j} in ${X}) return INVALID;`),C.write(`${A} = undefined;`)}),D.write("}");else D.write(`if (${A} === INVALID) return INVALID;`);H.set(V,A)}else{if(W3D(O))D.write(`if (!(${j} in ${X})) return INVALID;`);let A=i0(D,$,O,v,Y);if(A!==null)H.set(V,A)}}let z=Q.catchall,I="none";if(z){let V=z._zod.def.type;if(V==="never"){let O=F.map((j)=>`k !== ${$$(j)}`).join(" && ")||"true";D.write(`for (const k in ${X}) {`),D.indented((j)=>{j.write(`if (${O}) return INVALID;`)}),D.write("}")}else if((V==="unknown"||V==="any")&&!z._zod.def.checks?.length)I="passthrough";else I="schema"}let B=KD($),N=K.some((V)=>k_(Z[V])||RH(Z[V]));if(!Y){if(I==="schema"){let V=F.length>0?ZD($,new Set(F)):null;D.write(`for (const k in ${X}) {`),D.indented((O)=>{if(O.write('if (k === "__proto__") continue;'),V)O.write(`if (${V}.has(k)) continue;`);let j=KD($);O.write(`const ${j} = ${X}[k];`),i0(O,$,z,j,!1)}),D.write("}")}return null}if(!N){let V=K.map((O)=>`${G(O)}: ${H.get(O)}`).join(", ");D.write(`const ${B} = { ${V} };`)}else{D.write(`const ${B} = {};`);for(let V of K){let O=q(V),j=H.get(V);if(RH(Z[V]))D.write(`if (${O} in ${X}) ${B}[${O}] = ${j};`);else if(k_(Z[V]))D.write(`if (${j} !== undefined || ${O} in ${X}) ${B}[${O}] = ${j};`);else D.write(`${B}[${O}] = ${j};`)}}if(I!=="none"){let V=F.length>0?ZD($,new Set(F)):null;D.write(`for (const k in ${X}) {`),D.indented((O)=>{if(O.write('if (k === "__proto__") continue;'),V)O.write(`if (${V}.has(k)) continue;`);if(I==="passthrough")O.write(`${B}[k] = ${X}[k];`);else{let j=KD($);O.write(`const ${j} = ${X}[k];`);let v=i0(O,$,z,j);O.write(`${B}[k] = ${v};`)}}),D.write("}")}return B}function U3D(D,$,J,X,Y=!0){let Q=J._zod.def;if(F3D(J))return J0(D,$,Q.innerType,X,Y);if(Q.innerType._zod.optin==="defaulted"){let F=KD($),W=KD($);return D.write(`let ${F};`),D.write(`if (${X} === undefined) {`),D.indented((K)=>{K.write(`const ${W} = (() => {`),K.indented((q)=>{let G=J0(q,$,Q.innerType,X);q.write(`return ${G};`)}),K.write("})();"),K.write(`if (${W} !== INVALID) ${F} = ${W};`)}),D.write("} else {"),D.indented((K)=>{let q=J0(K,$,Q.innerType,X);K.write(`${F} = ${q};`)}),D.write("}"),F}let U=Y?KD($):null;if(U)D.write(`let ${U};`);return D.write(`if (${X} !== undefined) {`),D.indented((F)=>{let W=J0(F,$,Q.innerType,X,Y);if(U&&W!==null)F.write(`${U} = ${W};`)}),D.write("}"),U}function F3D(D){return D._zod.traits?.has("$ZodExactOptional")===!0}function W3D(D){return D._zod.optin===void 0&&u4(D)}function u4(D){if(D._zod.def.coerce)return!0;let $=D._zod.def;switch($.type){case"any":case"unknown":case"undefined":case"void":case"default":case"prefault":case"transform":case"custom":case"lazy":return!0;case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"never":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":return!1;case"nonoptional":return $.innerType?u4($.innerType):!1;case"literal":return!!$.values?.includes(void 0);case"enum":return!!D._zod.values?.has(void 0);case"optional":case"nullable":case"readonly":case"success":return $.innerType?u4($.innerType):!0;case"catch":return!0;case"union":return $.options?$.options.some(u4):!0;case"intersection":if(!$.left||!$.right)return!0;return u4($.left)&&u4($.right);case"pipe":return $.in?u4($.in):!0;default:return!0}}function RH(D){return D._zod.optin==="optional"&&D._zod.optout==="optional"}function k_(D){return(D._zod.optin!=="defaulted"||D._zod.optout==="optional")&&u2(D)}function u2(D){let $=D._zod.def;switch($.type){case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":case"never":case"success":return!1;case"literal":return!!$.values?.includes(void 0);case"enum":return!!D._zod.values?.has(void 0);case"optional":return!0;case"nullable":case"readonly":case"nonoptional":return $.innerType?u2($.innerType):!0;case"union":return $.options?$.options.some(u2):!0;case"intersection":return!$.left||!$.right||u2($.left)||u2($.right);case"pipe":return $.out?u2($.out):!0;default:return!0}}function K3D(D,$,J,X,Y=!0){let Q=J._zod.def,U=Y?KD($):null;if(U)D.write(`let ${U} = null;`);return D.write(`if (${X} !== null) {`),D.indented((F)=>{let W=J0(F,$,Q.innerType,X,Y);if(U&&W!==null)F.write(`${U} = ${W};`)}),D.write("}"),U}function q3D(D,$,J,X,Y=!0){let Q=J._zod.def;D.write(`if (!Array.isArray(${X})) return INVALID;`);let U=Y?KD($):null,F=KD($),W=KD($);if(U)D.write(`const ${U} = new Array(${X}.length);`);return D.write(`for (let ${F} = 0; ${F} < ${X}.length; ${F}++) {`),D.indented((K)=>{K.write(`const ${W} = ${X}[${F}];`);let q=i0(K,$,Q.element,W,Y);if(U&&q!==null)K.write(`${U}[${F}] = ${q};`)}),D.write("}"),U}function G3D(D,$,J,X){let Q=J._zod.def.values;if(Q.length!==1){let F=ZD($,new Set(Q));return D.write(`if (!${F}.has(${X})) return INVALID;`),X}let U=Q[0];if(typeof U==="number"&&Number.isNaN(U)){let F=ZD($,new Set(Q));return D.write(`if (!${F}.has(${X})) return INVALID;`),X}if(typeof U==="string")D.write(`if (${X} !== ${$$(U)}) return INVALID;`);else if(typeof U==="number"||typeof U==="boolean")D.write(`if (${X} !== ${U}) return INVALID;`);else if(U===null)D.write(`if (${X} !== null) return INVALID;`);else if(U===void 0)D.write(`if (${X} !== undefined) return INVALID;`);else if(typeof U==="bigint")D.write(`if (${X} !== ${U}n) return INVALID;`);else throw new ED(`literal type ${typeof U}`);return X}function Z3D(D,$,J,X){let Y=J._zod.values;if(!Y)throw new ED("enum schema without enumerated values");let Q=ZD($,Y);return D.write(`if (!${Q}.has(${X})) return INVALID;`),X}function __(D,$,J,X){let Y=J._zod.def;return J0(D,$,Y.innerType,X)}function z3D(D,$,J,X){let Y=J._zod.def,U=Object.getOwnPropertyDescriptor(J._zod.def,"defaultValue")?()=>J._zod.def.defaultValue:void 0;if(J._zod.def.type==="prefault"){if(!U)return J0(D,$,Y.innerType,X);let W=ZD($,U),K=KD($);return D.write(`let ${K} = ${X};`),D.write(`if (${X} === undefined) ${K} = ${W}();`),J0(D,$,Y.innerType,K)}let F=KD($);if(U){let W=ZD($,U),K=ZD($,t5);D.write(`let ${F};`),D.write(`if (${X} === undefined) {`),D.indented((q)=>{q.write(`${F} = ${K}(${W}());`)}),D.write("} else {"),D.indented((q)=>{let G=J0(q,$,Y.innerType,X);q.write(`${F} = ${G} === undefined ? ${K}(${W}()) : ${G};`)}),D.write("}")}else D.write(`let ${F};`),D.write(`if (${X} !== undefined) {`),D.indented((W)=>{let K=J0(W,$,Y.innerType,X);W.write(`${F} = ${K};`)}),D.write("}");return F}function H3D(D,$,J,X){let Y=J._zod.def,Q=J0(D,$,Y.innerType,X),U=KD($);return D.write(`const ${U} = ${Q};`),D.write(`if (${U} === undefined) return INVALID;`),U}function I3D(D,$,J,X){let Y=J._zod.def,Q=Y.items,U=Y.rest;D.write(`if (!Array.isArray(${X})) return INVALID;`);let F=u_(Q,"optin"),W=u_(Q,"optout");if(U)D.write(`if (${X}.length < ${F}) return INVALID;`);else D.write(`if (${X}.length < ${F} || ${X}.length > ${Q.length}) return INVALID;`);let K=KD($);D.write(`const ${K} = [];`);for(let q=0;q<Q.length;q++){let G=Q[q];if(q>=W)D.write(`if (${K}.length === ${q}) {`),D.indented((Z)=>{Z.write(`if (${q} < ${X}.length) {`),Z.indented((H)=>{let z=KD($);H.write(`const ${z} = ${X}[${q}];`);let I=i0(H,$,G,z);H.write(`${K}[${q}] = ${I};`)}),Z.write("} else {"),Z.indented((H)=>{if(RH(G)){H.write(`${K}.length = ${q};`);return}let z=KD($),I=KD($);H.write(`const ${z} = undefined;`),H.write(`const ${I} = (() => {`),H.indented((B)=>{let N=i0(B,$,G,z);B.write(`return ${N};`)}),H.write("})();"),H.write(`if (${I} === INVALID || ${I} === undefined) ${K}.length = ${q};`),H.write(`else ${K}[${q}] = ${I};`)}),Z.write("}")}),D.write("}");else{let Z=KD($);D.write(`const ${Z} = ${X}[${q}];`);let H=i0(D,$,G,Z);D.write(`${K}[${q}] = ${H};`)}}if(U){let q=KD($),G=KD($);D.write(`for (let ${q} = ${Q.length}; ${q} < ${X}.length; ${q}++) {`),D.indented((Z)=>{Z.write(`const ${G} = ${X}[${q}];`);let H=i0(Z,$,U,G);Z.write(`${K}[${q}] = ${H};`)}),D.write("}")}return K}function u_(D,$){for(let J=D.length-1;J>=0;J--)if(!($==="optin"?D[J]._zod.optin!==void 0:D[J]._zod.optout==="optional"))return J+1;return 0}function B3D(D,$,J,X){let Y=J._zod.def,Q=Y.options;if(Y.discriminator)return O3D(D,$,Y,X);if(Y.inclusive===!1)throw new ED("exclusive unions (z.xor)");if(Q.length===0)return D.write("return INVALID;"),X;if(Q.length===1)return J0(D,$,Q[0],X);if(Q.every((W)=>W._zod.def.type==="literal"&&!W._zod.def.checks?.length)){let W=new Set(Q.flatMap((q)=>q._zod.def.values)),K=ZD($,W);return D.write(`if (!${K}.has(${X})) return INVALID;`),X}let F=KD($);D.write(`let ${F};`);for(let W=0;W<Q.length;W++){let K=Q[W];if(W===0)D.write(`${F} = (() => {`);else D.write(`if (${F} === INVALID) ${F} = (() => {`);D.indented((q)=>{let G=J0(q,$,K,X);q.write(`return ${G};`)}),D.write("})();")}return D.write(`if (${F} === INVALID) return INVALID;`),F}function O3D(D,$,J,X){if(J.unionFallback)throw new ED("discriminated union with unionFallback");if(J.options.length===0)return D.write("return INVALID;"),X;let Y=KD($),Q=KD($);D.write(`const ${Y} = ${X}?.[${$$(J.discriminator)}];`),D.write(`let ${Q};`);let U=!0,F=new Set;for(let W of J.options){let K=W._zod.propValues?.[J.discriminator];if(!K||K.size===0)throw new ED("discriminated union option without static discriminator values");for(let Z of K){if(F.has(Z))throw new ED(`duplicate discriminator value ${String(Z)}`);F.add(Z)}let q=Array.from(K,(Z)=>N3D($,Y,Z)),G=U?"if":"else if";D.write(`${G} (${q.join(" || ")}) {`),D.indented((Z)=>{let H=J0(Z,$,W,X);Z.write(`${Q} = ${H};`)}),D.write("}"),U=!1}return D.write("else { return INVALID; }"),Q}function N3D(D,$,J){if(typeof J==="string")return`${$} === ${$$(J)}`;if(typeof J==="number"){if(Number.isNaN(J))return`Number.isNaN(${$})`;return`${$} === ${J}`}if(typeof J==="boolean")return`${$} === ${J}`;if(J===null)return`${$} === null`;if(J===void 0)return`${$} === undefined`;if(typeof J==="bigint")return`${$} === ${J}n`;if(typeof J==="symbol"){let X=ZD(D,J);return`${$} === ${X}`}throw new ED(`literal discriminator value ${String(J)}`)}function V3D(D,$,J,X){let Y=J._zod.def;$.definite=!1;let Q=i0(D,$,Y.left,X),U=i0(D,$,Y.right,X),F=ZD($,S2),W=KD($);return D.write(`const ${W} = ${F}(${Q}, ${U});`),D.write(`if (!${W}.valid) return INVALID;`),`${W}.data`}function w3D(D,$,J,X){let Y=J._zod.def,Q=ZD($,i$);D.write(`if (!${Q}(${X})) return INVALID;`);let U=KD($),F=KD($),W=KD($);D.write(`const ${U} = {};`);let K=Y,q=K.partial?void 0:Y.keyType._zod.values;if(q){let H=[];for(let I of q){if(!(typeof I==="string"||typeof I==="number"||typeof I==="symbol"))throw new ED(`record key value ${String(I)}`);let B=typeof I==="number"?I.toString():I;if(B==="__proto__")throw new ED('record key "__proto__"');H.push(B);let N=ZD($,I),V=J0(D,$,Y.keyType,N),O=KD($);D.write(`const ${O} = ${X}[${j3D($,B)}];`);let j=i0(D,$,Y.valueType,O);D.write(`${U}[${V}] = ${j};`)}let z=ZD($,new Set(H));return D.write(`for (const ${F} in ${X}) {`),D.indented((I)=>{if(I.write(`if (${z}.has(${F})) continue;`),K.mode==="loose")I.write(`if (${F} !== "__proto__") ${U}[${F}] = ${X}[${F}];`);else I.write("return INVALID;")}),D.write("}"),U}let G=Y.keyType._zod.def;if(!(G.type==="string"&&G.format===void 0&&!G.coerce&&(G.checks?.length??0)===0)){let H=Y.mode==="loose",z=EY(Y.keyType);if(z.definite===!1)$.definite=!1;let I=ZD($,z),B=ZD($,V6),N=KD($);return g_(D,$,X,F,(V)=>{if(V.write(`let ${N} = ${I}(${F});`),V.write(`if (${N} === INVALID && typeof ${F} === "string" && ${B}.test(${F})) ${N} = ${I}(Number(${F}));`),H)V.write(`if (${N} === INVALID) { ${U}[${F}] = ${X}[${F}]; continue; }`);else V.write(`if (${N} === INVALID) return INVALID;`);V.write(`if (${N} === "__proto__") continue;`);let O=KD($);V.write(`const ${O} = ${X}[${F}];`);let j=i0(V,$,Y.valueType,O);V.write(`${U}[${N}] = ${j};`)}),U}return g_(D,$,X,F,(H)=>{H.write(`const ${W} = ${X}[${F}];`);let z=i0(H,$,Y.valueType,W);H.write(`${U}[${F}] = ${z};`)},"return INVALID;"),U}function g_(D,$,J,X,Y,Q){let U=ZD($,Object.prototype.propertyIsEnumerable),F=KD($),W=KD($),K=KD($);D.write(`const ${F} = Object.getOwnPropertySymbols(${J});`),D.write(`const ${W} = Object.getOwnPropertyNames(${J});`),D.write(`for (let ${K} = 0; ${K} < ${W}.length; ${K}++) {`),D.indented((q)=>{q.write(`const ${X} = ${W}[${K}];`),q.write(`if (${X} === "__proto__" || !${U}.call(${J}, ${X})) continue;`),Y(q)}),D.write("}"),D.write(`for (let ${K} = 0; ${K} < ${F}.length; ${K}++) {`),D.indented((q)=>{if(q.write(`const ${X} = ${F}[${K}];`),q.write(`if (!${U}.call(${J}, ${X})) continue;`),Q)q.write(Q);else Y(q)}),D.write("}")}function j3D(D,$){if(typeof $==="string")return $$($);return ZD(D,$)}function L3D(D,$,J,X){let Y=J._zod.def;D.write(`if (!(${X} instanceof Map)) return INVALID;`);let Q=KD($),U=KD($),F=KD($);return D.write(`const ${Q} = new Map();`),D.write(`for (const [${U}, ${F}] of ${X}) {`),D.indented((W)=>{let K=J0(W,$,Y.keyType,U),q=J0(W,$,Y.valueType,F);W.write(`${Q}.set(${K}, ${q});`)}),D.write("}"),Q}function R3D(D,$,J,X){let Y=J._zod.def;D.write(`if (!(${X} instanceof Set)) return INVALID;`);let Q=KD($),U=KD($);return D.write(`const ${Q} = new Set();`),D.write(`for (const ${U} of ${X}) {`),D.indented((F)=>{let W=J0(F,$,Y.valueType,U);F.write(`${Q}.add(${W});`)}),D.write("}"),Q}function M3D(D,$){return D.write(`if (!(${$} instanceof File)) return INVALID;`),$}function A3D(D,$,J,X){D.write(`if (typeof ${X} !== "string") return INVALID;`);let Y=J._zod.pattern;if(Y){let Q=ZD($,Y);D.write(`${Q}.lastIndex = 0;`),D.write(`if (!${Q}.test(${X})) return INVALID;`)}return X}function v3D(D,$,J,X){let Y=J._zod.def,Q=g4($,Y.getter),U=ZD($,{parser:null});D.write(`if (!${U}.parser) {`),D.indented((W)=>{W.write(`const inner = ${Q}();`),W.write(`${U}.parser = function(input) {`),W.indented((K)=>{K.write("const result = inner._zod.run({ value: input, issues: [] }, {});"),K.write("return result.issues.length === 0 ? result.value : INVALID;")}),W.write("};")}),D.write("}");let F=KD($);return D.write(`const ${F} = ${U}.parser(${X});`),D.write(`if (${F} === INVALID) return INVALID;`),F}function E3D(D,$,J,X){let Y=J._zod.def,Q=J0(D,$,Y.in,X);if(Y.transform){if(x4(Y.transform))throw new w6("z.compile: async transforms in pipes are not supported");let U=Y.transform,W=g4($,(q)=>{let G={value:q,issues:[],addIssue:AH},Z=U(q,G);if(Z instanceof Promise)return X$;return G.issues.length===0?Z:X$}),K=KD($);return D.write(`const ${K} = ${W}(${Q});`),D.write(`if (${K} === INVALID) return INVALID;`),J0(D,$,Y.out,K)}else return J0(D,$,Y.out,Q)}function x4(D){return typeof D==="function"&&(D.constructor.name==="AsyncFunction"||D[Symbol.toStringTag]==="AsyncFunction")}function T3D(D,$,J,X){let Y=J._zod.def;if(Y.fn){if(x4(Y.fn))throw new w6("z.compile: async custom predicates are not supported");let Q=g4($,Y.fn),U=ZD($,LH),F=KD($);D.write(`const ${F} = ${Q}(${X});`),D.write(`if (${F} instanceof Promise) ${U}();`),D.write(`if (!${F}) return INVALID;`)}else throw new ED("custom schema without a predicate function");return X}function P3D(D,$,J){let X=D._zod.run({value:J,issues:[]},{});if(X&&typeof X.then==="function")return X$;let Y=X;if(Y.issues.length===0)return Y.value;return $()}function b3D(D,$,J,X){let Y=J._zod.def;if(!Y.catchValue[gX])throw new ED("catch with a callback (only a constant catch value compiles)",!1);let Q=KD($);D.write(`let ${Q} = (() => {`),D.indented((K)=>{let q=i0(K,$,Y.innerType,X);K.write(`return ${q};`)}),D.write("})();");let U=ZD($,Y.innerType),F=g4($,Y.catchValue),W=ZD($,P3D);return D.write(`if (${Q} === INVALID) {`),D.indented((K)=>{K.write(`${Q} = ${W}(${U}, ${F}, ${X});`),K.write(`if (${Q} === INVALID) return INVALID;`)}),D.write("}"),Q}function S3D(D,$,J,X){let Y=J._zod.def;if(Y.transform){if(x4(Y.transform))throw new w6("z.compile: async transforms are not supported");let Q=Y.transform,F=g4($,(K)=>{let q={value:K,issues:[],addIssue:AH},G=Q(K,q);if(G instanceof Promise)return X$;return q.issues.length===0?G:X$}),W=KD($);return D.write(`const ${W} = ${F}(${X});`),D.write(`if (${W} === INVALID) return INVALID;`),W}return X}var X$,C_,w6,ED,x7D,r7D;var h_=S(()=>{L1();Fz();C4();C2();e();X$=Symbol.for("zod.compile.invalid"),C_=Symbol.for("zod.compile.fallback");w6=class w6 extends Error{constructor(D="z.compile does not support async refinements, transforms, or checks"){super(D);this.name="ZodCompileAsyncError"}};ED=class ED extends Error{constructor(D,$=!0){super(`z.compile does not support ${D}; this schema must use the runtime parser`);this.name="ZodCompileUnsupportedError",this.islandable=$}};x7D=new Set(["max_size","min_size","size_equals","max_length","min_length","length_equals"]);r7D=new Set(["cidrv4","cuid","cuid2","date","datetime","duration","e164","email","emoji","ends_with","guid","includes","ipv4","ksuid","lowercase","mac","nanoid","regex","starts_with","time","ulid","uppercase","uuid","xid"])});function TY(D){if(D.checks)D.checks=[...D.checks];return D}function vH(D,$){return new D(TY({type:"string",...n($)}))}function EH(D,$){return new D(TY({type:"string",coerce:!0,...n($)}))}function PY(D,$){return new D({type:"string",format:"email",check:"string_format",abort:!1,...n($)})}function bY(D,$){return new D({type:"string",format:"guid",check:"string_format",abort:!1,...n($)})}function SY(D,$){return new D({type:"string",format:"uuid",check:"string_format",abort:!1,...n($)})}function CY(D,$){return new D({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...n($)})}function kY(D,$){return new D({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...n($)})}function _Y(D,$){return new D({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...n($)})}function T7(D,$){return new D({type:"string",format:"url",check:"string_format",abort:!1,...n($)})}function uY(D,$){return new D({type:"string",format:"emoji",check:"string_format",abort:!1,...n($)})}function gY(D,$){return new D({type:"string",format:"nanoid",check:"string_format",abort:!1,...n($)})}function xY(D,$){return new D({type:"string",format:"cuid",check:"string_format",abort:!1,...n($)})}function fY(D,$){return new D({type:"string",format:"cuid2",check:"string_format",abort:!1,...n($)})}function yY(D,$){return new D({type:"string",format:"ulid",check:"string_format",abort:!1,...n($)})}function hY(D,$){return new D({type:"string",format:"xid",check:"string_format",abort:!1,...n($)})}function mY(D,$){return new D({type:"string",format:"ksuid",check:"string_format",abort:!1,...n($)})}function lY(D,$){return new D({type:"string",format:"ipv4",check:"string_format",abort:!1,...n($)})}function dY(D,$){return new D({type:"string",format:"ipv6",check:"string_format",abort:!1,...n($)})}function TH(D,$){return new D({type:"string",format:"mac",check:"string_format",abort:!1,...n($)})}function iY(D,$){return new D({type:"string",format:"cidrv4",check:"string_format",abort:!1,...n($)})}function cY(D,$){return new D({type:"string",format:"cidrv6",check:"string_format",abort:!1,...n($)})}function pY(D,$){return new D({type:"string",format:"base64",check:"string_format",abort:!1,...n($)})}function nY(D,$){return new D({type:"string",format:"base64url",check:"string_format",abort:!1,...n($)})}function rY(D,$){return new D({type:"string",format:"e164",check:"string_format",abort:!1,...n($)})}function PH(D,$){return new D({type:"string",format:"credit_card",check:"string_format",abort:!1,...n($)})}function bH(D,$){return new D({type:"string",format:"iban",check:"string_format",abort:!1,...n($)})}function tY(D,$){return new D({type:"string",format:"jwt",check:"string_format",abort:!1,...n($)})}function P7(D,$){return new D({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...n($)})}function b7(D,$){return new D({type:"string",format:"date",check:"string_format",...n($)})}function S7(D,$){return new D({type:"string",format:"time",check:"string_format",precision:null,...n($)})}function C7(D,$){return new D({type:"string",format:"duration",check:"string_format",...n($)})}function CH(D,$){return new D(TY({type:"number",checks:[],...n($)}))}function kH(D,$){return new D(TY({type:"number",coerce:!0,checks:[],...n($)}))}function _H(D,$){return new D({type:"number",check:"number_format",abort:!1,format:"safeint",...n($)})}function uH(D,$){return new D({type:"number",check:"number_format",abort:!1,format:"float32",...n($)})}function gH(D,$){return new D({type:"number",check:"number_format",abort:!1,format:"float64",...n($)})}function xH(D,$){return new D({type:"number",check:"number_format",abort:!1,format:"int32",...n($)})}function fH(D,$){return new D({type:"number",check:"number_format",abort:!1,format:"uint32",...n($)})}function yH(D,$){return new D({type:"boolean",...n($)})}function hH(D,$){return new D({type:"boolean",coerce:!0,...n($)})}function mH(D,$){return new D({type:"bigint",...n($)})}function lH(D,$){return new D({type:"bigint",coerce:!0,...n($)})}function dH(D,$){return new D({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...n($)})}function iH(D,$){return new D({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...n($)})}function cH(D,$){return new D({type:"symbol",...n($)})}function pH(D,$){return new D({type:"undefined",...n($)})}function nH(D,$){return new D({type:"null",...n($)})}function rH(D){return new D({type:"any"})}function tH(D){return new D({type:"unknown"})}function oH(D,$){return new D({type:"never",...n($)})}function aH(D,$){return new D({type:"void",...n($)})}function sH(D,$){return new D({type:"date",...n($)})}function eH(D,$){return new D({type:"date",coerce:!0,...n($)})}function DI(D,$){return new D({type:"nan",...n($)})}function j6(D,$){return new sX({check:"less_than",...n($),value:D,inclusive:!1})}function E$(D,$){return new sX({check:"less_than",...n($),value:D,inclusive:!0})}function L6(D,$){return new eX({check:"greater_than",...n($),value:D,inclusive:!1})}function T$(D,$){return new eX({check:"greater_than",...n($),value:D,inclusive:!0})}function oY(D){return L6(0,D)}function aY(D){return j6(0,D)}function sY(D){return E$(0,D)}function eY(D){return T$(0,D)}function R1(D,$){return new MG({check:"multiple_of",...n($),value:D})}function M1(D,$){return new EG({check:"max_size",...n($),maximum:D})}function R6(D,$){return new TG({check:"min_size",...n($),minimum:D})}function f4(D,$){return new PG({check:"size_equals",...n($),size:D})}function y4(D,$){return new bG({check:"max_length",...n($),maximum:D})}function y6(D,$){return new SG({check:"min_length",...n($),minimum:D})}function h4(D,$){return new CG({check:"length_equals",...n($),length:D})}function g2(D,$){return new kG({check:"string_format",format:"regex",...n($),pattern:D})}function x2(D){return new _G({check:"string_format",format:"lowercase",...n(D)})}function f2(D){return new uG({check:"string_format",format:"uppercase",...n(D)})}function y2(D,$){return new gG({check:"string_format",format:"includes",...n($),includes:D})}function h2(D,$){return new xG({check:"string_format",format:"starts_with",...n($),prefix:D})}function m2(D,$){return new fG({check:"string_format",format:"ends_with",...n($),suffix:D})}function DQ(D,$,J){return new yG({check:"property",property:D,schema:$,...n(J)})}function l2(D,$){return new hG({check:"properties",shape:D,...n($)})}function d2(D,$){return new mG({check:"mime_type",mime:D,...n($)})}function Y6(D){return new lG({check:"overwrite",tx:D})}function i2(D){return Y6(($)=>$.normalize(D))}function c2(){return Y6((D)=>D.trim())}function p2(){return Y6((D)=>D.toLowerCase())}function n2(){return Y6((D)=>D.toUpperCase())}function r2(){return Y6((D)=>Mq(D))}function $I(D,$,J){return new D({type:"array",element:$,...n(J)})}function C3D(D,$,J){return new D({type:"union",options:$,...n(J)})}function k3D(D,$,J){return new D({type:"union",options:$,inclusive:!1,...n(J)})}function _3D(D,$,J,X){return new D({type:"union",options:J,discriminator:$,...n(X)})}function u3D(D,$,J){return new D({type:"intersection",left:$,right:J})}function g3D(D,$,J,X){let Y=J instanceof zD;return new D({type:"tuple",items:$,rest:Y?J:null,...n(Y?X:J)})}function x3D(D,$,J,X){return new D({type:"record",keyType:$,valueType:J,...n(X)})}function f3D(D,$,J,X){return new D({type:"map",keyType:$,valueType:J,...n(X)})}function y3D(D,$,J){return new D({type:"set",valueType:$,...n(J)})}function h3D(D,$,J){let X=Array.isArray($)?Object.fromEntries($.map((Y)=>[Y,Y])):$;return new D({type:"enum",entries:X,...n(J)})}function m3D(D,$,J){return new D({type:"enum",entries:$,...n(J)})}function l3D(D,$,J){return new D({type:"literal",values:Array.isArray($)?$:[$],...n(J)})}function JI(D,$){return new D({type:"file",...n($)})}function d3D(D,$){return new D({type:"transform",transform:$})}function i3D(D,$){return new D({type:"optional",innerType:$})}function c3D(D,$){return new D({type:"nullable",innerType:$})}function p3D(D,$,J){return new D({type:"default",innerType:$,get defaultValue(){return typeof J==="function"?J():t5(J)}})}function n3D(D,$,J){return new D({type:"nonoptional",innerType:$,...n(J)})}function r3D(D,$){return new D({type:"success",innerType:$})}function t3D(D,$,J){return new D({type:"catch",innerType:$,catchValue:typeof J==="function"?J:bq(J)})}function o3D(D,$,J){return new D({type:"pipe",in:$,out:J})}function a3D(D,$){return new D({type:"readonly",innerType:$})}function s3D(D,$,J){return new D({type:"template_literal",parts:$,...n(J)})}function e3D(D,$){return new D({type:"lazy",getter:$})}function DJD(D,$){return new D({type:"promise",innerType:$})}function XI(D,$,J){let X=n(J);return X.abort??(X.abort=!0),new D({type:"custom",check:"custom",fn:$,...X})}function YI(D,$,J){return new D({type:"custom",check:"custom",fn:$,...n(J)})}function QI(D,$){let J=m_((X)=>{return X.addIssue=(Y)=>{if(typeof Y==="string")X.issues.push(M2(Y,X.value,J._zod.def));else{let Q=Y;if(Q.fatal)Q.continue=!1;if(Q.code??(Q.code="custom"),!("input"in Q))Q.input=X.value;Q.inst??(Q.inst=J),Q.continue??(Q.continue=!J._zod.def.abort),X.issues.push(M2(Q))}},D(X.value,X)},$);return J}function m_(D,$){let J=new nD({check:"custom",...n($)});return J._zod.check=D,J}function UI(D){let $=new nD({check:"describe"});return $._zod.onattach=[(J)=>{let X=_0.get(J)??{};_0.add(J,{...X,description:D})}],$._zod.check=()=>{},$}function FI(D){let $=new nD({check:"meta"});return $._zod.onattach=[(J)=>{let X=_0.get(J)??{};_0.add(J,{...X,...D})}],$._zod.check=()=>{},$}function WI(D,$){let J=n($),X=J.truthy??["true","1","yes","on","y","enabled"],Y=J.falsy??["false","0","no","off","n","disabled"];if(J.case!=="sensitive")X=X.map((H)=>typeof H==="string"?H.toLowerCase():H),Y=Y.map((H)=>typeof H==="string"?H.toLowerCase():H);let Q=new Set(X),U=new Set(Y),F=D.Codec??O7,W=D.Boolean??I7,q=new(D.String??k4)({type:"string",error:J.error}),G=new W({type:"boolean",error:J.error}),Z=new F({type:"pipe",in:q,out:G,transform:(H,z)=>{let I=H;if(J.case!=="sensitive")I=I.toLowerCase();if(Q.has(I))return!0;else if(U.has(I))return!1;else return z.issues.push({code:"invalid_value",expected:"stringbool",values:[...Q,...U],input:z.value,inst:Z,continue:!1}),{}},reverseTransform:(H,z)=>{if(H===!0)return X[0]||"true";else return Y[0]||"false"},error:J.error});return Z._zod.bag.truthy=X,Z._zod.bag.falsy=Y,Z._zod.bag.case=J.case??"insensitive",Z}function m4(D,$,J,X={}){let Y=n(X),Q={check:"string_format",type:"string",format:$,fn:typeof J==="function"?J:(F)=>J.test(F),...Y};if(J instanceof RegExp)Q.pattern=J;return new D(Q)}var SH;var l_=S(()=>{DY();E7();C2();e();SH={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}});function k7(D,...$){for(let J of $)for(let X of Reflect.ownKeys(J))if(Object.prototype.propertyIsEnumerable.call(J,X))k0(D,X,J[X]);return D}function A1(D){let $=D?.target??"draft-2020-12";if($==="draft-4")$="draft-04";if($==="draft-7")$="draft-07";return{processors:D.processors??{},metadataRegistry:D?.metadata??_0,target:$,unrepresentable:D?.unrepresentable??"throw",override:D?.override??(()=>{}),io:D?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:D?.cycles??"ref",reused:D?.reused??"inline",intersections:[],deferred:[],external:D?.external??void 0}}function L0(D,$,J,X,Y){let Q=typeof $.unrepresentable==="function"?$.unrepresentable({zodSchema:D,path:X.path,message:Y}):$.unrepresentable;if(Q==="any")return!1;if(Q===void 0||Q==="throw")throw Error(Y);return Object.assign(J,Q),!0}function hD(D,$,J={path:[],schemaPath:[]}){var X;let Y=D._zod.def,Q=$.seen.get(D);if(Q){if(Q.count++,J.schemaPath.includes(D))Q.cycle=J.path;return Q.schema}let U={schema:{},count:1,cycle:void 0,path:J.path};$.seen.set(D,U),$.sharedDefsExtractedFor=void 0,$.sharedEmitDoneFor=void 0;let F=D._zod.toJSONSchema?.();if(F)U.schema=F;else{let q={...J,schemaPath:[...J.schemaPath,D],path:J.path};if(D._zod.processJSONSchema)D._zod.processJSONSchema($,U.schema,q);else{let Z=U.schema,H=$.processors[Y.type];if(!H)throw Error(`[toJSONSchema]: Non-representable type encountered: ${Y.type}`);H(D,$,Z,q)}let G=D._zod.parent;if(G){if(!U.ref)U.ref=G;hD(G,$,q),$.seen.get(G).isParent=!0}}let W=$.metadataRegistry.get(D);if(W)k7(U.schema,W);if($.io==="input"&&Y$(D))delete U.schema.examples,delete U.schema.default;if($.io==="input"&&"_prefault"in U.schema)(X=U.schema).default??(X.default=U.schema._prefault);return delete U.schema._prefault,$.seen.get(D).schema}function d_(D){return D.replace(/~/g,"~0").replace(/\//g,"~1")}function v1(D,$){let J=D.seen.get($);if(!J)throw Error("Unprocessed schema. This is a bug in Zod.");if(D.external&&D.sharedDefsExtractedFor===D.external)return;let X=new Map;for(let U of D.seen.entries()){let F=D.metadataRegistry.get(U[0])?.id;if(F){let W=X.get(F);if(W&&W!==U[0])throw Error(`Duplicate schema id "${F}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);X.set(F,U[0])}}let Y=(U)=>{let F=D.target==="draft-2020-12"?"$defs":"definitions";if(D.external){let G=D.external.registry.get(U[0])?.id,Z=D.external.uri??((z)=>z);if(G)return{ref:Z(G)};let H=U[1].defId??U[1].schema.id??`schema${D.counter++}`;return U[1].defId=H,{defId:H,ref:`${Z("__shared")}#/${F}/${d_(H)}`}}let W="#",K=`${W}/${F}/`;if(U[1]===J&&!U[1].schema.id)return{ref:W};let q=U[1].schema.id??`__schema${D.counter++}`;return{defId:q,ref:K+d_(q)}},Q=(U)=>{if(U[1].schema.$ref)return;let F=U[1],{ref:W,defId:K}=Y(U);if(F.def={...F.schema},K)F.defId=K;let q=F.schema;for(let G in q)delete q[G];q.$ref=W};if(D.cycles==="throw")for(let U of D.seen.entries()){let F=U[1];if(F.cycle)throw Error(`Cycle detected: #/${F.cycle?.join("/")}/<root>
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let U of D.seen.entries()){let F=U[1];if($===U[0]){Q(U);continue}if(D.external){let K=D.external.registry.get(U[0])?.id;if($!==U[0]&&K){Q(U);continue}}if(D.metadataRegistry.get(U[0])?.id){Q(U);continue}if(F.cycle){Q(U);continue}if(F.count>1){if(D.reused==="ref")Q(U)}}if(D.external)D.sharedDefsExtractedFor=D.external}function p_(D){let $=D.anyOf;if(!Array.isArray($)||$.length===0||D.type!==void 0)return;let J=[];for(let X of $){if(!X||typeof X!=="object")return;p_(X);let Y=Object.keys(X);if(Y.length!==1||Y[0]!=="type")return;let Q=X.type;for(let U of Array.isArray(Q)?Q:[Q]){if(typeof U!=="string")return;if(!J.includes(U))J.push(U)}}delete D.anyOf,D.type=J.length===1?J[0]:J}function c_(D){let $=D.additionalProperties;if($===void 0||$===!1||typeof $!=="object"||$===null)return null;return Object.keys($).length?$:null}function KI(D){let $=[];for(let Q of D){if(typeof Q!=="object"||Q.type!=="object")return null;for(let U in Q)if(!n_.has(U))return null;$.push(Q)}let J={},X=new Set;for(let Q of $){for(let U in Q.properties){if(Object.prototype.hasOwnProperty.call(J,U))continue;let F=[];for(let K of $){let q=K.properties?.[U]??c_(K);if(q===null||q===void 0)continue;if(!F.some((G)=>JSON.stringify(G)===JSON.stringify(q)))F.push(q)}let W=F.length===1?F[0]:KI(F)??{allOf:F};k0(J,U,W)}for(let U of Q.required??[])X.add(U)}let Y={type:"object",properties:J};if(X.size)Y.required=[...X];if($.every((Q)=>Q.additionalProperties===!1))Y.additionalProperties=!1;else{let Q=[];for(let U of $){let F=c_(U);if(F&&!Q.some((W)=>JSON.stringify(W)===JSON.stringify(F)))Q.push(F)}if(Q.length===1)Y.additionalProperties=Q[0];else if(Q.length>1)Y.additionalProperties={allOf:Q}}return Y}function $JD(D){let $=D.allOf;if(!Array.isArray($)||$.length<2)return;for(let Y of n_)if(Y in D)return;let J=$.filter((Y)=>i_.some((Q)=>Array.isArray(Y[Q]))),X=null;if(!J.length)X=KI($);else{let Y=J[0],Q=i_.find((W)=>Array.isArray(Y[W]));if(Object.keys(Y).length!==1)return;let U=$.filter((W)=>W!==Y),F=Y[Q].map((W)=>KI([...U,W]));if(F.some((W)=>!W))return;X={[Q]:F}}if(!X)return;delete D.allOf,k7(D,X)}function E1(D,$){let J=D.seen.get($);if(!J)throw Error("Unprocessed schema. This is a bug in Zod.");let X=(F)=>{let W=D.seen.get(F);if(W.ref===null)return;let K=W.def??W.schema,q={...K},G=W.ref;if(W.ref=null,G){X(G);let H=D.seen.get(G),z=H.schema;if(z.$ref&&(D.target==="draft-07"||D.target==="draft-04"||D.target==="openapi-3.0"))K.allOf=K.allOf??[],K.allOf.push(z);else k7(K,z);if(k7(K,q),F._zod.parent===G)for(let B in K){if(B==="$ref"||B==="allOf")continue;if(!(B in q))delete K[B]}if(z.$ref&&H.def)for(let B in K){if(B==="$ref"||B==="allOf")continue;if(B in H.def&&JSON.stringify(K[B])===JSON.stringify(H.def[B]))delete K[B]}}let Z=F._zod.parent;if(Z&&Z!==G){X(Z);let H=D.seen.get(Z);if(H?.schema.$ref){if(K.$ref=H.schema.$ref,H.def)for(let z in K){if(z==="$ref"||z==="allOf")continue;if(z in H.def&&JSON.stringify(K[z])===JSON.stringify(H.def[z]))delete K[z]}}}D.override({zodSchema:F,jsonSchema:K,path:W.path??[]})};if(!D.external||D.sharedEmitDoneFor!==D.external){for(let F of[...D.seen.entries()].reverse())X(F[0]);if(D.target!=="openapi-3.0")for(let F of D.seen.entries())p_(F[1].def??F[1].schema);for(let F of D.deferred)F();if(D.intersections.length){let F=new Map;for(let W of D.seen.values())for(let K of[W.schema,W.def]){let q=K?.allOf;if(!Array.isArray(q))continue;let G=F.get(q);if(G)G.push(K);else F.set(q,[K])}for(let W of D.intersections)for(let K of F.get(W)??[])$JD(K)}}let Y={};if(D.target==="draft-2020-12")Y.$schema="https://json-schema.org/draft/2020-12/schema";else if(D.target==="draft-07")Y.$schema="http://json-schema.org/draft-07/schema#";else if(D.target==="draft-04")Y.$schema="http://json-schema.org/draft-04/schema#";else if(D.target==="openapi-3.0");if(D.external?.uri){let F=D.external.registry.get($)?.id;if(!F)throw Error("Schema is missing an `id` property");Y.$id=D.external.uri(F)}k7(Y,J.defId?J.schema:J.def??J.schema);let Q=D.metadataRegistry.get($)?.id;if(Q!==void 0&&Y.id===Q)delete Y.id;let U=D.external?.defs??{};if(!D.external||D.sharedEmitDoneFor!==D.external)for(let F of D.seen.entries()){let W=F[1];if(W.def&&W.defId){if(W.def.id===W.defId)delete W.def.id;k0(U,W.defId,W.def)}}if(D.external)D.sharedEmitDoneFor=D.external;if(D.external);else if(Object.keys(U).length>0)if(D.target==="draft-2020-12")Y.$defs=U;else Y.definitions=U;try{let F=JSON.parse(JSON.stringify(Y));return Object.defineProperty(F,"~standard",{value:{...$["~standard"],jsonSchema:{input:t2($,"input",D.processors),output:t2($,"output",D.processors)}},enumerable:!1,writable:!1}),F}catch(F){throw Error("Error converting schema to JSON.")}}function Y$(D,$){let J=$??{seen:new Set};if(J.seen.has(D))return!1;J.seen.add(D);let X=D._zod.def;if(X.type==="transform")return!0;if(X.type==="array")return Y$(X.element,J);if(X.type==="set")return Y$(X.valueType,J);if(X.type==="lazy")return Y$(X.getter(),J);if(X.type==="promise"||X.type==="optional"||X.type==="nonoptional"||X.type==="nullable"||X.type==="readonly"||X.type==="default"||X.type==="prefault"||X.type==="catch")return Y$(X.innerType,J);if(X.type==="intersection")return Y$(X.left,J)||Y$(X.right,J);if(X.type==="record"||X.type==="map")return Y$(X.keyType,J)||Y$(X.valueType,J);if(X.type==="pipe"){if(D._zod.traits.has("$ZodCodec"))return!0;return Y$(X.in,J)||Y$(X.out,J)}if(X.type==="object"){for(let Y in X.shape)if(Y$(X.shape[Y],J))return!0;return!1}if(X.type==="union"){for(let Y of X.options)if(Y$(Y,J))return!0;return!1}if(X.type==="tuple"){for(let Y of X.items)if(Y$(Y,J))return!0;if(X.rest&&Y$(X.rest,J))return!0;return!1}return!1}var n_,i_,qI=(D,$={})=>(J)=>{let X=A1({...J,processors:$});return hD(D,X),v1(X,D),E1(X,D)},t2=(D,$,J={})=>(X)=>{let{libraryOptions:Y,target:Q}=X??{},U=A1({...Y??{},target:Q,io:$,processors:J});return hD(D,U),v1(U,D),E1(U,D)};var _7=S(()=>{E7();e();n_=new Set(["type","properties","required","additionalProperties"]),i_=["oneOf","anyOf"]});function R0(D){let $={},J=D._zod.def,X=D._zod.traits.has("$ZodCheck")?[D,...J.checks??[]]:J.checks??[];for(let Q of X)JJD[Q._zod.def.check]?.($,Q._zod.def);let Y=D._zod.bag;if(Y.minimum!==void 0)o2($,"minimum",Y.minimum);if(Y.exclusiveMinimum!==void 0)o2($,"exclusiveMinimum",Y.exclusiveMinimum);if(Y.maximum!==void 0)a2($,"maximum",Y.maximum);if(Y.exclusiveMaximum!==void 0)a2($,"exclusiveMaximum",Y.exclusiveMaximum);if(Y.multipleOf!==void 0)s_($,Y.multipleOf);if(Y.format!==void 0){if($.format??($.format=Y.format),Y.format.includes("int"))$.isInt=!0}if(Y.mime)Du($,Y.mime);for(let Q of Y.patterns??[])e_($,Q);return $}function u7(D){let $=D._zod.def;if($.type==="pipe"&&$.in._zod.traits.has("$ZodTransform"))return u7($.out);if($.type==="catch")return u7($.innerType);return D._zod.optin}function GI(D,$,J){if($.$ref){if(J.has($))return $;J.add($);let z=D.get($)?.def;if(!z)return $;let I=GI(D,z,J);return I===z?$:I}for(let z of["anyOf","oneOf"]){let I=$[z];if(!Array.isArray(I))continue;let B=I.map((N)=>GI(D,N,J));if(B.some((N,V)=>N!==I[V]))$={...$,[z]:B}}let X=Array.isArray($.type)?$.type:[$.type],Y=!X.includes("string")&&X.some((z)=>z==="number"||z==="integer"),Q=$.enum??($.const!==void 0?[$.const]:void 0);if(!Y&&!Q?.some((z)=>typeof z==="number"))return $;let{minimum:U,maximum:F,exclusiveMinimum:W,exclusiveMaximum:K,multipleOf:q,format:G,id:Z,...H}=$;if(H.enum)H.enum=H.enum.map((z)=>typeof z==="number"?String(z):z);else if(typeof H.const==="number")H.const=String(H.const);if(!Y)return H;if(H.type="string",!Q)H.pattern=(X.includes("number")?V6:F7).source;return H}function QJD(D){let $=new Map;for(let X of D.seen.values())if(X.def&&!$.has(X.schema))$.set(X.schema,X);let J=new Map;for(let X of ZI.get(D)??[]){let Y=D.seen.get(X),Q=(Y?.def??Y?.schema)?.propertyNames;if(!Q||Q===!0||J.has(Q))continue;let U=GI($,Q,new Set);if(U!==Q)J.set(Q,U)}if(!J.size)return;for(let X of D.seen.values())for(let Y of[X.schema,X.def]){let Q=Y&&J.get(Y.propertyNames);if(Q)Y.propertyNames=Q}}function Xu(D,$,J,X,Y){let Q=!1,U=JSON.stringify(D,(F,W)=>{if(typeof W!=="bigint")return W;return Q=!0,null});if(!Q)return JSON.parse(U);return L0($,J,X,Y,"BigInt defaults cannot be represented in JSON Schema"),dI}function YQ(D,$){if("_idmap"in D){let X=D,Y=A1({...$,processors:$Q}),Q={};for(let W of X._idmap.entries()){let[K,q]=W;hD(q,Y)}let U={},F={registry:X,uri:$?.uri,defs:Q};Y.external=F;for(let W of X._idmap.entries()){let[K,q]=W;v1(Y,q),k0(U,K,E1(Y,q))}if(Object.keys(Q).length>0){let W=Y.target==="draft-2020-12"?"$defs":"definitions";U.__shared={[W]:Q}}return{schemas:U}}let J=A1({...$,processors:$Q});return hD(D,J),v1(J,D),E1(J,D)}var o2=(D,$,J)=>{if(D[$]===void 0||J>D[$])D[$]=J},a2=(D,$,J)=>{if(D[$]===void 0||J<D[$])D[$]=J},r_=(D,$)=>{o2(D,"minimum",$),a2(D,"maximum",$)},s_=(D,$)=>{if(D.multipleOf??(D.multipleOf=[]),!D.multipleOf.includes($))D.multipleOf.push($)},e_=(D,$)=>{D.patterns??(D.patterns=new Set),D.patterns.add($)},Du=(D,$)=>{D.mime=D.mime?D.mime.filter((J)=>$.includes(J)):[...$]},$u=(D,$)=>{if(D.format=$,$.includes("int"))D.isInt=!0},t_=(D,$)=>o2(D,"minimum",$.minimum),o_=(D,$)=>a2(D,"maximum",$.maximum),a_=(D)=>($,J)=>{$u($,J.format);let[X,Y]=D[J.format];o2($,"minimum",X),a2($,"maximum",Y)},JJD,XJD,YJD,Ju=(D)=>YJD.get(D)??D,zI=(D,$,J,X)=>{let Y=J;Y.type="string";let{minimum:Q,maximum:U,format:F,patterns:W,contentEncoding:K,laxFormat:q}=R0(D);if(typeof Q==="number")Y.minLength=Q;if(typeof U==="number")Y.maxLength=U;if(F){if(Y.format=XJD[F]??F,Y.format==="")delete Y.format;if(F==="time"||q)delete Y.format}if(K)Y.contentEncoding=K;if(W&&W.size>0){let G=[...W].map(Ju);if(G.length===1)Y.pattern=G[0].source;else if(G.length>1)Y.allOf=[...G.map((Z)=>({...$.target==="draft-07"||$.target==="draft-04"||$.target==="openapi-3.0"?{type:"string"}:{},pattern:Z.source}))]}},HI=(D,$,J,X)=>{let Y=J,{minimum:Q,maximum:U,multipleOf:F,exclusiveMaximum:W,exclusiveMinimum:K,isInt:q}=R0(D);Y.type=q?"integer":"number";let G=typeof K==="number"&&K>=(Q??Number.NEGATIVE_INFINITY),Z=typeof W==="number"&&W<=(U??Number.POSITIVE_INFINITY),H=$.target==="draft-04"||$.target==="openapi-3.0";if(G)if(H)Y.minimum=K,Y.exclusiveMinimum=!0;else Y.exclusiveMinimum=K;else if(typeof Q==="number")Y.minimum=Q;if(Z)if(H)Y.maximum=W,Y.exclusiveMaximum=!0;else Y.exclusiveMaximum=W;else if(typeof U==="number")Y.maximum=U;if(F){let z=new Set;for(let N of F)if(Number.isFinite(N)&&N!==0)z.add(Math.abs(N));else L0(D,$,Y,X,`A multipleOf divisor of ${N} cannot be represented in JSON Schema`);let[I,...B]=z;if(I!==void 0)Y.multipleOf=I;if(B.length)Y.allOf=[...Y.allOf??[],...B.map((N)=>({multipleOf:N}))]}},II=(D,$,J,X)=>{J.type="boolean"},BI=(D,$,J,X)=>{L0(D,$,J,X,"BigInt cannot be represented in JSON Schema")},OI=(D,$,J,X)=>{L0(D,$,J,X,"Symbols cannot be represented in JSON Schema")},NI=(D,$,J,X)=>{if($.target==="openapi-3.0")J.type="string",J.nullable=!0,J.enum=[null];else J.type="null"},VI=(D,$,J,X)=>{L0(D,$,J,X,"Undefined cannot be represented in JSON Schema")},wI=(D,$,J,X)=>{L0(D,$,J,X,"Void cannot be represented in JSON Schema")},jI=(D,$,J,X)=>{J.not={}},LI=(D,$,J,X)=>{},RI=(D,$,J,X)=>{},MI=(D,$,J,X)=>{L0(D,$,J,X,"Date cannot be represented in JSON Schema")},AI=(D,$,J,X)=>{let Y=D._zod.def,Q=w2(Y.entries);if(Q.length===0){J.not={};return}if(Q.every((U)=>typeof U==="number"))J.type="number";if(Q.every((U)=>typeof U==="string"))J.type="string";J.enum=Q},vI=(D,$,J,X)=>{let Y=D._zod.def;if(Y.values.length===0){J.not={};return}let Q=[];for(let U of Y.values)if(U===void 0){if(L0(D,$,J,X,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof U==="bigint"){if(L0(D,$,J,X,"BigInt literals cannot be represented in JSON Schema"))return;Q.push(Number(U))}else Q.push(U);if(Q.length===0);else if(Q.length===1){let U=Q[0];if(J.type=U===null?"null":typeof U,$.target==="draft-04"||$.target==="openapi-3.0")J.enum=[U];else J.const=U}else{if(Q.every((U)=>typeof U==="number"))J.type="number";if(Q.every((U)=>typeof U==="string"))J.type="string";if(Q.every((U)=>typeof U==="boolean"))J.type="boolean";if(Q.every((U)=>U===null))J.type="null";J.enum=Q}},EI=(D,$,J,X)=>{L0(D,$,J,X,"NaN cannot be represented in JSON Schema")},TI=(D,$,J,X)=>{let Y=J,Q=D._zod.pattern;if(!Q)throw Error("Pattern not found in template literal");Y.type="string",Y.pattern=Q.source},PI=(D,$,J,X)=>{let Y=J;Y.type="string",Y.format="binary",Y.contentEncoding="binary";let{minimum:Q,maximum:U,mime:F}=R0(D);if(Q!==void 0)Y.minLength=Q;if(U!==void 0)Y.maxLength=U;if(!F)return;if(F.length===0)Y.not={};else if(F.length===1)Y.contentMediaType=F[0];else Y.anyOf=F.map((W)=>({contentMediaType:W}))},bI=(D,$,J,X)=>{J.type="boolean"},SI=(D,$,J,X)=>{L0(D,$,J,X,"Custom types cannot be represented in JSON Schema")},CI=(D,$,J,X)=>{L0(D,$,J,X,"Function types cannot be represented in JSON Schema")},kI=(D,$,J,X)=>{L0(D,$,J,X,"Transforms cannot be represented in JSON Schema")},_I=(D,$,J,X)=>{L0(D,$,J,X,"Map cannot be represented in JSON Schema")},uI=(D,$,J,X)=>{L0(D,$,J,X,"Set cannot be represented in JSON Schema")},gI=(D,$,J,X)=>{let Y=J,Q=D._zod.def,{minimum:U,maximum:F}=R0(D);if(typeof U==="number")Y.minItems=U;if(typeof F==="number")Y.maxItems=F;Y.type="array",Y.items=hD(Q.element,$,{...X,path:[...X.path,"items"]})},xI=(D,$,J,X)=>{let Y=J,Q=D._zod.def,U=Q.shape;if(Object.getOwnPropertySymbols(U).length&&L0(D,$,Y,X,"Symbol keys cannot be represented in JSON Schema"))return;Y.type="object",Y.properties={};for(let K in U)k0(Y.properties,K,hD(U[K],$,{...X,path:[...X.path,"properties",K]}));let W=[];for(let K of Object.keys(U)){let q=Q.shape[K];if($.io==="input"?u7(q)===void 0:q._zod.optout===void 0)W.push(K)}if(W.length>0)Y.required=W;if(Q.catchall?._zod.def.type==="never")Y.additionalProperties=!1;else if(!Q.catchall){if($.io==="output")Y.additionalProperties=!1}else if(Q.catchall)Y.additionalProperties=hD(Q.catchall,$,{...X,path:[...X.path,"additionalProperties"]})},JQ=(D,$,J,X)=>{let Y=D._zod.def,Q=Y.inclusive===!1,U=Y.options.map((F,W)=>hD(F,$,{...X,path:[...X.path,Q?"oneOf":"anyOf",W]}));if(Q)J.oneOf=U;else J.anyOf=U},fI=(D,$,J,X)=>{let Y=D._zod.def,Q=hD(Y.left,$,{...X,path:[...X.path,"allOf",0]}),U=hD(Y.right,$,{...X,path:[...X.path,"allOf",1]}),F=(K)=>("allOf"in K)&&Object.keys(K).length===1,W=[...F(Q)?Q.allOf:[Q],...F(U)?U.allOf:[U]];J.allOf=W,$.intersections.push(W)},yI=(D,$,J,X)=>{let Y=J,Q=D._zod.def;Y.type="array";let U=$.target==="draft-2020-12"?"prefixItems":"items",F=$.target==="draft-2020-12"?"items":$.target==="openapi-3.0"?"items":"additionalItems",W=Q.items.map((I,B)=>hD(I,$,{...X,path:[...X.path,U,B]})),K=Q.rest?hD(Q.rest,$,{...X,path:[...X.path,F,...$.target==="openapi-3.0"?[Q.items.length]:[]]}):null,q=Q.items.length;while(q>0){let I=Q.items[q-1];if(!($.io==="input"?u7(I)!==void 0:I._zod.optout==="optional"))break;q--}let G=Q.items.length,Z=!Q.rest;if($.target==="draft-2020-12"){if(Y.prefixItems=W,Z)Y.items=!1;else if(K)Y.items=K;if(q>0)Y.minItems=q;if(Z)Y.maxItems=G}else if($.target==="openapi-3.0"){if(Y.items={anyOf:W},K)Y.items.anyOf.push(K);if(q>0)Y.minItems=q;if(Z)Y.maxItems=G}else{if(Y.items=W,Z)Y.additionalItems=!1;else if(K)Y.additionalItems=K;if(q>0)Y.minItems=q;if(Z)Y.maxItems=G}let{minimum:H,maximum:z}=R0(D);if(typeof H==="number")Y.minItems=H;if(typeof z==="number")Y.maxItems=z},ZI,hI=(D,$,J,X)=>{let Y=J,Q=D._zod.def;Y.type="object";let U=Q.keyType,F=R0(U).patterns;if(Q.mode==="loose"&&F&&F.size>0){let q=hD(Q.valueType,$,{...X,path:[...X.path,"patternProperties","*"]});Y.patternProperties={};for(let G of F)k0(Y.patternProperties,Ju(G).source,q)}else{if($.target==="draft-07"||$.target==="draft-2020-12"){Y.propertyNames=hD(Q.keyType,$,{...X,path:[...X.path,"propertyNames"]});let q=ZI.get($);if(!q)q=[],ZI.set($,q),$.deferred.push(()=>QJD($));q.push(D)}Y.additionalProperties=hD(Q.valueType,$,{...X,path:[...X.path,"additionalProperties"]})}let W=U._zod.values,K=$.io==="input"&&u7(Q.valueType)!==void 0;if(W&&!Q.partial&&!K){let q=[...W].filter((G)=>typeof G==="string"||typeof G==="number");if(q.length>0)Y.required=q.map(String)}},mI=(D,$,J,X)=>{let Y=D._zod.def,Q=hD(Y.innerType,$,X),U=$.seen.get(D);if($.target==="openapi-3.0")U.ref=Y.innerType,J.nullable=!0;else J.anyOf=[Q,{type:"null"}]},lI=(D,$,J,X)=>{let Y=D._zod.def;hD(Y.innerType,$,X);let Q=$.seen.get(D);Q.ref=Y.innerType},dI,iI=(D,$,J,X)=>{let Y=D._zod.def;hD(Y.innerType,$,X);let Q=$.seen.get(D);Q.ref=Y.innerType;let U=Xu(Y.defaultValue,D,$,J,X);if(U!==dI)J.default=U},cI=(D,$,J,X)=>{let Y=D._zod.def;hD(Y.innerType,$,X);let Q=$.seen.get(D);if(Q.ref=Y.innerType,$.io!=="input")return;let U=Xu(Y.defaultValue,D,$,J,X);if(U!==dI)J._prefault=U},pI=(D,$,J,X)=>{let Y=D._zod.def;hD(Y.innerType,$,X);let Q=$.seen.get(D);Q.ref=Y.innerType;let U;try{U=Y.catchValue(void 0)}catch{L0(D,$,J,X,"Dynamic catch values are not supported in JSON Schema");return}J.default=U},nI=(D,$,J,X)=>{let Y=D._zod.def,Q=Y.in._zod.traits.has("$ZodTransform"),U=$.io==="input"?Q?Y.out:Y.in:Y.out;hD(U,$,X);let F=$.seen.get(D);F.ref=U},rI=(D,$,J,X)=>{let Y=D._zod.def;hD(Y.innerType,$,X);let Q=$.seen.get(D);Q.ref=Y.innerType,J.readOnly=!0},tI=(D,$,J,X)=>{let Y=D._zod.def;hD(Y.innerType,$,X);let Q=$.seen.get(D);Q.ref=Y.innerType},XQ=(D,$,J,X)=>{let Y=D._zod.def;hD(Y.innerType,$,X);let Q=$.seen.get(D);Q.ref=Y.innerType},oI=(D,$,J,X)=>{let Y=D._zod.innerType;hD(Y,$,X);let Q=$.seen.get(D);Q.ref=Y},$Q;var g7=S(()=>{C4();C2();_7();e();JJD={greater_than:(D,$)=>o2(D,$.inclusive?"minimum":"exclusiveMinimum",$.value),less_than:(D,$)=>a2(D,$.inclusive?"maximum":"exclusiveMaximum",$.value),multiple_of:(D,$)=>s_(D,$.value),number_format:a_(a5),bigint_format:a_(s5),min_length:t_,max_length:o_,length_equals:(D,$)=>r_(D,$.length),min_size:t_,max_size:o_,size_equals:(D,$)=>r_(D,$.size),string_format:(D,$)=>{if($u(D,$.format),$.pattern)e_(D,$.pattern);if($.format==="base64"||$.format==="base64url")D.contentEncoding=$.format;if($.local||$.precision===-1)D.laxFormat=!0},mime_type:(D,$)=>Du(D,$.mime)};XJD={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},YJD=new Map([[qY,YG],[H7,QG]]);ZI=new WeakMap;dI=Symbol();$Q={string:zI,number:HI,boolean:II,bigint:BI,symbol:OI,null:NI,undefined:VI,void:wI,never:jI,any:LI,unknown:RI,date:MI,enum:AI,literal:vI,nan:EI,template_literal:TI,file:PI,success:bI,custom:SI,function:CI,transform:kI,map:_I,set:uI,array:gI,object:xI,union:JQ,intersection:fI,tuple:yI,record:hI,nullable:mI,nonoptional:lI,default:iI,prefault:cI,catch:pI,pipe:nI,readonly:rI,promise:tI,optional:XQ,lazy:oI}});class aI{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(D){this.ctx.counter=D}get seen(){return this.ctx.seen}constructor(D){let $=D?.target??"draft-2020-12";if($==="draft-4")$="draft-04";if($==="draft-7")$="draft-07";this.ctx=A1({processors:$Q,target:$,...D?.metadata&&{metadata:D.metadata},...D?.unrepresentable&&{unrepresentable:D.unrepresentable},...D?.override&&{override:D.override},...D?.io&&{io:D.io}})}process(D,$={path:[],schemaPath:[]}){return hD(D,this.ctx,$)}emit(D,$){if($){if($.cycles)this.ctx.cycles=$.cycles;if($.reused)this.ctx.reused=$.reused;if($.external)this.ctx.external=$.external}this.ctx.sharedDefsExtractedFor=void 0,this.ctx.sharedEmitDoneFor=void 0,v1(this.ctx,D);let J=E1(this.ctx,D),{"~standard":X,...Y}=J;return Y}}var Yu=S(()=>{g7();_7()});var Qu={};var Uu=()=>{};var h6={};y0(h6,{withParser:()=>vY,version:()=>dG,validateURL:()=>UY,validateAsync:()=>Q7,validate:()=>Y7,util:()=>h,urlProtocolOk:()=>WY,urlHostnameOk:()=>FY,treeifyError:()=>xq,toZod:()=>n5,toJSONSchema:()=>YQ,toDotPath:()=>cC,stripTabAndNewline:()=>G7,standardProps:()=>QY,safeParseAsync:()=>S9D,safeParse:()=>b9D,safeEncodeAsync:()=>m9D,safeEncode:()=>y9D,safeDecodeAsync:()=>l9D,safeDecode:()=>h9D,registry:()=>AY,regexes:()=>p$,processSchema:()=>hD,process:()=>hD,prettifyError:()=>fq,parseURLObject:()=>Zk,parseAsync:()=>yX,parse:()=>fX,meta:()=>FI,mergeValues:()=>S2,memoizer:()=>j7,locales:()=>v7,isValidJWT:()=>HY,isValidIPv6:()=>Z7,isValidIBAN:()=>zY,isValidCreditCard:()=>ZY,isValidCIDRv6:()=>KY,isValidBase64URL:()=>GY,isValidBase64:()=>z7,isRecursiveSchema:()=>RY,isBackEdge:()=>MY,initializeContext:()=>A1,handleUnrepresentable:()=>L0,globalRegistry:()=>_0,globalConfig:()=>E0,getDiscriminatedOption:()=>_Z,formatError:()=>X7,flattenError:()=>J7,finalize:()=>E1,extractDefs:()=>v1,encodeAsync:()=>x9D,encode:()=>u9D,describe:()=>UI,decodeAsync:()=>f9D,decode:()=>g9D,createToJSONSchemaMethod:()=>qI,createStandardJSONSchemaMethod:()=>t2,config:()=>Z0,compileFn:()=>EY,compile:()=>MH,clone:()=>fD,canParseURL:()=>oG,base64urlCharset:()=>H7,base64Charset:()=>qY,_xor:()=>k3D,_xid:()=>hY,_void:()=>aH,_uuidv7:()=>_Y,_uuidv6:()=>kY,_uuidv4:()=>CY,_uuid:()=>SY,_url:()=>T7,_uppercase:()=>f2,_unknown:()=>tH,_union:()=>C3D,_undefined:()=>pH,_ulid:()=>yY,_uint64:()=>iH,_uint32:()=>fH,_tuple:()=>g3D,_trim:()=>c2,_transform:()=>d3D,_toUpperCase:()=>n2,_toLowerCase:()=>p2,_templateLiteral:()=>s3D,_symbol:()=>cH,_superRefine:()=>QI,_success:()=>r3D,_stringbool:()=>WI,_stringFormat:()=>m4,_string:()=>vH,_startsWith:()=>h2,_slugify:()=>r2,_size:()=>f4,_set:()=>y3D,_safeParseAsync:()=>T2,_safeParse:()=>E2,_safeEncodeAsync:()=>pX,_safeEncode:()=>iX,_safeDecodeAsync:()=>nX,_safeDecode:()=>cX,_regex:()=>g2,_refine:()=>YI,_record:()=>x3D,_readonly:()=>a3D,_property:()=>DQ,_properties:()=>l2,_promise:()=>DJD,_positive:()=>oY,_pipe:()=>o3D,_parseAsync:()=>v2,_parse:()=>A2,_overwrite:()=>Y6,_optional:()=>i3D,_number:()=>CH,_nullable:()=>c3D,_null:()=>nH,_normalize:()=>i2,_nonpositive:()=>sY,_nonoptional:()=>n3D,_nonnegative:()=>eY,_never:()=>oH,_negative:()=>aY,_nativeEnum:()=>m3D,_nanoid:()=>gY,_nan:()=>DI,_multipleOf:()=>R1,_minSize:()=>R6,_minLength:()=>y6,_min:()=>T$,_mime:()=>d2,_maxSize:()=>M1,_maxLength:()=>y4,_max:()=>E$,_map:()=>f3D,_mac:()=>TH,_lte:()=>E$,_lt:()=>j6,_lowercase:()=>x2,_literal:()=>l3D,_length:()=>h4,_lazy:()=>e3D,_ksuid:()=>mY,_jwt:()=>tY,_isoTime:()=>S7,_isoDuration:()=>C7,_isoDateTime:()=>P7,_isoDate:()=>b7,_ipv6:()=>dY,_ipv4:()=>lY,_intersection:()=>u3D,_int64:()=>dH,_int32:()=>xH,_int:()=>_H,_includes:()=>y2,_iban:()=>bH,_guid:()=>bY,_gte:()=>T$,_gt:()=>L6,_float64:()=>gH,_float32:()=>uH,_file:()=>JI,_enum:()=>h3D,_endsWith:()=>m2,_encodeAsync:()=>lX,_encode:()=>hX,_emoji:()=>uY,_email:()=>PY,_e164:()=>rY,_discriminatedUnion:()=>_3D,_default:()=>p3D,_decodeAsync:()=>dX,_decode:()=>mX,_date:()=>sH,_custom:()=>XI,_cuid2:()=>fY,_cuid:()=>xY,_creditCard:()=>PH,_coercedString:()=>EH,_coercedNumber:()=>kH,_coercedDate:()=>eH,_coercedBoolean:()=>hH,_coercedBigint:()=>lH,_cidrv6:()=>cY,_cidrv4:()=>iY,_check:()=>m_,_catch:()=>t3D,_boolean:()=>yH,_bigint:()=>mH,_base64url:()=>nY,_base64:()=>pY,_array:()=>$I,_any:()=>rH,ZodCompileUnsupportedError:()=>ED,ZodCompileAsyncError:()=>w6,URL_UNPARSEABLE:()=>q7,URL_BAD_FORMAT:()=>tG,TimePrecision:()=>SH,NEVER:()=>Cq,JSONSchemaGenerator:()=>aI,JSONSchema:()=>Qu,INVALID:()=>X$,Doc:()=>b2,$output:()=>NH,$input:()=>VH,$constructor:()=>T,$brand:()=>kq,$ZodXor:()=>kZ,$ZodXID:()=>XZ,$ZodVoid:()=>PZ,$ZodUnknown:()=>EZ,$ZodUnion:()=>B7,$ZodUndefined:()=>MZ,$ZodUUID:()=>nG,$ZodURL:()=>aG,$ZodULID:()=>JZ,$ZodType:()=>zD,$ZodTuple:()=>OY,$ZodTransform:()=>dZ,$ZodTemplateLiteral:()=>Dz,$ZodSymbol:()=>RZ,$ZodSuccess:()=>tZ,$ZodStringFormat:()=>yD,$ZodString:()=>k4,$ZodSet:()=>yZ,$ZodRegistry:()=>wH,$ZodRecord:()=>xZ,$ZodRealError:()=>O$,$ZodReadonly:()=>eZ,$ZodPromise:()=>Jz,$ZodPreprocess:()=>sZ,$ZodPrefault:()=>nZ,$ZodPipe:()=>VY,$ZodOptional:()=>NY,$ZodObjectJIT:()=>CZ,$ZodObject:()=>Ik,$ZodNumberFormat:()=>jZ,$ZodNumber:()=>IY,$ZodNullable:()=>cZ,$ZodNull:()=>AZ,$ZodNonOptional:()=>rZ,$ZodNever:()=>TZ,$ZodNanoID:()=>eG,$ZodNaN:()=>aZ,$ZodMap:()=>fZ,$ZodMAC:()=>GZ,$ZodLiteral:()=>mZ,$ZodLazy:()=>N7,$ZodKSUID:()=>YZ,$ZodJWT:()=>VZ,$ZodIntersection:()=>gZ,$ZodISOTime:()=>FZ,$ZodISODuration:()=>WZ,$ZodISODateTime:()=>QZ,$ZodISODate:()=>UZ,$ZodIPv6:()=>qZ,$ZodIPv4:()=>KZ,$ZodIBAN:()=>NZ,$ZodGUID:()=>pG,$ZodFunction:()=>$z,$ZodFile:()=>lZ,$ZodExactOptional:()=>iZ,$ZodError:()=>gq,$ZodEnum:()=>hZ,$ZodEncodeError:()=>b4,$ZodEmoji:()=>sG,$ZodEmail:()=>rG,$ZodE164:()=>BZ,$ZodDiscriminatedUnion:()=>uZ,$ZodDefault:()=>pZ,$ZodDate:()=>bZ,$ZodCyclicError:()=>Uz,$ZodCustomStringFormat:()=>wZ,$ZodCustom:()=>Xz,$ZodCreditCard:()=>OZ,$ZodCodec:()=>O7,$ZodCheckUpperCase:()=>uG,$ZodCheckStringFormat:()=>P2,$ZodCheckStartsWith:()=>xG,$ZodCheckSizeEquals:()=>PG,$ZodCheckRegex:()=>kG,$ZodCheckProperty:()=>yG,$ZodCheckProperties:()=>hG,$ZodCheckOverwrite:()=>lG,$ZodCheckNumberFormat:()=>AG,$ZodCheckMultipleOf:()=>MG,$ZodCheckMinSize:()=>TG,$ZodCheckMinLength:()=>SG,$ZodCheckMimeType:()=>mG,$ZodCheckMaxSize:()=>EG,$ZodCheckMaxLength:()=>bG,$ZodCheckLowerCase:()=>_G,$ZodCheckLessThan:()=>sX,$ZodCheckLengthEquals:()=>CG,$ZodCheckIncludes:()=>gG,$ZodCheckGreaterThan:()=>eX,$ZodCheckEndsWith:()=>fG,$ZodCheckBigIntFormat:()=>vG,$ZodCheck:()=>nD,$ZodCatch:()=>oZ,$ZodCUID2:()=>$Z,$ZodCUID:()=>DZ,$ZodCIDRv6:()=>zZ,$ZodCIDRv4:()=>ZZ,$ZodBoolean:()=>I7,$ZodBigIntFormat:()=>LZ,$ZodBigInt:()=>BY,$ZodBase64URL:()=>IZ,$ZodBase64:()=>HZ,$ZodAsyncError:()=>v$,$ZodArray:()=>SZ,$ZodAny:()=>vZ});var P$=S(()=>{e();e();C4();OH();g7();Yu();Uu();L1();hq();yq();C2();Fz();DY();iG();E7();h_();l_();_7()});var QQ={};y0(QQ,{uppercase:()=>f2,trim:()=>c2,toUpperCase:()=>n2,toLowerCase:()=>p2,startsWith:()=>h2,slugify:()=>r2,size:()=>f4,regex:()=>g2,property:()=>DQ,properties:()=>l2,positive:()=>oY,overwrite:()=>Y6,normalize:()=>i2,nonpositive:()=>sY,nonnegative:()=>eY,negative:()=>aY,multipleOf:()=>R1,minSize:()=>R6,minLength:()=>y6,mime:()=>d2,maxSize:()=>M1,maxLength:()=>y4,lte:()=>E$,lt:()=>j6,lowercase:()=>x2,length:()=>h4,includes:()=>y2,gte:()=>T$,gt:()=>L6,endsWith:()=>m2});var UQ=S(()=>{P$()});function FQ(D,$,J){Object.defineProperty(D,$,{configurable:!0,enumerable:!1,get(){let X=J(this);return Object.defineProperty(this,$,{value:X,configurable:!0,writable:!0}),X},set(X){Object.defineProperty(this,$,{value:X,configurable:!0,writable:!0})}})}var Fu,Wu=(D,$)=>{gq.init(D,$),D.name="ZodError";let J=Object.getPrototypeOf(D);if(Fu.has(J))return;Fu.add(J),FQ(J,"format",(X)=>(Y)=>X7(X,Y)),FQ(J,"flatten",(X)=>(Y)=>J7(X,Y)),FQ(J,"addIssue",(X)=>(Y)=>{X.issues.push(Y),X.message=JSON.stringify(X.issues,j2,2)}),FQ(J,"addIssues",(X)=>(Y)=>{X.issues.push(...Y),X.message=JSON.stringify(X.issues,j2,2)}),Object.defineProperty(J,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}})},FJD,N$;var sI=S(()=>{P$();P$();e();Fu=new WeakSet([Object.prototype,Error.prototype]);FJD=T("ZodError",Wu),N$=T("ZodError",Wu,void 0,{Parent:Error})});var eI,DB,$B,JB,XB,YB,QB,UB,FB,WB,KB,qB;var GB=S(()=>{P$();sI();P$();eI=A2(N$),DB=v2(N$),$B=E2(N$),JB=T2(N$),XB=hX(N$),YB=mX(N$),QB=lX(N$),UB=dX(N$),FB=iX(N$),WB=cX(N$),KB=pX(N$),qB=nX(N$)});var Q9={};y0(Q9,{xor:()=>Jg,xid:()=>Lu,void:()=>ou,uuidv7:()=>Hu,uuidv6:()=>zu,uuidv4:()=>Zu,uuid:()=>Gu,url:()=>Iu,unknown:()=>l4,union:()=>Y9,undefined:()=>ru,ulid:()=>ju,uint64:()=>pu,uint32:()=>du,tuple:()=>SB,transform:()=>SQ,templateLiteral:()=>Bg,symbol:()=>nu,superRefine:()=>YO,success:()=>Zg,stringbool:()=>Mg,stringFormat:()=>uu,string:()=>x7,strictObject:()=>Dg,set:()=>Fg,refine:()=>XO,record:()=>CB,readonly:()=>aB,promise:()=>Og,preprocess:()=>vg,prefault:()=>dB,pipe:()=>KQ,partialRecord:()=>Yg,optional:()=>d4,object:()=>eu,number:()=>IB,nullish:()=>Gg,nullable:()=>f7,null:()=>wB,nonoptional:()=>iB,never:()=>PQ,nativeEnum:()=>Wg,nanoid:()=>Nu,nan:()=>zg,meta:()=>Lg,map:()=>Ug,mac:()=>Au,looseRecord:()=>Qg,looseObject:()=>$g,literal:()=>Kg,lazy:()=>DO,ksuid:()=>Ru,keyof:()=>su,jwt:()=>_u,json:()=>Ag,ipv6:()=>vu,ipv4:()=>Mu,invertCodec:()=>Ig,intersection:()=>PB,int64:()=>cu,int32:()=>lu,int:()=>WQ,instanceof:()=>Rg,iban:()=>ku,httpUrl:()=>Bu,hostname:()=>gu,hex:()=>xu,hash:()=>yu,guid:()=>qu,function:()=>Ng,float64:()=>mu,float32:()=>hu,file:()=>qg,exactOptional:()=>fB,enum:()=>bQ,emoji:()=>Ou,email:()=>Ku,e164:()=>Su,discriminatedUnion:()=>Xg,describe:()=>jg,date:()=>au,custom:()=>wg,currencyCode:()=>fu,cuid2:()=>wu,cuid:()=>Vu,creditCard:()=>Cu,codec:()=>Hg,cidrv6:()=>Tu,cidrv4:()=>Eu,check:()=>Vg,catch:()=>nB,boolean:()=>BB,bigint:()=>iu,base64url:()=>bu,base64:()=>Pu,array:()=>m7,any:()=>tu,_function:()=>Ng,_default:()=>mB,_ZodString:()=>qQ,ZodXor:()=>vB,ZodXID:()=>NQ,ZodVoid:()=>MB,ZodUnknown:()=>LB,ZodUnion:()=>d7,ZodUndefined:()=>NB,ZodUUID:()=>M6,ZodURL:()=>y7,ZodULID:()=>OQ,ZodType:()=>VD,ZodTuple:()=>bB,ZodTransform:()=>xB,ZodTemplateLiteral:()=>sB,ZodSymbol:()=>OB,ZodSuccess:()=>cB,ZodStringFormat:()=>cD,ZodString:()=>D9,ZodSet:()=>_B,ZodRecord:()=>s2,ZodReadonly:()=>oB,ZodPromise:()=>$O,ZodPreprocess:()=>tB,ZodPrefault:()=>lB,ZodPipe:()=>c7,ZodOptional:()=>i7,ZodObject:()=>l7,ZodNumberFormat:()=>p4,ZodNumber:()=>$9,ZodNullable:()=>yB,ZodNull:()=>VB,ZodNonOptional:()=>kQ,ZodNever:()=>RB,ZodNanoID:()=>HQ,ZodNaN:()=>rB,ZodMap:()=>kB,ZodMAC:()=>ZB,ZodLiteral:()=>uB,ZodLazy:()=>eB,ZodKSUID:()=>VQ,ZodJWT:()=>EQ,ZodIntersection:()=>TB,ZodInstanceOf:()=>QO,ZodISOTime:()=>b1,ZodISODuration:()=>S1,ZodISODateTime:()=>T1,ZodISODate:()=>P1,ZodIPv6:()=>jQ,ZodIPv4:()=>wQ,ZodIBAN:()=>HB,ZodGUID:()=>ZQ,ZodFunction:()=>JO,ZodFile:()=>gB,ZodExactOptional:()=>CQ,ZodEnum:()=>e2,ZodEmoji:()=>zQ,ZodEmail:()=>GQ,ZodE164:()=>vQ,ZodDiscriminatedUnion:()=>EB,ZodDefault:()=>hB,ZodDate:()=>h7,ZodCustomStringFormat:()=>c4,ZodCustom:()=>n7,ZodCreditCard:()=>zB,ZodCodec:()=>p7,ZodCatch:()=>pB,ZodCUID2:()=>BQ,ZodCUID:()=>IQ,ZodCIDRv6:()=>RQ,ZodCIDRv4:()=>LQ,ZodBoolean:()=>J9,ZodBigIntFormat:()=>TQ,ZodBigInt:()=>X9,ZodBase64URL:()=>AQ,ZodBase64:()=>MQ,ZodArray:()=>AB,ZodAny:()=>jB});function KJD(){if(!E0.localeError)Z0(L7())}function i4(){if(!E0.memoizer)Z0({memoizer:j7()})}function x7(D){return vH(D9,D)}function Ku(D){return PY(GQ,D)}function qu(D){return bY(ZQ,D)}function Gu(D){return SY(M6,D)}function Zu(D){return CY(M6,D)}function zu(D){return kY(M6,D)}function Hu(D){return _Y(M6,D)}function Iu(D){return T7(y7,D)}function Bu(D){return T7(y7,{protocol:U7,hostname:FG,...h.normalizeParams(D)})}function Ou(D){return uY(zQ,D)}function Nu(D){return gY(HQ,D)}function Vu(D){return xY(IQ,D)}function wu(D){return fY(BQ,D)}function ju(D){return yY(OQ,D)}function Lu(D){return hY(NQ,D)}function Ru(D){return mY(VQ,D)}function Mu(D){return lY(wQ,D)}function Au(D){return TH(ZB,D)}function vu(D){return dY(jQ,D)}function Eu(D){return iY(LQ,D)}function Tu(D){return cY(RQ,D)}function Pu(D){return pY(MQ,D)}function bu(D){return nY(AQ,D)}function Su(D){return rY(vQ,D)}function Cu(D){return PH(zB,D)}function ku(D){return bH(HB,D)}function _u(D){return tY(EQ,D)}function uu(D,$,J={}){return m4(c4,D,$,J)}function gu(D){return m4(c4,"hostname",UG,D)}function xu(D){return m4(c4,"hex",jG,D)}function fu(D){return m4(c4,"currency_code",KG,D)}function yu(D,$){let J=$?.enc??"hex",X=`${D}_${J}`,Y=p$[X];if(!Y)throw Error(`Unrecognized hash format: ${X}`);return m4(c4,X,Y,$)}function IB(D){return CH($9,D)}function WQ(D){return _H(p4,D)}function hu(D){return uH(p4,D)}function mu(D){return gH(p4,D)}function lu(D){return xH(p4,D)}function du(D){return fH(p4,D)}function BB(D){return yH(J9,D)}function iu(D){return mH(X9,D)}function cu(D){return dH(TQ,D)}function pu(D){return iH(TQ,D)}function nu(D){return cH(OB,D)}function ru(D){return pH(NB,D)}function wB(D){return nH(VB,D)}function tu(){return rH(jB)}function l4(){return tH(LB)}function PQ(D){return oH(RB,D)}function ou(D){return aH(MB,D)}function au(D){return sH(h7,D)}function m7(D,$){return $I(AB,D,$)}function su(D){let $=D._zod.def.shape;return bQ(Object.keys($))}function eu(D,$){let J={type:"object",shape:D??{},...h.normalizeParams($)};return new l7(J)}function Dg(D,$){return new l7({type:"object",shape:D,catchall:PQ(),...h.normalizeParams($)})}function $g(D,$){return new l7({type:"object",shape:D,catchall:l4(),...h.normalizeParams($)})}function Y9(D,$){return new d7({type:"union",options:D,...h.normalizeParams($)})}function Jg(D,$){return new vB({type:"union",options:D,inclusive:!1,...h.normalizeParams($)})}function Xg(D,$,J){return new EB({type:"union",options:$,discriminator:D,...h.normalizeParams(J)})}function PB(D,$){return new TB({type:"intersection",left:D,right:$})}function SB(D,$,J){let X=$ instanceof zD,Y=X?J:$;return new bB({type:"tuple",items:D,rest:X?$:null,...h.normalizeParams(Y)})}function CB(D,$,J){if(!$||!$._zod)return new s2({type:"record",keyType:x7(),valueType:D,...h.normalizeParams($)});return new s2({type:"record",keyType:D,valueType:$,...h.normalizeParams(J)})}function Yg(D,$,J){return new s2({type:"record",keyType:D,valueType:$,...h.normalizeParams(J),partial:!0})}function Qg(D,$,J){return new s2({type:"record",keyType:D,valueType:$,mode:"loose",...h.normalizeParams(J)})}function Ug(D,$,J){return new kB({type:"map",keyType:D,valueType:$,...h.normalizeParams(J)})}function Fg(D,$){return new _B({type:"set",valueType:D,...h.normalizeParams($)})}function bQ(D,$){let J=Array.isArray(D)?Object.fromEntries(D.map((X)=>[X,X])):D;return new e2({type:"enum",entries:J,...h.normalizeParams($)})}function Wg(D,$){return new e2({type:"enum",entries:D,...h.normalizeParams($)})}function Kg(D,$){return new uB({type:"literal",values:Array.isArray(D)?D:[D],...h.normalizeParams($)})}function qg(D){return JI(gB,D)}function SQ(D){return new xB({type:"transform",transform:D})}function d4(D){return new i7({type:"optional",innerType:D})}function fB(D){return new CQ({type:"optional",innerType:D})}function f7(D){return new yB({type:"nullable",innerType:D})}function Gg(D){return d4(f7(D))}function mB(D,$){return new hB({type:"default",innerType:D,get defaultValue(){return typeof $==="function"?$():h.shallowClone($)}})}function dB(D,$){return new lB({type:"prefault",innerType:D,get defaultValue(){return typeof $==="function"?$():h.shallowClone($)}})}function iB(D,$){return new kQ({type:"nonoptional",innerType:D,...h.normalizeParams($)})}function Zg(D){return new cB({type:"success",innerType:D})}function nB(D,$){return new pB({type:"catch",innerType:D,catchValue:typeof $==="function"?$:h.constantCatch($)})}function zg(D){return DI(rB,D)}function KQ(D,$){return new c7({type:"pipe",in:D,out:$})}function Hg(D,$,J){return new p7({type:"pipe",in:D,out:$,transform:J.decode,reverseTransform:J.encode})}function Ig(D){let $=D._zod.def;return new p7({type:"pipe",in:$.out,out:$.in,transform:$.reverseTransform,reverseTransform:$.transform})}function aB(D){return new oB({type:"readonly",innerType:D})}function Bg(D,$){return new sB({type:"template_literal",parts:D,...h.normalizeParams($)})}function DO(D){return new eB({type:"lazy",getter:D})}function Og(D){return new $O({type:"promise",innerType:D})}function Ng(D){return new JO({type:"function",input:Array.isArray(D?.input)?SB(D?.input):D?.input??m7(l4()),output:D?.output??l4()})}function Vg(D){let $=new nD({check:"custom"});return $._zod.check=D,$}function wg(D,$){return XI(n7,D??(()=>!0),$)}function XO(D,$={}){return YI(n7,D,$)}function YO(D,$){return QI(D,$)}function Rg(D,$={}){let J=new QO({type:"custom",check:"custom",fn:(X)=>X instanceof D,abort:!0,...h.normalizeParams($)});return J._zod.bag.Class=D,J._zod.check=(X)=>{if(!(X.value instanceof D))X.issues.push({code:"invalid_type",expected:D.name,input:X.value,inst:J,path:[...J._zod.def.path??[]]})},J}function Ag(D){let $=DO(()=>{return Y9([x7(D),IB(),BB(),wB(),m7($),CB(x7(),$)])});return $}function vg(D,$){return new tB({type:"pipe",in:SQ(D),out:$})}var VD,qQ,D9,cD,T1,P1,b1,S1,GQ,ZQ,M6,y7,zQ,HQ,IQ,BQ,OQ,NQ,VQ,wQ,ZB,jQ,LQ,RQ,MQ,AQ,vQ,zB,HB,EQ,c4,$9,p4,J9,X9,TQ,OB,NB,VB,jB,LB,RB,MB,h7,AB,l7,d7,vB,EB,TB,bB,s2,kB,_B,e2,uB,gB,xB,i7,CQ,yB,hB,lB,kQ,cB,pB,rB,c7,p7,tB,oB,sB,eB,$O,JO,n7,jg,Lg,QO,Mg=(...D)=>WI({Codec:p7,Boolean:J9,String:D9},...D);var C1=S(()=>{P$();P$();g7();C4();_7();Vz();UQ();GB();VD=T("ZodType",(D,$)=>{return KJD(),zD.init(D,$),D.def=$,D.type=$.type,D},{check(...D){let $=this.def;return this.clone(h.mergeDefs($,{checks:[...$.checks??[],...D.map((J)=>typeof J==="function"?{_zod:{check:J,def:{check:"custom"},onattach:[]}}:J)]}),{parent:!0})},with(...D){return this.check(...D)},clone(D,$){return fD(this,D,$)},brand(){return this},register(D,$){return D.add(this,$),this},refine(D,$){return this.check(XO(D,$))},superRefine(D,$){return this.check(YO(D,$))},overwrite(D){return this.check(Y6(D))},optional(){return d4(this)},exactOptional(){return fB(this)},nullable(){return f7(this)},nullish(){return d4(f7(this))},nonoptional(D){return iB(this,D)},array(){return m7(this)},or(D){return Y9([this,D])},and(D){return PB(this,D)},transform(D){return KQ(this,SQ(D))},default(D){return mB(this,D)},prefault(D){return dB(this,D)},catch(D){return nB(this,D)},pipe(D){return KQ(this,D)},readonly(){return aB(this)},describe(D){let $=this.clone();return _0.add($,{description:D}),$},meta(...D){if(D.length===0)return _0.get(this);let $=this.clone();return _0.add($,D[0]),$},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(D,...$){return $.length===0?D(this):D(this,...$)},get "~standard"(){return h.hide(this,"~standard",{...QY(this),jsonSchema:{input:t2(this,"input"),output:t2(this,"output")}})},set "~standard"(D){h.own(this,"~standard",D)},parse:function D($,J){return eI(this,$,J,{callee:D})},parseAsync:async function D($,J){return await DB(this,$,J,{callee:D})},safeParse(D,$){return $B(this,D,$)},async safeParseAsync(D,$){return JB(this,D,$)},get spa(){return this?.safeParseAsync},set spa(D){h.own(this,"spa",D)},validate(D,$){return Y7(this,D,$)},validateAsync(D,$){return Q7(this,D,$)},encode:function D($,J){return XB(this,$,J,{callee:D})},decode:function D($,J){return YB(this,$,J,{callee:D})},encodeAsync:async function D($,J){return await QB(this,$,J,{callee:D})},decodeAsync:async function D($,J){return await UB(this,$,J,{callee:D})},safeEncode(D,$){return FB(this,D,$)},safeDecode(D,$){return WB(this,D,$)},async safeEncodeAsync(D,$){return KB(this,D,$)},async safeDecodeAsync(D,$){return qB(this,D,$)},toJSONSchema(D){return qI(this,{})(D)},get description(){return _0.get(this)?.description},get _def(){return this._zod.def}}),qQ=T("_ZodString",(D,$)=>{k4.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>zI(D,J,X,Y)},h.derived({format:(D)=>R0(D).format??null,minLength:(D)=>R0(D).minimum??null,maxLength:(D)=>R0(D).maximum??null},{regex(...D){return this.check(g2(...D))},includes(...D){return this.check(y2(...D))},startsWith(...D){return this.check(h2(...D))},endsWith(...D){return this.check(m2(...D))},min(...D){return this.check(y6(...D))},max(...D){return this.check(y4(...D))},length(...D){return this.check(h4(...D))},nonempty(...D){return this.check(y6(1,...D))},lowercase(D){return this.check(x2(D))},uppercase(D){return this.check(f2(D))},trim(){return this.check(c2())},normalize(...D){return this.check(i2(...D))},toLowerCase(){return this.check(p2())},toUpperCase(){return this.check(n2())},slugify(){return this.check(r2())}})),D9=T("ZodString",(D,$)=>{k4.init(D,$),qQ.init(D,$)},{email(D){return this.check(PY(GQ,D))},url(D){return this.check(T7(y7,D))},jwt(D){return this.check(tY(EQ,D))},emoji(D){return this.check(uY(zQ,D))},guid(D){return this.check(bY(ZQ,D))},uuid(D){return this.check(SY(M6,D))},uuidv4(D){return this.check(CY(M6,D))},uuidv6(D){return this.check(kY(M6,D))},uuidv7(D){return this.check(_Y(M6,D))},nanoid(D){return this.check(gY(HQ,D))},cuid(D){return this.check(xY(IQ,D))},cuid2(D){return this.check(fY(BQ,D))},ulid(D){return this.check(yY(OQ,D))},base64(D){return this.check(pY(MQ,D))},base64url(D){return this.check(nY(AQ,D))},xid(D){return this.check(hY(NQ,D))},ksuid(D){return this.check(mY(VQ,D))},ipv4(D){return this.check(lY(wQ,D))},ipv6(D){return this.check(dY(jQ,D))},cidrv4(D){return this.check(iY(LQ,D))},cidrv6(D){return this.check(cY(RQ,D))},e164(D){return this.check(rY(vQ,D))},datetime(D){return this.check(P7(T1,D))},date(D){return this.check(b7(P1,D))},time(D){return this.check(S7(b1,D))},duration(D){return this.check(C7(S1,D))}});cD=T("ZodStringFormat",(D,$)=>{yD.init(D,$),qQ.init(D,$)}),T1=T("ZodISODateTime",(D,$)=>{QZ.init(D,$),cD.init(D,$)}),P1=T("ZodISODate",(D,$)=>{UZ.init(D,$),cD.init(D,$)}),b1=T("ZodISOTime",(D,$)=>{FZ.init(D,$),cD.init(D,$)}),S1=T("ZodISODuration",(D,$)=>{WZ.init(D,$),cD.init(D,$)}),GQ=T("ZodEmail",(D,$)=>{rG.init(D,$),cD.init(D,$)});ZQ=T("ZodGUID",(D,$)=>{pG.init(D,$),cD.init(D,$)});M6=T("ZodUUID",(D,$)=>{nG.init(D,$),cD.init(D,$)});y7=T("ZodURL",(D,$)=>{aG.init(D,$),cD.init(D,$)});zQ=T("ZodEmoji",(D,$)=>{sG.init(D,$),cD.init(D,$)});HQ=T("ZodNanoID",(D,$)=>{eG.init(D,$),cD.init(D,$)});IQ=T("ZodCUID",(D,$)=>{DZ.init(D,$),cD.init(D,$)});BQ=T("ZodCUID2",(D,$)=>{$Z.init(D,$),cD.init(D,$)});OQ=T("ZodULID",(D,$)=>{JZ.init(D,$),cD.init(D,$)});NQ=T("ZodXID",(D,$)=>{XZ.init(D,$),cD.init(D,$)});VQ=T("ZodKSUID",(D,$)=>{YZ.init(D,$),cD.init(D,$)});wQ=T("ZodIPv4",(D,$)=>{KZ.init(D,$),cD.init(D,$)});ZB=T("ZodMAC",(D,$)=>{GZ.init(D,$),cD.init(D,$)});jQ=T("ZodIPv6",(D,$)=>{qZ.init(D,$),cD.init(D,$)});LQ=T("ZodCIDRv4",(D,$)=>{ZZ.init(D,$),cD.init(D,$)});RQ=T("ZodCIDRv6",(D,$)=>{zZ.init(D,$),cD.init(D,$)});MQ=T("ZodBase64",(D,$)=>{HZ.init(D,$),cD.init(D,$)});AQ=T("ZodBase64URL",(D,$)=>{IZ.init(D,$),cD.init(D,$)});vQ=T("ZodE164",(D,$)=>{BZ.init(D,$),cD.init(D,$)});zB=T("ZodCreditCard",(D,$)=>{OZ.init(D,$),cD.init(D,$)});HB=T("ZodIBAN",(D,$)=>{NZ.init(D,$),cD.init(D,$)});EQ=T("ZodJWT",(D,$)=>{VZ.init(D,$),cD.init(D,$)});c4=T("ZodCustomStringFormat",(D,$)=>{wZ.init(D,$),cD.init(D,$)});$9=T("ZodNumber",(D,$)=>{IY.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>HI(D,J,X,Y),D.isFinite=!0},h.derived({minValue:(D)=>{let{minimum:$,exclusiveMinimum:J}=R0(D);return Math.max($??Number.NEGATIVE_INFINITY,J??Number.NEGATIVE_INFINITY)},maxValue:(D)=>{let{maximum:$,exclusiveMaximum:J}=R0(D);return Math.min($??Number.POSITIVE_INFINITY,J??Number.POSITIVE_INFINITY)},isInt:(D)=>{let{isInt:$,multipleOf:J}=R0(D);return!!$||!!J?.some(Number.isSafeInteger)},format:(D)=>R0(D).format??null},{gt(D,$){return this.check(L6(D,$))},gte(D,$){return this.check(T$(D,$))},min(D,$){return this.check(T$(D,$))},lt(D,$){return this.check(j6(D,$))},lte(D,$){return this.check(E$(D,$))},max(D,$){return this.check(E$(D,$))},int(D){return this.check(WQ(D))},safe(D){return this.check(WQ(D))},positive(D){return this.check(L6(0,D))},nonnegative(D){return this.check(T$(0,D))},negative(D){return this.check(j6(0,D))},nonpositive(D){return this.check(E$(0,D))},multipleOf(D,$){return this.check(R1(D,$))},step(D,$){return this.check(R1(D,$))},finite(){return this}}));p4=T("ZodNumberFormat",(D,$)=>{jZ.init(D,$),$9.init(D,$)});J9=T("ZodBoolean",(D,$)=>{I7.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>II(D,J,X,Y)});X9=T("ZodBigInt",(D,$)=>{BY.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>BI(D,J,X,Y)},h.derived({minValue:(D)=>R0(D).minimum??null,maxValue:(D)=>R0(D).maximum??null,format:(D)=>R0(D).format??null},{gte(D,$){return this.check(T$(D,$))},min(D,$){return this.check(T$(D,$))},gt(D,$){return this.check(L6(D,$))},lt(D,$){return this.check(j6(D,$))},lte(D,$){return this.check(E$(D,$))},max(D,$){return this.check(E$(D,$))},positive(D){return this.check(L6(BigInt(0),D))},negative(D){return this.check(j6(BigInt(0),D))},nonpositive(D){return this.check(E$(BigInt(0),D))},nonnegative(D){return this.check(T$(BigInt(0),D))},multipleOf(D,$){return this.check(R1(D,$))}}));TQ=T("ZodBigIntFormat",(D,$)=>{LZ.init(D,$),X9.init(D,$)});OB=T("ZodSymbol",(D,$)=>{RZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>OI(D,J,X,Y)});NB=T("ZodUndefined",(D,$)=>{MZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>VI(D,J,X,Y)});VB=T("ZodNull",(D,$)=>{AZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>NI(D,J,X,Y)});jB=T("ZodAny",(D,$)=>{vZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>LI(D,J,X,Y)});LB=T("ZodUnknown",(D,$)=>{EZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>RI(D,J,X,Y)});RB=T("ZodNever",(D,$)=>{TZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>jI(D,J,X,Y)});MB=T("ZodVoid",(D,$)=>{PZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>wI(D,J,X,Y)});h7=T("ZodDate",(D,$)=>{bZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>MI(D,J,X,Y),D.min=(J,X)=>D.check(T$(J,X)),D.max=(J,X)=>D.check(E$(J,X))},h.derived({minDate:(D)=>{let{minimum:$}=R0(D);return $?new Date($):null},maxDate:(D)=>{let{maximum:$}=R0(D);return $?new Date($):null}},{}));AB=T("ZodArray",(D,$)=>{i4(),SZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>gI(D,J,X,Y),D.element=$.element},{min(D,$){return this.check(y6(D,$))},nonempty(D){return this.check(y6(1,D))},max(D,$){return this.check(y4(D,$))},length(D,$){return this.check(h4(D,$))},unwrap(){return this.element}});l7=T("ZodObject",(D,$)=>{i4(),CZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>xI(D,J,X,Y),h.installLazyProp(D,"shape",(J)=>J._zod.def.shape,!1)},{keyof(){return bQ(Object.keys(this._zod.def.shape))},catchall(D){return this.clone(h.mergeDefs(this._zod.def,{catchall:D}))},passthrough(){return this.clone(h.mergeDefs(this._zod.def,{catchall:l4()}))},loose(){return this.clone(h.mergeDefs(this._zod.def,{catchall:l4()}))},strict(){return this.clone(h.mergeDefs(this._zod.def,{catchall:PQ()}))},strip(){return this.clone(h.mergeDefs(this._zod.def,{catchall:void 0}))},extend(D){return h.extend(this,D)},safeExtend(D){return h.safeExtend(this,D)},merge(D){return h.merge(this,D)},pick(D){return h.pick(this,D)},omit(D){return h.omit(this,D)},partial(...D){return h.partial(i7,this,D[0])},exactPartial(...D){return h.partial(CQ,this,D[0],"exactPartial")},required(...D){return h.required(kQ,this,D[0])}});d7=T("ZodUnion",(D,$)=>{B7.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>JQ(D,J,X,Y),D.options=$.options});vB=T("ZodXor",(D,$)=>{d7.init(D,$),kZ.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>JQ(D,J,X,Y),D.options=$.options});EB=T("ZodDiscriminatedUnion",(D,$)=>{d7.init(D,$),uZ.init(D,$)});TB=T("ZodIntersection",(D,$)=>{gZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>fI(D,J,X,Y)});bB=T("ZodTuple",(D,$)=>{i4(),OY.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>yI(D,J,X,Y)},{rest(D){return this.clone({...this._zod.def,rest:D})},partial(){let D=this._zod.def;if(D.checks?.length)throw Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...D,items:D.items.map(($)=>new i7({type:"optional",innerType:$}))})}});s2=T("ZodRecord",(D,$)=>{i4(),xZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>hI(D,J,X,Y),D.keyType=$.keyType,D.valueType=$.valueType});kB=T("ZodMap",(D,$)=>{i4(),fZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>_I(D,J,X,Y),D.keyType=$.keyType,D.valueType=$.valueType,D.min=(...J)=>D.check(R6(...J)),D.nonempty=(J)=>D.check(R6(1,J)),D.max=(...J)=>D.check(M1(...J)),D.size=(...J)=>D.check(f4(...J))});_B=T("ZodSet",(D,$)=>{i4(),yZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>uI(D,J,X,Y),D.min=(...J)=>D.check(R6(...J)),D.nonempty=(J)=>D.check(R6(1,J)),D.max=(...J)=>D.check(M1(...J)),D.size=(...J)=>D.check(f4(...J))});e2=T("ZodEnum",(D,$)=>{hZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(X,Y,Q)=>AI(D,X,Y,Q),D.enum=$.entries,D.options=[...D._zod.values];let J=new Set(Object.keys($.entries));D.extract=(X,Y)=>{let Q={};for(let U of X)if(J.has(U))Q[U]=$.entries[U];else throw Error(`Key ${U} not found in enum`);return new e2({...$,checks:[],...h.normalizeParams(Y),entries:Q})},D.exclude=(X,Y)=>{let Q={...$.entries};for(let U of X)if(J.has(U))delete Q[U];else throw Error(`Key ${U} not found in enum`);return new e2({...$,checks:[],...h.normalizeParams(Y),entries:Q})}});uB=T("ZodLiteral",(D,$)=>{mZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>vI(D,J,X,Y),D.values=new Set($.values),Object.defineProperty(D,"value",{get(){if($.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return $.values[0]}})});gB=T("ZodFile",(D,$)=>{lZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>PI(D,J,X,Y),D.min=(J,X)=>D.check(R6(J,X)),D.max=(J,X)=>D.check(M1(J,X)),D.mime=(J,X)=>D.check(d2(Array.isArray(J)?J:[J],X))});xB=T("ZodTransform",(D,$)=>{i4(),dZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>kI(D,J,X,Y),D._zod.parse=(J,X)=>{if(X.direction==="backward")throw new b4(D.constructor.name);J.addIssue=(Q)=>{if(typeof Q==="string")J.issues.push(h.issue(Q,J.value,$));else{let U=Q;if(U.fatal)U.continue=!1;if(U.code??(U.code="custom"),!("input"in U))U.input=J.value;U.inst??(U.inst=D),J.issues.push(h.issue(U))}};let Y=$.transform(J.value,J);if(Y instanceof Promise)return Y.then((Q)=>{return J.value=Q,J});return J.value=Y,J}});i7=T("ZodOptional",(D,$)=>{NY.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>XQ(D,J,X,Y),D.unwrap=()=>D._zod.def.innerType});CQ=T("ZodExactOptional",(D,$)=>{iZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>XQ(D,J,X,Y),D.unwrap=()=>D._zod.def.innerType});yB=T("ZodNullable",(D,$)=>{cZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>mI(D,J,X,Y),D.unwrap=()=>D._zod.def.innerType});hB=T("ZodDefault",(D,$)=>{pZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>iI(D,J,X,Y),D.unwrap=()=>D._zod.def.innerType,D.removeDefault=D.unwrap});lB=T("ZodPrefault",(D,$)=>{nZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>cI(D,J,X,Y),D.unwrap=()=>D._zod.def.innerType});kQ=T("ZodNonOptional",(D,$)=>{rZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>lI(D,J,X,Y),D.unwrap=()=>D._zod.def.innerType});cB=T("ZodSuccess",(D,$)=>{tZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>bI(D,J,X,Y),D.unwrap=()=>D._zod.def.innerType});pB=T("ZodCatch",(D,$)=>{oZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>pI(D,J,X,Y),D.unwrap=()=>D._zod.def.innerType,D.removeCatch=D.unwrap});rB=T("ZodNaN",(D,$)=>{aZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>EI(D,J,X,Y)});c7=T("ZodPipe",(D,$)=>{VY.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>nI(D,J,X,Y),D.in=$.in,D.out=$.out});p7=T("ZodCodec",(D,$)=>{c7.init(D,$),O7.init(D,$)});tB=T("ZodPreprocess",(D,$)=>{c7.init(D,$),sZ.init(D,$)}),oB=T("ZodReadonly",(D,$)=>{eZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>rI(D,J,X,Y),D.unwrap=()=>D._zod.def.innerType});sB=T("ZodTemplateLiteral",(D,$)=>{Dz.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>TI(D,J,X,Y)});eB=T("ZodLazy",(D,$)=>{N7.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>oI(D,J,X,Y),D.unwrap=()=>D._zod.def.getter()});$O=T("ZodPromise",(D,$)=>{Jz.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>tI(D,J,X,Y),D.unwrap=()=>D._zod.def.innerType});JO=T("ZodFunction",(D,$)=>{$z.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>CI(D,J,X,Y)});n7=T("ZodCustom",(D,$)=>{Xz.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>SI(D,J,X,Y)});jg=UI,Lg=FI,QO=T("ZodInstanceOf",(D,$)=>{n7.init(D,$)},{properties(D,$){return this.check(l2(D,$))}})});function GJD(D){Z0({customError:D})}function ZJD(){return Z0().customError}var qJD,UO;var Eg=S(()=>{P$();qJD={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};(function(D){})(UO||(UO={}))});var r7={};y0(r7,{time:()=>IJD,duration:()=>BJD,datetime:()=>zJD,date:()=>HJD,ZodISOTime:()=>b1,ZodISODuration:()=>S1,ZodISODateTime:()=>T1,ZodISODate:()=>P1});function zJD(D){return P7(T1,D)}function HJD(D){return b7(P1,D)}function IJD(D){return S7(b1,D)}function BJD(D){return C7(S1,D)}var _Q=S(()=>{P$();C1();C1()});function NJD(D,$){let J=D.$schema;if(J==="https://json-schema.org/draft/2020-12/schema")return"draft-2020-12";if(J==="http://json-schema.org/draft-07/schema#")return"draft-7";if(J==="http://json-schema.org/draft-04/schema#")return"draft-4";return $??"draft-2020-12"}function Tg(D,$){return D.map((J,X)=>X<$?J:J.optional())}function VJD(D){return D.replace(/~1/g,"/").replace(/~0/g,"~")}function wJD(D,$){if(!D.startsWith("#"))throw Error("External $ref is not supported, only local refs (#/...) are allowed");let J=D.slice(1).split("/").filter(Boolean);if(J.length===0)return $.rootSchema;let X=$.version==="draft-2020-12"?"$defs":"definitions";if(J[0]===X){let Y=J[1]===void 0?void 0:VJD(J[1]);if(!Y||!$.defs[Y])throw Error(`Reference not found: ${D}`);return $.defs[Y]}throw Error(`Reference not found: ${D}`)}function jJD(D,$){return JD.transform((X)=>X).check((X)=>{let Y=X.value;if(typeof Y!=="object"||Y===null||Array.isArray(Y))return;let Q=Object.getOwnPropertyNames(Y);if($.minProperties!==void 0&&Q.length<$.minProperties)X.issues.push({origin:"object",code:"too_small",minimum:$.minProperties,inclusive:!0,message:`Too small: expected object to have >=${$.minProperties} properties`,input:Y,inst:D,continue:!0});if($.maxProperties!==void 0&&Q.length>$.maxProperties)X.issues.push({origin:"object",code:"too_big",maximum:$.maxProperties,inclusive:!0,message:`Too big: expected object to have <=${$.maxProperties} properties`,input:Y,inst:D,continue:!0});if($.keySchema)for(let U of Q){let F=$.keySchema.safeParse(U);if(F.success)continue;X.issues.push({code:"invalid_key",origin:"record",issues:F.error.issues,input:U,path:[U],continue:!0})}}).pipe(D)}function FO(D,$){if(D===null)return"z";let J=typeof D;if(J!=="object"){if(J==="number"&&Number.isNaN(D))return null;let X=String(D);return`${J[0]}${X.length}:${X}`}if($.has(D))return null;$.add(D);try{if(Array.isArray(D)){let Q=[];for(let U of D){let F=FO(U,$);if(F===null)return null;Q.push(F)}return`a${Q.length}:[${Q.join(",")}]`}let X=Object.keys(D).sort(),Y=[];for(let Q of X){let U=FO(D[Q],$);if(U===null)return null;Y.push(`${Q.length}:${Q}=${U}`)}return`o${Y.length}:{${Y.join(",")}}`}finally{$.delete(D)}}function t7(D){if(typeof D!=="object"||D===null)return!1;if(Array.isArray(D))return D.some(t7);if(typeof D.$ref==="string")return!0;return Object.entries(D).some(([$,J])=>{if(LJD.has($))return t7(J);if(!RJD.has($)||typeof J!=="object"||J===null)return!1;return Object.values(J).some(t7)})}function Pg(D){return D===1?"element":"elements"}function MJD(D,$){return JD.transform((X)=>X).check((X)=>{let Y=X.value;if(!Array.isArray(Y))return;if($.uniqueItems===!0){let Q=new Map;for(let U=0;U<Y.length;U++){let F=FO(Y[U],new Set);if(F===null)continue;let W=Q.get(F);if(W===void 0){Q.set(F,U);continue}X.issues.push({code:"custom",message:`Array items must be unique: element at index ${U} duplicates the one at index ${W}`,input:Y,path:[U],continue:!0})}}if($.containsSchema){let Q=$.minContains??1,U=$.maxContains!==void 0?$.maxContains+1:Number.POSITIVE_INFINITY,F=0;for(let W of Y)if($.containsSchema.safeParse(W).success&&++F>=U)break;if(F<Q)X.issues.push({code:"custom",message:`Array must contain at least ${Q} matching ${Pg(Q)}; found ${F}`,input:Y,continue:!0});if($.maxContains!==void 0&&F>$.maxContains)X.issues.push({code:"custom",message:`Array must contain at most ${$.maxContains} matching ${Pg($.maxContains)}`,input:Y,continue:!0})}}).pipe(D)}function bg(D,$){if(D===!1)return;if(D===void 0||D===!0)return JD.any();return Q$(D,$)}function Sg(D,$){if(D.not!==void 0){if(typeof D.not==="object"&&Object.keys(D.not).length===0)return JD.never();throw Error("not is not supported in Zod (except { not: {} } for never)")}if(D.unevaluatedItems!==void 0)throw Error("unevaluatedItems is not supported");if(D.unevaluatedProperties!==void 0)throw Error("unevaluatedProperties is not supported");if(D.if!==void 0||D.then!==void 0||D.else!==void 0)throw Error("Conditional schemas (if/then/else) are not supported");if(D.dependentSchemas!==void 0||D.dependentRequired!==void 0)throw Error("dependentSchemas and dependentRequired are not supported");if(D.$ref){let Y=D.$ref;if($.refs.has(Y))return $.refs.get(Y);if($.processing.has(Y))return JD.lazy(()=>{if(!$.refs.has(Y))throw Error(`Circular reference not resolved: ${Y}`);return $.refs.get(Y)});$.processing.add(Y);let Q=wJD(Y,$),U=Q$(Q,$);return $.refs.set(Y,U),$.processing.delete(Y),U}if(D.enum!==void 0){let Y=D.enum;if($.version==="openapi-3.0"&&D.nullable===!0&&Y.length===1&&Y[0]===null)return JD.null();if(Y.length===0)return JD.never();if(Y.length===1)return JD.literal(Y[0]);if(Y.every((U)=>typeof U==="string"))return JD.enum(Y);let Q=Y.map((U)=>JD.literal(U));if(Q.length<2)return Q[0];return JD.union([Q[0],Q[1],...Q.slice(2)])}if(D.const!==void 0)return JD.literal(D.const);let J=D.type;if(Array.isArray(J)){let Y=J.map((Q)=>{let U={...D,type:Q};return Sg(U,$)});if(Y.length===0)return JD.never();if(Y.length===1)return Y[0];return JD.union(Y)}if(!J)return JD.any();let X;switch(J){case"string":{let Y=JD.string();if(D.format){let Q=D.format;if(Q==="email")Y=Y.check(JD.email());else if(Q==="uri"||Q==="uri-reference")Y=Y.check(JD.url());else if(Q==="uuid"||Q==="guid")Y=Y.check(JD.uuid());else if(Q==="date-time")Y=Y.check(JD.iso.datetime({offset:!0}));else if(Q==="date")Y=Y.check(JD.iso.date());else if(Q==="time")Y=Y.check(JD.regex(AJD));else if(Q==="duration")Y=Y.check(JD.iso.duration());else if(Q==="hostname")Y=Y.check(JD.hostname());else if(Q==="ipv4")Y=Y.check(JD.ipv4());else if(Q==="ipv6")Y=Y.check(JD.ipv6());else if(Q==="mac")Y=Y.check(JD.mac());else if(Q==="cidr")Y=Y.check(JD.cidrv4());else if(Q==="cidr-v6")Y=Y.check(JD.cidrv6());else if(Q==="base64")Y=Y.check(JD.base64());else if(Q==="base64url")Y=Y.check(JD.base64url());else if(Q==="e164")Y=Y.check(JD.e164());else if(Q==="credit_card")Y=Y.check(JD.creditCard());else if(Q==="iban")Y=Y.check(JD.iban());else if(Q==="jwt")Y=Y.check(JD.jwt());else if(Q==="emoji")Y=Y.check(JD.emoji());else if(Q==="nanoid")Y=Y.check(JD.nanoid());else if(Q==="cuid")Y=Y.check(JD.cuid());else if(Q==="cuid2")Y=Y.check(JD.cuid2());else if(Q==="ulid")Y=Y.check(JD.ulid());else if(Q==="xid")Y=Y.check(JD.xid());else if(Q==="ksuid")Y=Y.check(JD.ksuid())}if(typeof D.minLength==="number")Y=Y.min(D.minLength);if(typeof D.maxLength==="number")Y=Y.max(D.maxLength);if(D.pattern)Y=Y.regex(new RegExp(D.pattern));X=Y;break}case"number":case"integer":{let Y=J==="integer"?JD.number().int():JD.number();if(typeof D.minimum==="number"&&D.exclusiveMinimum!==!0)Y=Y.min(D.minimum);if(typeof D.maximum==="number"&&D.exclusiveMaximum!==!0)Y=Y.max(D.maximum);if(typeof D.exclusiveMinimum==="number")Y=Y.gt(D.exclusiveMinimum);else if(D.exclusiveMinimum===!0&&typeof D.minimum==="number")Y=Y.gt(D.minimum);if(typeof D.exclusiveMaximum==="number")Y=Y.lt(D.exclusiveMaximum);else if(D.exclusiveMaximum===!0&&typeof D.maximum==="number")Y=Y.lt(D.maximum);if(typeof D.multipleOf==="number")Y=Y.multipleOf(D.multipleOf);X=Y;break}case"boolean":{X=JD.boolean();break}case"null":{X=JD.null();break}case"object":{let Y={},Q=D.properties||{},U=new Set(D.required||[]),F=typeof D.additionalProperties==="object"?Q$(D.additionalProperties,$):void 0;for(let[G,Z]of Object.entries(Q)){let H=Q$(Z,$);k0(Y,G,U.has(G)?H:H.optional())}if(D.patternProperties){let G=D.patternProperties,Z=Object.keys(G),H=[];for(let I of Z){let B=Q$(G[I],$),N=JD.string().regex(new RegExp(I));H.push(JD.looseRecord(N,B))}let z=[];if(Object.keys(Y).length>0)z.push(JD.object(Y).passthrough());if(z.push(...H),z.length===0)X=JD.object({}).passthrough();else if(z.length===1)X=z[0];else{let I=JD.intersection(z[0],z[1]);for(let B=2;B<z.length;B++)I=JD.intersection(I,z[B]);X=I}if(D.additionalProperties===!1){let I=Object.keys(Y),B=Z.map((V)=>new RegExp(V)),N=X;X=X.check((V)=>{if(!i$(V.value))return;let O=[];for(let j of Object.keys(V.value)){if(I.includes(j))continue;if(B.some((v)=>v.test(j)))continue;O.push(j)}if(O.length)V.issues.push({code:"unrecognized_keys",keys:O,input:V.value,inst:N})})}}else{let G=JD.object(Y);if(D.additionalProperties===!1)X=G.strict();else if(F)X=G.catchall(F);else X=G.passthrough()}let W=D.propertyNames!==void 0&&D.propertyNames!==!0,K=typeof D.minProperties==="number"?D.minProperties:void 0,q=typeof D.maxProperties==="number"?D.maxProperties:void 0;if(W||K!==void 0||q!==void 0){let G;if(W){let Z=typeof D.propertyNames==="object"&&D.propertyNames.type===void 0?{type:"string",...D.propertyNames}:D.propertyNames;G=Q$(Z,$)}X=jJD(X,{keySchema:G,minProperties:K,maxProperties:q})}break}case"array":{let{prefixItems:Y,items:Q}=D;if(Y&&Array.isArray(Y)){let U=typeof D.minItems==="number"?D.minItems:0,F=Y.map((G)=>Q$(G,$)),W=Tg(F,U),K=!Array.isArray(Q)?bg(Q,$):void 0,q=JD.tuple(W);if(X=K?q.rest(K):q,typeof D.minItems==="number")X=X.check(JD.minLength(D.minItems));if(typeof D.maxItems==="number")X=X.check(JD.maxLength(D.maxItems))}else if(Array.isArray(Q)){let U=typeof D.minItems==="number"?D.minItems:0,F=Q.map((G)=>Q$(G,$)),W=Tg(F,U),K=bg(D.additionalItems,$),q=JD.tuple(W);if(X=K?q.rest(K):q,typeof D.minItems==="number")X=X.check(JD.minLength(D.minItems));if(typeof D.maxItems==="number")X=X.check(JD.maxLength(D.maxItems))}else if(Q!==void 0){let U=Q$(Q,$),F=JD.array(U);if(typeof D.minItems==="number")F=F.min(D.minItems);if(typeof D.maxItems==="number")F=F.max(D.maxItems);X=F}else X=JD.array(JD.any());if(D.uniqueItems===!0||D.contains!==void 0)X=MJD(X,{uniqueItems:D.uniqueItems===!0,containsSchema:D.contains!==void 0?Q$(D.contains,$):void 0,minContains:typeof D.minContains==="number"?D.minContains:void 0,maxContains:typeof D.maxContains==="number"?D.maxContains:void 0});break}default:throw Error(`Unsupported type: ${J}`)}return X}function Q$(D,$){if(typeof D==="boolean")return D?JD.any():JD.never();let J=Sg(D,$),X=D.type||D.enum!==void 0||D.const!==void 0;if(D.anyOf&&Array.isArray(D.anyOf)){let F=D.anyOf.map((K)=>Q$(K,$)),W=JD.union(F);J=X?JD.intersection(J,W):W}if(D.oneOf&&Array.isArray(D.oneOf)){let F=D.oneOf.map((K)=>Q$(K,$)),W=JD.xor(F);J=X?JD.intersection(J,W):W}if(D.allOf&&Array.isArray(D.allOf))if(D.allOf.length===0)J=X?J:JD.any();else{let F=X?J:Q$(D.allOf[0],$),W=X?0:1;for(let K=W;K<D.allOf.length;K++)F=JD.intersection(F,Q$(D.allOf[K],$));J=F}if(D.nullable===!0&&$.version==="openapi-3.0")J=JD.nullable(J);if(D.readOnly===!0)J=JD.readonly(J);if(D.default!==void 0)J=J.default(D.default);let Y={},Q=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let F of Q)if(F in D)Y[F]=D[F];let U=["contentEncoding","contentMediaType","contentSchema"];for(let F of U)if(F in D)Y[F]=D[F];if(D.type==="object"&&D.$ref===void 0){if(D.propertyNames!==void 0&&!t7(D.propertyNames))Y.propertyNames=D.propertyNames;for(let F of["minProperties","maxProperties"])if(D[F]!==void 0)Y[F]=D[F]}if(D.type==="array"&&D.$ref===void 0){if(D.contains!==void 0&&!t7(D.contains))Y.contains=D.contains;for(let F of["uniqueItems","minContains","maxContains"])if(D[F]!==void 0)Y[F]=D[F]}for(let F of Object.keys(D))if(!OJD.has(F))k0(Y,F,D[F]);if(Object.keys(Y).length>0)$.registry.add(J,Y);if(D.description)J=J.describe(D.description);return J}function Cg(D,$){if(typeof D==="boolean")return D?JD.any():JD.never();let J;try{J=JSON.parse(JSON.stringify(D))}catch{throw Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let X=NJD(J,$?.defaultTarget),Y=J.$defs||J.definitions||{},Q={version:X,defs:Y,refs:new Map,processing:new Set,rootSchema:J,registry:$?.registry??_0};return Q$(J,Q)}var JD,OJD,LJD,RJD,AJD;var kg=S(()=>{E7();e();UQ();_Q();C1();JD={...Q9,...QQ,iso:r7},OJD=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);LJD=new Set(["items","prefixItems","additionalItems","additionalProperties","contains","propertyNames","not","if","then","else","allOf","anyOf","oneOf","unevaluatedItems","unevaluatedProperties","contentSchema"]),RJD=new Set(["properties","patternProperties","dependentSchemas","dependencies","$defs","definitions"]);AJD=/^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/});function o7(D,$){let J=typeof $==="function"?$:(U,F)=>{let W=$[U._zod.def.type];return W?W(U,F):U},X=new Map;function Y(U){let F=X.get(U);if(F===_g)return new N7({type:"lazy",getter:()=>X.get(U)});if(F!==void 0)return F;X.set(U,_g);let W=Q(U),K=J(W,W!==U);return X.set(U,K),K}function Q(U){let F=U._zod.def,W=F.type;switch(W){case"object":{let K=F.shape,q=Object.keys(K),G=!1,Z={};for(let z of q){let I=Y(K[z]);if(I!==K[z])G=!0;Z[z]=I}let H=F.catchall;if(F.catchall){if(H=Y(F.catchall),H!==F.catchall)G=!0}return G?fD(U,{...F,shape:Z,catchall:H}):U}case"array":{let K=Y(F.element);return K===F.element?U:fD(U,{...F,element:K})}case"tuple":{let K=F.items,q=!1,G=[];for(let H of K){let z=Y(H);if(z!==H)q=!0;G.push(z)}let Z=F.rest;if(F.rest){if(Z=Y(F.rest),Z!==F.rest)q=!0}return q?fD(U,{...F,items:G,rest:Z}):U}case"record":case"map":{let K=Y(F.keyType),q=Y(F.valueType);return K===F.keyType&&q===F.valueType?U:fD(U,{...F,keyType:K,valueType:q})}case"set":{let K=Y(F.valueType);return K===F.valueType?U:fD(U,{...F,valueType:K})}case"union":{let K=F.options,q=!1,G=[];for(let Z of K){let H=Y(Z);if(H!==Z)q=!0;G.push(H)}return q?fD(U,{...F,options:G}):U}case"intersection":{let K=Y(F.left),q=Y(F.right);return K===F.left&&q===F.right?U:fD(U,{...F,left:K,right:q})}case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":{let K=Y(F.innerType);return K===F.innerType?U:fD(U,{...F,innerType:K})}case"pipe":{let K=Y(F.in),q=Y(F.out);return K===F.in&&q===F.out?U:fD(U,{...F,in:K,out:q})}case"function":{let K=Y(F.input),q=Y(F.output);return K===F.input&&q===F.output?U:fD(U,{...F,input:K,output:q})}case"lazy":{let K=F.getter,{_cachedInner:q,...G}=F;return fD(U,{...G,getter:()=>Y(K())})}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":return U;default:return U}}return Y(D)}var _g;var WO=S(()=>{C2();e();_g=Symbol("z.visit/resolving")});function ug(D){return o7(D,{object:($)=>$.partial(),union:($)=>{let J=$._zod.def;return J.discriminator===void 0?$:Y9(J.options)}})}var gg=S(()=>{WO();C1()});function vJD(D,$){if(!$?.length)return D;let J=D._zod.def;return fD(D,X6(J,{checks:[...J.checks??[],...$]}),{parent:!0})}function xg(D){return vJD(D.out,D.checks)}function EJD(D){return D.in._zod.traits.has("$ZodTransform")?xg(D):D.in}function fg(D){return o7(D,{pipe:($)=>EJD($._zod.def),default:($,J)=>J?d4($._zod.def.innerType):$,catch:($,J)=>J?$._zod.def.innerType:$})}function yg(D){return o7(D,{pipe:($)=>xg($._zod.def),prefault:($,J)=>J?$._zod.def.innerType:$})}var hg=S(()=>{e();WO();C1()});var KO={};y0(KO,{string:()=>TJD,number:()=>PJD,date:()=>CJD,boolean:()=>bJD,bigint:()=>SJD});function TJD(D){return EH(D9,D)}function PJD(D){return kH($9,D)}function bJD(D){return hH(J9,D)}function SJD(D){return lH(X9,D)}function CJD(D){return eH(h7,D)}var mg=S(()=>{P$();C1()});var kD={};y0(kD,{xor:()=>Jg,xid:()=>Lu,withParser:()=>vY,void:()=>ou,validateAsync:()=>Q7,validate:()=>Y7,uuidv7:()=>Hu,uuidv6:()=>zu,uuidv4:()=>Zu,uuid:()=>Gu,util:()=>h,url:()=>Iu,uppercase:()=>f2,unknown:()=>l4,union:()=>Y9,undefined:()=>ru,ulid:()=>ju,uint64:()=>pu,uint32:()=>du,tuple:()=>SB,trim:()=>c2,treeifyError:()=>xq,transform:()=>SQ,toZod:()=>n5,toUpperCase:()=>n2,toLowerCase:()=>p2,toJSONSchema:()=>YQ,templateLiteral:()=>Bg,symbol:()=>nu,superRefine:()=>YO,success:()=>Zg,stringbool:()=>Mg,stringFormat:()=>uu,string:()=>x7,strictObject:()=>Dg,startsWith:()=>h2,slugify:()=>r2,size:()=>f4,setErrorMap:()=>GJD,set:()=>Fg,safeParseAsync:()=>JB,safeParse:()=>$B,safeEncodeAsync:()=>KB,safeEncode:()=>FB,safeDecodeAsync:()=>qB,safeDecode:()=>WB,registry:()=>AY,regexes:()=>p$,regex:()=>g2,refine:()=>XO,record:()=>CB,readonly:()=>aB,property:()=>DQ,properties:()=>l2,promise:()=>Og,prettifyError:()=>fq,preprocess:()=>vg,prefault:()=>dB,positive:()=>oY,pipe:()=>KQ,partialRecord:()=>Yg,parseAsync:()=>DB,parse:()=>eI,overwrite:()=>Y6,output:()=>yg,optional:()=>d4,object:()=>eu,number:()=>IB,nullish:()=>Gg,nullable:()=>f7,null:()=>wB,normalize:()=>i2,nonpositive:()=>sY,nonoptional:()=>iB,nonnegative:()=>eY,never:()=>PQ,negative:()=>aY,nativeEnum:()=>Wg,nanoid:()=>Nu,nan:()=>zg,multipleOf:()=>R1,minSize:()=>R6,minLength:()=>y6,mime:()=>d2,meta:()=>Lg,memoizer:()=>j7,maxSize:()=>M1,maxLength:()=>y4,map:()=>Ug,mac:()=>Au,lte:()=>E$,lt:()=>j6,lowercase:()=>x2,looseRecord:()=>Qg,looseObject:()=>$g,locales:()=>v7,literal:()=>Kg,length:()=>h4,lazy:()=>DO,ksuid:()=>Ru,keyof:()=>su,jwt:()=>_u,json:()=>Ag,iso:()=>r7,ipv6:()=>vu,ipv4:()=>Mu,invertCodec:()=>Ig,intersection:()=>PB,int64:()=>cu,int32:()=>lu,int:()=>WQ,instanceof:()=>Rg,input:()=>fg,includes:()=>y2,iban:()=>ku,httpUrl:()=>Bu,hostname:()=>gu,hex:()=>xu,hash:()=>yu,guid:()=>qu,gte:()=>T$,gt:()=>L6,globalRegistry:()=>_0,getErrorMap:()=>ZJD,getDiscriminatedOption:()=>_Z,function:()=>Ng,fromJSONSchema:()=>Cg,formatError:()=>X7,float64:()=>mu,float32:()=>hu,flattenError:()=>J7,file:()=>qg,exactOptional:()=>fB,enum:()=>bQ,endsWith:()=>m2,encodeAsync:()=>QB,encode:()=>XB,emoji:()=>Ou,email:()=>Ku,e164:()=>Su,discriminatedUnion:()=>Xg,describe:()=>jg,deepPartial:()=>ug,decodeAsync:()=>UB,decode:()=>YB,date:()=>au,custom:()=>wg,currencyCode:()=>fu,cuid2:()=>wu,cuid:()=>Vu,creditCard:()=>Cu,core:()=>h6,config:()=>Z0,compile:()=>MH,coerce:()=>KO,codec:()=>Hg,clone:()=>fD,cidrv6:()=>Tu,cidrv4:()=>Eu,check:()=>Vg,catch:()=>nB,boolean:()=>BB,bigint:()=>iu,base64url:()=>bu,base64:()=>Pu,array:()=>m7,any:()=>tu,_function:()=>Ng,_default:()=>mB,_ZodString:()=>qQ,ZodXor:()=>vB,ZodXID:()=>NQ,ZodVoid:()=>MB,ZodUnknown:()=>LB,ZodUnion:()=>d7,ZodUndefined:()=>NB,ZodUUID:()=>M6,ZodURL:()=>y7,ZodULID:()=>OQ,ZodType:()=>VD,ZodTuple:()=>bB,ZodTransform:()=>xB,ZodTemplateLiteral:()=>sB,ZodSymbol:()=>OB,ZodSuccess:()=>cB,ZodStringFormat:()=>cD,ZodString:()=>D9,ZodSet:()=>_B,ZodRecord:()=>s2,ZodRealError:()=>N$,ZodReadonly:()=>oB,ZodPromise:()=>$O,ZodPreprocess:()=>tB,ZodPrefault:()=>lB,ZodPipe:()=>c7,ZodOptional:()=>i7,ZodObject:()=>l7,ZodNumberFormat:()=>p4,ZodNumber:()=>$9,ZodNullable:()=>yB,ZodNull:()=>VB,ZodNonOptional:()=>kQ,ZodNever:()=>RB,ZodNanoID:()=>HQ,ZodNaN:()=>rB,ZodMap:()=>kB,ZodMAC:()=>ZB,ZodLiteral:()=>uB,ZodLazy:()=>eB,ZodKSUID:()=>VQ,ZodJWT:()=>EQ,ZodIssueCode:()=>qJD,ZodIntersection:()=>TB,ZodInstanceOf:()=>QO,ZodISOTime:()=>b1,ZodISODuration:()=>S1,ZodISODateTime:()=>T1,ZodISODate:()=>P1,ZodIPv6:()=>jQ,ZodIPv4:()=>wQ,ZodIBAN:()=>HB,ZodGUID:()=>ZQ,ZodFunction:()=>JO,ZodFirstPartyTypeKind:()=>UO,ZodFile:()=>gB,ZodExactOptional:()=>CQ,ZodError:()=>FJD,ZodEnum:()=>e2,ZodEmoji:()=>zQ,ZodEmail:()=>GQ,ZodE164:()=>vQ,ZodDiscriminatedUnion:()=>EB,ZodDefault:()=>hB,ZodDate:()=>h7,ZodCustomStringFormat:()=>c4,ZodCustom:()=>n7,ZodCreditCard:()=>zB,ZodCompileUnsupportedError:()=>ED,ZodCompileAsyncError:()=>w6,ZodCodec:()=>p7,ZodCatch:()=>pB,ZodCUID2:()=>BQ,ZodCUID:()=>IQ,ZodCIDRv6:()=>RQ,ZodCIDRv4:()=>LQ,ZodBoolean:()=>J9,ZodBigIntFormat:()=>TQ,ZodBigInt:()=>X9,ZodBase64URL:()=>AQ,ZodBase64:()=>MQ,ZodArray:()=>AB,ZodAny:()=>jB,TimePrecision:()=>SH,NEVER:()=>Cq,INVALID:()=>X$,$output:()=>NH,$input:()=>VH,$brand:()=>kq});var qO=S(()=>{P$();P$();g7();kg();gg();hg();OH();_Q();_Q();mg();C1();UQ();sI();GB();Eg()});var lg=S(()=>{qO();qO()});function MED(D,$,J){let X=J.filter((Q)=>D[Q]===!0);if(X.length<2)return;let Y=String(X[0]);for(let Q of X.slice(1))$.addIssue({code:"custom",message:`not used together with "${Y}"`,path:[Q]})}var dg,kJD,AED,vED,EED,TED;var ig=S(()=>{lg();dg=kD.object({name:kD.string().min(1),version:kD.string().min(1),requested_version:kD.string().optional(),ios_checksum:kD.string().optional(),android_checksum:kD.string().optional()}),kJD=kD.enum(["new_plugin","removed_plugin","version_mismatch","requested_version_changed","ios_code_changed","android_code_changed","both_platforms_changed","platform_checksum_metadata_changed"]),AED=kD.object({name:kD.string(),localVersion:kD.string().optional(),remoteVersion:kD.string().optional(),localRequestedVersion:kD.string().optional(),remoteRequestedVersion:kD.string().optional(),localIosChecksum:kD.string().optional(),remoteIosChecksum:kD.string().optional(),localAndroidChecksum:kD.string().optional(),remoteAndroidChecksum:kD.string().optional()}),vED=kD.object({compatible:kD.boolean(),reasons:kJD.array(),message:kD.string()}),EED=kD.object({isSecurityPolicyError:kD.boolean(),errorCode:kD.string(),message:kD.string()}),TED=kD.record(kD.string(),kD.string()).transform((D,$)=>{if(D===null||typeof D!=="object"||Array.isArray(D)||Object.getPrototypeOf(D)!==Object.prototype)return $.addIssue({code:"custom",message:"a plain object of locale keys to release notes"}),kD.NEVER;let J=Object.create(null);for(let[X,Y]of Object.entries(D)){let Q=X.trim(),U=Y.trim();if(!Q)return $.addIssue({code:"custom",message:"a non-empty locale key"}),kD.NEVER;if(!U)return $.addIssue({code:"custom",message:"a non-empty release note"}),kD.NEVER;if(Object.hasOwn(J,Q))return $.addIssue({code:"custom",message:`a unique locale key (duplicate after trim: "${Q}")`}),kD.NEVER;J[Q]=U}return J})});function _JD(D){if(typeof D?.then==="function")throw TypeError("Expected synchronous schema validation result");return D}function GO(D,$){let J=_JD(D["~standard"].validate($));if(J.issues)return{success:!1,error:new cg(J.issues)};return{success:!0,data:J.value}}function bED(D,$){let J=GO(D,$);if(!J.success)throw J.error;return J.data}var cg;var pg=S(()=>{cg=class cg extends Error{issues;constructor(D){super(D.map(($)=>$.message).join("; ")||"Schema validation failed");this.name="SchemaError",this.issues=D}}});function ng(D){let $=D;if(typeof $.status==="number")return $.status;let J=$.context&&typeof $.context==="object"?$.context.status:void 0;return typeof J==="number"?J:void 0}function uJD(D){if(!D||typeof D!=="object")return;let $=ng(D);if($!==void 0)return $;let J=D.cause;if(J&&typeof J==="object")return ng(J);return}function gJD(D){let $=[],J=new Set,X=D;if(typeof D==="string")return D;while(X){if(typeof X==="string"){$.push(X);break}if(typeof X!=="object")break;if(J.has(X))break;if(J.add(X),X instanceof Error){$.push(X.message),X=X.cause;continue}let Y=X;if(typeof Y.message==="string")$.push(Y.message);X=Y.cause}return $.join(" ")}function xJD(D){return gJD(D)}function rg(D){if(D&&typeof D==="object"&&"code"in D){let X=D.code;if(typeof X==="string"&&X.startsWith("commander."))return"commander"}let $=uJD(D);if($!==void 0){if($===401)return"unauthorized";if($===403)return"forbidden";if($===404)return"not_found";if($===413)return"payload_too_large";if($===429)return"rate_limited";if($>=500)return"server_error"}let J=xJD(D).toLowerCase();if(/econnrefused|econnreset|enotfound|eai_again|fetch failed|failed to fetch|connect timeout|und_err/.test(J))return"network_error";if(/timed out|timeout|etimedout|aborted/.test(J))return"timeout";if(/invalid|must be|required|not allowed|malformed|validation/.test(J))return"validation_error";return"unknown"}function CED(D){if(D===401)return"unauthorized";if(D===403)return"forbidden";if(D===404)return"not_found";if(D===408||D===504)return"timeout";if(D===413)return"payload_too_large";if(D===429)return"rate_limited";if(D===400||D===422)return"validation_error";if(D>=500)return"server_error";return"unknown"}function U9(D){let $=rg(D);return $==="network_error"||$==="timeout"}var ZO=()=>{};function mJD(D){return new Promise(($)=>setTimeout($,D))}async function og(D){let $={data:null,error:null};for(let J=1;J<=tg;J++){if($=await D(),!$.error)return $;if(!U9($.error))return $;if(J<tg)await mJD(hJD[J-1]??1000)}return $}async function ag(D){if(!D.silent)lD.warn(yJD);let $=new zO;if(PC($))await bC({error:$,functionName:D.telemetryFunctionName,kind:"unhandled_error",status:0})}function sg(D){if(U9(D))throw new zO;let $=D.message??"unknown error";throw Error(`Cannot check 2FA compliance: ${$}`)}var fJD="Cannot reach Capgo to verify 2FA compliance. Check your network connection and try again.",yJD="Could not verify 2FA compliance due to a network error. Continuing — Capgo will still enforce 2FA on this action if required.",tg=3,hJD,zO;var eg=S(()=>{$1();jq();ZO();hJD=[500,1000];zO=class zO extends Error{constructor(D=fJD){super(D);this.name="TwoFactorComplianceNetworkError"}}});function uQ(D){let $=D.replace(lJD,"[REDACTED PRIVATE KEY]");for(let{re:J,replace:X}of dJD)$=$.replace(J,X);return $}var lJD,dJD;var Dx=S(()=>{lJD=/-----BEGIN [^-]+-----[\s\S]*?-----END [^-]+-----/g,dJD=[{re:/(authorization\s*:\s*bearer\s+)[\w.\-+/=]+/gi,replace:"$1[REDACTED]"},{re:/\bcapg_[A-Za-z0-9]{8,}\b/g,replace:"[REDACTED]"},{re:/(capgkey\s*[=:]\s*)[\w-]{6,}/gi,replace:"$1[REDACTED]"},{re:/\b(api[_-]?key|secret|token|password|passwd|pwd)(\s*[=:]\s*)["']?[\w.\-+/=]{6,}["']?/gi,replace:"$1$2[REDACTED]"},{re:/("(?:access_token|refresh_token|id_token|client_secret|private[_-]?key|apple_key_content|api[_-]?key|token|secret|password|p8|pem)"\s*:\s*")[^"]+(")/gi,replace:"$1[REDACTED]$2"}]});function iJD(D){return Object.values(gQ).includes(D)}function HO(D){let $="",J="";if(typeof D==="string")$=D,J=D;else if(D&&typeof D==="object"){let X=D;$=String(X.error||X.code||X.errorCode||""),J=String(X.message||X.error||"")}if(iJD($))return{isSecurityPolicyError:!0,errorCode:$,message:$x[$]||J};for(let[X,Y]of Object.entries($x))if(J.includes(X))return{isSecurityPolicyError:!0,errorCode:X,message:Y};return{isSecurityPolicyError:!1,errorCode:$,message:J}}function Jx(D){let $=HO(D);if($.isSecurityPolicyError)return`
❌ Security Policy Error: ${$.errorCode}
${$.message}
`;return $.message||"An unknown error occurred"}var gQ,$x;var Xx=S(()=>{gQ={ORG_REQUIRES_EXPIRING_KEY:"org_requires_expiring_key",EXPIRATION_REQUIRED:"expiration_required",EXPIRATION_EXCEEDS_MAX:"expiration_exceeds_max"},$x={[gQ.ORG_REQUIRES_EXPIRING_KEY]:`This organization requires API keys with expiration dates.
Please generate a new API key with an expiration:
1. Go to https://console.capgo.app/dashboard/apikeys
2. Create a new API key with an expiration date
3. Update your CLI configuration with: capgo login [new-key]
4. Try this command again`,[gQ.EXPIRATION_REQUIRED]:`This organization requires API keys to have an expiration date.
Please generate a new API key with an expiration:
1. Go to https://console.capgo.app/dashboard/apikeys
2. Create a new API key with an expiration date
3. Update your CLI configuration with: capgo login [new-key]
4. Try this command again`,[gQ.EXPIRATION_EXCEEDS_MAX]:`Your API key expiration date exceeds the maximum allowed by this organization.
Please generate a new API key with a shorter expiration:
1. Go to https://console.capgo.app/dashboard/apikeys
2. Create a new API key with a valid expiration date
3. Update your CLI configuration with: capgo login [new-key]
4. Try this command again`}});import Yx from"node:fs";function cJD(){try{return Yx.statSync("/.dockerenv"),!0}catch{return!1}}function pJD(){try{return Yx.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}function BO(){if(IO===void 0)IO=cJD()||pJD();return IO}var IO;var Qx=()=>{};import nJD from"node:fs";function n4(){if(OO===void 0)OO=rJD()||BO();return OO}var OO,rJD=()=>{try{return nJD.statSync("/run/.containerenv"),!0}catch{return!1}};var NO=S(()=>{Qx()});import Fx from"node:process";import tJD from"node:os";import VO from"node:fs";var Ux=()=>{if(Fx.platform!=="linux")return!1;if(tJD.release().toLowerCase().includes("microsoft")){if(n4())return!1;return!0}try{if(VO.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft"))return!n4()}catch{}if(VO.existsSync("/proc/sys/fs/binfmt_misc/WSLInterop")||VO.existsSync("/run/WSL"))return!n4();return!1},m6;var wO=S(()=>{NO();m6=Fx.env.__IS_WSL_TEST__?Ux:Ux()});import Wx from"node:process";import{Buffer as oJD}from"node:buffer";import{promisify as aJD}from"node:util";import sJD from"node:child_process";var eJD,jO=()=>`${Wx.env.SYSTEMROOT||Wx.env.windir||String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`,b$=async(D,$={})=>{let{powerShellPath:J,...X}=$,Y=b$.encodeCommand(D);return eJD(J??jO(),[...b$.argumentsPrefix,Y],{encoding:"utf8",...X})};var LO=S(()=>{eJD=aJD(sJD.execFile);b$.argumentsPrefix=["-NoProfile","-NonInteractive","-ExecutionPolicy","Bypass","-EncodedCommand"];b$.encodeCommand=(D)=>oJD.from(D,"utf16le").toString("base64");b$.escapeArgument=(D)=>`'${String(D).replaceAll("'","''")}'`});function Kx(D){for(let $ of D.split(`
`)){if(/^\s*#/.test($))continue;let J=/^\s*root\s*=\s*(?<mountPoint>"[^"]*"|'[^']*'|[^#]*)/.exec($);if(!J)continue;return J.groups.mountPoint.trim().replaceAll(/^["']|["']$/g,"")}}import{promisify as DXD}from"node:util";import $XD from"node:child_process";import RO,{constants as Gx}from"node:fs/promises";var JXD,XXD,YXD=async()=>{return`${await XXD()}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`},xQ,qx,Zx=async()=>{return qx??=(async()=>{try{let D=await xQ();return await RO.access(D,Gx.X_OK),!0}catch{return!1}})(),qx},zx=async()=>{let D=await xQ(),$=String.raw`(Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice").ProgId`,{stdout:J}=await b$($,{powerShellPath:D});return J.trim()},Hx=async(D)=>{if(/^[a-z]+:\/\//i.test(D))return D;try{let{stdout:$}=await JXD("wslpath",["-aw",D],{encoding:"utf8"});return $.trim()}catch{return D}};var Ix=S(()=>{wO();LO();wO();JXD=DXD($XD.execFile),XXD=(()=>{let $;return async function(){if($)return $;let J="/etc/wsl.conf",X=!1;try{await RO.access(J,Gx.F_OK),X=!0}catch{}if(!X)return"/mnt/";let Y=await RO.readFile(J,{encoding:"utf8"}),Q=Kx(Y);if(Q===void 0)return"/mnt/";return $=Q,$=$.endsWith("/")?$:`${$}/`,$}})(),xQ=m6?YXD:jO});function r4(D,$,J){let X=(Y)=>Object.defineProperty(D,$,{value:Y,enumerable:!0,writable:!0});return Object.defineProperty(D,$,{configurable:!0,enumerable:!0,get(){let Y=J();return X(Y),Y},set(Y){X(Y)}}),D}import{promisify as QXD}from"node:util";import UXD from"node:process";import{execFile as FXD}from"node:child_process";async function MO(){if(UXD.platform!=="darwin")throw Error("macOS only");let{stdout:D}=await WXD("defaults",["read","com.apple.LaunchServices/com.apple.launchservices.secure","LSHandlers"]),J=/LSHandlerRoleAll = "(?!-)(?<id>[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(D)?.groups.id??"com.apple.Safari";if(J==="com.apple.safari")return"com.apple.Safari";return J}var WXD;var Bx=S(()=>{WXD=QXD(FXD)});import KXD from"node:process";import{promisify as qXD}from"node:util";import{execFile as GXD,execFileSync as wTD}from"node:child_process";async function Ox(D,{humanReadableOutput:$=!0,signal:J}={}){if(KXD.platform!=="darwin")throw Error("macOS only");let X=$?[]:["-ss"],Y={};if(J)Y.signal=J;let{stdout:Q}=await ZXD("osascript",["-e",D,X],Y);return Q.trim()}var ZXD;var Nx=S(()=>{ZXD=qXD(GXD)});async function AO(D){return Ox(`tell application "Finder" to set app_path to application file id "${D}" as string
tell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`)}var Vx=S(()=>{Nx()});import{promisify as zXD}from"node:util";import{execFile as HXD}from"node:child_process";async function vO(D=IXD){let{stdout:$}=await D("reg",["QUERY"," HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice","/v","ProgId"]),J=/ProgId\s*REG_SZ\s*(?<id>\S+)/.exec($);if(!J)throw new wx(`Cannot find Windows browser in stdout: ${JSON.stringify($)}`);let{id:X}=J.groups,Y=X.lastIndexOf("."),Q=X.lastIndexOf("-"),U=Y===-1?void 0:X.slice(0,Y),F=Q===-1?void 0:X.slice(0,Q);return fQ[X]??fQ[U]??fQ[F]??{name:X,id:X}}var IXD,fQ,yQ,wx;var EO=S(()=>{IXD=zXD(HXD),fQ={MSEdgeHTM:{name:"Edge",id:"com.microsoft.edge"},MSEdgeBHTML:{name:"Edge Beta",id:"com.microsoft.edge.beta"},MSEdgeDHTML:{name:"Edge Dev",id:"com.microsoft.edge.dev"},AppXq0fevzme2pys62n3e0fbqa7peapykr8v:{name:"Edge",id:"com.microsoft.edge.old"},ChromeHTML:{name:"Chrome",id:"com.google.chrome"},ChromeBHTML:{name:"Chrome Beta",id:"com.google.chrome.beta"},ChromeDHTML:{name:"Chrome Dev",id:"com.google.chrome.dev"},ChromiumHTM:{name:"Chromium",id:"org.chromium.Chromium"},BraveHTML:{name:"Brave",id:"com.brave.Browser"},BraveBHTML:{name:"Brave Beta",id:"com.brave.Browser.beta"},BraveDHTML:{name:"Brave Dev",id:"com.brave.Browser.dev"},BraveSSHTM:{name:"Brave Nightly",id:"com.brave.Browser.nightly"},FirefoxURL:{name:"Firefox",id:"org.mozilla.firefox"},OperaStable:{name:"Opera",id:"com.operasoftware.Opera"},VivaldiHTM:{name:"Vivaldi",id:"com.vivaldi.Vivaldi"},"IE.HTTP":{name:"Internet Explorer",id:"com.microsoft.ie"}},yQ=new Map(Object.entries(fQ));wx=class wx extends Error{}});import{promisify as BXD}from"node:util";import TO from"node:process";import{execFile as OXD}from"node:child_process";async function PO(){if(TO.platform==="darwin"){let D=await MO();return{name:await AO(D),id:D}}if(TO.platform==="linux"){let{stdout:D}=await NXD("xdg-mime",["query","default","x-scheme-handler/http"]),$=D.trim();return{name:VXD($.replace(/.desktop$/,"").replace("-"," ")),id:$}}if(TO.platform==="win32")return vO();throw Error("Only macOS, Linux, and Windows are supported")}var NXD,VXD=(D)=>D.toLowerCase().replaceAll(/(?:^|\s|-)\S/g,($)=>$.toUpperCase());var jx=S(()=>{Bx();Vx();EO();EO();NXD=BXD(OXD)});import bO from"node:process";var wXD,Lx;var Rx=S(()=>{wXD=Boolean(bO.env.SSH_CONNECTION||bO.env.SSH_CLIENT||bO.env.SSH_TTY),Lx=wXD});var Px={};y0(Px,{openApp:()=>vXD,default:()=>EXD,apps:()=>t4});import SO from"node:process";import Tx from"node:path";import{fileURLToPath as jXD}from"node:url";import LXD from"node:child_process";import RXD,{constants as MXD}from"node:fs/promises";function Ex(D){if(typeof D==="string"||Array.isArray(D))return D;let{[Ax]:$}=D;if(!$)throw Error(`${Ax} is not supported`);return $}function s7({[F9]:D},{wsl:$}={}){if($&&m6)return Ex($);if(!D)throw Error(`${F9} is not supported`);return Ex(D)}var hQ,CO,Mx,F9,Ax,vx=async(D,$)=>{if(D.length===0)return;let J=[];for(let X of D)try{return await $(X)}catch(Y){J.push(Y)}throw AggregateError(J,"Failed to open in all supported apps")},a7=async(D)=>{D={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...D};let $=D[hQ]===!0;if(delete D[hQ],Array.isArray(D.app))return vx(D.app,(K)=>a7({...D,app:K,[hQ]:!0}));let{name:J,arguments:X=[]}=D.app??{};if(X=[...X],Array.isArray(J))return vx(J,(K)=>a7({...D,app:{name:K,arguments:X},[hQ]:!0}));if(J==="browser"||J==="browserPrivate"){let K={"com.google.chrome":"chrome","google-chrome.desktop":"chrome","com.brave.browser":"brave","org.mozilla.firefox":"firefox","firefox.desktop":"firefox","com.microsoft.msedge":"edge","com.microsoft.edge":"edge","com.microsoft.edgemac":"edge","microsoft-edge.desktop":"edge","com.apple.safari":"safari"},q={chrome:"--incognito",brave:"--incognito",firefox:"--private-window",edge:"--inPrivate"},G;if(m6){let Z=await zx();G=yQ.get(Z)??{}}else G=await PO();if(G.id in K){let Z=K[G.id.toLowerCase()];if(J==="browserPrivate"){if(Z==="safari")throw Error("Safari doesn't support opening in private mode via command line");X.push(q[Z])}return a7({...D,app:{name:t4[Z],arguments:X}})}throw Error(`${G.name} is not supported as a default browser`)}let Y,Q=[],U={},F=!1;if(m6&&!n4()&&!Lx&&!J)F=await Zx();if(F9==="darwin"){if(Y="open",D.wait)Q.push("--wait-apps");if(D.background)Q.push("--background");if(D.newInstance)Q.push("--new");if(J)Q.push("-a",J)}else if(F9==="win32"||F){if(Y=await xQ(),Q.push(...b$.argumentsPrefix),!m6)U.windowsVerbatimArguments=!0;if(m6&&D.target)D.target=await Hx(D.target);let K=["$ProgressPreference = 'SilentlyContinue';","Start"];if(D.wait)K.push("-Wait");if(J){if(K.push(b$.escapeArgument(J)),D.target)X.push(D.target)}else if(D.target)K.push(b$.escapeArgument(D.target));if(X.length>0)X=X.map((q)=>b$.escapeArgument(q)),K.push("-ArgumentList",X.join(","));if(D.target=b$.encodeCommand(K.join(" ")),!D.wait)U.stdio="ignore"}else{if(J)Y=J;else{let K=!CO||CO==="/",q=!1;try{await RXD.access(Mx,MXD.X_OK),q=!0}catch{}Y=SO.versions.electron??(F9==="android"||K||!q)?"xdg-open":Mx}if(X.length>0)Q.push(...X);if(!D.wait)U.stdio="ignore",U.detached=!0}if(F9==="darwin"&&X.length>0)Q.push("--args",...X);if(D.target)Q.push(D.target);let W=LXD.spawn(Y,Q,U);if(D.wait)return new Promise((K,q)=>{W.once("error",q),W.once("close",(G)=>{if(!D.allowNonzeroExitCode&&G!==0){q(Error(`Exited with code ${G}`));return}K(W)})});if($)return new Promise((K,q)=>{W.once("error",q),W.once("spawn",()=>{W.once("close",(G)=>{if(W.off("error",q),G!==0){q(Error(`Exited with code ${G}`));return}W.unref(),K(W)})})});return W.unref(),new Promise((K,q)=>{W.once("error",q),W.once("spawn",()=>{W.off("error",q),K(W)})})},AXD=(D,$)=>{if(typeof D!=="string")throw TypeError("Expected a `target`");return a7({...$,target:D})},vXD=(D,$)=>{if(typeof D!=="string"&&!Array.isArray(D))throw TypeError("Expected a valid `name`");let{arguments:J=[]}=$??{};if(J!==void 0&&J!==null&&!Array.isArray(J))throw TypeError("Expected `appArguments` as Array type");return a7({...$,app:{name:D,arguments:J}})},t4,EXD;var bx=S(()=>{Ix();LO();jx();NO();Rx();hQ=Symbol("fallbackAttempt"),CO=import.meta.url?Tx.dirname(jXD(import.meta.url)):"",Mx=Tx.join(CO,"xdg-open"),{platform:F9,arch:Ax}=SO;t4={browser:"browser",browserPrivate:"browserPrivate"};r4(t4,"chrome",()=>s7({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium","chromium-browser"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}));r4(t4,"brave",()=>s7({darwin:"brave browser",win32:"brave",linux:["brave-browser","brave"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe",x64:["/mnt/c/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe","/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe"]}}));r4(t4,"firefox",()=>s7({darwin:"firefox",win32:String.raw`C:\Program Files\Mozilla Firefox\firefox.exe`,linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}));r4(t4,"edge",()=>s7({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}));r4(t4,"safari",()=>s7({darwin:"Safari"}));EXD=AXD});import{spawn as TXD}from"node:child_process";import{existsSync as ID,readdirSync as q9,readFileSync as H0,statSync as PXD}from"node:fs";import{homedir as xx,platform as fx}from"node:os";import s4,{dirname as l6,join as LD,relative as yx,resolve as eD,sep as hx}from"node:path";import{cwd as T0,env as a4,stdin as mx,stdout as lx}from"node:process";function mQ(D,$){let J=kE();if(J)J[D]($);else lD[D]($)}function ix(D=""){if(!D)return pQ;return`${pQ}${D.startsWith("/")?D:`/${D}`}`}function EPD(D){let $=gXD.toLocaleString("en-US");return[`Delta updates cannot upload this bundle: it has ${D.toLocaleString("en-US")} files, and Capgo allows at most ${$} files per delta (manifest) upload.`,"Delta mode tracks and uploads each file individually so devices can download only what changed. Very large file counts are not supported on that path.","What you can do:","1. Upload a full zip instead: npx @capgo/cli@latest bundle upload --no-delta","2. Or reduce files in your web build output (remove unused assets, avoid copying large trees into dist).","See https://capgo.app/docs/faq/#are-there-delta-update-file-path-limitations"].join(`
`)}function PPD(D){return[`Bundle upload timed out after ${Math.round(D/1000)}s.`,"The standard upload has to finish the whole transfer within this window and does not retry, so a large bundle or a slow connection can trip it.","What you can do:","1. Retry with the resumable upload, which uploads in chunks and retries automatically: npx @capgo/cli@latest bundle upload --tus","2. Or raise the limit for the standard upload: npx @capgo/cli@latest bundle upload --timeout <milliseconds>"].join(`
`)}function m0(D){if(!D)return"Unknown error";if(HO(D).isSecurityPolicyError)return Jx(D);let J=D;if(typeof D==="string")return D;if(D instanceof Error){let X=J.message||J.cause?.message||J.stack||D.name,Y=J.cause?.name,Q=X.toLowerCase();if(Q.includes("fetch failed")||Q.includes("failed to fetch")||Q.includes("connect timeout")||Q.includes("network")||Y?.startsWith("UND_ERR"))return`Network error: ${X}${J.code?` (code ${J.code})`:""}. Check your network connection and API endpoint availability.`;let U=J.status||J.statusCode;return[X,J.code?`Code: ${J.code}`:void 0,U?`Status: ${U}`:void 0].filter(Boolean).join(" | ")||D.name}if(J.message){let X=[J.message,J.code?`Code: ${J.code}`:void 0,J.status||J.statusCode?`Status: ${J.status||J.statusCode}`:void 0].filter(Boolean).join(" | "),Y=J.message.toLowerCase();if(Y.includes("fetch failed")||Y.includes("failed to fetch")||J.error==="Failed to fetch")return`Network error: ${X}. Check your network connection and API endpoint availability.`;if(J.details||J.hint||J.error)return`${X}${X?" | ":""}${J.error?typeof J.error==="string"?J.error:J.error.message??"":""}${J.details?`Details: ${J.details}`:""}${J.hint?`Hint: ${J.hint}`:""}`.trim();return X}if(typeof J.error==="string"&&J.error.length>0)return J.error;if(J.error&&typeof J.error==="object"&&typeof J.error.message==="string"&&J.error.message.length>0)return J.error.message;return`
${dx.default.render(D)}`}function kO(D){if(typeof D!=="string"&&typeof D!=="number")return;return uQ(String(D)).slice(0,cx)}function fXD(D){if(typeof D==="string")return uQ(D).slice(0,cx);if(!D||typeof D!=="object")return String(D);let $=D,J=kO($.name),X=kO($.message),Y=J&&X?`${J}: ${X}`:X||J||Object.prototype.toString.call(D),Q=[["code",$.code],["errno",$.errno],["syscall",$.syscall],["address",$.address],["port",$.port]].map(([U,F])=>{let W=kO(F);return W?`${U}=${W}`:void 0}).filter(Boolean);return`${Y}${Q.length>0?` (${Q.join(", ")})`:""}`}function SPD(D){let $=[],J=new Set,X=0,Y=(Q,U,F)=>{if(X>=xXD)return;if(Q&&typeof Q==="object"){if(J.has(Q))return;J.add(Q)}X++;let W=" ".repeat(F);if($.push(`${W}${U}${fXD(Q)}`),!Q||typeof Q!=="object")return;let K=Q,q=[K.causingError,K.cause].filter((G,Z,H)=>G!==void 0&&G!==null&&H.indexOf(G)===Z);for(let G of q)Y(G,"Caused by: ",F+1);if(Array.isArray(K.errors))K.errors.forEach((G,Z)=>{Y(G,`Contained error ${Z+1}: `,F+1)})};return Y(D,"",0),uQ($.join(`
`))}async function CPD(D,$,J=!1){let{data:X,error:Y}=await og(()=>D.rpc("reject_access_due_to_2fa_for_org",{org_id:$}));if(Y){if(!J&&!U9(Y))r.error(`Cannot check 2FA compliance: ${Y.message}`);if(U9(Y)){await ag({silent:J,telemetryFunctionName:"check2FAAccessForOrg"});return}sg(Y)}if(X){if(!J)r.error(`\uD83D\uDD10 Access Denied: 2FA Required. Enable 2FA at ${ix("/settings/account")}`);throw Error("2FA required for this organization")}}function kPD({silent:D=!1,stdinIsTTY:$=!!mx.isTTY,stdoutIsTTY:J=!!lx.isTTY,ci:X=hO.isCI}={}){return!D&&$&&J&&!X}function yXD(D={}){let $=D.ci??hO.isCI,J=D.stdinIsTTY??!!mx.isTTY,X=D.stdoutIsTTY??!!lx.isTTY,Y=D.platform??fx(),Q="display"in D?D.display:a4.DISPLAY;if($||!J||!X)return!1;if(Y==="linux"&&!Q)return!1;return!0}async function hXD(D){if(!yXD())return;try{await(await Promise.resolve().then(() => (bx(),Px))).default(D)}catch($){if($?.code==="ENOENT")return}}function _PD(D){return Qq(D)||Uq(D)}function d6(D){if(Qq(D))return UC(D);else if(Uq(D))return FC(D);return D}function px(D=d6(T0()),$=void 0){let J=$?.split(",")[0],X=J??LD(D,V$);if(!ID(X)){let Q=J?`Package.json at ${X} does not exist`:`No package.json found at ${X}. Run this command from your project root (the folder that contains package.json), or pass --package-json <path> to point at it (for example in a monorepo).`;throw r.error(Q),Error(Q)}let Y=H0(X);return JSON.parse(Y)}function uPD(D=d6(T0()),$=void 0){return px(D,$).scripts}function gPD(D=d6(T0()),$=void 0){return px(D,$).version??""}function mXD(D){let $=D.replace("^","").replace("~","");if(m9($))try{let J=s$($);return LF(J)}catch{return $}return $}async function xPD(D,$=T0(),J){let X=J?J.split(",").map((U)=>U.trim()).filter(Boolean):[],Y=[],Q=(U)=>{let F=eD(U);if(!Y.includes(F))Y.push(F)};for(let U of X){let F=eD($,U);if(ID(F))Q(l6(F))}Q(eD($)),Q(T0());for(let U of Y)try{let F=`${D}/package.json`,{createRequire:W}=await import("node:module"),q=W(LD(U,"package.json")).resolve(F),G=JSON.parse(H0(q,"utf-8"));if(G.version)return G.version}catch{}for(let U of Y){let F=U,W=s4.parse(F).root;while(F!==W){let K=LD(F,"node_modules",D,V$);if(ID(K))try{let G=JSON.parse(H0(K,"utf-8"));if(G.version)return G.version}catch{}let q=l6(F);if(q===F)break;F=q}}if(D==="@capgo/capacitor-updater"){let U=null,F=LD($,"ios","App","Podfile");if(ID(F))try{let K=H0(F,"utf-8").match(/pod\s+['"]CapgoCapacitorUpdater['"],\s*:path\s*=>\s*['"]([^'"]+)['"]/);if(K?.[1])U=eD(LD($,"ios","App",K[1]))}catch{}if(!U){let W=LD($,"android","capacitor.settings.gradle");if(ID(W))try{let q=H0(W,"utf-8").match(/project\(':capgo-capacitor-updater'\)\.projectDir\s*=\s*new\s+File\(['"]([^'"]+)['"]/);if(q?.[1])U=eD(LD($,"android",q[1])).replace(/\/android$/,"")}catch{}}if(U){let W=LD(U,V$);if(ID(W))try{let K=JSON.parse(H0(W,"utf-8"));if(K.version)return K.version}catch{}}}try{let U=J?J.split(",").map((K)=>K.trim()).filter(Boolean).join(","):J,W=(await tQ($,U)).get(D);if(W)return W}catch{}return null}async function tQ(D=d6(T0()),$=void 0){let J=$?.split(",").map((Q)=>Q.trim()).filter(Boolean);if(J??=[LD(D,V$)],J){for(let Q of J)if(!ID(Q)){let U=`Package.json at ${Q} does not exist`;throw r.error(U),Error(U)}}let X=new Map,{createRequire:Y}=await import("node:module");for(let Q of J){let U=H0(Q),F=JSON.parse(U),W=l6(Q),K=(q,G)=>{try{let I=Y(LD(W,"package.json")).resolve(`${q}/package.json`),B=JSON.parse(H0(I,"utf-8"));if(B.version)return B.version}catch{}let Z=W,H=s4.parse(Z).root;while(Z!==H){let z=LD(Z,"node_modules",q,V$);if(ID(z))try{let B=JSON.parse(H0(z,"utf-8"));if(B.version)return B.version}catch{}let I=l6(Z);if(I===Z)break;Z=I}return mXD(G)};for(let q in F.dependencies)X.set(q,K(q,F.dependencies[q]));for(let q in F.devDependencies)X.set(q,K(q,F.devDependencies[q]))}return X}async function lXD(D=d6(T0()),$=void 0){let J=$?.split(",").map((Y)=>Y.trim()).filter(Boolean);if(J??=[LD(D,V$)],J){for(let Y of J)if(!ID(Y)){let Q=`Package.json at ${Y} does not exist`;throw r.error(Q),Error(Q)}}let X=new Map;for(let Y of J){let Q=H0(Y),U=JSON.parse(Q);for(let F in U.dependencies??{})if(typeof U.dependencies[F]==="string")X.set(F,U.dependencies[F]);for(let F in U.devDependencies??{})if(typeof U.devDependencies[F]==="string")X.set(F,U.devDependencies[F])}return X}function dXD(D){if(!D)return!1;if(D.config&&Object.keys(D.config).length>0)return!0;return!!D.path&&ID(D.path)}async function nx(D,$=!1){let J=iXD;try{let X=await D();if(!dXD(X)){if(!$)r.error(J);throw new xD(J)}return X}catch(X){if(X instanceof xD)throw X;let Y=m0(X);if(!$)r.error(`${J}: ${Y}`);throw new xD(J,{cause:Y})}}function XK(D=!1){return nx(Hq,D)}function cXD(D=!1){return nx(Iq,D)}async function pXD(D,$){let J=await cXD();if(J?.config)J.config.plugins??={},J.config.plugins.extConfig??={},J.config.plugins[D]??={},J.config.plugins[D]={...J.config.plugins[D],...$},await Bq(D,J);return J}async function fPD(D){return pXD("CapacitorUpdater",D)}async function B4(D=!1){try{let $=await XK(D),J={host:$?.config?.plugins?.CapacitorUpdater?.localHost||Sx,hostWeb:$?.config?.plugins?.CapacitorUpdater?.localWebHost||pQ,hostFilesApi:$?.config?.plugins?.CapacitorUpdater?.localApiFiles||Cx,hostApi:$?.config?.plugins?.CapacitorUpdater?.localApi||cQ};if($?.config?.plugins?.CapacitorUpdater?.localSupa&&$?.config?.plugins?.CapacitorUpdater?.localSupaAnon){if(!D)r.info("Using custom supabase instance from capacitor.config.json");J.supaKey=$?.config?.plugins?.CapacitorUpdater?.localSupaAnon,J.supaHost=$?.config?.plugins?.CapacitorUpdater?.localSupa}return J}catch{return{host:Sx,hostWeb:pQ,hostFilesApi:Cx,hostApi:cQ}}}function _x(D){return typeof D==="object"&&D!==null}function nXD(D){if(!_x(D))return!1;let $=D.capacitor;if(_x($)&&($.ios!==void 0||$.android!==void 0))return!0;return!1}function rXD(D){if(ID(LD(D,"plugin.xml")))return!0;let $=LD(D,V$);if(!ID($))return!1;try{return nXD(JSON.parse(H0($,"utf-8")))}catch{return!1}}async function D3(D=!1,$){let J=(Y)=>{let Q={...Y};return HE(Q,void 0,D),Q};if(!$&&_O)return J(_O);if(!$&&lQ)return lQ.then(J);let X=(async()=>{let Y=await B4(D);try{let Q=ox(),U=await fetch(`${Y.hostApi}/private/config`,{...$?{signal:$}:{},headers:G6(Q?{capgkey:Q}:void 0)});if(!U.ok)throw Error(`HTTP error! status: ${U.status}`);let W={...await U.json(),...Y};if(!$)_O=W;return{...W}}catch{if(!D)r.info(`Local config ${m0(Y)}`);return{...Y}}finally{if(!$)lQ=null}})();if(!$)lQ=X;return X.then(J)}async function yPD(){let D=await B4();try{let $=ox(),J=await fetch(`${D.hostFilesApi}/files/config`,{headers:G6($?{capgkey:$}:void 0)});if(!J.ok)throw Error(`HTTP error! status: ${J.status}`);return await J.json()}catch{return{partialUpload:!1,TUSUpload:!1,partialUploadForced:!1,TUSUploadForced:!1,maxUploadLength:kXD,maxChunkSize:_XD,alertUploadSize:CXD}}}function K9(D){let $=new URL(D);if(!["http:","https:"].includes($.protocol))throw Error("Invalid Supabase host protocol");let J=$.hostname==="localhost"||$.hostname==="127.0.0.1"||$.hostname==="[::1]";if($.protocol==="http:"&&!J)throw Error("Supabase host must use HTTPS (HTTP is only allowed for localhost)");if($.username||$.password)throw Error("Supabase host must not include credentials");if($.search||$.hash)throw Error("Supabase host must not include query parameters or fragments");let X=V1($.pathname);return`${$.origin}${X}`}function tXD(D){if(!D||typeof D!=="object")return"";let $=D;return[$.error,$.message,$.status].filter(Boolean).join(" | ")}function ux(D,$){let J=D.indexOf($);if(J<0)return D;return D.slice(J+$.length).replace(/^:\s*/,"").split(`
`)[0].trim()}async function hPD(D){let $=await tx(D);if($?.error==="channel_zip_required"||$?.error==="channel_delta_required")return $.message||$.error;let J=D instanceof Error?D.message:String(D??"");if(J.includes("CHANNEL_ZIP_REQUIRED"))return ux(J,"CHANNEL_ZIP_REQUIRED");if(J.includes("CHANNEL_DELTA_REQUIRED"))return ux(J,"CHANNEL_DELTA_REQUIRED");return null}function e7(D){if(!D)return!1;try{let $=new URL(K9(D)).hostname.toLowerCase();return $==="sb.capgo.app"||$==="xvwzpoazmxkqosrdewyv.supabase.co"||$==="ibwjdnhknbkcqfbabwei.supabase.co"||$==="aucsybvnhavogdmzwtcw.supabase.co"}catch{return!1}}function oXD(D){if(D.supaHost&&D.supaKey&&D.hostApi===cQ&&!e7(D.supaHost))return`${K9(D.supaHost)}/functions/v1`;return D.hostApi}function mPD(D){let $=D?.context;return typeof $?.status==="number"?$.status:void 0}async function tx(D){let $=D?.context;if(!$||typeof $.clone!=="function")return null;try{let J=await $.clone().text();try{return JSON.parse(J)}catch{return J?{message:J}:null}}catch{return null}}async function lPD(D){let $=await tx(D);if($){let J=tXD($);if(J)return J}return m0(D)}async function oQ(D,$){let J=($.method??"POST").toUpperCase(),X,Y=$.supaAnon;if($.supaHost&&$.supaAnon&&!e7($.supaHost))X=`${K9($.supaHost)}/functions/v1`;else{let F=await D3(!0);if(Y=$.supaAnon??F.supaKey,F.supaHost&&F.supaKey&&F.hostApi===cQ&&!e7(F.supaHost)&&!($.supaHost&&e7($.supaHost)))X=`${K9(F.supaHost)}/functions/v1`;else if($.useFilesHost)X=F.hostFilesApi;else X=F.hostApi}let Q=X.includes("/functions/v1"),U=`${V1(X)}/${D.replace(/^\//,"")}`;try{let F=await fetch(U,{method:J,redirect:"error",headers:G6({"Content-Type":"application/json",Authorization:Q&&Y?`Bearer ${Y}`:$.apikey,capgkey:$.apikey}),body:J==="GET"||J==="HEAD"?void 0:typeof $.body==="string"?$.body:JSON.stringify($.body??{}),signal:$.signal});if(!F.ok)return{data:null,error:new h$.FunctionsHttpError(F)};return{data:(F.headers.get("content-type")??"").includes("application/json")?await F.json().catch(()=>null):await F.text().catch(()=>null),error:null}}catch(F){return{data:null,error:F instanceof Error?F:Error(String(F))}}}async function dPD(D,$=!0){if(D?.supaHost&&D?.supaAnon){if(e7(D.supaHost))return(await B4($)).hostApi;return`${K9(D.supaHost)}/functions/v1`}let J=await B4($);if(J.supaHost&&J.supaKey)return oXD(J);return(await D3($)).hostApi}async function iPD(D,$,J,X=!1,Y=!0,Q){let U=await D3(X,Q);if($&&J){if(!X)r.info("Using custom supabase instance from provided options");U.supaHost=$,U.supaKey=J}if(!U.supaHost||!U.supaKey){if(!X)r.error(kx);throw new xD(kx,{missingSupaHost:!U.supaHost,missingSupaKey:!U.supaKey})}let F=K9(U.supaHost);return GL(F,U.supaKey,{auth:{persistSession:!1},global:{headers:{capgkey:sU("capgkey",D)},...qE()&&Y?{fetch:ZE()}:{}}})}async function aXD(D,$){let{data:J}=await D.rpc("is_paying_org",{orgid:$}).single();return J||!1}async function sXD(D,$){let{data:J}=await D.rpc("is_trial_org",{orgid:$}).single();return J||0}async function eXD(D,$,J){let{data:X}=await D.rpc("has_usage_credits_org",J?{orgid:$,appid:J}:{orgid:$}).single();return X||!1}function DYD(D){let{trialDays:$,isPaying:J,hasCredits:X,warning:Y=!0}=D;return!!Y&&$>0&&!J&&!X}async function $YD(D,$){let{data:J,error:X}=await D.rpc("is_allowed_action_org",{orgid:$}).single();if(X)throw Error(`Cannot validate plan: ${m0(X)}`);return J===!0}async function uO(D,$,J,X){let{data:Y,error:Q}=X?await D.rpc("is_allowed_action_org_action",{orgid:$,actions:J,appid:X}):await D.rpc("is_allowed_action_org_action",{orgid:$,actions:J});if(Q){if(X&&Q.code==="PGRST202")return $YD(D,$);throw Error(`Cannot validate plan: ${m0(Q)}`)}return Y===!0}async function JYD(D,$,J,X){if(X){if(await uO(D,$,J,X))return"allowed";if(await uO(D,$,J))return"permission_denied";return"billing_denied"}return await uO(D,$,J)?"allowed":"billing_denied"}async function XYD(D,$){throw r.error(`You need to upgrade your plan to continue to use capgo.
Upgrade here: ${D}
`),await hXD(D),new xD($)}async function YYD(){throw r.error("Cannot validate plan usage for this app. The API key may lack permission to read app billing details."),new xD("Plan validation permission denied")}async function cPD(D,$,J){let{data:X,error:Y}=await D.rpc("get_organization_cli_warnings",{orgid:$,cli_version:J});if(Y){r.error(`Cannot get cli warnings: ${m0(Y)}`);return}if(X.length>0){r.warn(`Found ${X.length} cli warnings for your organization.`);let Q=null;for(let U of X){if(typeof U!=="object"||typeof U.message!=="string"||typeof U.fatal!=="boolean"){r.error(`Invalid cli warning: ${U}`);continue}let F=U;if(F.fatal)r.error(`${F.message.replaceAll("\\n",`
`)}`),Q=Error(F.message);else r.warn(`${F.message.replaceAll("\\n",`
`)}`)}if(Q)throw r.error("Please fix the warnings and try again."),Q;r.info("End of cli warnings.")}}async function pPD(D,$,J,X=!0){let Q=`${(await D3()).hostWeb}/settings/organization/plans?oid=${encodeURIComponent($)}`,U=await JYD(D,$,["storage"],J);if(U==="permission_denied")await YYD();if(U==="billing_denied")await XYD(Q,"Plan upgrade required for upload");let[F,W,K]=await Promise.all([sXD(D,$),aXD(D,$),eXD(D,$,J)]);if(DYD({trialDays:F,isPaying:W,hasCredits:K,warning:X}))r.warn(`WARNING !!
Trial expires in ${F} days, upgrade here: ${Q}
`),MC($)}function nQ(D){try{if(!ID(D))return;return H0(D,"utf8").trim()||void 0}catch{return}}function ox(){let D=a4.CAPGO_TOKEN?.trim();if(D)return D;let $=nQ(`${xx()}/.capgo`);if($)return $;return nQ(".capgo")}function PE(D=!1,$=(J)=>r.info(J)){let J=a4.CAPGO_TOKEN?.trim();if(J){if(!D)$("Use CAPGO_TOKEN environment variable");return J}let Y=`${xx()}/.capgo`,Q=nQ(Y);if(Q){if(!D)$(`Use global API key ${Y}`)}else if(Y=".capgo",Q=nQ(Y),Q&&!D)$(`Use local API key ${Y}`);if(!Q){let F=`No Capgo API key found. Run \`${SC()}\` first, then retry this command.`;throw r.error(F),new xD(F)}return Q}async function*mO(D){let $=await q9(D,{withFileTypes:!0});for(let J of $){let X=eD(D,J.name);if(J.isDirectory()&&!J.name.startsWith(".")&&!J.name.startsWith("node_modules")&&!J.name.startsWith("dist"))yield*mO(X);else yield X}}function nPD(D){let J=(D.endsWith(".br")?D.slice(0,-3):D).split(".").pop()?.toLowerCase()||"";return{html:"text/html",htm:"text/html",js:"application/javascript",mjs:"application/javascript",cjs:"application/javascript",css:"text/css",json:"application/json",jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",gif:"image/gif",bmp:"image/bmp",webp:"image/webp",svg:"image/svg+xml",ico:"image/x-icon",avif:"image/avif",woff:"font/woff",woff2:"font/woff2",ttf:"font/ttf",otf:"font/otf",eot:"application/vnd.ms-fontobject",mp3:"audio/mpeg",wav:"audio/wav",ogg:"audio/ogg",mp4:"video/mp4",webm:"video/webm",xml:"application/xml",txt:"text/plain",md:"text/markdown",pdf:"application/pdf",wasm:"application/wasm",map:"application/json"}[J]||"application/octet-stream"}function k1(D,$){return`${D}-${$?"ts":"js"}`}function _1(D,$){if(!$)r.info(`Found ${D} project`)}function QYD(D){if(ID(eD(D,"angular.json")))return"angular";if(ID(eD(D,"nuxt.config.js"))||ID(eD(D,"nuxt.config.ts")))return"nuxtjs";if(ID(eD(D,"next.config.js"))||ID(eD(D,"next.config.mjs"))||ID(eD(D,"next.config.ts")))return"nextjs";if(ID(eD(D,"svelte.config.js"))||ID(eD(D,"svelte.config.ts")))return"sveltekit";if(ID(eD(D,"vue.config.js"))||ID(eD(D,"vue.config.ts")))return"vue"}function ax(D){if(D.get("@angular/core"))return"angular";if(D.get("nuxt"))return"nuxtjs";if(D.get("next"))return"nextjs";if(D.get("@sveltejs/kit"))return"sveltekit";if(D.get("svelte"))return"svelte";if(D.get("vue"))return"vue";if(D.get("react"))return"react"}async function UYD(D,$){let J=ID(eD(D,"tsconfig.json")),X=QYD(D);if(X)return _1(X,$),k1(X,J);let Y=eD(D,V$);if(!ID(Y))return;let Q=await tQ(void 0,Y),U=ax(Q);if(!U)return;return _1(U,$),k1(U,J)}function gO(D,$){if(!$)return;let J=eD($);if(!D.includes(J))D.push(J)}function FYD(D){let $=D,J=s4.parse($).root;while(!0){if(ID(eD($,V$)))return $;if($===J)return;let X=l6($);if(X===$)return;$=X}}function WYD(D){let $=[],J=D?.split(",").map((X)=>X.trim()).filter(Boolean)[0];if(J)gO($,l6(eD(J)));return gO($,FYD(T0())),gO($,d6(T0())),$}async function rPD(D){let $=T0(),J=!1,X=D?.quiet??!1;for(let Q of WYD(D?.packageJsonPath)){let U=await UYD(Q,X);if(U)return U}let Y=eD($,"tsconfig.json");if(ID(Y))J=!0;for await(let Q of mO($)){if(Q.includes("angular.json"))return _1("angular",X),k1("angular",J);if(Q.includes("nuxt.config.js")||Q.includes("nuxt.config.ts"))return _1("nuxtjs",X),k1("nuxtjs",J);if(Q.includes("next.config.js")||Q.includes("next.config.mjs")||Q.includes("next.config.ts"))return _1("nextjs",X),k1("nextjs",J);if(Q.includes("svelte.config.js")||Q.includes("svelte.config.ts"))return _1("sveltekit",X),k1("sveltekit",J);if(Q.includes("vue.config.js")||Q.includes("vue.config.ts"))return _1("vue",X),k1("vue",J);if(Q.includes(V$)){let U=l6(Q),F=await tQ(U),W=ax(F);if(W)return _1(W,X),k1(W,J)}}return"unknown"}function tPD(D,$,J=T0()){if(D==="angular-js"||D==="angular-ts")return $?"src/main.ts":"src/main.js";if(D==="nextjs-js"||D==="nextjs-ts")return $?"src/app/layout.tsx":"src/app/layout.js";if(D==="svelte-js"||D==="svelte-ts")return $?"src/main.ts":"src/main.js";if(D==="vue-js"||D==="vue-ts")return $?"src/main.ts":"src/main.js";if(D==="react-js"||D==="react-ts"){let X=$?"src/main.tsx":"src/main.js",Y=$?"src/index.tsx":"src/index.js";if(ID(eD(J,X)))return X;return Y}return null}async function oPD(D){let $=D.replace(/-(?:ts|js)$/,"");if($==="angular")return r.info("Angular project detected"),"build";if($==="nuxtjs")return r.info("Nuxtjs project detected"),"generate";if($==="nextjs"){if(r.info("Nextjs project detected"),r.warn("Please make sure you have configured static export in your next.config.js: https://nextjs.org/docs/pages/building-your-application/deploying/static-exports"),r.warn("Please make sure you have the output: 'export' and distDir: 'dist' in your next.config.js"),!await N8({message:"Do you want to continue?"}))throw r.error("Build command selection aborted by user"),Error("Build command selection aborted by user");return"build"}if($==="sveltekit"){if(r.info("Sveltekit project detected"),r.warn("Please make sure you have the adapter-static installed: https://kit.svelte.dev/docs/adapter-static"),r.warn("Please make sure you have the pages: 'dist' and assets: 'dest', in your svelte.config.js adapter"),!await N8({message:"Do you want to continue?"}))throw r.error("Build command selection aborted by user"),Error("Build command selection aborted by user");return"build"}return"build"}async function aPD(D=!1,$=T0()){let J=/(main|index)\.(ts|tsx|js|jsx)$/,X="",Y=eD($),Q=Y.split("/").length;for await(let U of mO(Y))if(U.split("/").length-Q<=2&&J.test(U)){if(X=U,!D)r.info(`Found main file here ${U}`);break}return X}function sPD(D,$){return D.from("app_versions").upsert($,{onConflict:"name,app_id"}).eq("app_id",$.app_id).eq("name",$.name)}async function ePD(D,$,J,X){let Y={app_id:$,name:J,version:0};try{let Q=await oQ("files/upload_link",{apikey:D,body:Y,useFilesHost:!0,supaHost:X?.supaHost,supaAnon:X?.supaAnon});if(Q.error){if(Q.error instanceof h$.FunctionsHttpError){let U=await Q.error.context.json().catch(()=>({}));r.error(`Upload URL error: ${U.status||JSON.stringify(U)}`)}else r.error(`Cannot get upload url: ${Q.error.message}`);return""}return Q.data?.url??""}catch(Q){r.error(`Cannot get upload url ${m0(Q)}`)}return""}async function*sx(D){let $=q9(D,{withFileTypes:!0});for(let J of $){let X=LD(D,J.name);if(J.isDirectory())yield*sx(X);else yield X}}function XbD(D,$="5.10.0",J="6.25.0",X="7.25.0"){if(D.major===5&&r1(D,s$($)))return!0;if(D.major===6&&r1(D,s$(J)))return!0;if(D.major===7&&r1(D,s$(X)))return!0;return!1}async function YbD(D){let $=[],J=[".DS_Store",".git",".gitignore","node_modules","package-lock.json","tsconfig.json","tsconfig.app.json","tsconfig.spec.json","tsconfig.app.json","tsconfig.spec.json","tsconfig.app.json","tsconfig.spec.json"];for await(let X of sx(D)){if(J.some((F)=>X.includes(F))){r.info(`Ignoring file ${X}, please ensure you have only required files in your dist folder`);continue}let Y=H0(X);if(Y.length===0){r.info(`Ignoring empty file ${X}, please ensure you have only required files in your dist folder`);continue}let Q=await KC(Y,"sha256"),U=yx(D,X);if(U.startsWith("/"))U=U.substring(1);$.push({file:U,hash:Q})}return $}async function QbD(D){if(fx()==="win32")return qYD(D);else return KYD(D)}function KYD(D){let $=new yO.default;return $.addLocalFolder(D),$.toBuffer()}async function qYD(D){r.info("Zipping file windows mode");let $=new yO.default,J=(X,Y)=>{let Q=q9(X);for(let U of Q){let F=LD(X,U),W=PXD(F);if(W.isFile()){let K=H0(F);$.addFile(LD(Y,U).split(hx).join("/"),K)}else if(W.isDirectory())J(F,LD(Y,U))}};return J(D,""),$.toBuffer()}function GYD(D){let $=fO();return`App ${D} does not exist, run first \`${$.runner} @capgo/cli app add ${D}\` to create it`}function ZYD(D){let J=D?.originalResponse?.getBody?.(),X=D instanceof Error?D.message:String(D??"");return`${J??""} ${X}`.includes("app_not_found")}async function UbD(D,$,J,X,Y,Q,U,F){return new Promise((W,K)=>{Y2(D,{channel:"app",event:"App TUS upload",org_id:J,tracking_version:2,tags:{"app-id":X}}),new rQ.Upload($,{endpoint:`${U.hostFilesApi}/files/upload/attachments/`,chunkSize:F,retryDelays:[...uXD],metadataForPartialUploads:{filename:`orgs/${J}/apps/${X}/${Y}.zip`,filetype:"application/gzip"},metadata:{filename:`orgs/${J}/apps/${X}/${Y}.zip`,filetype:"application/zip"},headers:G6({Authorization:D}),onError(G){if(r.error(`Error uploading bundle: ${G.message}`),ZYD(G)){K(Error(GYD(X)));return}if(G instanceof rQ.DetailedError){let Z=G.originalResponse?.getBody(),H=G.originalResponse?.getStatus(),z=G.originalRequest?.getURL(),I=(()=>{try{let B=JSON.parse(Z||'{"error": "unknown error"}');return B.status||B.error||B.message||"unknown error"}catch{return Z||G.message}})();K(Error(`TUS upload failed (status ${H??"unknown"}, url ${z??"unknown"}): ${I}`))}else K(Error(`TUS upload failed: ${G.message||G.toString()}`))},onProgress(G,Z){let H=(G/Z*100).toFixed(2);Q.message(`Uploaded ${H}%`)},async onSuccess(){await Y2(D,{channel:"app",event:"App TUS done",org_id:J,tracking_version:2,tags:{"app-id":X}}).catch(),W(!0)}}).start()})}async function FbD(D,$,J,X){let Q=await oQ("private/delete_failed_version",{apikey:D,method:"DELETE",body:{app_id:$,name:J},supaHost:X?.supaHost,supaAnon:X?.supaAnon});if(Q.error){if(Q.error instanceof h$.FunctionsHttpError){let U=await Q.error.context.json().catch(()=>({}));throw Error(U.status||U.message||JSON.stringify(U))}throw Error(Q.error.message)}}async function WbD(D,$,J,X,Y){let U=await oQ("private/set_manifest",{apikey:D,body:{app_id:$,name:J,manifest:X},supaHost:Y?.supaHost,supaAnon:Y?.supaAnon});if(U.error){if(U.error instanceof h$.FunctionsHttpError){let F=await U.error.context.json().catch(()=>({}));throw Error(F.error||F.status||F.message||JSON.stringify(F))}throw Error(U.error.message)}}async function KbD(D,$){if(!$.app_id||!$.name||!$.created_by)return r.error("missing app_id, name, or created_by"),Promise.reject(Error("missing app_id, name, or created_by"));let{data:J,error:X}=await D.from("channels").select().eq("app_id",$.app_id).eq("name",$.name).single();if(J&&!X)return D.from("channels").update($).eq("app_id",$.app_id).eq("name",$.name).select().single();return D.from("channels").insert($).select().single()}async function Y2(D,$,J,X,Y,Q){let U=Date.now();if((p5(a4.CAPGO_DISABLE_TELEMETRY)||p5(a4.CAPGO_DISABLE_POSTHOG))&&!$.notifyConsole)return;try{let W={};try{W=QE()}catch(z){if(J)r.error(`Failed to enrich event tags, sending caller tags only: ${m0(z)}`)}let K={...$,nonPersonTags:{...W,...$.nonPersonTags??{}}};if(J)r.info(`Get remove config: for ${$.event}`);let q=Y??(await D3(!0,X)).hostApi;if(J)r.info(`Sending analytics event: ${JSON.stringify(K)}`);let G=new AbortController,Z=setTimeout(()=>G.abort(),1e4),H=X?typeof AbortSignal.any==="function"?AbortSignal.any([G.signal,X]):X:G.signal;try{A$("telemetry request started");let z=await fetch(`${V1(q)}/private/events`,{method:"POST",body:JSON.stringify(K),headers:G6({"Content-Type":"application/json",capgkey:D}),signal:H,redirect:Q});if(A$("telemetry response received",{duration_ms:Date.now()-U,status:z.status}),clearTimeout(Z),!z.ok)throw Error(`HTTP error! status: ${z.status}`);let I=await z.json();if(I.error&&J)r.error(`Failed to send analytics event: ${I.error}`)}finally{clearTimeout(Z)}}catch(W){if(A$("telemetry request failed",{duration_ms:Date.now()-U,error:c5(W)}),J)r.error("Failed to send Stats event details:"),r.error(m0(W))}}function zYD(D){if(r.error(`
\uD83D\uDD10 Access Denied: Two-Factor Authentication Required`),r.error("━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"),D)r.error(`
The organization "${D}" requires all members to have 2FA enabled.`);else r.error(`
This organization requires all members to have 2FA enabled.`);throw r.error(`
To regain access:`),r.error(` 1. Go to ${ix("/settings/account")}`),r.error(" 2. Enable Two-Factor Authentication on your account"),r.error(" 3. Try your command again"),r.error(`
For more information, visit: https://capgo.app/docs/webapp/2fa-enforcement/
`),Error("2FA required for this organization")}async function HYD(D,$,J,X){return(await Promise.all(J.map(async(Q)=>{return await ex(D,$,X,{orgId:Q.gid})?Q:null}))).filter((Q)=>Q!==null)}async function IYD(D,$,J){let{error:X,data:Y}=await D.rpc("get_orgs_v7");if(X)throw r.error("Cannot get the list of organizations - exiting"),r.error(m0(X)),Error("Cannot get the list of organizations");if(Y.length===0)throw r.error("Could not get organization please create an organization first"),Error("No organizations available");let Q=await HYD(D,$,Y,J);if(Q.length===0)throw r.error(`Could not find organization with permission: ${J}`),Error("Could not find organization with required permission");return{allOrganizations:Y,allowedOrganizations:Q}}async function qbD(D,$,J){let{allOrganizations:X,allowedOrganizations:Y}=await IYD(D,$,J),Q=Y.length>1?await Lw({message:"Please pick the organization that you want to insert to",options:Y.map((W)=>{let K=W.enforcing_2fa&&!W["2fa_has_access"]?" ⚠️ (2FA required)":"";return{value:W.gid,label:`${W.name}${K}`}})}):Y[0].gid;if(n1(Q))throw r.warn("Canceled organization selection, exiting"),new xD("Organization selection cancelled");let U=Q,F=X.find((W)=>W.gid===U);if(F.enforcing_2fa&&!F["2fa_has_access"])zYD(F.name);return r.info(`Using the organization "${F.name}" as the app owner`),F}async function BYD(D,$,J=!1){let{data:X,error:Y}=await D.rpc("request_actor_user_id"),Q=(X||"").toString();if(Y){if(!J)r.error(Y.message);throw Y}if(!Q){if(!J)r.error("Capgo authentication failed: invalid Capgo API key or insufficient Capgo permissions.");throw Error("Capgo authentication failed: invalid Capgo API key or insufficient Capgo permissions.")}return Q}async function ex(D,$,J,X={}){let{data:Y,error:Q}=await D.rpc("cli_check_permission",{apikey:$,permission_key:J,org_id:X.orgId??null,app_id:X.appId??null,channel_id:X.channelId??null});if(Q)throw r.error(`Cannot check permission ${J}`),r.error(m0(Q)),Error(`Cannot check permission ${J}`);return!!Y}async function OYD(D,$,J,X={},Y={}){if(await ex(D,$,J,X))return;let U=Y.message||`Insufficient permissions for ${J}`;if(!Y.silent)r.error(U);throw new xD(`Insufficient permissions for ${J}`,{permissionKey:J,...X})}async function GbD(D,$,J,X,Y,Q){await BYD(D,$,Q),await OYD(D,$,J,{orgId:X},{message:Y,silent:Q})}async function bE(D,$,J){let{data:X,error:Y}=await oQ(`app/${encodeURIComponent($)}`,{apikey:D,method:"GET",body:void 0,supaHost:J?.supaHost,supaAnon:J?.supaAnon});if(!X?.owner_org||Y){let Q=m0(Y);throw r.error(`Cannot get organization id for app id ${$}: ${Q}`),new xD("Cannot get organization id for app",{appId:$,cause:Q})}return X.owner_org}function ZbD(D){return new Date(D||"").toLocaleString()}function fO(){if(xO)return{pm:o4,command:W9,installCommand:`${o4} ${W9}`,runner:iQ};let D=d6(T0());return o4=C9(D,"npm"),W9=C3(o4),xO=!0,iQ=mV(D),{pm:o4,command:W9,installCommand:`${o4} ${W9}`,runner:iQ}}function zbD(D){o4=D.pm,W9=D.command,iQ=D.runner,xO=!0}function NYD(D,$){return{summary:`Best fix: recreate and sync ${$==="ios"?"iOS":"Android"} with this one-line command.`,command:`rm -rf ${$} && ${D} cap add ${$} && ${D} cap sync ${$}`}}function Df(D){return q9(D,{withFileTypes:!0}).flatMap((X)=>{let Y=LD(D,X.name);if(X.isDirectory())return Df(Y);else return Y.split(`node_modules${hx}`)[1]||Y})}function $f(D){if(!ID(D))return[];try{return q9(D,{withFileTypes:!0}).flatMap((X)=>{let Y=LD(D,X.name);if(X.isDirectory())return $f(Y);else return Y})}catch{return[]}}function VYD(D,$){let J=[];if($==="ios"){try{let Q=q9(D);for(let U of Q)if(U.endsWith(".podspec"))J.push(LD(D,U))}catch{}let X=LD(D,"Package.swift"),Y=LD(D,"ios","Package.swift");if(ID(X))J.push(X);if(ID(Y))J.push(Y)}else if($==="android"){let X=LD(D,"android"),Y=LD(X,"build.gradle"),Q=LD(X,"build.gradle.kts");if(ID(Y))J.push(Y);if(ID(Q))J.push(Q)}return J}async function wYD(D){let $=LD(D,"ios"),J=LD(D,"android"),X=async(U,F)=>{let W=ID(U)?$f(U).filter((H)=>rx.test(H)):[],K=VYD(D,F),q=[...W,...K].sort((H,z)=>H.localeCompare(z));if(q.length===0)return;let{createHash:G}=await import("node:crypto"),Z=G("sha256");for(let H of q)try{let z=yx(D,H);Z.update(z);let I=H0(H);Z.update(I)}catch{}return Z.digest("hex")},[Y,Q]=await Promise.all([X($,"ios"),X(J,"android")]);return{ios_checksum:Y,android_checksum:Q}}function jYD(D){let $=[],J=D,X=s4.parse(J).root;while(!0){if($.push(LD(J,"node_modules")),J===X)break;let Y=l6(J);if(Y===J)break;J=Y}return $}async function LYD(D,$){let J=$?$.split(",").map((G)=>G.trim()).filter(Boolean):[],X;try{X=await tQ("",D)}catch(G){throw r.error("Invalid package.json, JSON parsing failed"),r.error(`json parse error: ${m0(G)}`),G instanceof Error?G:Error("Invalid package.json")}let Y=D?D.split(",")[0].trim():void 0,Q=!Y?d6(T0()):s4.resolve(Y).replace(V$,"");if(!X)throw r.error("Missing dependencies section in package.json"),Error("Missing dependencies section in package.json");for(let[G,Z]of Object.entries(X))if(typeof Z!=="string")throw r.error(`Invalid dependency ${G}: ${Z}, expected string, got ${typeof Z}`),Error(`Invalid dependency ${G}: expected string version`);let U=J.length===0?jYD(T0()):J;if(!U.some((G)=>ID(G))){let G=C9(Q,"npm"),Z=C3(G);throw r.error(`Missing node_modules folder at ${U.join(", ")}, please run ${G} ${Z}`),Error("Missing node_modules folder")}let W=!1,K=await lXD(d6(T0()),D),q=await Promise.all(Array.from(X.entries()).map(async([G,Z])=>{let H=!1,z=!1,I=Z,B=K.get(G)??Z,N;for(let j of U){let v=LD(j,G);if(ID(v)){H=!0,N=v;try{let A=LD(v,V$);if(ID(A)){let C=JSON.parse(H0(A,"utf-8"));if(C.version)I=C.version}}catch{}if(!rXD(v))continue;try{if(Df(v).some((C)=>rx.test(C))){z=!0;break}}catch(A){throw r.error(`Error reading node_modules files for ${G} package in ${j}`),r.error(m0(A)),A instanceof Error?A:Error(`Error reading node_modules files for ${G}`)}}}if(!H){W=!0;let j=C9(Q,"npm"),v=C3(j);return r.error(`Missing dependency ${G}, please run ${j} ${v}`),{name:G,version:I,requested_version:B}}let V,O;if(z&&N){let j=await wYD(N);V=j.ios_checksum,O=j.android_checksum}return{name:G,version:I,requested_version:B,native:z,ios_checksum:V,android_checksum:O}}));if(W||q.some((G)=>G.native===void 0))throw r.error("Missing dependencies or invalid dependencies"),r.error("If you use monorepo, workspace or any special package manager you can use the --package-json [path,] and --node-modules [path,] options to make the command work properly"),Error("Missing dependencies or invalid dependencies");return q}async function HbD(D,$,J){let{data:X,error:Y}=await D.from("channels").select("version:app_versions!channels_version_fkey(checksum)").eq("name",J).eq("app_id",$).single(),Q=X;if(Y||Q===null||!Q.version||!Q.version.checksum)return null;return Q.version.checksum}function gx(D){if(!D)throw r.error("Error parsing native packages, perhaps the metadata does not exist in Capgo?"),Error("Error parsing native packages");for(let J of D){let X=GO(dg,J);if(!X.success){let Y=X.error.issues.map((Q)=>`${(Q.path??[]).join(".")}: ${Q.message}`).join(", ");throw r.error(`Invalid remote native package data: ${Y}`),Error(`Invalid remote native package data: ${Y}`)}}return new Map(D.map((J)=>[J.name,J]))}async function Jf(D,$,J){let{data:X,error:Y}=await D.from("channels").select(`version:app_versions!channels_version_fkey(
native_packages
)`).eq("name",J).eq("app_id",$).maybeSingle();if(Y){let U=Y.code==="PGRST116"||Y.message?.includes("Cannot coerce")?`Multiple channels matched for app "${$}" and channel "${J}". Contact support if this persists.`:Y.message;throw r.error(`Error fetching native packages: ${U}`),Error(`Error fetching native packages: ${U}`)}if(!X)return gx([]);return gx(X.version?.native_packages??[])}function SE(D,$){return D||$?.plugins?.CapacitorUpdater?.appId||$?.appId}function RYD(D){let $=[];if(!D.localVersion)return{compatible:!0,reasons:[],message:"Package only exists on remote (will be removed)"};if(!D.remoteVersion)return $.push("new_plugin"),{compatible:!1,reasons:$,message:"New native plugin added (requires app store update)"};let J=!1;try{let G=r3(D.localVersion),Z=r3(D.remoteVersion);J=fw(G,Z)}catch{J=!1}if(!J)$.push("version_mismatch");if(D.localRequestedVersion&&D.remoteRequestedVersion&&D.localRequestedVersion.trim()!==D.remoteRequestedVersion.trim())$.push("requested_version_changed");let X=(G)=>typeof G==="string"&&G.trim().length>0,Y=X(D.localIosChecksum)&&X(D.remoteIosChecksum)&&D.localIosChecksum!==D.remoteIosChecksum,Q=X(D.localAndroidChecksum)&&X(D.remoteAndroidChecksum)&&D.localAndroidChecksum!==D.remoteAndroidChecksum;if(Y&&Q)$.push("both_platforms_changed");else if(Y)$.push("ios_code_changed");else if(Q)$.push("android_code_changed");let U=X(D.localIosChecksum)!==X(D.remoteIosChecksum),F=X(D.localAndroidChecksum)!==X(D.remoteAndroidChecksum);if(U||F)$.push("platform_checksum_metadata_changed");let W=[],K=(G)=>G!=="requested_version_changed";for(let G of $)switch(G){case"version_mismatch":W.push(`version changed: ${D.remoteVersion} → ${D.localVersion}`);break;case"requested_version_changed":W.push(`requested version changed: ${D.remoteRequestedVersion??"unknown"} → ${D.localRequestedVersion??"unknown"}`);break;case"ios_code_changed":W.push("iOS native code changed");break;case"android_code_changed":W.push("Android native code changed");break;case"both_platforms_changed":W.push("iOS and Android native code changed");break;case"platform_checksum_metadata_changed":W.push("iOS/Android checksum metadata appeared or disappeared (may be Capgo CLI change — verify native code)");break;case"new_plugin":W.push("new plugin (requires app store update)");break;case"removed_plugin":W.push("plugin removed");break}if(!$.some(K))return{compatible:!0,reasons:$,message:W.length>0?W.join(", "):"Compatible"};return{compatible:!1,reasons:$,message:W.join(", ")}}function IbD(D){return RYD(D).compatible}async function BbD(D,$,J,X,Y){let Q=await LYD(X,Y),U=await Jf(D,$,J),F=Q.filter((K)=>!!K.native).map((K)=>{let q=U.get(K.name);if(q)return{name:K.name,localVersion:K.version,localRequestedVersion:K.requested_version,remoteVersion:q.version,remoteRequestedVersion:q.requested_version,localIosChecksum:K.ios_checksum,remoteIosChecksum:q.ios_checksum,localAndroidChecksum:K.android_checksum,remoteAndroidChecksum:q.android_checksum};return{name:K.name,localVersion:K.version,localRequestedVersion:K.requested_version,remoteVersion:void 0,localIosChecksum:K.ios_checksum,localAndroidChecksum:K.android_checksum}}),W=[...U].filter(([K])=>!Q.some((q)=>q.name===K)).map(([K,q])=>({name:K,localVersion:void 0,remoteVersion:q.version,remoteRequestedVersion:q.requested_version,remoteIosChecksum:q.ios_checksum,remoteAndroidChecksum:q.android_checksum}));return F.push(...W),{finalCompatibility:F,localDependencies:Q}}async function ObD(D,$,J,X){let Y=await Jf(D,$,J),Q=X.map((F)=>{let W=Y.get(F.name);if(W)return{name:F.name,localVersion:F.version,localRequestedVersion:F.requested_version,remoteVersion:W.version,remoteRequestedVersion:W.requested_version,localIosChecksum:F.ios_checksum,remoteIosChecksum:W.ios_checksum,localAndroidChecksum:F.android_checksum,remoteAndroidChecksum:W.android_checksum};return{name:F.name,localVersion:F.version,localRequestedVersion:F.requested_version,remoteVersion:void 0,localIosChecksum:F.ios_checksum,localAndroidChecksum:F.android_checksum}}),U=[...Y].filter(([F])=>!X.some((W)=>W.name===F)).map(([F,W])=>({name:F,localVersion:void 0,remoteVersion:W.version,remoteRequestedVersion:W.requested_version,remoteIosChecksum:W.ios_checksum,remoteAndroidChecksum:W.android_checksum}));return Q.push(...U),{finalCompatibility:Q,localDependencies:X}}function Xf(D){if(!ID(D))return null;try{return JSON.parse(H0(D,"utf-8"))}catch{return null}}function dQ(D){if(!D)return!1;return/@capgo\/capacitor-updater|CapgoCapacitorUpdater|CapacitorUpdaterPlugin/.test(D)}function MYD(D){let $=Xf(D);if(!$)return!1;let J=$.packageClassList;return Array.isArray(J)&&J.includes("CapacitorUpdaterPlugin")}function AYD(D,$){if(!$)return LD(D,V$);return s4.isAbsolute($)?$:eD(D,$)}function vYD(D=T0(),$){let J=AYD(D,$),X=s4.basename(J)===V$?l6(J):J,Y=[LD(X,"ios","App"),LD(D,"ios","App")].find((A)=>ID(A));if(!Y)return{shouldCheck:!1,valid:!0,details:[]};let Q=Xf(J),U={...Q?.dependencies,...Q?.devDependencies,...Q?.optionalDependencies},F=Object.hasOwn(U,"@capgo/capacitor-updater"),W=[X,D].some((A)=>ID(LD(A,"node_modules","@capgo","capacitor-updater"))),K=LD(Y,"Podfile"),q=LD(Y,"CapApp-SPM","Package.swift"),G=ID(K)?H0(K,"utf-8"):void 0,Z=ID(q)?H0(q,"utf-8"):void 0,H=dQ(G)||dQ(Z),z=LD(Y,"Podfile.lock"),I=LD(Y,"App","capacitor.plugins.json"),B=LD(Y,"App","capacitor.config.json"),N=ID(z)?H0(z,"utf-8"):void 0,V=ID(I)?H0(I,"utf-8"):void 0,O=dQ(N)||dQ(V)||MYD(B);if(!(F||W||H||O))return{shouldCheck:!1,valid:!0,details:[]};let v=[];if(!H)v.push(`Missing @capgo/capacitor-updater in iOS dependency files (${K} or ${q})`);if(!O)v.push(`Missing @capgo/capacitor-updater in iOS native project outputs (${z}, ${I}, or ${B})`);return{shouldCheck:!0,valid:H&&O,details:v}}function EYD(D,$,J){if(!D.shouldCheck||D.valid)return;let X=NYD($,"ios");J?.(),r.error("Capgo iOS dependency sync verification failed.");for(let Y of D.details)r.error(Y);throw r.error("Stop here to avoid testing on a broken native iOS project."),r.warn(X.summary),r.info(X.command),new xD(wq)}async function NbD(D,$,J,X){let Y=await N8({message:"Would you like to sync your project with Capacitor now? This is recommended to ensure encrypted updates work properly."});if(n1(Y)){if(D&&$&&J)await X2("onboarding-v2",$,J,"canceled");throw r.warn("Canceled Capacitor sync"),new xD("Capacitor sync cancelled")}if(Y){let Q=fO(),U=V8();U.start("Running the command...");let F;try{await new Promise((W,K)=>{let q=TXD(Q.runner,["cap","sync"],{stdio:"pipe"});q.on("close",(G)=>{if(G===0)W();else K(Error(`Command failed with exit code ${G}`))}),q.on("error",(G)=>{K(G)})})}catch(W){F=W,r.error(`Failed to run Capacitor sync: ${W}`),r.warn(`Please run "${Q.runner} cap sync" manually to ensure encrypted updates work properly`)}if(X?.validateIosUpdater)EYD(vYD(T0(),X.packageJsonPath),Q.runner,()=>U.stop("iOS sync check failed ❌"));if(F){U.stop("Error");return}U.stop("Capacitor sync completed ✅")}else{let Q=fO();r.warn("⚠️ Important: If you upload encrypted bundles without syncing, updates will fail!"),r.info(`Remember to run "${Q.runner} cap sync" before uploading encrypted bundles`)}}var yO,hO,dx,rQ,r,bXD=".capgo_key",SXD=".capgo_key_v2",MPD,APD,Sx="https://capgo.app",Cx="https://files.capgo.app",cQ="https://api.capgo.app",pQ="https://console.capgo.app",vPD=120000,CXD=20971520,kXD=1073741824,_XD=103809024,uXD,gXD=1e4,TPD="BundleUploadTimeoutError",V$="package.json",kx="Cannot connect to server please try again later",bPD,xXD=12,cx=2000,iXD="No capacitor config file found, run `cap init` first",rx,_O=null,lQ=null,DbD="5.10.0",$bD="6.25.0",JbD="7.0.30",xO=!1,o4="npm",W9="install",iQ="npx";var YK=S(()=>{lV();$1();EF();ZL();S3();UE();zE();IE();TE();_E();Fq();qC();VC();Oq();AC();jq();CC();ig();pg();p1();ZO();eg();Dx();Xx();yO=j$(cL(),1),hO=j$(iF(),1),dx=j$(ER(),1),rQ=j$(DE(),1);r={error:(D)=>mQ("error",D),info:(D)=>mQ("info",D),success:(D)=>mQ("success",D),warn:(D)=>mQ("warn",D)},MPD=`${bXD}.pub`,APD=`${SXD}.pub`;uXD=[0,1000,3000,5000,1e4];bPD=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-z-][0-9a-z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-z-][0-9a-z-]*))*))?(?:\+([0-9a-z-]+(?:\.[0-9a-z-]+)*))?$/i;rx=/([A-Za-z0-9]+)\.(java|swift|kt|scala)$/});var rO=k((Vf)=>{Object.defineProperty(Vf,"__esModule",{value:!0});function S$(D){let $=Object.create(null);for(let J of D.split(","))$[J]=1;return(J)=>(J in $)}var PYD=Object.freeze({}),bYD=Object.freeze([]),SYD=()=>{},CYD=()=>!1,kYD=(D)=>D.charCodeAt(0)===111&&D.charCodeAt(1)===110&&(D.charCodeAt(2)>122||D.charCodeAt(2)<97),_YD=(D)=>D.startsWith("onUpdate:"),uYD=Object.assign,gYD=(D,$)=>{let J=D.indexOf($);if(J>-1)D.splice(J,1)},xYD=Object.prototype.hasOwnProperty,fYD=(D,$)=>xYD.call(D,$),e4=Array.isArray,Ff=(D)=>D8(D)==="[object Map]",Wf=(D)=>D8(D)==="[object Set]",iO=(D)=>D8(D)==="[object Date]",yYD=(D)=>D8(D)==="[object RegExp]",$3=(D)=>typeof D==="function",A6=(D)=>typeof D==="string",J3=(D)=>typeof D==="symbol",u1=(D)=>D!==null&&typeof D==="object",hYD=(D)=>{return(u1(D)||$3(D))&&$3(D.then)&&$3(D.catch)},cO=Object.prototype.toString,D8=(D)=>cO.call(D),mYD=(D)=>{return D8(D).slice(8,-1)},Kf=(D)=>D8(D)==="[object Object]",lYD=(D)=>A6(D)&&D!=="NaN"&&D[0]!=="-"&&""+parseInt(D,10)===D,dYD=S$(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),iYD=S$("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),aQ=(D)=>{let $=Object.create(null);return(J)=>{return $[J]||($[J]=D(J))}},cYD=/-\w/g,pYD=aQ((D)=>{return D.replace(cYD,($)=>$.slice(1).toUpperCase())}),nYD=/\B([A-Z])/g,qf=aQ((D)=>D.replace(nYD,"-$1").toLowerCase()),Gf=aQ((D)=>{return D.charAt(0).toUpperCase()+D.slice(1)}),rYD=aQ((D)=>{return D?`on${Gf(D)}`:""}),tYD=(D,$)=>!Object.is(D,$),oYD=(D,...$)=>{for(let J=0;J<D.length;J++)D[J](...$)},aYD=(D,$,J,X=!1)=>{Object.defineProperty(D,$,{configurable:!0,enumerable:!1,writable:X,value:J})},sYD=(D)=>{let $=parseFloat(D);return isNaN($)?D:$},eYD=(D)=>{let $=A6(D)?Number(D):NaN;return isNaN($)?D:$},Qf,DQD=()=>{return Qf||(Qf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{})},$QD=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function JQD(D){return $QD.test(D)?`__props.${D}`:`__props[${JSON.stringify(D)}]`}function XQD(D,$){return D+JSON.stringify($,(J,X)=>typeof X==="function"?X.toString():X)}var YQD={TEXT:1,"1":"TEXT",CLASS:2,"2":"CLASS",STYLE:4,"4":"STYLE",PROPS:8,"8":"PROPS",FULL_PROPS:16,"16":"FULL_PROPS",NEED_HYDRATION:32,"32":"NEED_HYDRATION",STABLE_FRAGMENT:64,"64":"STABLE_FRAGMENT",KEYED_FRAGMENT:128,"128":"KEYED_FRAGMENT",UNKEYED_FRAGMENT:256,"256":"UNKEYED_FRAGMENT",NEED_PATCH:512,"512":"NEED_PATCH",DYNAMIC_SLOTS:1024,"1024":"DYNAMIC_SLOTS",DEV_ROOT_FRAGMENT:2048,"2048":"DEV_ROOT_FRAGMENT",CACHED:-1,"-1":"CACHED",BAIL:-2,"-2":"BAIL"},QQD={[1]:"TEXT",[2]:"CLASS",[4]:"STYLE",[8]:"PROPS",[16]:"FULL_PROPS",[32]:"NEED_HYDRATION",[64]:"STABLE_FRAGMENT",[128]:"KEYED_FRAGMENT",[256]:"UNKEYED_FRAGMENT",[512]:"NEED_PATCH",[1024]:"DYNAMIC_SLOTS",[2048]:"DEV_ROOT_FRAGMENT",[-1]:"CACHED",[-2]:"BAIL"},UQD={ELEMENT:1,"1":"ELEMENT",FUNCTIONAL_COMPONENT:2,"2":"FUNCTIONAL_COMPONENT",STATEFUL_COMPONENT:4,"4":"STATEFUL_COMPONENT",TEXT_CHILDREN:8,"8":"TEXT_CHILDREN",ARRAY_CHILDREN:16,"16":"ARRAY_CHILDREN",SLOTS_CHILDREN:32,"32":"SLOTS_CHILDREN",TELEPORT:64,"64":"TELEPORT",SUSPENSE:128,"128":"SUSPENSE",COMPONENT_SHOULD_KEEP_ALIVE:256,"256":"COMPONENT_SHOULD_KEEP_ALIVE",COMPONENT_KEPT_ALIVE:512,"512":"COMPONENT_KEPT_ALIVE",COMPONENT:6,"6":"COMPONENT"},FQD={STABLE:1,"1":"STABLE",DYNAMIC:2,"2":"DYNAMIC",FORWARDED:3,"3":"FORWARDED"},WQD={[1]:"STABLE",[2]:"DYNAMIC",[3]:"FORWARDED"},KQD="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",Zf=S$(KQD),qQD=Zf,Uf=2;function GQD(D,$=0,J=D.length){if($=Math.max(0,Math.min($,D.length)),J=Math.max(0,Math.min(J,D.length)),$>J)return"";let X=D.split(/(\r?\n)/),Y=X.filter((F,W)=>W%2===1);X=X.filter((F,W)=>W%2===0);let Q=0,U=[];for(let F=0;F<X.length;F++)if(Q+=X[F].length+(Y[F]&&Y[F].length||0),Q>=$){for(let W=F-Uf;W<=F+Uf||J>Q;W++){if(W<0||W>=X.length)continue;let K=W+1;U.push(`${K}${" ".repeat(Math.max(3-String(K).length,0))}| ${X[W]}`);let q=X[W].length,G=Y[W]&&Y[W].length||0;if(W===F){let Z=$-(Q-(q+G)),H=Math.max(1,J>Q?q-Z:J-$);U.push(" | "+" ".repeat(Z)+"^".repeat(H))}else if(W>F){if(J>Q){let Z=Math.max(Math.min(J-Q,q),1);U.push(" | "+"^".repeat(Z))}Q+=q+G}}break}return U.join(`
`)}function pO(D){if(e4(D)){let $={};for(let J=0;J<D.length;J++){let X=D[J],Y=A6(X)?zf(X):pO(X);if(Y)for(let Q in Y)$[Q]=Y[Q]}return $}else if(A6(D)||u1(D))return D}var ZQD=/;(?![^(]*\))/g,zQD=/:([^]+)/,HQD=/\/\*[^]*?\*\//g;function zf(D){let $={};return D.replace(HQD,"").split(ZQD).forEach((J)=>{if(J){let X=J.split(zQD);X.length>1&&($[X[0].trim()]=X[1].trim())}}),$}function IQD(D){if(!D)return"";if(A6(D))return D;let $="";for(let J in D){let X=D[J];if(A6(X)||typeof X==="number"){let Y=J.startsWith("--")?J:qf(J);$+=`${Y}:${X};`}}return $}function nO(D){let $="";if(A6(D))$=D;else if(e4(D))for(let J=0;J<D.length;J++){let X=nO(D[J]);if(X)$+=X+" "}else if(u1(D)){for(let J in D)if(D[J])$+=J+" "}return $.trim()}function BQD(D){if(!D)return null;let{class:$,style:J}=D;if($&&!A6($))D.class=nO($);if(J)D.style=pO(J);return D}var OQD="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",NQD="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",VQD="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",wQD="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",jQD=S$(OQD),LQD=S$(NQD),RQD=S$(VQD),MQD=S$(wQD),Hf="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",AQD=S$(Hf),vQD=S$(Hf+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function EQD(D){return!!D||D===""}var TQD=/[>/="'\u0009\u000a\u000c\u0020]/,lO={};function PQD(D){if(lO.hasOwnProperty(D))return lO[D];let $=TQD.test(D);if($)console.error(`unsafe attribute name: ${D}`);return lO[D]=!$}var bQD={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},SQD=S$("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),CQD=S$("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan"),kQD=S$("accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns");function _QD(D){if(D==null)return!1;let $=typeof D;return $==="string"||$==="number"||$==="boolean"}var uQD=/["'&<>]/;function gQD(D){let $=""+D,J=uQD.exec($);if(!J)return $;let X="",Y,Q,U=0;for(Q=J.index;Q<$.length;Q++){switch($.charCodeAt(Q)){case 34:Y=""";break;case 38:Y="&";break;case 39:Y="'";break;case 60:Y="<";break;case 62:Y=">";break;default:continue}if(U!==Q)X+=$.slice(U,Q);U=Q+1,X+=Y}return U!==Q?X+$.slice(U,Q):X}var xQD=/^(?:-?>)+|<!--|-->|--!>|<!-$/g;function fQD(D){let $;do $=D,D=D.replace(xQD,"");while(D!==$);return D}var If=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function yQD(D,$){return D.replace(If,(J)=>$?J==='"'?"\\\\\\\"":`\\\\${J}`:`\\${J}`)}function hQD(D,$){if(D.length!==$.length)return!1;let J=!0;for(let X=0;J&&X<D.length;X++)J=sQ(D[X],$[X]);return J}function sQ(D,$){if(D===$)return!0;let J=iO(D),X=iO($);if(J||X)return J&&X?D.getTime()===$.getTime():!1;if(J=J3(D),X=J3($),J||X)return D===$;if(J=e4(D),X=e4($),J||X)return J&&X?hQD(D,$):!1;if(J=u1(D),X=u1($),J||X){if(!J||!X)return!1;let Y=Object.keys(D).length,Q=Object.keys($).length;if(Y!==Q)return!1;for(let U in D){let F=D.hasOwnProperty(U),W=$.hasOwnProperty(U);if(F&&!W||!F&&W||!sQ(D[U],$[U]))return!1}}return String(D)===String($)}function mQD(D,$){return D.findIndex((J)=>sQ(J,$))}var Bf=(D)=>{return!!(D&&D.__v_isRef===!0)},Of=(D)=>{return A6(D)?D:D==null?"":e4(D)||u1(D)&&(D.toString===cO||!$3(D.toString))?Bf(D)?Of(D.value):JSON.stringify(D,Nf,2):String(D)},Nf=(D,$)=>{if(Bf($))return Nf(D,$.value);else if(Ff($))return{[`Map(${$.size})`]:[...$.entries()].reduce((J,[X,Y],Q)=>{return J[dO(X,Q)+" =>"]=Y,J},{})};else if(Wf($))return{[`Set(${$.size})`]:[...$.values()].map((J)=>dO(J))};else if(J3($))return dO($);else if(u1($)&&!e4($)&&!Kf($))return String($);return $},dO=(D,$="")=>{var J;return J3(D)?`Symbol(${(J=D.description)!=null?J:$})`:D};function lQD(D){if(D==null)return"initial";if(typeof D==="string")return D===""?" ":D;if(typeof D!=="number"||!Number.isFinite(D))console.warn("[Vue warn] Invalid value used for CSS binding. Expected a string or a finite number but received:",D);return String(D)}Vf.EMPTY_ARR=bYD;Vf.EMPTY_OBJ=PYD;Vf.NO=CYD;Vf.NOOP=SYD;Vf.PatchFlagNames=QQD;Vf.PatchFlags=YQD;Vf.ShapeFlags=UQD;Vf.SlotFlags=FQD;Vf.camelize=pYD;Vf.capitalize=Gf;Vf.cssVarNameEscapeSymbolsRE=If;Vf.def=aYD;Vf.escapeHtml=gQD;Vf.escapeHtmlComment=fQD;Vf.extend=uYD;Vf.genCacheKey=XQD;Vf.genPropsAccessExp=JQD;Vf.generateCodeFrame=GQD;Vf.getEscapedCssVarName=yQD;Vf.getGlobalThis=DQD;Vf.hasChanged=tYD;Vf.hasOwn=fYD;Vf.hyphenate=qf;Vf.includeBooleanAttr=EQD;Vf.invokeArrayFns=oYD;Vf.isArray=e4;Vf.isBooleanAttr=vQD;Vf.isBuiltInDirective=iYD;Vf.isDate=iO;Vf.isFunction=$3;Vf.isGloballyAllowed=Zf;Vf.isGloballyWhitelisted=qQD;Vf.isHTMLTag=jQD;Vf.isIntegerKey=lYD;Vf.isKnownHtmlAttr=SQD;Vf.isKnownMathMLAttr=kQD;Vf.isKnownSvgAttr=CQD;Vf.isMap=Ff;Vf.isMathMLTag=RQD;Vf.isModelListener=_YD;Vf.isObject=u1;Vf.isOn=kYD;Vf.isPlainObject=Kf;Vf.isPromise=hYD;Vf.isRegExp=yYD;Vf.isRenderableAttrValue=_QD;Vf.isReservedProp=dYD;Vf.isSSRSafeAttrName=PQD;Vf.isSVGTag=LQD;Vf.isSet=Wf;Vf.isSpecialBooleanAttr=AQD;Vf.isString=A6;Vf.isSymbol=J3;Vf.isVoidTag=MQD;Vf.looseEqual=sQ;Vf.looseIndexOf=mQD;Vf.looseToNumber=sYD;Vf.makeMap=S$;Vf.normalizeClass=nO;Vf.normalizeCssVarValue=lQD;Vf.normalizeProps=BQD;Vf.normalizeStyle=pO;Vf.objectToString=cO;Vf.parseStringStyle=zf;Vf.propsToAttrMap=bQD;Vf.remove=gYD;Vf.slotFlagsText=WQD;Vf.stringifyStyle=IQD;Vf.toDisplayString=Of;Vf.toHandlerKey=rYD;Vf.toNumber=eYD;Vf.toRawType=mYD;Vf.toTypeString=D8});var aO=k((jf)=>{var tO;Object.defineProperty(jf,"__esModule",{value:!0});jf.fromCodePoint=void 0;jf.replaceCodePoint=wf;jf.decodeCodePoint=KFD;var WFD=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);jf.fromCodePoint=(tO=String.fromCodePoint)!==null&&tO!==void 0?tO:(D)=>{let $="";if(D>65535)D-=65536,$+=String.fromCharCode(D>>>10&1023|55296),D=56320|D&1023;return $+=String.fromCharCode(D),$};function wf(D){var $;if(D>=55296&&D<=57343||D>1114111)return 65533;return($=WFD.get(D))!==null&&$!==void 0?$:D}function KFD(D){return jf.fromCodePoint(wf(D))}});var sO=k((Lf)=>{Object.defineProperty(Lf,"__esModule",{value:!0});Lf.decodeBase64=ZFD;function ZFD(D){let $=typeof atob==="function"?atob(D):typeof Buffer.from==="function"?Buffer.from(D,"base64").toString("binary"):new Buffer(D,"base64").toString("binary"),J=$.length&-2,X=new Uint16Array(J/2);for(let Y=0,Q=0;Y<J;Y+=2){let U=$.charCodeAt(Y),F=$.charCodeAt(Y+1);X[Q++]=U|F<<8}return X}});var eO=k((Rf)=>{Object.defineProperty(Rf,"__esModule",{value:!0});Rf.htmlDecodeTree=void 0;var HFD=sO();Rf.htmlDecodeTree=(0,HFD.decodeBase64)("QR08ALkAAgH6AYsDNQR2BO0EPgXZBQEGLAbdBxMISQrvCmQLfQurDKQNLw4fD4YPpA+6D/IPAAAAAAAAAAAAAAAAKhBMEY8TmxUWF2EYLBkxGuAa3RsJHDscWR8YIC8jSCSIJcMl6ie3Ku8rEC0CLjoupS7kLgAIRU1hYmNmZ2xtbm9wcnN0dVQAWgBeAGUAaQBzAHcAfgCBAIQAhwCSAJoAoACsALMAbABpAGcAO4DGAMZAUAA7gCYAJkBjAHUAdABlADuAwQDBQHIiZXZlAAJhAAFpeW0AcgByAGMAO4DCAMJAEGRyAADgNdgE3XIAYQB2AGUAO4DAAMBA8CFoYZFj4SFjcgBhZAAAoFMqAAFncIsAjgBvAG4ABGFmAADgNdg43fAlbHlGdW5jdGlvbgCgYSBpAG4AZwA7gMUAxUAAAWNzpACoAHIAAOA12Jzc6SFnbgCgVCJpAGwAZABlADuAwwDDQG0AbAA7gMQAxEAABGFjZWZvcnN1xQDYANoA7QDxAPYA+QD8AAABY3LJAM8AayNzbGFzaAAAoBYidgHTANUAAKDnKmUAZAAAoAYjeQARZIABY3J0AOAA5QDrAGEidXNlAACgNSLuI291bGxpcwCgLCFhAJJjcgAA4DXYBd1wAGYAAOA12Dnd5SF2ZdhiYwDyAOoAbSJwZXEAAKBOIgAHSE9hY2RlZmhpbG9yc3UXARoBHwE6AVIBVQFiAWQBZgGCAakB6QHtAfIBYwB5ACdkUABZADuAqQCpQIABY3B5ACUBKAE1AfUhdGUGYWmg0iJ0KGFsRGlmZmVyZW50aWFsRAAAoEUhbCJleXMAAKAtIQACYWVpb0EBRAFKAU0B8iFvbgxhZABpAGwAO4DHAMdAcgBjAAhhbiJpbnQAAKAwIm8AdAAKYQABZG5ZAV0BaSJsbGEAuGB0I2VyRG90ALdg8gA5AWkAp2NyImNsZQAAAkRNUFRwAXQBeQF9AW8AdAAAoJkiaSJudXMAAKCWIuwhdXMAoJUiaSJtZXMAAKCXIm8AAAFjc4cBlAFrKndpc2VDb250b3VySW50ZWdyYWwAAKAyImUjQ3VybHkAAAFEUZwBpAFvJXVibGVRdW90ZQAAoB0gdSJvdGUAAKAZIAACbG5wdbABtgHNAdgBbwBuAGWgNyIAoHQqgAFnaXQAvAHBAcUB8iJ1ZW50AKBhIm4AdAAAoC8i7yV1ckludGVncmFsAKAuIgABZnLRAdMBAKACIe8iZHVjdACgECJuLnRlckNsb2Nrd2lzZUNvbnRvdXJJbnRlZ3JhbAAAoDMi7yFzcwCgLypjAHIAAOA12J7ccABDoNMiYQBwAACgTSKABURKU1phY2VmaW9zAAsCEgIVAhgCGwIsAjQCOQI9AnMCfwNvoEUh9CJyYWhkAKARKWMAeQACZGMAeQAFZGMAeQAPZIABZ3JzACECJQIoAuchZXIAoCEgcgAAoKEhaAB2AACg5CoAAWF5MAIzAvIhb24OYRRkbAB0oAciYQCUY3IAAOA12AfdAAFhZkECawIAAWNtRQJnAvIjaXRpY2FsAAJBREdUUAJUAl8CYwJjInV0ZQC0YG8AdAFZAloC2WJiJGxlQWN1dGUA3WJyImF2ZQBgYGkibGRlANxi7yFuZACgxCJmJWVyZW50aWFsRAAAoEYhcAR9AgAAAAAAAIECjgIAABoDZgAA4DXYO91EoagAhQKJAm8AdAAAoNwgcSJ1YWwAAKBQIuIhbGUAA0NETFJVVpkCqAK1Au8C/wIRA28AbgB0AG8AdQByAEkAbgB0AGUAZwByAGEA7ADEAW8AdAKvAgAAAACwAqhgbiNBcnJvdwAAoNMhAAFlb7kC0AJmAHQAgAFBUlQAwQLGAs0CciJyb3cAAKDQIekkZ2h0QXJyb3cAoNQhZQDlACsCbgBnAAABTFLWAugC5SFmdAABQVLcAuECciJyb3cAAKD4J+kkZ2h0QXJyb3cAoPon6SRnaHRBcnJvdwCg+SdpImdodAAAAUFU9gL7AnIicm93AACg0iFlAGUAAKCoInAAQQIGAwAAAAALA3Iicm93AACg0SFvJHduQXJyb3cAAKDVIWUlcnRpY2FsQmFyAACgJSJuAAADQUJMUlRhJAM2AzoDWgNxA3oDciJyb3cAAKGTIUJVLAMwA2EAcgAAoBMpcCNBcnJvdwAAoPUhciJldmUAEWPlIWZ00gJDAwAASwMAAFIDaSVnaHRWZWN0b3IAAKBQKWUkZVZlY3RvcgAAoF4p5SJjdG9yQqC9IWEAcgAAoFYpaSJnaHQA1AFiAwAAaQNlJGVWZWN0b3IAAKBfKeUiY3RvckKgwSFhAHIAAKBXKWUAZQBBoKQiciJyb3cAAKCnIXIAcgBvAPcAtAIAAWN0gwOHA3IAAOA12J/c8iFvaxBhAAhOVGFjZGZnbG1vcHFzdHV4owOlA6kDsAO/A8IDxgPNA9ID8gP9AwEEFAQeBCAEJQRHAEphSAA7gNAA0EBjAHUAdABlADuAyQDJQIABYWl5ALYDuQO+A/Ihb24aYXIAYwA7gMoAykAtZG8AdAAWYXIAAOA12AjdcgBhAHYAZQA7gMgAyEDlIm1lbnQAoAgiAAFhcNYD2QNjAHIAEmF0AHkAUwLhAwAAAADpA20lYWxsU3F1YXJlAACg+yVlJ3J5U21hbGxTcXVhcmUAAKCrJQABZ3D2A/kDbwBuABhhZgAA4DXYPN3zImlsb26VY3UAAAFhaQYEDgRsAFSgdSppImxkZQAAoEIi7CNpYnJpdW0AoMwhAAFjaRgEGwRyAACgMCFtAACgcyphAJdjbQBsADuAywDLQAABaXApBC0E8yF0cwCgAyLvJG5lbnRpYWxFAKBHIYACY2Zpb3MAPQQ/BEMEXQRyBHkAJGRyAADgNdgJ3WwibGVkAFMCTAQAAAAAVARtJWFsbFNxdWFyZQAAoPwlZSdyeVNtYWxsU3F1YXJlAACgqiVwA2UEAABpBAAAAABtBGYAAOA12D3dwSFsbACgACLyI2llcnRyZgCgMSFjAPIAcQQABkpUYWJjZGZnb3JzdIgEiwSOBJMElwSkBKcEqwStBLIE5QTqBGMAeQADZDuAPgA+QO0hbWFkoJMD3GNyImV2ZQAeYYABZWl5AJ0EoASjBOQhaWwiYXIAYwAcYRNkbwB0ACBhcgAA4DXYCt0AoNkicABmAADgNdg+3eUiYXRlcgADRUZHTFNUvwTIBM8E1QTZBOAEcSJ1YWwATKBlIuUhc3MAoNsidSRsbEVxdWFsAACgZyJyI2VhdGVyAACgoirlIXNzAKB3IuwkYW50RXF1YWwAoH4qaSJsZGUAAKBzImMAcgAA4DXYotwAoGsiAARBYWNmaW9zdfkE/QQFBQgFCwUTBSIFKwVSIkRjeQAqZAABY3QBBQQFZQBrAMdiXmDpIXJjJGFyAACgDCFsJWJlcnRTcGFjZQAAoAsh8AEYBQAAGwVmAACgDSHpJXpvbnRhbExpbmUAoAAlAAFjdCYFKAXyABIF8iFvayZhbQBwAEQBMQU5BW8AdwBuAEgAdQBtAPAAAAFxInVhbAAAoE8iAAdFSk9hY2RmZ21ub3N0dVMFVgVZBVwFYwVtBXAFcwV6BZAFtgXFBckFzQVjAHkAFWTsIWlnMmFjAHkAAWRjAHUAdABlADuAzQDNQAABaXlnBWwFcgBjADuAzgDOQBhkbwB0ADBhcgAAoBEhcgBhAHYAZQA7gMwAzEAAoREhYXB/BYsFAAFjZ4MFhQVyACphaSNuYXJ5SQAAoEghbABpAGUA8wD6AvQBlQUAAKUFZaAsIgABZ3KaBZ4F8iFhbACgKyLzI2VjdGlvbgCgwiJpI3NpYmxlAAABQ1SsBbEFbyJtbWEAAKBjIGkibWVzAACgYiCAAWdwdAC8Bb8FwwVvAG4ALmFmAADgNdhA3WEAmWNjAHIAAKAQIWkibGRlAChh6wHSBQAA1QVjAHkABmRsADuAzwDPQIACY2Zvc3UA4QXpBe0F8gX9BQABaXnlBegFcgBjADRhGWRyAADgNdgN3XAAZgAA4DXYQd3jAfcFAAD7BXIAAOA12KXc8iFjeQhk6yFjeQRkgANISmFjZm9zAAwGDwYSBhUGHQYhBiYGYwB5ACVkYwB5AAxk8CFwYZpjAAFleRkGHAbkIWlsNmEaZHIAAOA12A7dcABmAADgNdhC3WMAcgAA4DXYptyABUpUYWNlZmxtb3N0AD0GQAZDBl4GawZkB2gHcAd0B80H2gdjAHkACWQ7gDwAPECAAmNtbnByAEwGTwZSBlUGWwb1IXRlOWHiIWRhm2NnAACg6ifsI2FjZXRyZgCgEiFyAACgniGAAWFleQBkBmcGagbyIW9uPWHkIWlsO2EbZAABZnNvBjQHdAAABUFDREZSVFVWYXKABp4GpAbGBssG3AYDByEHwQIqBwABbnKEBowGZyVsZUJyYWNrZXQAAKDoJ/Ihb3cAoZAhQlKTBpcGYQByAACg5CHpJGdodEFycm93AKDGIWUjaWxpbmcAAKAII28A9QGqBgAAsgZiJWxlQnJhY2tldAAAoOYnbgDUAbcGAAC+BmUkZVZlY3RvcgAAoGEp5SJjdG9yQqDDIWEAcgAAoFkpbCJvb3IAAKAKI2kiZ2h0AAABQVbSBtcGciJyb3cAAKCUIeUiY3RvcgCgTikAAWVy4AbwBmUAAKGjIkFW5gbrBnIicm93AACgpCHlImN0b3IAoFopaSNhbmdsZQBCorIi+wYAAAAA/wZhAHIAAKDPKXEidWFsAACgtCJwAIABRFRWAAoHEQcYB+8kd25WZWN0b3IAoFEpZSRlVmVjdG9yAACgYCnlImN0b3JCoL8hYQByAACgWCnlImN0b3JCoLwhYQByAACgUilpAGcAaAB0AGEAcgByAG8A9wDMAnMAAANFRkdMU1Q/B0cHTgdUB1gHXwfxJXVhbEdyZWF0ZXIAoNoidSRsbEVxdWFsAACgZiJyI2VhdGVyAACgdiLlIXNzAKChKuwkYW50RXF1YWwAoH0qaSJsZGUAAKByInIAAOA12A/dZaDYIuYjdGFycm93AKDaIWkiZG90AD9hgAFucHcAege1B7kHZwAAAkxSbHKCB5QHmwerB+UhZnQAAUFSiAeNB3Iicm93AACg9SfpJGdodEFycm93AKD3J+kkZ2h0QXJyb3cAoPYn5SFmdAABYXLcAqEHaQBnAGgAdABhAHIAcgBvAPcA5wJpAGcAaAB0AGEAcgByAG8A9wDuAmYAAOA12EPdZQByAAABTFK/B8YHZSRmdEFycm93AACgmSHpJGdodEFycm93AKCYIYABY2h0ANMH1QfXB/IAWgYAoLAh8iFva0FhAKBqIgAEYWNlZmlvc3XpB+wH7gf/BwMICQgOCBEIcAAAoAUpeQAcZAABZGzyB/kHaSR1bVNwYWNlAACgXyBsI2ludHJmAACgMyFyAADgNdgQ3e4jdXNQbHVzAKATInAAZgAA4DXYRN1jAPIA/gecY4AESmFjZWZvc3R1ACEIJAgoCDUIgQiFCDsKQApHCmMAeQAKZGMidXRlAENhgAFhZXkALggxCDQI8iFvbkdh5CFpbEVhHWSAAWdzdwA7CGEIfQjhInRpdmWAAU1UVgBECEwIWQhlJWRpdW1TcGFjZQAAoAsgaABpAAABY25SCFMIawBTAHAAYQBjAOUASwhlAHIAeQBUAGgAaQDuAFQI9CFlZAABR0xnCHUIcgBlAGEAdABlAHIARwByAGUAYQB0AGUA8gDrBGUAcwBzAEwAZQBzAPMA2wdMImluZQAKYHIAAOA12BHdAAJCbnB0jAiRCJkInAhyImVhawAAoGAgwiZyZWFraW5nU3BhY2WgYGYAAKAVIUOq7CqzCMIIzQgAAOcIGwkAAAAAAAAtCQAAbwkAAIcJAACdCcAJGQoAADQKAAFvdbYIvAjuI2dydWVudACgYiJwIkNhcAAAoG0ibyh1YmxlVmVydGljYWxCYXIAAKAmIoABbHF4ANII1wjhCOUibWVudACgCSL1IWFsVKBgImkibGRlAADgQiI4A2kic3RzAACgBCJyI2VhdGVyAACjbyJFRkdMU1T1CPoIAgkJCQ0JFQlxInVhbAAAoHEidSRsbEVxdWFsAADgZyI4A3IjZWF0ZXIAAOBrIjgD5SFzcwCgeSLsJGFudEVxdWFsAOB+KjgDaSJsZGUAAKB1IvUhbXBEASAJJwnvI3duSHVtcADgTiI4A3EidWFsAADgTyI4A2UAAAFmczEJRgn0JFRyaWFuZ2xlQqLqIj0JAAAAAEIJYQByAADgzyk4A3EidWFsAACg7CJzAICibiJFR0xTVABRCVYJXAlhCWkJcSJ1YWwAAKBwInIjZWF0ZXIAAKB4IuUhc3MA4GoiOAPsJGFudEVxdWFsAOB9KjgDaSJsZGUAAKB0IuUic3RlZAABR0x1CX8J8iZlYXRlckdyZWF0ZXIA4KIqOAPlI3NzTGVzcwDgoSo4A/IjZWNlZGVzAKGAIkVTjwmVCXEidWFsAADgryo4A+wkYW50RXF1YWwAoOAiAAFlaaAJqQl2JmVyc2VFbGVtZW50AACgDCLnJWh0VHJpYW5nbGVCousitgkAAAAAuwlhAHIAAODQKTgDcSJ1YWwAAKDtIgABcXXDCeAJdSNhcmVTdQAAAWJwywnVCfMhZXRF4I8iOANxInVhbAAAoOIi5SJyc2V0ReCQIjgDcSJ1YWwAAKDjIoABYmNwAOYJ8AkNCvMhZXRF4IIi0iBxInVhbAAAoIgi4yJlZWRzgKGBIkVTVAD6CQAKBwpxInVhbAAA4LAqOAPsJGFudEVxdWFsAKDhImkibGRlAADgfyI4A+UicnNldEXggyLSIHEidWFsAACgiSJpImxkZQCAoUEiRUZUACIKJwouCnEidWFsAACgRCJ1JGxsRXF1YWwAAKBHImkibGRlAACgSSJlJXJ0aWNhbEJhcgAAoCQiYwByAADgNdip3GkAbABkAGUAO4DRANFAnWMAB0VhY2RmZ21vcHJzdHV2XgphCmgKcgp2CnoKgQqRCpYKqwqtCrsKyArNCuwhaWdSYWMAdQB0AGUAO4DTANNAAAFpeWwKcQpyAGMAO4DUANRAHmRiImxhYwBQYXIAAOA12BLdcgBhAHYAZQA7gNIA0kCAAWFlaQCHCooKjQpjAHIATGFnAGEAqWNjInJvbgCfY3AAZgAA4DXYRt3lI25DdXJseQABRFGeCqYKbyV1YmxlUXVvdGUAAKAcIHUib3RlAACgGCAAoFQqAAFjbLEKtQpyAADgNdiq3GEAcwBoADuA2ADYQGkAbAHACsUKZABlADuA1QDVQGUAcwAAoDcqbQBsADuA1gDWQGUAcgAAAUJQ0wrmCgABYXLXCtoKcgAAoD4gYQBjAAABZWvgCuIKAKDeI2UAdAAAoLQjYSVyZW50aGVzaXMAAKDcI4AEYWNmaGlsb3JzAP0KAwsFCwkLCwsMCxELIwtaC3IjdGlhbEQAAKACInkAH2RyAADgNdgT3WkApmOgY/Ujc01pbnVzsWAAAWlwFQsgC24AYwBhAHIAZQBwAGwAYQBuAOUACgVmAACgGSGAobsqZWlvACoLRQtJC+MiZWRlc4CheiJFU1QANAs5C0ALcSJ1YWwAAKCvKuwkYW50RXF1YWwAoHwiaSJsZGUAAKB+Im0AZQAAoDMgAAFkcE0LUQv1IWN0AKAPIm8jcnRpb24AYaA3ImwAAKAdIgABY2leC2ILcgAA4DXYq9yoYwACVWZvc2oLbwtzC3cLTwBUADuAIgAiQHIAAOA12BTdcABmAACgGiFjAHIAAOA12KzcAAZCRWFjZWZoaW9yc3WPC5MLlwupC7YL2AvbC90LhQyTDJoMowzhIXJyAKAQKUcAO4CuAK5AgAFjbnIAnQugC6ML9SF0ZVRhZwAAoOsncgB0oKAhbAAAoBYpgAFhZXkArwuyC7UL8iFvblhh5CFpbFZhIGR2oBwhZSJyc2UAAAFFVb8LzwsAAWxxwwvIC+UibWVudACgCyL1JGlsaWJyaXVtAKDLIXAmRXF1aWxpYnJpdW0AAKBvKXIAAKAcIW8AoWPnIWh0AARBQ0RGVFVWYewLCgwQDDIMNwxeDHwM9gIAAW5y8Av4C2clbGVCcmFja2V0AACg6SfyIW93AKGSIUJM/wsDDGEAcgAAoOUhZSRmdEFycm93AACgxCFlI2lsaW5nAACgCSNvAPUBFgwAAB4MYiVsZUJyYWNrZXQAAKDnJ24A1AEjDAAAKgxlJGVWZWN0b3IAAKBdKeUiY3RvckKgwiFhAHIAAKBVKWwib29yAACgCyMAAWVyOwxLDGUAAKGiIkFWQQxGDHIicm93AACgpiHlImN0b3IAoFspaSNhbmdsZQBCorMiVgwAAAAAWgxhAHIAAKDQKXEidWFsAACgtSJwAIABRFRWAGUMbAxzDO8kd25WZWN0b3IAoE8pZSRlVmVjdG9yAACgXCnlImN0b3JCoL4hYQByAACgVCnlImN0b3JCoMAhYQByAACgUykAAXB1iQyMDGYAAKAdIe4kZEltcGxpZXMAoHAp6SRnaHRhcnJvdwCg2yEAAWNongyhDHIAAKAbIQCgsSHsJGVEZWxheWVkAKD0KYAGSE9hY2ZoaW1vcXN0dQC/DMgMzAzQDOIM5gwKDQ0NFA0ZDU8NVA1YDQABQ2PDDMYMyCFjeSlkeQAoZEYiVGN5ACxkYyJ1dGUAWmEAorwqYWVpedgM2wzeDOEM8iFvbmBh5CFpbF5hcgBjAFxhIWRyAADgNdgW3e8hcnQAAkRMUlXvDPYM/QwEDW8kd25BcnJvdwAAoJMhZSRmdEFycm93AACgkCHpJGdodEFycm93AKCSIXAjQXJyb3cAAKCRIechbWGjY+EkbGxDaXJjbGUAoBgicABmAADgNdhK3XICHw0AAAAAIg10AACgGiLhIXJlgKGhJUlTVQAqDTINSg3uJXRlcnNlY3Rpb24AoJMidQAAAWJwNw1ADfMhZXRFoI8icSJ1YWwAAKCRIuUicnNldEWgkCJxInVhbAAAoJIibiJpb24AAKCUImMAcgAA4DXYrtxhAHIAAKDGIgACYmNtcF8Nag2ODZANc6DQImUAdABFoNAicSJ1YWwAAKCGIgABY2huDYkNZSJlZHMAgKF7IkVTVAB4DX0NhA1xInVhbAAAoLAq7CRhbnRFcXVhbACgfSJpImxkZQAAoH8iVABoAGEA9ADHCwCgESIAodEiZXOVDZ8NciJzZXQARaCDInEidWFsAACghyJlAHQAAKDRIoAFSFJTYWNmaGlvcnMAtQ27Db8NyA3ODdsN3w3+DRgOHQ4jDk8AUgBOADuA3gDeQMEhREUAoCIhAAFIY8MNxg1jAHkAC2R5ACZkAAFidcwNzQ0JYKRjgAFhZXkA1A3XDdoN8iFvbmRh5CFpbGJhImRyAADgNdgX3QABZWnjDe4N8gHoDQAA7Q3lImZvcmUAoDQiYQCYYwABY27yDfkNayNTcGFjZQAA4F8gCiDTInBhY2UAoAkg7CFkZYChPCJFRlQABw4MDhMOcSJ1YWwAAKBDInUkbGxFcXVhbAAAoEUiaSJsZGUAAKBIInAAZgAA4DXYS93pI3BsZURvdACg2yAAAWN0Jw4rDnIAAOA12K/c8iFva2Zh4QpFDlYOYA5qDgAAbg5yDgAAAAAAAAAAAAB5DnwOqA6zDgAADg8RDxYPGg8AAWNySA5ODnUAdABlADuA2gDaQHIAb6CfIeMhaXIAoEkpcgDjAVsOAABdDnkADmR2AGUAbGEAAWl5Yw5oDnIAYwA7gNsA20AjZGIibGFjAHBhcgAA4DXYGN1yAGEAdgBlADuA2QDZQOEhY3JqYQABZGl/Dp8OZQByAAABQlCFDpcOAAFhcokOiw5yAF9gYQBjAAABZWuRDpMOAKDfI2UAdAAAoLUjYSVyZW50aGVzaXMAAKDdI28AbgBQoMMi7CF1cwCgjiIAAWdwqw6uDm8AbgByYWYAAOA12EzdAARBREVUYWRwc78O0g7ZDuEOBQPqDvMOBw9yInJvdwDCoZEhyA4AAMwOYQByAACgEilvJHduQXJyb3cAAKDFIW8kd25BcnJvdwAAoJUhcSV1aWxpYnJpdW0AAKBuKWUAZQBBoKUiciJyb3cAAKClIW8AdwBuAGEAcgByAG8A9wAQA2UAcgAAAUxS+Q4AD2UkZnRBcnJvdwAAoJYh6SRnaHRBcnJvdwCglyFpAGyg0gNvAG4ApWPpIW5nbmFjAHIAAOA12LDcaSJsZGUAaGFtAGwAO4DcANxAgAREYmNkZWZvc3YALQ8xDzUPNw89D3IPdg97D4AP4SFzaACgqyJhAHIAAKDrKnkAEmThIXNobKCpIgCg5ioAAWVyQQ9DDwCgwSKAAWJ0eQBJD00Paw9hAHIAAKAWIGmgFiDjIWFsAAJCTFNUWA9cD18PZg9hAHIAAKAjIukhbmV8YGUkcGFyYXRvcgAAoFgnaSJsZGUAAKBAItQkaGluU3BhY2UAoAogcgAA4DXYGd1wAGYAAOA12E3dYwByAADgNdix3GQiYXNoAACgqiKAAmNlZm9zAI4PkQ+VD5kPng/pIXJjdGHkIWdlAKDAInIAAOA12BrdcABmAADgNdhO3WMAcgAA4DXYstwAAmZpb3OqD64Prw+0D3IAAOA12BvdnmNwAGYAAOA12E/dYwByAADgNdiz3IAEQUlVYWNmb3N1AMgPyw/OD9EP2A/gD+QP6Q/uD2MAeQAvZGMAeQAHZGMAeQAuZGMAdQB0AGUAO4DdAN1AAAFpedwP3w9yAGMAdmErZHIAAOA12BzdcABmAADgNdhQ3WMAcgAA4DXYtNxtAGwAeGEABEhhY2RlZm9z/g8BEAUQDRAQEB0QIBAkEGMAeQAWZGMidXRlAHlhAAFheQkQDBDyIW9ufWEXZG8AdAB7YfIBFRAAABwQbwBXAGkAZAB0AOgAVAhhAJZjcgAAoCghcABmAACgJCFjAHIAAOA12LXc4QtCEEkQTRAAAGcQbRByEAAAAAAAAAAAeRCKEJcQ8hD9EAAAGxEhETIROREAAD4RYwB1AHQAZQA7gOEA4UByImV2ZQADYYCiPiJFZGl1eQBWEFkQWxBgEGUQAOA+IjMDAKA/InIAYwA7gOIA4kB0AGUAO4C0ALRAMGRsAGkAZwA7gOYA5kByoGEgAOA12B7dcgBhAHYAZQA7gOAA4EAAAWVwfBCGEAABZnCAEIQQ8yF5bQCgNSHoAIMQaABhALFjAAFhcI0QWwAAAWNskRCTEHIAAWFnAACgPypkApwQAAAAALEQAKInImFkc3ajEKcQqRCuEG4AZAAAoFUqAKBcKmwib3BlAACgWCoAoFoqAKMgImVsbXJzersQvRDAEN0Q5RDtEACgpCllAACgICJzAGQAYaAhImEEzhDQENIQ1BDWENgQ2hDcEACgqCkAoKkpAKCqKQCgqykAoKwpAKCtKQCgrikAoK8pdAB2oB8iYgBkoL4iAKCdKQABcHTpEOwQaAAAoCIixWDhIXJyAKB8IwABZ3D1EPgQbwBuAAVhZgAA4DXYUt0Ao0giRWFlaW9wBxEJEQ0RDxESERQRAKBwKuMhaXIAoG8qAKBKImQAAKBLInMAJ2DyIW94ZaBIIvEADhFpAG4AZwA7gOUA5UCAAWN0eQAmESoRKxFyAADgNdi23CpgbQBwAGWgSCLxAPgBaQBsAGQAZQA7gOMA40BtAGwAO4DkAORAAAFjaUERRxFvAG4AaQBuAPQA6AFuAHQAAKARKgAITmFiY2RlZmlrbG5vcHJzdWQRaBGXEZ8RpxGrEdIR1hErEjASexKKEn0RThNbE3oTbwB0AACg7SoAAWNybBGJEWsAAAJjZXBzdBF4EX0RghHvIW5nAKBMInAjc2lsb24A9mNyImltZQAAoDUgaQBtAGWgPSJxAACgzSJ2AY0RkRFlAGUAAKC9ImUAZABnoAUjZQAAoAUjcgBrAHSgtSPiIXJrAKC2IwABb3mjEaYRbgDnAHcRMWTxIXVvAKAeIIACY21wcnQAtBG5Eb4RwRHFEeEhdXPloDUi5ABwInR5dgAAoLApcwDpAH0RbgBvAPUA6gCAAWFodwDLEcwRzhGyYwCgNiHlIWVuAKBsInIAAOA12B/dZwCAA2Nvc3R1dncA4xHyEQUSEhIhEiYSKRKAAWFpdQDpEesR7xHwAKMFcgBjAACg7yVwAACgwyKAAWRwdAD4EfwRABJvAHQAAKAAKuwhdXMAoAEqaSJtZXMAAKACKnECCxIAAAAADxLjIXVwAKAGKmEAcgAAoAUm8iNpYW5nbGUAAWR1GhIeEu8hd24AoL0lcAAAoLMlcCJsdXMAAKAEKmUA5QBCD+UAkg9hInJvdwAAoA0pgAFha28ANhJoEncSAAFjbjoSZRJrAIABbHN0AEESRxJNEm8jemVuZ2UAAKDrKXEAdQBhAHIA5QBcBPIjaWFuZ2xlgKG0JWRscgBYElwSYBLvIXduAKC+JeUhZnQAoMIlaSJnaHQAAKC4JWsAAKAjJLEBbRIAAHUSsgFxEgAAcxIAoJIlAKCRJTQAAKCTJWMAawAAoIglAAFlb38ShxJx4D0A5SD1IWl2AOBhIuUgdAAAoBAjAAJwdHd4kRKVEpsSnxJmAADgNdhT3XSgpSJvAG0AAKClIvQhaWUAoMgiAAZESFVWYmRobXB0dXayEsES0RLgEvcS+xIKExoTHxMjEygTNxMAAkxSbHK5ErsSvRK/EgCgVyUAoFQlAKBWJQCgUyUAolAlRFVkdckSyxLNEs8SAKBmJQCgaSUAoGQlAKBnJQACTFJsctgS2hLcEt4SAKBdJQCgWiUAoFwlAKBZJQCjUSVITFJobHLrEu0S7xLxEvMS9RIAoGwlAKBjJQCgYCUAoGslAKBiJQCgXyVvAHgAAKDJKQACTFJscgITBBMGEwgTAKBVJQCgUiUAoBAlAKAMJQCiACVEVWR1EhMUExYTGBMAoGUlAKBoJQCgLCUAoDQlaSJudXMAAKCfIuwhdXMAoJ4iaSJtZXMAAKCgIgACTFJsci8TMRMzEzUTAKBbJQCgWCUAoBglAKAUJQCjAiVITFJobHJCE0QTRhNIE0oTTBMAoGolAKBhJQCgXiUAoDwlAKAkJQCgHCUAAWV2UhNVE3YA5QD5AGIAYQByADuApgCmQAACY2Vpb2ITZhNqE24TcgAA4DXYt9xtAGkAAKBPIG0A5aA9IogRbAAAoVwAYmh0E3YTAKDFKfMhdWIAoMgnbAF+E4QTbABloCIgdAAAoCIgcAAAoU4iRWWJE4sTAKCuKvGgTyI8BeEMqRMAAN8TABQDFB8UAAAjFDQUAAAAAIUUAAAAAI0UAAAAANcU4xT3FPsUAACIFQAAlhWAAWNwcgCuE7ET1RP1IXRlB2GAoikiYWJjZHMAuxO/E8QTzhPSE24AZAAAoEQqciJjdXAAAKBJKgABYXXIE8sTcAAAoEsqcAAAoEcqbwB0AACgQCoA4CkiAP4AAWVv2RPcE3QAAKBBIO4ABAUAAmFlaXXlE+8T9RP4E/AB6hMAAO0TcwAAoE0qbwBuAA1hZABpAGwAO4DnAOdAcgBjAAlhcABzAHOgTCptAACgUCpvAHQAC2GAAWRtbgAIFA0UEhRpAGwAO4C4ALhAcCJ0eXYAAKCyKXQAAIGiADtlGBQZFKJAcgBkAG8A9ABiAXIAAOA12CDdgAFjZWkAKBQqFDIUeQBHZGMAawBtoBMn4SFyawCgEyfHY3IAAKPLJUVjZWZtcz8UQRRHFHcUfBSAFACgwykAocYCZWxGFEkUcQAAoFciZQBhAlAUAAAAAGAUciJyb3cAAAFsclYUWhTlIWZ0AKC6IWkiZ2h0AACguyGAAlJTYWNkAGgUaRRrFG8UcxSuYACgyCRzAHQAAKCbIukhcmMAoJoi4SFzaACgnSJuImludAAAoBAqaQBkAACg7yrjIWlyAKDCKfUhYnN1oGMmaQB0AACgYybsApMUmhS2FAAAwxRvAG4AZaA6APGgVCKrAG0CnxQAAAAAoxRhAHSgLABAYAChASJmbKcUqRTuABMNZQAAAW14rhSyFOUhbnQAoAEiZQDzANIB5wG6FAAAwBRkoEUibwB0AACgbSpuAPQAzAGAAWZyeQDIFMsUzhQA4DXYVN1vAOQA1wEAgakAO3MeAdMUcgAAoBchAAFhb9oU3hRyAHIAAKC1IXMAcwAAoBcnAAFjdeYU6hRyAADgNdi43AABYnDuFPIUZaDPKgCg0SploNAqAKDSKuQhb3QAoO8igANkZWxwcnZ3AAYVEBUbFSEVRBVlFYQV4SFycgABbHIMFQ4VAKA4KQCgNSlwAhYVAAAAABkVcgAAoN4iYwAAoN8i4SFycnCgtiEAoD0pgKIqImJjZG9zACsVMBU6FT4VQRVyImNhcAAAoEgqAAFhdTQVNxVwAACgRipwAACgSipvAHQAAKCNInIAAKBFKgDgKiIA/gACYWxydksVURVuFXMVcgByAG2gtyEAoDwpeQCAAWV2dwBYFWUVaRVxAHACXxUAAAAAYxVyAGUA4wAXFXUA4wAZFWUAZQAAoM4iZSJkZ2UAAKDPImUAbgA7gKQApEBlI2Fycm93AAABbHJ7FX8V5SFmdACgtiFpImdodAAAoLchZQDkAG0VAAFjaYsVkRVvAG4AaQBuAPQAkwFuAHQAAKAxImwiY3R5AACgLSOACUFIYWJjZGVmaGlqbG9yc3R1d3oAuBW7Fb8V1RXgFegV+RUKFhUWHxZUFlcWZRbFFtsW7xb7FgUXChdyAPIAtAJhAHIAAKBlKQACZ2xyc8YVyhXOFdAV5yFlcgCgICDlIXRoAKA4IfIA9QxoAHagECAAoKMiawHZFd4VYSJyb3cAAKAPKWEA4wBfAgABYXnkFecV8iFvbg9hNGQAoUYhYW/tFfQVAAFnciEC8RVyAACgyiF0InNlcQAAoHcqgAFnbG0A/xUCFgUWO4CwALBAdABhALRjcCJ0eXYAAKCxKQABaXIOFhIW8yFodACgfykA4DXYId1hAHIAAAFschsWHRYAoMMhAKDCIYACYWVnc3YAKBauAjYWOhY+Fm0AAKHEIm9zLhY0Fm4AZABzoMQi9SFpdACgZiZhIm1tYQDdY2kAbgAAoPIiAKH3AGlvQxZRFmQAZQAAgfcAO29KFksW90BuI3RpbWVzAACgxyJuAPgAUBZjAHkAUmRjAG8CXhYAAAAAYhZyAG4AAKAeI28AcAAAoA0jgAJscHR1dwBuFnEWdRaSFp4W7CFhciRgZgAA4DXYVd0AotkCZW1wc30WhBaJFo0WcQBkoFAibwB0AACgUSJpIm51cwAAoDgi7CF1cwCgFCLxInVhcmUAoKEiYgBsAGUAYgBhAHIAdwBlAGQAZwDlANcAbgCAAWFkaAClFqoWtBZyAHIAbwD3APUMbwB3AG4AYQByAHIAbwB3APMA8xVhI3Jwb29uAAABbHK8FsAWZQBmAPQAHBZpAGcAaAD0AB4WYgHJFs8WawBhAHIAbwD3AJILbwLUFgAAAADYFnIAbgAAoB8jbwBwAACgDCOAAWNvdADhFukW7BYAAXJ55RboFgDgNdi53FVkbAAAoPYp8iFvaxFhAAFkcvMW9xZvAHQAAKDxImkA5qC/JVsSAAFhaP8WAhdyAPIANQNhAPIA1wvhIm5nbGUAoKYpAAFjaQ4XEBd5AF9k5yJyYXJyAKD/JwAJRGFjZGVmZ2xtbm9wcXJzdHV4MRc4F0YXWxcyBF4XaRd5F40XrBe0F78X2RcVGCEYLRg1GEAYAAFEbzUXgRZvAPQA+BUAAWNzPBdCF3UAdABlADuA6QDpQPQhZXIAoG4qAAJhaW95TRdQF1YXWhfyIW9uG2FyAGOgViI7gOoA6kDsIW9uAKBVIk1kbwB0ABdhAAFEcmIXZhdvAHQAAKBSIgDgNdgi3XKhmipuF3QXYQB2AGUAO4DoAOhAZKCWKm8AdAAAoJgqgKGZKmlscwCAF4UXhxfuInRlcnMAoOcjAKATIWSglSpvAHQAAKCXKoABYXBzAJMXlheiF2MAcgATYXQAeQBzogUinxcAAAAAoRdlAHQAAKAFInAAMaADIDMBqRerFwCgBCAAoAUgAAFnc7AXsRdLYXAAAKACIAABZ3C4F7sXbwBuABlhZgAA4DXYVt2AAWFscwDFF8sXzxdyAHOg1SJsAACg4yl1AHMAAKBxKmkAAKG1A2x21RfYF28AbgC1Y/VjAAJjc3V24BfoF/0XEBgAAWlv5BdWF3IAYwAAoFYiaQLuFwAAAADwF+0ADQThIW50AAFnbPUX+Rd0AHIAAKCWKuUhc3MAoJUqgAFhZWkAAxgGGAoYbABzAD1gcwB0AACgXyJ2AESgYSJEAACgeCrwImFyc2wAoOUpAAFEYRkYHRhvAHQAAKBTInIAcgAAoHEpgAFjZGkAJxgqGO0XcgAAoC8hbwD0AIwCAAFhaDEYMhi3YzuA8ADwQAABbXI5GD0YbAA7gOsA60BvAACgrCCAAWNpcABGGEgYSxhsACFgcwD0ACwEAAFlb08YVxhjAHQAYQB0AGkAbwDuABoEbgBlAG4AdABpAGEAbADlADME4Ql1GAAAgRgAAIMYiBgAAAAAoRilGAAAqhgAALsYvhjRGAAA1xgnGWwAbABpAG4AZwBkAG8AdABzAGUA8QBlF3kARGRtImFsZQAAoEAmgAFpbHIAjRiRGJ0Y7CFpZwCgA/tpApcYAAAAAJoYZwAAoAD7aQBnAACgBPsA4DXYI93sIWlnAKAB++whaWcA4GYAagCAAWFsdACvGLIYthh0AACgbSZpAGcAAKAC+24AcwAAoLElbwBmAJJh8AHCGAAAxhhmAADgNdhX3QABYWvJGMwYbADsAGsEdqDUIgCg2SphI3J0aW50AACgDSoAAWFv2hgiGQABY3PeGB8ZsQPnGP0YBRkSGRUZAAAdGbID7xjyGPQY9xj5GAAA+xg7gL0AvUAAoFMhO4C8ALxAAKBVIQCgWSEAoFshswEBGQAAAxkAoFQhAKBWIbQCCxkOGQAAAAAQGTuAvgC+QACgVyEAoFwhNQAAoFghtgEZGQAAGxkAoFohAKBdITgAAKBeIWwAAKBEIHcAbgAAoCIjYwByAADgNdi73IAIRWFiY2RlZmdpamxub3JzdHYARhlKGVoZXhlmGWkZkhmWGZkZnRmgGa0ZxhnLGc8Z4BkjGmygZyIAoIwqgAFjbXAAUBlTGVgZ9SF0ZfVhbQBhAOSgswM6FgCghipyImV2ZQAfYQABaXliGWUZcgBjAB1hM2RvAHQAIWGAoWUibHFzAMYEcBl6GfGhZSLOBAAAdhlsAGEAbgD0AN8EgKF+KmNkbACBGYQZjBljAACgqSpvAHQAb6CAKmyggioAoIQqZeDbIgD+cwAAoJQqcgAA4DXYJN3noGsirATtIWVsAKA3IWMAeQBTZIChdyJFYWoApxmpGasZAKCSKgCgpSoAoKQqAAJFYWVztBm2Gb0ZwhkAoGkicABwoIoq8iFveACgiipxoIgq8aCIKrUZaQBtAACg5yJwAGYAAOA12FjdYQB2AOUAYwIAAWNp0xnWGXIAAKAKIW0AAKFzImVs3BneGQCgjioAoJAqAIM+ADtjZGxxco0E6xn0GfgZ/BkBGgABY2nvGfEZAKCnKnIAAKB6Km8AdAAAoNci0CFhcgCglSl1ImVzdAAAoHwqgAJhZGVscwAKGvQZFhrVBCAa8AEPGgAAFBpwAHIAbwD4AFkZcgAAoHgpcQAAAWxxxAQbGmwAZQBzAPMASRlpAO0A5AQAAWVuJxouGnIjdG5lcXEAAOBpIgD+xQAsGgAFQWFiY2Vma29zeUAaQxpmGmoabRqDGocalhrCGtMacgDyAMwCAAJpbG1yShpOGlAaVBpyAHMA8ABxD2YAvWBpAGwA9AASBQABZHJYGlsaYwB5AEpkAKGUIWN3YBpkGmkAcgAAoEgpAKCtIWEAcgAAoA8h6SFyYyVhgAFhbHIAcxp7Gn8a8iF0c3WgZSZpAHQAAKBlJuwhaXAAoCYg4yFvbgCguSJyAADgNdgl3XMAAAFld4wakRphInJvdwAAoCUpYSJyb3cAAKAmKYACYW1vcHIAnxqjGqcauhq+GnIAcgAAoP8h9CFodACgOyJrAAABbHKsGrMaZSRmdGFycm93AACgqSHpJGdodGFycm93AKCqIWYAAOA12Fnd4iFhcgCgFSCAAWNsdADIGswa0BpyAADgNdi93GEAcwDoAGka8iFvaydhAAFicNca2xr1IWxsAKBDIOghZW4AoBAg4Qr2GgAA/RoAAAgbExsaGwAAIRs7GwAAAAA+G2IbmRuVG6sbAACyG80b0htjAHUAdABlADuA7QDtQAChYyBpeQEbBhtyAGMAO4DuAO5AOGQAAWN4CxsNG3kANWRjAGwAO4ChAKFAAAFmcssCFhsA4DXYJt1yAGEAdgBlADuA7ADsQIChSCFpbm8AJxsyGzYbAAFpbisbLxtuAHQAAKAMKnQAAKAtIuYhaW4AoNwpdABhAACgKSHsIWlnM2GAAWFvcABDG1sbXhuAAWNndABJG0sbWRtyACthgAFlbHAAcQVRG1UbaQBuAOUAyAVhAHIA9AByBWgAMWFmAACgtyJlAGQAtWEAoggiY2ZvdGkbbRt1G3kb4SFyZQCgBSFpAG4AdKAeImkAZQAAoN0pZABvAPQAWxsAoisiY2VscIEbhRuPG5QbYQBsAACguiIAAWdyiRuNG2UAcgDzACMQ4wCCG2EicmhrAACgFyryIW9kAKA8KgACY2dwdJ8boRukG6gbeQBRZG8AbgAvYWYAAOA12FrdYQC5Y3UAZQBzAHQAO4C/AL9AAAFjabUbuRtyAADgNdi+3G4AAKIIIkVkc3bCG8QbyBvQAwCg+SJvAHQAAKD1Inag9CIAoPMiaaBiIOwhZGUpYesB1hsAANkbYwB5AFZkbAA7gO8A70AAA2NmbW9zdeYb7hvyG/Ub+hsFHAABaXnqG+0bcgBjADVhOWRyAADgNdgn3eEhdGg3YnAAZgAA4DXYW93jAf8bAAADHHIAAOA12L/c8iFjeVhk6yFjeVRkAARhY2ZnaGpvcxUcGhwiHCYcKhwtHDAcNRzwIXBhdqC6A/BjAAFleR4cIRzkIWlsN2E6ZHIAAOA12CjdciJlZW4AOGFjAHkARWRjAHkAXGRwAGYAAOA12FzdYwByAADgNdjA3IALQUJFSGFiY2RlZmdoamxtbm9wcnN0dXYAXhxtHHEcdRx5HN8cBx0dHTwd3B3tHfEdAR4EHh0eLB5FHrwewx7hHgkfPR9LH4ABYXJ0AGQcZxxpHHIA8gBvB/IAxQLhIWlsAKAbKeEhcnIAoA4pZ6BmIgCgiyphAHIAAKBiKWMJjRwAAJAcAACVHAAAAAAAAAAAAACZHJwcAACmHKgcrRwAANIc9SF0ZTph7SJwdHl2AKC0KXIAYQDuAFoG4iFkYbtjZwAAoegnZGyhHKMcAKCRKeUAiwYAoIUqdQBvADuAqwCrQHIAgKOQIWJmaGxwc3QAuhy/HMIcxBzHHMoczhxmoOQhcwAAoB8pcwAAoB0p6wCyGnAAAKCrIWwAAKA5KWkAbQAAoHMpbAAAoKIhAKGrKmFl1hzaHGkAbAAAoBkpc6CtKgDgrSoA/oABYWJyAOUc6RztHHIAcgAAoAwpcgBrAACgcicAAWFr8Rz4HGMAAAFla/Yc9xx7YFtgAAFlc/wc/hwAoIspbAAAAWR1Ax0FHQCgjykAoI0pAAJhZXV5Dh0RHRodHB3yIW9uPmEAAWRpFR0YHWkAbAA8YewAowbiAPccO2QAAmNxcnMkHScdLB05HWEAAKA2KXUAbwDyoBwgqhEAAWR1MB00HeghYXIAoGcpcyJoYXIAAKBLKWgAAKCyIQCiZCJmZ3FzRB1FB5Qdnh10AIACYWhscnQATh1WHWUdbB2NHXIicm93AHSgkCFhAOkAzxxhI3Jwb29uAAABZHVeHWId7yF3bgCgvSFwAACgvCHlJGZ0YXJyb3dzAKDHIWkiZ2h0AIABYWhzAHUdex2DHXIicm93APOglCGdBmEAcgBwAG8AbwBuAPMAzgtxAHUAaQBnAGEAcgByAG8A9wBlGugkcmVldGltZXMAoMsi8aFkIk0HAACaHWwAYQBuAPQAXgcAon0qY2Rnc6YdqR2xHbcdYwAAoKgqbwB0AG+gfypyoIEqAKCDKmXg2iIA/nMAAKCTKoACYWRlZ3MAwB3GHcod1h3ZHXAAcAByAG8A+ACmHG8AdAAAoNYicQAAAWdxzx3SHXQA8gBGB2cAdADyAHQcdADyAFMHaQDtAGMHgAFpbHIA4h3mHeod8yFodACgfClvAG8A8gDKBgDgNdgp3UWgdiIAoJEqYQH1Hf4dcgAAAWR1YB35HWygvCEAoGopbABrAACghCVjAHkAWWQAomoiYWNodAweDx4VHhkecgDyAGsdbwByAG4AZQDyAGAW4SFyZACgaylyAGkAAKD6JQABaW8hHiQe5CFvdEBh9SFzdGGgsCPjIWhlAKCwIwACRWFlczMeNR48HkEeAKBoInAAcKCJKvIhb3gAoIkqcaCHKvGghyo0HmkAbQAAoOYiAARhYm5vcHR3elIeXB5fHoUelh6mHqsetB4AAW5yVh5ZHmcAAKDsJ3IAAKD9IXIA6wCwBmcAgAFsbXIAZh52Hnse5SFmdAABYXKIB2weaQBnAGgAdABhAHIAcgBvAPcAkwfhInBzdG8AoPwnaQBnAGgAdABhAHIAcgBvAPcAmgdwI2Fycm93AAABbHKNHpEeZQBmAPQAxhxpImdodAAAoKwhgAFhZmwAnB6fHqIecgAAoIUpAOA12F3ddQBzAACgLSppIm1lcwAAoDQqYQGvHrMecwB0AACgFyLhAIoOZaHKJbkeRhLuIWdlAKDKJWEAcgBsoCgAdAAAoJMpgAJhY2htdADMHs8e1R7bHt0ecgDyAJ0GbwByAG4AZQDyANYWYQByAGSgyyEAoG0pAKAOIHIAaQAAoL8iAANhY2hpcXTrHu8e1QfzHv0eBh/xIXVvAKA5IHIAAOA12MHcbQDloXIi+h4AAPweAKCNKgCgjyoAAWJ19xwBH28AcqAYIACgGiDyIW9rQmEAhDwAO2NkaGlscXJCBhcfxh0gHyQfKB8sHzEfAAFjaRsfHR8AoKYqcgAAoHkqcgBlAOUAkx3tIWVzAKDJIuEhcnIAoHYpdSJlc3QAAKB7KgABUGk1HzkfYQByAACglillocMlAgdfEnIAAAFkdUIfRx9zImhhcgAAoEop6CFhcgCgZikAAWVuTx9WH3IjdG5lcXEAAOBoIgD+xQBUHwAHRGFjZGVmaGlsbm9wc3VuH3Ifoh+rH68ftx+7H74f5h/uH/MfBwj/HwsgxCFvdACgOiIAAmNscHJ5H30fiR+eH3IAO4CvAK9AAAFldIEfgx8AoEImZaAgJ3MAZQAAoCAnc6CmIXQAbwCAoaYhZGx1AJQfmB+cH28AdwDuAHkDZQBmAPQA6gbwAOkO6yFlcgCgriUAAW95ph+qH+0hbWEAoCkqPGThIXNoAKAUIOElc3VyZWRhbmdsZQCgISJyAADgNdgq3W8AAKAnIYABY2RuAMQfyR/bH3IAbwA7gLUAtUBhoiMi0B8AANMf1x9zAPQAKxFpAHIAAKDwKm8AdAA7gLcAt0B1AHMA4qESIh4TAADjH3WgOCIAoCoqYwHqH+0fcAAAoNsq8gB+GnAAbAB1APMACAgAAWRw9x/7H+UhbHMAoKciZgAA4DXYXt0AAWN0AyAHIHIAAOA12MLc8CFvcwCgPiJsobwDECAVIPQiaW1hcACguCJhAPAAEyAADEdMUlZhYmNkZWZnaGlqbG1vcHJzdHV2dzwgRyBmIG0geSCqILgg2iDeIBEhFSEyIUMhTSFQIZwhnyHSIQAiIyKLIrEivyIUIwABZ3RAIEMgAODZIjgD9uBrItIgBwmAAWVsdABNIF8gYiBmAHQAAAFhclMgWCByInJvdwAAoM0h6SRnaHRhcnJvdwCgziEA4NgiOAP24Goi0iBfCekkZ2h0YXJyb3cAoM8hAAFEZHEgdSDhIXNoAKCvIuEhc2gAoK4igAJiY25wdACCIIYgiSCNIKIgbABhAACgByL1IXRlRGFnAADgICLSIACiSSJFaW9wlSCYIJwgniAA4HAqOANkAADgSyI4A3MASWFyAG8A+AAyCnUAcgBhoG4mbADzoG4mmwjzAa8gAACzIHAAO4CgAKBAbQBwAOXgTiI4AyoJgAJhZW91eQDBIMogzSDWINkg8AHGIAAAyCAAoEMqbwBuAEhh5CFpbEZhbgBnAGSgRyJvAHQAAOBtKjgDcAAAoEIqPWThIXNoAKATIACjYCJBYWRxc3jpIO0g+SD+IAIhDCFyAHIAAKDXIXIAAAFocvIg9SBrAACgJClvoJch9wAGD28AdAAA4FAiOAN1AGkA9gC7CAABZWkGIQohYQByAACgKCntAN8I6SFzdPOgBCLlCHIAAOA12CvdAAJFZXN0/wgcISshLiHxoXEiIiEAABMJ8aFxIgAJAAAnIWwAYQBuAPQAEwlpAO0AGQlyoG8iAKBvIoABQWFwADghOyE/IXIA8gBeIHIAcgAAoK4hYQByAACg8ipzogsiSiEAAAAAxwtkoPwiAKD6ImMAeQBaZIADQUVhZGVzdABcIV8hYiFmIWkhkyGWIXIA8gBXIADgZiI4A3IAcgAAoJohcgAAoCUggKFwImZxcwBwIYQhjiF0AAABYXJ1IXohcgByAG8A9wBlIWkAZwBoAHQAYQByAHIAbwD3AD4h8aFwImAhAACKIWwAYQBuAPQAZwlz4H0qOAMAoG4iaQDtAG0JcqBuImkA5aDqIkUJaQDkADoKAAFwdKMhpyFmAADgNdhf3YCBrAA7aW4AriGvIcchrEBuAIChCSJFZHYAtyG6Ib8hAOD5IjgDbwB0AADg9SI4A+EB1gjEIcYhAKD3IgCg9iJpAHagDCLhAagJzyHRIQCg/iIAoP0igAFhb3IA2CHsIfEhcgCAoSYiYXN0AOAh5SHpIWwAbABlAOwAywhsAADg/SrlIADgAiI4A2wiaW50AACgFCrjoYAi9yEAAPohdQDlAJsJY+CvKjgDZaCAIvEAkwkAAkFhaXQHIgoiFyIeInIA8gBsIHIAcgAAoZshY3cRIhQiAOAzKTgDAOCdITgDZyRodGFycm93AACgmyFyAGkA5aDrIr4JgANjaGltcHF1AC8iPCJHIpwhTSJQIloigKGBImNlcgA2Iv0JOSJ1AOUABgoA4DXYw9zvIXJ0bQKdIQAAAABEImEAcgDhAOEhbQBloEEi8aBEIiYKYQDyAMsIcwB1AAABYnBWIlgi5QDUCeUA3wmAAWJjcABgInMieCKAoYQiRWVzAGci7glqIgDgxSo4A2UAdABl4IIi0iBxAPGgiCJoImMAZaCBIvEA/gmAoYUiRWVzAH8iFgqCIgDgxio4A2UAdABl4IMi0iBxAPGgiSKAIgACZ2lscpIilCKaIpwi7AAMCWwAZABlADuA8QDxQOcAWwlpI2FuZ2xlAAABbHKkIqoi5SFmdGWg6iLxAEUJaSJnaHQAZaDrIvEAvgltoL0DAKEjAGVzuCK8InIAbwAAoBYhcAAAoAcggARESGFkZ2lscnMAziLSItYi2iLeIugi7SICIw8j4SFzaACgrSLhIXJyAKAEKXAAAOBNItIg4SFzaACgrCIAAWV04iLlIgDgZSLSIADgPgDSIG4iZmluAACg3imAAUFldADzIvci+iJyAHIAAKACKQDgZCLSIHLgPADSIGkAZQAA4LQi0iAAAUF0BiMKI3IAcgAAoAMp8iFpZQDgtSLSIGkAbQAA4Dwi0iCAAUFhbgAaIx4jKiNyAHIAAKDWIXIAAAFociMjJiNrAACgIylvoJYh9wD/DuUhYXIAoCcpUxJqFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVCMAAF4jaSN/I4IjjSOeI8AUAAAAAKYjwCMAANoj3yMAAO8jHiQvJD8kRCQAAWNzVyNsFHUAdABlADuA8wDzQAABaXlhI2cjcgBjoJoiO4D0APRAPmSAAmFiaW9zAHEjdCN3I3EBeiNzAOgAdhTsIWFjUWF2AACgOCrvIWxkAKC8KewhaWdTYQABY3KFI4kjaQByAACgvykA4DXYLN1vA5QjAAAAAJYjAACcI24A22JhAHYAZQA7gPIA8kAAoMEpAAFibaEjjAphAHIAAKC1KQACYWNpdKwjryO6I70jcgDyAFkUAAFpcrMjtiNyAACgvinvIXNzAKC7KW4A5QDZCgCgwCmAAWFlaQDFI8gjyyNjAHIATWFnAGEAyWOAAWNkbgDRI9Qj1iPyIW9uv2MAoLYpdQDzAHgBcABmAADgNdhg3YABYWVsAOQj5yPrI3IAAKC3KXIAcAAAoLkpdQDzAHwBAKMoImFkaW9zdvkj/CMPJBMkFiQbJHIA8gBeFIChXSplZm0AAyQJJAwkcgBvoDQhZgAAoDQhO4CqAKpAO4C6ALpA5yFvZgCgtiJyAACgVipsIm9wZQAAoFcqAKBbKoABY2xvACMkJSQrJPIACCRhAHMAaAA7gPgA+EBsAACgmCJpAGwBMyQ4JGQAZQA7gPUA9UBlAHMAYaCXInMAAKA2Km0AbAA7gPYA9kDiIWFyAKA9I+EKXiQAAHokAAB8JJQkAACYJKkkAAAAALUkEQsAAPAkAAAAAAQleiUAAIMlcgCAoSUiYXN0AGUkbyQBCwCBtgA7bGokayS2QGwAZQDsABgDaQJ1JAAAAAB4JG0AAKDzKgCg/Sp5AD9kcgCAAmNpbXB0AIUkiCSLJJkSjyRuAHQAJWBvAGQALmBpAGwAAKAwIOUhbmsAoDEgcgAA4DXYLd2AAWltbwCdJKAkpCR2oMYD1WNtAGEA9AD+B24AZQAAoA4m9KHAA64kAAC0JGMjaGZvcmsAAKDUItZjAAFhdbgkxCRuAAABY2u9JMIkawBooA8hAKAOIfYAaRpzAACkKwBhYmNkZW1zdNMkIRPXJNsk4STjJOck6yTjIWlyAKAjKmkAcgAAoCIqAAFvdYsW3yQAoCUqAKByKm4AO4CxALFAaQBtAACgJip3AG8AAKAnKoABaXB1APUk+iT+JO4idGludACgFSpmAADgNdhh3W4AZAA7gKMAo0CApHoiRWFjZWlub3N1ABMlFSUYJRslTCVRJVklSSV1JQCgsypwAACgtyp1AOUAPwtjoK8qgKJ6ImFjZW5zACclLSU0JTYlSSVwAHAAcgBvAPgAFyV1AHIAbAB5AGUA8QA/C/EAOAuAAWFlcwA8JUElRSXwInByb3gAoLkqcQBxAACgtSppAG0AAKDoImkA7QBEC20AZQDzoDIgIguAAUVhcwBDJVclRSXwAEAlgAFkZnAATwtfJXElgAFhbHMAZSVpJW0l7CFhcgCgLiPpIW5lAKASI/UhcmYAoBMjdKAdIu8AWQvyIWVsAKCwIgABY2l9JYElcgAA4DXYxdzIY24iY3NwAACgCCAAA2Zpb3BzdZElKxuVJZolnyWkJXIAAOA12C7dcABmAADgNdhi3XIiaW1lAACgVyBjAHIAAOA12MbcgAFhZW8AqiW6JcAldAAAAWVpryW2JXIAbgBpAG8AbgDzABkFbgB0AACgFipzAHQAZaA/APEACRj0AG0LgApBQkhhYmNkZWZoaWxtbm9wcnN0dXgA4yXyJfYl+iVpJpAmpia9JtUm5ib4JlonaCdxJ3UnnietJ7EnyCfiJ+cngAFhcnQA6SXsJe4lcgDyAJkM8gD6AuEhaWwAoBwpYQByAPIA3BVhAHIAAKBkKYADY2RlbnFydAAGJhAmEyYYJiYmKyZaJgABZXUKJg0mAOA9IjEDdABlAFVhaQDjACAN7SJwdHl2AKCzKWcAgKHpJ2RlbAAgJiImJCYAoJIpAKClKeUA9wt1AG8AO4C7ALtAcgAApZIhYWJjZmhscHN0dz0mQCZFJkcmSiZMJk4mUSZVJlgmcAAAoHUpZqDlIXMAAKAgKQCgMylzAACgHinrALka8ACVHmwAAKBFKWkAbQAAoHQpbAAAoKMhAKCdIQABYWleJmImaQBsAACgGilvAG6gNiJhAGwA8wB2C4ABYWJyAG8mciZ2JnIA8gAvEnIAawAAoHMnAAFha3omgSZjAAABZWt/JoAmfWBdYAABZXOFJocmAKCMKWwAAAFkdYwmjiYAoI4pAKCQKQACYWV1eZcmmiajJqUm8iFvbllhAAFkaZ4moSZpAGwAV2HsAA8M4gCAJkBkAAJjbHFzrSawJrUmuiZhAACgNylkImhhcgAAoGkpdQBvAPKgHSCjAWgAAKCzIYABYWNnAMMm0iaUC2wAgKEcIWlwcwDLJs4migxuAOUAoAxhAHIA9ADaC3QAAKCtJYABaWxyANsm3ybjJvMhaHQAoH0pbwBvAPIANgwA4DXYL90AAWFv6ib1JnIAAAFkde8m8SYAoMEhbKDAIQCgbCl2oMED8WOAAWducwD+Jk4nUCdoAHQAAANhaGxyc3QKJxInISc1Jz0nRydyInJvdwB0oJIhYQDpAFYmYSNycG9vbgAAAWR1GiceJ28AdwDuAPAmcAAAoMAh5SFmdAABYWgnJy0ncgByAG8AdwDzAAkMYQByAHAAbwBvAG4A8wATBGklZ2h0YXJyb3dzAACgySFxAHUAaQBnAGEAcgByAG8A9wBZJugkcmVldGltZXMAoMwiZwDaYmkAbgBnAGQAbwB0AHMAZQDxABwYgAFhaG0AYCdjJ2YncgDyAAkMYQDyABMEAKAPIG8idXN0AGGgsSPjIWhlAKCxI+0haWQAoO4qAAJhYnB0fCeGJ4knmScAAW5ygCeDJ2cAAKDtJ3IAAKD+IXIA6wAcDIABYWZsAI8nkieVJ3IAAKCGKQDgNdhj3XUAcwAAoC4qaSJtZXMAAKA1KgABYXCiJ6gncgBnoCkAdAAAoJQp7yJsaW50AKASKmEAcgDyADwnAAJhY2hxuCe8J6EMwCfxIXVvAKA6IHIAAOA12MfcAAFidYAmxCdvAPKgGSCoAYABaGlyAM4n0ifWJ3IAZQDlAE0n7SFlcwCgyiJpAIChuSVlZmwAXAxjEt4n9CFyaQCgzinsInVoYXIAoGgpAKAeIWENBSgJKA0oSyhVKIYoAACLKLAoAAAAAOMo5ygAABApJCkxKW0pcSmHKaYpAACYKgAAAACxKmMidXRlAFthcQB1AO8ABR+ApHsiRWFjZWlucHN5ABwoHignKCooLygyKEEoRihJKACgtCrwASMoAAAlKACguCpvAG4AYWF1AOUAgw1koLAqaQBsAF9hcgBjAF1hgAFFYXMAOCg6KD0oAKC2KnAAAKC6KmkAbQAAoOki7yJsaW50AKATKmkA7QCIDUFkbwB0AGKixSKRFgAAAABTKACgZiqAA0FhY21zdHgAYChkKG8ocyh1KHkogihyAHIAAKDYIXIAAAFocmkoayjrAJAab6CYIfcAzAd0ADuApwCnQGkAO2D3IWFyAKApKW0AAAFpbn4ozQBuAHUA8wDOAHQAAKA2J3IA7+A12DDdIxkAAmFjb3mRKJUonSisKHIAcAAAoG8mAAFoeZkonChjAHkASWRIZHIAdABtAqUoAAAAAKgoaQDkAFsPYQByAGEA7ABsJDuArQCtQAABZ22zKLsobQBhAAChwwNmdroouijCY4CjPCJkZWdsbnByAMgozCjPKNMo1yjaKN4obwB0AACgairxoEMiCw5FoJ4qAKCgKkWgnSoAoJ8qZQAAoEYi7CF1cwCgJCrhIXJyAKByKWEAcgDyAPwMAAJhZWl07Sj8KAEpCCkAAWxz8Sj4KGwAcwBlAHQAbQDpAH8oaABwAACgMyrwImFyc2wAoOQpAAFkbFoPBSllAACgIyNloKoqc6CsKgDgrCoA/oABZmxwABUpGCkfKfQhY3lMZGKgLwBhoMQpcgAAoD8jZgAA4DXYZN1hAAABZHIoKRcDZQBzAHWgYCZpAHQAAKBgJoABY3N1ADYpRilhKQABYXU6KUApcABzoJMiAOCTIgD+cABzoJQiAOCUIgD+dQAAAWJwSylWKQChjyJlcz4NUCllAHQAZaCPIvEAPw0AoZAiZXNIDVspZQB0AGWgkCLxAEkNAKGhJWFmZilbBHIAZQFrKVwEAKChJWEAcgDyAAMNAAJjZW10dyl7KX8pgilyAADgNdjI3HQAbQDuAM4AaQDsAAYpYQByAOYAVw0AAWFyiimOKXIA5qAGJhESAAFhbpIpoylpImdodAAAAWVwmSmgKXAAcwBpAGwAbwDuANkXaADpAKAkcwCvYIACYmNtbnAArin8KY4NJSooKgCkgiJFZGVtbnByc7wpvinCKcgpzCnUKdgp3CkAoMUqbwB0AACgvSpkoIYibwB0AACgwyr1IWx0AKDBKgABRWXQKdIpAKDLKgCgiiLsIXVzAKC/KuEhcnIAoHkpgAFlaXUA4inxKfQpdAAAoYIiZW7oKewpcQDxoIYivSllAHEA8aCKItEpbQAAoMcqAAFicPgp+ikAoNUqAKDTKmMAgKJ7ImFjZW5zAAcqDSoUKhYqRihwAHAAcgBvAPgAIyh1AHIAbAB5AGUA8QCDDfEAfA2AAWFlcwAcKiIqPShwAHAAcgBvAPgAPChxAPEAOShnAACgaiYApoMiMTIzRWRlaGxtbnBzPCo/KkIqRSpHKlIqWCpjKmcqaypzKncqO4C5ALlAO4CyALJAO4CzALNAAKDGKgABb3NLKk4qdAAAoL4qdQBiAACg2CpkoIcibwB0AACgxCpzAAABb3VdKmAqbAAAoMknYgAAoNcq4SFycgCgeyn1IWx0AKDCKgABRWVvKnEqAKDMKgCgiyLsIXVzAKDAKoABZWl1AH0qjCqPKnQAAKGDImVugyqHKnEA8aCHIkYqZQBxAPGgiyJwKm0AAKDIKgABYnCTKpUqAKDUKgCg1iqAAUFhbgCdKqEqrCpyAHIAAKDZIXIAAAFocqYqqCrrAJUab6CZIfcAxQf3IWFyAKAqKWwAaQBnADuA3wDfQOELzyrZKtwq6SrsKvEqAAD1KjQrAAAAAAAAAAAAAEwrbCsAAHErvSsAAAAAAADRK3IC1CoAAAAA2CrnIWV0AKAWI8RjcgDrAOUKgAFhZXkA4SrkKucq8iFvbmVh5CFpbGNhQmRvAPQAIg5sInJlYwAAoBUjcgAA4DXYMd0AAmVpa2/7KhIrKCsuK/IBACsAAAkrZQAAATRm6g0EK28AcgDlAOsNYQBzorgDECsAAAAAEit5AG0A0WMAAWNuFislK2sAAAFhcxsrIStwAHAAcgBvAPgAFw5pAG0AAKA8InMA8AD9DQABYXMsKyEr8AAXDnIAbgA7gP4A/kDsATgrOyswG2QA5QBnAmUAcwCAgdcAO2JkAEMrRCtJK9dAYaCgInIAAKAxKgCgMCqAAWVwcwBRK1MraSvhAAkh4qKkIlsrXysAAAAAYytvAHQAAKA2I2kAcgAAoPEqb+A12GXdcgBrAACg2irhAHgociJpbWUAAKA0IIABYWlwAHYreSu3K2QA5QC+DYADYWRlbXBzdACFK6MrmiunK6wrsCuzK24iZ2xlAACitSVkbHFykCuUK5ornCvvIXduAKC/JeUhZnRloMMl8QACBwCgXCJpImdodABloLkl8QBdDG8AdAAAoOwlaSJudXMAAKA6KuwhdXMAoDkqYgAAoM0p6SFtZQCgOyrlInppdW0AoOIjgAFjaHQAwivKK80rAAFyecYrySsA4DXYydxGZGMAeQBbZPIhb2tnYQABaW/UK9creAD0ANERaCJlYWQAAAFsct4r5ytlAGYAdABhAHIAcgBvAPcAXQbpJGdodGFycm93AKCgIQAJQUhhYmNkZmdobG1vcHJzdHV3CiwNLBEsHSwnLDEsQCxLLFIsYix6LIQsjyzLLOgs7Sz/LAotcgDyAAkDYQByAACgYykAAWNyFSwbLHUAdABlADuA+gD6QPIACQ1yAOMBIywAACUseQBeZHYAZQBtYQABaXkrLDAscgBjADuA+wD7QENkgAFhYmgANyw6LD0scgDyANEO7CFhY3FhYQDyAOAOAAFpckQsSCzzIWh0AKB+KQDgNdgy3XIAYQB2AGUAO4D5APlAYQFWLF8scgAAAWxyWixcLACgvyEAoL4hbABrAACggCUAAWN0Zix2LG8CbCwAAAAAcyxyAG4AZaAcI3IAAKAcI28AcAAAoA8jcgBpAACg+CUAAWFsfiyBLGMAcgBrYTuAqACoQAABZ3CILIssbwBuAHNhZgAA4DXYZt0AA2FkaGxzdZksniynLLgsuyzFLHIAcgBvAPcACQ1vAHcAbgBhAHIAcgBvAPcA2A5hI3Jwb29uAAABbHKvLLMsZQBmAPQAWyxpAGcAaAD0AF0sdQDzAKYOaQAAocUDaGzBLMIs0mNvAG4AxWPwI2Fycm93cwCgyCGAAWNpdADRLOEs5CxvAtcsAAAAAN4scgBuAGWgHSNyAACgHSNvAHAAAKAOI24AZwBvYXIAaQAAoPklYwByAADgNdjK3IABZGlyAPMs9yz6LG8AdAAAoPAi7CFkZWlhaQBmoLUlAKC0JQABYW0DLQYtcgDyAMosbAA7gPwA/EDhIm5nbGUAoKcpgAdBQkRhY2RlZmxub3Byc3oAJy0qLTAtNC2bLZ0toS2/LcMtxy3TLdgt3C3gLfwtcgDyABADYQByAHag6CoAoOkqYQBzAOgA/gIAAW5yOC08LechcnQAoJwpgANla25wcnN0AJkpSC1NLVQtXi1iLYItYQBwAHAA4QAaHG8AdABoAGkAbgDnAKEXgAFoaXIAoSmzJFotbwBwAPQAdCVooJUh7wD4JgABaXVmLWotZwBtAOEAuygAAWJwbi14LXMjZXRuZXEAceCKIgD+AODLKgD+cyNldG5lcQBx4IsiAP4A4MwqAP4AAWhyhi2KLWUAdADhABIraSNhbmdsZQAAAWxyki2WLeUhZnQAoLIiaSJnaHQAAKCzInkAMmThIXNoAKCiIoABZWxyAKcttC24LWKiKCKuLQAAAACyLWEAcgAAoLsicQAAoFoi7CFpcACg7iIAAWJ0vC1eD2EA8gBfD3IAAOA12DPddAByAOkAlS1zAHUAAAFicM0t0C0A4IIi0iAA4IMi0iBwAGYAAOA12GfdcgBvAPAAWQt0AHIA6QCaLQABY3XkLegtcgAA4DXYy9wAAWJw7C30LW4AAAFFZXUt8S0A4IoiAP5uAAABRWV/LfktAOCLIgD+6SJnemFnAKCaKYADY2Vmb3BycwANLhAuJS4pLiMuLi40LukhcmN1YQABZGkULiEuAAFiZxguHC5hAHIAAKBfKmUAcaAnIgCgWSLlIXJwAKAYIXIAAOA12DTdcABmAADgNdho3WWgQCJhAHQA6ABqD2MAcgAA4DXYzNzjCuQRUC4AAFQuAABYLmIuAAAAAGMubS5wLnQuAAAAAIguki4AAJouJxIqEnQAcgDpAB0ScgAA4DXYNd0AAUFhWy5eLnIA8gDnAnIA8gCTB75jAAFBYWYuaS5yAPIA4AJyAPIAjAdhAPAAeh5pAHMAAKD7IoABZHB0APgReS6DLgABZmx9LoAuAOA12GnddQDzAP8RaQBtAOUABBIAAUFhiy6OLnIA8gDuAnIA8gCaBwABY3GVLgoScgAA4DXYzdwAAXB0nS6hLmwAdQDzACUScgDpACASAARhY2VmaW9zdbEuvC7ELsguzC7PLtQu2S5jAAABdXm2LrsudABlADuA/QD9QE9kAAFpecAuwy5yAGMAd2FLZG4AO4ClAKVAcgAA4DXYNt1jAHkAV2RwAGYAAOA12GrdYwByAADgNdjO3AABY23dLt8ueQBOZGwAO4D/AP9AAAVhY2RlZmhpb3N38y73Lv8uAi8MLxAvEy8YLx0vIi9jInV0ZQB6YQABYXn7Lv4u8iFvbn5hN2RvAHQAfGEAAWV0Bi8KL3QAcgDmAB8QYQC2Y3IAAOA12DfdYwB5ADZk5yJyYXJyAKDdIXAAZgAA4DXYa91jAHIAAOA12M/cAAFqbiYvKC8AoA0gagAAoAwg")});var DN=k((Af)=>{Object.defineProperty(Af,"__esModule",{value:!0});Af.xmlDecodeTree=void 0;var IFD=sO();Af.xmlDecodeTree=(0,IFD.decodeBase64)("AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg")});var bf=k((Tf)=>{Object.defineProperty(Tf,"__esModule",{value:!0});Tf.BinTrieFlags=void 0;var Ef;(function(D){D[D.VALUE_LENGTH=49152]="VALUE_LENGTH",D[D.FLAG13=8192]="FLAG13",D[D.BRANCH_LENGTH=8064]="BRANCH_LENGTH",D[D.JUMP_TABLE=127]="JUMP_TABLE"})(Ef||(Tf.BinTrieFlags=Ef={}))});var uf=k(($8)=>{Object.defineProperty($8,"__esModule",{value:!0});$8.xmlDecodeTree=$8.htmlDecodeTree=$8.replaceCodePoint=$8.fromCodePoint=$8.decodeCodePoint=$8.EntityDecoder=$8.DecodingMode=void 0;$8.determineBranch=_f;$8.decodeHTML=LFD;$8.decodeHTMLAttribute=RFD;$8.decodeHTMLStrict=MFD;$8.decodeXML=AFD;var Cf=aO(),BFD=eO(),OFD=DN(),C$=bf(),F0;(function(D){D[D.NUM=35]="NUM",D[D.SEMI=59]="SEMI",D[D.EQUALS=61]="EQUALS",D[D.ZERO=48]="ZERO",D[D.NINE=57]="NINE",D[D.LOWER_A=97]="LOWER_A",D[D.LOWER_F=102]="LOWER_F",D[D.LOWER_X=120]="LOWER_X",D[D.LOWER_Z=122]="LOWER_Z",D[D.UPPER_A=65]="UPPER_A",D[D.UPPER_F=70]="UPPER_F",D[D.UPPER_Z=90]="UPPER_Z"})(F0||(F0={}));var Sf=32;function $N(D){return D>=F0.ZERO&&D<=F0.NINE}function NFD(D){return D>=F0.UPPER_A&&D<=F0.UPPER_F||D>=F0.LOWER_A&&D<=F0.LOWER_F}function VFD(D){return D>=F0.UPPER_A&&D<=F0.UPPER_Z||D>=F0.LOWER_A&&D<=F0.LOWER_Z||$N(D)}function wFD(D){return D===F0.EQUALS||VFD(D)}var P0;(function(D){D[D.EntityStart=0]="EntityStart",D[D.NumericStart=1]="NumericStart",D[D.NumericDecimal=2]="NumericDecimal",D[D.NumericHex=3]="NumericHex",D[D.NamedEntity=4]="NamedEntity"})(P0||(P0={}));var Q6;(function(D){D[D.Legacy=0]="Legacy",D[D.Strict=1]="Strict",D[D.Attribute=2]="Attribute"})(Q6||($8.DecodingMode=Q6={}));class JN{constructor(D,$,J){this.decodeTree=D,this.emitCodePoint=$,this.errors=J,this.state=P0.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Q6.Strict,this.runConsumed=0}startEntity(D){this.decodeMode=D,this.state=P0.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(D,$){switch(this.state){case P0.EntityStart:{if(D.charCodeAt($)===F0.NUM)return this.state=P0.NumericStart,this.consumed+=1,this.stateNumericStart(D,$+1);return this.state=P0.NamedEntity,this.stateNamedEntity(D,$)}case P0.NumericStart:return this.stateNumericStart(D,$);case P0.NumericDecimal:return this.stateNumericDecimal(D,$);case P0.NumericHex:return this.stateNumericHex(D,$);case P0.NamedEntity:return this.stateNamedEntity(D,$)}}stateNumericStart(D,$){if($>=D.length)return-1;if((D.charCodeAt($)|Sf)===F0.LOWER_X)return this.state=P0.NumericHex,this.consumed+=1,this.stateNumericHex(D,$+1);return this.state=P0.NumericDecimal,this.stateNumericDecimal(D,$)}stateNumericHex(D,$){while($<D.length){let J=D.charCodeAt($);if($N(J)||NFD(J)){let X=J<=F0.NINE?J-F0.ZERO:(J|Sf)-F0.LOWER_A+10;this.result=this.result*16+X,this.consumed++,$++}else return this.emitNumericEntity(J,3)}return-1}stateNumericDecimal(D,$){while($<D.length){let J=D.charCodeAt($);if($N(J))this.result=this.result*10+(J-F0.ZERO),this.consumed++,$++;else return this.emitNumericEntity(J,2)}return-1}emitNumericEntity(D,$){var J;if(this.consumed<=$)return(J=this.errors)===null||J===void 0||J.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(D===F0.SEMI)this.consumed+=1;else if(this.decodeMode===Q6.Strict)return 0;if(this.emitCodePoint((0,Cf.replaceCodePoint)(this.result),this.consumed),this.errors){if(D!==F0.SEMI)this.errors.missingSemicolonAfterCharacterReference();this.errors.validateNumericCharacterReference(this.result)}return this.consumed}stateNamedEntity(D,$){let{decodeTree:J}=this,X=J[this.treeIndex],Y=(X&C$.BinTrieFlags.VALUE_LENGTH)>>14;while($<D.length){if(Y===0&&(X&C$.BinTrieFlags.FLAG13)!==0){let U=(X&C$.BinTrieFlags.BRANCH_LENGTH)>>7;if(this.runConsumed===0){let F=X&C$.BinTrieFlags.JUMP_TABLE;if(D.charCodeAt($)!==F)return this.result===0?0:this.emitNotTerminatedNamedEntity();$++,this.excess++,this.runConsumed++}while(this.runConsumed<U){if($>=D.length)return-1;let F=this.runConsumed-1,W=J[this.treeIndex+1+(F>>1)],K=F%2===0?W&255:W>>8&255;if(D.charCodeAt($)!==K)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();$++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(U>>1),X=J[this.treeIndex],Y=(X&C$.BinTrieFlags.VALUE_LENGTH)>>14}if($>=D.length)break;let Q=D.charCodeAt($);if(Q===F0.SEMI&&Y!==0&&(X&C$.BinTrieFlags.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,Y,this.consumed+this.excess);if(this.treeIndex=_f(J,X,this.treeIndex+Math.max(1,Y),Q),this.treeIndex<0)return this.result===0||this.decodeMode===Q6.Attribute&&(Y===0||wFD(Q))?0:this.emitNotTerminatedNamedEntity();if(X=J[this.treeIndex],Y=(X&C$.BinTrieFlags.VALUE_LENGTH)>>14,Y!==0){if(Q===F0.SEMI)return this.emitNamedEntityData(this.treeIndex,Y,this.consumed+this.excess);if(this.decodeMode!==Q6.Strict&&(X&C$.BinTrieFlags.FLAG13)===0)this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0}$++,this.excess++}return-1}emitNotTerminatedNamedEntity(){var D;let{result:$,decodeTree:J}=this,X=(J[$]&C$.BinTrieFlags.VALUE_LENGTH)>>14;return this.emitNamedEntityData($,X,this.consumed),(D=this.errors)===null||D===void 0||D.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(D,$,J){let{decodeTree:X}=this;if(this.emitCodePoint($===1?X[D]&~(C$.BinTrieFlags.VALUE_LENGTH|C$.BinTrieFlags.FLAG13):X[D+1],J),$===3)this.emitCodePoint(X[D+2],J);return J}end(){var D;switch(this.state){case P0.NamedEntity:return this.result!==0&&(this.decodeMode!==Q6.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case P0.NumericDecimal:return this.emitNumericEntity(0,2);case P0.NumericHex:return this.emitNumericEntity(0,3);case P0.NumericStart:return(D=this.errors)===null||D===void 0||D.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case P0.EntityStart:return 0}}}$8.EntityDecoder=JN;function kf(D){let $="",J=new JN(D,(X)=>$+=(0,Cf.fromCodePoint)(X));return function(Y,Q){let U=0,F=0;while((F=Y.indexOf("&",F))>=0){$+=Y.slice(U,F),J.startEntity(Q);let K=J.write(Y,F+1);if(K<0){U=F+J.end();break}U=F+K,F=K===0?U+1:U}let W=$+Y.slice(U);return $="",W}}function _f(D,$,J,X){let Y=($&C$.BinTrieFlags.BRANCH_LENGTH)>>7,Q=$&C$.BinTrieFlags.JUMP_TABLE;if(Y===0)return Q!==0&&X===Q?J:-1;if(Q){let K=X-Q;return K<0||K>=Y?-1:D[J+K]-1}let U=Y+1>>1,F=0,W=Y-1;while(F<=W){let K=F+W>>>1,q=K>>1,Z=D[J+q]>>(K&1)*8&255;if(Z<X)F=K+1;else if(Z>X)W=K-1;else return D[J+U+K]}return-1}var XN=kf(BFD.htmlDecodeTree),jFD=kf(OFD.xmlDecodeTree);function LFD(D,$=Q6.Legacy){return XN(D,$)}function RFD(D){return XN(D,Q6.Attribute)}function MFD(D){return XN(D,Q6.Strict)}function AFD(D){return jFD(D,Q6.Strict)}var YN=aO();Object.defineProperty($8,"decodeCodePoint",{enumerable:!0,get:function(){return YN.decodeCodePoint}});Object.defineProperty($8,"fromCodePoint",{enumerable:!0,get:function(){return YN.fromCodePoint}});Object.defineProperty($8,"replaceCodePoint",{enumerable:!0,get:function(){return YN.replaceCodePoint}});var vFD=eO();Object.defineProperty($8,"htmlDecodeTree",{enumerable:!0,get:function(){return vFD.htmlDecodeTree}});var EFD=DN();Object.defineProperty($8,"xmlDecodeTree",{enumerable:!0,get:function(){return EFD.xmlDecodeTree}})});var Py=k((Ty)=>{Object.defineProperty(Ty,"__esModule",{value:!0});function gFD(D,$){if(D==null)return{};var J={};for(var X in D)if({}.hasOwnProperty.call(D,X)){if($.indexOf(X)!==-1)continue;J[X]=D[X]}return J}class p6{constructor(D,$,J){this.line=void 0,this.column=void 0,this.index=void 0,this.line=D,this.column=$,this.index=J}}class q3{constructor(D,$){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=D,this.end=$}}function F$(D,$){let{line:J,column:X,index:Y}=D;return new p6(J,X+$,Y+$)}var gf="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",xFD={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:gf},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:gf}},xf={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},$U=(D)=>D.type==="UpdateExpression"?xf.UpdateExpression[`${D.prefix}`]:xf[D.type],fFD={AccessorIsGenerator:({kind:D})=>`A ${D}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:D})=>`Missing initializer in ${D} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:D})=>`\`${D}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:D,exportName:$})=>`A string literal cannot be used as an exported binding without \`from\`.
- Did you mean \`export { '${D}' as '${$}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:D})=>`'${D==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:D})=>`Unsyntactic ${D==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:D})=>`A string literal cannot be used as an imported binding.
- Did you mean \`import { "${D}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:D})=>`Expected number in radix ${D}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:D})=>`Escape sequence in keyword ${D}.`,InvalidIdentifier:({identifierName:D})=>`Invalid identifier ${D}.`,InvalidLhs:({ancestor:D})=>`Invalid left-hand side in ${$U(D)}.`,InvalidLhsBinding:({ancestor:D})=>`Binding invalid left-hand side in ${$U(D)}.`,InvalidLhsOptionalChaining:({ancestor:D})=>`Invalid optional chaining in the left-hand side of ${$U(D)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:D})=>`Unexpected character '${D}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:D})=>`Private name #${D} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:D})=>`Label '${D}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:D})=>`This experimental syntax requires enabling the parser plugin: ${D.map(($)=>JSON.stringify($)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:D})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${D.map(($)=>JSON.stringify($)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:D})=>`Duplicate key "${D}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:D})=>`An export name cannot include a lone surrogate, found '\\u${D.toString(16)}'.`,ModuleExportUndefined:({localName:D})=>`Export '${D}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:D})=>`Private names are only allowed in property accesses (\`obj.#${D}\`) or in \`in\` expressions (\`#${D} in obj\`).`,PrivateNameRedeclaration:({identifierName:D})=>`Duplicate private name #${D}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:D})=>`Unexpected keyword '${D}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:D})=>`Unexpected reserved word '${D}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:D,unexpected:$})=>`Unexpected token${$?` '${$}'.`:""}${D?`, expected "${D}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:D,onlyValidPropertyName:$})=>`The only valid meta property for ${D} is ${D}.${$}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:D})=>`Identifier '${D}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},yFD={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:D})=>`Assigning to '${D}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:D})=>`Binding '${D}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},hFD={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:D})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(D)}\`.`},mFD=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),lFD=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:D})=>`Invalid topic token ${D}. In order to use ${D} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${D}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:D})=>`Hack-style pipe body cannot be an unparenthesized ${$U({type:D})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'}),dFD=["message"];function ff(D,$,J){Object.defineProperty(D,$,{enumerable:!1,configurable:!0,value:J})}function iFD({toMessage:D,code:$,reasonCode:J,syntaxPlugin:X}){let Y=J==="MissingPlugin"||J==="MissingOneOfPlugins",Q={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};if(Q[J])J=Q[J];return function U(F,W){let K=SyntaxError();if(K.code=$,K.reasonCode=J,K.loc=F,K.pos=F.index,K.syntaxPlugin=X,Y)K.missingPlugin=W.missingPlugin;return ff(K,"clone",function(G={}){var Z;let{line:H,column:z,index:I}=(Z=G.loc)!=null?Z:F;return U(new p6(H,z,I),Object.assign({},W,G.details))}),ff(K,"details",W),Object.defineProperty(K,"message",{configurable:!0,get(){let q=`${D(W)} (${F.line}:${F.column})`;return this.message=q,q},set(q){Object.defineProperty(this,"message",{value:q,writable:!0})}}),K}}function v6(D,$){if(Array.isArray(D))return(X)=>v6(X,D[0]);let J={};for(let X of Object.keys(D)){let Y=D[X],Q=typeof Y==="string"?{message:()=>Y}:typeof Y==="function"?{message:Y}:Y,{message:U}=Q,F=gFD(Q,dFD),W=typeof U==="string"?()=>U:U;J[X]=iFD(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:X,toMessage:W},$?{syntaxPlugin:$}:{},F))}return J}var M=Object.assign({},v6(xFD),v6(fFD),v6(yFD),v6(hFD),v6`pipelineOperator`(lFD));function cFD(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function pFD(D){let $=cFD();if(D==null)return $;if(D.annexB!=null&&D.annexB!==!1)throw Error("The `annexB` option can only be set to `false`.");for(let J of Object.keys($))if(D[J]!=null)$[J]=D[J];if($.startLine===1){if(D.startIndex==null&&$.startColumn>0)$.startIndex=$.startColumn;else if(D.startColumn==null&&$.startIndex>0)$.startColumn=$.startIndex}else if(D.startColumn==null||D.startIndex==null){if(D.startIndex!=null)throw Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.")}if($.sourceType==="commonjs"){if(D.allowAwaitOutsideFunction!=null)throw Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(D.allowReturnOutsideFunction!=null)throw Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(D.allowNewTargetOutsideFunction!=null)throw Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return $}var{defineProperty:nFD}=Object,yf=(D,$)=>{if(D)nFD(D,$,{enumerable:!1,value:D[$]})};function X3(D){return yf(D.loc.start,"index"),yf(D.loc.end,"index"),D}var rFD=(D)=>class extends D{parse(){let J=X3(super.parse());if(this.optionFlags&256)J.tokens=J.tokens.map(X3);return J}parseRegExpLiteral({pattern:J,flags:X}){let Y=null;try{Y=new RegExp(J,X)}catch(U){}let Q=this.estreeParseLiteral(Y);return Q.regex={pattern:J,flags:X},Q}parseBigIntLiteral(J){let X;try{X=BigInt(J)}catch(Q){X=null}let Y=this.estreeParseLiteral(X);return Y.bigint=String(Y.value||J),Y}parseDecimalLiteral(J){let Y=this.estreeParseLiteral(null);return Y.decimal=String(Y.value||J),Y}estreeParseLiteral(J){return this.parseLiteral(J,"Literal")}parseStringLiteral(J){return this.estreeParseLiteral(J)}parseNumericLiteral(J){return this.estreeParseLiteral(J)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(J){return this.estreeParseLiteral(J)}estreeParseChainExpression(J,X){let Y=this.startNodeAtNode(J);return Y.expression=J,this.finishNodeAt(Y,"ChainExpression",X)}directiveToStmt(J){let X=J.value;delete J.value,this.castNodeTo(X,"Literal"),X.raw=X.extra.raw,X.value=X.extra.expressionValue;let Y=this.castNodeTo(J,"ExpressionStatement");return Y.expression=X,Y.directive=X.extra.rawValue,delete X.extra,Y}fillOptionalPropertiesForTSESLint(J){}cloneEstreeStringLiteral(J){let{start:X,end:Y,loc:Q,range:U,raw:F,value:W}=J,K=Object.create(J.constructor.prototype);return K.type="Literal",K.start=X,K.end=Y,K.loc=Q,K.range=U,K.raw=F,K.value=W,K}initFunction(J,X){super.initFunction(J,X),J.expression=!1}checkDeclaration(J){if(J!=null&&this.isObjectProperty(J))this.checkDeclaration(J.value);else super.checkDeclaration(J)}getObjectOrClassMethodParams(J){return J.value.params}isValidDirective(J){var X;return J.type==="ExpressionStatement"&&J.expression.type==="Literal"&&typeof J.expression.value==="string"&&!((X=J.expression.extra)!=null&&X.parenthesized)}parseBlockBody(J,X,Y,Q,U){super.parseBlockBody(J,X,Y,Q,U);let F=J.directives.map((W)=>this.directiveToStmt(W));J.body=F.concat(J.body),delete J.directives}parsePrivateName(){let J=super.parsePrivateName();if(!this.getPluginOption("estree","classFeatures"))return J;return this.convertPrivateNameToPrivateIdentifier(J)}convertPrivateNameToPrivateIdentifier(J){let X=super.getPrivateNameSV(J);return delete J.id,J.name=X,this.castNodeTo(J,"PrivateIdentifier")}isPrivateName(J){if(!this.getPluginOption("estree","classFeatures"))return super.isPrivateName(J);return J.type==="PrivateIdentifier"}getPrivateNameSV(J){if(!this.getPluginOption("estree","classFeatures"))return super.getPrivateNameSV(J);return J.name}parseLiteral(J,X){let Y=super.parseLiteral(J,X);return Y.raw=Y.extra.raw,delete Y.extra,Y}parseFunctionBody(J,X,Y=!1){super.parseFunctionBody(J,X,Y),J.expression=J.body.type!=="BlockStatement"}parseMethod(J,X,Y,Q,U,F,W=!1){let K=this.startNode();K.kind=J.kind,K=super.parseMethod(K,X,Y,Q,U,F,W),delete K.kind;let{typeParameters:q}=J;if(q)delete J.typeParameters,K.typeParameters=q,this.resetStartLocationFromNode(K,q);let G=this.castNodeTo(K,"FunctionExpression");if(J.value=G,F==="ClassPrivateMethod")J.computed=!1;if(F==="ObjectMethod"){if(J.kind==="method")J.kind="init";return J.shorthand=!1,this.finishNode(J,"Property")}else return this.finishNode(J,"MethodDefinition")}nameIsConstructor(J){if(J.type==="Literal")return J.value==="constructor";return super.nameIsConstructor(J)}parseClassProperty(...J){let X=super.parseClassProperty(...J);if(!this.getPluginOption("estree","classFeatures"))return X;return this.castNodeTo(X,"PropertyDefinition"),X}parseClassPrivateProperty(...J){let X=super.parseClassPrivateProperty(...J);if(!this.getPluginOption("estree","classFeatures"))return X;return this.castNodeTo(X,"PropertyDefinition"),X.computed=!1,X}parseClassAccessorProperty(J){let X=super.parseClassAccessorProperty(J);if(!this.getPluginOption("estree","classFeatures"))return X;if(X.abstract&&this.hasPlugin("typescript"))delete X.abstract,this.castNodeTo(X,"TSAbstractAccessorProperty");else this.castNodeTo(X,"AccessorProperty");return X}parseObjectProperty(J,X,Y,Q){let U=super.parseObjectProperty(J,X,Y,Q);if(U)U.kind="init",this.castNodeTo(U,"Property");return U}finishObjectProperty(J){return J.kind="init",this.finishNode(J,"Property")}isValidLVal(J,X,Y,Q){return J==="Property"?"value":super.isValidLVal(J,X,Y,Q)}isAssignable(J,X){if(J!=null&&this.isObjectProperty(J))return this.isAssignable(J.value,X);return super.isAssignable(J,X)}toAssignable(J,X=!1){if(J!=null&&this.isObjectProperty(J)){let{key:Y,value:Q}=J;if(this.isPrivateName(Y))this.classScope.usePrivateName(this.getPrivateNameSV(Y),Y.loc.start);this.toAssignable(Q,X)}else super.toAssignable(J,X)}toAssignableObjectExpressionProp(J,X,Y){if(J.type==="Property"&&(J.kind==="get"||J.kind==="set"))this.raise(M.PatternHasAccessor,J.key);else if(J.type==="Property"&&J.method)this.raise(M.PatternHasMethod,J.key);else super.toAssignableObjectExpressionProp(J,X,Y)}finishCallExpression(J,X){let Y=super.finishCallExpression(J,X);if(Y.callee.type==="Import"){var Q,U;this.castNodeTo(Y,"ImportExpression"),Y.source=Y.arguments[0],Y.options=(Q=Y.arguments[1])!=null?Q:null,Y.attributes=(U=Y.arguments[1])!=null?U:null,delete Y.arguments,delete Y.callee}else if(Y.type==="OptionalCallExpression")this.castNodeTo(Y,"CallExpression");else Y.optional=!1;return Y}toReferencedArguments(J){if(J.type==="ImportExpression")return;super.toReferencedArguments(J)}parseExport(J,X){let Y=this.state.lastTokStartLoc,Q=super.parseExport(J,X);switch(Q.type){case"ExportAllDeclaration":Q.exported=null;break;case"ExportNamedDeclaration":if(Q.specifiers.length===1&&Q.specifiers[0].type==="ExportNamespaceSpecifier")this.castNodeTo(Q,"ExportAllDeclaration"),Q.exported=Q.specifiers[0].exported,delete Q.specifiers;case"ExportDefaultDeclaration":{var U;let{declaration:F}=Q;if((F==null?void 0:F.type)==="ClassDeclaration"&&((U=F.decorators)==null?void 0:U.length)>0&&F.start===Q.start)this.resetStartLocation(Q,Y)}break}return Q}stopParseSubscript(J,X){let Y=super.stopParseSubscript(J,X);if(X.optionalChainMember)return this.estreeParseChainExpression(Y,J.loc.end);return Y}parseMember(J,X,Y,Q,U){let F=super.parseMember(J,X,Y,Q,U);if(F.type==="OptionalMemberExpression")this.castNodeTo(F,"MemberExpression");else F.optional=!1;return F}isOptionalMemberExpression(J){if(J.type==="ChainExpression")return J.expression.type==="MemberExpression";return super.isOptionalMemberExpression(J)}hasPropertyAsPrivateName(J){if(J.type==="ChainExpression")J=J.expression;return super.hasPropertyAsPrivateName(J)}isObjectProperty(J){return J.type==="Property"&&J.kind==="init"&&!J.method}isObjectMethod(J){return J.type==="Property"&&(J.method||J.kind==="get"||J.kind==="set")}castNodeTo(J,X){let Y=super.castNodeTo(J,X);return this.fillOptionalPropertiesForTSESLint(Y),Y}cloneIdentifier(J){let X=super.cloneIdentifier(J);return this.fillOptionalPropertiesForTSESLint(X),X}cloneStringLiteral(J){if(J.type==="Literal")return this.cloneEstreeStringLiteral(J);return super.cloneStringLiteral(J)}finishNodeAt(J,X,Y){return X3(super.finishNodeAt(J,X,Y))}finishNode(J,X){let Y=super.finishNode(J,X);return this.fillOptionalPropertiesForTSESLint(Y),Y}resetStartLocation(J,X){super.resetStartLocation(J,X),X3(J)}resetEndLocation(J,X=this.state.lastTokEndLoc){super.resetEndLocation(J,X),X3(J)}};class G9{constructor(D,$){this.token=void 0,this.preserveSpace=void 0,this.token=D,this.preserveSpace=!!$}}var uD={brace:new G9("{"),j_oTag:new G9("<tag"),j_cTag:new G9("</tag"),j_expr:new G9("<tag>...</tag>",!0)};uD.template=new G9("`",!0);var RD=!0,DD=!0,QN=!0,Y3=!0,g1=!0,tFD=!0;class IN{constructor(D,$={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=D,this.keyword=$.keyword,this.beforeExpr=!!$.beforeExpr,this.startsExpr=!!$.startsExpr,this.rightAssociative=!!$.rightAssociative,this.isLoop=!!$.isLoop,this.isAssign=!!$.isAssign,this.prefix=!!$.prefix,this.postfix=!!$.postfix,this.binop=$.binop!=null?$.binop:null,this.updateContext=null}}var BN=new Map;function SD(D,$={}){$.keyword=D;let J=WD(D,$);return BN.set(D,J),J}function U$(D,$){return WD(D,{beforeExpr:RD,binop:$})}var W3=-1,n6=[],ON=[],NN=[],VN=[],wN=[],jN=[];function WD(D,$={}){var J,X,Y,Q;return++W3,ON.push(D),NN.push((J=$.binop)!=null?J:-1),VN.push((X=$.beforeExpr)!=null?X:!1),wN.push((Y=$.startsExpr)!=null?Y:!1),jN.push((Q=$.prefix)!=null?Q:!1),n6.push(new IN(D,$)),W3}function MD(D,$={}){var J,X,Y,Q;return++W3,BN.set(D,W3),ON.push(D),NN.push((J=$.binop)!=null?J:-1),VN.push((X=$.beforeExpr)!=null?X:!1),wN.push((Y=$.startsExpr)!=null?Y:!1),jN.push((Q=$.prefix)!=null?Q:!1),n6.push(new IN("name",$)),W3}var oFD={bracketL:WD("[",{beforeExpr:RD,startsExpr:DD}),bracketHashL:WD("#[",{beforeExpr:RD,startsExpr:DD}),bracketBarL:WD("[|",{beforeExpr:RD,startsExpr:DD}),bracketR:WD("]"),bracketBarR:WD("|]"),braceL:WD("{",{beforeExpr:RD,startsExpr:DD}),braceBarL:WD("{|",{beforeExpr:RD,startsExpr:DD}),braceHashL:WD("#{",{beforeExpr:RD,startsExpr:DD}),braceR:WD("}"),braceBarR:WD("|}"),parenL:WD("(",{beforeExpr:RD,startsExpr:DD}),parenR:WD(")"),comma:WD(",",{beforeExpr:RD}),semi:WD(";",{beforeExpr:RD}),colon:WD(":",{beforeExpr:RD}),doubleColon:WD("::",{beforeExpr:RD}),dot:WD("."),question:WD("?",{beforeExpr:RD}),questionDot:WD("?."),arrow:WD("=>",{beforeExpr:RD}),template:WD("template"),ellipsis:WD("...",{beforeExpr:RD}),backQuote:WD("`",{startsExpr:DD}),dollarBraceL:WD("${",{beforeExpr:RD,startsExpr:DD}),templateTail:WD("...`",{startsExpr:DD}),templateNonTail:WD("...${",{beforeExpr:RD,startsExpr:DD}),at:WD("@"),hash:WD("#",{startsExpr:DD}),interpreterDirective:WD("#!..."),eq:WD("=",{beforeExpr:RD,isAssign:Y3}),assign:WD("_=",{beforeExpr:RD,isAssign:Y3}),slashAssign:WD("_=",{beforeExpr:RD,isAssign:Y3}),xorAssign:WD("_=",{beforeExpr:RD,isAssign:Y3}),moduloAssign:WD("_=",{beforeExpr:RD,isAssign:Y3}),incDec:WD("++/--",{prefix:g1,postfix:tFD,startsExpr:DD}),bang:WD("!",{beforeExpr:RD,prefix:g1,startsExpr:DD}),tilde:WD("~",{beforeExpr:RD,prefix:g1,startsExpr:DD}),doubleCaret:WD("^^",{startsExpr:DD}),doubleAt:WD("@@",{startsExpr:DD}),pipeline:U$("|>",0),nullishCoalescing:U$("??",1),logicalOR:U$("||",1),logicalAND:U$("&&",2),bitwiseOR:U$("|",3),bitwiseXOR:U$("^",4),bitwiseAND:U$("&",5),equality:U$("==/!=/===/!==",6),lt:U$("</>/<=/>=",7),gt:U$("</>/<=/>=",7),relational:U$("</>/<=/>=",7),bitShift:U$("<</>>/>>>",8),bitShiftL:U$("<</>>/>>>",8),bitShiftR:U$("<</>>/>>>",8),plusMin:WD("+/-",{beforeExpr:RD,binop:9,prefix:g1,startsExpr:DD}),modulo:WD("%",{binop:10,startsExpr:DD}),star:WD("*",{binop:10}),slash:U$("/",10),exponent:WD("**",{beforeExpr:RD,binop:11,rightAssociative:!0}),_in:SD("in",{beforeExpr:RD,binop:7}),_instanceof:SD("instanceof",{beforeExpr:RD,binop:7}),_break:SD("break"),_case:SD("case",{beforeExpr:RD}),_catch:SD("catch"),_continue:SD("continue"),_debugger:SD("debugger"),_default:SD("default",{beforeExpr:RD}),_else:SD("else",{beforeExpr:RD}),_finally:SD("finally"),_function:SD("function",{startsExpr:DD}),_if:SD("if"),_return:SD("return",{beforeExpr:RD}),_switch:SD("switch"),_throw:SD("throw",{beforeExpr:RD,prefix:g1,startsExpr:DD}),_try:SD("try"),_var:SD("var"),_const:SD("const"),_with:SD("with"),_new:SD("new",{beforeExpr:RD,startsExpr:DD}),_this:SD("this",{startsExpr:DD}),_super:SD("super",{startsExpr:DD}),_class:SD("class",{startsExpr:DD}),_extends:SD("extends",{beforeExpr:RD}),_export:SD("export"),_import:SD("import",{startsExpr:DD}),_null:SD("null",{startsExpr:DD}),_true:SD("true",{startsExpr:DD}),_false:SD("false",{startsExpr:DD}),_typeof:SD("typeof",{beforeExpr:RD,prefix:g1,startsExpr:DD}),_void:SD("void",{beforeExpr:RD,prefix:g1,startsExpr:DD}),_delete:SD("delete",{beforeExpr:RD,prefix:g1,startsExpr:DD}),_do:SD("do",{isLoop:QN,beforeExpr:RD}),_for:SD("for",{isLoop:QN}),_while:SD("while",{isLoop:QN}),_as:MD("as",{startsExpr:DD}),_assert:MD("assert",{startsExpr:DD}),_async:MD("async",{startsExpr:DD}),_await:MD("await",{startsExpr:DD}),_defer:MD("defer",{startsExpr:DD}),_from:MD("from",{startsExpr:DD}),_get:MD("get",{startsExpr:DD}),_let:MD("let",{startsExpr:DD}),_meta:MD("meta",{startsExpr:DD}),_of:MD("of",{startsExpr:DD}),_sent:MD("sent",{startsExpr:DD}),_set:MD("set",{startsExpr:DD}),_source:MD("source",{startsExpr:DD}),_static:MD("static",{startsExpr:DD}),_using:MD("using",{startsExpr:DD}),_yield:MD("yield",{startsExpr:DD}),_asserts:MD("asserts",{startsExpr:DD}),_checks:MD("checks",{startsExpr:DD}),_exports:MD("exports",{startsExpr:DD}),_global:MD("global",{startsExpr:DD}),_implements:MD("implements",{startsExpr:DD}),_intrinsic:MD("intrinsic",{startsExpr:DD}),_infer:MD("infer",{startsExpr:DD}),_is:MD("is",{startsExpr:DD}),_mixins:MD("mixins",{startsExpr:DD}),_proto:MD("proto",{startsExpr:DD}),_require:MD("require",{startsExpr:DD}),_satisfies:MD("satisfies",{startsExpr:DD}),_keyof:MD("keyof",{startsExpr:DD}),_readonly:MD("readonly",{startsExpr:DD}),_unique:MD("unique",{startsExpr:DD}),_abstract:MD("abstract",{startsExpr:DD}),_declare:MD("declare",{startsExpr:DD}),_enum:MD("enum",{startsExpr:DD}),_module:MD("module",{startsExpr:DD}),_namespace:MD("namespace",{startsExpr:DD}),_interface:MD("interface",{startsExpr:DD}),_type:MD("type",{startsExpr:DD}),_opaque:MD("opaque",{startsExpr:DD}),name:WD("name",{startsExpr:DD}),placeholder:WD("%%",{startsExpr:DD}),string:WD("string",{startsExpr:DD}),num:WD("num",{startsExpr:DD}),bigint:WD("bigint",{startsExpr:DD}),decimal:WD("decimal",{startsExpr:DD}),regexp:WD("regexp",{startsExpr:DD}),privateName:WD("#name",{startsExpr:DD}),eof:WD("eof"),jsxName:WD("jsxName"),jsxText:WD("jsxText",{beforeExpr:RD}),jsxTagStart:WD("jsxTagStart",{startsExpr:DD}),jsxTagEnd:WD("jsxTagEnd")};function gD(D){return D>=93&&D<=133}function aFD(D){return D<=92}function F6(D){return D>=58&&D<=133}function sf(D){return D>=58&&D<=137}function sFD(D){return VN[D]}function U3(D){return wN[D]}function eFD(D){return D>=29&&D<=33}function hf(D){return D>=129&&D<=131}function DWD(D){return D>=90&&D<=92}function LN(D){return D>=58&&D<=92}function $WD(D){return D>=39&&D<=59}function JWD(D){return D===34}function XWD(D){return jN[D]}function YWD(D){return D>=121&&D<=123}function QWD(D){return D>=124&&D<=130}function f1(D){return ON[D]}function JU(D){return NN[D]}function UWD(D){return D===57}function YU(D){return D>=24&&D<=25}function i6(D){return n6[D]}n6[8].updateContext=(D)=>{D.pop()};n6[5].updateContext=n6[7].updateContext=n6[23].updateContext=(D)=>{D.push(uD.brace)};n6[22].updateContext=(D)=>{if(D[D.length-1]===uD.template)D.pop();else D.push(uD.template)};n6[143].updateContext=(D)=>{D.push(uD.j_expr,uD.j_oTag)};var RN="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",ef="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",FWD=new RegExp("["+RN+"]"),WWD=new RegExp("["+RN+ef+"]");RN=ef=null;var Dy=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],KWD=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function GN(D,$){let J=65536;for(let X=0,Y=$.length;X<Y;X+=2){if(J+=$[X],J>D)return!1;if(J+=$[X+1],J>=D)return!0}return!1}function E6(D){if(D<65)return D===36;if(D<=90)return!0;if(D<97)return D===95;if(D<=122)return!0;if(D<=65535)return D>=170&&FWD.test(String.fromCharCode(D));return GN(D,Dy)}function X8(D){if(D<48)return D===36;if(D<58)return!0;if(D<65)return!1;if(D<=90)return!0;if(D<97)return D===95;if(D<=122)return!0;if(D<=65535)return D>=170&&WWD.test(String.fromCharCode(D));return GN(D,Dy)||GN(D,KWD)}var MN={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},qWD=new Set(MN.keyword),GWD=new Set(MN.strict),ZWD=new Set(MN.strictBind);function $y(D,$){return $&&D==="await"||D==="enum"}function Jy(D,$){return $y(D,$)||GWD.has(D)}function Xy(D){return ZWD.has(D)}function Yy(D,$){return Jy(D,$)||Xy(D)}function zWD(D){return qWD.has(D)}function HWD(D,$,J){return D===64&&$===64&&E6(J)}var IWD=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function BWD(D){return IWD.has(D)}class QU{constructor(D){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=D}}class UU{constructor(D,$){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=D,this.inModule=$}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let D=this.currentThisScopeFlags();return(D&64)>0&&(D&2)===0}get inStaticBlock(){for(let D=this.scopeStack.length-1;;D--){let{flags:$}=this.scopeStack[D];if($&128)return!0;if($&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(D){return new QU(D)}enter(D){this.scopeStack.push(this.createScope(D))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(D){return!!(D.flags&130||!this.parser.inModule&&D.flags&1)}declareName(D,$,J){let X=this.currentScope();if($&8||$&16){this.checkRedeclarationInScope(X,D,$,J);let Y=X.names.get(D)||0;if($&16)Y=Y|4;else{if(!X.firstLexicalName)X.firstLexicalName=D;Y=Y|2}if(X.names.set(D,Y),$&8)this.maybeExportDefined(X,D)}else if($&4){for(let Y=this.scopeStack.length-1;Y>=0;--Y)if(X=this.scopeStack[Y],this.checkRedeclarationInScope(X,D,$,J),X.names.set(D,(X.names.get(D)||0)|1),this.maybeExportDefined(X,D),X.flags&1667)break}if(this.parser.inModule&&X.flags&1)this.undefinedExports.delete(D)}maybeExportDefined(D,$){if(this.parser.inModule&&D.flags&1)this.undefinedExports.delete($)}checkRedeclarationInScope(D,$,J,X){if(this.isRedeclaredInScope(D,$,J))this.parser.raise(M.VarRedeclaration,X,{identifierName:$})}isRedeclaredInScope(D,$,J){if(!(J&1))return!1;if(J&8)return D.names.has($);let X=D.names.get($)||0;if(J&16)return(X&2)>0||!this.treatFunctionsAsVarInScope(D)&&(X&1)>0;return(X&2)>0&&!(D.flags&8&&D.firstLexicalName===$)||!this.treatFunctionsAsVarInScope(D)&&(X&4)>0}checkLocalExport(D){let{name:$}=D;if(!this.scopeStack[0].names.has($))this.undefinedExports.set($,D.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let D=this.scopeStack.length-1;;D--){let{flags:$}=this.scopeStack[D];if($&1667)return $}}currentThisScopeFlags(){for(let D=this.scopeStack.length-1;;D--){let{flags:$}=this.scopeStack[D];if($&1731&&!($&4))return $}}}class Qy extends QU{constructor(...D){super(...D);this.declareFunctions=new Set}}class Uy extends UU{createScope(D){return new Qy(D)}declareName(D,$,J){let X=this.currentScope();if($&2048){this.checkRedeclarationInScope(X,D,$,J),this.maybeExportDefined(X,D),X.declareFunctions.add(D);return}super.declareName(D,$,J)}isRedeclaredInScope(D,$,J){if(super.isRedeclaredInScope(D,$,J))return!0;if(J&2048&&!D.declareFunctions.has($)){let X=D.names.get($);return(X&4)>0||(X&2)>0}return!1}checkLocalExport(D){if(!this.scopeStack[0].declareFunctions.has(D.name))super.checkLocalExport(D)}}var OWD=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),qD=v6`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:D})=>`Cannot overwrite reserved type ${D}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:D,enumName:$})=>`Boolean enum members need to be initialized. Use either \`${D} = true,\` or \`${D} = false,\` in enum \`${$}\`.`,EnumDuplicateMemberName:({memberName:D,enumName:$})=>`Enum member names need to be unique, but the name \`${D}\` has already been used before in enum \`${$}\`.`,EnumInconsistentMemberValues:({enumName:D})=>`Enum \`${D}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:D,enumName:$})=>`Enum type \`${D}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${$}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:D})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${D}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:D,memberName:$,explicitType:J})=>`Enum \`${D}\` has type \`${J}\`, so the initializer of \`${$}\` needs to be a ${J} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:D,memberName:$})=>`Symbol enum members cannot be initialized. Use \`${$},\` in enum \`${D}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:D,memberName:$})=>`The enum member initializer for \`${$}\` needs to be a literal (either a boolean, number, or string) in enum \`${D}\`.`,EnumInvalidMemberName:({enumName:D,memberName:$,suggestion:J})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${$}\`, consider using \`${J}\`, in enum \`${D}\`.`,EnumNumberMemberNotInitialized:({enumName:D,memberName:$})=>`Number enum members need to be initialized, e.g. \`${$} = 1\` in enum \`${D}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:D})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${D}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:D})=>`Unexpected reserved type ${D}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:D,suggestion:$})=>`\`declare export ${D}\` is not supported. Use \`${$}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function NWD(D){return D.type==="DeclareExportAllDeclaration"||D.type==="DeclareExportDeclaration"&&(!D.declaration||D.declaration.type!=="TypeAlias"&&D.declaration.type!=="InterfaceDeclaration")}function mf(D){return D.importKind==="type"||D.importKind==="typeof"}var VWD={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function wWD(D,$){let J=[],X=[];for(let Y=0;Y<D.length;Y++)($(D[Y],Y,D)?J:X).push(D[Y]);return[J,X]}var jWD=/\*?\s*@((?:no)?flow)\b/,LWD=(D)=>class extends D{constructor(...J){super(...J);this.flowPragma=void 0}getScopeHandler(){return Uy}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(J,X){if(J!==134&&J!==13&&J!==28){if(this.flowPragma===void 0)this.flowPragma=null}super.finishToken(J,X)}addComment(J){if(this.flowPragma===void 0){let X=jWD.exec(J.value);if(!X);else if(X[1]==="flow")this.flowPragma="flow";else if(X[1]==="noflow")this.flowPragma="noflow";else throw Error("Unexpected flow pragma")}super.addComment(J)}flowParseTypeInitialiser(J){let X=this.state.inType;this.state.inType=!0,this.expect(J||14);let Y=this.flowParseType();return this.state.inType=X,Y}flowParsePredicate(){let J=this.startNode(),X=this.state.startLoc;if(this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>X.index+1)this.raise(qD.UnexpectedSpaceBetweenModuloChecks,X);if(this.eat(10))return J.value=super.parseExpression(),this.expect(11),this.finishNode(J,"DeclaredPredicate");else return this.finishNode(J,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let J=this.state.inType;this.state.inType=!0,this.expect(14);let X=null,Y=null;if(this.match(54))this.state.inType=J,Y=this.flowParsePredicate();else if(X=this.flowParseType(),this.state.inType=J,this.match(54))Y=this.flowParsePredicate();return[X,Y]}flowParseDeclareClass(J){return this.next(),this.flowParseInterfaceish(J,!0),this.finishNode(J,"DeclareClass")}flowParseDeclareFunction(J){this.next();let X=J.id=this.parseIdentifier(),Y=this.startNode(),Q=this.startNode();if(this.match(47))Y.typeParameters=this.flowParseTypeParameterDeclaration();else Y.typeParameters=null;this.expect(10);let U=this.flowParseFunctionTypeParams();return Y.params=U.params,Y.rest=U.rest,Y.this=U._this,this.expect(11),[Y.returnType,J.predicate]=this.flowParseTypeAndPredicateInitialiser(),Q.typeAnnotation=this.finishNode(Y,"FunctionTypeAnnotation"),X.typeAnnotation=this.finishNode(Q,"TypeAnnotation"),this.resetEndLocation(X),this.semicolon(),this.scope.declareName(J.id.name,2048,J.id.loc.start),this.finishNode(J,"DeclareFunction")}flowParseDeclare(J,X){if(this.match(80))return this.flowParseDeclareClass(J);else if(this.match(68))return this.flowParseDeclareFunction(J);else if(this.match(74))return this.flowParseDeclareVariable(J);else if(this.eatContextual(127))if(this.match(16))return this.flowParseDeclareModuleExports(J);else{if(X)this.raise(qD.NestedDeclareModule,this.state.lastTokStartLoc);return this.flowParseDeclareModule(J)}else if(this.isContextual(130))return this.flowParseDeclareTypeAlias(J);else if(this.isContextual(131))return this.flowParseDeclareOpaqueType(J);else if(this.isContextual(129))return this.flowParseDeclareInterface(J);else if(this.match(82))return this.flowParseDeclareExportDeclaration(J,X);throw this.unexpected()}flowParseDeclareVariable(J){return this.next(),J.id=this.flowParseTypeAnnotatableIdentifier(),this.scope.declareName(J.id.name,5,J.id.loc.start),this.semicolon(),this.finishNode(J,"DeclareVariable")}flowParseDeclareModule(J){if(this.scope.enter(0),this.match(134))J.id=super.parseExprAtom();else J.id=this.parseIdentifier();let X=J.body=this.startNode(),Y=X.body=[];this.expect(5);while(!this.match(8)){let F=this.startNode();if(this.match(83)){if(this.next(),!this.isContextual(130)&&!this.match(87))this.raise(qD.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc);Y.push(super.parseImport(F))}else this.expectContextual(125,qD.UnsupportedStatementInDeclareModule),Y.push(this.flowParseDeclare(F,!0))}this.scope.exit(),this.expect(8),this.finishNode(X,"BlockStatement");let Q=null,U=!1;return Y.forEach((F)=>{if(NWD(F)){if(Q==="CommonJS")this.raise(qD.AmbiguousDeclareModuleKind,F);Q="ES"}else if(F.type==="DeclareModuleExports"){if(U)this.raise(qD.DuplicateDeclareModuleExports,F);if(Q==="ES")this.raise(qD.AmbiguousDeclareModuleKind,F);Q="CommonJS",U=!0}}),J.kind=Q||"CommonJS",this.finishNode(J,"DeclareModule")}flowParseDeclareExportDeclaration(J,X){if(this.expect(82),this.eat(65)){if(this.match(68)||this.match(80))J.declaration=this.flowParseDeclare(this.startNode());else J.declaration=this.flowParseType(),this.semicolon();return J.default=!0,this.finishNode(J,"DeclareExportDeclaration")}else{if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!X){let Y=this.state.value;throw this.raise(qD.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:Y,suggestion:VWD[Y]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return J.declaration=this.flowParseDeclare(this.startNode()),J.default=!1,this.finishNode(J,"DeclareExportDeclaration");else if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))if(J=this.parseExport(J,null),J.type==="ExportNamedDeclaration")return J.default=!1,delete J.exportKind,this.castNodeTo(J,"DeclareExportDeclaration");else return this.castNodeTo(J,"DeclareExportAllDeclaration")}throw this.unexpected()}flowParseDeclareModuleExports(J){return this.next(),this.expectContextual(111),J.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(J,"DeclareModuleExports")}flowParseDeclareTypeAlias(J){this.next();let X=this.flowParseTypeAlias(J);return this.castNodeTo(X,"DeclareTypeAlias"),X}flowParseDeclareOpaqueType(J){this.next();let X=this.flowParseOpaqueType(J,!0);return this.castNodeTo(X,"DeclareOpaqueType"),X}flowParseDeclareInterface(J){return this.next(),this.flowParseInterfaceish(J,!1),this.finishNode(J,"DeclareInterface")}flowParseInterfaceish(J,X){if(J.id=this.flowParseRestrictedIdentifier(!X,!0),this.scope.declareName(J.id.name,X?17:8201,J.id.loc.start),this.match(47))J.typeParameters=this.flowParseTypeParameterDeclaration();else J.typeParameters=null;if(J.extends=[],this.eat(81))do J.extends.push(this.flowParseInterfaceExtends());while(!X&&this.eat(12));if(X){if(J.implements=[],J.mixins=[],this.eatContextual(117))do J.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do J.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}J.body=this.flowParseObjectType({allowStatic:X,allowExact:!1,allowSpread:!1,allowProto:X,allowInexact:!1})}flowParseInterfaceExtends(){let J=this.startNode();if(J.id=this.flowParseQualifiedTypeIdentifier(),this.match(47))J.typeParameters=this.flowParseTypeParameterInstantiation();else J.typeParameters=null;return this.finishNode(J,"InterfaceExtends")}flowParseInterface(J){return this.flowParseInterfaceish(J,!1),this.finishNode(J,"InterfaceDeclaration")}checkNotUnderscore(J){if(J==="_")this.raise(qD.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(J,X,Y){if(!OWD.has(J))return;this.raise(Y?qD.AssignReservedType:qD.UnexpectedReservedType,X,{reservedType:J})}flowParseRestrictedIdentifierName(J,X){return this.checkReservedType(this.state.value,this.state.startLoc,X),this.parseIdentifierName(J)}flowParseRestrictedIdentifier(J,X){let Y=this.startNode(),Q=this.flowParseRestrictedIdentifierName(J,X);return this.createIdentifier(Y,Q)}flowParseTypeAlias(J){if(J.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(J.id.name,8201,J.id.loc.start),this.match(47))J.typeParameters=this.flowParseTypeParameterDeclaration();else J.typeParameters=null;return J.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(J,"TypeAlias")}flowParseOpaqueType(J,X){if(this.expectContextual(130),J.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(J.id.name,8201,J.id.loc.start),this.match(47))J.typeParameters=this.flowParseTypeParameterDeclaration();else J.typeParameters=null;if(J.supertype=null,this.match(14))J.supertype=this.flowParseTypeInitialiser(14);if(J.impltype=null,!X)J.impltype=this.flowParseTypeInitialiser(29);return this.semicolon(),this.finishNode(J,"OpaqueType")}flowParseTypeParameterBound(){if(this.match(14)||this.isContextual(81)){let J=this.startNode();return this.next(),J.typeAnnotation=this.flowParseType(),this.finishNode(J,"TypeAnnotation")}}flowParseTypeParameter(J=!1){let X=this.state.startLoc,Y=this.startNode(),Q=this.flowParseVariance();if(Y.name=this.flowParseRestrictedIdentifierName(),Y.variance=Q,Y.bound=this.flowParseTypeParameterBound(),this.match(29))this.eat(29),Y.default=this.flowParseType();else if(J)this.raise(qD.MissingTypeParamDefault,X);return this.finishNode(Y,"TypeParameter")}flowParseTypeParameterDeclaration(){let J=this.state.inType,X=this.startNode();if(X.params=[],this.state.inType=!0,this.match(47)||this.match(143))this.next();else this.unexpected();let Y=!1;do{let Q=this.flowParseTypeParameter(Y);if(X.params.push(Q),Q.default)Y=!0;if(!this.match(48))this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=J,this.finishNode(X,"TypeParameterDeclaration")}flowInTopLevelContext(J){if(this.curContext()!==uD.brace){let X=this.state.context;this.state.context=[X[0]];try{return J()}finally{this.state.context=X}}else return J()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()!==47)return;return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let J=this.startNode(),X=this.state.inType;if(this.state.inType=!0,J.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let Y=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!1;while(!this.match(48))if(J.params.push(this.flowParseType()),!this.match(48))this.expect(12);this.state.noAnonFunctionType=Y}),this.state.inType=X,!this.state.inType&&this.curContext()===uD.brace)this.reScan_lt_gt();return this.expect(48),this.finishNode(J,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let J=this.startNode(),X=this.state.inType;J.params=[],this.state.inType=!0,this.expect(47);while(!this.match(48))if(J.params.push(this.flowParseTypeOrImplicitInstantiation()),!this.match(48))this.expect(12);return this.expect(48),this.state.inType=X,this.finishNode(J,"TypeParameterInstantiation")}flowParseInterfaceType(){let J=this.startNode();if(this.expectContextual(129),J.extends=[],this.eat(81))do J.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return J.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(J,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(J,X,Y){if(J.static=X,this.lookahead().type===14)J.id=this.flowParseObjectPropertyKey(),J.key=this.flowParseTypeInitialiser();else J.id=null,J.key=this.flowParseType();return this.expect(3),J.value=this.flowParseTypeInitialiser(),J.variance=Y,this.finishNode(J,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(J,X){if(J.static=X,J.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10))J.method=!0,J.optional=!1,J.value=this.flowParseObjectTypeMethodish(this.startNodeAt(J.loc.start));else{if(J.method=!1,this.eat(17))J.optional=!0;J.value=this.flowParseTypeInitialiser()}return this.finishNode(J,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(J){if(J.params=[],J.rest=null,J.typeParameters=null,J.this=null,this.match(47))J.typeParameters=this.flowParseTypeParameterDeclaration();if(this.expect(10),this.match(78)){if(J.this=this.flowParseFunctionTypeParam(!0),J.this.name=null,!this.match(11))this.expect(12)}while(!this.match(11)&&!this.match(21))if(J.params.push(this.flowParseFunctionTypeParam(!1)),!this.match(11))this.expect(12);if(this.eat(21))J.rest=this.flowParseFunctionTypeParam(!1);return this.expect(11),J.returnType=this.flowParseTypeInitialiser(),this.finishNode(J,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(J,X){let Y=this.startNode();return J.static=X,J.value=this.flowParseObjectTypeMethodish(Y),this.finishNode(J,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:J,allowExact:X,allowSpread:Y,allowProto:Q,allowInexact:U}){let F=this.state.inType;this.state.inType=!0;let W=this.startNode();W.callProperties=[],W.properties=[],W.indexers=[],W.internalSlots=[];let K,q,G=!1;if(X&&this.match(6))this.expect(6),K=9,q=!0;else this.expect(5),K=8,q=!1;W.exact=q;while(!this.match(K)){let H=!1,z=null,I=null,B=this.startNode();if(Q&&this.isContextual(118)){let V=this.lookahead();if(V.type!==14&&V.type!==17)this.next(),z=this.state.startLoc,J=!1}if(J&&this.isContextual(106)){let V=this.lookahead();if(V.type!==14&&V.type!==17)this.next(),H=!0}let N=this.flowParseVariance();if(this.eat(0)){if(z!=null)this.unexpected(z);if(this.eat(0)){if(N)this.unexpected(N.loc.start);W.internalSlots.push(this.flowParseObjectTypeInternalSlot(B,H))}else W.indexers.push(this.flowParseObjectTypeIndexer(B,H,N))}else if(this.match(10)||this.match(47)){if(z!=null)this.unexpected(z);if(N)this.unexpected(N.loc.start);W.callProperties.push(this.flowParseObjectTypeCallProperty(B,H))}else{let V="init";if(this.isContextual(99)||this.isContextual(104)){let j=this.lookahead();if(sf(j.type))V=this.state.value,this.next()}let O=this.flowParseObjectTypeProperty(B,H,z,N,V,Y,U!=null?U:!q);if(O===null)G=!0,I=this.state.lastTokStartLoc;else W.properties.push(O)}if(this.flowObjectTypeSemicolon(),I&&!this.match(8)&&!this.match(9))this.raise(qD.UnexpectedExplicitInexactInObject,I)}if(this.expect(K),Y)W.inexact=G;let Z=this.finishNode(W,"ObjectTypeAnnotation");return this.state.inType=F,Z}flowParseObjectTypeProperty(J,X,Y,Q,U,F,W){if(this.eat(21)){if(this.match(12)||this.match(13)||this.match(8)||this.match(9)){if(!F)this.raise(qD.InexactInsideNonObject,this.state.lastTokStartLoc);else if(!W)this.raise(qD.InexactInsideExact,this.state.lastTokStartLoc);if(Q)this.raise(qD.InexactVariance,Q);return null}if(!F)this.raise(qD.UnexpectedSpreadType,this.state.lastTokStartLoc);if(Y!=null)this.unexpected(Y);if(Q)this.raise(qD.SpreadVariance,Q);return J.argument=this.flowParseType(),this.finishNode(J,"ObjectTypeSpreadProperty")}else{J.key=this.flowParseObjectPropertyKey(),J.static=X,J.proto=Y!=null,J.kind=U;let K=!1;if(this.match(47)||this.match(10)){if(J.method=!0,Y!=null)this.unexpected(Y);if(Q)this.unexpected(Q.loc.start);if(J.value=this.flowParseObjectTypeMethodish(this.startNodeAt(J.loc.start)),U==="get"||U==="set")this.flowCheckGetterSetterParams(J);if(!F&&J.key.name==="constructor"&&J.value.this)this.raise(qD.ThisParamBannedInConstructor,J.value.this)}else{if(U!=="init")this.unexpected();if(J.method=!1,this.eat(17))K=!0;J.value=this.flowParseTypeInitialiser(),J.variance=Q}return J.optional=K,this.finishNode(J,"ObjectTypeProperty")}}flowCheckGetterSetterParams(J){let X=J.kind==="get"?0:1,Y=J.value.params.length+(J.value.rest?1:0);if(J.value.this)this.raise(J.kind==="get"?qD.GetterMayNotHaveThisParam:qD.SetterMayNotHaveThisParam,J.value.this);if(Y!==X)this.raise(J.kind==="get"?M.BadGetterArity:M.BadSetterArity,J);if(J.kind==="set"&&J.value.rest)this.raise(M.BadSetterRestParameter,J)}flowObjectTypeSemicolon(){if(!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9))this.unexpected()}flowParseQualifiedTypeIdentifier(J,X){J!=null||(J=this.state.startLoc);let Y=X||this.flowParseRestrictedIdentifier(!0);while(this.eat(16)){let Q=this.startNodeAt(J);Q.qualification=Y,Q.id=this.flowParseRestrictedIdentifier(!0),Y=this.finishNode(Q,"QualifiedTypeIdentifier")}return Y}flowParseGenericType(J,X){let Y=this.startNodeAt(J);if(Y.typeParameters=null,Y.id=this.flowParseQualifiedTypeIdentifier(J,X),this.match(47))Y.typeParameters=this.flowParseTypeParameterInstantiation();return this.finishNode(Y,"GenericTypeAnnotation")}flowParseTypeofType(){let J=this.startNode();return this.expect(87),J.argument=this.flowParsePrimaryType(),this.finishNode(J,"TypeofTypeAnnotation")}flowParseTupleType(){let J=this.startNode();J.types=[],this.expect(0);while(this.state.pos<this.length&&!this.match(3)){if(J.types.push(this.flowParseType()),this.match(3))break;this.expect(12)}return this.expect(3),this.finishNode(J,"TupleTypeAnnotation")}flowParseFunctionTypeParam(J){let X=null,Y=!1,Q=null,U=this.startNode(),F=this.lookahead(),W=this.state.type===78;if(F.type===14||F.type===17){if(W&&!J)this.raise(qD.ThisParamMustBeFirst,U);if(X=this.parseIdentifier(W),this.eat(17)){if(Y=!0,W)this.raise(qD.ThisParamMayNotBeOptional,U)}Q=this.flowParseTypeInitialiser()}else Q=this.flowParseType();return U.name=X,U.optional=Y,U.typeAnnotation=Q,this.finishNode(U,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(J){let X=this.startNodeAt(J.loc.start);return X.name=null,X.optional=!1,X.typeAnnotation=J,this.finishNode(X,"FunctionTypeParam")}flowParseFunctionTypeParams(J=[]){let X=null,Y=null;if(this.match(78)){if(Y=this.flowParseFunctionTypeParam(!0),Y.name=null,!this.match(11))this.expect(12)}while(!this.match(11)&&!this.match(21))if(J.push(this.flowParseFunctionTypeParam(!1)),!this.match(11))this.expect(12);if(this.eat(21))X=this.flowParseFunctionTypeParam(!1);return{params:J,rest:X,_this:Y}}flowIdentToTypeAnnotation(J,X,Y){switch(Y.name){case"any":return this.finishNode(X,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(X,"BooleanTypeAnnotation");case"mixed":return this.finishNode(X,"MixedTypeAnnotation");case"empty":return this.finishNode(X,"EmptyTypeAnnotation");case"number":return this.finishNode(X,"NumberTypeAnnotation");case"string":return this.finishNode(X,"StringTypeAnnotation");case"symbol":return this.finishNode(X,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(Y.name),this.flowParseGenericType(J,Y)}}flowParsePrimaryType(){let J=this.state.startLoc,X=this.startNode(),Y,Q,U=!1,F=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,Q=this.flowParseTupleType(),this.state.noAnonFunctionType=F,Q;case 47:{let W=this.startNode();return W.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),Y=this.flowParseFunctionTypeParams(),W.params=Y.params,W.rest=Y.rest,W.this=Y._this,this.expect(11),this.expect(19),W.returnType=this.flowParseType(),this.finishNode(W,"FunctionTypeAnnotation")}case 10:{let W=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(gD(this.state.type)||this.match(78)){let K=this.lookahead().type;U=K!==17&&K!==14}else U=!0;if(U)if(this.state.noAnonFunctionType=!1,Q=this.flowParseType(),this.state.noAnonFunctionType=F,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),Q;else this.eat(12);if(Q)Y=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(Q)]);else Y=this.flowParseFunctionTypeParams();return W.params=Y.params,W.rest=Y.rest,W.this=Y._this,this.expect(11),this.expect(19),W.returnType=this.flowParseType(),W.typeParameters=null,this.finishNode(W,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return X.value=this.match(85),this.next(),this.finishNode(X,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",X);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",X);throw this.raise(qD.UnexpectedSubtractionOperand,this.state.startLoc)}throw this.unexpected();case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(X,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(X,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(X,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(X,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(LN(this.state.type)){let W=f1(this.state.type);return this.next(),super.createIdentifier(X,W)}else if(gD(this.state.type)){if(this.isContextual(129))return this.flowParseInterfaceType();return this.flowIdentToTypeAnnotation(J,X,this.parseIdentifier())}}throw this.unexpected()}flowParsePostfixType(){let J=this.state.startLoc,X=this.flowParsePrimaryType(),Y=!1;while((this.match(0)||this.match(18))&&!this.canInsertSemicolon()){let Q=this.startNodeAt(J),U=this.eat(18);if(Y=Y||U,this.expect(0),!U&&this.match(3))Q.elementType=X,this.next(),X=this.finishNode(Q,"ArrayTypeAnnotation");else if(Q.objectType=X,Q.indexType=this.flowParseType(),this.expect(3),Y)Q.optional=U,X=this.finishNode(Q,"OptionalIndexedAccessType");else X=this.finishNode(Q,"IndexedAccessType")}return X}flowParsePrefixType(){let J=this.startNode();if(this.eat(17))return J.typeAnnotation=this.flowParsePrefixType(),this.finishNode(J,"NullableTypeAnnotation");else return this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let J=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let X=this.startNodeAt(J.loc.start);return X.params=[this.reinterpretTypeAsFunctionTypeParam(J)],X.rest=null,X.this=null,X.returnType=this.flowParseType(),X.typeParameters=null,this.finishNode(X,"FunctionTypeAnnotation")}return J}flowParseIntersectionType(){let J=this.startNode();this.eat(45);let X=this.flowParseAnonFunctionWithoutParens();J.types=[X];while(this.eat(45))J.types.push(this.flowParseAnonFunctionWithoutParens());return J.types.length===1?X:this.finishNode(J,"IntersectionTypeAnnotation")}flowParseUnionType(){let J=this.startNode();this.eat(43);let X=this.flowParseIntersectionType();J.types=[X];while(this.eat(43))J.types.push(this.flowParseIntersectionType());return J.types.length===1?X:this.finishNode(J,"UnionTypeAnnotation")}flowParseType(){let J=this.state.inType;this.state.inType=!0;let X=this.flowParseUnionType();return this.state.inType=J,X}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let J=this.state.startLoc,X=this.parseIdentifier();return this.flowParseGenericType(J,X)}else return this.flowParseType()}flowParseTypeAnnotation(){let J=this.startNode();return J.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(J,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(){let J=this.startNode(),X=this.parseIdentifierName();if(this.match(14))J.typeAnnotation=this.flowParseTypeAnnotation();return this.createIdentifier(J,X)}typeCastToParameter(J){return J.expression.typeAnnotation=J.typeAnnotation,this.resetEndLocation(J.expression,J.typeAnnotation.loc.end),J.expression}flowParseVariance(){let J=null;if(this.match(53)){if(J=this.startNode(),this.state.value==="+")J.kind="plus";else J.kind="minus";return this.next(),this.finishNode(J,"Variance")}return J}parseFunctionBody(J,X,Y=!1){if(X){this.forwardNoArrowParamsConversionAt(J,()=>super.parseFunctionBody(J,!0,Y));return}super.parseFunctionBody(J,!1,Y)}parseFunctionBodyAndFinish(J,X,Y=!1){if(this.match(14)){let Q=this.startNode();[Q.typeAnnotation,J.predicate]=this.flowParseTypeAndPredicateInitialiser(),J.returnType=Q.typeAnnotation?this.finishNode(Q,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(J,X,Y)}parseStatementLike(J){if(this.state.strict&&this.isContextual(129)){let Y=this.lookahead();if(F6(Y.type)){let Q=this.startNode();return this.next(),this.flowParseInterface(Q)}}else if(this.isContextual(126)){let Y=this.startNode();return this.next(),this.flowParseEnumDeclaration(Y)}let X=super.parseStatementLike(J);if(this.flowPragma===void 0&&!this.isValidDirective(X))this.flowPragma=null;return X}parseExpressionStatement(J,X,Y){if(X.type==="Identifier"){if(X.name==="declare"){if(this.match(80)||gD(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(J)}else if(gD(this.state.type)){if(X.name==="interface")return this.flowParseInterface(J);else if(X.name==="type")return this.flowParseTypeAlias(J);else if(X.name==="opaque")return this.flowParseOpaqueType(J,!1)}}return super.parseExpressionStatement(J,X,Y)}shouldParseExportDeclaration(){let{type:J}=this.state;if(J===126||hf(J))return!this.state.containsEsc;return super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:J}=this.state;if(J===126||hf(J))return this.state.containsEsc;return super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let J=this.startNode();return this.next(),this.flowParseEnumDeclaration(J)}return super.parseExportDefaultExpression()}parseConditional(J,X,Y){if(!this.match(17))return J;if(this.state.maybeInArrowParameters){let Z=this.lookaheadCharCode();if(Z===44||Z===61||Z===58||Z===41)return this.setOptionalParametersError(Y),J}this.expect(17);let Q=this.state.clone(),U=this.state.noArrowAt,F=this.startNodeAt(X),{consequent:W,failed:K}=this.tryParseConditionalConsequent(),[q,G]=this.getArrowLikeExpressions(W);if(K||G.length>0){let Z=[...U];if(G.length>0){this.state=Q,this.state.noArrowAt=Z;for(let H=0;H<G.length;H++)Z.push(G[H].start);({consequent:W,failed:K}=this.tryParseConditionalConsequent()),[q,G]=this.getArrowLikeExpressions(W)}if(K&&q.length>1)this.raise(qD.AmbiguousConditionalArrow,Q.startLoc);if(K&&q.length===1)this.state=Q,Z.push(q[0].start),this.state.noArrowAt=Z,{consequent:W,failed:K}=this.tryParseConditionalConsequent()}return this.getArrowLikeExpressions(W,!0),this.state.noArrowAt=U,this.expect(14),F.test=J,F.consequent=W,F.alternate=this.forwardNoArrowParamsConversionAt(F,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(F,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let J=this.parseMaybeAssignAllowIn(),X=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:J,failed:X}}getArrowLikeExpressions(J,X){let Y=[J],Q=[];while(Y.length!==0){let U=Y.pop();if(U.type==="ArrowFunctionExpression"&&U.body.type!=="BlockStatement"){if(U.typeParameters||!U.returnType)this.finishArrowValidation(U);else Q.push(U);Y.push(U.body)}else if(U.type==="ConditionalExpression")Y.push(U.consequent),Y.push(U.alternate)}if(X)return Q.forEach((U)=>this.finishArrowValidation(U)),[Q,[]];return wWD(Q,(U)=>U.params.every((F)=>this.isAssignable(F,!0)))}finishArrowValidation(J){var X;this.toAssignableList(J.params,(X=J.extra)==null?void 0:X.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(J,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(J,X){let Y;if(this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(J.start)))this.state.noArrowParamsConversionAt.push(this.state.start),Y=X(),this.state.noArrowParamsConversionAt.pop();else Y=X();return Y}parseParenItem(J,X){let Y=super.parseParenItem(J,X);if(this.eat(17))Y.optional=!0,this.resetEndLocation(J);if(this.match(14)){let Q=this.startNodeAt(X);return Q.expression=Y,Q.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(Q,"TypeCastExpression")}return Y}assertModuleNodeAllowed(J){if(J.type==="ImportDeclaration"&&(J.importKind==="type"||J.importKind==="typeof")||J.type==="ExportNamedDeclaration"&&J.exportKind==="type"||J.type==="ExportAllDeclaration"&&J.exportKind==="type")return;super.assertModuleNodeAllowed(J)}parseExportDeclaration(J){if(this.isContextual(130)){J.exportKind="type";let X=this.startNode();if(this.next(),this.match(5))return J.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(J),null;else return this.flowParseTypeAlias(X)}else if(this.isContextual(131)){J.exportKind="type";let X=this.startNode();return this.next(),this.flowParseOpaqueType(X,!1)}else if(this.isContextual(129)){J.exportKind="type";let X=this.startNode();return this.next(),this.flowParseInterface(X)}else if(this.isContextual(126)){J.exportKind="value";let X=this.startNode();return this.next(),this.flowParseEnumDeclaration(X)}else return super.parseExportDeclaration(J)}eatExportStar(J){if(super.eatExportStar(J))return!0;if(this.isContextual(130)&&this.lookahead().type===55)return J.exportKind="type",this.next(),this.next(),!0;return!1}maybeParseExportNamespaceSpecifier(J){let{startLoc:X}=this.state,Y=super.maybeParseExportNamespaceSpecifier(J);if(Y&&J.exportKind==="type")this.unexpected(X);return Y}parseClassId(J,X,Y){if(super.parseClassId(J,X,Y),this.match(47))J.typeParameters=this.flowParseTypeParameterDeclaration()}parseClassMember(J,X,Y){let{startLoc:Q}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(J,X))return;X.declare=!0}if(super.parseClassMember(J,X,Y),X.declare){if(X.type!=="ClassProperty"&&X.type!=="ClassPrivateProperty"&&X.type!=="PropertyDefinition")this.raise(qD.DeclareClassElement,Q);else if(X.value)this.raise(qD.DeclareClassFieldInitializer,X.value)}}isIterator(J){return J==="iterator"||J==="asyncIterator"}readIterator(){let J=super.readWord1(),X="@@"+J;if(!this.isIterator(J)||!this.state.inType)this.raise(M.InvalidIdentifier,this.state.curPosition(),{identifierName:X});this.finishToken(132,X)}getTokenFromCode(J){let X=this.input.charCodeAt(this.state.pos+1);if(J===123&&X===124)this.finishOp(6,2);else if(this.state.inType&&(J===62||J===60))this.finishOp(J===62?48:47,1);else if(this.state.inType&&J===63)if(X===46)this.finishOp(18,2);else this.finishOp(17,1);else if(HWD(J,X,this.input.charCodeAt(this.state.pos+2)))this.state.pos+=2,this.readIterator();else super.getTokenFromCode(J)}isAssignable(J,X){if(J.type==="TypeCastExpression")return this.isAssignable(J.expression,X);else return super.isAssignable(J,X)}toAssignable(J,X=!1){if(!X&&J.type==="AssignmentExpression"&&J.left.type==="TypeCastExpression")J.left=this.typeCastToParameter(J.left);super.toAssignable(J,X)}toAssignableList(J,X,Y){for(let Q=0;Q<J.length;Q++){let U=J[Q];if((U==null?void 0:U.type)==="TypeCastExpression")J[Q]=this.typeCastToParameter(U)}super.toAssignableList(J,X,Y)}toReferencedList(J,X){for(let Q=0;Q<J.length;Q++){var Y;let U=J[Q];if(U&&U.type==="TypeCastExpression"&&!((Y=U.extra)!=null&&Y.parenthesized)&&(J.length>1||!X))this.raise(qD.TypeCastInPattern,U.typeAnnotation)}return J}parseArrayLike(J,X,Y){let Q=super.parseArrayLike(J,X,Y);if(Y!=null&&!this.state.maybeInArrowParameters)this.toReferencedList(Q.elements);return Q}isValidLVal(J,X,Y,Q){return J==="TypeCastExpression"||super.isValidLVal(J,X,Y,Q)}parseClassProperty(J){if(this.match(14))J.typeAnnotation=this.flowParseTypeAnnotation();return super.parseClassProperty(J)}parseClassPrivateProperty(J){if(this.match(14))J.typeAnnotation=this.flowParseTypeAnnotation();return super.parseClassPrivateProperty(J)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(J){return!this.match(14)&&super.isNonstaticConstructor(J)}pushClassMethod(J,X,Y,Q,U,F){if(X.variance)this.unexpected(X.variance.loc.start);if(delete X.variance,this.match(47))X.typeParameters=this.flowParseTypeParameterDeclaration();if(super.pushClassMethod(J,X,Y,Q,U,F),X.params&&U){let W=X.params;if(W.length>0&&this.isThisParam(W[0]))this.raise(qD.ThisParamBannedInConstructor,X)}else if(X.type==="MethodDefinition"&&U&&X.value.params){let W=X.value.params;if(W.length>0&&this.isThisParam(W[0]))this.raise(qD.ThisParamBannedInConstructor,X)}}pushClassPrivateMethod(J,X,Y,Q){if(X.variance)this.unexpected(X.variance.loc.start);if(delete X.variance,this.match(47))X.typeParameters=this.flowParseTypeParameterDeclaration();super.pushClassPrivateMethod(J,X,Y,Q)}parseClassSuper(J){if(super.parseClassSuper(J),J.superClass&&(this.match(47)||this.match(51)))J.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression();if(this.isContextual(113)){this.next();let X=J.implements=[];do{let Y=this.startNode();if(Y.id=this.flowParseRestrictedIdentifier(!0),this.match(47))Y.typeParameters=this.flowParseTypeParameterInstantiation();else Y.typeParameters=null;X.push(this.finishNode(Y,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(J){super.checkGetterSetterParams(J);let X=this.getObjectOrClassMethodParams(J);if(X.length>0){let Y=X[0];if(this.isThisParam(Y)&&J.kind==="get")this.raise(qD.GetterMayNotHaveThisParam,Y);else if(this.isThisParam(Y))this.raise(qD.SetterMayNotHaveThisParam,Y)}}parsePropertyNamePrefixOperator(J){J.variance=this.flowParseVariance()}parseObjPropValue(J,X,Y,Q,U,F,W){if(J.variance)this.unexpected(J.variance.loc.start);delete J.variance;let K;if(this.match(47)&&!F){if(K=this.flowParseTypeParameterDeclaration(),!this.match(10))this.unexpected()}let q=super.parseObjPropValue(J,X,Y,Q,U,F,W);if(K)(q.value||q).typeParameters=K;return q}parseFunctionParamType(J){if(this.eat(17)){if(J.type!=="Identifier")this.raise(qD.PatternIsOptional,J);if(this.isThisParam(J))this.raise(qD.ThisParamMayNotBeOptional,J);J.optional=!0}if(this.match(14))J.typeAnnotation=this.flowParseTypeAnnotation();else if(this.isThisParam(J))this.raise(qD.ThisParamAnnotationRequired,J);if(this.match(29)&&this.isThisParam(J))this.raise(qD.ThisParamNoDefault,J);return this.resetEndLocation(J),J}parseMaybeDefault(J,X){let Y=super.parseMaybeDefault(J,X);if(Y.type==="AssignmentPattern"&&Y.typeAnnotation&&Y.right.start<Y.typeAnnotation.start)this.raise(qD.TypeBeforeInitializer,Y.typeAnnotation);return Y}checkImportReflection(J){if(super.checkImportReflection(J),J.module&&J.importKind!=="value")this.raise(qD.ImportReflectionHasImportType,J.specifiers[0].loc.start)}parseImportSpecifierLocal(J,X,Y){X.local=mf(J)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),J.specifiers.push(this.finishImportSpecifier(X,Y))}isPotentialImportPhase(J){if(super.isPotentialImportPhase(J))return!0;if(this.isContextual(130)){if(!J)return!0;let X=this.lookaheadCharCode();return X===123||X===42}return!J&&this.isContextual(87)}applyImportPhase(J,X,Y,Q){if(super.applyImportPhase(J,X,Y,Q),X){if(!Y&&this.match(65))return;J.exportKind=Y==="type"?Y:"value"}else{if(Y==="type"&&this.match(55))this.unexpected();J.importKind=Y==="type"||Y==="typeof"?Y:"value"}}parseImportSpecifier(J,X,Y,Q,U){let F=J.imported,W=null;if(F.type==="Identifier"){if(F.name==="type")W="type";else if(F.name==="typeof")W="typeof"}let K=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let G=this.parseIdentifier(!0);if(W!==null&&!F6(this.state.type))J.imported=G,J.importKind=W,J.local=this.cloneIdentifier(G);else J.imported=F,J.importKind=null,J.local=this.parseIdentifier()}else{if(W!==null&&F6(this.state.type))J.imported=this.parseIdentifier(!0),J.importKind=W;else{if(X)throw this.raise(M.ImportBindingIsString,J,{importName:F.value});J.imported=F,J.importKind=null}if(this.eatContextual(93))J.local=this.parseIdentifier();else K=!0,J.local=this.cloneIdentifier(J.imported)}let q=mf(J);if(Y&&q)this.raise(qD.ImportTypeShorthandOnlyInPureImport,J);if(Y||q)this.checkReservedType(J.local.name,J.local.loc.start,!0);if(K&&!Y&&!q)this.checkReservedWord(J.local.name,J.loc.start,!0,!0);return this.finishImportSpecifier(J,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(J,X){let Y=J.kind;if(Y!=="get"&&Y!=="set"&&this.match(47))J.typeParameters=this.flowParseTypeParameterDeclaration();super.parseFunctionParams(J,X)}parseVarId(J,X){if(super.parseVarId(J,X),this.match(14))J.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(J.id)}parseAsyncArrowFromCallExpression(J,X){if(this.match(14)){let Y=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,J.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=Y}return super.parseAsyncArrowFromCallExpression(J,X)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(J,X){var Y;let Q=null,U;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(Q=this.state.clone(),U=this.tryParse(()=>super.parseMaybeAssign(J,X),Q),!U.error)return U.node;let{context:K}=this.state,q=K[K.length-1];if(q===uD.j_oTag||q===uD.j_expr)K.pop()}if((Y=U)!=null&&Y.error||this.match(47)){var F,W;Q=Q||this.state.clone();let K,q=this.tryParse((Z)=>{var H;K=this.flowParseTypeParameterDeclaration();let z=this.forwardNoArrowParamsConversionAt(K,()=>{let B=super.parseMaybeAssign(J,X);return this.resetStartLocationFromNode(B,K),B});if((H=z.extra)!=null&&H.parenthesized)Z();let I=this.maybeUnwrapTypeCastExpression(z);if(I.type!=="ArrowFunctionExpression")Z();return I.typeParameters=K,this.resetStartLocationFromNode(I,K),z},Q),G=null;if(q.node&&this.maybeUnwrapTypeCastExpression(q.node).type==="ArrowFunctionExpression"){if(!q.error&&!q.aborted){if(q.node.async)this.raise(qD.UnexpectedTypeParameterBeforeAsyncArrowFunction,K);return q.node}G=q.node}if((F=U)!=null&&F.node)return this.state=U.failState,U.node;if(G)return this.state=q.failState,G;if((W=U)!=null&&W.thrown)throw U.error;if(q.thrown)throw q.error;throw this.raise(qD.UnexpectedTokenAfterTypeParameter,K)}return super.parseMaybeAssign(J,X)}parseArrow(J){if(this.match(14)){let X=this.tryParse(()=>{let Y=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let Q=this.startNode();if([Q.typeAnnotation,J.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=Y,this.canInsertSemicolon())this.unexpected();if(!this.match(19))this.unexpected();return Q});if(X.thrown)return null;if(X.error)this.state=X.failState;J.returnType=X.node.typeAnnotation?this.finishNode(X.node,"TypeAnnotation"):null}return super.parseArrow(J)}shouldParseArrow(J){return this.match(14)||super.shouldParseArrow(J)}setArrowFunctionParameters(J,X){if(this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(J.start)))J.params=X;else super.setArrowFunctionParameters(J,X)}checkParams(J,X,Y,Q=!0){if(Y&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(J.start)))return;for(let U=0;U<J.params.length;U++)if(this.isThisParam(J.params[U])&&U>0)this.raise(qD.ThisParamMustBeFirst,J.params[U]);super.checkParams(J,X,Y,Q)}parseParenAndDistinguishExpression(J){return super.parseParenAndDistinguishExpression(J&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(J,X,Y){if(J.type==="Identifier"&&J.name==="async"&&this.state.noArrowAt.includes(X.index)){this.next();let Q=this.startNodeAt(X);Q.callee=J,Q.arguments=super.parseCallExpressionArguments(),J=this.finishNode(Q,"CallExpression")}else if(J.type==="Identifier"&&J.name==="async"&&this.match(47)){let Q=this.state.clone(),U=this.tryParse((W)=>this.parseAsyncArrowWithTypeParameters(X)||W(),Q);if(!U.error&&!U.aborted)return U.node;let F=this.tryParse(()=>super.parseSubscripts(J,X,Y),Q);if(F.node&&!F.error)return F.node;if(U.node)return this.state=U.failState,U.node;if(F.node)return this.state=F.failState,F.node;throw U.error||F.error}return super.parseSubscripts(J,X,Y)}parseSubscript(J,X,Y,Q){if(this.match(18)&&this.isLookaheadToken_lt()){if(Q.optionalChainMember=!0,Y)return Q.stop=!0,J;this.next();let U=this.startNodeAt(X);return U.callee=J,U.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),U.arguments=this.parseCallExpressionArguments(),U.optional=!0,this.finishCallExpression(U,!0)}else if(!Y&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let U=this.startNodeAt(X);U.callee=J;let F=this.tryParse(()=>{if(U.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),U.arguments=super.parseCallExpressionArguments(),Q.optionalChainMember)U.optional=!1;return this.finishCallExpression(U,Q.optionalChainMember)});if(F.node){if(F.error)this.state=F.failState;return F.node}}return super.parseSubscript(J,X,Y,Q)}parseNewCallee(J){super.parseNewCallee(J);let X=null;if(this.shouldParseTypes()&&this.match(47))X=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node;J.typeArguments=X}parseAsyncArrowWithTypeParameters(J){let X=this.startNodeAt(J);if(this.parseFunctionParams(X,!1),!this.parseArrow(X))return;return super.parseArrowExpression(X,void 0,!0)}readToken_mult_modulo(J){let X=this.input.charCodeAt(this.state.pos+1);if(J===42&&X===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(J)}readToken_pipe_amp(J){let X=this.input.charCodeAt(this.state.pos+1);if(J===124&&X===125){this.finishOp(9,2);return}super.readToken_pipe_amp(J)}parseTopLevel(J,X){let Y=super.parseTopLevel(J,X);if(this.state.hasFlowComment)this.raise(qD.UnterminatedFlowComment,this.state.curPosition());return Y}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(qD.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let J=this.skipFlowComment();if(J)this.state.pos+=J,this.state.hasFlowComment=!0;return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:J}=this.state,X=2;while([32,9].includes(this.input.charCodeAt(J+X)))X++;let Y=this.input.charCodeAt(X+J),Q=this.input.charCodeAt(X+J+1);if(Y===58&&Q===58)return X+2;if(this.input.slice(X+J,X+J+12)==="flow-include")return X+12;if(Y===58&&Q!==58)return X;return!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(M.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(J,{enumName:X,memberName:Y}){this.raise(qD.EnumBooleanMemberNotInitialized,J,{memberName:Y,enumName:X})}flowEnumErrorInvalidMemberInitializer(J,X){return this.raise(!X.explicitType?qD.EnumInvalidMemberInitializerUnknownType:X.explicitType==="symbol"?qD.EnumInvalidMemberInitializerSymbolType:qD.EnumInvalidMemberInitializerPrimaryType,J,X)}flowEnumErrorNumberMemberNotInitialized(J,X){this.raise(qD.EnumNumberMemberNotInitialized,J,X)}flowEnumErrorStringMemberInconsistentlyInitialized(J,X){this.raise(qD.EnumStringMemberInconsistentlyInitialized,J,X)}flowEnumMemberInit(){let J=this.state.startLoc,X=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let Y=this.parseNumericLiteral(this.state.value);if(X())return{type:"number",loc:Y.loc.start,value:Y};return{type:"invalid",loc:J}}case 134:{let Y=this.parseStringLiteral(this.state.value);if(X())return{type:"string",loc:Y.loc.start,value:Y};return{type:"invalid",loc:J}}case 85:case 86:{let Y=this.parseBooleanLiteral(this.match(85));if(X())return{type:"boolean",loc:Y.loc.start,value:Y};return{type:"invalid",loc:J}}default:return{type:"invalid",loc:J}}}flowEnumMemberRaw(){let J=this.state.startLoc,X=this.parseIdentifier(!0),Y=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:J};return{id:X,init:Y}}flowEnumCheckExplicitTypeMismatch(J,X,Y){let{explicitType:Q}=X;if(Q===null)return;if(Q!==Y)this.flowEnumErrorInvalidMemberInitializer(J,X)}flowEnumMembers({enumName:J,explicitType:X}){let Y=new Set,Q={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},U=!1;while(!this.match(8)){if(this.eat(21)){U=!0;break}let F=this.startNode(),{id:W,init:K}=this.flowEnumMemberRaw(),q=W.name;if(q==="")continue;if(/^[a-z]/.test(q))this.raise(qD.EnumInvalidMemberName,W,{memberName:q,suggestion:q[0].toUpperCase()+q.slice(1),enumName:J});if(Y.has(q))this.raise(qD.EnumDuplicateMemberName,W,{memberName:q,enumName:J});Y.add(q);let G={enumName:J,explicitType:X,memberName:q};switch(F.id=W,K.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(K.loc,G,"boolean"),F.init=K.value,Q.booleanMembers.push(this.finishNode(F,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(K.loc,G,"number"),F.init=K.value,Q.numberMembers.push(this.finishNode(F,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(K.loc,G,"string"),F.init=K.value,Q.stringMembers.push(this.finishNode(F,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(K.loc,G);case"none":switch(X){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(K.loc,G);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(K.loc,G);break;default:Q.defaultedMembers.push(this.finishNode(F,"EnumDefaultedMember"))}}if(!this.match(8))this.expect(12)}return{members:Q,hasUnknownMembers:U}}flowEnumStringMembers(J,X,{enumName:Y}){if(J.length===0)return X;else if(X.length===0)return J;else if(X.length>J.length){for(let Q of J)this.flowEnumErrorStringMemberInconsistentlyInitialized(Q,{enumName:Y});return X}else{for(let Q of X)this.flowEnumErrorStringMemberInconsistentlyInitialized(Q,{enumName:Y});return J}}flowEnumParseExplicitType({enumName:J}){if(!this.eatContextual(102))return null;if(!gD(this.state.type))throw this.raise(qD.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:J});let{value:X}=this.state;if(this.next(),X!=="boolean"&&X!=="number"&&X!=="string"&&X!=="symbol")this.raise(qD.EnumInvalidExplicitType,this.state.startLoc,{enumName:J,invalidEnumType:X});return X}flowEnumBody(J,X){let Y=X.name,Q=X.loc.start,U=this.flowEnumParseExplicitType({enumName:Y});this.expect(5);let{members:F,hasUnknownMembers:W}=this.flowEnumMembers({enumName:Y,explicitType:U});switch(J.hasUnknownMembers=W,U){case"boolean":return J.explicitType=!0,J.members=F.booleanMembers,this.expect(8),this.finishNode(J,"EnumBooleanBody");case"number":return J.explicitType=!0,J.members=F.numberMembers,this.expect(8),this.finishNode(J,"EnumNumberBody");case"string":return J.explicitType=!0,J.members=this.flowEnumStringMembers(F.stringMembers,F.defaultedMembers,{enumName:Y}),this.expect(8),this.finishNode(J,"EnumStringBody");case"symbol":return J.members=F.defaultedMembers,this.expect(8),this.finishNode(J,"EnumSymbolBody");default:{let K=()=>{return J.members=[],this.expect(8),this.finishNode(J,"EnumStringBody")};J.explicitType=!1;let q=F.booleanMembers.length,G=F.numberMembers.length,Z=F.stringMembers.length,H=F.defaultedMembers.length;if(!q&&!G&&!Z&&!H)return K();else if(!q&&!G)return J.members=this.flowEnumStringMembers(F.stringMembers,F.defaultedMembers,{enumName:Y}),this.expect(8),this.finishNode(J,"EnumStringBody");else if(!G&&!Z&&q>=H){for(let z of F.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(z.loc.start,{enumName:Y,memberName:z.id.name});return J.members=F.booleanMembers,this.expect(8),this.finishNode(J,"EnumBooleanBody")}else if(!q&&!Z&&G>=H){for(let z of F.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(z.loc.start,{enumName:Y,memberName:z.id.name});return J.members=F.numberMembers,this.expect(8),this.finishNode(J,"EnumNumberBody")}else return this.raise(qD.EnumInconsistentMemberValues,Q,{enumName:Y}),K()}}}flowParseEnumDeclaration(J){let X=this.parseIdentifier();return J.id=X,J.body=this.flowEnumBody(this.startNode(),X),this.finishNode(J,"EnumDeclaration")}jsxParseOpeningElementAfterName(J){if(this.shouldParseTypes()){if(this.match(47)||this.match(51))J.typeArguments=this.flowParseTypeParameterInstantiationInExpression()}return super.jsxParseOpeningElementAfterName(J)}isLookaheadToken_lt(){let J=this.nextTokenStart();if(this.input.charCodeAt(J)===60){let X=this.input.charCodeAt(J+1);return X!==60&&X!==61}return!1}reScan_lt_gt(){let{type:J}=this.state;if(J===47)this.state.pos-=1,this.readToken_lt();else if(J===48)this.state.pos-=1,this.readToken_gt()}reScan_lt(){let{type:J}=this.state;if(J===51)return this.state.pos-=2,this.finishOp(47,1),47;return J}maybeUnwrapTypeCastExpression(J){return J.type==="TypeCastExpression"?J.expression:J}},RWD={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},MWD=/\r\n|[\r\n\u2028\u2029]/,eQ=new RegExp(MWD.source,"g");function z9(D){switch(D){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function lf(D,$,J){for(let X=$;X<J;X++)if(z9(D.charCodeAt(X)))return!0;return!1}var UN=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,FN=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function AWD(D){switch(D){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var J8=v6`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:D})=>`Expected corresponding JSX closing tag for <${D}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:D,HTMLEntity:$})=>`Unexpected token \`${D}\`. Did you mean \`${$}\` or \`{'${D}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function x1(D){return D?D.type==="JSXOpeningFragment"||D.type==="JSXClosingFragment":!1}function Z9(D){if(D.type==="JSXIdentifier")return D.name;if(D.type==="JSXNamespacedName")return D.namespace.name+":"+D.name.name;if(D.type==="JSXMemberExpression")return Z9(D.object)+"."+Z9(D.property);throw Error("Node had unexpected type: "+D.type)}var vWD=(D)=>class extends D{jsxReadToken(){let J="",X=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(J8.UnterminatedJsxContent,this.state.startLoc);let Y=this.input.charCodeAt(this.state.pos);switch(Y){case 60:case 123:if(this.state.pos===this.state.start){if(Y===60&&this.state.canStartJSXElement)++this.state.pos,this.finishToken(143);else super.getTokenFromCode(Y);return}J+=this.input.slice(X,this.state.pos),this.finishToken(142,J);return;case 38:J+=this.input.slice(X,this.state.pos),J+=this.jsxReadEntity(),X=this.state.pos;break;case 62:case 125:default:if(z9(Y))J+=this.input.slice(X,this.state.pos),J+=this.jsxReadNewLine(!0),X=this.state.pos;else++this.state.pos}}}jsxReadNewLine(J){let X=this.input.charCodeAt(this.state.pos),Y;if(++this.state.pos,X===13&&this.input.charCodeAt(this.state.pos)===10)++this.state.pos,Y=J?`
`:`\r
`;else Y=String.fromCharCode(X);return++this.state.curLine,this.state.lineStart=this.state.pos,Y}jsxReadString(J){let X="",Y=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(M.UnterminatedString,this.state.startLoc);let Q=this.input.charCodeAt(this.state.pos);if(Q===J)break;if(Q===38)X+=this.input.slice(Y,this.state.pos),X+=this.jsxReadEntity(),Y=this.state.pos;else if(z9(Q))X+=this.input.slice(Y,this.state.pos),X+=this.jsxReadNewLine(!1),Y=this.state.pos;else++this.state.pos}X+=this.input.slice(Y,this.state.pos++),this.finishToken(134,X)}jsxReadEntity(){let J=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let X=10;if(this.codePointAtPos(this.state.pos)===120)X=16,++this.state.pos;let Y=this.readInt(X,void 0,!1,"bail");if(Y!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(Y)}else{let X=0,Y=!1;while(X++<10&&this.state.pos<this.length&&!(Y=this.codePointAtPos(this.state.pos)===59))++this.state.pos;if(Y){let Q=this.input.slice(J,this.state.pos),U=RWD[Q];if(++this.state.pos,U)return U}}return this.state.pos=J,"&"}jsxReadWord(){let J,X=this.state.pos;do J=this.input.charCodeAt(++this.state.pos);while(X8(J)||J===45);this.finishToken(141,this.input.slice(X,this.state.pos))}jsxParseIdentifier(){let J=this.startNode();if(this.match(141))J.name=this.state.value;else if(LN(this.state.type))J.name=f1(this.state.type);else this.unexpected();return this.next(),this.finishNode(J,"JSXIdentifier")}jsxParseNamespacedName(){let J=this.state.startLoc,X=this.jsxParseIdentifier();if(!this.eat(14))return X;let Y=this.startNodeAt(J);return Y.namespace=X,Y.name=this.jsxParseIdentifier(),this.finishNode(Y,"JSXNamespacedName")}jsxParseElementName(){let J=this.state.startLoc,X=this.jsxParseNamespacedName();if(X.type==="JSXNamespacedName")return X;while(this.eat(16)){let Y=this.startNodeAt(J);Y.object=X,Y.property=this.jsxParseIdentifier(),X=this.finishNode(Y,"JSXMemberExpression")}return X}jsxParseAttributeValue(){let J;switch(this.state.type){case 5:if(J=this.startNode(),this.setContext(uD.brace),this.next(),J=this.jsxParseExpressionContainer(J,uD.j_oTag),J.expression.type==="JSXEmptyExpression")this.raise(J8.AttributeIsEmpty,J);return J;case 143:case 134:return this.parseExprAtom();default:throw this.raise(J8.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let J=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(J,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(J){return this.next(),J.expression=this.parseExpression(),this.setContext(uD.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(J,"JSXSpreadChild")}jsxParseExpressionContainer(J,X){if(this.match(8))J.expression=this.jsxParseEmptyExpression();else{let Y=this.parseExpression();J.expression=Y}return this.setContext(X),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(J,"JSXExpressionContainer")}jsxParseAttribute(){let J=this.startNode();if(this.match(5))return this.setContext(uD.brace),this.next(),this.expect(21),J.argument=this.parseMaybeAssignAllowIn(),this.setContext(uD.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(J,"JSXSpreadAttribute");return J.name=this.jsxParseNamespacedName(),J.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(J,"JSXAttribute")}jsxParseOpeningElementAt(J){let X=this.startNodeAt(J);if(this.eat(144))return this.finishNode(X,"JSXOpeningFragment");return X.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(X)}jsxParseOpeningElementAfterName(J){let X=[];while(!this.match(56)&&!this.match(144))X.push(this.jsxParseAttribute());return J.attributes=X,J.selfClosing=this.eat(56),this.expect(144),this.finishNode(J,"JSXOpeningElement")}jsxParseClosingElementAt(J){let X=this.startNodeAt(J);if(this.eat(144))return this.finishNode(X,"JSXClosingFragment");return X.name=this.jsxParseElementName(),this.expect(144),this.finishNode(X,"JSXClosingElement")}jsxParseElementAt(J){let X=this.startNodeAt(J),Y=[],Q=this.jsxParseOpeningElementAt(J),U=null;if(!Q.selfClosing){D:for(;;)switch(this.state.type){case 143:if(J=this.state.startLoc,this.next(),this.eat(56)){U=this.jsxParseClosingElementAt(J);break D}Y.push(this.jsxParseElementAt(J));break;case 142:Y.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let F=this.startNode();if(this.setContext(uD.brace),this.next(),this.match(21))Y.push(this.jsxParseSpreadChild(F));else Y.push(this.jsxParseExpressionContainer(F,uD.j_expr));break}default:this.unexpected()}if(x1(Q)&&!x1(U)&&U!==null)this.raise(J8.MissingClosingTagFragment,U);else if(!x1(Q)&&x1(U))this.raise(J8.MissingClosingTagElement,U,{openingTagName:Z9(Q.name)});else if(!x1(Q)&&!x1(U)){if(Z9(U.name)!==Z9(Q.name))this.raise(J8.MissingClosingTagElement,U,{openingTagName:Z9(Q.name)})}}if(x1(Q))X.openingFragment=Q,X.closingFragment=U;else X.openingElement=Q,X.closingElement=U;if(X.children=Y,this.match(47))throw this.raise(J8.UnwrappedAdjacentJSXElements,this.state.startLoc);return x1(Q)?this.finishNode(X,"JSXFragment"):this.finishNode(X,"JSXElement")}jsxParseElement(){let J=this.state.startLoc;return this.next(),this.jsxParseElementAt(J)}setContext(J){let{context:X}=this.state;X[X.length-1]=J}parseExprAtom(J){if(this.match(143))return this.jsxParseElement();else if(this.match(47)&&this.input.charCodeAt(this.state.pos)!==33)return this.replaceToken(143),this.jsxParseElement();else return super.parseExprAtom(J)}skipSpace(){if(!this.curContext().preserveSpace)super.skipSpace()}getTokenFromCode(J){let X=this.curContext();if(X===uD.j_expr){this.jsxReadToken();return}if(X===uD.j_oTag||X===uD.j_cTag){if(E6(J)){this.jsxReadWord();return}if(J===62){++this.state.pos,this.finishToken(144);return}if((J===34||J===39)&&X===uD.j_oTag){this.jsxReadString(J);return}}if(J===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(J)}updateContext(J){let{context:X,type:Y}=this.state;if(Y===56&&J===143)X.splice(-2,2,uD.j_cTag),this.state.canStartJSXElement=!1;else if(Y===143)X.push(uD.j_oTag);else if(Y===144){let Q=X[X.length-1];if(Q===uD.j_oTag&&J===56||Q===uD.j_cTag)X.pop(),this.state.canStartJSXElement=X[X.length-1]===uD.j_expr;else this.setContext(uD.j_expr),this.state.canStartJSXElement=!0}else this.state.canStartJSXElement=sFD(Y)}};class Fy extends QU{constructor(...D){super(...D);this.tsNames=new Map}}class Wy extends UU{constructor(...D){super(...D);this.importsStack=[]}createScope(D){return this.importsStack.push(new Set),new Fy(D)}enter(D){if(D===1024)this.importsStack.push(new Set);super.enter(D)}exit(){let D=super.exit();if(D===1024)this.importsStack.pop();return D}hasImport(D,$){let J=this.importsStack.length;if(this.importsStack[J-1].has(D))return!0;if(!$&&J>1){for(let X=0;X<J-1;X++)if(this.importsStack[X].has(D))return!0}return!1}declareName(D,$,J){if($&4096){if(this.hasImport(D,!0))this.parser.raise(M.VarRedeclaration,J,{identifierName:D});this.importsStack[this.importsStack.length-1].add(D);return}let X=this.currentScope(),Y=X.tsNames.get(D)||0;if($&1024){this.maybeExportDefined(X,D),X.tsNames.set(D,Y|16);return}if(super.declareName(D,$,J),$&2){if(!($&1))this.checkRedeclarationInScope(X,D,$,J),this.maybeExportDefined(X,D);Y=Y|1}if($&256)Y=Y|2;if($&512)Y=Y|4;if($&128)Y=Y|8;if(Y)X.tsNames.set(D,Y)}isRedeclaredInScope(D,$,J){let X=D.tsNames.get($);if((X&2)>0){if(J&256){let Y=!!(J&512),Q=(X&4)>0;return Y!==Q}return!0}if(J&128&&(X&8)>0)if(D.names.get($)&2)return!!(J&1);else return!1;if(J&2&&(X&1)>0)return!0;return super.isRedeclaredInScope(D,$,J)}checkLocalExport(D){let{name:$}=D;if(this.hasImport($))return;let J=this.scopeStack.length;for(let X=J-1;X>=0;X--){let Q=this.scopeStack[X].tsNames.get($);if((Q&1)>0||(Q&16)>0)return}super.checkLocalExport(D)}}class Ky{constructor(){this.stacks=[]}enter(D){this.stacks.push(D)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}}function XU(D,$){return(D?2:0)|($?1:0)}class qy{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(D){return D+this.startIndex}offsetToSourcePos(D){return D-this.startIndex}hasPlugin(D){if(typeof D==="string")return this.plugins.has(D);else{let[$,J]=D;if(!this.hasPlugin($))return!1;let X=this.plugins.get($);for(let Y of Object.keys(J))if((X==null?void 0:X[Y])!==J[Y])return!1;return!0}}getPluginOption(D,$){var J;return(J=this.plugins.get(D))==null?void 0:J[$]}}function Gy(D,$){if(D.trailingComments===void 0)D.trailingComments=$;else D.trailingComments.unshift(...$)}function EWD(D,$){if(D.leadingComments===void 0)D.leadingComments=$;else D.leadingComments.unshift(...$)}function G3(D,$){if(D.innerComments===void 0)D.innerComments=$;else D.innerComments.unshift(...$)}function U6(D,$,J){let X=null,Y=$.length;while(X===null&&Y>0)X=$[--Y];if(X===null||X.start>J.start)G3(D,J.comments);else Gy(X,J.comments)}class Zy extends qy{addComment(D){if(this.filename)D.loc.filename=this.filename;let{commentsLen:$}=this.state;if(this.comments.length!==$)this.comments.length=$;this.comments.push(D),this.state.commentsLen++}processComment(D){let{commentStack:$}=this.state,J=$.length;if(J===0)return;let X=J-1,Y=$[X];if(Y.start===D.end)Y.leadingNode=D,X--;let{start:Q}=D;for(;X>=0;X--){let U=$[X],F=U.end;if(F>Q)U.containingNode=D,this.finalizeComment(U),$.splice(X,1);else{if(F===Q)U.trailingNode=D;break}}}finalizeComment(D){var $;let{comments:J}=D;if(D.leadingNode!==null||D.trailingNode!==null){if(D.leadingNode!==null)Gy(D.leadingNode,J);if(D.trailingNode!==null)EWD(D.trailingNode,J)}else{let{containingNode:X,start:Y}=D;if(this.input.charCodeAt(this.offsetToSourcePos(Y)-1)===44)switch(X.type){case"ObjectExpression":case"ObjectPattern":U6(X,X.properties,D);break;case"CallExpression":case"NewExpression":case"OptionalCallExpression":U6(X,X.arguments,D);break;case"ImportExpression":U6(X,[X.source,($=X.options)!=null?$:null],D);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":case"TSTypeParameterDeclaration":U6(X,X.params,D);break;case"ArrayExpression":case"ArrayPattern":U6(X,X.elements,D);break;case"ExportNamedDeclaration":case"ImportDeclaration":U6(X,X.specifiers,D);break;case"TSEnumDeclaration":U6(X,X.members,D);break;case"TSEnumBody":U6(X,X.members,D);break;case"TSInterfaceBody":U6(X,X.body,D);break;default:{if(X.type==="RecordExpression"){U6(X,X.properties,D);break}if(X.type==="TupleExpression"){U6(X,X.elements,D);break}G3(X,J)}}else G3(X,J)}}finalizeRemainingComments(){let{commentStack:D}=this.state;for(let $=D.length-1;$>=0;$--)this.finalizeComment(D[$]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(D){let{commentStack:$}=this.state,{length:J}=$;if(J===0)return;let X=$[J-1];if(X.leadingNode===D)X.leadingNode=null}takeSurroundingComments(D,$,J){let{commentStack:X}=this.state,Y=X.length;if(Y===0)return;let Q=Y-1;for(;Q>=0;Q--){let U=X[Q],F=U.end;if(U.start===J)U.leadingNode=D;else if(F===$)U.trailingNode=D;else if(F<$)break}}}class AN{constructor(){this.flags=1024,this.startIndex=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=140,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[uD.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(D){if(D)this.flags|=1;else this.flags&=-2}init({strictMode:D,sourceType:$,startIndex:J,startLine:X,startColumn:Y}){this.strict=D===!1?!1:D===!0?!0:$==="module",this.startIndex=J,this.curLine=X,this.lineStart=-Y,this.startLoc=this.endLoc=new p6(X,Y,J)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(D){if(D)this.flags|=2;else this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(D){if(D)this.flags|=4;else this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(D){if(D)this.flags|=8;else this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(D){if(D)this.flags|=16;else this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(D){if(D)this.flags|=32;else this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(D){if(D)this.flags|=64;else this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(D){if(D)this.flags|=128;else this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(D){if(D)this.flags|=256;else this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(D){if(D)this.flags|=512;else this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(D){if(D)this.flags|=1024;else this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(D){if(D)this.flags|=2048;else this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(D){if(D)this.flags|=4096;else this.flags&=-4097}curPosition(){return new p6(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let D=new AN;return D.flags=this.flags,D.startIndex=this.startIndex,D.curLine=this.curLine,D.lineStart=this.lineStart,D.startLoc=this.startLoc,D.endLoc=this.endLoc,D.errors=this.errors.slice(),D.potentialArrowAt=this.potentialArrowAt,D.noArrowAt=this.noArrowAt.slice(),D.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),D.topicContext=this.topicContext,D.labels=this.labels.slice(),D.commentsLen=this.commentsLen,D.commentStack=this.commentStack.slice(),D.pos=this.pos,D.type=this.type,D.value=this.value,D.start=this.start,D.end=this.end,D.lastTokEndLoc=this.lastTokEndLoc,D.lastTokStartLoc=this.lastTokStartLoc,D.context=this.context.slice(),D.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,D.strictErrors=this.strictErrors,D.tokensLength=this.tokensLength,D}}var TWD=function($){return $>=48&&$<=57},df={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},DU={bin:(D)=>D===48||D===49,oct:(D)=>D>=48&&D<=55,dec:(D)=>D>=48&&D<=57,hex:(D)=>D>=48&&D<=57||D>=65&&D<=70||D>=97&&D<=102};function cf(D,$,J,X,Y,Q){let U=J,F=X,W=Y,K="",q=null,G=J,{length:Z}=$;for(;;){if(J>=Z){Q.unterminated(U,F,W),K+=$.slice(G,J);break}let H=$.charCodeAt(J);if(PWD(D,H,$,J)){K+=$.slice(G,J);break}if(H===92){K+=$.slice(G,J);let z=bWD($,J,X,Y,D==="template",Q);if(z.ch===null&&!q)q={pos:J,lineStart:X,curLine:Y};else K+=z.ch;({pos:J,lineStart:X,curLine:Y}=z),G=J}else if(H===8232||H===8233)++J,++Y,X=J;else if(H===10||H===13)if(D==="template"){if(K+=$.slice(G,J)+`
`,++J,H===13&&$.charCodeAt(J)===10)++J;++Y,G=X=J}else Q.unterminated(U,F,W);else++J}return{pos:J,str:K,firstInvalidLoc:q,lineStart:X,curLine:Y,containsInvalid:!!q}}function PWD(D,$,J,X){if(D==="template")return $===96||$===36&&J.charCodeAt(X+1)===123;return $===(D==="double"?34:39)}function bWD(D,$,J,X,Y,Q){let U=!Y;$++;let F=(K)=>({pos:$,ch:K,lineStart:J,curLine:X}),W=D.charCodeAt($++);switch(W){case 110:return F(`
`);case 114:return F("\r");case 120:{let K;return{code:K,pos:$}=ZN(D,$,J,X,2,!1,U,Q),F(K===null?null:String.fromCharCode(K))}case 117:{let K;return{code:K,pos:$}=Hy(D,$,J,X,U,Q),F(K===null?null:String.fromCodePoint(K))}case 116:return F("\t");case 98:return F("\b");case 118:return F("\v");case 102:return F("\f");case 13:if(D.charCodeAt($)===10)++$;case 10:J=$,++X;case 8232:case 8233:return F("");case 56:case 57:if(Y)return F(null);else Q.strictNumericEscape($-1,J,X);default:if(W>=48&&W<=55){let K=$-1,G=/^[0-7]+/.exec(D.slice(K,$+2))[0],Z=parseInt(G,8);if(Z>255)G=G.slice(0,-1),Z=parseInt(G,8);$+=G.length-1;let H=D.charCodeAt($);if(G!=="0"||H===56||H===57)if(Y)return F(null);else Q.strictNumericEscape(K,J,X);return F(String.fromCharCode(Z))}return F(String.fromCharCode(W))}}function ZN(D,$,J,X,Y,Q,U,F){let W=$,K;if({n:K,pos:$}=zy(D,$,J,X,16,Y,Q,!1,F,!U),K===null)if(U)F.invalidEscapeSequence(W,J,X);else $=W-1;return{code:K,pos:$}}function zy(D,$,J,X,Y,Q,U,F,W,K){let q=$,G=Y===16?df.hex:df.decBinOct,Z=Y===16?DU.hex:Y===10?DU.dec:Y===8?DU.oct:DU.bin,H=!1,z=0;for(let I=0,B=Q==null?1/0:Q;I<B;++I){let N=D.charCodeAt($),V;if(N===95&&F!=="bail"){let O=D.charCodeAt($-1),j=D.charCodeAt($+1);if(!F){if(K)return{n:null,pos:$};W.numericSeparatorInEscapeSequence($,J,X)}else if(Number.isNaN(j)||!Z(j)||G.has(O)||G.has(j)){if(K)return{n:null,pos:$};W.unexpectedNumericSeparator($,J,X)}++$;continue}if(N>=97)V=N-97+10;else if(N>=65)V=N-65+10;else if(TWD(N))V=N-48;else V=1/0;if(V>=Y)if(V<=9&&K)return{n:null,pos:$};else if(V<=9&&W.invalidDigit($,J,X,Y))V=0;else if(U)V=0,H=!0;else break;++$,z=z*Y+V}if($===q||Q!=null&&$-q!==Q||H)return{n:null,pos:$};return{n:z,pos:$}}function Hy(D,$,J,X,Y,Q){let U=D.charCodeAt($),F;if(U===123){if(++$,{code:F,pos:$}=ZN(D,$,J,X,D.indexOf("}",$)-$,!0,Y,Q),++$,F!==null&&F>1114111)if(Y)Q.invalidCodePoint($,J,X);else return{code:null,pos:$}}else({code:F,pos:$}=ZN(D,$,J,X,4,!1,Y,Q));return{code:F,pos:$}}function Q3(D,$,J){return new p6(J,D-$,D)}var SWD=new Set([103,109,115,105,121,117,100,118]);class c6{constructor(D){let $=D.startIndex||0;this.type=D.type,this.value=D.value,this.start=$+D.start,this.end=$+D.end,this.loc=new q3(D.startLoc,D.endLoc)}}class Iy extends Zy{constructor(D,$){super();this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(J,X,Y,Q)=>{if(!(this.optionFlags&2048))return!1;return this.raise(M.InvalidDigit,Q3(J,X,Y),{radix:Q}),!0},numericSeparatorInEscapeSequence:this.errorBuilder(M.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(M.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(M.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(M.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(J,X,Y)=>{this.recordStrictModeErrors(M.StrictNumericEscape,Q3(J,X,Y))},unterminated:(J,X,Y)=>{throw this.raise(M.UnterminatedString,Q3(J-1,X,Y))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(M.StrictNumericEscape),unterminated:(J,X,Y)=>{throw this.raise(M.UnterminatedTemplate,Q3(J,X,Y))}}),this.state=new AN,this.state.init(D),this.input=$,this.length=$.length,this.comments=[],this.isLookahead=!1}pushToken(D){this.tokens.length=this.state.tokensLength,this.tokens.push(D),++this.state.tokensLength}next(){if(this.checkKeywordEscapes(),this.optionFlags&256)this.pushToken(new c6(this.state));this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(D){if(this.match(D))return this.next(),!0;else return!1}match(D){return this.state.type===D}createLookaheadState(D){return{pos:D.pos,value:null,type:D.type,start:D.start,end:D.end,context:[this.curContext()],inType:D.inType,startLoc:D.startLoc,lastTokEndLoc:D.lastTokEndLoc,curLine:D.curLine,lineStart:D.lineStart,curPosition:D.curPosition}}lookahead(){let D=this.state;this.state=this.createLookaheadState(D),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let $=this.state;return this.state=D,$}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(D){return UN.lastIndex=D,UN.test(this.input)?UN.lastIndex:D}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(D){return this.input.charCodeAt(this.nextTokenStartSince(D))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(D){return FN.lastIndex=D,FN.test(this.input)?FN.lastIndex:D}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(D){let $=this.input.charCodeAt(D);if(($&64512)===55296&&++D<this.input.length){let J=this.input.charCodeAt(D);if((J&64512)===56320)$=65536+(($&1023)<<10)+(J&1023)}return $}setStrict(D){if(this.state.strict=D,D)this.state.strictErrors.forEach(([$,J])=>this.raise($,J)),this.state.strictErrors.clear()}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,!this.isLookahead)this.state.startLoc=this.state.curPosition();if(this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(D){let $;if(!this.isLookahead)$=this.state.curPosition();let J=this.state.pos,X=this.input.indexOf(D,J+2);if(X===-1)throw this.raise(M.UnterminatedComment,this.state.curPosition());this.state.pos=X+D.length,eQ.lastIndex=J+2;while(eQ.test(this.input)&&eQ.lastIndex<=X)++this.state.curLine,this.state.lineStart=eQ.lastIndex;if(this.isLookahead)return;let Y={type:"CommentBlock",value:this.input.slice(J+2,X),start:this.sourceToOffsetPos(J),end:this.sourceToOffsetPos(X+D.length),loc:new q3($,this.state.curPosition())};if(this.optionFlags&256)this.pushToken(Y);return Y}skipLineComment(D){let $=this.state.pos,J;if(!this.isLookahead)J=this.state.curPosition();let X=this.input.charCodeAt(this.state.pos+=D);if(this.state.pos<this.length)while(!z9(X)&&++this.state.pos<this.length)X=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let Y=this.state.pos,U={type:"CommentLine",value:this.input.slice($+D,Y),start:this.sourceToOffsetPos($),end:this.sourceToOffsetPos(Y),loc:new q3(J,this.state.curPosition())};if(this.optionFlags&256)this.pushToken(U);return U}skipSpace(){let D=this.state.pos,$=this.optionFlags&4096?[]:null;D:while(this.state.pos<this.length){let J=this.input.charCodeAt(this.state.pos);switch(J){case 32:case 160:case 9:++this.state.pos;break;case 13:if(this.input.charCodeAt(this.state.pos+1)===10)++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let X=this.skipBlockComment("*/");if(X!==void 0)this.addComment(X),$==null||$.push(X);break}case 47:{let X=this.skipLineComment(2);if(X!==void 0)this.addComment(X),$==null||$.push(X);break}default:break D}break;default:if(AWD(J))++this.state.pos;else if(J===45&&!this.inModule&&this.optionFlags&8192){let X=this.state.pos;if(this.input.charCodeAt(X+1)===45&&this.input.charCodeAt(X+2)===62&&(D===0||this.state.lineStart>D)){let Y=this.skipLineComment(3);if(Y!==void 0)this.addComment(Y),$==null||$.push(Y)}else break D}else if(J===60&&!this.inModule&&this.optionFlags&8192){let X=this.state.pos;if(this.input.charCodeAt(X+1)===33&&this.input.charCodeAt(X+2)===45&&this.input.charCodeAt(X+3)===45){let Y=this.skipLineComment(4);if(Y!==void 0)this.addComment(Y),$==null||$.push(Y)}else break D}else break D}}if(($==null?void 0:$.length)>0){let J=this.state.pos,X={start:this.sourceToOffsetPos(D),end:this.sourceToOffsetPos(J),comments:$,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(X)}}finishToken(D,$){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let J=this.state.type;if(this.state.type=D,this.state.value=$,!this.isLookahead)this.updateContext(J)}replaceToken(D){this.state.type=D,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let D=this.state.pos+1,$=this.codePointAtPos(D);if($>=48&&$<=57)throw this.raise(M.UnexpectedDigitAfterHash,this.state.curPosition());if($===123||$===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise($===123?M.RecordExpressionHashIncorrectStartSyntaxType:M.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());if(this.state.pos+=2,$===123)this.finishToken(7);else this.finishToken(1)}else if(E6($))++this.state.pos,this.finishToken(139,this.readWord1($));else if($===92)++this.state.pos,this.finishToken(139,this.readWord1());else this.finishOp(27,1)}readToken_dot(){let D=this.input.charCodeAt(this.state.pos+1);if(D>=48&&D<=57){this.readNumber(!0);return}if(D===46&&this.input.charCodeAt(this.state.pos+2)===46)this.state.pos+=3,this.finishToken(21);else++this.state.pos,this.finishToken(16)}readToken_slash(){if(this.input.charCodeAt(this.state.pos+1)===61)this.finishOp(31,2);else this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let D=this.input.charCodeAt(this.state.pos+1);if(D!==33)return!1;let $=this.state.pos;this.state.pos+=1;while(!z9(D)&&++this.state.pos<this.length)D=this.input.charCodeAt(this.state.pos);let J=this.input.slice($+2,this.state.pos);return this.finishToken(28,J),!0}readToken_mult_modulo(D){let $=D===42?55:54,J=1,X=this.input.charCodeAt(this.state.pos+1);if(D===42&&X===42)J++,X=this.input.charCodeAt(this.state.pos+2),$=57;if(X===61&&!this.state.inType)J++,$=D===37?33:30;this.finishOp($,J)}readToken_pipe_amp(D){let $=this.input.charCodeAt(this.state.pos+1);if($===D){if(this.input.charCodeAt(this.state.pos+2)===61)this.finishOp(30,3);else this.finishOp(D===124?41:42,2);return}if(D===124){if($===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&$===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(M.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&$===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(M.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if($===61){this.finishOp(30,2);return}this.finishOp(D===124?43:45,1)}readToken_caret(){let D=this.input.charCodeAt(this.state.pos+1);if(D===61&&!this.state.inType)this.finishOp(32,2);else if(D===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])){if(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94)this.unexpected()}else this.finishOp(44,1)}readToken_atSign(){if(this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}]))this.finishOp(38,2);else this.finishOp(26,1)}readToken_plus_min(D){let $=this.input.charCodeAt(this.state.pos+1);if($===D){this.finishOp(34,2);return}if($===61)this.finishOp(30,2);else this.finishOp(53,1)}readToken_lt(){let{pos:D}=this.state,$=this.input.charCodeAt(D+1);if($===60){if(this.input.charCodeAt(D+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if($===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:D}=this.state,$=this.input.charCodeAt(D+1);if($===62){let J=this.input.charCodeAt(D+2)===62?3:2;if(this.input.charCodeAt(D+J)===61){this.finishOp(30,J+1);return}this.finishOp(52,J);return}if($===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(D){let $=this.input.charCodeAt(this.state.pos+1);if($===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(D===61&&$===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(D===61?29:35,1)}readToken_question(){let D=this.input.charCodeAt(this.state.pos+1),$=this.input.charCodeAt(this.state.pos+2);if(D===63)if($===61)this.finishOp(30,3);else this.finishOp(40,2);else if(D===46&&!($>=48&&$<=57))this.state.pos+=2,this.finishToken(18);else++this.state.pos,this.finishToken(17)}getTokenFromCode(D){switch(D){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(M.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(M.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:if(this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58)this.finishOp(15,2);else++this.state.pos,this.finishToken(14);return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let $=this.input.charCodeAt(this.state.pos+1);if($===120||$===88){this.readRadixNumber(16);return}if($===111||$===79){this.readRadixNumber(8);return}if($===98||$===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(D);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(D);return;case 124:case 38:this.readToken_pipe_amp(D);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(D);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(D);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(E6(D)){this.readWord(D);return}}throw this.raise(M.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(D)})}finishOp(D,$){let J=this.input.slice(this.state.pos,this.state.pos+$);this.state.pos+=$,this.finishToken(D,J)}readRegexp(){let D=this.state.startLoc,$=this.state.start+1,J,X,{pos:Y}=this.state;for(;;++Y){if(Y>=this.length)throw this.raise(M.UnterminatedRegExp,F$(D,1));let W=this.input.charCodeAt(Y);if(z9(W))throw this.raise(M.UnterminatedRegExp,F$(D,1));if(J)J=!1;else{if(W===91)X=!0;else if(W===93&&X)X=!1;else if(W===47&&!X)break;J=W===92}}let Q=this.input.slice($,Y);++Y;let U="",F=()=>F$(D,Y+2-$);while(Y<this.length){let W=this.codePointAtPos(Y),K=String.fromCharCode(W);if(SWD.has(W)){if(W===118){if(U.includes("u"))this.raise(M.IncompatibleRegExpUVFlags,F())}else if(W===117){if(U.includes("v"))this.raise(M.IncompatibleRegExpUVFlags,F())}if(U.includes(K))this.raise(M.DuplicateRegExpFlags,F())}else if(X8(W)||W===92)this.raise(M.MalformedRegExpFlags,F());else break;++Y,U+=K}this.state.pos=Y,this.finishToken(138,{pattern:Q,flags:U})}readInt(D,$,J=!1,X=!0){let{n:Y,pos:Q}=zy(this.input,this.state.pos,this.state.lineStart,this.state.curLine,D,$,J,X,this.errorHandlers_readInt,!1);return this.state.pos=Q,Y}readRadixNumber(D){let $=this.state.pos,J=this.state.curPosition(),X=!1;this.state.pos+=2;let Y=this.readInt(D);if(Y==null)this.raise(M.InvalidDigit,F$(J,2),{radix:D});let Q=this.input.charCodeAt(this.state.pos);if(Q===110)++this.state.pos,X=!0;else if(Q===109)throw this.raise(M.InvalidDecimal,J);if(E6(this.codePointAtPos(this.state.pos)))throw this.raise(M.NumberIdentifier,this.state.curPosition());if(X){let U=this.input.slice($,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,U);return}this.finishToken(135,Y)}readNumber(D){let $=this.state.pos,J=this.state.curPosition(),X=!1,Y=!1,Q=!1,U=!1;if(!D&&this.readInt(10)===null)this.raise(M.InvalidNumber,this.state.curPosition());let F=this.state.pos-$>=2&&this.input.charCodeAt($)===48;if(F){let Z=this.input.slice($,this.state.pos);if(this.recordStrictModeErrors(M.StrictOctalLiteral,J),!this.state.strict){let H=Z.indexOf("_");if(H>0)this.raise(M.ZeroDigitNumericSeparator,F$(J,H))}U=F&&!/[89]/.test(Z)}let W=this.input.charCodeAt(this.state.pos);if(W===46&&!U)++this.state.pos,this.readInt(10),X=!0,W=this.input.charCodeAt(this.state.pos);if((W===69||W===101)&&!U){if(W=this.input.charCodeAt(++this.state.pos),W===43||W===45)++this.state.pos;if(this.readInt(10)===null)this.raise(M.InvalidOrMissingExponent,J);X=!0,Q=!0,W=this.input.charCodeAt(this.state.pos)}if(W===110){if(X||F)this.raise(M.InvalidBigIntLiteral,J);++this.state.pos,Y=!0}if(W===109){if(this.expectPlugin("decimal",this.state.curPosition()),Q||F)this.raise(M.InvalidDecimal,J);++this.state.pos;var K=!0}if(E6(this.codePointAtPos(this.state.pos)))throw this.raise(M.NumberIdentifier,this.state.curPosition());let q=this.input.slice($,this.state.pos).replace(/[_mn]/g,"");if(Y){this.finishToken(136,q);return}if(K){this.finishToken(137,q);return}let G=U?parseInt(q,8):parseFloat(q);this.finishToken(135,G)}readCodePoint(D){let{code:$,pos:J}=Hy(this.input,this.state.pos,this.state.lineStart,this.state.curLine,D,this.errorHandlers_readCodePoint);return this.state.pos=J,$}readString(D){let{str:$,pos:J,curLine:X,lineStart:Y}=cf(D===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=J+1,this.state.lineStart=Y,this.state.curLine=X,this.finishToken(134,$)}readTemplateContinuation(){if(!this.match(8))this.unexpected(null,8);this.state.pos--,this.readTemplateToken()}readTemplateToken(){let D=this.input[this.state.pos],{str:$,firstInvalidLoc:J,pos:X,curLine:Y,lineStart:Q}=cf("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);if(this.state.pos=X+1,this.state.lineStart=Q,this.state.curLine=Y,J)this.state.firstInvalidTemplateEscapePos=new p6(J.curLine,J.pos-J.lineStart,this.sourceToOffsetPos(J.pos));if(this.input.codePointAt(X)===96)this.finishToken(24,J?null:D+$+"`");else this.state.pos++,this.finishToken(25,J?null:D+$+"${")}recordStrictModeErrors(D,$){let J=$.index;if(this.state.strict&&!this.state.strictErrors.has(J))this.raise(D,$);else this.state.strictErrors.set(J,[D,$])}readWord1(D){this.state.containsEsc=!1;let $="",J=this.state.pos,X=this.state.pos;if(D!==void 0)this.state.pos+=D<=65535?1:2;while(this.state.pos<this.length){let Y=this.codePointAtPos(this.state.pos);if(X8(Y))this.state.pos+=Y<=65535?1:2;else if(Y===92){this.state.containsEsc=!0,$+=this.input.slice(X,this.state.pos);let Q=this.state.curPosition(),U=this.state.pos===J?E6:X8;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(M.MissingUnicodeEscape,this.state.curPosition()),X=this.state.pos-1;continue}++this.state.pos;let F=this.readCodePoint(!0);if(F!==null){if(!U(F))this.raise(M.EscapedCharNotAnIdentifier,Q);$+=String.fromCodePoint(F)}X=this.state.pos}else break}return $+this.input.slice(X,this.state.pos)}readWord(D){let $=this.readWord1(D),J=BN.get($);if(J!==void 0)this.finishToken(J,f1(J));else this.finishToken(132,$)}checkKeywordEscapes(){let{type:D}=this.state;if(LN(D)&&this.state.containsEsc)this.raise(M.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:f1(D)})}raise(D,$,J={}){let X=$ instanceof p6?$:$.loc.start,Y=D(X,J);if(!(this.optionFlags&2048))throw Y;if(!this.isLookahead)this.state.errors.push(Y);return Y}raiseOverwrite(D,$,J={}){let X=$ instanceof p6?$:$.loc.start,Y=X.index,Q=this.state.errors;for(let U=Q.length-1;U>=0;U--){let F=Q[U];if(F.loc.index===Y)return Q[U]=D(X,J);if(F.loc.index<Y)break}return this.raise(D,$,J)}updateContext(D){}unexpected(D,$){throw this.raise(M.UnexpectedToken,D!=null?D:this.state.startLoc,{expected:$?f1($):null})}expectPlugin(D,$){if(this.hasPlugin(D))return!0;throw this.raise(M.MissingPlugin,$!=null?$:this.state.startLoc,{missingPlugin:[D]})}expectOnePlugin(D){if(!D.some(($)=>this.hasPlugin($)))throw this.raise(M.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:D})}errorBuilder(D){return($,J,X)=>{this.raise(D,Q3($,J,X))}}}class By{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class Oy{constructor(D){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=D}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new By)}exit(){let D=this.stack.pop(),$=this.current();for(let[J,X]of Array.from(D.undefinedPrivateNames))if($){if(!$.undefinedPrivateNames.has(J))$.undefinedPrivateNames.set(J,X)}else this.parser.raise(M.InvalidPrivateFieldResolution,X,{identifierName:J})}declarePrivateName(D,$,J){let{privateNames:X,loneAccessors:Y,undefinedPrivateNames:Q}=this.current(),U=X.has(D);if($&3){let F=U&&Y.get(D);if(F){let W=F&4,K=$&4,q=F&3,G=$&3;if(U=q===G||W!==K,!U)Y.delete(D)}else if(!U)Y.set(D,$)}if(U)this.parser.raise(M.PrivateNameRedeclaration,J,{identifierName:D});X.add(D),Q.delete(D)}usePrivateName(D,$){let J;for(J of this.stack)if(J.privateNames.has(D))return;if(J)J.undefinedPrivateNames.set(D,$);else this.parser.raise(M.InvalidPrivateFieldResolution,$,{identifierName:D})}}class z3{constructor(D=0){this.type=D}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}}class vN extends z3{constructor(D){super(D);this.declarationErrors=new Map}recordDeclarationError(D,$){let J=$.index;this.declarationErrors.set(J,[D,$])}clearDeclarationError(D){this.declarationErrors.delete(D)}iterateErrors(D){this.declarationErrors.forEach(D)}}class Ny{constructor(D){this.parser=void 0,this.stack=[new z3],this.parser=D}enter(D){this.stack.push(D)}exit(){this.stack.pop()}recordParameterInitializerError(D,$){let J=$.loc.start,{stack:X}=this,Y=X.length-1,Q=X[Y];while(!Q.isCertainlyParameterDeclaration()){if(Q.canBeArrowParameterDeclaration())Q.recordDeclarationError(D,J);else return;Q=X[--Y]}this.parser.raise(D,J)}recordArrowParameterBindingError(D,$){let{stack:J}=this,X=J[J.length-1],Y=$.loc.start;if(X.isCertainlyParameterDeclaration())this.parser.raise(D,Y);else if(X.canBeArrowParameterDeclaration())X.recordDeclarationError(D,Y);else return}recordAsyncArrowParametersError(D){let{stack:$}=this,J=$.length-1,X=$[J];while(X.canBeArrowParameterDeclaration()){if(X.type===2)X.recordDeclarationError(M.AwaitBindingIdentifier,D);X=$[--J]}}validateAsPattern(){let{stack:D}=this,$=D[D.length-1];if(!$.canBeArrowParameterDeclaration())return;$.iterateErrors(([J,X])=>{this.parser.raise(J,X);let Y=D.length-2,Q=D[Y];while(Q.canBeArrowParameterDeclaration())Q.clearDeclarationError(X.index),Q=D[--Y]})}}function CWD(){return new z3(3)}function kWD(){return new vN(1)}function _WD(){return new vN(2)}function Vy(){return new z3}class wy extends Iy{addExtra(D,$,J,X=!0){if(!D)return;let{extra:Y}=D;if(Y==null)Y={},D.extra=Y;if(X)Y[$]=J;else Object.defineProperty(Y,$,{enumerable:X,value:J})}isContextual(D){return this.state.type===D&&!this.state.containsEsc}isUnparsedContextual(D,$){if(this.input.startsWith($,D)){let J=this.input.charCodeAt(D+$.length);return!(X8(J)||(J&64512)===55296)}return!1}isLookaheadContextual(D){let $=this.nextTokenStart();return this.isUnparsedContextual($,D)}eatContextual(D){if(this.isContextual(D))return this.next(),!0;return!1}expectContextual(D,$){if(!this.eatContextual(D)){if($!=null)throw this.raise($,this.state.startLoc);this.unexpected(null,D)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return lf(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return lf(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(D=!0){if(D?this.isLineTerminator():this.eat(13))return;this.raise(M.MissingSemicolon,this.state.lastTokEndLoc)}expect(D,$){if(!this.eat(D))this.unexpected($,D)}tryParse(D,$=this.state.clone()){let J={node:null};try{let X=D((Y=null)=>{throw J.node=Y,J});if(this.state.errors.length>$.errors.length){let Y=this.state;return this.state=$,this.state.tokensLength=Y.tokensLength,{node:X,error:Y.errors[$.errors.length],thrown:!1,aborted:!1,failState:Y}}return{node:X,error:null,thrown:!1,aborted:!1,failState:null}}catch(X){let Y=this.state;if(this.state=$,X instanceof SyntaxError)return{node:null,error:X,thrown:!0,aborted:!1,failState:Y};if(X===J)return{node:J.node,error:null,thrown:!1,aborted:!0,failState:Y};throw X}}checkExpressionErrors(D,$){if(!D)return!1;let{shorthandAssignLoc:J,doubleProtoLoc:X,privateKeyLoc:Y,optionalParametersLoc:Q,voidPatternLoc:U}=D,F=!!J||!!X||!!Q||!!Y||!!U;if(!$)return F;if(J!=null)this.raise(M.InvalidCoverInitializedName,J);if(X!=null)this.raise(M.DuplicateProto,X);if(Y!=null)this.raise(M.UnexpectedPrivateField,Y);if(Q!=null)this.unexpected(Q);if(U!=null)this.raise(M.InvalidCoverDiscardElement,U)}isLiteralPropertyName(){return sf(this.state.type)}isPrivateName(D){return D.type==="PrivateName"}getPrivateNameSV(D){return D.id.name}hasPropertyAsPrivateName(D){return(D.type==="MemberExpression"||D.type==="OptionalMemberExpression")&&this.isPrivateName(D.property)}isObjectProperty(D){return D.type==="ObjectProperty"}isObjectMethod(D){return D.type==="ObjectMethod"}initializeScopes(D=this.options.sourceType==="module"){let $=this.state.labels;this.state.labels=[];let J=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let X=this.inModule;this.inModule=D;let Y=this.scope,Q=this.getScopeHandler();this.scope=new Q(this,D);let U=this.prodParam;this.prodParam=new Ky;let F=this.classScope;this.classScope=new Oy(this);let W=this.expressionScope;return this.expressionScope=new Ny(this),()=>{this.state.labels=$,this.exportedIdentifiers=J,this.inModule=X,this.scope=Y,this.prodParam=U,this.classScope=F,this.expressionScope=W}}enterInitialScopes(){let D=0;if(this.inModule||this.optionFlags&1)D|=2;if(this.optionFlags&32)D|=1;let $=!this.inModule&&this.options.sourceType==="commonjs";if($||this.optionFlags&2)D|=4;this.prodParam.enter(D);let J=$?514:1;if(this.optionFlags&4)J|=512;this.scope.enter(J)}checkDestructuringPrivate(D){let{privateKeyLoc:$}=D;if($!==null)this.expectPlugin("destructuringPrivate",$)}}class K3{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}}class Z3{constructor(D,$,J){if(this.type="",this.start=$,this.end=0,this.loc=new q3(J),(D==null?void 0:D.optionFlags)&128)this.range=[$,0];if(D!=null&&D.filename)this.loc.filename=D.filename}}var zN=Z3.prototype;zN.__clone=function(){let D=new Z3(void 0,this.start,this.loc.start),$=Object.keys(this);for(let J=0,X=$.length;J<X;J++){let Y=$[J];if(Y!=="leadingComments"&&Y!=="trailingComments"&&Y!=="innerComments")D[Y]=this[Y]}return D};class jy extends wy{startNode(){let D=this.state.startLoc;return new Z3(this,D.index,D)}startNodeAt(D){return new Z3(this,D.index,D)}startNodeAtNode(D){return this.startNodeAt(D.loc.start)}finishNode(D,$){return this.finishNodeAt(D,$,this.state.lastTokEndLoc)}finishNodeAt(D,$,J){if(D.type=$,D.end=J.index,D.loc.end=J,this.optionFlags&128)D.range[1]=J.index;if(this.optionFlags&4096)this.processComment(D);return D}resetStartLocation(D,$){if(D.start=$.index,D.loc.start=$,this.optionFlags&128)D.range[0]=$.index}resetEndLocation(D,$=this.state.lastTokEndLoc){if(D.end=$.index,D.loc.end=$,this.optionFlags&128)D.range[1]=$.index}resetStartLocationFromNode(D,$){this.resetStartLocation(D,$.loc.start)}castNodeTo(D,$){return D.type=$,D}cloneIdentifier(D){let{type:$,start:J,end:X,loc:Y,range:Q,name:U}=D,F=Object.create(zN);if(F.type=$,F.start=J,F.end=X,F.loc=Y,F.range=Q,F.name=U,D.extra)F.extra=D.extra;return F}cloneStringLiteral(D){let{type:$,start:J,end:X,loc:Y,range:Q,extra:U}=D,F=Object.create(zN);return F.type=$,F.start=J,F.end=X,F.loc=Y,F.range=Q,F.extra=U,F.value=D.value,F}}var HN=(D)=>{return D.type==="ParenthesizedExpression"?HN(D.expression):D};class Ly extends jy{toAssignable(D,$=!1){var J,X;let Y=void 0;if(D.type==="ParenthesizedExpression"||(J=D.extra)!=null&&J.parenthesized)if(Y=HN(D),$){if(Y.type==="Identifier")this.expressionScope.recordArrowParameterBindingError(M.InvalidParenthesizedAssignment,D);else if(Y.type!=="CallExpression"&&Y.type!=="MemberExpression"&&!this.isOptionalMemberExpression(Y))this.raise(M.InvalidParenthesizedAssignment,D)}else this.raise(M.InvalidParenthesizedAssignment,D);switch(D.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(D,"ObjectPattern");for(let U=0,F=D.properties.length,W=F-1;U<F;U++){var Q;let K=D.properties[U],q=U===W;if(this.toAssignableObjectExpressionProp(K,q,$),q&&K.type==="RestElement"&&(Q=D.extra)!=null&&Q.trailingCommaLoc)this.raise(M.RestTrailingComma,D.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:U,value:F}=D;if(this.isPrivateName(U))this.classScope.usePrivateName(this.getPrivateNameSV(U),U.loc.start);this.toAssignable(F,$);break}case"SpreadElement":throw Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":this.castNodeTo(D,"ArrayPattern"),this.toAssignableList(D.elements,(X=D.extra)==null?void 0:X.trailingCommaLoc,$);break;case"AssignmentExpression":if(D.operator!=="=")this.raise(M.MissingEqInAssignment,D.left.loc.end);if(this.castNodeTo(D,"AssignmentPattern"),delete D.operator,D.left.type==="VoidPattern")this.raise(M.VoidPatternInitializer,D.left);this.toAssignable(D.left,$);break;case"ParenthesizedExpression":this.toAssignable(Y,$);break}}toAssignableObjectExpressionProp(D,$,J){if(D.type==="ObjectMethod")this.raise(D.kind==="get"||D.kind==="set"?M.PatternHasAccessor:M.PatternHasMethod,D.key);else if(D.type==="SpreadElement"){this.castNodeTo(D,"RestElement");let X=D.argument;if(this.checkToRestConversion(X,!1),this.toAssignable(X,J),!$)this.raise(M.RestTrailingComma,D)}else this.toAssignable(D,J)}toAssignableList(D,$,J){let X=D.length-1;for(let Y=0;Y<=X;Y++){let Q=D[Y];if(!Q)continue;if(this.toAssignableListItem(D,Y,J),Q.type==="RestElement"){if(Y<X)this.raise(M.RestTrailingComma,Q);else if($)this.raise(M.RestTrailingComma,$)}}}toAssignableListItem(D,$,J){let X=D[$];if(X.type==="SpreadElement"){this.castNodeTo(X,"RestElement");let Y=X.argument;this.checkToRestConversion(Y,!0),this.toAssignable(Y,J)}else this.toAssignable(X,J)}isAssignable(D,$){switch(D.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{let J=D.properties.length-1;return D.properties.every((X,Y)=>{return X.type!=="ObjectMethod"&&(Y===J||X.type!=="SpreadElement")&&this.isAssignable(X)})}case"ObjectProperty":return this.isAssignable(D.value);case"SpreadElement":return this.isAssignable(D.argument);case"ArrayExpression":return D.elements.every((J)=>J===null||this.isAssignable(J));case"AssignmentExpression":return D.operator==="=";case"ParenthesizedExpression":return this.isAssignable(D.expression);case"MemberExpression":case"OptionalMemberExpression":return!$;default:return!1}}toReferencedList(D,$){return D}toReferencedListDeep(D,$){this.toReferencedList(D,$);for(let J of D)if((J==null?void 0:J.type)==="ArrayExpression")this.toReferencedListDeep(J.elements)}parseSpread(D){let $=this.startNode();return this.next(),$.argument=this.parseMaybeAssignAllowIn(D,void 0),this.finishNode($,"SpreadElement")}parseRestBinding(){let D=this.startNode();this.next();let $=this.parseBindingAtom();if($.type==="VoidPattern")this.raise(M.UnexpectedVoidPattern,$);return D.argument=$,this.finishNode(D,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let D=this.startNode();return this.next(),D.elements=this.parseBindingList(3,93,1),this.finishNode(D,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(D,$,J){let X=J&1,Y=[],Q=!0;while(!this.eat(D)){if(Q)Q=!1;else this.expect(12);if(X&&this.match(12))Y.push(null);else if(this.eat(D))break;else if(this.match(21)){let U=this.parseRestBinding();if(this.hasPlugin("flow")||J&2)U=this.parseFunctionParamType(U);if(Y.push(U),!this.checkCommaAfterRest($)){this.expect(D);break}}else{let U=[];if(J&2){if(this.match(26)&&this.hasPlugin("decorators"))this.raise(M.UnsupportedParameterDecorator,this.state.startLoc);while(this.match(26))U.push(this.parseDecorator())}Y.push(this.parseBindingElement(J,U))}}return Y}parseBindingRestProperty(D){if(this.next(),this.hasPlugin("discardBinding")&&this.match(88))D.argument=this.parseVoidPattern(null),this.raise(M.UnexpectedVoidPattern,D.argument);else D.argument=this.parseIdentifier();return this.checkCommaAfterRest(125),this.finishNode(D,"RestElement")}parseBindingProperty(){let{type:D,startLoc:$}=this.state;if(D===21)return this.parseBindingRestProperty(this.startNode());let J=this.startNode();if(D===139)this.expectPlugin("destructuringPrivate",$),this.classScope.usePrivateName(this.state.value,$),J.key=this.parsePrivateName();else this.parsePropertyName(J);return J.method=!1,this.parseObjPropValue(J,$,!1,!1,!0,!1)}parseBindingElement(D,$){let J=this.parseMaybeDefault();if(this.hasPlugin("flow")||D&2)this.parseFunctionParamType(J);if($.length)J.decorators=$,this.resetStartLocationFromNode(J,$[0]);return this.parseMaybeDefault(J.loc.start,J)}parseFunctionParamType(D){return D}parseMaybeDefault(D,$){if(D!=null||(D=this.state.startLoc),$=$!=null?$:this.parseBindingAtom(),!this.eat(29))return $;let J=this.startNodeAt(D);if($.type==="VoidPattern")this.raise(M.VoidPatternInitializer,$);return J.left=$,J.right=this.parseMaybeAssignAllowIn(),this.finishNode(J,"AssignmentPattern")}isValidLVal(D,$,J,X){switch(D){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0;case"CallExpression":if(!$&&!this.state.strict&&this.optionFlags&8192)return!0}return!1}isOptionalMemberExpression(D){return D.type==="OptionalMemberExpression"}checkLVal(D,$,J=64,X=!1,Y=!1,Q=!1,U=!1){var F;let W=D.type;if(this.isObjectMethod(D))return;let K=this.isOptionalMemberExpression(D);if(K||W==="MemberExpression"){if(K){if(this.expectPlugin("optionalChainingAssign",D.loc.start),$.type!=="AssignmentExpression")this.raise(M.InvalidLhsOptionalChaining,D,{ancestor:$})}if(J!==64)this.raise(M.InvalidPropertyBindingPattern,D);return}if(W==="Identifier"){this.checkIdentifier(D,J,Y);let{name:B}=D;if(X)if(X.has(B))this.raise(M.ParamDupe,D);else X.add(B);return}else if(W==="VoidPattern"&&$.type==="CatchClause")this.raise(M.VoidPatternCatchClauseParam,D);let q=HN(D);U||(U=q.type==="CallExpression"&&(q.callee.type==="Import"||q.callee.type==="Super"));let G=this.isValidLVal(W,U,!(Q||(F=D.extra)!=null&&F.parenthesized)&&$.type==="AssignmentExpression",J);if(G===!0)return;if(G===!1){let B=J===64?M.InvalidLhs:M.InvalidLhsBinding;this.raise(B,D,{ancestor:$});return}let Z,H;if(typeof G==="string")Z=G,H=W==="ParenthesizedExpression";else[Z,H]=G;let z=W==="ArrayPattern"||W==="ObjectPattern"?{type:W}:$,I=D[Z];if(Array.isArray(I)){for(let B of I)if(B)this.checkLVal(B,z,J,X,Y,H,!0)}else if(I)this.checkLVal(I,z,J,X,Y,H,U)}checkIdentifier(D,$,J=!1){if(this.state.strict&&(J?Yy(D.name,this.inModule):Xy(D.name)))if($===64)this.raise(M.StrictEvalArguments,D,{referenceName:D.name});else this.raise(M.StrictEvalArgumentsBinding,D,{bindingName:D.name});if($&8192&&D.name==="let")this.raise(M.LetInLexicalBinding,D);if(!($&64))this.declareNameFromIdentifier(D,$)}declareNameFromIdentifier(D,$){this.scope.declareName(D.name,$,D.loc.start)}checkToRestConversion(D,$){switch(D.type){case"ParenthesizedExpression":this.checkToRestConversion(D.expression,$);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if($)break;default:this.raise(M.InvalidRestAssignmentPattern,D)}}checkCommaAfterRest(D){if(!this.match(12))return!1;return this.raise(this.lookaheadCharCode()===D?M.RestTrailingComma:M.ElementAfterRest,this.state.startLoc),!0}}var WN=/in(?:stanceof)?|as|satisfies/y;function uWD(D){if(D==null)throw Error(`Unexpected ${D} value.`);return D}function pf(D){if(!D)throw Error("Assert fail")}var YD=v6`typescript`({AbstractMethodHasImplementation:({methodName:D})=>`Method '${D}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:D})=>`Property '${D}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:D})=>`'declare' is not allowed in ${D}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:D})=>`Accessibility modifier already seen: '${D}'.`,DuplicateModifier:({modifier:D})=>`Duplicate modifier: '${D}'.`,EmptyHeritageClauseType:({token:D})=>`'${D}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:D})=>`'${D[0]}' modifier cannot be used with '${D[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:D})=>`Index signatures cannot have an accessibility modifier ('${D}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:D})=>`'${D}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:(D)=>`'${D}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:D})=>`'${D}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:D})=>`'${D}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:D})=>`'${D}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:(D)=>`'${D}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:D})=>`'${D[0]}' modifier must precede '${D[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:D})=>`Private elements cannot have an accessibility modifier ('${D}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:D})=>`Single type parameter ${D} should have a trailing comma. Example usage: <${D},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:D})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${D}.`,UsingDeclarationInAmbientContext:(D)=>`'${D}' declarations are not allowed in ambient contexts.`});function gWD(D){switch(D){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function nf(D){return D==="private"||D==="public"||D==="protected"}function xWD(D){return D==="in"||D==="out"}var fWD=(D)=>class extends D{constructor(...J){super(...J);this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:YD.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:YD.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:YD.InvalidModifierOnTypeParameter})}getScopeHandler(){return Wy}tsIsIdentifier(){return gD(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){if(this.next(),this.hasPrecedingLineBreak())return!1;return this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){if(this.match(106))return this.next(),this.tsTokenCanFollowModifier();return this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(J,X,Y){if(!gD(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let Q=this.state.value;if(J.includes(Q)){if(Y&&this.match(106))return;if(X&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return Q}return}tsParseModifiers({allowedModifiers:J,disallowedModifiers:X,stopOnStartOfClassStaticBlock:Y,errorTemplate:Q=YD.InvalidModifierOnTypeMember},U){let F=(K,q,G,Z)=>{if(q===G&&U[Z])this.raise(YD.InvalidModifiersOrder,K,{orderedModifiers:[G,Z]})},W=(K,q,G,Z)=>{if(U[G]&&q===Z||U[Z]&&q===G)this.raise(YD.IncompatibleModifiers,K,{modifiers:[G,Z]})};for(;;){let{startLoc:K}=this.state,q=this.tsParseModifier(J.concat(X!=null?X:[]),Y,U.static);if(!q)break;if(nf(q))if(U.accessibility)this.raise(YD.DuplicateAccessibilityModifier,K,{modifier:q});else F(K,q,q,"override"),F(K,q,q,"static"),F(K,q,q,"readonly"),U.accessibility=q;else if(xWD(q)){if(U[q])this.raise(YD.DuplicateModifier,K,{modifier:q});U[q]=!0,F(K,q,"in","out")}else{if(hasOwnProperty.call(U,q))this.raise(YD.DuplicateModifier,K,{modifier:q});else F(K,q,"static","readonly"),F(K,q,"static","override"),F(K,q,"override","readonly"),F(K,q,"abstract","override"),W(K,q,"declare","override"),W(K,q,"static","abstract");U[q]=!0}if(X!=null&&X.includes(q))this.raise(Q,K,{modifier:q})}}tsIsListTerminator(J){switch(J){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(J,X){let Y=[];while(!this.tsIsListTerminator(J))Y.push(X());return Y}tsParseDelimitedList(J,X,Y){return uWD(this.tsParseDelimitedListWorker(J,X,!0,Y))}tsParseDelimitedListWorker(J,X,Y,Q){let U=[],F=-1;for(;;){if(this.tsIsListTerminator(J))break;F=-1;let W=X();if(W==null)return;if(U.push(W),this.eat(12)){F=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(J))break;if(Y)this.expect(12);return}if(Q)Q.value=F;return U}tsParseBracketedList(J,X,Y,Q,U){if(!Q)if(Y)this.expect(0);else this.expect(47);let F=this.tsParseDelimitedList(J,X,U);if(Y)this.expect(3);else this.expect(48);return F}tsParseImportType(){let J=this.startNode();if(this.expect(83),this.expect(10),!this.match(134))this.raise(YD.UnsupportedImportTypeArgument,this.state.startLoc),J.argument=super.parseExprAtom();else J.argument=this.parseStringLiteral(this.state.value);if(this.eat(12))J.options=this.tsParseImportTypeOptions();else J.options=null;if(this.expect(11),this.eat(16))J.qualifier=this.tsParseEntityName(3);if(this.match(47))J.typeParameters=this.tsParseTypeArguments();return this.finishNode(J,"TSImportType")}tsParseImportTypeOptions(){let J=this.startNode();this.expect(5);let X=this.startNode();if(this.isContextual(76))X.method=!1,X.key=this.parseIdentifier(!0),X.computed=!1,X.shorthand=!1;else this.unexpected(null,76);return this.expect(14),X.value=this.tsParseImportTypeWithPropertyValue(),J.properties=[this.finishObjectProperty(X)],this.eat(12),this.expect(8),this.finishNode(J,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let J=this.startNode(),X=[];this.expect(5);while(!this.match(8)){let Y=this.state.type;if(gD(Y)||Y===134)X.push(super.parsePropertyDefinition(null));else this.unexpected();this.eat(12)}return J.properties=X,this.next(),this.finishNode(J,"ObjectExpression")}tsParseEntityName(J){let X;if(J&1&&this.match(78))if(J&2)X=this.parseIdentifier(!0);else{let Y=this.startNode();this.next(),X=this.finishNode(Y,"ThisExpression")}else X=this.parseIdentifier(!!(J&1));while(this.eat(16)){let Y=this.startNodeAtNode(X);Y.left=X,Y.right=this.parseIdentifier(!!(J&1)),X=this.finishNode(Y,"TSQualifiedName")}return X}tsParseTypeReference(){let J=this.startNode();if(J.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47))J.typeParameters=this.tsParseTypeArguments();return this.finishNode(J,"TSTypeReference")}tsParseThisTypePredicate(J){this.next();let X=this.startNodeAtNode(J);return X.parameterName=J,X.typeAnnotation=this.tsParseTypeAnnotation(!1),X.asserts=!1,this.finishNode(X,"TSTypePredicate")}tsParseThisTypeNode(){let J=this.startNode();return this.next(),this.finishNode(J,"TSThisType")}tsParseTypeQuery(){let J=this.startNode();if(this.expect(87),this.match(83))J.exprName=this.tsParseImportType();else J.exprName=this.tsParseEntityName(3);if(!this.hasPrecedingLineBreak()&&this.match(47))J.typeParameters=this.tsParseTypeArguments();return this.finishNode(J,"TSTypeQuery")}tsParseTypeParameter(J){let X=this.startNode();return J(X),X.name=this.tsParseTypeParameterName(),X.constraint=this.tsEatThenParseType(81),X.default=this.tsEatThenParseType(29),this.finishNode(X,"TSTypeParameter")}tsTryParseTypeParameters(J){if(this.match(47))return this.tsParseTypeParameters(J)}tsParseTypeParameters(J){let X=this.startNode();if(this.match(47)||this.match(143))this.next();else this.unexpected();let Y={value:-1};if(X.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,J),!1,!0,Y),X.params.length===0)this.raise(YD.EmptyTypeParameters,X);if(Y.value!==-1)this.addExtra(X,"trailingComma",Y.value);return this.finishNode(X,"TSTypeParameterDeclaration")}tsFillSignature(J,X){let Y=J===19,Q="parameters",U="typeAnnotation";if(X.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),X.parameters=this.tsParseBindingListForSignature(),Y)X.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(J);else if(this.match(J))X.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(J)}tsParseBindingListForSignature(){let J=super.parseBindingList(11,41,2);for(let X of J){let{type:Y}=X;if(Y==="AssignmentPattern"||Y==="TSParameterProperty")this.raise(YD.UnsupportedSignatureParameterKind,X,{type:Y})}return J}tsParseTypeMemberSemicolon(){if(!this.eat(12)&&!this.isLineTerminator())this.expect(13)}tsParseSignatureMember(J,X){return this.tsFillSignature(14,X),this.tsParseTypeMemberSemicolon(),this.finishNode(X,J)}tsIsUnambiguouslyIndexSignature(){if(this.next(),gD(this.state.type))return this.next(),this.match(14);return!1}tsTryParseIndexSignature(J){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let X=this.parseIdentifier();X.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(X),this.expect(3),J.parameters=[X];let Y=this.tsTryParseTypeAnnotation();if(Y)J.typeAnnotation=Y;return this.tsParseTypeMemberSemicolon(),this.finishNode(J,"TSIndexSignature")}tsParsePropertyOrMethodSignature(J,X){if(this.eat(17))J.optional=!0;if(this.match(10)||this.match(47)){if(X)this.raise(YD.ReadonlyForMethodSignature,J);let Y=J;if(Y.kind&&this.match(47))this.raise(YD.AccessorCannotHaveTypeParameters,this.state.curPosition());this.tsFillSignature(14,Y),this.tsParseTypeMemberSemicolon();let Q="parameters",U="typeAnnotation";if(Y.kind==="get"){if(Y[Q].length>0){if(this.raise(M.BadGetterArity,this.state.curPosition()),this.isThisParam(Y[Q][0]))this.raise(YD.AccessorCannotDeclareThisParameter,this.state.curPosition())}}else if(Y.kind==="set"){if(Y[Q].length!==1)this.raise(M.BadSetterArity,this.state.curPosition());else{let F=Y[Q][0];if(this.isThisParam(F))this.raise(YD.AccessorCannotDeclareThisParameter,this.state.curPosition());if(F.type==="Identifier"&&F.optional)this.raise(YD.SetAccessorCannotHaveOptionalParameter,this.state.curPosition());if(F.type==="RestElement")this.raise(YD.SetAccessorCannotHaveRestParameter,this.state.curPosition())}if(Y[U])this.raise(YD.SetAccessorCannotHaveReturnType,Y[U])}else Y.kind="method";return this.finishNode(Y,"TSMethodSignature")}else{let Y=J;if(X)Y.readonly=!0;let Q=this.tsTryParseTypeAnnotation();if(Q)Y.typeAnnotation=Q;return this.tsParseTypeMemberSemicolon(),this.finishNode(Y,"TSPropertySignature")}}tsParseTypeMember(){let J=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",J);if(this.match(77)){let Y=this.startNode();if(this.next(),this.match(10)||this.match(47))return this.tsParseSignatureMember("TSConstructSignatureDeclaration",J);else return J.key=this.createIdentifier(Y,"new"),this.tsParsePropertyOrMethodSignature(J,!1)}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},J);let X=this.tsTryParseIndexSignature(J);if(X)return X;if(super.parsePropertyName(J),!J.computed&&J.key.type==="Identifier"&&(J.key.name==="get"||J.key.name==="set")&&this.tsTokenCanFollowModifier()){if(J.kind=J.key.name,super.parsePropertyName(J),!this.match(10)&&!this.match(47))this.unexpected(null,10)}return this.tsParsePropertyOrMethodSignature(J,!!J.readonly)}tsParseTypeLiteral(){let J=this.startNode();return J.members=this.tsParseObjectTypeMembers(),this.finishNode(J,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let J=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),J}tsIsStartOfMappedType(){if(this.next(),this.eat(53))return this.isContextual(122);if(this.isContextual(122))this.next();if(!this.match(0))return!1;if(this.next(),!this.tsIsIdentifier())return!1;return this.next(),this.match(58)}tsParseMappedType(){let J=this.startNode();if(this.expect(5),this.match(53))J.readonly=this.state.value,this.next(),this.expectContextual(122);else if(this.eatContextual(122))J.readonly=!0;this.expect(0);let X=this.startNode();if(X.name=this.tsParseTypeParameterName(),X.constraint=this.tsExpectThenParseType(58),J.typeParameter=this.finishNode(X,"TSTypeParameter"),J.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53))J.optional=this.state.value,this.next(),this.expect(17);else if(this.eat(17))J.optional=!0;return J.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(J,"TSMappedType")}tsParseTupleType(){let J=this.startNode();J.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let X=!1;return J.elementTypes.forEach((Y)=>{let{type:Q}=Y;if(X&&Q!=="TSRestType"&&Q!=="TSOptionalType"&&!(Q==="TSNamedTupleMember"&&Y.optional))this.raise(YD.OptionalTypeBeforeRequired,Y);X||(X=Q==="TSNamedTupleMember"&&Y.optional||Q==="TSOptionalType")}),this.finishNode(J,"TSTupleType")}tsParseTupleElementType(){let J=this.state.startLoc,X=this.eat(21),{startLoc:Y}=this.state,Q,U,F,W,q=F6(this.state.type)?this.lookaheadCharCode():null;if(q===58)Q=!0,F=!1,U=this.parseIdentifier(!0),this.expect(14),W=this.tsParseType();else if(q===63){F=!0;let G=this.state.value,Z=this.tsParseNonArrayType();if(this.lookaheadCharCode()===58)Q=!0,U=this.createIdentifier(this.startNodeAt(Y),G),this.expect(17),this.expect(14),W=this.tsParseType();else Q=!1,W=Z,this.expect(17)}else W=this.tsParseType(),F=this.eat(17),Q=this.eat(14);if(Q){let G;if(U){if(G=this.startNodeAt(Y),G.optional=F,G.label=U,G.elementType=W,this.eat(17))G.optional=!0,this.raise(YD.TupleOptionalAfterType,this.state.lastTokStartLoc)}else G=this.startNodeAt(Y),G.optional=F,this.raise(YD.InvalidTupleMemberLabel,W),G.label=W,G.elementType=this.tsParseType();W=this.finishNode(G,"TSNamedTupleMember")}else if(F){let G=this.startNodeAt(Y);G.typeAnnotation=W,W=this.finishNode(G,"TSOptionalType")}if(X){let G=this.startNodeAt(J);G.typeAnnotation=W,W=this.finishNode(G,"TSRestType")}return W}tsParseParenthesizedType(){let J=this.startNode();return this.expect(10),J.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(J,"TSParenthesizedType")}tsParseFunctionOrConstructorType(J,X){let Y=this.startNode();if(J==="TSConstructorType"){if(Y.abstract=!!X,X)this.next();this.next()}return this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,Y)),this.finishNode(Y,J)}tsParseLiteralTypeNode(){let J=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:J.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(J,"TSLiteralType")}tsParseTemplateLiteralType(){let J=this.startNode();return J.literal=super.parseTemplate(!1),this.finishNode(J,"TSLiteralType")}parseTemplateSubstitution(){if(this.state.inType)return this.tsParseType();return super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let J=this.tsParseThisTypeNode();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.tsParseThisTypePredicate(J);else return J}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let J=this.startNode(),X=this.lookahead();if(X.type!==135&&X.type!==136)this.unexpected();return J.literal=this.parseMaybeUnary(),this.finishNode(J,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:J}=this.state;if(gD(J)||J===88||J===84){let X=J===88?"TSVoidKeyword":J===84?"TSNullKeyword":gWD(this.state.value);if(X!==void 0&&this.lookaheadCharCode()!==46){let Y=this.startNode();return this.next(),this.finishNode(Y,X)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:J}=this.state,X=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(0))if(this.match(3)){let Y=this.startNodeAt(J);Y.elementType=X,this.expect(3),X=this.finishNode(Y,"TSArrayType")}else{let Y=this.startNodeAt(J);Y.objectType=X,Y.indexType=this.tsParseType(),this.expect(3),X=this.finishNode(Y,"TSIndexedAccessType")}return X}tsParseTypeOperator(){let J=this.startNode(),X=this.state.value;if(this.next(),J.operator=X,J.typeAnnotation=this.tsParseTypeOperatorOrHigher(),X==="readonly")this.tsCheckTypeAnnotationForReadOnly(J);return this.finishNode(J,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(J){switch(J.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(YD.UnexpectedReadonly,J)}}tsParseInferType(){let J=this.startNode();this.expectContextual(115);let X=this.startNode();return X.name=this.tsParseTypeParameterName(),X.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),J.typeParameter=this.finishNode(X,"TSTypeParameter"),this.finishNode(J,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let J=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return J}}tsParseTypeOperatorOrHigher(){return YWD(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(J,X,Y){let Q=this.startNode(),U=this.eat(Y),F=[];do F.push(X());while(this.eat(Y));if(F.length===1&&!U)return F[0];return Q.types=F,this.finishNode(Q,J)}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){if(this.match(47))return!0;return this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(gD(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:J}=this.state,X=J.length;try{return this.parseObjectLike(8,!0),J.length===X}catch(Y){return!1}}if(this.match(0)){this.next();let{errors:J}=this.state,X=J.length;try{return super.parseBindingList(3,93,1),J.length===X}catch(Y){return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return!0;if(this.match(11)){if(this.next(),this.match(19))return!0}}return!1}tsParseTypeOrTypePredicateAnnotation(J){return this.tsInType(()=>{let X=this.startNode();this.expect(J);let Y=this.startNode(),Q=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(Q&&this.match(78)){let W=this.tsParseThisTypeOrThisTypePredicate();if(W.type==="TSThisType")Y.parameterName=W,Y.asserts=!0,Y.typeAnnotation=null,W=this.finishNode(Y,"TSTypePredicate");else this.resetStartLocationFromNode(W,Y),W.asserts=!0;return X.typeAnnotation=W,this.finishNode(X,"TSTypeAnnotation")}let U=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!U){if(!Q)return this.tsParseTypeAnnotation(!1,X);return Y.parameterName=this.parseIdentifier(),Y.asserts=Q,Y.typeAnnotation=null,X.typeAnnotation=this.finishNode(Y,"TSTypePredicate"),this.finishNode(X,"TSTypeAnnotation")}let F=this.tsParseTypeAnnotation(!1);return Y.parameterName=U,Y.typeAnnotation=F,Y.asserts=Q,X.typeAnnotation=this.finishNode(Y,"TSTypePredicate"),this.finishNode(X,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let J=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),J}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let J=this.state.containsEsc;if(this.next(),!gD(this.state.type)&&!this.match(78))return!1;if(J)this.raise(M.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"});return!0}tsParseTypeAnnotation(J=!0,X=this.startNode()){return this.tsInType(()=>{if(J)this.expect(14);X.typeAnnotation=this.tsParseType()}),this.finishNode(X,"TSTypeAnnotation")}tsParseType(){pf(this.state.inType);let J=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return J;let X=this.startNodeAtNode(J);return X.checkType=J,X.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),X.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),X.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(X,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){if(this.tsIsStartOfFunctionType())return this.tsParseFunctionOrConstructorType("TSFunctionType");if(this.match(77))return this.tsParseFunctionOrConstructorType("TSConstructorType");else if(this.isAbstractConstructorSignature())return this.tsParseFunctionOrConstructorType("TSConstructorType",!0);return this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){if(this.getPluginOption("typescript","disallowAmbiguousJSXLike"))this.raise(YD.ReservedTypeAssertion,this.state.startLoc);let J=this.startNode();return J.typeAnnotation=this.tsInType(()=>{return this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType()}),this.expect(48),J.expression=this.parseMaybeUnary(),this.finishNode(J,"TSTypeAssertion")}tsParseHeritageClause(J){let X=this.state.startLoc,Y=this.tsParseDelimitedList("HeritageClauseElement",()=>{let Q=this.startNode();if(Q.expression=this.tsParseEntityName(3),this.match(47))Q.typeParameters=this.tsParseTypeArguments();return this.finishNode(Q,"TSExpressionWithTypeArguments")});if(!Y.length)this.raise(YD.EmptyHeritageClauseType,X,{token:J});return Y}tsParseInterfaceDeclaration(J,X={}){if(this.hasFollowingLineBreak())return null;if(this.expectContextual(129),X.declare)J.declare=!0;if(gD(this.state.type))J.id=this.parseIdentifier(),this.checkIdentifier(J.id,130);else J.id=null,this.raise(YD.MissingInterfaceName,this.state.startLoc);if(J.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81))J.extends=this.tsParseHeritageClause("extends");let Y=this.startNode();return Y.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),J.body=this.finishNode(Y,"TSInterfaceBody"),this.finishNode(J,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(J){return J.id=this.parseIdentifier(),this.checkIdentifier(J.id,2),J.typeAnnotation=this.tsInType(()=>{if(J.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let X=this.startNode();return this.next(),this.finishNode(X,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(J,"TSTypeAliasDeclaration")}tsInTopLevelContext(J){if(this.curContext()!==uD.brace){let X=this.state.context;this.state.context=[X[0]];try{return J()}finally{this.state.context=X}}else return J()}tsInType(J){let X=this.state.inType;this.state.inType=!0;try{return J()}finally{this.state.inType=X}}tsInDisallowConditionalTypesContext(J){let X=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return J()}finally{this.state.inDisallowConditionalTypesContext=X}}tsInAllowConditionalTypesContext(J){let X=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return J()}finally{this.state.inDisallowConditionalTypesContext=X}}tsEatThenParseType(J){if(this.match(J))return this.tsNextThenParseType()}tsExpectThenParseType(J){return this.tsInType(()=>{return this.expect(J),this.tsParseType()})}tsNextThenParseType(){return this.tsInType(()=>{return this.next(),this.tsParseType()})}tsParseEnumMember(){let J=this.startNode();if(J.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29))J.initializer=super.parseMaybeAssignAllowIn();return this.finishNode(J,"TSEnumMember")}tsParseEnumDeclaration(J,X={}){if(X.const)J.const=!0;if(X.declare)J.declare=!0;return this.expectContextual(126),J.id=this.parseIdentifier(),this.checkIdentifier(J.id,J.const?8971:8459),this.expect(5),J.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(J,"TSEnumDeclaration")}tsParseEnumBody(){let J=this.startNode();return this.expect(5),J.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(J,"TSEnumBody")}tsParseModuleBlock(){let J=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(J.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(J,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(J,X=!1){if(J.id=this.parseIdentifier(),!X)this.checkIdentifier(J.id,1024);if(this.eat(16)){let Y=this.startNode();this.tsParseModuleOrNamespaceDeclaration(Y,!0),J.body=Y}else this.scope.enter(1024),this.prodParam.enter(0),J.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(J,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(J){if(this.isContextual(112))J.kind="global",J.global=!0,J.id=this.parseIdentifier();else if(this.match(134))J.kind="module",J.id=super.parseStringLiteral(this.state.value);else this.unexpected();if(this.match(5))this.scope.enter(1024),this.prodParam.enter(0),J.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();else this.semicolon();return this.finishNode(J,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(J,X,Y){J.isExport=Y||!1,J.id=X||this.parseIdentifier(),this.checkIdentifier(J.id,4096),this.expect(29);let Q=this.tsParseModuleReference();if(J.importKind==="type"&&Q.type!=="TSExternalModuleReference")this.raise(YD.ImportAliasHasImportType,Q);return J.moduleReference=Q,this.semicolon(),this.finishNode(J,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let J=this.startNode();if(this.expectContextual(119),this.expect(10),!this.match(134))this.unexpected();return J.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(J,"TSExternalModuleReference")}tsLookAhead(J){let X=this.state.clone(),Y=J();return this.state=X,Y}tsTryParseAndCatch(J){let X=this.tryParse((Y)=>J()||Y());if(X.aborted||!X.node)return;if(X.error)this.state=X.failState;return X.node}tsTryParse(J){let X=this.state.clone(),Y=J();if(Y!==void 0&&Y!==!1)return Y;this.state=X}tsTryParseDeclare(J){if(this.isLineTerminator())return;let X=this.state.type;return this.tsInAmbientContext(()=>{switch(X){case 68:return J.declare=!0,super.parseFunctionStatement(J,!1,!1);case 80:return J.declare=!0,this.parseClass(J,!0,!1);case 126:return this.tsParseEnumDeclaration(J,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(J);case 100:if(this.state.containsEsc)return;case 75:case 74:if(!this.match(75)||!this.isLookaheadContextual("enum"))return J.declare=!0,this.parseVarStatement(J,this.state.value,!0);return this.expect(75),this.tsParseEnumDeclaration(J,{const:!0,declare:!0});case 107:if(this.isUsing())return this.raise(YD.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),J.declare=!0,this.parseVarStatement(J,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(YD.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),J.declare=!0,this.next(),this.parseVarStatement(J,"await using",!0);break;case 129:{let Y=this.tsParseInterfaceDeclaration(J,{declare:!0});if(Y)return Y}default:if(gD(X))return this.tsParseDeclaration(J,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(J,X,Y,Q){switch(X){case 124:if(this.tsCheckLineTerminator(Y)&&(this.match(80)||gD(this.state.type)))return this.tsParseAbstractDeclaration(J,Q);break;case 127:if(this.tsCheckLineTerminator(Y)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(J);else if(gD(this.state.type))return J.kind="module",this.tsParseModuleOrNamespaceDeclaration(J)}break;case 128:if(this.tsCheckLineTerminator(Y)&&gD(this.state.type))return J.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(J);break;case 130:if(this.tsCheckLineTerminator(Y)&&gD(this.state.type))return this.tsParseTypeAliasDeclaration(J);break}}tsCheckLineTerminator(J){if(J){if(this.hasFollowingLineBreak())return!1;return this.next(),!0}return!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(J){if(!this.match(47))return;let X=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let Y=this.tsTryParseAndCatch(()=>{let Q=this.startNodeAt(J);return Q.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(Q),Q.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),Q});if(this.state.maybeInArrowParameters=X,!Y)return;return super.parseArrowExpression(Y,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==47)return;return this.tsParseTypeArguments()}tsParseTypeArguments(){let J=this.startNode();if(J.params=this.tsInType(()=>this.tsInTopLevelContext(()=>{return this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))})),J.params.length===0)this.raise(YD.EmptyTypeArguments,J);else if(!this.state.inType&&this.curContext()===uD.brace)this.reScan_lt_gt();return this.expect(48),this.finishNode(J,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return QWD(this.state.type)}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return!1;return super.isExportDefaultSpecifier()}parseBindingElement(J,X){let Y=X.length?X[0].loc.start:this.state.startLoc,Q={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},Q);let{accessibility:U,override:F,readonly:W}=Q;if(!(J&4)&&(U||W||F))this.raise(YD.UnexpectedParameterModifier,Y);let K=this.parseMaybeDefault();if(J&2)this.parseFunctionParamType(K);let q=this.parseMaybeDefault(K.loc.start,K);if(U||W||F){let G=this.startNodeAt(Y);if(X.length)G.decorators=X;if(U)G.accessibility=U;if(W)G.readonly=W;if(F)G.override=F;if(q.type!=="Identifier"&&q.type!=="AssignmentPattern")this.raise(YD.UnsupportedParameterPropertyKind,G);return G.parameter=q,this.finishNode(G,"TSParameterProperty")}if(X.length)K.decorators=X;return q}isSimpleParameter(J){return J.type==="TSParameterProperty"&&super.isSimpleParameter(J.parameter)||super.isSimpleParameter(J)}tsDisallowOptionalPattern(J){for(let X of J.params)if(X.type!=="Identifier"&&X.optional&&!this.state.isAmbientContext)this.raise(YD.PatternIsOptional,X)}setArrowFunctionParameters(J,X,Y){super.setArrowFunctionParameters(J,X,Y),this.tsDisallowOptionalPattern(J)}parseFunctionBodyAndFinish(J,X,Y=!1){if(this.match(14))J.returnType=this.tsParseTypeOrTypePredicateAnnotation(14);let Q=X==="FunctionDeclaration"?"TSDeclareFunction":X==="ClassMethod"||X==="ClassPrivateMethod"?"TSDeclareMethod":void 0;if(Q&&!this.match(5)&&this.isLineTerminator())return this.finishNode(J,Q);if(Q==="TSDeclareFunction"&&this.state.isAmbientContext){if(this.raise(YD.DeclareFunctionHasImplementation,J),J.declare)return super.parseFunctionBodyAndFinish(J,Q,Y)}return this.tsDisallowOptionalPattern(J),super.parseFunctionBodyAndFinish(J,X,Y)}registerFunctionStatementId(J){if(!J.body&&J.id)this.checkIdentifier(J.id,1024);else super.registerFunctionStatementId(J)}tsCheckForInvalidTypeCasts(J){J.forEach((X)=>{if((X==null?void 0:X.type)==="TSTypeCastExpression")this.raise(YD.UnexpectedTypeAnnotation,X.typeAnnotation)})}toReferencedList(J,X){return this.tsCheckForInvalidTypeCasts(J),J}parseArrayLike(J,X,Y){let Q=super.parseArrayLike(J,X,Y);if(Q.type==="ArrayExpression")this.tsCheckForInvalidTypeCasts(Q.elements);return Q}parseSubscript(J,X,Y,Q){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let F=this.startNodeAt(X);return F.expression=J,this.finishNode(F,"TSNonNullExpression")}let U=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(Y)return Q.stop=!0,J;Q.optionalChainMember=U=!0,this.next()}if(this.match(47)||this.match(51)){let F,W=this.tsTryParseAndCatch(()=>{if(!Y&&this.atPossibleAsyncArrow(J)){let Z=this.tsTryParseGenericAsyncArrowFunction(X);if(Z)return Q.stop=!0,Z}let K=this.tsParseTypeArgumentsInExpression();if(!K)return;if(U&&!this.match(10)){F=this.state.curPosition();return}if(YU(this.state.type)){let Z=super.parseTaggedTemplateExpression(J,X,Q);return Z.typeParameters=K,Z}if(!Y&&this.eat(10)){let Z=this.startNodeAt(X);if(Z.callee=J,Z.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(Z.arguments),Z.typeParameters=K,Q.optionalChainMember)Z.optional=U;return this.finishCallExpression(Z,Q.optionalChainMember)}let q=this.state.type;if(q===48||q===52||q!==10&&q!==93&&q!==120&&U3(q)&&!this.hasPrecedingLineBreak())return;let G=this.startNodeAt(X);return G.expression=J,G.typeParameters=K,this.finishNode(G,"TSInstantiationExpression")});if(F)this.unexpected(F,10);if(W){if(W.type==="TSInstantiationExpression"){if(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)this.raise(YD.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc);if(!this.match(16)&&!this.match(18))W.expression=super.stopParseSubscript(J,Q)}return W}}return super.parseSubscript(J,X,Y,Q)}parseNewCallee(J){var X;super.parseNewCallee(J);let{callee:Y}=J;if(Y.type==="TSInstantiationExpression"&&!((X=Y.extra)!=null&&X.parenthesized))J.typeParameters=Y.typeParameters,J.callee=Y.expression}parseExprOp(J,X,Y){let Q;if(JU(58)>Y&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(Q=this.isContextual(120)))){let U=this.startNodeAt(X);return U.expression=J,U.typeAnnotation=this.tsInType(()=>{if(this.next(),this.match(75)){if(Q)this.raise(M.UnexpectedKeyword,this.state.startLoc,{keyword:"const"});return this.tsParseTypeReference()}return this.tsParseType()}),this.finishNode(U,Q?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(U,X,Y)}return super.parseExprOp(J,X,Y)}checkReservedWord(J,X,Y,Q){if(!this.state.isAmbientContext)super.checkReservedWord(J,X,Y,Q)}checkImportReflection(J){if(super.checkImportReflection(J),J.module&&J.importKind!=="value")this.raise(YD.ImportReflectionHasImportType,J.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(J){if(super.isPotentialImportPhase(J))return!0;if(this.isContextual(130)){let X=this.lookaheadCharCode();return J?X===123||X===42:X!==61}return!J&&this.isContextual(87)}applyImportPhase(J,X,Y,Q){if(super.applyImportPhase(J,X,Y,Q),X)J.exportKind=Y==="type"?"type":"value";else J.importKind=Y==="type"||Y==="typeof"?Y:"value"}parseImport(J){if(this.match(134))return J.importKind="value",super.parseImport(J);let X;if(gD(this.state.type)&&this.lookaheadCharCode()===61)return J.importKind="value",this.tsParseImportEqualsDeclaration(J);else if(this.isContextual(130)){let Y=this.parseMaybeImportPhase(J,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(J,Y);else X=super.parseImportSpecifiersAndAfter(J,Y)}else X=super.parseImport(J);if(X.importKind==="type"&&X.specifiers.length>1&&X.specifiers[0].type==="ImportDefaultSpecifier")this.raise(YD.TypeImportCannotSpecifyDefaultAndNamed,X);return X}parseExport(J,X){if(this.match(83)){let Y=J;this.next();let Q=null;if(this.isContextual(130)&&this.isPotentialImportPhase(!1))Q=this.parseMaybeImportPhase(Y,!1);else Y.importKind="value";return this.tsParseImportEqualsDeclaration(Y,Q,!0)}else if(this.eat(29)){let Y=J;return Y.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(Y,"TSExportAssignment")}else if(this.eatContextual(93)){let Y=J;return this.expectContextual(128),Y.id=this.parseIdentifier(),this.semicolon(),this.finishNode(Y,"TSNamespaceExportDeclaration")}else return super.parseExport(J,X)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let J=this.startNode();return this.next(),J.abstract=!0,this.parseClass(J,!0,!0)}if(this.match(129)){let J=this.tsParseInterfaceDeclaration(this.startNode());if(J)return J}return super.parseExportDefaultExpression()}parseVarStatement(J,X,Y=!1){let{isAmbientContext:Q}=this.state,U=super.parseVarStatement(J,X,Y||Q);if(!Q)return U;if(!J.declare&&(X==="using"||X==="await using"))return this.raiseOverwrite(YD.UsingDeclarationInAmbientContext,J,X),U;for(let{id:F,init:W}of U.declarations){if(!W)continue;if(X==="var"||X==="let"||!!F.typeAnnotation)this.raise(YD.InitializerNotAllowedInAmbientContext,W);else if(!hWD(W,this.hasPlugin("estree")))this.raise(YD.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,W)}return U}parseStatementContent(J,X){if(!this.state.containsEsc)switch(this.state.type){case 75:{if(this.isLookaheadContextual("enum")){let Y=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(Y,{const:!0})}break}case 124:case 125:{if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let Y=this.state.type,Q=this.startNode();this.next();let U=Y===125?this.tsTryParseDeclare(Q):this.tsParseAbstractDeclaration(Q,X);if(U){if(Y===125)U.declare=!0;return U}else return Q.expression=this.createIdentifier(this.startNodeAt(Q.loc.start),Y===125?"declare":"abstract"),this.semicolon(!1),this.finishNode(Q,"ExpressionStatement")}break}case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:{if(this.lookaheadCharCode()===123){let Q=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(Q)}break}case 129:{let Y=this.tsParseInterfaceDeclaration(this.startNode());if(Y)return Y;break}case 127:{if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let Y=this.startNode();return this.next(),this.tsParseDeclaration(Y,127,!1,X)}break}case 128:{if(this.nextTokenIsIdentifierOnSameLine()){let Y=this.startNode();return this.next(),this.tsParseDeclaration(Y,128,!1,X)}break}case 130:{if(this.nextTokenIsIdentifierOnSameLine()){let Y=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(Y)}break}}return super.parseStatementContent(J,X)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(J,X){return X.some((Y)=>{if(nf(Y))return J.accessibility===Y;return!!J[Y]})}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(J,X,Y){let Q=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:Q,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:YD.InvalidModifierOnTypeParameterPositions},X);let U=()=>{if(this.tsIsStartOfStaticBlocks()){if(this.next(),this.next(),this.tsHasSomeModifiers(X,Q))this.raise(YD.StaticBlockCannotHaveModifier,this.state.curPosition());super.parseClassStaticBlock(J,X)}else this.parseClassMemberWithIsStatic(J,X,Y,!!X.static)};if(X.declare)this.tsInAmbientContext(U);else U()}parseClassMemberWithIsStatic(J,X,Y,Q){let U=this.tsTryParseIndexSignature(X);if(U){if(J.body.push(U),X.abstract)this.raise(YD.IndexSignatureHasAbstract,X);if(X.accessibility)this.raise(YD.IndexSignatureHasAccessibility,X,{modifier:X.accessibility});if(X.declare)this.raise(YD.IndexSignatureHasDeclare,X);if(X.override)this.raise(YD.IndexSignatureHasOverride,X);return}if(!this.state.inAbstractClass&&X.abstract)this.raise(YD.NonAbstractClassHasAbstractMethod,X);if(X.override){if(!Y.hadSuperClass)this.raise(YD.OverrideNotInSubClass,X)}super.parseClassMemberWithIsStatic(J,X,Y,Q)}parsePostMemberNameModifiers(J){if(this.eat(17))J.optional=!0;if(J.readonly&&this.match(10))this.raise(YD.ClassMethodHasReadonly,J);if(J.declare&&this.match(10))this.raise(YD.ClassMethodHasDeclare,J)}shouldParseExportDeclaration(){if(this.tsIsDeclarationStart())return!0;return super.shouldParseExportDeclaration()}parseConditional(J,X,Y){if(!this.match(17))return J;if(this.state.maybeInArrowParameters){let Q=this.lookaheadCharCode();if(Q===44||Q===61||Q===58||Q===41)return this.setOptionalParametersError(Y),J}return super.parseConditional(J,X,Y)}parseParenItem(J,X){let Y=super.parseParenItem(J,X);if(this.eat(17))Y.optional=!0,this.resetEndLocation(J);if(this.match(14)){let Q=this.startNodeAt(X);return Q.expression=J,Q.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(Q,"TSTypeCastExpression")}return J}parseExportDeclaration(J){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(J));let X=this.state.startLoc,Y=this.eatContextual(125);if(Y&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(YD.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let U=gD(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(J);if(!U)return null;if(U.type==="TSInterfaceDeclaration"||U.type==="TSTypeAliasDeclaration"||Y)J.exportKind="type";if(Y&&U.type!=="TSImportEqualsDeclaration")this.resetStartLocation(U,X),U.declare=!0;return U}parseClassId(J,X,Y,Q){if((!X||Y)&&this.isContextual(113))return;super.parseClassId(J,X,Y,J.declare?1024:8331);let U=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);if(U)J.typeParameters=U}parseClassPropertyAnnotation(J){if(!J.optional){if(this.eat(35))J.definite=!0;else if(this.eat(17))J.optional=!0}let X=this.tsTryParseTypeAnnotation();if(X)J.typeAnnotation=X}parseClassProperty(J){if(this.parseClassPropertyAnnotation(J),this.state.isAmbientContext&&!(J.readonly&&!J.typeAnnotation)&&this.match(29))this.raise(YD.DeclareClassFieldHasInitializer,this.state.startLoc);if(J.abstract&&this.match(29)){let{key:X}=J;this.raise(YD.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:X.type==="Identifier"&&!J.computed?X.name:`[${this.input.slice(this.offsetToSourcePos(X.start),this.offsetToSourcePos(X.end))}]`})}return super.parseClassProperty(J)}parseClassPrivateProperty(J){if(J.abstract)this.raise(YD.PrivateElementHasAbstract,J);if(J.accessibility)this.raise(YD.PrivateElementHasAccessibility,J,{modifier:J.accessibility});return this.parseClassPropertyAnnotation(J),super.parseClassPrivateProperty(J)}parseClassAccessorProperty(J){if(this.parseClassPropertyAnnotation(J),J.optional)this.raise(YD.AccessorCannotBeOptional,J);return super.parseClassAccessorProperty(J)}pushClassMethod(J,X,Y,Q,U,F){let W=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(W&&U)this.raise(YD.ConstructorHasTypeParameters,W);let{declare:K=!1,kind:q}=X;if(K&&(q==="get"||q==="set"))this.raise(YD.DeclareAccessor,X,{kind:q});if(W)X.typeParameters=W;super.pushClassMethod(J,X,Y,Q,U,F)}pushClassPrivateMethod(J,X,Y,Q){let U=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(U)X.typeParameters=U;super.pushClassPrivateMethod(J,X,Y,Q)}declareClassPrivateMethodInScope(J,X){if(J.type==="TSDeclareMethod")return;if(J.type==="MethodDefinition"&&J.value.body==null)return;super.declareClassPrivateMethodInScope(J,X)}parseClassSuper(J){if(super.parseClassSuper(J),J.superClass){if(J.superClass.type==="TSInstantiationExpression"){let X=J.superClass,Y=X.expression;this.takeSurroundingComments(Y,Y.start,Y.end);let Q=X.typeParameters;this.takeSurroundingComments(Q,Q.start,Q.end),J.superClass=Y,J.superTypeParameters=Q}else if(this.match(47)||this.match(51))J.superTypeParameters=this.tsParseTypeArgumentsInExpression()}if(this.eatContextual(113))J.implements=this.tsParseHeritageClause("implements")}parseObjPropValue(J,X,Y,Q,U,F,W){let K=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(K)J.typeParameters=K;return super.parseObjPropValue(J,X,Y,Q,U,F,W)}parseFunctionParams(J,X){let Y=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(Y)J.typeParameters=Y;super.parseFunctionParams(J,X)}parseVarId(J,X){if(super.parseVarId(J,X),J.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35))J.definite=!0;let Y=this.tsTryParseTypeAnnotation();if(Y)J.id.typeAnnotation=Y,this.resetEndLocation(J.id)}parseAsyncArrowFromCallExpression(J,X){if(this.match(14))J.returnType=this.tsParseTypeAnnotation();return super.parseAsyncArrowFromCallExpression(J,X)}parseMaybeAssign(J,X){var Y,Q,U,F,W;let K,q,G;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(K=this.state.clone(),q=this.tryParse(()=>super.parseMaybeAssign(J,X),K),!q.error)return q.node;let{context:z}=this.state,I=z[z.length-1];if(I===uD.j_oTag||I===uD.j_expr)z.pop()}if(!((Y=q)!=null&&Y.error)&&!this.match(47))return super.parseMaybeAssign(J,X);if(!K||K===this.state)K=this.state.clone();let Z,H=this.tryParse((z)=>{var I,B;Z=this.tsParseTypeParameters(this.tsParseConstModifier);let N=super.parseMaybeAssign(J,X);if(N.type!=="ArrowFunctionExpression"||(I=N.extra)!=null&&I.parenthesized)z();if(((B=Z)==null?void 0:B.params.length)!==0)this.resetStartLocationFromNode(N,Z);return N.typeParameters=Z,N},K);if(!H.error&&!H.aborted){if(Z)this.reportReservedArrowTypeParam(Z);return H.node}if(!q){if(pf(!this.hasPlugin("jsx")),G=this.tryParse(()=>super.parseMaybeAssign(J,X),K),!G.error)return G.node}if((Q=q)!=null&&Q.node)return this.state=q.failState,q.node;if(H.node){if(this.state=H.failState,Z)this.reportReservedArrowTypeParam(Z);return H.node}if((U=G)!=null&&U.node)return this.state=G.failState,G.node;throw((F=q)==null?void 0:F.error)||H.error||((W=G)==null?void 0:W.error)}reportReservedArrowTypeParam(J){var X;if(J.params.length===1&&!J.params[0].constraint&&!((X=J.extra)!=null&&X.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike"))this.raise(YD.ReservedArrowTypeParam,J)}parseMaybeUnary(J,X){if(!this.hasPlugin("jsx")&&this.match(47))return this.tsParseTypeAssertion();return super.parseMaybeUnary(J,X)}parseArrow(J){if(this.match(14)){let X=this.tryParse((Y)=>{let Q=this.tsParseTypeOrTypePredicateAnnotation(14);if(this.canInsertSemicolon()||!this.match(19))Y();return Q});if(X.aborted)return;if(!X.thrown){if(X.error)this.state=X.failState;J.returnType=X.node}}return super.parseArrow(J)}parseFunctionParamType(J){if(this.eat(17))J.optional=!0;let X=this.tsTryParseTypeAnnotation();if(X)J.typeAnnotation=X;return this.resetEndLocation(J),J}isAssignable(J,X){switch(J.type){case"TSTypeCastExpression":return this.isAssignable(J.expression,X);case"TSParameterProperty":return!0;default:return super.isAssignable(J,X)}}toAssignable(J,X=!1){switch(J.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(J,X);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(X)this.expressionScope.recordArrowParameterBindingError(YD.UnexpectedTypeCastInParameter,J);else this.raise(YD.UnexpectedTypeCastInParameter,J);this.toAssignable(J.expression,X);break;case"AssignmentExpression":if(!X&&J.left.type==="TSTypeCastExpression")J.left=this.typeCastToParameter(J.left);default:super.toAssignable(J,X)}}toAssignableParenthesizedExpression(J,X){switch(J.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(J.expression,X);break;default:super.toAssignable(J,X)}}checkToRestConversion(J,X){switch(J.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(J.expression,!1);break;default:super.checkToRestConversion(J,X)}}isValidLVal(J,X,Y,Q){switch(J){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(Q!==64||!Y)&&["expression",!0];default:return super.isValidLVal(J,X,Y,Q)}}parseBindingAtom(){if(this.state.type===78)return this.parseIdentifier(!0);return super.parseBindingAtom()}parseMaybeDecoratorArguments(J,X){if(this.match(47)||this.match(51)){let Y=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let Q=super.parseMaybeDecoratorArguments(J,X);return Q.typeParameters=Y,Q}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(J,X)}checkCommaAfterRest(J){if(this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===J)return this.next(),!1;return super.checkCommaAfterRest(J)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(J,X){let Y=super.parseMaybeDefault(J,X);if(Y.type==="AssignmentPattern"&&Y.typeAnnotation&&Y.right.start<Y.typeAnnotation.start)this.raise(YD.TypeAnnotationAfterAssign,Y.typeAnnotation);return Y}getTokenFromCode(J){if(this.state.inType){if(J===62){this.finishOp(48,1);return}if(J===60){this.finishOp(47,1);return}}super.getTokenFromCode(J)}reScan_lt_gt(){let{type:J}=this.state;if(J===47)this.state.pos-=1,this.readToken_lt();else if(J===48)this.state.pos-=1,this.readToken_gt()}reScan_lt(){let{type:J}=this.state;if(J===51)return this.state.pos-=2,this.finishOp(47,1),47;return J}toAssignableListItem(J,X,Y){let Q=J[X];if(Q.type==="TSTypeCastExpression")J[X]=this.typeCastToParameter(Q);super.toAssignableListItem(J,X,Y)}typeCastToParameter(J){return J.expression.typeAnnotation=J.typeAnnotation,this.resetEndLocation(J.expression,J.typeAnnotation.loc.end),J.expression}shouldParseArrow(J){if(this.match(14))return J.every((X)=>this.isAssignable(X,!0));return super.shouldParseArrow(J)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(J){if(this.match(47)||this.match(51)){let X=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());if(X)J.typeParameters=X}return super.jsxParseOpeningElementAfterName(J)}getGetterSetterExpectedParamCount(J){let X=super.getGetterSetterExpectedParamCount(J),Q=this.getObjectOrClassMethodParams(J)[0];return Q&&this.isThisParam(Q)?X+1:X}parseCatchClauseParam(){let J=super.parseCatchClauseParam(),X=this.tsTryParseTypeAnnotation();if(X)J.typeAnnotation=X,this.resetEndLocation(J);return J}tsInAmbientContext(J){let{isAmbientContext:X,strict:Y}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return J()}finally{this.state.isAmbientContext=X,this.state.strict=Y}}parseClass(J,X,Y){let Q=this.state.inAbstractClass;this.state.inAbstractClass=!!J.abstract;try{return super.parseClass(J,X,Y)}finally{this.state.inAbstractClass=Q}}tsParseAbstractDeclaration(J,X){if(this.match(80))return J.abstract=!0,this.maybeTakeDecorators(X,this.parseClass(J,!0,!1));else if(this.isContextual(129))if(!this.hasFollowingLineBreak())return J.abstract=!0,this.raise(YD.NonClassMethodPropertyHasAbstractModifier,J),this.tsParseInterfaceDeclaration(J);else return null;throw this.unexpected(null,80)}parseMethod(J,X,Y,Q,U,F,W){let K=super.parseMethod(J,X,Y,Q,U,F,W);if(K.abstract||K.type==="TSAbstractMethodDefinition"){if((this.hasPlugin("estree")?K.value:K).body){let{key:Z}=K;this.raise(YD.AbstractMethodHasImplementation,K,{methodName:Z.type==="Identifier"&&!K.computed?Z.name:`[${this.input.slice(this.offsetToSourcePos(Z.start),this.offsetToSourcePos(Z.end))}]`})}}return K}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){if(this.shouldParseAsAmbientContext())this.state.isAmbientContext=!0;return super.parse()}getExpression(){if(this.shouldParseAsAmbientContext())this.state.isAmbientContext=!0;return super.getExpression()}parseExportSpecifier(J,X,Y,Q){if(!X&&Q)return this.parseTypeOnlyImportExportSpecifier(J,!1,Y),this.finishNode(J,"ExportSpecifier");return J.exportKind="value",super.parseExportSpecifier(J,X,Y,Q)}parseImportSpecifier(J,X,Y,Q,U){if(!X&&Q)return this.parseTypeOnlyImportExportSpecifier(J,!0,Y),this.finishNode(J,"ImportSpecifier");return J.importKind="value",super.parseImportSpecifier(J,X,Y,Q,Y?4098:4096)}parseTypeOnlyImportExportSpecifier(J,X,Y){let Q=X?"imported":"local",U=X?"local":"exported",F=J[Q],W,K=!1,q=!0,G=F.loc.start;if(this.isContextual(93)){let H=this.parseIdentifier();if(this.isContextual(93)){let z=this.parseIdentifier();if(F6(this.state.type))K=!0,F=H,W=X?this.parseIdentifier():this.parseModuleExportName(),q=!1;else W=z,q=!1}else if(F6(this.state.type))q=!1,W=X?this.parseIdentifier():this.parseModuleExportName();else K=!0,F=H}else if(F6(this.state.type))if(K=!0,X){if(F=this.parseIdentifier(!0),!this.isContextual(93))this.checkReservedWord(F.name,F.loc.start,!0,!0)}else F=this.parseModuleExportName();if(K&&Y)this.raise(X?YD.TypeModifierIsUsedInTypeImports:YD.TypeModifierIsUsedInTypeExports,G);J[Q]=F,J[U]=W;let Z=X?"importKind":"exportKind";if(J[Z]=K?"type":"value",q&&this.eatContextual(93))J[U]=X?this.parseIdentifier():this.parseModuleExportName();if(!J[U])J[U]=this.cloneIdentifier(J[Q]);if(X)this.checkIdentifier(J[U],K?4098:4096)}fillOptionalPropertiesForTSESLint(J){var X,Y,Q,U,F,W,K,q,G,Z,H,z,I,B,N,V,O,j,v,A,C,u,_,y,E,d,c,p,o,R,w,L,P,f,x,s,g,i,HD,ND,PD,f$,H8,c1,bV,SV,CV,kV;switch(J.type){case"ExpressionStatement":(X=J.directive)!=null||(J.directive=void 0);return;case"RestElement":J.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":(Y=J.decorators)!=null||(J.decorators=[]),(Q=J.optional)!=null||(J.optional=!1),(U=J.typeAnnotation)!=null||(J.typeAnnotation=void 0);return;case"TSParameterProperty":(F=J.accessibility)!=null||(J.accessibility=void 0),(W=J.decorators)!=null||(J.decorators=[]),(K=J.override)!=null||(J.override=!1),(q=J.readonly)!=null||(J.readonly=!1),(G=J.static)!=null||(J.static=!1);return;case"TSEmptyBodyFunctionExpression":J.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":(Z=J.declare)!=null||(J.declare=!1),(H=J.returnType)!=null||(J.returnType=void 0),(z=J.typeParameters)!=null||(J.typeParameters=void 0);return;case"Property":(I=J.optional)!=null||(J.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":(B=J.optional)!=null||(J.optional=!1);case"TSIndexSignature":(N=J.accessibility)!=null||(J.accessibility=void 0),(V=J.readonly)!=null||(J.readonly=!1),(O=J.static)!=null||(J.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":(j=J.declare)!=null||(J.declare=!1),(v=J.definite)!=null||(J.definite=!1),(A=J.readonly)!=null||(J.readonly=!1),(C=J.typeAnnotation)!=null||(J.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":(u=J.accessibility)!=null||(J.accessibility=void 0),(_=J.decorators)!=null||(J.decorators=[]),(y=J.override)!=null||(J.override=!1),(E=J.optional)!=null||(J.optional=!1);return;case"ClassExpression":(d=J.id)!=null||(J.id=null);case"ClassDeclaration":(c=J.abstract)!=null||(J.abstract=!1),(p=J.declare)!=null||(J.declare=!1),(o=J.decorators)!=null||(J.decorators=[]),(R=J.implements)!=null||(J.implements=[]),(w=J.superTypeArguments)!=null||(J.superTypeArguments=void 0),(L=J.typeParameters)!=null||(J.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":(P=J.declare)!=null||(J.declare=!1);return;case"VariableDeclarator":(f=J.definite)!=null||(J.definite=!1);return;case"TSEnumDeclaration":(x=J.const)!=null||(J.const=!1),(s=J.declare)!=null||(J.declare=!1);return;case"TSEnumMember":(g=J.computed)!=null||(J.computed=!1);return;case"TSImportType":(i=J.qualifier)!=null||(J.qualifier=null),(HD=J.options)!=null||(J.options=null);return;case"TSInterfaceDeclaration":(ND=J.declare)!=null||(J.declare=!1),(PD=J.extends)!=null||(J.extends=[]);return;case"TSMappedType":(f$=J.optional)!=null||(J.optional=!1),(H8=J.readonly)!=null||(J.readonly=void 0);return;case"TSModuleDeclaration":(c1=J.declare)!=null||(J.declare=!1),(bV=J.global)!=null||(J.global=J.kind==="global");return;case"TSTypeParameter":(SV=J.const)!=null||(J.const=!1),(CV=J.in)!=null||(J.in=!1),(kV=J.out)!=null||(J.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(J,X){if(E6(J)){if(WN.lastIndex=X,WN.test(this.input)){let Y=this.codePointAtPos(WN.lastIndex);if(!X8(Y)&&Y!==92)return!1}return!0}else if(J===92)return!0;else return!1}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let J=this.nextTokenInLineStart(),X=this.codePointAtPos(J);return this.chStartsBindingIdentifierAndNotRelationalOperator(X,J)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let J=this.nextTokenInLineStart(),X=this.codePointAtPos(J);return this.chStartsBindingIdentifier(X,J)||X===34||X===39}};function yWD(D){if(D.type!=="MemberExpression")return!1;let{computed:$,property:J}=D;if($&&J.type!=="StringLiteral"&&(J.type!=="TemplateLiteral"||J.expressions.length>0))return!1;return My(D.object)}function hWD(D,$){var J;let{type:X}=D;if((J=D.extra)!=null&&J.parenthesized)return!1;if($){if(X==="Literal"){let{value:Y}=D;if(typeof Y==="string"||typeof Y==="boolean")return!0}}else if(X==="StringLiteral"||X==="BooleanLiteral")return!0;if(Ry(D,$)||mWD(D,$))return!0;if(X==="TemplateLiteral"&&D.expressions.length===0)return!0;if(yWD(D))return!0;return!1}function Ry(D,$){if($)return D.type==="Literal"&&(typeof D.value==="number"||("bigint"in D));return D.type==="NumericLiteral"||D.type==="BigIntLiteral"}function mWD(D,$){if(D.type==="UnaryExpression"){let{operator:J,argument:X}=D;if(J==="-"&&Ry(X,$))return!0}return!1}function My(D){if(D.type==="Identifier")return!0;if(D.type!=="MemberExpression"||D.computed)return!1;return My(D.object)}var rf=v6`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),lWD=(D)=>class extends D{parsePlaceholder(J){if(this.match(133)){let X=this.startNode();return this.next(),this.assertNoSpace(),X.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(X,J)}}finishPlaceholder(J,X){let Y=J;if(!Y.expectedNode||!Y.type)Y=this.finishNode(Y,"Placeholder");return Y.expectedNode=X,Y}getTokenFromCode(J){if(J===37&&this.input.charCodeAt(this.state.pos+1)===37)this.finishOp(133,2);else super.getTokenFromCode(J)}parseExprAtom(J){return this.parsePlaceholder("Expression")||super.parseExprAtom(J)}parseIdentifier(J){return this.parsePlaceholder("Identifier")||super.parseIdentifier(J)}checkReservedWord(J,X,Y,Q){if(J!==void 0)super.checkReservedWord(J,X,Y,Q)}cloneIdentifier(J){let X=super.cloneIdentifier(J);if(X.type==="Placeholder")X.expectedNode=J.expectedNode;return X}cloneStringLiteral(J){if(J.type==="Placeholder")return this.cloneIdentifier(J);return super.cloneStringLiteral(J)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(J,X,Y,Q){return J==="Placeholder"||super.isValidLVal(J,X,Y,Q)}toAssignable(J,X){if(J&&J.type==="Placeholder"&&J.expectedNode==="Expression")J.expectedNode="Pattern";else super.toAssignable(J,X)}chStartsBindingIdentifier(J,X){if(super.chStartsBindingIdentifier(J,X))return!0;let Y=this.nextTokenStart();if(this.input.charCodeAt(Y)===37&&this.input.charCodeAt(Y+1)===37)return!0;return!1}verifyBreakContinue(J,X){var Y;if(((Y=J.label)==null?void 0:Y.type)==="Placeholder")return;super.verifyBreakContinue(J,X)}parseExpressionStatement(J,X){var Y;if(X.type!=="Placeholder"||(Y=X.extra)!=null&&Y.parenthesized)return super.parseExpressionStatement(J,X);if(this.match(14)){let U=J;return U.label=this.finishPlaceholder(X,"Identifier"),this.next(),U.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(U,"LabeledStatement")}this.semicolon();let Q=J;return Q.name=X.name,this.finishPlaceholder(Q,"Statement")}parseBlock(J,X,Y){return this.parsePlaceholder("BlockStatement")||super.parseBlock(J,X,Y)}parseFunctionId(J){return this.parsePlaceholder("Identifier")||super.parseFunctionId(J)}parseClass(J,X,Y){let Q=X?"ClassDeclaration":"ClassExpression";this.next();let U=this.state.strict,F=this.parsePlaceholder("Identifier");if(F)if(this.match(81)||this.match(133)||this.match(5))J.id=F;else if(Y||!X)return J.id=null,J.body=this.finishPlaceholder(F,"ClassBody"),this.finishNode(J,Q);else throw this.raise(rf.ClassNameIsRequired,this.state.startLoc);else this.parseClassId(J,X,Y);return super.parseClassSuper(J),J.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!J.superClass,U),this.finishNode(J,Q)}parseExport(J,X){let Y=this.parsePlaceholder("Identifier");if(!Y)return super.parseExport(J,X);let Q=J;if(!this.isContextual(98)&&!this.match(12))return Q.specifiers=[],Q.source=null,Q.declaration=this.finishPlaceholder(Y,"Declaration"),this.finishNode(Q,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let U=this.startNode();return U.exported=Y,Q.specifiers=[this.finishNode(U,"ExportDefaultSpecifier")],super.parseExport(Q,X)}isExportDefaultSpecifier(){if(this.match(65)){let J=this.nextTokenStart();if(this.isUnparsedContextual(J,"from")){if(this.input.startsWith(f1(133),this.nextTokenStartSince(J+4)))return!0}}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(J,X){var Y;if((Y=J.specifiers)!=null&&Y.length)return!0;return super.maybeParseExportDefaultSpecifier(J,X)}checkExport(J){let{specifiers:X}=J;if(X!=null&&X.length)J.specifiers=X.filter((Y)=>Y.exported.type==="Placeholder");super.checkExport(J),J.specifiers=X}parseImport(J){let X=this.parsePlaceholder("Identifier");if(!X)return super.parseImport(J);if(J.specifiers=[],!this.isContextual(98)&&!this.match(12))return J.source=this.finishPlaceholder(X,"StringLiteral"),this.semicolon(),this.finishNode(J,"ImportDeclaration");let Y=this.startNodeAtNode(X);if(Y.local=X,J.specifiers.push(this.finishNode(Y,"ImportDefaultSpecifier")),this.eat(12)){if(!this.maybeParseStarImportSpecifier(J))this.parseNamedImportSpecifiers(J)}return this.expectContextual(98),J.source=this.parseImportSource(),this.semicolon(),this.finishNode(J,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){if(this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index))this.raise(rf.UnexpectedSpace,this.state.lastTokEndLoc)}},dWD=(D)=>class extends D{parseV8Intrinsic(){if(this.match(54)){let J=this.state.startLoc,X=this.startNode();if(this.next(),gD(this.state.type)){let Y=this.parseIdentifierName(),Q=this.createIdentifier(X,Y);if(this.castNodeTo(Q,"V8IntrinsicIdentifier"),this.match(10))return Q}this.unexpected(J)}}parseExprAtom(J){return this.parseV8Intrinsic()||super.parseExprAtom(J)}},tf=["minimal","fsharp","hack","smart"],of=["^^","@@","^","%","#"];function iWD(D){if(D.has("decorators")){if(D.has("decorators-legacy"))throw Error("Cannot use the decorators and decorators-legacy plugin together");let X=D.get("decorators").decoratorsBeforeExport;if(X!=null&&typeof X!=="boolean")throw Error("'decoratorsBeforeExport' must be a boolean, if specified.");let Y=D.get("decorators").allowCallParenthesized;if(Y!=null&&typeof Y!=="boolean")throw Error("'allowCallParenthesized' must be a boolean.")}if(D.has("flow")&&D.has("typescript"))throw Error("Cannot combine flow and typescript plugins.");if(D.has("placeholders")&&D.has("v8intrinsic"))throw Error("Cannot combine placeholders and v8intrinsic plugins.");if(D.has("pipelineOperator")){var $;let X=D.get("pipelineOperator").proposal;if(!tf.includes(X)){let Y=tf.map((Q)=>`"${Q}"`).join(", ");throw Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${Y}.`)}if(X==="hack"){var J;if(D.has("placeholders"))throw Error("Cannot combine placeholders plugin and Hack-style pipes.");if(D.has("v8intrinsic"))throw Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let Y=D.get("pipelineOperator").topicToken;if(!of.includes(Y)){let Q=of.map((U)=>`"${U}"`).join(", ");throw Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${Q}.`)}if(Y==="#"&&((J=D.get("recordAndTuple"))==null?void 0:J.syntaxType)==="hash")throw Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",D.get("recordAndTuple")])}\`.`)}else if(X==="smart"&&(($=D.get("recordAndTuple"))==null?void 0:$.syntaxType)==="hash")throw Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",D.get("recordAndTuple")])}\`.`)}if(D.has("moduleAttributes")){if(D.has("deprecatedImportAssert")||D.has("importAssertions"))throw Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if(D.get("moduleAttributes").version!=="may-2020")throw Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(D.has("importAssertions")){if(D.has("deprecatedImportAssert"))throw Error("Cannot combine importAssertions and deprecatedImportAssert plugins.")}if(D.has("deprecatedImportAssert"));else if(D.has("importAttributes")&&D.get("importAttributes").deprecatedAssertSyntax)D.set("deprecatedImportAssert",{});if(D.has("recordAndTuple")){let X=D.get("recordAndTuple").syntaxType;if(X!=null){let Y=["hash","bar"];if(!Y.includes(X))throw Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+Y.map((Q)=>`'${Q}'`).join(", "))}}if(D.has("asyncDoExpressions")&&!D.has("doExpressions")){let X=Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw X.missingPlugins="doExpressions",X}if(D.has("optionalChainingAssign")&&D.get("optionalChainingAssign").version!=="2023-07")throw Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(D.has("discardBinding")&&D.get("discardBinding").syntaxType!=="void")throw Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.")}var Ay={estree:rFD,jsx:vWD,flow:LWD,typescript:fWD,v8intrinsic:dWD,placeholders:lWD},cWD=Object.keys(Ay);class vy extends Ly{checkProto(D,$,J,X){if(D.type==="SpreadElement"||this.isObjectMethod(D)||D.computed||D.shorthand)return J;let Y=D.key;if((Y.type==="Identifier"?Y.name:Y.value)==="__proto__"){if($)return this.raise(M.RecordNoProto,Y),!0;if(J)if(X){if(X.doubleProtoLoc===null)X.doubleProtoLoc=Y.loc.start}else this.raise(M.DuplicateProto,Y);return!0}return J}shouldExitDescending(D,$){return D.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(D.start)===$}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(M.ParseExpressionEmptyInput,this.state.startLoc);let D=this.parseExpression();if(!this.match(140))throw this.raise(M.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});if(this.finalizeRemainingComments(),D.comments=this.comments,D.errors=this.state.errors,this.optionFlags&256)D.tokens=this.tokens;return D}parseExpression(D,$){if(D)return this.disallowInAnd(()=>this.parseExpressionBase($));return this.allowInAnd(()=>this.parseExpressionBase($))}parseExpressionBase(D){let $=this.state.startLoc,J=this.parseMaybeAssign(D);if(this.match(12)){let X=this.startNodeAt($);X.expressions=[J];while(this.eat(12))X.expressions.push(this.parseMaybeAssign(D));return this.toReferencedList(X.expressions),this.finishNode(X,"SequenceExpression")}return J}parseMaybeAssignDisallowIn(D,$){return this.disallowInAnd(()=>this.parseMaybeAssign(D,$))}parseMaybeAssignAllowIn(D,$){return this.allowInAnd(()=>this.parseMaybeAssign(D,$))}setOptionalParametersError(D){D.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(D,$){let J=this.state.startLoc,X=this.isContextual(108);if(X){if(this.prodParam.hasYield){this.next();let F=this.parseYield(J);if($)F=$.call(this,F,J);return F}}let Y;if(D)Y=!1;else D=new K3,Y=!0;let{type:Q}=this.state;if(Q===10||gD(Q))this.state.potentialArrowAt=this.state.start;let U=this.parseMaybeConditional(D);if($)U=$.call(this,U,J);if(eFD(this.state.type)){let F=this.startNodeAt(J),W=this.state.value;if(F.operator=W,this.match(29)){this.toAssignable(U,!0),F.left=U;let K=J.index;if(D.doubleProtoLoc!=null&&D.doubleProtoLoc.index>=K)D.doubleProtoLoc=null;if(D.shorthandAssignLoc!=null&&D.shorthandAssignLoc.index>=K)D.shorthandAssignLoc=null;if(D.privateKeyLoc!=null&&D.privateKeyLoc.index>=K)this.checkDestructuringPrivate(D),D.privateKeyLoc=null;if(D.voidPatternLoc!=null&&D.voidPatternLoc.index>=K)D.voidPatternLoc=null}else F.left=U;return this.next(),F.right=this.parseMaybeAssign(),this.checkLVal(U,this.finishNode(F,"AssignmentExpression"),void 0,void 0,void 0,void 0,W==="||="||W==="&&="||W==="??="),F}else if(Y)this.checkExpressionErrors(D,!0);if(X){let{type:F}=this.state;if((this.hasPlugin("v8intrinsic")?U3(F):U3(F)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(M.YieldNotInGeneratorFunction,J),this.parseYield(J)}return U}parseMaybeConditional(D){let $=this.state.startLoc,J=this.state.potentialArrowAt,X=this.parseExprOps(D);if(this.shouldExitDescending(X,J))return X;return this.parseConditional(X,$,D)}parseConditional(D,$,J){if(this.eat(17)){let X=this.startNodeAt($);return X.test=D,X.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),X.alternate=this.parseMaybeAssign(),this.finishNode(X,"ConditionalExpression")}return D}parseMaybeUnaryOrPrivate(D){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(D)}parseExprOps(D){let $=this.state.startLoc,J=this.state.potentialArrowAt,X=this.parseMaybeUnaryOrPrivate(D);if(this.shouldExitDescending(X,J))return X;return this.parseExprOp(X,$,-1)}parseExprOp(D,$,J){if(this.isPrivateName(D)){let Y=this.getPrivateNameSV(D);if(J>=JU(58)||!this.prodParam.hasIn||!this.match(58))this.raise(M.PrivateInExpectedIn,D,{identifierName:Y});this.classScope.usePrivateName(Y,D.loc.start)}let X=this.state.type;if($WD(X)&&(this.prodParam.hasIn||!this.match(58))){let Y=JU(X);if(Y>J){if(X===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return D;this.checkPipelineAtInfixOperator(D,$)}let Q=this.startNodeAt($);Q.left=D,Q.operator=this.state.value;let U=X===41||X===42,F=X===40;if(F)Y=JU(42);if(this.next(),X===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])){if(this.state.type===96&&this.prodParam.hasAwait)throw this.raise(M.UnexpectedAwaitAfterPipelineBody,this.state.startLoc)}Q.right=this.parseExprOpRightExpr(X,Y);let W=this.finishNode(Q,U||F?"LogicalExpression":"BinaryExpression"),K=this.state.type;if(F&&(K===41||K===42)||U&&K===40)throw this.raise(M.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(W,$,J)}}return D}parseExprOpRightExpr(D,$){let J=this.state.startLoc;switch(D){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>{return this.parseHackPipeBody()});case"fsharp":return this.withSoloAwaitPermittingContext(()=>{return this.parseFSharpPipelineBody($)})}if(this.getPluginOption("pipelineOperator","proposal")==="smart")return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(M.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(D,$),J)});default:return this.parseExprOpBaseRightExpr(D,$)}}parseExprOpBaseRightExpr(D,$){let J=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),J,UWD(D)?$-1:$)}parseHackPipeBody(){var D;let{startLoc:$}=this.state,J=this.parseMaybeAssign();if(mFD.has(J.type)&&!((D=J.extra)!=null&&D.parenthesized))this.raise(M.PipeUnparenthesizedBody,$,{type:J.type});if(!this.topicReferenceWasUsedInCurrentContext())this.raise(M.PipeTopicUnused,$);return J}checkExponentialAfterUnary(D){if(this.match(57))this.raise(M.UnexpectedTokenUnaryExponentiation,D.argument)}parseMaybeUnary(D,$){let J=this.state.startLoc,X=this.isContextual(96);if(X&&this.recordAwaitIfAllowed()){this.next();let F=this.parseAwait(J);if(!$)this.checkExponentialAfterUnary(F);return F}let Y=this.match(34),Q=this.startNode();if(XWD(this.state.type)){if(Q.operator=this.state.value,Q.prefix=!0,this.match(72))this.expectPlugin("throwExpressions");let F=this.match(89);if(this.next(),Q.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(D,!0),this.state.strict&&F){let W=Q.argument;if(W.type==="Identifier")this.raise(M.StrictDelete,Q);else if(this.hasPropertyAsPrivateName(W))this.raise(M.DeletePrivateField,Q)}if(!Y){if(!$)this.checkExponentialAfterUnary(Q);return this.finishNode(Q,"UnaryExpression")}}let U=this.parseUpdate(Q,Y,D);if(X){let{type:F}=this.state;if((this.hasPlugin("v8intrinsic")?U3(F):U3(F)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(M.AwaitNotInAsyncContext,J),this.parseAwait(J)}return U}parseUpdate(D,$,J){if($){let Q=D;return this.checkLVal(Q.argument,this.finishNode(Q,"UpdateExpression")),D}let X=this.state.startLoc,Y=this.parseExprSubscripts(J);if(this.checkExpressionErrors(J,!1))return Y;while(JWD(this.state.type)&&!this.canInsertSemicolon()){let Q=this.startNodeAt(X);Q.operator=this.state.value,Q.prefix=!1,Q.argument=Y,this.next(),this.checkLVal(Y,Y=this.finishNode(Q,"UpdateExpression"))}return Y}parseExprSubscripts(D){let $=this.state.startLoc,J=this.state.potentialArrowAt,X=this.parseExprAtom(D);if(this.shouldExitDescending(X,J))return X;return this.parseSubscripts(X,$)}parseSubscripts(D,$,J){let X={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(D),stop:!1};do D=this.parseSubscript(D,$,J,X),X.maybeAsyncArrow=!1;while(!X.stop);return D}parseSubscript(D,$,J,X){let{type:Y}=this.state;if(!J&&Y===15)return this.parseBind(D,$,J,X);else if(YU(Y))return this.parseTaggedTemplateExpression(D,$,X);let Q=!1;if(Y===18){if(J){if(this.raise(M.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40)return this.stopParseSubscript(D,X)}X.optionalChainMember=Q=!0,this.next()}if(!J&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(D,$,X,Q);else{let U=this.eat(0);if(U||Q||this.eat(16))return this.parseMember(D,$,X,U,Q);else return this.stopParseSubscript(D,X)}}stopParseSubscript(D,$){return $.stop=!0,D}parseMember(D,$,J,X,Y){let Q=this.startNodeAt($);if(Q.object=D,Q.computed=X,X)Q.property=this.parseExpression(),this.expect(3);else if(this.match(139)){if(D.type==="Super")this.raise(M.SuperPrivateField,$);this.classScope.usePrivateName(this.state.value,this.state.startLoc),Q.property=this.parsePrivateName()}else Q.property=this.parseIdentifier(!0);if(J.optionalChainMember)return Q.optional=Y,this.finishNode(Q,"OptionalMemberExpression");else return this.finishNode(Q,"MemberExpression")}parseBind(D,$,J,X){let Y=this.startNodeAt($);return Y.object=D,this.next(),Y.callee=this.parseNoCallExpr(),X.stop=!0,this.parseSubscripts(this.finishNode(Y,"BindExpression"),$,J)}parseCoverCallAndAsyncArrowHead(D,$,J,X){let Y=this.state.maybeInArrowParameters,Q=null;this.state.maybeInArrowParameters=!0,this.next();let U=this.startNodeAt($);U.callee=D;let{maybeAsyncArrow:F,optionalChainMember:W}=J;if(F)this.expressionScope.enter(_WD()),Q=new K3;if(W)U.optional=X;if(X)U.arguments=this.parseCallExpressionArguments();else U.arguments=this.parseCallExpressionArguments(D.type!=="Super",U,Q);let K=this.finishCallExpression(U,W);if(F&&this.shouldParseAsyncArrow()&&!X)J.stop=!0,this.checkDestructuringPrivate(Q),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),K=this.parseAsyncArrowFromCallExpression(this.startNodeAt($),K);else{if(F)this.checkExpressionErrors(Q,!0),this.expressionScope.exit();this.toReferencedArguments(K)}return this.state.maybeInArrowParameters=Y,K}toReferencedArguments(D,$){this.toReferencedListDeep(D.arguments,$)}parseTaggedTemplateExpression(D,$,J){let X=this.startNodeAt($);if(X.tag=D,X.quasi=this.parseTemplate(!0),J.optionalChainMember)this.raise(M.OptionalChainingNoTemplate,$);return this.finishNode(X,"TaggedTemplateExpression")}atPossibleAsyncArrow(D){return D.type==="Identifier"&&D.name==="async"&&this.state.lastTokEndLoc.index===D.end&&!this.canInsertSemicolon()&&D.end-D.start===5&&this.offsetToSourcePos(D.start)===this.state.potentialArrowAt}finishCallExpression(D,$){if(D.callee.type==="Import"){if(D.arguments.length===0||D.arguments.length>2)this.raise(M.ImportCallArity,D);else for(let J of D.arguments)if(J.type==="SpreadElement")this.raise(M.ImportCallSpreadArgument,J)}return this.finishNode(D,$?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(D,$,J){let X=[],Y=!0,Q=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;while(!this.eat(11)){if(Y)Y=!1;else if(this.expect(12),this.match(11)){if($)this.addTrailingCommaExtraToNode($);this.next();break}X.push(this.parseExprListItem(11,!1,J,D))}return this.state.inFSharpPipelineDirectBody=Q,X}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(D,$){var J;if(this.resetPreviousNodeTrailingComments($),this.expect(19),this.parseArrowExpression(D,$.arguments,!0,(J=$.extra)==null?void 0:J.trailingCommaLoc),$.innerComments)G3(D,$.innerComments);if($.callee.trailingComments)G3(D,$.callee.trailingComments);return D}parseNoCallExpr(){let D=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),D,!0)}parseExprAtom(D){let $,J=null,{type:X}=this.state;switch(X){case 79:return this.parseSuper();case 83:if($=this.startNode(),this.next(),this.match(16))return this.parseImportMetaPropertyOrPhaseCall($);if(this.match(10))if(this.optionFlags&512)return this.parseImportCall($);else return this.finishNode($,"Import");else return this.raise(M.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode($,"Import");case 78:return $=this.startNode(),this.next(),this.finishNode($,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let Y=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(Y)}case 0:return this.parseArrayLike(3,!1,D);case 5:return this.parseObjectLike(8,!1,!1,D);case 68:return this.parseFunctionOrFunctionSent();case 26:J=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(J,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{$=this.startNode(),this.next(),$.object=null;let Y=$.callee=this.parseNoCallExpr();if(Y.type==="MemberExpression")return this.finishNode($,"BindExpression");else throw this.raise(M.UnsupportedBind,Y)}case 139:return this.raise(M.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let Y=this.getPluginOption("pipelineOperator","proposal");if(Y)return this.parseTopicReference(Y);throw this.unexpected()}case 47:{let Y=this.input.codePointAt(this.nextTokenStart());if(E6(Y)||Y===62)throw this.expectOnePlugin(["jsx","flow","typescript"]);throw this.unexpected()}default:if(X===137)return this.parseDecimalLiteral(this.state.value);else if(X===2||X===1)return this.parseArrayLike(this.state.type===2?4:3,!0);else if(X===6||X===7)return this.parseObjectLike(this.state.type===6?9:8,!1,!0);if(gD(X)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let Y=this.state.potentialArrowAt===this.state.start,Q=this.state.containsEsc,U=this.parseIdentifier();if(!Q&&U.name==="async"&&!this.canInsertSemicolon()){let{type:F}=this.state;if(F===68)return this.resetPreviousNodeTrailingComments(U),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(U));else if(gD(F))if(Y&&this.lookaheadCharCode()===61)return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(U));else return U;else if(F===90)return this.resetPreviousNodeTrailingComments(U),this.parseDo(this.startNodeAtNode(U),!0)}if(Y&&this.match(19)&&!this.canInsertSemicolon())return this.next(),this.parseArrowExpression(this.startNodeAtNode(U),[U],!1);return U}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(D,$){let J=this.getPluginOption("pipelineOperator","proposal");if(J)return this.state.type=D,this.state.value=$,this.state.pos--,this.state.end--,this.state.endLoc=F$(this.state.endLoc,-1),this.parseTopicReference(J);throw this.unexpected()}parseTopicReference(D){let $=this.startNode(),J=this.state.startLoc,X=this.state.type;return this.next(),this.finishTopicReference($,J,D,X)}finishTopicReference(D,$,J,X){if(this.testTopicReferenceConfiguration(J,$,X))if(J==="hack"){if(!this.topicReferenceIsAllowedInCurrentContext())this.raise(M.PipeTopicUnbound,$);return this.registerTopicReference(),this.finishNode(D,"TopicReference")}else{if(!this.topicReferenceIsAllowedInCurrentContext())this.raise(M.PrimaryTopicNotAllowed,$);return this.registerTopicReference(),this.finishNode(D,"PipelinePrimaryTopicReference")}else throw this.raise(M.PipeTopicUnconfiguredToken,$,{token:f1(X)})}testTopicReferenceConfiguration(D,$,J){switch(D){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:f1(J)}]);case"smart":return J===27;default:throw this.raise(M.PipeTopicRequiresHackPipes,$)}}parseAsyncArrowUnaryFunction(D){this.prodParam.enter(XU(!0,this.prodParam.hasYield));let $=[this.parseIdentifier()];if(this.prodParam.exit(),this.hasPrecedingLineBreak())this.raise(M.LineTerminatorBeforeArrow,this.state.curPosition());return this.expect(19),this.parseArrowExpression(D,$,!0)}parseDo(D,$){if(this.expectPlugin("doExpressions"),$)this.expectPlugin("asyncDoExpressions");D.async=$,this.next();let J=this.state.labels;if(this.state.labels=[],$)this.prodParam.enter(2),D.body=this.parseBlock(),this.prodParam.exit();else D.body=this.parseBlock();return this.state.labels=J,this.finishNode(D,"DoExpression")}parseSuper(){let D=this.startNode();if(this.next(),this.match(10)&&!this.scope.allowDirectSuper){if(!(this.optionFlags&16))this.raise(M.SuperNotAllowed,D)}else if(!this.scope.allowSuper){if(!(this.optionFlags&16))this.raise(M.UnexpectedSuper,D)}if(!this.match(10)&&!this.match(0)&&!this.match(16))this.raise(M.UnsupportedSuper,D);return this.finishNode(D,"Super")}parsePrivateName(){let D=this.startNode(),$=this.startNodeAt(F$(this.state.startLoc,1)),J=this.state.value;return this.next(),D.id=this.createIdentifier($,J),this.finishNode(D,"PrivateName")}parseFunctionOrFunctionSent(){let D=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let $=this.createIdentifier(this.startNodeAtNode(D),"function");if(this.next(),this.match(103))this.expectPlugin("functionSent");else if(!this.hasPlugin("functionSent"))this.unexpected();return this.parseMetaProperty(D,$,"sent")}return this.parseFunction(D)}parseMetaProperty(D,$,J){D.meta=$;let X=this.state.containsEsc;if(D.property=this.parseIdentifier(!0),D.property.name!==J||X)this.raise(M.UnsupportedMetaProperty,D.property,{target:$.name,onlyValidPropertyName:J});return this.finishNode(D,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(D){if(this.next(),this.isContextual(105)||this.isContextual(97)){let $=this.isContextual(105);return this.expectPlugin($?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),D.phase=$?"source":"defer",this.parseImportCall(D)}else{let $=this.createIdentifierAt(this.startNodeAtNode(D),"import",this.state.lastTokStartLoc);if(this.isContextual(101)){if(!this.inModule)this.raise(M.ImportMetaOutsideModule,$);this.sawUnambiguousESM=!0}return this.parseMetaProperty(D,$,"meta")}}parseLiteralAtNode(D,$,J){return this.addExtra(J,"rawValue",D),this.addExtra(J,"raw",this.input.slice(this.offsetToSourcePos(J.start),this.state.end)),J.value=D,this.next(),this.finishNode(J,$)}parseLiteral(D,$){let J=this.startNode();return this.parseLiteralAtNode(D,$,J)}parseStringLiteral(D){return this.parseLiteral(D,"StringLiteral")}parseNumericLiteral(D){return this.parseLiteral(D,"NumericLiteral")}parseBigIntLiteral(D){return this.parseLiteral(D,"BigIntLiteral")}parseDecimalLiteral(D){return this.parseLiteral(D,"DecimalLiteral")}parseRegExpLiteral(D){let $=this.startNode();return this.addExtra($,"raw",this.input.slice(this.offsetToSourcePos($.start),this.state.end)),$.pattern=D.pattern,$.flags=D.flags,this.next(),this.finishNode($,"RegExpLiteral")}parseBooleanLiteral(D){let $=this.startNode();return $.value=D,this.next(),this.finishNode($,"BooleanLiteral")}parseNullLiteral(){let D=this.startNode();return this.next(),this.finishNode(D,"NullLiteral")}parseParenAndDistinguishExpression(D){let $=this.state.startLoc,J;this.next(),this.expressionScope.enter(kWD());let X=this.state.maybeInArrowParameters,Y=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let Q=this.state.startLoc,U=[],F=new K3,W=!0,K,q;while(!this.match(11)){if(W)W=!1;else if(this.expect(12,F.optionalParametersLoc===null?null:F.optionalParametersLoc),this.match(11)){q=this.state.startLoc;break}if(this.match(21)){let H=this.state.startLoc;if(K=this.state.startLoc,U.push(this.parseParenItem(this.parseRestBinding(),H)),!this.checkCommaAfterRest(41))break}else U.push(this.parseMaybeAssignAllowInOrVoidPattern(11,F,this.parseParenItem))}let G=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=X,this.state.inFSharpPipelineDirectBody=Y;let Z=this.startNodeAt($);if(D&&this.shouldParseArrow(U)&&(Z=this.parseArrow(Z)))return this.checkDestructuringPrivate(F),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(Z,U,!1),Z;if(this.expressionScope.exit(),!U.length)this.unexpected(this.state.lastTokStartLoc);if(q)this.unexpected(q);if(K)this.unexpected(K);if(this.checkExpressionErrors(F,!0),this.toReferencedListDeep(U,!0),U.length>1)J=this.startNodeAt(Q),J.expressions=U,this.finishNode(J,"SequenceExpression"),this.resetEndLocation(J,G);else J=U[0];return this.wrapParenthesis($,J)}wrapParenthesis(D,$){if(!(this.optionFlags&1024))return this.addExtra($,"parenthesized",!0),this.addExtra($,"parenStart",D.index),this.takeSurroundingComments($,D.index,this.state.lastTokEndLoc.index),$;let J=this.startNodeAt(D);return J.expression=$,this.finishNode(J,"ParenthesizedExpression")}shouldParseArrow(D){return!this.canInsertSemicolon()}parseArrow(D){if(this.eat(19))return D}parseParenItem(D,$){return D}parseNewOrNewTarget(){let D=this.startNode();if(this.next(),this.match(16)){let $=this.createIdentifier(this.startNodeAtNode(D),"new");this.next();let J=this.parseMetaProperty(D,$,"target");if(!this.scope.allowNewTarget)this.raise(M.UnexpectedNewTarget,J);return J}return this.parseNew(D)}parseNew(D){if(this.parseNewCallee(D),this.eat(10)){let $=this.parseExprList(11);this.toReferencedList($),D.arguments=$}else D.arguments=[];return this.finishNode(D,"NewExpression")}parseNewCallee(D){let $=this.match(83),J=this.parseNoCallExpr();if(D.callee=J,$&&(J.type==="Import"||J.type==="ImportExpression"))this.raise(M.ImportCallNotNewExpression,J)}parseTemplateElement(D){let{start:$,startLoc:J,end:X,value:Y}=this.state,Q=$+1,U=this.startNodeAt(F$(J,1));if(Y===null){if(!D)this.raise(M.InvalidEscapeSequenceTemplate,F$(this.state.firstInvalidTemplateEscapePos,1))}let F=this.match(24),W=F?-1:-2,K=X+W;U.value={raw:this.input.slice(Q,K).replace(/\r\n?/g,`
`),cooked:Y===null?null:Y.slice(1,W)},U.tail=F,this.next();let q=this.finishNode(U,"TemplateElement");return this.resetEndLocation(q,F$(this.state.lastTokEndLoc,W)),q}parseTemplate(D){let $=this.startNode(),J=this.parseTemplateElement(D),X=[J],Y=[];while(!J.tail)Y.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),X.push(J=this.parseTemplateElement(D));return $.expressions=Y,$.quasis=X,this.finishNode($,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(D,$,J,X){if(J)this.expectPlugin("recordAndTuple");let Y=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let Q=!1,U=!0,F=this.startNode();F.properties=[],this.next();while(!this.match(D)){if(U)U=!1;else if(this.expect(12),this.match(D)){this.addTrailingCommaExtraToNode(F);break}let K;if($)K=this.parseBindingProperty();else K=this.parsePropertyDefinition(X),Q=this.checkProto(K,J,Q,X);if(J&&!this.isObjectProperty(K)&&K.type!=="SpreadElement")this.raise(M.InvalidRecordProperty,K);if(K.shorthand)this.addExtra(K,"shorthand",!0);F.properties.push(K)}this.next(),this.state.inFSharpPipelineDirectBody=Y;let W="ObjectExpression";if($)W="ObjectPattern";else if(J)W="RecordExpression";return this.finishNode(F,W)}addTrailingCommaExtraToNode(D){this.addExtra(D,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(D,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(D){return!D.computed&&D.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(D){let $=[];if(this.match(26)){if(this.hasPlugin("decorators"))this.raise(M.UnsupportedPropertyDecorator,this.state.startLoc);while(this.match(26))$.push(this.parseDecorator())}let J=this.startNode(),X=!1,Y=!1,Q;if(this.match(21)){if($.length)this.unexpected();return this.parseSpread()}if($.length)J.decorators=$,$=[];if(J.method=!1,D)Q=this.state.startLoc;let U=this.eat(55);this.parsePropertyNamePrefixOperator(J);let F=this.state.containsEsc;if(this.parsePropertyName(J,D),!U&&!F&&this.maybeAsyncOrAccessorProp(J)){let{key:W}=J,K=W.name;if(K==="async"&&!this.hasPrecedingLineBreak())X=!0,this.resetPreviousNodeTrailingComments(W),U=this.eat(55),this.parsePropertyName(J);if(K==="get"||K==="set"){if(Y=!0,this.resetPreviousNodeTrailingComments(W),J.kind=K,this.match(55))U=!0,this.raise(M.AccessorIsGenerator,this.state.curPosition(),{kind:K}),this.next();this.parsePropertyName(J)}}return this.parseObjPropValue(J,Q,U,X,!1,Y,D)}getGetterSetterExpectedParamCount(D){return D.kind==="get"?0:1}getObjectOrClassMethodParams(D){return D.params}checkGetterSetterParams(D){var $;let J=this.getGetterSetterExpectedParamCount(D),X=this.getObjectOrClassMethodParams(D);if(X.length!==J)this.raise(D.kind==="get"?M.BadGetterArity:M.BadSetterArity,D);if(D.kind==="set"&&(($=X[X.length-1])==null?void 0:$.type)==="RestElement")this.raise(M.BadSetterRestParameter,D)}parseObjectMethod(D,$,J,X,Y){if(Y){let Q=this.parseMethod(D,$,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(Q),Q}if(J||$||this.match(10)){if(X)this.unexpected();return D.kind="method",D.method=!0,this.parseMethod(D,$,J,!1,!1,"ObjectMethod")}}parseObjectProperty(D,$,J,X){if(D.shorthand=!1,this.eat(14))return D.value=J?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,X),this.finishObjectProperty(D);if(!D.computed&&D.key.type==="Identifier"){if(this.checkReservedWord(D.key.name,D.key.loc.start,!0,!1),J)D.value=this.parseMaybeDefault($,this.cloneIdentifier(D.key));else if(this.match(29)){let Y=this.state.startLoc;if(X!=null){if(X.shorthandAssignLoc===null)X.shorthandAssignLoc=Y}else this.raise(M.InvalidCoverInitializedName,Y);D.value=this.parseMaybeDefault($,this.cloneIdentifier(D.key))}else D.value=this.cloneIdentifier(D.key);return D.shorthand=!0,this.finishObjectProperty(D)}}finishObjectProperty(D){return this.finishNode(D,"ObjectProperty")}parseObjPropValue(D,$,J,X,Y,Q,U){let F=this.parseObjectMethod(D,J,X,Y,Q)||this.parseObjectProperty(D,$,Y,U);if(!F)this.unexpected();return F}parsePropertyName(D,$){if(this.eat(0))D.computed=!0,D.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:J,value:X}=this.state,Y;if(F6(J))Y=this.parseIdentifier(!0);else switch(J){case 135:Y=this.parseNumericLiteral(X);break;case 134:Y=this.parseStringLiteral(X);break;case 136:Y=this.parseBigIntLiteral(X);break;case 139:{let Q=this.state.startLoc;if($!=null){if($.privateKeyLoc===null)$.privateKeyLoc=Q}else this.raise(M.UnexpectedPrivateField,Q);Y=this.parsePrivateName();break}default:if(J===137){Y=this.parseDecimalLiteral(X);break}this.unexpected()}if(D.key=Y,J!==139)D.computed=!1}}initFunction(D,$){D.id=null,D.generator=!1,D.async=$}parseMethod(D,$,J,X,Y,Q,U=!1){this.initFunction(D,J),D.generator=$,this.scope.enter(530|(U?576:0)|(Y?32:0)),this.prodParam.enter(XU(J,D.generator)),this.parseFunctionParams(D,X);let F=this.parseFunctionBodyAndFinish(D,Q,!0);return this.prodParam.exit(),this.scope.exit(),F}parseArrayLike(D,$,J){if($)this.expectPlugin("recordAndTuple");let X=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let Y=this.startNode();return this.next(),Y.elements=this.parseExprList(D,!$,J,Y),this.state.inFSharpPipelineDirectBody=X,this.finishNode(Y,$?"TupleExpression":"ArrayExpression")}parseArrowExpression(D,$,J,X){this.scope.enter(518);let Y=XU(J,!1);if(!this.match(5)&&this.prodParam.hasIn)Y|=8;this.prodParam.enter(Y),this.initFunction(D,J);let Q=this.state.maybeInArrowParameters;if($)this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(D,$,X);return this.state.maybeInArrowParameters=!1,this.parseFunctionBody(D,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=Q,this.finishNode(D,"ArrowFunctionExpression")}setArrowFunctionParameters(D,$,J){this.toAssignableList($,J,!1),D.params=$}parseFunctionBodyAndFinish(D,$,J=!1){return this.parseFunctionBody(D,!1,J),this.finishNode(D,$)}parseFunctionBody(D,$,J=!1){let X=$&&!this.match(5);if(this.expressionScope.enter(Vy()),X)D.body=this.parseMaybeAssign(),this.checkParams(D,!1,$,!1);else{let Y=this.state.strict,Q=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),D.body=this.parseBlock(!0,!1,(U)=>{let F=!this.isSimpleParamList(D.params);if(U&&F)this.raise(M.IllegalLanguageModeDirective,(D.kind==="method"||D.kind==="constructor")&&!!D.key?D.key.loc.end:D);let W=!Y&&this.state.strict;if(this.checkParams(D,!this.state.strict&&!$&&!J&&!F,$,W),this.state.strict&&D.id)this.checkIdentifier(D.id,65,W)}),this.prodParam.exit(),this.state.labels=Q}this.expressionScope.exit()}isSimpleParameter(D){return D.type==="Identifier"}isSimpleParamList(D){for(let $=0,J=D.length;$<J;$++)if(!this.isSimpleParameter(D[$]))return!1;return!0}checkParams(D,$,J,X=!0){let Y=!$&&new Set,Q={type:"FormalParameters"};for(let U of D.params)this.checkLVal(U,Q,5,Y,X)}parseExprList(D,$,J,X){let Y=[],Q=!0;while(!this.eat(D)){if(Q)Q=!1;else if(this.expect(12),this.match(D)){if(X)this.addTrailingCommaExtraToNode(X);this.next();break}Y.push(this.parseExprListItem(D,$,J))}return Y}parseExprListItem(D,$,J,X){let Y;if(this.match(12)){if(!$)this.raise(M.UnexpectedToken,this.state.curPosition(),{unexpected:","});Y=null}else if(this.match(21)){let Q=this.state.startLoc;Y=this.parseParenItem(this.parseSpread(J),Q)}else if(this.match(17)){if(this.expectPlugin("partialApplication"),!X)this.raise(M.UnexpectedArgumentPlaceholder,this.state.startLoc);let Q=this.startNode();this.next(),Y=this.finishNode(Q,"ArgumentPlaceholder")}else Y=this.parseMaybeAssignAllowInOrVoidPattern(D,J,this.parseParenItem);return Y}parseIdentifier(D){let $=this.startNode(),J=this.parseIdentifierName(D);return this.createIdentifier($,J)}createIdentifier(D,$){return D.name=$,D.loc.identifierName=$,this.finishNode(D,"Identifier")}createIdentifierAt(D,$,J){return D.name=$,D.loc.identifierName=$,this.finishNodeAt(D,"Identifier",J)}parseIdentifierName(D){let $,{startLoc:J,type:X}=this.state;if(F6(X))$=this.state.value;else this.unexpected();let Y=aFD(X);if(D){if(Y)this.replaceToken(132)}else this.checkReservedWord($,J,Y,!1);return this.next(),$}checkReservedWord(D,$,J,X){if(D.length>10)return;if(!BWD(D))return;if(J&&zWD(D)){this.raise(M.UnexpectedKeyword,$,{keyword:D});return}if((!this.state.strict?$y:X?Yy:Jy)(D,this.inModule)){this.raise(M.UnexpectedReservedWord,$,{reservedWord:D});return}else if(D==="yield"){if(this.prodParam.hasYield){this.raise(M.YieldBindingIdentifier,$);return}}else if(D==="await"){if(this.prodParam.hasAwait){this.raise(M.AwaitBindingIdentifier,$);return}if(this.scope.inStaticBlock){this.raise(M.AwaitBindingIdentifierInStaticBlock,$);return}this.expressionScope.recordAsyncArrowParametersError($)}else if(D==="arguments"){if(this.scope.inClassAndNotInNonArrowFunction){this.raise(M.ArgumentsInClass,$);return}}}recordAwaitIfAllowed(){let D=this.prodParam.hasAwait;if(D&&!this.scope.inFunction)this.state.hasTopLevelAwait=!0;return D}parseAwait(D){let $=this.startNodeAt(D);if(this.expressionScope.recordParameterInitializerError(M.AwaitExpressionFormalParameter,$),this.eat(55))this.raise(M.ObsoleteAwaitStar,$);if(!this.scope.inFunction&&!(this.optionFlags&1))if(this.isAmbiguousPrefixOrIdentifier())this.ambiguousScriptDifferentAst=!0;else this.sawUnambiguousESM=!0;if(!this.state.soloAwait)$.argument=this.parseMaybeUnary(null,!0);return this.finishNode($,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:D}=this.state;return D===53||D===10||D===0||YU(D)||D===102&&!this.state.containsEsc||D===138||D===56||this.hasPlugin("v8intrinsic")&&D===54}parseYield(D){let $=this.startNodeAt(D);this.expressionScope.recordParameterInitializerError(M.YieldInParameter,$);let J=!1,X=null;if(!this.hasPrecedingLineBreak())switch(J=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!J)break;default:X=this.parseMaybeAssign()}return $.delegate=J,$.argument=X,this.finishNode($,"YieldExpression")}parseImportCall(D){if(this.next(),D.source=this.parseMaybeAssignAllowIn(),D.options=null,this.eat(12))if(!this.match(11)){if(D.options=this.parseMaybeAssignAllowIn(),this.eat(12)){if(this.addTrailingCommaExtraToNode(D.options),!this.match(11)){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(M.ImportCallArity,D)}}}else this.addTrailingCommaExtraToNode(D.source);return this.expect(11),this.finishNode(D,"ImportExpression")}checkPipelineAtInfixOperator(D,$){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){if(D.type==="SequenceExpression")this.raise(M.PipelineHeadSequenceExpression,$)}}parseSmartPipelineBodyInStyle(D,$){if(this.isSimpleReference(D)){let J=this.startNodeAt($);return J.callee=D,this.finishNode(J,"PipelineBareFunction")}else{let J=this.startNodeAt($);return this.checkSmartPipeTopicBodyEarlyErrors($),J.expression=D,this.finishNode(J,"PipelineTopicExpression")}}isSimpleReference(D){switch(D.type){case"MemberExpression":return!D.computed&&this.isSimpleReference(D.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(D){if(this.match(19))throw this.raise(M.PipelineBodyNoArrow,this.state.startLoc);if(!this.topicReferenceWasUsedInCurrentContext())this.raise(M.PipelineTopicUnused,D)}withTopicBindingContext(D){let $=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return D()}finally{this.state.topicContext=$}}withSmartMixTopicForbiddingContext(D){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let $=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return D()}finally{this.state.topicContext=$}}else return D()}withSoloAwaitPermittingContext(D){let $=this.state.soloAwait;this.state.soloAwait=!0;try{return D()}finally{this.state.soloAwait=$}}allowInAnd(D){let $=this.prodParam.currentFlags();if(8&~$){this.prodParam.enter($|8);try{return D()}finally{this.prodParam.exit()}}return D()}disallowInAnd(D){let $=this.prodParam.currentFlags();if(8&$){this.prodParam.enter($&-9);try{return D()}finally{this.prodParam.exit()}}return D()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(D){let $=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let J=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let X=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),$,D);return this.state.inFSharpPipelineDirectBody=J,X}parseModuleExpression(){this.expectPlugin("moduleBlocks");let D=this.startNode();if(this.next(),!this.match(5))this.unexpected(null,5);let $=this.startNodeAt(this.state.endLoc);this.next();let J=this.initializeScopes(!0);this.enterInitialScopes();try{D.body=this.parseProgram($,8,"module")}finally{J()}return this.finishNode(D,"ModuleExpression")}parseVoidPattern(D){this.expectPlugin("discardBinding");let $=this.startNode();if(D!=null)D.voidPatternLoc=this.state.startLoc;return this.next(),this.finishNode($,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(D,$,J){if($!=null&&this.match(88)){let X=this.lookaheadCharCode();if(X===44||X===(D===3?93:D===8?125:41)||X===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern($))}return this.parseMaybeAssignAllowIn($,J)}parsePropertyNamePrefixOperator(D){}}var KN={kind:1},pWD={kind:2},nWD=/[\uD800-\uDFFF]/u,qN=/in(?:stanceof)?/y;function rWD(D,$,J){for(let X=0;X<D.length;X++){let Y=D[X],{type:Q}=Y;if(typeof Q==="number"){if(Q===139){let{loc:U,start:F,value:W,end:K}=Y,q=F+1,G=F$(U.start,1);D.splice(X,1,new c6({type:i6(27),value:"#",start:F,end:q,startLoc:U.start,endLoc:G}),new c6({type:i6(132),value:W,start:q,end:K,startLoc:G,endLoc:U.end})),X++;continue}if(YU(Q)){let{loc:U,start:F,value:W,end:K}=Y,q=F+1,G=F$(U.start,1),Z;if($.charCodeAt(F-J)===96)Z=new c6({type:i6(22),value:"`",start:F,end:q,startLoc:U.start,endLoc:G});else Z=new c6({type:i6(8),value:"}",start:F,end:q,startLoc:U.start,endLoc:G});let H,z,I,B;if(Q===24)z=K-1,I=F$(U.end,-1),H=W===null?null:W.slice(1,-1),B=new c6({type:i6(22),value:"`",start:z,end:K,startLoc:I,endLoc:U.end});else z=K-2,I=F$(U.end,-2),H=W===null?null:W.slice(1,-2),B=new c6({type:i6(23),value:"${",start:z,end:K,startLoc:I,endLoc:U.end});D.splice(X,1,Z,new c6({type:i6(20),value:H,start:q,end:z,startLoc:G,endLoc:I}),B),X+=2;continue}Y.type=i6(Q)}}return D}class Ey extends vy{parseTopLevel(D,$){if(D.program=this.parseProgram($,140,this.options.sourceType==="module"?"module":"script"),D.comments=this.comments,this.optionFlags&256)D.tokens=rWD(this.tokens,this.input,this.startIndex);return this.finishNode(D,"File")}parseProgram(D,$,J){if(D.sourceType=J,D.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(D,!0,!0,$),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(let[Y,Q]of Array.from(this.scope.undefinedExports))this.raise(M.ModuleExportUndefined,Q,{localName:Y});this.addExtra(D,"topLevelAwait",this.state.hasTopLevelAwait)}let X;if($===140)X=this.finishNode(D,"Program");else X=this.finishNodeAt(D,"Program",F$(this.state.startLoc,-1));return X}stmtToDirective(D){let $=this.castNodeTo(D,"Directive"),J=this.castNodeTo(D.expression,"DirectiveLiteral"),X=J.value,Y=this.input.slice(this.offsetToSourcePos(J.start),this.offsetToSourcePos(J.end)),Q=J.value=Y.slice(1,-1);return this.addExtra(J,"raw",Y),this.addExtra(J,"rawValue",Q),this.addExtra(J,"expressionValue",X),$.value=J,delete D.expression,$}parseInterpreterDirective(){if(!this.match(28))return null;let D=this.startNode();return D.value=this.state.value,this.next(),this.finishNode(D,"InterpreterDirective")}isLet(){if(!this.isContextual(100))return!1;return this.hasFollowingBindingAtom()}isUsing(){if(!this.isContextual(107))return!1;return this.nextTokenIsIdentifierOnSameLine()}isForUsing(){if(!this.isContextual(107))return!1;let D=this.nextTokenInLineStart(),$=this.codePointAtPos(D);if(this.isUnparsedContextual(D,"of")){let J=this.lookaheadCharCodeSince(D+2);if(J!==61&&J!==58&&J!==59)return!1}if(this.chStartsBindingIdentifier($,D)||this.isUnparsedContextual(D,"void"))return!0;return!1}nextTokenIsIdentifierOnSameLine(){let D=this.nextTokenInLineStart(),$=this.codePointAtPos(D);return this.chStartsBindingIdentifier($,D)}isAwaitUsing(){if(!this.isContextual(96))return!1;let D=this.nextTokenInLineStart();if(this.isUnparsedContextual(D,"using")){D=this.nextTokenInLineStartSince(D+5);let $=this.codePointAtPos(D);if(this.chStartsBindingIdentifier($,D))return!0}return!1}chStartsBindingIdentifier(D,$){if(E6(D)){if(qN.lastIndex=$,qN.test(this.input)){let J=this.codePointAtPos(qN.lastIndex);if(!X8(J)&&J!==92)return!1}return!0}else if(D===92)return!0;else return!1}chStartsBindingPattern(D){return D===91||D===123}hasFollowingBindingAtom(){let D=this.nextTokenStart(),$=this.codePointAtPos(D);return this.chStartsBindingPattern($)||this.chStartsBindingIdentifier($,D)}hasInLineFollowingBindingIdentifierOrBrace(){let D=this.nextTokenInLineStart(),$=this.codePointAtPos(D);return $===123||this.chStartsBindingIdentifier($,D)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(D=!1){let $=0;if(this.options.annexB&&!this.state.strict){if($|=4,D)$|=8}return this.parseStatementLike($)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(D){let $=null;if(this.match(26))$=this.parseDecorators(!0);return this.parseStatementContent(D,$)}parseStatementContent(D,$){let J=this.state.type,X=this.startNode(),Y=!!(D&2),Q=!!(D&4),U=D&1;switch(J){case 60:return this.parseBreakContinueStatement(X,!0);case 63:return this.parseBreakContinueStatement(X,!1);case 64:return this.parseDebuggerStatement(X);case 90:return this.parseDoWhileStatement(X);case 91:return this.parseForStatement(X);case 68:if(this.lookaheadCharCode()===46)break;if(!Q)this.raise(this.state.strict?M.StrictFunction:this.options.annexB?M.SloppyFunctionAnnexB:M.SloppyFunction,this.state.startLoc);return this.parseFunctionStatement(X,!1,!Y&&Q);case 80:if(!Y)this.unexpected();return this.parseClass(this.maybeTakeDecorators($,X),!0);case 69:return this.parseIfStatement(X);case 70:return this.parseReturnStatement(X);case 71:return this.parseSwitchStatement(X);case 72:return this.parseThrowStatement(X);case 73:return this.parseTryStatement(X);case 96:if(this.isAwaitUsing()){if(!this.allowsUsing())this.raise(M.UnexpectedUsingDeclaration,X);else if(!Y)this.raise(M.UnexpectedLexicalDeclaration,X);else if(!this.recordAwaitIfAllowed())this.raise(M.AwaitUsingNotInAsyncContext,X);return this.next(),this.parseVarStatement(X,"await using")}break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;if(!this.allowsUsing())this.raise(M.UnexpectedUsingDeclaration,this.state.startLoc);else if(!Y)this.raise(M.UnexpectedLexicalDeclaration,this.state.startLoc);return this.parseVarStatement(X,"using");case 100:{if(this.state.containsEsc)break;let K=this.nextTokenStart(),q=this.codePointAtPos(K);if(q!==91){if(!Y&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(q,K)&&q!==123)break}}case 75:if(!Y)this.raise(M.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let K=this.state.value;return this.parseVarStatement(X,K)}case 92:return this.parseWhileStatement(X);case 76:return this.parseWithStatement(X);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(X);case 83:{let K=this.lookaheadCharCode();if(K===40||K===46)break}case 82:{if(!(this.optionFlags&8)&&!U)this.raise(M.UnexpectedImportExport,this.state.startLoc);this.next();let K;if(J===83)K=this.parseImport(X);else K=this.parseExport(X,$);return this.assertModuleNodeAllowed(K),K}default:if(this.isAsyncFunction()){if(!Y)this.raise(M.AsyncFunctionInSingleStatementContext,this.state.startLoc);return this.next(),this.parseFunctionStatement(X,!0,!Y&&Q)}}let F=this.state.value,W=this.parseExpression();if(gD(J)&&W.type==="Identifier"&&this.eat(14))return this.parseLabeledStatement(X,F,W,D);else return this.parseExpressionStatement(X,W,$)}assertModuleNodeAllowed(D){if(!(this.optionFlags&8)&&!this.inModule)this.raise(M.ImportOutsideModule,D)}decoratorsEnabledBeforeExport(){if(this.hasPlugin("decorators-legacy"))return!0;return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(D,$,J){if(D){var X;if((X=$.decorators)!=null&&X.length){if(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!=="boolean")this.raise(M.DecoratorsBeforeAfterExport,$.decorators[0]);$.decorators.unshift(...D)}else $.decorators=D;if(this.resetStartLocationFromNode($,D[0]),J)this.resetStartLocationFromNode(J,$)}return $}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(D){let $=[];do $.push(this.parseDecorator());while(this.match(26));if(this.match(82)){if(!D)this.unexpected();if(!this.decoratorsEnabledBeforeExport())this.raise(M.DecoratorExportClass,this.state.startLoc)}else if(!this.canHaveLeadingDecorator())throw this.raise(M.UnexpectedLeadingDecorator,this.state.startLoc);return $}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let D=this.startNode();if(this.next(),this.hasPlugin("decorators")){let $=this.state.startLoc,J;if(this.match(10)){let X=this.state.startLoc;this.next(),J=this.parseExpression(),this.expect(11),J=this.wrapParenthesis(X,J);let Y=this.state.startLoc;if(D.expression=this.parseMaybeDecoratorArguments(J,X),this.getPluginOption("decorators","allowCallParenthesized")===!1&&D.expression!==J)this.raise(M.DecoratorArgumentsOutsideParentheses,Y)}else{J=this.parseIdentifier(!1);while(this.eat(16)){let X=this.startNodeAt($);if(X.object=J,this.match(139))this.classScope.usePrivateName(this.state.value,this.state.startLoc),X.property=this.parsePrivateName();else X.property=this.parseIdentifier(!0);X.computed=!1,J=this.finishNode(X,"MemberExpression")}D.expression=this.parseMaybeDecoratorArguments(J,$)}}else D.expression=this.parseExprSubscripts();return this.finishNode(D,"Decorator")}parseMaybeDecoratorArguments(D,$){if(this.eat(10)){let J=this.startNodeAt($);return J.callee=D,J.arguments=this.parseCallExpressionArguments(),this.toReferencedList(J.arguments),this.finishNode(J,"CallExpression")}return D}parseBreakContinueStatement(D,$){if(this.next(),this.isLineTerminator())D.label=null;else D.label=this.parseIdentifier(),this.semicolon();return this.verifyBreakContinue(D,$),this.finishNode(D,$?"BreakStatement":"ContinueStatement")}verifyBreakContinue(D,$){let J;for(J=0;J<this.state.labels.length;++J){let X=this.state.labels[J];if(D.label==null||X.name===D.label.name){if(X.kind!=null&&($||X.kind===1))break;if(D.label&&$)break}}if(J===this.state.labels.length){let X=$?"BreakStatement":"ContinueStatement";this.raise(M.IllegalBreakContinue,D,{type:X})}}parseDebuggerStatement(D){return this.next(),this.semicolon(),this.finishNode(D,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let D=this.parseExpression();return this.expect(11),D}parseDoWhileStatement(D){return this.next(),this.state.labels.push(KN),D.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),D.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(D,"DoWhileStatement")}parseForStatement(D){this.next(),this.state.labels.push(KN);let $=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed())$=this.state.startLoc,this.next();if(this.scope.enter(0),this.expect(10),this.match(13)){if($!==null)this.unexpected($);return this.parseFor(D,null)}let J=this.isContextual(100);{let F=this.isAwaitUsing(),W=F||this.isForUsing(),K=J&&this.hasFollowingBindingAtom()||W;if(this.match(74)||this.match(75)||K){let q=this.startNode(),G;if(F){if(G="await using",!this.recordAwaitIfAllowed())this.raise(M.AwaitUsingNotInAsyncContext,this.state.startLoc);this.next()}else G=this.state.value;this.next(),this.parseVar(q,!0,G);let Z=this.finishNode(q,"VariableDeclaration"),H=this.match(58);if(H&&W)this.raise(M.ForInUsing,Z);if((H||this.isContextual(102))&&Z.declarations.length===1)return this.parseForIn(D,Z,$);if($!==null)this.unexpected($);return this.parseFor(D,Z)}}let X=this.isContextual(95),Y=new K3,Q=this.parseExpression(!0,Y),U=this.isContextual(102);if(U){if(J)this.raise(M.ForOfLet,Q);if($===null&&X&&Q.type==="Identifier")this.raise(M.ForOfAsync,Q)}if(U||this.match(58)){this.checkDestructuringPrivate(Y),this.toAssignable(Q,!0);let F=U?"ForOfStatement":"ForInStatement";return this.checkLVal(Q,{type:F}),this.parseForIn(D,Q,$)}else this.checkExpressionErrors(Y,!0);if($!==null)this.unexpected($);return this.parseFor(D,Q)}parseFunctionStatement(D,$,J){return this.next(),this.parseFunction(D,1|(J?2:0)|($?8:0))}parseIfStatement(D){return this.next(),D.test=this.parseHeaderExpression(),D.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),D.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(D,"IfStatement")}parseReturnStatement(D){if(!this.prodParam.hasReturn)this.raise(M.IllegalReturn,this.state.startLoc);if(this.next(),this.isLineTerminator())D.argument=null;else D.argument=this.parseExpression(),this.semicolon();return this.finishNode(D,"ReturnStatement")}parseSwitchStatement(D){this.next(),D.discriminant=this.parseHeaderExpression();let $=D.cases=[];this.expect(5),this.state.labels.push(pWD),this.scope.enter(256);let J;for(let X;!this.match(8);)if(this.match(61)||this.match(65)){let Y=this.match(61);if(J)this.finishNode(J,"SwitchCase");if($.push(J=this.startNode()),J.consequent=[],this.next(),Y)J.test=this.parseExpression();else{if(X)this.raise(M.MultipleDefaultsInSwitch,this.state.lastTokStartLoc);X=!0,J.test=null}this.expect(14)}else if(J)J.consequent.push(this.parseStatementListItem());else this.unexpected();if(this.scope.exit(),J)this.finishNode(J,"SwitchCase");return this.next(),this.state.labels.pop(),this.finishNode(D,"SwitchStatement")}parseThrowStatement(D){if(this.next(),this.hasPrecedingLineBreak())this.raise(M.NewlineAfterThrow,this.state.lastTokEndLoc);return D.argument=this.parseExpression(),this.semicolon(),this.finishNode(D,"ThrowStatement")}parseCatchClauseParam(){let D=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&D.type==="Identifier"?8:0),this.checkLVal(D,{type:"CatchClause"},9),D}parseTryStatement(D){if(this.next(),D.block=this.parseBlock(),D.handler=null,this.match(62)){let $=this.startNode();if(this.next(),this.match(10))this.expect(10),$.param=this.parseCatchClauseParam(),this.expect(11);else $.param=null,this.scope.enter(0);$.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),D.handler=this.finishNode($,"CatchClause")}if(D.finalizer=this.eat(67)?this.parseBlock():null,!D.handler&&!D.finalizer)this.raise(M.NoCatchOrFinally,D);return this.finishNode(D,"TryStatement")}parseVarStatement(D,$,J=!1){return this.next(),this.parseVar(D,!1,$,J),this.semicolon(),this.finishNode(D,"VariableDeclaration")}parseWhileStatement(D){return this.next(),D.test=this.parseHeaderExpression(),this.state.labels.push(KN),D.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(D,"WhileStatement")}parseWithStatement(D){if(this.state.strict)this.raise(M.StrictWith,this.state.startLoc);return this.next(),D.object=this.parseHeaderExpression(),D.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(D,"WithStatement")}parseEmptyStatement(D){return this.next(),this.finishNode(D,"EmptyStatement")}parseLabeledStatement(D,$,J,X){for(let Q of this.state.labels)if(Q.name===$)this.raise(M.LabelRedeclaration,J,{labelName:$});let Y=DWD(this.state.type)?1:this.match(71)?2:null;for(let Q=this.state.labels.length-1;Q>=0;Q--){let U=this.state.labels[Q];if(U.statementStart===D.start)U.statementStart=this.sourceToOffsetPos(this.state.start),U.kind=Y;else break}return this.state.labels.push({name:$,kind:Y,statementStart:this.sourceToOffsetPos(this.state.start)}),D.body=X&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),D.label=J,this.finishNode(D,"LabeledStatement")}parseExpressionStatement(D,$,J){return D.expression=$,this.semicolon(),this.finishNode(D,"ExpressionStatement")}parseBlock(D=!1,$=!0,J){let X=this.startNode();if(D)this.state.strictErrors.clear();if(this.expect(5),$)this.scope.enter(0);if(this.parseBlockBody(X,D,!1,8,J),$)this.scope.exit();return this.finishNode(X,"BlockStatement")}isValidDirective(D){return D.type==="ExpressionStatement"&&D.expression.type==="StringLiteral"&&!D.expression.extra.parenthesized}parseBlockBody(D,$,J,X,Y){let Q=D.body=[],U=D.directives=[];this.parseBlockOrModuleBlockBody(Q,$?U:void 0,J,X,Y)}parseBlockOrModuleBlockBody(D,$,J,X,Y){let Q=this.state.strict,U=!1,F=!1;while(!this.match(X)){let W=J?this.parseModuleItem():this.parseStatementListItem();if($&&!F){if(this.isValidDirective(W)){let K=this.stmtToDirective(W);if($.push(K),!U&&K.value.value==="use strict")U=!0,this.setStrict(!0);continue}F=!0,this.state.strictErrors.clear()}D.push(W)}if(Y==null||Y.call(this,U),!Q)this.setStrict(!1);this.next()}parseFor(D,$){return D.init=$,this.semicolon(!1),D.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),D.update=this.match(11)?null:this.parseExpression(),this.expect(11),D.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(D,"ForStatement")}parseForIn(D,$,J){let X=this.match(58);if(this.next(),X){if(J!==null)this.unexpected(J)}else D.await=J!==null;if($.type==="VariableDeclaration"&&$.declarations[0].init!=null&&(!X||!this.options.annexB||this.state.strict||$.kind!=="var"||$.declarations[0].id.type!=="Identifier"))this.raise(M.ForInOfLoopInitializer,$,{type:X?"ForInStatement":"ForOfStatement"});if($.type==="AssignmentPattern")this.raise(M.InvalidLhs,$,{ancestor:{type:"ForStatement"}});return D.left=$,D.right=X?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),D.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(D,X?"ForInStatement":"ForOfStatement")}parseVar(D,$,J,X=!1){let Y=D.declarations=[];D.kind=J;for(;;){let Q=this.startNode();if(this.parseVarId(Q,J),Q.init=!this.eat(29)?null:$?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn(),Q.init===null&&!X){if(Q.id.type!=="Identifier"&&!($&&(this.match(58)||this.isContextual(102))))this.raise(M.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"});else if((J==="const"||J==="using"||J==="await using")&&!(this.match(58)||this.isContextual(102)))this.raise(M.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:J})}if(Y.push(this.finishNode(Q,"VariableDeclarator")),!this.eat(12))break}return D}parseVarId(D,$){let J=this.parseBindingAtom();if($==="using"||$==="await using"){if(J.type==="ArrayPattern"||J.type==="ObjectPattern")this.raise(M.UsingDeclarationHasBindingPattern,J.loc.start)}else if(J.type==="VoidPattern")this.raise(M.UnexpectedVoidPattern,J.loc.start);this.checkLVal(J,{type:"VariableDeclarator"},$==="var"?5:8201),D.id=J}parseAsyncFunctionExpression(D){return this.parseFunction(D,8)}parseFunction(D,$=0){let J=$&2,X=!!($&1),Y=X&&!($&4),Q=!!($&8);if(this.initFunction(D,Q),this.match(55)){if(J)this.raise(M.GeneratorInSingleStatementContext,this.state.startLoc);this.next(),D.generator=!0}if(X)D.id=this.parseFunctionId(Y);let U=this.state.maybeInArrowParameters;if(this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(XU(Q,D.generator)),!X)D.id=this.parseFunctionId();if(this.parseFunctionParams(D,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(D,X?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),X&&!J)this.registerFunctionStatementId(D);return this.state.maybeInArrowParameters=U,D}parseFunctionId(D){return D||gD(this.state.type)?this.parseIdentifier():null}parseFunctionParams(D,$){this.expect(10),this.expressionScope.enter(CWD()),D.params=this.parseBindingList(11,41,2|($?4:0)),this.expressionScope.exit()}registerFunctionStatementId(D){if(!D.id)return;this.scope.declareName(D.id.name,!this.options.annexB||this.state.strict||D.generator||D.async?this.scope.treatFunctionsAsVar?5:8201:17,D.id.loc.start)}parseClass(D,$,J){this.next();let X=this.state.strict;return this.state.strict=!0,this.parseClassId(D,$,J),this.parseClassSuper(D),D.body=this.parseClassBody(!!D.superClass,X),this.finishNode(D,$?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(D){return D.type==="Identifier"&&D.name==="constructor"||D.type==="StringLiteral"&&D.value==="constructor"}isNonstaticConstructor(D){return!D.computed&&!D.static&&this.nameIsConstructor(D.key)}parseClassBody(D,$){this.classScope.enter();let J={hadConstructor:!1,hadSuperClass:D},X=[],Y=this.startNode();if(Y.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{while(!this.match(8)){if(this.eat(13)){if(X.length>0)throw this.raise(M.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){X.push(this.parseDecorator());continue}let Q=this.startNode();if(X.length)Q.decorators=X,this.resetStartLocationFromNode(Q,X[0]),X=[];if(this.parseClassMember(Y,Q,J),Q.kind==="constructor"&&Q.decorators&&Q.decorators.length>0)this.raise(M.DecoratorConstructor,Q)}}),this.state.strict=$,this.next(),X.length)throw this.raise(M.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(Y,"ClassBody")}parseClassMemberFromModifier(D,$){let J=this.parseIdentifier(!0);if(this.isClassMethod()){let X=$;return X.kind="method",X.computed=!1,X.key=J,X.static=!1,this.pushClassMethod(D,X,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let X=$;return X.computed=!1,X.key=J,X.static=!1,D.body.push(this.parseClassProperty(X)),!0}return this.resetPreviousNodeTrailingComments(J),!1}parseClassMember(D,$,J){let X=this.isContextual(106);if(X){if(this.parseClassMemberFromModifier(D,$))return;if(this.eat(5)){this.parseClassStaticBlock(D,$);return}}this.parseClassMemberWithIsStatic(D,$,J,X)}parseClassMemberWithIsStatic(D,$,J,X){let Y=$,Q=$,U=$,F=$,W=$,K=Y,q=Y;if($.static=X,this.parsePropertyNamePrefixOperator($),this.eat(55)){K.kind="method";let B=this.match(139);if(this.parseClassElementName(K),this.parsePostMemberNameModifiers(K),B){this.pushClassPrivateMethod(D,Q,!0,!1);return}if(this.isNonstaticConstructor(Y))this.raise(M.ConstructorIsGenerator,Y.key);this.pushClassMethod(D,Y,!0,!1,!1,!1);return}let G=!this.state.containsEsc&&gD(this.state.type),Z=this.parseClassElementName($),H=G?Z.name:null,z=this.isPrivateName(Z),I=this.state.startLoc;if(this.parsePostMemberNameModifiers(q),this.isClassMethod()){if(K.kind="method",z){this.pushClassPrivateMethod(D,Q,!1,!1);return}let B=this.isNonstaticConstructor(Y),N=!1;if(B){if(Y.kind="constructor",J.hadConstructor&&!this.hasPlugin("typescript"))this.raise(M.DuplicateConstructor,Z);if(B&&this.hasPlugin("typescript")&&$.override)this.raise(M.OverrideOnConstructor,Z);J.hadConstructor=!0,N=J.hadSuperClass}this.pushClassMethod(D,Y,!1,!1,B,N)}else if(this.isClassProperty())if(z)this.pushClassPrivateProperty(D,F);else this.pushClassProperty(D,U);else if(H==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(Z);let B=this.eat(55);if(q.optional)this.unexpected(I);K.kind="method";let N=this.match(139);if(this.parseClassElementName(K),this.parsePostMemberNameModifiers(q),N)this.pushClassPrivateMethod(D,Q,B,!0);else{if(this.isNonstaticConstructor(Y))this.raise(M.ConstructorIsAsync,Y.key);this.pushClassMethod(D,Y,B,!0,!1,!1)}}else if((H==="get"||H==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(Z),K.kind=H;let B=this.match(139);if(this.parseClassElementName(Y),B)this.pushClassPrivateMethod(D,Q,!1,!1);else{if(this.isNonstaticConstructor(Y))this.raise(M.ConstructorIsAccessor,Y.key);this.pushClassMethod(D,Y,!1,!1,!1,!1)}this.checkGetterSetterParams(Y)}else if(H==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(Z);let B=this.match(139);this.parseClassElementName(U),this.pushClassAccessorProperty(D,W,B)}else if(this.isLineTerminator())if(z)this.pushClassPrivateProperty(D,F);else this.pushClassProperty(D,U);else this.unexpected()}parseClassElementName(D){let{type:$,value:J}=this.state;if(($===132||$===134)&&D.static&&J==="prototype")this.raise(M.StaticPrototype,this.state.startLoc);if($===139){if(J==="constructor")this.raise(M.ConstructorClassPrivateField,this.state.startLoc);let X=this.parsePrivateName();return D.key=X,X}return this.parsePropertyName(D),D.key}parseClassStaticBlock(D,$){var J;this.scope.enter(720);let X=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let Y=$.body=[];if(this.parseBlockOrModuleBlockBody(Y,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=X,D.body.push(this.finishNode($,"StaticBlock")),(J=$.decorators)!=null&&J.length)this.raise(M.DecoratorStaticBlock,$)}pushClassProperty(D,$){if(!$.computed&&this.nameIsConstructor($.key))this.raise(M.ConstructorClassField,$.key);D.body.push(this.parseClassProperty($))}pushClassPrivateProperty(D,$){let J=this.parseClassPrivateProperty($);D.body.push(J),this.classScope.declarePrivateName(this.getPrivateNameSV(J.key),0,J.key.loc.start)}pushClassAccessorProperty(D,$,J){if(!J&&!$.computed&&this.nameIsConstructor($.key))this.raise(M.ConstructorClassField,$.key);let X=this.parseClassAccessorProperty($);if(D.body.push(X),J)this.classScope.declarePrivateName(this.getPrivateNameSV(X.key),0,X.key.loc.start)}pushClassMethod(D,$,J,X,Y,Q){D.body.push(this.parseMethod($,J,X,Y,Q,"ClassMethod",!0))}pushClassPrivateMethod(D,$,J,X){let Y=this.parseMethod($,J,X,!1,!1,"ClassPrivateMethod",!0);D.body.push(Y);let Q=Y.kind==="get"?Y.static?6:2:Y.kind==="set"?Y.static?5:1:0;this.declareClassPrivateMethodInScope(Y,Q)}declareClassPrivateMethodInScope(D,$){this.classScope.declarePrivateName(this.getPrivateNameSV(D.key),$,D.key.loc.start)}parsePostMemberNameModifiers(D){}parseClassPrivateProperty(D){return this.parseInitializer(D),this.semicolon(),this.finishNode(D,"ClassPrivateProperty")}parseClassProperty(D){return this.parseInitializer(D),this.semicolon(),this.finishNode(D,"ClassProperty")}parseClassAccessorProperty(D){return this.parseInitializer(D),this.semicolon(),this.finishNode(D,"ClassAccessorProperty")}parseInitializer(D){this.scope.enter(592),this.expressionScope.enter(Vy()),this.prodParam.enter(0),D.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(D,$,J,X=8331){if(gD(this.state.type)){if(D.id=this.parseIdentifier(),$)this.declareNameFromIdentifier(D.id,X)}else if(J||!$)D.id=null;else throw this.raise(M.MissingClassName,this.state.startLoc)}parseClassSuper(D){D.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(D,$){let J=this.parseMaybeImportPhase(D,!0),X=this.maybeParseExportDefaultSpecifier(D,J),Y=!X||this.eat(12),Q=Y&&this.eatExportStar(D),U=Q&&this.maybeParseExportNamespaceSpecifier(D),F=Y&&(!U||this.eat(12)),W=X||Q;if(Q&&!U){if(X)this.unexpected();if($)throw this.raise(M.UnsupportedDecoratorExport,D);return this.parseExportFrom(D,!0),this.sawUnambiguousESM=!0,this.finishNode(D,"ExportAllDeclaration")}let K=this.maybeParseExportNamedSpecifiers(D);if(X&&Y&&!Q&&!K)this.unexpected(null,5);if(U&&F)this.unexpected(null,98);let q;if(W||K){if(q=!1,$)throw this.raise(M.UnsupportedDecoratorExport,D);this.parseExportFrom(D,W)}else q=this.maybeParseExportDeclaration(D);if(W||K||q){var G;let Z=D;if(this.checkExport(Z,!0,!1,!!Z.source),((G=Z.declaration)==null?void 0:G.type)==="ClassDeclaration")this.maybeTakeDecorators($,Z.declaration,Z);else if($)throw this.raise(M.UnsupportedDecoratorExport,D);return this.sawUnambiguousESM=!0,this.finishNode(Z,"ExportNamedDeclaration")}if(this.eat(65)){let Z=D,H=this.parseExportDefaultExpression();if(Z.declaration=H,H.type==="ClassDeclaration")this.maybeTakeDecorators($,H,Z);else if($)throw this.raise(M.UnsupportedDecoratorExport,D);return this.checkExport(Z,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(Z,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(D){return this.eat(55)}maybeParseExportDefaultSpecifier(D,$){if($||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",$==null?void 0:$.loc.start);let J=$||this.parseIdentifier(!0),X=this.startNodeAtNode(J);return X.exported=J,D.specifiers=[this.finishNode(X,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(D){if(this.isContextual(93)){var $,J;(J=($=D).specifiers)!=null||($.specifiers=[]);let X=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),X.exported=this.parseModuleExportName(),D.specifiers.push(this.finishNode(X,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(D){if(this.match(5)){let $=D;if(!$.specifiers)$.specifiers=[];let J=$.exportKind==="type";if($.specifiers.push(...this.parseExportSpecifiers(J)),$.source=null,this.hasPlugin("importAssertions"))$.assertions=[];else $.attributes=[];return $.declaration=null,!0}return!1}maybeParseExportDeclaration(D){if(this.shouldParseExportDeclaration()){if(D.specifiers=[],D.source=null,this.hasPlugin("importAssertions"))D.assertions=[];else D.attributes=[];return D.declaration=this.parseExportDeclaration(D),!0}return!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let D=this.nextTokenInLineStart();return this.isUnparsedContextual(D,"function")}parseExportDefaultExpression(){let D=this.startNode();if(this.match(68))return this.next(),this.parseFunction(D,5);else if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(D,13);if(this.match(80))return this.parseClass(D,!0,!0);if(this.match(26)){if(this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0)this.raise(M.DecoratorBeforeExport,this.state.startLoc);return this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0)}if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(M.UnsupportedDefaultExport,this.state.startLoc);let $=this.parseMaybeAssignAllowIn();return this.semicolon(),$}parseExportDeclaration(D){if(this.match(80))return this.parseClass(this.startNode(),!0,!1);return this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:D}=this.state;if(gD(D)){if(D===95&&!this.state.containsEsc||D===100)return!1;if((D===130||D===129)&&!this.state.containsEsc){let X=this.nextTokenStart(),Y=this.input.charCodeAt(X);if(Y===123||this.chStartsBindingIdentifier(Y,X)&&!this.input.startsWith("from",X))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let $=this.nextTokenStart(),J=this.isUnparsedContextual($,"from");if(this.input.charCodeAt($)===44||gD(this.state.type)&&J)return!0;if(this.match(65)&&J){let X=this.input.charCodeAt(this.nextTokenStartSince($+4));return X===34||X===39}return!1}parseExportFrom(D,$){if(this.eatContextual(98))D.source=this.parseImportSource(),this.checkExport(D),this.maybeParseImportAttributes(D),this.checkJSONModuleImport(D);else if($)this.unexpected();this.semicolon()}shouldParseExportDeclaration(){let{type:D}=this.state;if(D===26){if(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators")){if(this.getPluginOption("decorators","decoratorsBeforeExport")===!0)this.raise(M.DecoratorBeforeExport,this.state.startLoc);return!0}}if(this.isUsing())return this.raise(M.UsingDeclarationExport,this.state.startLoc),!0;if(this.isAwaitUsing())return this.raise(M.UsingDeclarationExport,this.state.startLoc),!0;return D===74||D===75||D===68||D===80||this.isLet()||this.isAsyncFunction()}checkExport(D,$,J,X){if($){var Y;if(J){if(this.checkDuplicateExports(D,"default"),this.hasPlugin("exportDefaultFrom")){var Q;let U=D.declaration;if(U.type==="Identifier"&&U.name==="from"&&U.end-U.start===4&&!((Q=U.extra)!=null&&Q.parenthesized))this.raise(M.ExportDefaultFromAsIdentifier,U)}}else if((Y=D.specifiers)!=null&&Y.length)for(let U of D.specifiers){let{exported:F}=U,W=F.type==="Identifier"?F.name:F.value;if(this.checkDuplicateExports(U,W),!X&&U.local){let{local:K}=U;if(K.type!=="Identifier")this.raise(M.ExportBindingIsString,U,{localName:K.value,exportName:W});else this.checkReservedWord(K.name,K.loc.start,!0,!1),this.scope.checkLocalExport(K)}}else if(D.declaration){let U=D.declaration;if(U.type==="FunctionDeclaration"||U.type==="ClassDeclaration"){let{id:F}=U;if(!F)throw Error("Assertion failure");this.checkDuplicateExports(D,F.name)}else if(U.type==="VariableDeclaration")for(let F of U.declarations)this.checkDeclaration(F.id)}}}checkDeclaration(D){if(D.type==="Identifier")this.checkDuplicateExports(D,D.name);else if(D.type==="ObjectPattern")for(let $ of D.properties)this.checkDeclaration($);else if(D.type==="ArrayPattern"){for(let $ of D.elements)if($)this.checkDeclaration($)}else if(D.type==="ObjectProperty")this.checkDeclaration(D.value);else if(D.type==="RestElement")this.checkDeclaration(D.argument);else if(D.type==="AssignmentPattern")this.checkDeclaration(D.left)}checkDuplicateExports(D,$){if(this.exportedIdentifiers.has($))if($==="default")this.raise(M.DuplicateDefaultExport,D);else this.raise(M.DuplicateExport,D,{exportName:$});this.exportedIdentifiers.add($)}parseExportSpecifiers(D){let $=[],J=!0;this.expect(5);while(!this.eat(8)){if(J)J=!1;else if(this.expect(12),this.eat(8))break;let X=this.isContextual(130),Y=this.match(134),Q=this.startNode();Q.local=this.parseModuleExportName(),$.push(this.parseExportSpecifier(Q,Y,D,X))}return $}parseExportSpecifier(D,$,J,X){if(this.eatContextual(93))D.exported=this.parseModuleExportName();else if($)D.exported=this.cloneStringLiteral(D.local);else if(!D.exported)D.exported=this.cloneIdentifier(D.local);return this.finishNode(D,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let D=this.parseStringLiteral(this.state.value),$=nWD.exec(D.value);if($)this.raise(M.ModuleExportNameHasLoneSurrogate,D,{surrogateCharCode:$[0].charCodeAt(0)});return D}return this.parseIdentifier(!0)}isJSONModuleImport(D){if(D.assertions!=null)return D.assertions.some(({key:$,value:J})=>{return J.value==="json"&&($.type==="Identifier"?$.name==="type":$.value==="type")});return!1}checkImportReflection(D){let{specifiers:$}=D,J=$.length===1?$[0].type:null;if(D.phase==="source"){if(J!=="ImportDefaultSpecifier")this.raise(M.SourcePhaseImportRequiresDefault,$[0].loc.start)}else if(D.phase==="defer"){if(J!=="ImportNamespaceSpecifier")this.raise(M.DeferImportRequiresNamespace,$[0].loc.start)}else if(D.module){var X;if(J!=="ImportDefaultSpecifier")this.raise(M.ImportReflectionNotBinding,$[0].loc.start);if(((X=D.assertions)==null?void 0:X.length)>0)this.raise(M.ImportReflectionHasAssertion,$[0].loc.start)}}checkJSONModuleImport(D){if(this.isJSONModuleImport(D)&&D.type!=="ExportAllDeclaration"){let{specifiers:$}=D;if($!=null){let J=$.find((X)=>{let Y;if(X.type==="ExportSpecifier")Y=X.local;else if(X.type==="ImportSpecifier")Y=X.imported;if(Y!==void 0)return Y.type==="Identifier"?Y.name!=="default":Y.value!=="default"});if(J!==void 0)this.raise(M.ImportJSONBindingNotDefault,J.loc.start)}}}isPotentialImportPhase(D){if(D)return!1;return this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(D,$,J,X){if($)return;if(J==="module")this.expectPlugin("importReflection",X),D.module=!0;else if(this.hasPlugin("importReflection"))D.module=!1;if(J==="source")this.expectPlugin("sourcePhaseImports",X),D.phase="source";else if(J==="defer")this.expectPlugin("deferredImportEvaluation",X),D.phase="defer";else if(this.hasPlugin("sourcePhaseImports"))D.phase=null}parseMaybeImportPhase(D,$){if(!this.isPotentialImportPhase($))return this.applyImportPhase(D,$,null),null;let J=this.startNode(),X=this.parseIdentifierName(!0),{type:Y}=this.state;if(F6(Y)?Y!==98||this.lookaheadCharCode()===102:Y!==12)return this.applyImportPhase(D,$,X,J.loc.start),null;else return this.applyImportPhase(D,$,null),this.createIdentifier(J,X)}isPrecedingIdImportPhase(D){let{type:$}=this.state;return gD($)?$!==98||this.lookaheadCharCode()===102:$!==12}parseImport(D){if(this.match(134))return this.parseImportSourceAndAttributes(D);return this.parseImportSpecifiersAndAfter(D,this.parseMaybeImportPhase(D,!1))}parseImportSpecifiersAndAfter(D,$){D.specifiers=[];let X=!this.maybeParseDefaultImportSpecifier(D,$)||this.eat(12),Y=X&&this.maybeParseStarImportSpecifier(D);if(X&&!Y)this.parseNamedImportSpecifiers(D);return this.expectContextual(98),this.parseImportSourceAndAttributes(D)}parseImportSourceAndAttributes(D){var $;return($=D.specifiers)!=null||(D.specifiers=[]),D.source=this.parseImportSource(),this.maybeParseImportAttributes(D),this.checkImportReflection(D),this.checkJSONModuleImport(D),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(D,"ImportDeclaration")}parseImportSource(){if(!this.match(134))this.unexpected();return this.parseExprAtom()}parseImportSpecifierLocal(D,$,J){$.local=this.parseIdentifier(),D.specifiers.push(this.finishImportSpecifier($,J))}finishImportSpecifier(D,$,J=8201){return this.checkLVal(D.local,{type:$},J),this.finishNode(D,$)}parseImportAttributes(){this.expect(5);let D=[],$=new Set;do{if(this.match(8))break;let J=this.startNode(),X=this.state.value;if($.has(X))this.raise(M.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:X});if($.add(X),this.match(134))J.key=this.parseStringLiteral(X);else J.key=this.parseIdentifier(!0);if(this.expect(14),!this.match(134))throw this.raise(M.ModuleAttributeInvalidValue,this.state.startLoc);J.value=this.parseStringLiteral(this.state.value),D.push(this.finishNode(J,"ImportAttribute"))}while(this.eat(12));return this.expect(8),D}parseModuleAttributes(){let D=[],$=new Set;do{let J=this.startNode();if(J.key=this.parseIdentifier(!0),J.key.name!=="type")this.raise(M.ModuleAttributeDifferentFromType,J.key);if($.has(J.key.name))this.raise(M.ModuleAttributesWithDuplicateKeys,J.key,{key:J.key.name});if($.add(J.key.name),this.expect(14),!this.match(134))throw this.raise(M.ModuleAttributeInvalidValue,this.state.startLoc);J.value=this.parseStringLiteral(this.state.value),D.push(this.finishNode(J,"ImportAttribute"))}while(this.eat(12));return D}maybeParseImportAttributes(D){let $;var J=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;if(this.next(),this.hasPlugin("moduleAttributes"))$=this.parseModuleAttributes(),this.addExtra(D,"deprecatedWithLegacySyntax",!0);else $=this.parseImportAttributes();J=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak()){if(!this.hasPlugin("deprecatedImportAssert")&&!this.hasPlugin("importAssertions"))this.raise(M.ImportAttributesUseAssert,this.state.startLoc);if(!this.hasPlugin("importAssertions"))this.addExtra(D,"deprecatedAssertSyntax",!0);this.next(),$=this.parseImportAttributes()}else $=[];if(!J&&this.hasPlugin("importAssertions"))D.assertions=$;else D.attributes=$}maybeParseDefaultImportSpecifier(D,$){if($){let J=this.startNodeAtNode($);return J.local=$,D.specifiers.push(this.finishImportSpecifier(J,"ImportDefaultSpecifier")),!0}else if(F6(this.state.type))return this.parseImportSpecifierLocal(D,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(D){if(this.match(55)){let $=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(D,$,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(D){let $=!0;this.expect(5);while(!this.eat(8)){if($)$=!1;else{if(this.eat(14))throw this.raise(M.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let J=this.startNode(),X=this.match(134),Y=this.isContextual(130);J.imported=this.parseModuleExportName();let Q=this.parseImportSpecifier(J,X,D.importKind==="type"||D.importKind==="typeof",Y,void 0);D.specifiers.push(Q)}}parseImportSpecifier(D,$,J,X,Y){if(this.eatContextual(93))D.local=this.parseIdentifier();else{let{imported:Q}=D;if($)throw this.raise(M.ImportBindingIsString,D,{importName:Q.value});if(this.checkReservedWord(Q.name,D.loc.start,!0,!0),!D.local)D.local=this.cloneIdentifier(Q)}return this.finishImportSpecifier(D,"ImportSpecifier",Y)}isThisParam(D){return D.type==="Identifier"&&D.name==="this"}}class EN extends Ey{constructor(D,$,J){let X=pFD(D);super(X,$);this.options=X,this.initializeScopes(),this.plugins=J,this.filename=X.sourceFilename,this.startIndex=X.startIndex;let Y=0;if(X.allowAwaitOutsideFunction)Y|=1;if(X.allowReturnOutsideFunction)Y|=2;if(X.allowImportExportEverywhere)Y|=8;if(X.allowSuperOutsideMethod)Y|=16;if(X.allowUndeclaredExports)Y|=64;if(X.allowNewTargetOutsideFunction)Y|=4;if(X.allowYieldOutsideFunction)Y|=32;if(X.ranges)Y|=128;if(X.tokens)Y|=256;if(X.createImportExpressions)Y|=512;if(X.createParenthesizedExpressions)Y|=1024;if(X.errorRecovery)Y|=2048;if(X.attachComment)Y|=4096;if(X.annexB)Y|=8192;this.optionFlags=Y}getScopeHandler(){return UU}parse(){this.enterInitialScopes();let D=this.startNode(),$=this.startNode();this.nextToken(),D.errors=null;let J=this.parseTopLevel(D,$);return J.errors=this.state.errors,J.comments.length=this.state.commentsLen,J}}function tWD(D,$){var J;if(((J=$)==null?void 0:J.sourceType)==="unambiguous"){$=Object.assign({},$);try{$.sourceType="module";let X=F3($,D),Y=X.parse();if(X.sawUnambiguousESM)return Y;if(X.ambiguousScriptDifferentAst)try{return $.sourceType="script",F3($,D).parse()}catch(Q){}else Y.program.sourceType="script";return Y}catch(X){try{return $.sourceType="script",F3($,D).parse()}catch(Y){}throw X}}else return F3($,D).parse()}function oWD(D,$){let J=F3($,D);if(J.options.strictMode)J.state.strict=!0;return J.getExpression()}function aWD(D){let $={};for(let J of Object.keys(D))$[J]=i6(D[J]);return $}var sWD=aWD(oFD);function F3(D,$){let J=EN,X=new Map;if(D!=null&&D.plugins){for(let Y of D.plugins){let Q,U;if(typeof Y==="string")Q=Y;else[Q,U]=Y;if(!X.has(Q))X.set(Q,U||{})}iWD(X),J=eWD(X)}return new J(D,$,X)}var af=new Map;function eWD(D){let $=[];for(let Y of cWD)if(D.has(Y))$.push(Y);let J=$.join("|"),X=af.get(J);if(!X){X=EN;for(let Y of $)X=Ay[Y](X);af.set(J,X)}return X}Ty.parse=tWD;Ty.parseExpression=oWD;Ty.tokTypes=sWD});var Sy=k((FU,by)=>{(function(D,$){typeof FU==="object"&&typeof by<"u"?$(FU):typeof define==="function"&&define.amd?define(["exports"],$):(D=D||self,$(D.estreeWalker={}))})(FU,function(D){class ${constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(U)=>this.replacement=U}}replace(U,F,W,K){if(U)if(W!==null)U[F][W]=K;else U[F]=K}remove(U,F,W){if(U)if(W!==null)U[F].splice(W,1);else delete U[F]}}class J extends ${constructor(U,F){super();this.enter=U,this.leave=F}visit(U,F,W,K){if(U){if(this.enter){let q=this.should_skip,G=this.should_remove,Z=this.replacement;if(this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,U,F,W,K),this.replacement)U=this.replacement,this.replace(F,W,K,U);if(this.should_remove)this.remove(F,W,K);let H=this.should_skip,z=this.should_remove;if(this.should_skip=q,this.should_remove=G,this.replacement=Z,H)return U;if(z)return null}for(let q in U){let G=U[q];if(typeof G!=="object")continue;else if(Array.isArray(G)){for(let Z=0;Z<G.length;Z+=1)if(G[Z]!==null&&typeof G[Z].type==="string"){if(!this.visit(G[Z],U,q,Z))Z--}}else if(G!==null&&typeof G.type==="string")this.visit(G,U,q,null)}if(this.leave){let q=this.replacement,G=this.should_remove;if(this.replacement=null,this.should_remove=!1,this.leave.call(this.context,U,F,W,K),this.replacement)U=this.replacement,this.replace(F,W,K,U);if(this.should_remove)this.remove(F,W,K);let Z=this.should_remove;if(this.replacement=q,this.should_remove=G,Z)return null}}return U}}class X extends ${constructor(U,F){super();this.enter=U,this.leave=F}async visit(U,F,W,K){if(U){if(this.enter){let q=this.should_skip,G=this.should_remove,Z=this.replacement;if(this.should_skip=!1,this.should_remove=!1,this.replacement=null,await this.enter.call(this.context,U,F,W,K),this.replacement)U=this.replacement,this.replace(F,W,K,U);if(this.should_remove)this.remove(F,W,K);let H=this.should_skip,z=this.should_remove;if(this.should_skip=q,this.should_remove=G,this.replacement=Z,H)return U;if(z)return null}for(let q in U){let G=U[q];if(typeof G!=="object")continue;else if(Array.isArray(G)){for(let Z=0;Z<G.length;Z+=1)if(G[Z]!==null&&typeof G[Z].type==="string"){if(!await this.visit(G[Z],U,q,Z))Z--}}else if(G!==null&&typeof G.type==="string")await this.visit(G,U,q,null)}if(this.leave){let q=this.replacement,G=this.should_remove;if(this.replacement=null,this.should_remove=!1,await this.leave.call(this.context,U,F,W,K),this.replacement)U=this.replacement,this.replace(F,W,K,U);if(this.should_remove)this.remove(F,W,K);let Z=this.should_remove;if(this.replacement=q,this.should_remove=G,Z)return null}}return U}}function Y(U,{enter:F,leave:W}){return new J(F,W).visit(U,null)}async function Q(U,{enter:F,leave:W}){return await new X(F,W).visit(U,null)}D.asyncWalk=Q,D.walk=Y,Object.defineProperty(D,"__esModule",{value:!0})})});var ky=k((XKD)=>{var Cy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");XKD.encode=function(D){if(0<=D&&D<Cy.length)return Cy[D];throw TypeError("Must be between 0 and 63: "+D)};XKD.decode=function(D){var $=65,J=90,X=97,Y=122,Q=48,U=57,F=43,W=47,K=26,q=52;if($<=D&&D<=J)return D-$;if(X<=D&&D<=Y)return D-X+K;if(Q<=D&&D<=U)return D-Q+q;if(D==F)return 62;if(D==W)return 63;return-1}});var PN=k((WKD)=>{var _y=ky(),TN=5,uy=1<<TN,gy=uy-1,xy=uy;function UKD(D){return D<0?(-D<<1)+1:(D<<1)+0}function FKD(D){var $=(D&1)===1,J=D>>1;return $?-J:J}WKD.encode=function($){var J="",X,Y=UKD($);do{if(X=Y&gy,Y>>>=TN,Y>0)X|=xy;J+=_y.encode(X)}while(Y>0);return J};WKD.decode=function($,J,X){var Y=$.length,Q=0,U=0,F,W;do{if(J>=Y)throw Error("Expected more digits in base 64 VLQ value.");if(W=_y.decode($.charCodeAt(J++)),W===-1)throw Error("Invalid base64 digit: "+$.charAt(J-1));F=!!(W&xy),W&=gy,Q=Q+(W<<U),U+=TN}while(F);X.value=FKD(Q),X.rest=J}});var I9=k((AKD)=>{function GKD(D,$,J){if($ in D)return D[$];else if(arguments.length===3)return J;else throw Error('"'+$+'" is a required argument.')}AKD.getArg=GKD;var fy=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,ZKD=/^data:.+\,.+$/;function H3(D){var $=D.match(fy);if(!$)return null;return{scheme:$[1],auth:$[2],host:$[3],port:$[4],path:$[5]}}AKD.urlParse=H3;function H9(D){var $="";if(D.scheme)$+=D.scheme+":";if($+="//",D.auth)$+=D.auth+"@";if(D.host)$+=D.host;if(D.port)$+=":"+D.port;if(D.path)$+=D.path;return $}AKD.urlGenerate=H9;var zKD=32;function HKD(D){var $=[];return function(J){for(var X=0;X<$.length;X++)if($[X].input===J){var Y=$[0];return $[0]=$[X],$[X]=Y,$[0].result}var Q=D(J);if($.unshift({input:J,result:Q}),$.length>zKD)$.pop();return Q}}var bN=HKD(function($){var J=$,X=H3($);if(X){if(!X.path)return $;J=X.path}var Y=AKD.isAbsolute(J),Q=[],U=0,F=0;while(!0)if(U=F,F=J.indexOf("/",U),F===-1){Q.push(J.slice(U));break}else{Q.push(J.slice(U,F));while(F<J.length&&J[F]==="/")F++}for(var W,K=0,F=Q.length-1;F>=0;F--)if(W=Q[F],W===".")Q.splice(F,1);else if(W==="..")K++;else if(K>0)if(W==="")Q.splice(F+1,K),K=0;else Q.splice(F,2),K--;if(J=Q.join("/"),J==="")J=Y?"/":".";if(X)return X.path=J,H9(X);return J});AKD.normalize=bN;function yy(D,$){if(D==="")D=".";if($==="")$=".";var J=H3($),X=H3(D);if(X)D=X.path||"/";if(J&&!J.scheme){if(X)J.scheme=X.scheme;return H9(J)}if(J||$.match(ZKD))return $;if(X&&!X.host&&!X.path)return X.host=$,H9(X);var Y=$.charAt(0)==="/"?$:bN(D.replace(/\/+$/,"")+"/"+$);if(X)return X.path=Y,H9(X);return Y}AKD.join=yy;AKD.isAbsolute=function(D){return D.charAt(0)==="/"||fy.test(D)};function IKD(D,$){if(D==="")D=".";D=D.replace(/\/$/,"");var J=0;while($.indexOf(D+"/")!==0){var X=D.lastIndexOf("/");if(X<0)return $;if(D=D.slice(0,X),D.match(/^([^\/]+:\/)?\/*$/))return $;++J}return Array(J+1).join("../")+$.substr(D.length+1)}AKD.relative=IKD;var hy=function(){var D=Object.create(null);return!("__proto__"in D)}();function my(D){return D}function BKD(D){if(ly(D))return"$"+D;return D}AKD.toSetString=hy?my:BKD;function OKD(D){if(ly(D))return D.slice(1);return D}AKD.fromSetString=hy?my:OKD;function ly(D){if(!D)return!1;var $=D.length;if($<9)return!1;if(D.charCodeAt($-1)!==95||D.charCodeAt($-2)!==95||D.charCodeAt($-3)!==111||D.charCodeAt($-4)!==116||D.charCodeAt($-5)!==111||D.charCodeAt($-6)!==114||D.charCodeAt($-7)!==112||D.charCodeAt($-8)!==95||D.charCodeAt($-9)!==95)return!1;for(var J=$-10;J>=0;J--)if(D.charCodeAt(J)!==36)return!1;return!0}function NKD(D,$,J){var X=r6(D.source,$.source);if(X!==0)return X;if(X=D.originalLine-$.originalLine,X!==0)return X;if(X=D.originalColumn-$.originalColumn,X!==0||J)return X;if(X=D.generatedColumn-$.generatedColumn,X!==0)return X;if(X=D.generatedLine-$.generatedLine,X!==0)return X;return r6(D.name,$.name)}AKD.compareByOriginalPositions=NKD;function VKD(D,$,J){var X=D.originalLine-$.originalLine;if(X!==0)return X;if(X=D.originalColumn-$.originalColumn,X!==0||J)return X;if(X=D.generatedColumn-$.generatedColumn,X!==0)return X;if(X=D.generatedLine-$.generatedLine,X!==0)return X;return r6(D.name,$.name)}AKD.compareByOriginalPositionsNoSource=VKD;function wKD(D,$,J){var X=D.generatedLine-$.generatedLine;if(X!==0)return X;if(X=D.generatedColumn-$.generatedColumn,X!==0||J)return X;if(X=r6(D.source,$.source),X!==0)return X;if(X=D.originalLine-$.originalLine,X!==0)return X;if(X=D.originalColumn-$.originalColumn,X!==0)return X;return r6(D.name,$.name)}AKD.compareByGeneratedPositionsDeflated=wKD;function jKD(D,$,J){var X=D.generatedColumn-$.generatedColumn;if(X!==0||J)return X;if(X=r6(D.source,$.source),X!==0)return X;if(X=D.originalLine-$.originalLine,X!==0)return X;if(X=D.originalColumn-$.originalColumn,X!==0)return X;return r6(D.name,$.name)}AKD.compareByGeneratedPositionsDeflatedNoLine=jKD;function r6(D,$){if(D===$)return 0;if(D===null)return 1;if($===null)return-1;if(D>$)return 1;return-1}function LKD(D,$){var J=D.generatedLine-$.generatedLine;if(J!==0)return J;if(J=D.generatedColumn-$.generatedColumn,J!==0)return J;if(J=r6(D.source,$.source),J!==0)return J;if(J=D.originalLine-$.originalLine,J!==0)return J;if(J=D.originalColumn-$.originalColumn,J!==0)return J;return r6(D.name,$.name)}AKD.compareByGeneratedPositionsInflated=LKD;function RKD(D){return JSON.parse(D.replace(/^\)]}'[^\n]*\n/,""))}AKD.parseSourceMapInput=RKD;function MKD(D,$,J){if($=$||"",D){if(D[D.length-1]!=="/"&&$[0]!=="/")D+="/";$=D+$}if(J){var X=H3(J);if(!X)throw Error("sourceMapURL could not be parsed");if(X.path){var Y=X.path.lastIndexOf("/");if(Y>=0)X.path=X.path.substring(0,Y+1)}$=yy(H9(X),$)}return bN($)}AKD.computeSourceURL=MKD});var kN=k((lKD)=>{var SN=I9(),CN=Object.prototype.hasOwnProperty,Y8=typeof Map<"u";function t6(){this._array=[],this._set=Y8?new Map:Object.create(null)}t6.fromArray=function($,J){var X=new t6;for(var Y=0,Q=$.length;Y<Q;Y++)X.add($[Y],J);return X};t6.prototype.size=function(){return Y8?this._set.size:Object.getOwnPropertyNames(this._set).length};t6.prototype.add=function($,J){var X=Y8?$:SN.toSetString($),Y=Y8?this.has($):CN.call(this._set,X),Q=this._array.length;if(!Y||J)this._array.push($);if(!Y)if(Y8)this._set.set($,Q);else this._set[X]=Q};t6.prototype.has=function($){if(Y8)return this._set.has($);else{var J=SN.toSetString($);return CN.call(this._set,J)}};t6.prototype.indexOf=function($){if(Y8){var J=this._set.get($);if(J>=0)return J}else{var X=SN.toSetString($);if(CN.call(this._set,X))return this._set[X]}throw Error('"'+$+'" is not in the set.')};t6.prototype.at=function($){if($>=0&&$<this._array.length)return this._array[$];throw Error("No element indexed by "+$)};t6.prototype.toArray=function(){return this._array.slice()};lKD.ArraySet=t6});var iy=k((cKD)=>{var dy=I9();function iKD(D,$){var J=D.generatedLine,X=$.generatedLine,Y=D.generatedColumn,Q=$.generatedColumn;return X>J||X==J&&Q>=Y||dy.compareByGeneratedPositionsInflated(D,$)<=0}function WU(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}WU.prototype.unsortedForEach=function($,J){this._array.forEach($,J)};WU.prototype.add=function($){if(iKD(this._last,$))this._last=$,this._array.push($);else this._sorted=!1,this._array.push($)};WU.prototype.toArray=function(){if(!this._sorted)this._array.sort(dy.compareByGeneratedPositionsInflated),this._sorted=!0;return this._array};cKD.MappingList=WU});var _N=k((rKD)=>{var I3=PN(),I0=I9(),KU=kN().ArraySet,nKD=iy().MappingList;function n$(D){if(!D)D={};this._file=I0.getArg(D,"file",null),this._sourceRoot=I0.getArg(D,"sourceRoot",null),this._skipValidation=I0.getArg(D,"skipValidation",!1),this._ignoreInvalidMapping=I0.getArg(D,"ignoreInvalidMapping",!1),this._sources=new KU,this._names=new KU,this._mappings=new nKD,this._sourcesContents=null}n$.prototype._version=3;n$.fromSourceMap=function($,J){var X=$.sourceRoot,Y=new n$(Object.assign(J||{},{file:$.file,sourceRoot:X}));return $.eachMapping(function(Q){var U={generated:{line:Q.generatedLine,column:Q.generatedColumn}};if(Q.source!=null){if(U.source=Q.source,X!=null)U.source=I0.relative(X,U.source);if(U.original={line:Q.originalLine,column:Q.originalColumn},Q.name!=null)U.name=Q.name}Y.addMapping(U)}),$.sources.forEach(function(Q){var U=Q;if(X!==null)U=I0.relative(X,Q);if(!Y._sources.has(U))Y._sources.add(U);var F=$.sourceContentFor(Q);if(F!=null)Y.setSourceContent(Q,F)}),Y};n$.prototype.addMapping=function($){var J=I0.getArg($,"generated"),X=I0.getArg($,"original",null),Y=I0.getArg($,"source",null),Q=I0.getArg($,"name",null);if(!this._skipValidation){if(this._validateMapping(J,X,Y,Q)===!1)return}if(Y!=null){if(Y=String(Y),!this._sources.has(Y))this._sources.add(Y)}if(Q!=null){if(Q=String(Q),!this._names.has(Q))this._names.add(Q)}this._mappings.add({generatedLine:J.line,generatedColumn:J.column,originalLine:X!=null&&X.line,originalColumn:X!=null&&X.column,source:Y,name:Q})};n$.prototype.setSourceContent=function($,J){var X=$;if(this._sourceRoot!=null)X=I0.relative(this._sourceRoot,X);if(J!=null){if(!this._sourcesContents)this._sourcesContents=Object.create(null);this._sourcesContents[I0.toSetString(X)]=J}else if(this._sourcesContents){if(delete this._sourcesContents[I0.toSetString(X)],Object.keys(this._sourcesContents).length===0)this._sourcesContents=null}};n$.prototype.applySourceMap=function($,J,X){var Y=J;if(J==null){if($.file==null)throw Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);Y=$.file}var Q=this._sourceRoot;if(Q!=null)Y=I0.relative(Q,Y);var U=new KU,F=new KU;this._mappings.unsortedForEach(function(W){if(W.source===Y&&W.originalLine!=null){var K=$.originalPositionFor({line:W.originalLine,column:W.originalColumn});if(K.source!=null){if(W.source=K.source,X!=null)W.source=I0.join(X,W.source);if(Q!=null)W.source=I0.relative(Q,W.source);if(W.originalLine=K.line,W.originalColumn=K.column,K.name!=null)W.name=K.name}}var q=W.source;if(q!=null&&!U.has(q))U.add(q);var G=W.name;if(G!=null&&!F.has(G))F.add(G)},this),this._sources=U,this._names=F,$.sources.forEach(function(W){var K=$.sourceContentFor(W);if(K!=null){if(X!=null)W=I0.join(X,W);if(Q!=null)W=I0.relative(Q,W);this.setSourceContent(W,K)}},this)};n$.prototype._validateMapping=function($,J,X,Y){if(J&&typeof J.line!=="number"&&typeof J.column!=="number"){var Q="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping){if(typeof console<"u"&&console.warn)console.warn(Q);return!1}else throw Error(Q)}if($&&"line"in $&&"column"in $&&$.line>0&&$.column>=0&&!J&&!X&&!Y)return;else if($&&"line"in $&&"column"in $&&J&&"line"in J&&"column"in J&&$.line>0&&$.column>=0&&J.line>0&&J.column>=0&&X)return;else{var Q="Invalid mapping: "+JSON.stringify({generated:$,source:X,original:J,name:Y});if(this._ignoreInvalidMapping){if(typeof console<"u"&&console.warn)console.warn(Q);return!1}else throw Error(Q)}};n$.prototype._serializeMappings=function(){var $=0,J=1,X=0,Y=0,Q=0,U=0,F="",W,K,q,G,Z=this._mappings.toArray();for(var H=0,z=Z.length;H<z;H++){if(K=Z[H],W="",K.generatedLine!==J){$=0;while(K.generatedLine!==J)W+=";",J++}else if(H>0){if(!I0.compareByGeneratedPositionsInflated(K,Z[H-1]))continue;W+=","}if(W+=I3.encode(K.generatedColumn-$),$=K.generatedColumn,K.source!=null){if(G=this._sources.indexOf(K.source),W+=I3.encode(G-U),U=G,W+=I3.encode(K.originalLine-1-Y),Y=K.originalLine-1,W+=I3.encode(K.originalColumn-X),X=K.originalColumn,K.name!=null)q=this._names.indexOf(K.name),W+=I3.encode(q-Q),Q=q}F+=W}return F};n$.prototype._generateSourcesContent=function($,J){return $.map(function(X){if(!this._sourcesContents)return null;if(J!=null)X=I0.relative(J,X);var Y=I0.toSetString(X);return Object.prototype.hasOwnProperty.call(this._sourcesContents,Y)?this._sourcesContents[Y]:null},this)};n$.prototype.toJSON=function(){var $={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null)$.file=this._file;if(this._sourceRoot!=null)$.sourceRoot=this._sourceRoot;if(this._sourcesContents)$.sourcesContent=this._generateSourcesContent($.sources,$.sourceRoot);return $};n$.prototype.toString=function(){return JSON.stringify(this.toJSON())};rKD.SourceMapGenerator=n$});var py=k((oKD)=>{oKD.GREATEST_LOWER_BOUND=1;oKD.LEAST_UPPER_BOUND=2;function uN(D,$,J,X,Y,Q){var U=Math.floor(($-D)/2)+D,F=Y(J,X[U],!0);if(F===0)return U;else if(F>0){if($-U>1)return uN(U,$,J,X,Y,Q);if(Q==oKD.LEAST_UPPER_BOUND)return $<X.length?$:-1;else return U}else{if(U-D>1)return uN(D,U,J,X,Y,Q);if(Q==oKD.LEAST_UPPER_BOUND)return U;else return D<0?-1:D}}oKD.search=function($,J,X,Y){if(J.length===0)return-1;var Q=uN(-1,J.length,$,J,X,Y||oKD.GREATEST_LOWER_BOUND);if(Q<0)return-1;while(Q-1>=0){if(X(J[Q],J[Q-1],!0)!==0)break;--Q}return Q}});var ry=k((DqD)=>{function sKD(D){function $(Y,Q,U){var F=Y[Q];Y[Q]=Y[U],Y[U]=F}function J(Y,Q){return Math.round(Y+Math.random()*(Q-Y))}function X(Y,Q,U,F){if(U<F){var W=J(U,F),K=U-1;$(Y,W,F);var q=Y[F];for(var G=U;G<F;G++)if(Q(Y[G],q,!1)<=0)K+=1,$(Y,K,G);$(Y,K+1,G);var Z=K+1;X(Y,Q,U,Z-1),X(Y,Q,Z+1,F)}}return X}function eKD(D){let $=sKD.toString();return Function(`return ${$}`)()(D)}var ny=new WeakMap;DqD.quickSort=function(D,$,J=0){let X=ny.get($);if(X===void 0)X=eKD($),ny.set($,X);X(D,$,J,D.length-1)}});var ay=k((XqD)=>{var QD=I9(),fN=py(),B9=kN().ArraySet,JqD=PN(),B3=ry().quickSort;function D0(D,$){var J=D;if(typeof D==="string")J=QD.parseSourceMapInput(D);return J.sections!=null?new W6(J,$):new u0(J,$)}D0.fromSourceMap=function(D,$){return u0.fromSourceMap(D,$)};D0.prototype._version=3;D0.prototype.__generatedMappings=null;Object.defineProperty(D0.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){if(!this.__generatedMappings)this._parseMappings(this._mappings,this.sourceRoot);return this.__generatedMappings}});D0.prototype.__originalMappings=null;Object.defineProperty(D0.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){if(!this.__originalMappings)this._parseMappings(this._mappings,this.sourceRoot);return this.__originalMappings}});D0.prototype._charIsMappingSeparator=function($,J){var X=$.charAt(J);return X===";"||X===","};D0.prototype._parseMappings=function($,J){throw Error("Subclasses must implement _parseMappings")};D0.GENERATED_ORDER=1;D0.ORIGINAL_ORDER=2;D0.GREATEST_LOWER_BOUND=1;D0.LEAST_UPPER_BOUND=2;D0.prototype.eachMapping=function($,J,X){var Y=J||null,Q=X||D0.GENERATED_ORDER,U;switch(Q){case D0.GENERATED_ORDER:U=this._generatedMappings;break;case D0.ORIGINAL_ORDER:U=this._originalMappings;break;default:throw Error("Unknown order of iteration.")}var F=this.sourceRoot,W=$.bind(Y),K=this._names,q=this._sources,G=this._sourceMapURL;for(var Z=0,H=U.length;Z<H;Z++){var z=U[Z],I=z.source===null?null:q.at(z.source);if(I!==null)I=QD.computeSourceURL(F,I,G);W({source:I,generatedLine:z.generatedLine,generatedColumn:z.generatedColumn,originalLine:z.originalLine,originalColumn:z.originalColumn,name:z.name===null?null:K.at(z.name)})}};D0.prototype.allGeneratedPositionsFor=function($){var J=QD.getArg($,"line"),X={source:QD.getArg($,"source"),originalLine:J,originalColumn:QD.getArg($,"column",0)};if(X.source=this._findSourceIndex(X.source),X.source<0)return[];var Y=[],Q=this._findMapping(X,this._originalMappings,"originalLine","originalColumn",QD.compareByOriginalPositions,fN.LEAST_UPPER_BOUND);if(Q>=0){var U=this._originalMappings[Q];if($.column===void 0){var F=U.originalLine;while(U&&U.originalLine===F)Y.push({line:QD.getArg(U,"generatedLine",null),column:QD.getArg(U,"generatedColumn",null),lastColumn:QD.getArg(U,"lastGeneratedColumn",null)}),U=this._originalMappings[++Q]}else{var W=U.originalColumn;while(U&&U.originalLine===J&&U.originalColumn==W)Y.push({line:QD.getArg(U,"generatedLine",null),column:QD.getArg(U,"generatedColumn",null),lastColumn:QD.getArg(U,"lastGeneratedColumn",null)}),U=this._originalMappings[++Q]}}return Y};XqD.SourceMapConsumer=D0;function u0(D,$){var J=D;if(typeof D==="string")J=QD.parseSourceMapInput(D);var X=QD.getArg(J,"version"),Y=QD.getArg(J,"sources"),Q=QD.getArg(J,"names",[]),U=QD.getArg(J,"sourceRoot",null),F=QD.getArg(J,"sourcesContent",null),W=QD.getArg(J,"mappings"),K=QD.getArg(J,"file",null);if(X!=this._version)throw Error("Unsupported version: "+X);if(U)U=QD.normalize(U);Y=Y.map(String).map(QD.normalize).map(function(q){return U&&QD.isAbsolute(U)&&QD.isAbsolute(q)?QD.relative(U,q):q}),this._names=B9.fromArray(Q.map(String),!0),this._sources=B9.fromArray(Y,!0),this._absoluteSources=this._sources.toArray().map(function(q){return QD.computeSourceURL(U,q,$)}),this.sourceRoot=U,this.sourcesContent=F,this._mappings=W,this._sourceMapURL=$,this.file=K}u0.prototype=Object.create(D0.prototype);u0.prototype.consumer=D0;u0.prototype._findSourceIndex=function(D){var $=D;if(this.sourceRoot!=null)$=QD.relative(this.sourceRoot,$);if(this._sources.has($))return this._sources.indexOf($);var J;for(J=0;J<this._absoluteSources.length;++J)if(this._absoluteSources[J]==D)return J;return-1};u0.fromSourceMap=function($,J){var X=Object.create(u0.prototype),Y=X._names=B9.fromArray($._names.toArray(),!0),Q=X._sources=B9.fromArray($._sources.toArray(),!0);X.sourceRoot=$._sourceRoot,X.sourcesContent=$._generateSourcesContent(X._sources.toArray(),X.sourceRoot),X.file=$._file,X._sourceMapURL=J,X._absoluteSources=X._sources.toArray().map(function(H){return QD.computeSourceURL(X.sourceRoot,H,J)});var U=$._mappings.toArray().slice(),F=X.__generatedMappings=[],W=X.__originalMappings=[];for(var K=0,q=U.length;K<q;K++){var G=U[K],Z=new oy;if(Z.generatedLine=G.generatedLine,Z.generatedColumn=G.generatedColumn,G.source){if(Z.source=Q.indexOf(G.source),Z.originalLine=G.originalLine,Z.originalColumn=G.originalColumn,G.name)Z.name=Y.indexOf(G.name);W.push(Z)}F.push(Z)}return B3(X.__originalMappings,QD.compareByOriginalPositions),X};u0.prototype._version=3;Object.defineProperty(u0.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function oy(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var xN=QD.compareByGeneratedPositionsDeflatedNoLine;function ty(D,$){let J=D.length,X=D.length-$;if(X<=1)return;else if(X==2){let Y=D[$],Q=D[$+1];if(xN(Y,Q)>0)D[$]=Q,D[$+1]=Y}else if(X<20)for(let Y=$;Y<J;Y++)for(let Q=Y;Q>$;Q--){let U=D[Q-1],F=D[Q];if(xN(U,F)<=0)break;D[Q-1]=F,D[Q]=U}else B3(D,xN,$)}u0.prototype._parseMappings=function($,J){var X=1,Y=0,Q=0,U=0,F=0,W=0,K=$.length,q=0,G={},Z={},H=[],z=[],I,B,N,V,O;let j=0;while(q<K)if($.charAt(q)===";")X++,q++,Y=0,ty(z,j),j=z.length;else if($.charAt(q)===",")q++;else{I=new oy,I.generatedLine=X;for(V=q;V<K;V++)if(this._charIsMappingSeparator($,V))break;B=$.slice(q,V),N=[];while(q<V)JqD.decode($,q,Z),O=Z.value,q=Z.rest,N.push(O);if(N.length===2)throw Error("Found a source, but no line and column");if(N.length===3)throw Error("Found a source and line, but no column");if(I.generatedColumn=Y+N[0],Y=I.generatedColumn,N.length>1){if(I.source=F+N[1],F+=N[1],I.originalLine=Q+N[2],Q=I.originalLine,I.originalLine+=1,I.originalColumn=U+N[3],U=I.originalColumn,N.length>4)I.name=W+N[4],W+=N[4]}if(z.push(I),typeof I.originalLine==="number"){let A=I.source;while(H.length<=A)H.push(null);if(H[A]===null)H[A]=[];H[A].push(I)}}ty(z,j),this.__generatedMappings=z;for(var v=0;v<H.length;v++)if(H[v]!=null)B3(H[v],QD.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...H)};u0.prototype._findMapping=function($,J,X,Y,Q,U){if($[X]<=0)throw TypeError("Line must be greater than or equal to 1, got "+$[X]);if($[Y]<0)throw TypeError("Column must be greater than or equal to 0, got "+$[Y]);return fN.search($,J,Q,U)};u0.prototype.computeColumnSpans=function(){for(var $=0;$<this._generatedMappings.length;++$){var J=this._generatedMappings[$];if($+1<this._generatedMappings.length){var X=this._generatedMappings[$+1];if(J.generatedLine===X.generatedLine){J.lastGeneratedColumn=X.generatedColumn-1;continue}}J.lastGeneratedColumn=1/0}};u0.prototype.originalPositionFor=function($){var J={generatedLine:QD.getArg($,"line"),generatedColumn:QD.getArg($,"column")},X=this._findMapping(J,this._generatedMappings,"generatedLine","generatedColumn",QD.compareByGeneratedPositionsDeflated,QD.getArg($,"bias",D0.GREATEST_LOWER_BOUND));if(X>=0){var Y=this._generatedMappings[X];if(Y.generatedLine===J.generatedLine){var Q=QD.getArg(Y,"source",null);if(Q!==null)Q=this._sources.at(Q),Q=QD.computeSourceURL(this.sourceRoot,Q,this._sourceMapURL);var U=QD.getArg(Y,"name",null);if(U!==null)U=this._names.at(U);return{source:Q,line:QD.getArg(Y,"originalLine",null),column:QD.getArg(Y,"originalColumn",null),name:U}}}return{source:null,line:null,column:null,name:null}};u0.prototype.hasContentsOfAllSources=function(){if(!this.sourcesContent)return!1;return this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function($){return $==null})};u0.prototype.sourceContentFor=function($,J){if(!this.sourcesContent)return null;var X=this._findSourceIndex($);if(X>=0)return this.sourcesContent[X];var Y=$;if(this.sourceRoot!=null)Y=QD.relative(this.sourceRoot,Y);var Q;if(this.sourceRoot!=null&&(Q=QD.urlParse(this.sourceRoot))){var U=Y.replace(/^file:\/\//,"");if(Q.scheme=="file"&&this._sources.has(U))return this.sourcesContent[this._sources.indexOf(U)];if((!Q.path||Q.path=="/")&&this._sources.has("/"+Y))return this.sourcesContent[this._sources.indexOf("/"+Y)]}if(J)return null;else throw Error('"'+Y+'" is not in the SourceMap.')};u0.prototype.generatedPositionFor=function($){var J=QD.getArg($,"source");if(J=this._findSourceIndex(J),J<0)return{line:null,column:null,lastColumn:null};var X={source:J,originalLine:QD.getArg($,"line"),originalColumn:QD.getArg($,"column")},Y=this._findMapping(X,this._originalMappings,"originalLine","originalColumn",QD.compareByOriginalPositions,QD.getArg($,"bias",D0.GREATEST_LOWER_BOUND));if(Y>=0){var Q=this._originalMappings[Y];if(Q.source===X.source)return{line:QD.getArg(Q,"generatedLine",null),column:QD.getArg(Q,"generatedColumn",null),lastColumn:QD.getArg(Q,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};XqD.BasicSourceMapConsumer=u0;function W6(D,$){var J=D;if(typeof D==="string")J=QD.parseSourceMapInput(D);var X=QD.getArg(J,"version"),Y=QD.getArg(J,"sections");if(X!=this._version)throw Error("Unsupported version: "+X);this._sources=new B9,this._names=new B9;var Q={line:-1,column:0};this._sections=Y.map(function(U){if(U.url)throw Error("Support for url field in sections not implemented.");var F=QD.getArg(U,"offset"),W=QD.getArg(F,"line"),K=QD.getArg(F,"column");if(W<Q.line||W===Q.line&&K<Q.column)throw Error("Section offsets must be ordered and non-overlapping.");return Q=F,{generatedOffset:{generatedLine:W+1,generatedColumn:K+1},consumer:new D0(QD.getArg(U,"map"),$)}})}W6.prototype=Object.create(D0.prototype);W6.prototype.constructor=D0;W6.prototype._version=3;Object.defineProperty(W6.prototype,"sources",{get:function(){var D=[];for(var $=0;$<this._sections.length;$++)for(var J=0;J<this._sections[$].consumer.sources.length;J++)D.push(this._sections[$].consumer.sources[J]);return D}});W6.prototype.originalPositionFor=function($){var J={generatedLine:QD.getArg($,"line"),generatedColumn:QD.getArg($,"column")},X=fN.search(J,this._sections,function(Q,U){var F=Q.generatedLine-U.generatedOffset.generatedLine;if(F)return F;return Q.generatedColumn-U.generatedOffset.generatedColumn}),Y=this._sections[X];if(!Y)return{source:null,line:null,column:null,name:null};return Y.consumer.originalPositionFor({line:J.generatedLine-(Y.generatedOffset.generatedLine-1),column:J.generatedColumn-(Y.generatedOffset.generatedLine===J.generatedLine?Y.generatedOffset.generatedColumn-1:0),bias:$.bias})};W6.prototype.hasContentsOfAllSources=function(){return this._sections.every(function($){return $.consumer.hasContentsOfAllSources()})};W6.prototype.sourceContentFor=function($,J){for(var X=0;X<this._sections.length;X++){var Y=this._sections[X],Q=Y.consumer.sourceContentFor($,!0);if(Q||Q==="")return Q}if(J)return null;else throw Error('"'+$+'" is not in the SourceMap.')};W6.prototype.generatedPositionFor=function($){for(var J=0;J<this._sections.length;J++){var X=this._sections[J];if(X.consumer._findSourceIndex(QD.getArg($,"source"))===-1)continue;var Y=X.consumer.generatedPositionFor($);if(Y){var Q={line:Y.line+(X.generatedOffset.generatedLine-1),column:Y.column+(X.generatedOffset.generatedLine===Y.line?X.generatedOffset.generatedColumn-1:0)};return Q}}return{line:null,column:null}};W6.prototype._parseMappings=function($,J){this.__generatedMappings=[],this.__originalMappings=[];for(var X=0;X<this._sections.length;X++){var Y=this._sections[X],Q=Y.consumer._generatedMappings;for(var U=0;U<Q.length;U++){var F=Q[U],W=Y.consumer._sources.at(F.source);if(W!==null)W=QD.computeSourceURL(Y.consumer.sourceRoot,W,this._sourceMapURL);this._sources.add(W),W=this._sources.indexOf(W);var K=null;if(F.name)K=Y.consumer._names.at(F.name),this._names.add(K),K=this._names.indexOf(K);var q={source:W,generatedLine:F.generatedLine+(Y.generatedOffset.generatedLine-1),generatedColumn:F.generatedColumn+(Y.generatedOffset.generatedLine===F.generatedLine?Y.generatedOffset.generatedColumn-1:0),originalLine:F.originalLine,originalColumn:F.originalColumn,name:K};if(this.__generatedMappings.push(q),typeof q.originalLine==="number")this.__originalMappings.push(q)}}B3(this.__generatedMappings,QD.compareByGeneratedPositionsDeflated),B3(this.__originalMappings,QD.compareByOriginalPositions)};XqD.IndexedSourceMapConsumer=W6});var sy=k((qqD)=>{var FqD=_N().SourceMapGenerator,qU=I9(),WqD=/(\r?\n)/,KqD=10,O9="$$$isSourceNode$$$";function k$(D,$,J,X,Y){if(this.children=[],this.sourceContents={},this.line=D==null?null:D,this.column=$==null?null:$,this.source=J==null?null:J,this.name=Y==null?null:Y,this[O9]=!0,X!=null)this.add(X)}k$.fromStringWithSourceMap=function($,J,X){var Y=new k$,Q=$.split(WqD),U=0,F=function(){var Z=z(),H=z()||"";return Z+H;function z(){return U<Q.length?Q[U++]:void 0}},W=1,K=0,q=null;if(J.eachMapping(function(Z){if(q!==null)if(W<Z.generatedLine)G(q,F()),W++,K=0;else{var H=Q[U]||"",z=H.substr(0,Z.generatedColumn-K);Q[U]=H.substr(Z.generatedColumn-K),K=Z.generatedColumn,G(q,z),q=Z;return}while(W<Z.generatedLine)Y.add(F()),W++;if(K<Z.generatedColumn){var H=Q[U]||"";Y.add(H.substr(0,Z.generatedColumn)),Q[U]=H.substr(Z.generatedColumn),K=Z.generatedColumn}q=Z},this),U<Q.length){if(q)G(q,F());Y.add(Q.splice(U).join(""))}return J.sources.forEach(function(Z){var H=J.sourceContentFor(Z);if(H!=null){if(X!=null)Z=qU.join(X,Z);Y.setSourceContent(Z,H)}}),Y;function G(Z,H){if(Z===null||Z.source===void 0)Y.add(H);else{var z=X?qU.join(X,Z.source):Z.source;Y.add(new k$(Z.originalLine,Z.originalColumn,z,H,Z.name))}}};k$.prototype.add=function($){if(Array.isArray($))$.forEach(function(J){this.add(J)},this);else if($[O9]||typeof $==="string"){if($)this.children.push($)}else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+$);return this};k$.prototype.prepend=function($){if(Array.isArray($))for(var J=$.length-1;J>=0;J--)this.prepend($[J]);else if($[O9]||typeof $==="string")this.children.unshift($);else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+$);return this};k$.prototype.walk=function($){var J;for(var X=0,Y=this.children.length;X<Y;X++)if(J=this.children[X],J[O9])J.walk($);else if(J!=="")$(J,{source:this.source,line:this.line,column:this.column,name:this.name})};k$.prototype.join=function($){var J,X,Y=this.children.length;if(Y>0){J=[];for(X=0;X<Y-1;X++)J.push(this.children[X]),J.push($);J.push(this.children[X]),this.children=J}return this};k$.prototype.replaceRight=function($,J){var X=this.children[this.children.length-1];if(X[O9])X.replaceRight($,J);else if(typeof X==="string")this.children[this.children.length-1]=X.replace($,J);else this.children.push("".replace($,J));return this};k$.prototype.setSourceContent=function($,J){this.sourceContents[qU.toSetString($)]=J};k$.prototype.walkSourceContents=function($){for(var J=0,X=this.children.length;J<X;J++)if(this.children[J][O9])this.children[J].walkSourceContents($);var Y=Object.keys(this.sourceContents);for(var J=0,X=Y.length;J<X;J++)$(qU.fromSetString(Y[J]),this.sourceContents[Y[J]])};k$.prototype.toString=function(){var $="";return this.walk(function(J){$+=J}),$};k$.prototype.toStringWithSourceMap=function($){var J={code:"",line:1,column:0},X=new FqD($),Y=!1,Q=null,U=null,F=null,W=null;return this.walk(function(K,q){if(J.code+=K,q.source!==null&&q.line!==null&&q.column!==null){if(Q!==q.source||U!==q.line||F!==q.column||W!==q.name)X.addMapping({source:q.source,original:{line:q.line,column:q.column},generated:{line:J.line,column:J.column},name:q.name});Q=q.source,U=q.line,F=q.column,W=q.name,Y=!0}else if(Y)X.addMapping({generated:{line:J.line,column:J.column}}),Q=null,Y=!1;for(var G=0,Z=K.length;G<Z;G++)if(K.charCodeAt(G)===KqD){if(J.line++,J.column=0,G+1===Z)Q=null,Y=!1;else if(Y)X.addMapping({source:q.source,original:{line:q.line,column:q.column},generated:{line:J.line,column:J.column},name:q.name})}else J.column++}),this.walkSourceContents(function(K,q){X.setSourceContent(K,q)}),{code:J.code,map:X}};qqD.SourceNode=k$});var ey=k((ZqD)=>{ZqD.SourceMapGenerator=_N().SourceMapGenerator;ZqD.SourceMapConsumer=ay().SourceMapConsumer;ZqD.SourceNode=sy().SourceNode});var Vm=k((Nm)=>{Object.defineProperty(Nm,"__esModule",{value:!0});var a=rO(),Q8=uf(),w9=Py(),BqD=Sy(),OqD=ey(),L9=Symbol("Fragment"),j9=Symbol("Teleport"),vU=Symbol("Suspense"),N3=Symbol("KeepAlive"),tN=Symbol("BaseTransition"),i1=Symbol("openBlock"),oN=Symbol("createBlock"),aN=Symbol("createElementBlock"),EU=Symbol("createVNode"),TU=Symbol("createElementVNode"),E9=Symbol("createCommentVNode"),PU=Symbol("createTextVNode"),sN=Symbol("createStaticVNode"),V3=Symbol("resolveComponent"),bU=Symbol("resolveDynamicComponent"),SU=Symbol("resolveDirective"),CU=Symbol("resolveFilter"),kU=Symbol("withDirectives"),_U=Symbol("renderList"),eN=Symbol("renderSlot"),DV=Symbol("createSlots"),uU=Symbol("toDisplayString"),w3=Symbol("mergeProps"),gU=Symbol("normalizeClass"),xU=Symbol("normalizeStyle"),R9=Symbol("normalizeProps"),T9=Symbol("guardReactiveProps"),fU=Symbol("toHandlers"),VU=Symbol("camelize"),Oh=Symbol("capitalize"),wU=Symbol("toHandlerKey"),j3=Symbol("setBlockTracking"),Nh=Symbol("pushScopeId"),Vh=Symbol("popScopeId"),yU=Symbol("withCtx"),L3=Symbol("unref"),R3=Symbol("isRef"),hU=Symbol("withMemo"),$V=Symbol("isMemoSame"),w$={[L9]:"Fragment",[j9]:"Teleport",[vU]:"Suspense",[N3]:"KeepAlive",[tN]:"BaseTransition",[i1]:"openBlock",[oN]:"createBlock",[aN]:"createElementBlock",[EU]:"createVNode",[TU]:"createElementVNode",[E9]:"createCommentVNode",[PU]:"createTextVNode",[sN]:"createStaticVNode",[V3]:"resolveComponent",[bU]:"resolveDynamicComponent",[SU]:"resolveDirective",[CU]:"resolveFilter",[kU]:"withDirectives",[_U]:"renderList",[eN]:"renderSlot",[DV]:"createSlots",[uU]:"toDisplayString",[w3]:"mergeProps",[gU]:"normalizeClass",[xU]:"normalizeStyle",[R9]:"normalizeProps",[T9]:"guardReactiveProps",[fU]:"toHandlers",[VU]:"camelize",[Oh]:"capitalize",[wU]:"toHandlerKey",[j3]:"setBlockTracking",[Nh]:"pushScopeId",[Vh]:"popScopeId",[yU]:"withCtx",[L3]:"unref",[R3]:"isRef",[hU]:"withMemo",[$V]:"isMemoSame"};function NqD(D){Object.getOwnPropertySymbols(D).forEach(($)=>{w$[$]=D[$]})}var VqD={HTML:0,"0":"HTML",SVG:1,"1":"SVG",MATH_ML:2,"2":"MATH_ML"},wqD={ROOT:0,"0":"ROOT",ELEMENT:1,"1":"ELEMENT",TEXT:2,"2":"TEXT",COMMENT:3,"3":"COMMENT",SIMPLE_EXPRESSION:4,"4":"SIMPLE_EXPRESSION",INTERPOLATION:5,"5":"INTERPOLATION",ATTRIBUTE:6,"6":"ATTRIBUTE",DIRECTIVE:7,"7":"DIRECTIVE",COMPOUND_EXPRESSION:8,"8":"COMPOUND_EXPRESSION",IF:9,"9":"IF",IF_BRANCH:10,"10":"IF_BRANCH",FOR:11,"11":"FOR",TEXT_CALL:12,"12":"TEXT_CALL",VNODE_CALL:13,"13":"VNODE_CALL",JS_CALL_EXPRESSION:14,"14":"JS_CALL_EXPRESSION",JS_OBJECT_EXPRESSION:15,"15":"JS_OBJECT_EXPRESSION",JS_PROPERTY:16,"16":"JS_PROPERTY",JS_ARRAY_EXPRESSION:17,"17":"JS_ARRAY_EXPRESSION",JS_FUNCTION_EXPRESSION:18,"18":"JS_FUNCTION_EXPRESSION",JS_CONDITIONAL_EXPRESSION:19,"19":"JS_CONDITIONAL_EXPRESSION",JS_CACHE_EXPRESSION:20,"20":"JS_CACHE_EXPRESSION",JS_BLOCK_STATEMENT:21,"21":"JS_BLOCK_STATEMENT",JS_TEMPLATE_LITERAL:22,"22":"JS_TEMPLATE_LITERAL",JS_IF_STATEMENT:23,"23":"JS_IF_STATEMENT",JS_ASSIGNMENT_EXPRESSION:24,"24":"JS_ASSIGNMENT_EXPRESSION",JS_SEQUENCE_EXPRESSION:25,"25":"JS_SEQUENCE_EXPRESSION",JS_RETURN_STATEMENT:26,"26":"JS_RETURN_STATEMENT"},jqD={ELEMENT:0,"0":"ELEMENT",COMPONENT:1,"1":"COMPONENT",SLOT:2,"2":"SLOT",TEMPLATE:3,"3":"TEMPLATE"},LqD={NOT_CONSTANT:0,"0":"NOT_CONSTANT",CAN_SKIP_PATCH:1,"1":"CAN_SKIP_PATCH",CAN_CACHE:2,"2":"CAN_CACHE",CAN_STRINGIFY:3,"3":"CAN_STRINGIFY"},w0={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function wh(D,$=""){return{type:0,source:$,children:D,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:w0}}function M9(D,$,J,X,Y,Q,U,F=!1,W=!1,K=!1,q=w0){if(D){if(F)D.helper(i1),D.helper(q8(D.inSSR,K));else D.helper(K8(D.inSSR,K));if(U)D.helper(kU)}return{type:13,tag:$,props:J,children:X,patchFlag:Y,dynamicProps:Q,directives:U,isBlock:F,disableTracking:W,isComponent:K,loc:q}}function l1(D,$=w0){return{type:17,loc:$,elements:D}}function g$(D,$=w0){return{type:15,loc:$,properties:D}}function V0(D,$){return{type:16,loc:w0,key:a.isString(D)?OD(D,!0):D,value:$}}function OD(D,$=!1,J=w0,X=0){return{type:4,loc:J,content:D,isStatic:$,constType:$?3:X}}function RqD(D,$){return{type:5,loc:$,content:a.isString(D)?OD(D,!1,$):D}}function u$(D,$=w0){return{type:8,loc:$,children:D}}function f0(D,$=[],J=w0){return{type:14,loc:J,callee:D,arguments:$}}function W8(D,$=void 0,J=!1,X=!1,Y=w0){return{type:18,params:D,returns:$,newline:J,isSlot:X,loc:Y}}function jU(D,$,J,X=!0){return{type:19,test:D,consequent:$,alternate:J,newline:X,loc:w0}}function jh(D,$,J=!1,X=!1){return{type:20,index:D,value:$,needPauseTracking:J,inVOnce:X,needArraySpread:!1,loc:w0}}function Lh(D){return{type:21,body:D,loc:w0}}function MqD(D){return{type:22,elements:D,loc:w0}}function AqD(D,$,J){return{type:23,test:D,consequent:$,alternate:J,loc:w0}}function vqD(D,$){return{type:24,left:D,right:$,loc:w0}}function EqD(D){return{type:25,expressions:D,loc:w0}}function TqD(D){return{type:26,returns:D,loc:w0}}function K8(D,$){return D||$?EU:TU}function q8(D,$){return D||$?oN:aN}function mU(D,{helper:$,removeHelper:J,inSSR:X}){if(!D.isBlock)D.isBlock=!0,J(K8(X,D.isComponent)),$(i1),$(q8(X,D.isComponent))}var Dh=new Uint8Array([123,123]),$h=new Uint8Array([125,125]);function Jh(D){return D>=97&&D<=122||D>=65&&D<=90}function _$(D){return D===32||D===10||D===9||D===12||D===13}function y1(D){return D===47||D===62||_$(D)}function LU(D){let $=new Uint8Array(D.length);for(let J=0;J<D.length;J++)$[J]=D.charCodeAt(J);return $}var g0={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class Rh{constructor(D,$){this.stack=D,this.cbs=$,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=Dh,this.delimiterClose=$h,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0,this.entityDecoder=new Q8.EntityDecoder(Q8.htmlDecodeTree,(J,X)=>this.emitCodePoint(J,X))}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=Dh,this.delimiterClose=$h}getPos(D){let $=1,J=D+1,X=this.newlines.length,Y=-1;if(X>100){let Q=-1,U=X;while(Q+1<U){let F=Q+U>>>1;this.newlines[F]<D?Q=F:U=F}Y=Q}else for(let Q=X-1;Q>=0;Q--)if(D>this.newlines[Q]){Y=Q;break}if(Y>=0)$=Y+2,J=D-this.newlines[Y];return{column:J,line:$,offset:D}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(D){if(D===60){if(this.index>this.sectionStart)this.cbs.ontext(this.sectionStart,this.index);this.state=5,this.sectionStart=this.index}else if(D===38)this.startEntity();else if(!this.inVPre&&D===this.delimiterOpen[0])this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(D)}stateInterpolationOpen(D){if(D===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){let $=this.index+1-this.delimiterOpen.length;if($>this.sectionStart)this.cbs.ontext(this.sectionStart,$);this.state=3,this.sectionStart=$}else this.delimiterIndex++;else if(this.inRCDATA)this.state=32,this.stateInRCDATA(D);else this.state=1,this.stateText(D)}stateInterpolation(D){if(D===this.delimiterClose[0])this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(D)}stateInterpolationClose(D){if(D===this.delimiterClose[this.delimiterIndex])if(this.delimiterIndex===this.delimiterClose.length-1){if(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA)this.state=32;else this.state=1;this.sectionStart=this.index+1}else this.delimiterIndex++;else this.state=3,this.stateInterpolation(D)}stateSpecialStartSequence(D){let $=this.sequenceIndex===this.currentSequence.length;if(!($?y1(D):(D|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!$){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(D)}stateInRCDATA(D){if(this.sequenceIndex===this.currentSequence.length){if(D===62||_$(D)){let $=this.index-this.currentSequence.length;if(this.sectionStart<$){let J=this.index;this.index=$,this.cbs.ontext(this.sectionStart,$),this.index=J}this.sectionStart=$+2,this.stateInClosingTagName(D),this.inRCDATA=!1;return}this.sequenceIndex=0}if((D|32)===this.currentSequence[this.sequenceIndex])this.sequenceIndex+=1;else if(this.sequenceIndex===0){if(this.currentSequence===g0.TitleEnd||this.currentSequence===g0.TextareaEnd&&!this.inSFCRoot){if(D===38)this.startEntity();else if(!this.inVPre&&D===this.delimiterOpen[0])this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(D)}else if(this.fastForwardTo(60))this.sequenceIndex=1}else this.sequenceIndex=Number(D===60)}stateCDATASequence(D){if(D===g0.Cdata[this.sequenceIndex]){if(++this.sequenceIndex===g0.Cdata.length)this.state=28,this.currentSequence=g0.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1}else this.sequenceIndex=0,this.state=23,this.stateInDeclaration(D)}fastForwardTo(D){while(++this.index<this.buffer.length){let $=this.buffer.charCodeAt(this.index);if($===10)this.newlines.push(this.index);if($===D)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(D){if(D===this.currentSequence[this.sequenceIndex]){if(++this.sequenceIndex===this.currentSequence.length){if(this.currentSequence===g0.CdataEnd)this.cbs.oncdata(this.sectionStart,this.index-2);else this.cbs.oncomment(this.sectionStart,this.index-2);this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1}}else if(this.sequenceIndex===0){if(this.fastForwardTo(this.currentSequence[0]))this.sequenceIndex=1}else if(D!==this.currentSequence[this.sequenceIndex-1])this.sequenceIndex=0}startSpecial(D,$){this.enterRCDATA(D,$),this.state=31}enterRCDATA(D,$){this.inRCDATA=!0,this.currentSequence=D,this.sequenceIndex=$}stateBeforeTagName(D){if(D===33)this.state=22,this.sectionStart=this.index+1;else if(D===63)this.state=24,this.sectionStart=this.index+1;else if(Jh(D))if(this.sectionStart=this.index,this.mode===0)this.state=6;else if(this.inSFCRoot)this.state=34;else if(!this.inXML)if(D===116)this.state=30;else this.state=D===115?29:6;else this.state=6;else if(D===47)this.state=8;else this.state=1,this.stateText(D)}stateInTagName(D){if(y1(D))this.handleTagName(D)}stateInSFCRootTagName(D){if(y1(D)){let $=this.buffer.slice(this.sectionStart,this.index);if($!=="template")this.enterRCDATA(LU("</"+$),0);this.handleTagName(D)}}handleTagName(D){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(D)}stateBeforeClosingTagName(D){if(_$(D));else if(D===62)this.cbs.onerr(14,this.index),this.state=1,this.sectionStart=this.index+1;else this.state=Jh(D)?9:27,this.sectionStart=this.index}stateInClosingTagName(D){if(D===62||_$(D))this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(D)}stateAfterClosingTagName(D){if(D===62)this.state=1,this.sectionStart=this.index+1}stateBeforeAttrName(D){if(D===62){if(this.cbs.onopentagend(this.index),this.inRCDATA)this.state=32;else this.state=1;this.sectionStart=this.index+1}else if(D===47){if(this.state=7,this.peek()!==62)this.cbs.onerr(22,this.index)}else if(D===60&&this.peek()===47)this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index;else if(!_$(D)){if(D===61)this.cbs.onerr(19,this.index);this.handleAttrStart(D)}}handleAttrStart(D){if(D===118&&this.peek()===45)this.state=13,this.sectionStart=this.index;else if(D===46||D===58||D===64||D===35)this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1;else this.state=12,this.sectionStart=this.index}stateInSelfClosingTag(D){if(D===62)this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1;else if(!_$(D))this.state=11,this.stateBeforeAttrName(D)}stateInAttrName(D){if(D===61||y1(D))this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(D);else if(D===34||D===39||D===60)this.cbs.onerr(17,this.index)}stateInDirName(D){if(D===61||y1(D))this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(D);else if(D===58)this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1;else if(D===46)this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1}stateInDirArg(D){if(D===61||y1(D))this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(D);else if(D===91)this.state=15;else if(D===46)this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1}stateInDynamicDirArg(D){if(D===93)this.state=14;else if(D===61||y1(D))this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(D),this.cbs.onerr(27,this.index)}stateInDirModifier(D){if(D===61||y1(D))this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(D);else if(D===46)this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1}handleAttrNameEnd(D){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(D)}stateAfterAttrName(D){if(D===61)this.state=18;else if(D===47||D===62)this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(D);else if(!_$(D))this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(D)}stateBeforeAttrValue(D){if(D===34)this.state=19,this.sectionStart=this.index+1;else if(D===39)this.state=20,this.sectionStart=this.index+1;else if(!_$(D))this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(D)}handleInAttrValue(D,$){if(D===$)this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend($===34?3:2,this.index+1),this.state=11;else if(D===38)this.startEntity()}stateInAttrValueDoubleQuotes(D){this.handleInAttrValue(D,34)}stateInAttrValueSingleQuotes(D){this.handleInAttrValue(D,39)}stateInAttrValueNoQuotes(D){if(_$(D)||D===62)this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(D);else if(D===34||D===39||D===60||D===61||D===96)this.cbs.onerr(18,this.index);else if(D===38)this.startEntity()}stateBeforeDeclaration(D){if(D===91)this.state=26,this.sequenceIndex=0;else this.state=D===45?25:23}stateInDeclaration(D){if(D===62||this.fastForwardTo(62))this.state=1,this.sectionStart=this.index+1}stateInProcessingInstruction(D){if(D===62||this.fastForwardTo(62))this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1}stateBeforeComment(D){if(D===45)this.state=28,this.currentSequence=g0.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1;else this.state=23}stateInSpecialComment(D){if(D===62||this.fastForwardTo(62))this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1}stateBeforeSpecialS(D){if(D===g0.ScriptEnd[3])this.startSpecial(g0.ScriptEnd,4);else if(D===g0.StyleEnd[3])this.startSpecial(g0.StyleEnd,4);else this.state=6,this.stateInTagName(D)}stateBeforeSpecialT(D){if(D===g0.TitleEnd[3])this.startSpecial(g0.TitleEnd,4);else if(D===g0.TextareaEnd[3])this.startSpecial(g0.TextareaEnd,4);else this.state=6,this.stateInTagName(D)}startEntity(){this.baseState=this.state,this.state=33,this.entityStart=this.index,this.entityDecoder.startEntity(this.baseState===1||this.baseState===32?Q8.DecodingMode.Legacy:Q8.DecodingMode.Attribute)}stateInEntity(){{let D=this.entityDecoder.write(this.buffer,this.index);if(D>=0){if(this.state=this.baseState,D===0)this.index=this.entityStart}else this.index=this.buffer.length-1}}parse(D){this.buffer=D;while(this.index<this.buffer.length){let $=this.buffer.charCodeAt(this.index);if($===10&&this.state!==33)this.newlines.push(this.index);switch(this.state){case 1:{this.stateText($);break}case 2:{this.stateInterpolationOpen($);break}case 3:{this.stateInterpolation($);break}case 4:{this.stateInterpolationClose($);break}case 31:{this.stateSpecialStartSequence($);break}case 32:{this.stateInRCDATA($);break}case 26:{this.stateCDATASequence($);break}case 19:{this.stateInAttrValueDoubleQuotes($);break}case 12:{this.stateInAttrName($);break}case 13:{this.stateInDirName($);break}case 14:{this.stateInDirArg($);break}case 15:{this.stateInDynamicDirArg($);break}case 16:{this.stateInDirModifier($);break}case 28:{this.stateInCommentLike($);break}case 27:{this.stateInSpecialComment($);break}case 11:{this.stateBeforeAttrName($);break}case 6:{this.stateInTagName($);break}case 34:{this.stateInSFCRootTagName($);break}case 9:{this.stateInClosingTagName($);break}case 5:{this.stateBeforeTagName($);break}case 17:{this.stateAfterAttrName($);break}case 20:{this.stateInAttrValueSingleQuotes($);break}case 18:{this.stateBeforeAttrValue($);break}case 8:{this.stateBeforeClosingTagName($);break}case 10:{this.stateAfterClosingTagName($);break}case 29:{this.stateBeforeSpecialS($);break}case 30:{this.stateBeforeSpecialT($);break}case 21:{this.stateInAttrValueNoQuotes($);break}case 7:{this.stateInSelfClosingTag($);break}case 23:{this.stateInDeclaration($);break}case 22:{this.stateBeforeDeclaration($);break}case 25:{this.stateBeforeComment($);break}case 24:{this.stateInProcessingInstruction($);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){if(this.sectionStart!==this.index){if(this.state===1||this.state===32&&this.sequenceIndex===0)this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index;else if(this.state===19||this.state===20||this.state===21)this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index}}finish(){if(this.state===33)this.entityDecoder.end(),this.state=this.baseState;this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){let D=this.buffer.length;if(this.sectionStart>=D)return;if(this.state===28)if(this.currentSequence===g0.CdataEnd)this.cbs.oncdata(this.sectionStart,D);else this.cbs.oncomment(this.sectionStart,D);else if(this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9);else this.cbs.ontext(this.sectionStart,D)}emitCodePoint(D,$){if(this.baseState!==1&&this.baseState!==32){if(this.sectionStart<this.entityStart)this.cbs.onattribdata(this.sectionStart,this.entityStart);this.sectionStart=this.entityStart+$,this.index=this.sectionStart-1,this.cbs.onattribentity(Q8.fromCodePoint(D),this.entityStart,this.sectionStart)}else{if(this.sectionStart<this.entityStart)this.cbs.ontext(this.sectionStart,this.entityStart);this.sectionStart=this.entityStart+$,this.index=this.sectionStart-1,this.cbs.ontextentity(Q8.fromCodePoint(D),this.entityStart,this.sectionStart)}}}var PqD={COMPILER_IS_ON_ELEMENT:"COMPILER_IS_ON_ELEMENT",COMPILER_V_BIND_SYNC:"COMPILER_V_BIND_SYNC",COMPILER_V_BIND_OBJECT_ORDER:"COMPILER_V_BIND_OBJECT_ORDER",COMPILER_V_ON_NATIVE:"COMPILER_V_ON_NATIVE",COMPILER_V_IF_V_FOR_PRECEDENCE:"COMPILER_V_IF_V_FOR_PRECEDENCE",COMPILER_NATIVE_TEMPLATE:"COMPILER_NATIVE_TEMPLATE",COMPILER_INLINE_TEMPLATE:"COMPILER_INLINE_TEMPLATE",COMPILER_FILTERS:"COMPILER_FILTERS"},bqD={["COMPILER_IS_ON_ELEMENT"]:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},["COMPILER_V_BIND_SYNC"]:{message:(D)=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${D}.sync\` should be changed to \`v-model:${D}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},["COMPILER_V_BIND_OBJECT_ORDER"]:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},["COMPILER_V_ON_NATIVE"]:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},["COMPILER_V_IF_V_FOR_PRECEDENCE"]:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},["COMPILER_NATIVE_TEMPLATE"]:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},["COMPILER_INLINE_TEMPLATE"]:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},["COMPILER_FILTERS"]:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function hN(D,{compatConfig:$}){let J=$&&$[D];if(D==="MODE")return J||3;else return J}function d1(D,$){let J=hN("MODE",$),X=hN(D,$);return J===3?X===!0:X!==!1}function A9(D,$,J,...X){let Y=d1(D,$);if(Y)M3(D,$,J,...X);return Y}function M3(D,$,J,...X){if(hN(D,$)==="suppress-warning")return;let{message:Q,link:U}=bqD[D],F=`(deprecation ${D}) ${typeof Q==="function"?Q(...X):Q}${U?`
Details: ${U}`:""}`,W=SyntaxError(F);if(W.code=D,J)W.loc=J;$.onWarn(W)}function JV(D){throw D}function Mh(D){console.warn(`[Vue warn] ${D.message}`)}function mD(D,$,J,X){let Y=(J||Ah)[D]+(X||""),Q=SyntaxError(String(Y));return Q.code=D,Q.loc=$,Q}var SqD={ABRUPT_CLOSING_OF_EMPTY_COMMENT:0,"0":"ABRUPT_CLOSING_OF_EMPTY_COMMENT",CDATA_IN_HTML_CONTENT:1,"1":"CDATA_IN_HTML_CONTENT",DUPLICATE_ATTRIBUTE:2,"2":"DUPLICATE_ATTRIBUTE",END_TAG_WITH_ATTRIBUTES:3,"3":"END_TAG_WITH_ATTRIBUTES",END_TAG_WITH_TRAILING_SOLIDUS:4,"4":"END_TAG_WITH_TRAILING_SOLIDUS",EOF_BEFORE_TAG_NAME:5,"5":"EOF_BEFORE_TAG_NAME",EOF_IN_CDATA:6,"6":"EOF_IN_CDATA",EOF_IN_COMMENT:7,"7":"EOF_IN_COMMENT",EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT:8,"8":"EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT",EOF_IN_TAG:9,"9":"EOF_IN_TAG",INCORRECTLY_CLOSED_COMMENT:10,"10":"INCORRECTLY_CLOSED_COMMENT",INCORRECTLY_OPENED_COMMENT:11,"11":"INCORRECTLY_OPENED_COMMENT",INVALID_FIRST_CHARACTER_OF_TAG_NAME:12,"12":"INVALID_FIRST_CHARACTER_OF_TAG_NAME",MISSING_ATTRIBUTE_VALUE:13,"13":"MISSING_ATTRIBUTE_VALUE",MISSING_END_TAG_NAME:14,"14":"MISSING_END_TAG_NAME",MISSING_WHITESPACE_BETWEEN_ATTRIBUTES:15,"15":"MISSING_WHITESPACE_BETWEEN_ATTRIBUTES",NESTED_COMMENT:16,"16":"NESTED_COMMENT",UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME:17,"17":"UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME",UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE:18,"18":"UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE",UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME:19,"19":"UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME",UNEXPECTED_NULL_CHARACTER:20,"20":"UNEXPECTED_NULL_CHARACTER",UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME:21,"21":"UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME",UNEXPECTED_SOLIDUS_IN_TAG:22,"22":"UNEXPECTED_SOLIDUS_IN_TAG",X_INVALID_END_TAG:23,"23":"X_INVALID_END_TAG",X_MISSING_END_TAG:24,"24":"X_MISSING_END_TAG",X_MISSING_INTERPOLATION_END:25,"25":"X_MISSING_INTERPOLATION_END",X_MISSING_DIRECTIVE_NAME:26,"26":"X_MISSING_DIRECTIVE_NAME",X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END:27,"27":"X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END",X_V_IF_NO_EXPRESSION:28,"28":"X_V_IF_NO_EXPRESSION",X_V_IF_SAME_KEY:29,"29":"X_V_IF_SAME_KEY",X_V_ELSE_NO_ADJACENT_IF:30,"30":"X_V_ELSE_NO_ADJACENT_IF",X_V_FOR_NO_EXPRESSION:31,"31":"X_V_FOR_NO_EXPRESSION",X_V_FOR_MALFORMED_EXPRESSION:32,"32":"X_V_FOR_MALFORMED_EXPRESSION",X_V_FOR_TEMPLATE_KEY_PLACEMENT:33,"33":"X_V_FOR_TEMPLATE_KEY_PLACEMENT",X_V_BIND_NO_EXPRESSION:34,"34":"X_V_BIND_NO_EXPRESSION",X_V_ON_NO_EXPRESSION:35,"35":"X_V_ON_NO_EXPRESSION",X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET:36,"36":"X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET",X_V_SLOT_MIXED_SLOT_USAGE:37,"37":"X_V_SLOT_MIXED_SLOT_USAGE",X_V_SLOT_DUPLICATE_SLOT_NAMES:38,"38":"X_V_SLOT_DUPLICATE_SLOT_NAMES",X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN:39,"39":"X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN",X_V_SLOT_MISPLACED:40,"40":"X_V_SLOT_MISPLACED",X_V_MODEL_NO_EXPRESSION:41,"41":"X_V_MODEL_NO_EXPRESSION",X_V_MODEL_MALFORMED_EXPRESSION:42,"42":"X_V_MODEL_MALFORMED_EXPRESSION",X_V_MODEL_ON_SCOPE_VARIABLE:43,"43":"X_V_MODEL_ON_SCOPE_VARIABLE",X_V_MODEL_ON_PROPS:44,"44":"X_V_MODEL_ON_PROPS",X_V_MODEL_ON_CONST:45,"45":"X_V_MODEL_ON_CONST",X_INVALID_EXPRESSION:46,"46":"X_INVALID_EXPRESSION",X_KEEP_ALIVE_INVALID_CHILDREN:47,"47":"X_KEEP_ALIVE_INVALID_CHILDREN",X_PREFIX_ID_NOT_SUPPORTED:48,"48":"X_PREFIX_ID_NOT_SUPPORTED",X_MODULE_MODE_NOT_SUPPORTED:49,"49":"X_MODULE_MODE_NOT_SUPPORTED",X_CACHE_HANDLER_NOT_SUPPORTED:50,"50":"X_CACHE_HANDLER_NOT_SUPPORTED",X_SCOPE_ID_NOT_SUPPORTED:51,"51":"X_SCOPE_ID_NOT_SUPPORTED",X_VNODE_HOOKS:52,"52":"X_VNODE_HOOKS",X_V_BIND_INVALID_SAME_NAME_ARGUMENT:53,"53":"X_V_BIND_INVALID_SAME_NAME_ARGUMENT",__EXTEND_POINT__:54,"54":"__EXTEND_POINT__"},Ah={[0]:"Illegal comment.",[1]:"CDATA section is allowed only in XML context.",[2]:"Duplicate attribute.",[3]:"End tag cannot have attributes.",[4]:"Illegal '/' in tags.",[5]:"Unexpected EOF in tag.",[6]:"Unexpected EOF in CDATA section.",[7]:"Unexpected EOF in comment.",[8]:"Unexpected EOF in script.",[9]:"Unexpected EOF in tag.",[10]:"Incorrectly closed comment.",[11]:"Incorrectly opened comment.",[12]:"Illegal tag name. Use '<' to print '<'.",[13]:"Attribute value was expected.",[14]:"End tag name was expected.",[15]:"Whitespace was expected.",[16]:"Unexpected '<!--' in comment.",[17]:`Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`,[18]:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",[19]:"Attribute name cannot start with '='.",[21]:"'<?' is allowed only in XML context.",[20]:"Unexpected null character.",[22]:"Illegal '/' in tags.",[23]:"Invalid end tag.",[24]:"Element is missing end tag.",[25]:"Interpolation end sign was not found.",[27]:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",[26]:"Legal directive name was expected.",[28]:"v-if/v-else-if is missing expression.",[29]:"v-if/else branches must use unique keys.",[30]:"v-else/v-else-if has no adjacent v-if or v-else-if.",[31]:"v-for is missing expression.",[32]:"v-for has invalid expression.",[33]:"<template v-for> key should be placed on the <template> tag.",[34]:"v-bind is missing expression.",[53]:"v-bind with same-name shorthand only allows static argument.",[35]:"v-on is missing expression.",[36]:"Unexpected custom directive on <slot> outlet.",[37]:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",[38]:"Duplicate slot names found. ",[39]:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",[40]:"v-slot can only be used on components or <template> tags.",[41]:"v-model is missing expression.",[42]:"v-model value must be a valid JavaScript member expression.",[43]:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",[44]:`v-model cannot be used on a prop, because local prop bindings are not writable.
Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,[45]:"v-model cannot be used on a const binding because it is not writable.",[46]:"Error parsing JavaScript expression: ",[47]:"<KeepAlive> expects exactly one child component.",[52]:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",[48]:'"prefixIdentifiers" option is not supported in this build of compiler.',[49]:"ES module mode is not supported in this build of compiler.",[50]:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',[51]:'"scopeId" option is only supported in module mode.',[54]:""};function vh(D,$,J=!1,X=[],Y=Object.create(null)){let Q=D.type==="Program"?D.body[0].type==="ExpressionStatement"&&D.body[0].expression:D;BqD.walk(D,{enter(U,F){if(F&&X.push(F),F&&F.type.startsWith("TS")&&!QV.includes(F.type))return this.skip();if(U.type==="Identifier"){let W=!!Y[U.name],K=Eh(U,F,X);if(J||K&&!W)$(U,F,X,K,W)}else if(U.type==="ObjectProperty"&&(F==null?void 0:F.type)==="ObjectPattern")U.inPattern=!0;else if(kh(U))if(U.scopeIds)U.scopeIds.forEach((W)=>V9(W,Y));else Ph(U,(W)=>O3(U,W,Y));else if(U.type==="BlockStatement")if(U.scopeIds)U.scopeIds.forEach((W)=>V9(W,Y));else XV(U,(W)=>O3(U,W,Y));else if(U.type==="SwitchStatement")if(U.scopeIds)U.scopeIds.forEach((W)=>V9(W,Y));else Ch(U,!1,(W)=>O3(U,W,Y));else if(U.type==="CatchClause"&&U.param)if(U.scopeIds)U.scopeIds.forEach((W)=>V9(W,Y));else for(let W of K6(U.param))O3(U,W,Y);else if(bh(U))if(U.scopeIds)U.scopeIds.forEach((W)=>V9(W,Y));else Sh(U,!1,(W)=>O3(U,W,Y))},leave(U,F){if(F&&X.pop(),U!==Q&&U.scopeIds){for(let W of U.scopeIds)if(Y[W]--,Y[W]===0)delete Y[W]}}})}function Eh(D,$,J){if(!$)return!0;if(D.name==="arguments")return!1;if(CqD(D,$,J[J.length-2]))return!0;switch($.type){case"AssignmentExpression":case"AssignmentPattern":return!0;case"ObjectProperty":return $.key!==D&&RU($,J);case"ArrayPattern":return RU($,J)}return!1}function RU(D,$){if(D&&(D.type==="ObjectProperty"||D.type==="ArrayPattern")){let J=$.length;while(J--){let X=$[J];if(X.type==="AssignmentExpression")return!0;else if(X.type!=="ObjectProperty"&&!X.type.endsWith("Pattern"))break}}return!1}function Th(D){let $=D.length;while($--){let J=D[$];if(J.type==="NewExpression")return!0;else if(J.type!=="MemberExpression")break}return!1}function Ph(D,$){for(let J of D.params)for(let X of K6(J))$(X)}function XV(D,$){let J=D.type==="SwitchCase"?D.consequent:D.body;for(let X of J)if(X.type==="VariableDeclaration"){if(X.declare)continue;for(let Y of X.declarations)for(let Q of K6(Y.id))$(Q)}else if(X.type==="FunctionDeclaration"||X.type==="ClassDeclaration"){if(X.declare||!X.id)continue;$(X.id)}else if(bh(X))Sh(X,!0,$);else if(X.type==="SwitchStatement")Ch(X,!0,$)}function bh(D){return D.type==="ForOfStatement"||D.type==="ForInStatement"||D.type==="ForStatement"}function Sh(D,$,J){let X=D.type==="ForStatement"?D.init:D.left;if(X&&X.type==="VariableDeclaration"&&(X.kind==="var"?$:!$))for(let Y of X.declarations)for(let Q of K6(Y.id))J(Q)}function Ch(D,$,J){for(let X of D.cases){for(let Y of X.consequent)if(Y.type==="VariableDeclaration"&&(Y.kind==="var"?$:!$))for(let Q of Y.declarations)for(let U of K6(Q.id))J(U);XV(X,J)}}function K6(D,$=[]){switch(D.type){case"Identifier":$.push(D);break;case"MemberExpression":let J=D;while(J.type==="MemberExpression")J=J.object;$.push(J);break;case"ObjectPattern":for(let X of D.properties)if(X.type==="RestElement")K6(X.argument,$);else K6(X.value,$);break;case"ArrayPattern":D.elements.forEach((X)=>{if(X)K6(X,$)});break;case"RestElement":K6(D.argument,$);break;case"AssignmentPattern":K6(D.left,$);break}return $}function V9(D,$){if(D in $)$[D]++;else $[D]=1}function O3(D,$,J){let{name:X}=$;if(D.scopeIds&&D.scopeIds.has(X))return;V9(X,J),(D.scopeIds||(D.scopeIds=new Set)).add(X)}var kh=(D)=>{return/Function(?:Expression|Declaration)$|Method$/.test(D.type)},YV=(D)=>D&&(D.type==="ObjectProperty"||D.type==="ObjectMethod")&&!D.computed,_h=(D,$)=>YV($)&&$.key===D;function CqD(D,$,J){switch($.type){case"MemberExpression":case"OptionalMemberExpression":if($.property===D)return!!$.computed;return $.object===D;case"JSXMemberExpression":return $.object===D;case"VariableDeclarator":return $.init===D;case"ArrowFunctionExpression":return $.body===D;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":if($.key===D)return!!$.computed;return!1;case"ObjectProperty":if($.key===D)return!!$.computed;return!J||J.type!=="ObjectPattern";case"ClassProperty":if($.key===D)return!!$.computed;return!0;case"ClassPrivateProperty":return $.key!==D;case"ClassDeclaration":case"ClassExpression":return $.superClass===D;case"AssignmentExpression":return $.right===D;case"AssignmentPattern":return $.right===D;case"LabeledStatement":return!1;case"CatchClause":return!1;case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":if(J==null?void 0:J.source)return!1;return $.local===D;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"ImportAttribute":return!1;case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":return!1;case"MetaProperty":return!1;case"ObjectTypeProperty":return $.key!==D;case"TSEnumMember":return $.id!==D;case"TSPropertySignature":if($.key===D)return!!$.computed;return!0}return!0}var QV=["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"];function lU(D){if(QV.includes(D.type))return lU(D.expression);else return D}var q6=(D)=>D.type===4&&D.isStatic;function UV(D){switch(D){case"Teleport":case"teleport":return j9;case"Suspense":case"suspense":return vU;case"KeepAlive":case"keep-alive":return N3;case"BaseTransition":case"base-transition":return tN}}var kqD=/^$|^\d|[^\$\w\xA0-\uFFFF]/,s6=(D)=>!kqD.test(D),FV=/[A-Za-z_$\xA0-\uFFFF]/,_qD=/[\.\?\w$\xA0-\uFFFF]/,uqD=/\s+[.[]\s*|\s*[.[]\s+/g,dU=(D)=>D.type===4?D.content:D.loc.source,gqD=(D)=>{let $=dU(D).trim().replace(uqD,(F)=>F.trim()),J=0,X=[],Y=0,Q=0,U=null;for(let F=0;F<$.length;F++){let W=$.charAt(F);switch(J){case 0:if(W==="[")X.push(J),J=1,Y++;else if(W==="(")X.push(J),J=2,Q++;else if(!(F===0?FV:_qD).test(W))return!1;break;case 1:if(W==="'"||W==='"'||W==="`")X.push(J),J=3,U=W;else if(W==="[")Y++;else if(W==="]"){if(!--Y)J=X.pop()}break;case 2:if(W==="'"||W==='"'||W==="`")X.push(J),J=3,U=W;else if(W==="(")Q++;else if(W===")"){if(F===$.length-1)return!1;if(!--Q)J=X.pop()}break;case 3:if(W===U)J=X.pop(),U=null;break}}return!Y&&!Q},uh=(D,$)=>{try{let J=D.ast||w9.parseExpression(dU(D),{plugins:$.expressionPlugins?[...$.expressionPlugins,"typescript"]:["typescript"]});return J=lU(J),J.type==="MemberExpression"||J.type==="OptionalMemberExpression"||J.type==="Identifier"&&J.name!=="undefined"}catch(J){return!1}},WV=uh,xqD=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,fqD=(D)=>xqD.test(dU(D)),gh=(D,$)=>{try{let J=D.ast||w9.parseExpression(dU(D),{plugins:$.expressionPlugins?[...$.expressionPlugins,"typescript"]:["typescript"]});if(J.type==="Program"){if(J=J.body[0],J.type==="ExpressionStatement")J=J.expression}return J=lU(J),J.type==="FunctionExpression"||J.type==="ArrowFunctionExpression"}catch(J){return!1}},xh=gh;function mN(D,$,J=$.length){return KV({offset:D.offset,line:D.line,column:D.column},$,J)}function KV(D,$,J=$.length){let X=0,Y=-1;for(let Q=0;Q<J;Q++)if($.charCodeAt(Q)===10)X++,Y=Q;return D.offset+=J,D.line+=X,D.column=Y===-1?D.column+J:J-Y,D}function lN(D,$){if(!D)throw Error($||"unexpected compiler condition")}function K$(D,$,J=!1){for(let X=0;X<D.props.length;X++){let Y=D.props[X];if(Y.type===7&&(J||Y.exp)&&(a.isString($)?Y.name===$:$.test(Y.name)))return Y}}function A3(D,$,J=!1,X=!1){for(let Y=0;Y<D.props.length;Y++){let Q=D.props[Y];if(Q.type===6){if(J)continue;if(Q.name===$&&(Q.value||X))return Q}else if(Q.name==="bind"&&(Q.exp||X)&&m1(Q.arg,$))return Q}}function m1(D,$){return!!(D&&q6(D)&&D.content===$)}function yqD(D){return D.props.some(($)=>$.type===7&&$.name==="bind"&&(!$.arg||$.arg.type!==4||!$.arg.isStatic))}function zU(D){return D.type===5||D.type===2}function dN(D){return D.type===7&&D.name==="pre"}function iU(D){return D.type===7&&D.name==="slot"}function v9(D){return D.type===1&&D.tagType===3}function v3(D){return D.type===1&&D.tagType===2}var hqD=new Set([R9,T9]);function qV(D,$=[]){if(D&&!a.isString(D)&&D.type===14){let J=D.callee;if(!a.isString(J)&&hqD.has(J))return qV(D.arguments[0],$.concat(D))}return[D,$]}function E3(D,$,J){if(D.type!==13&&mqD(D,$))return;let X,Y=D.type===13?D.props:D.arguments[2],Q=[],U;if(Y&&!a.isString(Y)&&Y.type===14){let F=qV(Y);Y=F[0],Q=F[1],U=Q[Q.length-1]}if(Y==null||a.isString(Y))X=g$([$]);else if(Y.type===14){let F=Y.arguments[0];if(!a.isString(F)&&F.type===15){if(!iN($,F))F.properties.unshift($)}else if(Y.callee===fU)X=f0(J.helper(w3),[g$([$]),Y]);else Y.arguments.unshift(g$([$]));!X&&(X=Y)}else if(Y.type===15){if(!iN($,Y))Y.properties.unshift($);X=Y}else if(X=f0(J.helper(w3),[g$([$]),Y]),U&&U.callee===T9)U=Q[Q.length-2];if(D.type===13)if(U)U.arguments[0]=X;else D.props=X;else if(U)U.arguments[0]=X;else D.arguments[2]=X}function mqD(D,$){var J,X,Y;if($.key.type!==4||$.key.content!=="key")return!1;let Q=D.arguments[2];if(Q&&!a.isString(Q)){let[U]=qV(Q);if(U&&!a.isString(U)&&U.type===15&&iN($,U))return!0}return(J=D.arguments)[2]||(J[2]="{}"),(X=D.arguments)[3]||(X[3]="undefined"),(Y=D.arguments)[4]||(Y[4]="undefined"),D.arguments[5]=$.value,!0}function iN(D,$){let J=!1;if(D.key.type===4){let X=D.key.content;J=$.properties.some((Y)=>Y.key.type===4&&Y.key.content===X)}return J}function G8(D,$){return`_${$}_${D.replace(/[^\w]/g,(J,X)=>{return J==="-"?"_":D.charCodeAt(X).toString()})}`}function c0(D,$){if(!D||Object.keys($).length===0)return!1;switch(D.type){case 1:for(let J=0;J<D.props.length;J++){let X=D.props[J];if(X.type===7&&(c0(X.arg,$)||c0(X.exp,$)))return!0}return D.children.some((J)=>c0(J,$));case 11:if(c0(D.source,$))return!0;return D.children.some((J)=>c0(J,$));case 9:return D.branches.some((J)=>c0(J,$));case 10:if(c0(D.condition,$))return!0;return D.children.some((J)=>c0(J,$));case 4:return!D.isStatic&&s6(D.content)&&!!$[D.content];case 8:return D.children.some((J)=>a.isObject(J)&&c0(J,$));case 5:case 12:return c0(D.content,$);case 2:case 3:case 20:return!1;default:return!1}}function fh(D){if(D.type===14&&D.callee===hU)return D.arguments[1].returns;else return D}var yh=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function GV(D){for(let $=0;$<D.length;$++)if(!_$(D.charCodeAt($)))return!1;return!0}function cU(D){return D.type===2&&GV(D.content)||D.type===12&&cU(D.content)}function ZV(D){return D.type===3||cU(D)}var hh={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:a.NO,isPreTag:a.NO,isIgnoreNewlineTag:a.NO,isCustomElement:a.NO,onError:JV,onWarn:Mh,comments:!0,prefixIdentifiers:!1},CD=hh,T3=null,a6="",p0=null,AD=null,r$="",o6=-1,U8=-1,zV=0,h1=!1,cN=null,W0=[],aD=new Rh(W0,{onerr:W$,ontext(D,$){GU(x0(D,$),D,$)},ontextentity(D,$,J){GU(D,$,J)},oninterpolation(D,$){if(h1)return GU(x0(D,$),D,$);let J=D+aD.delimiterOpen.length,X=$-aD.delimiterClose.length;while(_$(a6.charCodeAt(J)))J++;while(_$(a6.charCodeAt(X-1)))X--;let Y=x0(J,X);if(Y.includes("&"))Y=Q8.decodeHTML(Y);pN({type:5,content:IU(Y,!1,B0(J,X)),loc:B0(D,$)})},onopentagname(D,$){let J=x0(D,$);p0={type:1,tag:J,ns:CD.getNamespace(J,W0[0],CD.ns),tagType:0,props:[],children:[],loc:B0(D-1,$),codegenNode:void 0}},onopentagend(D){Yh(D)},onclosetag(D,$){let J=x0(D,$);if(!CD.isVoidTag(J)){let X=!1;for(let Y=0;Y<W0.length;Y++)if(W0[Y].tag.toLowerCase()===J.toLowerCase()){if(X=!0,Y>0)W$(24,W0[0].loc.start.offset);for(let U=0;U<=Y;U++){let F=W0.shift();HU(F,$,U<Y)}break}if(!X)W$(23,mh(D,60))}},onselfclosingtag(D){let $=p0.tag;if(p0.isSelfClosing=!0,Yh(D),W0[0]&&W0[0].tag===$)HU(W0.shift(),D)},onattribname(D,$){AD={type:6,name:x0(D,$),nameLoc:B0(D,$),value:void 0,loc:B0(D)}},ondirname(D,$){let J=x0(D,$),X=J==="."||J===":"?"bind":J==="@"?"on":J==="#"?"slot":J.slice(2);if(!h1&&X==="")W$(26,D);if(h1||X==="")AD={type:6,name:J,nameLoc:B0(D,$),value:void 0,loc:B0(D)};else if(AD={type:7,name:X,rawName:J,exp:void 0,arg:void 0,modifiers:J==="."?[OD("prop")]:[],loc:B0(D)},X==="pre"){h1=aD.inVPre=!0,cN=p0;let Y=p0.props;for(let Q=0;Q<Y.length;Q++)if(Y[Q].type===7)Y[Q]=aqD(Y[Q])}},ondirarg(D,$){if(D===$)return;let J=x0(D,$);if(h1&&!dN(AD))AD.name+=J,F8(AD.nameLoc,$);else{let X=J[0]!=="[";AD.arg=IU(X?J:J.slice(1,-1),X,B0(D,$),X?3:0)}},ondirmodifier(D,$){let J=x0(D,$);if(h1&&!dN(AD))AD.name+="."+J,F8(AD.nameLoc,$);else if(AD.name==="slot"){let X=AD.arg;if(X)X.content+="."+J,F8(X.loc,$)}else{let X=OD(J,!0,B0(D,$));AD.modifiers.push(X)}},onattribdata(D,$){if(r$+=x0(D,$),o6<0)o6=D;U8=$},onattribentity(D,$,J){if(r$+=D,o6<0)o6=$;U8=J},onattribnameend(D){let $=AD.loc.start.offset,J=x0($,D);if(AD.type===7)AD.rawName=J;if(p0.props.some((X)=>(X.type===7?X.rawName:X.name)===J))W$(2,$)},onattribend(D,$){if(p0&&AD){if(F8(AD.loc,$),D!==0)if(AD.type===6){if(AD.name==="class")r$=dh(r$).trim();if(D===1&&!r$)W$(13,$);if(AD.value={type:2,content:r$,loc:D===1?B0(o6,U8):B0(o6-1,U8+1)},aD.inSFCRoot&&p0.tag==="template"&&AD.name==="lang"&&r$&&r$!=="html")aD.enterRCDATA(LU("</template"),0)}else{let J=0;if(AD.name==="for")J=3;else if(AD.name==="slot")J=1;else if(AD.name==="on"&&r$.includes(";"))J=2;if(AD.exp=IU(r$,!1,B0(o6,U8),0,J),AD.name==="for")AD.forParseResult=dqD(AD.exp);let X=-1;if(AD.name==="bind"&&(X=AD.modifiers.findIndex((Y)=>Y.content==="sync"))>-1&&A9("COMPILER_V_BIND_SYNC",CD,AD.loc,AD.arg.loc.source))AD.name="model",AD.modifiers.splice(X,1)}if(AD.type!==7||AD.name!=="pre")p0.props.push(AD)}r$="",o6=U8=-1},oncomment(D,$){if(CD.comments)pN({type:3,content:x0(D,$),loc:B0(D-4,$+3)})},onend(){let D=a6.length;if(aD.state!==1)switch(aD.state){case 5:case 8:W$(5,D);break;case 3:case 4:W$(25,aD.sectionStart);break;case 28:if(aD.currentSequence===g0.CdataEnd)W$(6,D);else W$(7,D);break;case 6:case 7:case 9:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:W$(9,D);break}for(let $=0;$<W0.length;$++)HU(W0[$],D-1),W$(24,W0[$].loc.start.offset)},oncdata(D,$){if((W0[0]?W0[0].ns:CD.ns)!==0)GU(x0(D,$),D,$);else W$(1,D-9)},onprocessinginstruction(D){if((W0[0]?W0[0].ns:CD.ns)===0)W$(21,D-1)}}),Xh=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,lqD=/^\(|\)$/g;function dqD(D){let{loc:$,content:J}=D,X=J.match(yh);if(!X)return;let[,Y,Q]=X,U=(G,Z,H=!1)=>{let z=$.start.offset+Z,I=z+G.length;return IU(G,!1,B0(z,I),0,H?1:0)},F={source:U(Q.trim(),J.indexOf(Q,Y.length)),value:void 0,key:void 0,index:void 0,finalized:!1},W=Y.trim().replace(lqD,"").trim(),K=Y.indexOf(W),q=W.match(Xh);if(q){W=W.replace(Xh,"").trim();let G=q[1].trim(),Z;if(G)Z=J.indexOf(G,K+W.length),F.key=U(G,Z,!0);if(q[2]){let H=q[2].trim();if(H)F.index=U(H,J.indexOf(H,F.key?Z+G.length:K+W.length),!0)}}if(W)F.value=U(W,K,!0);return F}function x0(D,$){return a6.slice(D,$)}function Yh(D){if(aD.inSFCRoot)p0.innerLoc=B0(D+1,D+1);pN(p0);let{tag:$,ns:J}=p0;if(J===0&&CD.isPreTag($))zV++;if(CD.isVoidTag($))HU(p0,D);else if(W0.unshift(p0),J===1||J===2)aD.inXML=!0;p0=null}function GU(D,$,J){let X=W0[0]||T3,Y=X.children[X.children.length-1];if(Y&&Y.type===2)Y.content+=D,F8(Y.loc,J);else X.children.push({type:2,content:D,loc:B0($,J)})}function HU(D,$,J=!1){if(J)F8(D.loc,mh($,60));else F8(D.loc,iqD($,62)+1);if(aD.inSFCRoot){if(D.children.length)D.innerLoc.end=a.extend({},D.children[D.children.length-1].loc.end);else D.innerLoc.end=a.extend({},D.innerLoc.start);D.innerLoc.source=x0(D.innerLoc.start.offset,D.innerLoc.end.offset)}let{tag:X,ns:Y,children:Q}=D;if(!h1){if(X==="slot")D.tagType=2;else if(Qh(D))D.tagType=3;else if(pqD(D))D.tagType=1}if(!aD.inRCDATA)D.children=lh(Q);if(Y===0&&CD.isIgnoreNewlineTag(X)){let U=Q[0];if(U&&U.type===2)U.content=U.content.replace(/^\r?\n/,"")}if(Y===0&&CD.isPreTag(X))zV--;if(cN===D)h1=aD.inVPre=!1,cN=null;if(aD.inXML&&(W0[0]?W0[0].ns:CD.ns)===0)aD.inXML=!1;{let U=D.props;if(d1("COMPILER_V_IF_V_FOR_PRECEDENCE",CD)){let W=!1,K=!1;for(let q=0;q<U.length;q++){let G=U[q];if(G.type===7){if(G.name==="if")W=!0;else if(G.name==="for")K=!0}if(W&&K){M3("COMPILER_V_IF_V_FOR_PRECEDENCE",CD,D.loc);break}}}if(!aD.inSFCRoot&&d1("COMPILER_NATIVE_TEMPLATE",CD)&&D.tag==="template"&&!Qh(D)){M3("COMPILER_NATIVE_TEMPLATE",CD,D.loc);let W=W0[0]||T3,K=W.children.indexOf(D);W.children.splice(K,1,...D.children)}let F=U.find((W)=>W.type===6&&W.name==="inline-template");if(F&&A9("COMPILER_INLINE_TEMPLATE",CD,F.loc)&&D.children.length)F.value={type:2,content:x0(D.children[0].loc.start.offset,D.children[D.children.length-1].loc.end.offset),loc:F.loc}}}function iqD(D,$){let J=D;while(a6.charCodeAt(J)!==$&&J<a6.length-1)J++;return J}function mh(D,$){let J=D;while(a6.charCodeAt(J)!==$&&J>=0)J--;return J}var cqD=new Set(["if","else","else-if","for","slot"]);function Qh({tag:D,props:$}){if(D==="template"){for(let J=0;J<$.length;J++)if($[J].type===7&&cqD.has($[J].name))return!0}return!1}function pqD({tag:D,props:$}){if(CD.isCustomElement(D))return!1;if(D==="component"||nqD(D.charCodeAt(0))||UV(D)||CD.isBuiltInComponent&&CD.isBuiltInComponent(D)||CD.isNativeTag&&!CD.isNativeTag(D))return!0;for(let J=0;J<$.length;J++){let X=$[J];if(X.type===6){if(X.name==="is"&&X.value){if(X.value.content.startsWith("vue:"))return!0;else if(A9("COMPILER_IS_ON_ELEMENT",CD,X.loc))return!0}}else if(X.name==="bind"&&m1(X.arg,"is")&&A9("COMPILER_IS_ON_ELEMENT",CD,X.loc))return!0}return!1}function nqD(D){return D>64&&D<91}var rqD=/\r\n/g;function lh(D){let $=CD.whitespace!=="preserve",J=!1;for(let X=0;X<D.length;X++){let Y=D[X];if(Y.type===2)if(!zV){if(GV(Y.content)){let Q=D[X-1]&&D[X-1].type,U=D[X+1]&&D[X+1].type;if(!Q||!U||$&&(Q===3&&(U===3||U===1)||Q===1&&(U===3||U===1&&tqD(Y.content))))J=!0,D[X]=null;else Y.content=" "}else if($)Y.content=dh(Y.content)}else Y.content=Y.content.replace(rqD,`
`)}return J?D.filter(Boolean):D}function tqD(D){for(let $=0;$<D.length;$++){let J=D.charCodeAt($);if(J===10||J===13)return!0}return!1}function dh(D){let $="",J=!1;for(let X=0;X<D.length;X++)if(_$(D.charCodeAt(X))){if(!J)$+=" ",J=!0}else $+=D[X],J=!1;return $}function pN(D){(W0[0]||T3).children.push(D)}function B0(D,$){return{start:aD.getPos(D),end:$==null?$:aD.getPos($),source:$==null?$:x0(D,$)}}function oqD(D){return B0(D.start.offset,D.end.offset)}function F8(D,$){D.end=aD.getPos($),D.source=x0(D.start.offset,$)}function aqD(D){let $={type:6,name:D.rawName,nameLoc:B0(D.loc.start.offset,D.loc.start.offset+D.rawName.length),value:void 0,loc:D.loc};if(D.exp){let J=D.exp.loc;if(J.end.offset<D.loc.end.offset)J.start.offset--,J.start.column--,J.end.offset++,J.end.column++;$.value={type:2,content:D.exp.content,loc:J}}return $}function IU(D,$=!1,J,X=0,Y=0){let Q=OD(D,$,J,X);if(!$&&CD.prefixIdentifiers&&Y!==3&&D.trim()){if(s6(D))return Q.ast=null,Q;try{let U=CD.expressionPlugins,F={plugins:U?[...U,"typescript"]:["typescript"]};if(Y===2)Q.ast=w9.parse(` ${D} `,F).program;else if(Y===1)Q.ast=w9.parseExpression(`(${D})=>{}`,F);else Q.ast=w9.parseExpression(`(${D})`,F)}catch(U){Q.ast=!1,W$(46,J.start.offset,U.message)}}return Q}function W$(D,$,J){CD.onError(mD(D,B0($,$),void 0,J))}function sqD(){aD.reset(),p0=null,AD=null,r$="",o6=-1,U8=-1,W0.length=0}function ih(D,$){if(sqD(),a6=D,CD=a.extend({},hh),$){let Y;for(Y in $)if($[Y]!=null)CD[Y]=$[Y]}if(CD.decodeEntities)console.warn("[@vue/compiler-core] decodeEntities option is passed but will be ignored in non-browser builds.");aD.mode=CD.parseMode==="html"?1:CD.parseMode==="sfc"?2:0,aD.inXML=CD.ns===1||CD.ns===2;let J=$&&$.delimiters;if(J)aD.delimiterOpen=LU(J[0]),aD.delimiterClose=LU(J[1]);let X=T3=wh([],D);return aD.parse(a6),X.loc=B0(0,D.length),X.children=lh(X.children),T3=null,X}function eqD(D,$){BU(D,void 0,$,!!ch(D))}function ch(D){let $=D.children.filter((J)=>J.type!==3);return $.length===1&&$[0].type===1&&!v3($[0])?$[0]:null}function BU(D,$,J,X=!1,Y=!1){let{children:Q}=D,U=[];for(let q=0;q<Q.length;q++){let G=Q[q];if(G.type===1&&G.tagType===0){let Z=X?0:x$(G,J);if(Z>0){if(Z>=2){G.codegenNode.patchFlag=-1,U.push(G);continue}}else{let H=G.codegenNode;if(H.type===13){let z=H.patchFlag;if((z===void 0||z===512||z===1)&&nh(G,J)>=2){let I=rh(G);if(I)H.props=J.hoist(I)}if(H.dynamicProps)H.dynamicProps=J.hoist(H.dynamicProps)}}}else if(G.type===12){if((X?0:x$(G,J))>=2){if(G.codegenNode.type===14&&G.codegenNode.arguments.length>0)G.codegenNode.arguments.push(`-1 /* ${a.PatchFlagNames[-1]} */`);U.push(G);continue}}if(G.type===1){let Z=G.tagType===1;if(Z)J.scopes.vSlot++;if(BU(G,D,J,!1,Y),Z)J.scopes.vSlot--}else if(G.type===11)BU(G,D,J,G.children.length===1,!0);else if(G.type===9)for(let Z=0;Z<G.branches.length;Z++)BU(G.branches[Z],D,J,G.branches[Z].children.length===1,Y)}let F=!1;if(U.length===Q.length&&D.type===1){if(D.tagType===0&&D.codegenNode&&D.codegenNode.type===13&&a.isArray(D.codegenNode.children))D.codegenNode.children=W(l1(D.codegenNode.children)),F=!0;else if(D.tagType===1&&D.codegenNode&&D.codegenNode.type===13&&D.codegenNode.children&&!a.isArray(D.codegenNode.children)&&D.codegenNode.children.type===15){let q=K(D.codegenNode,"default");if(q)q.returns=W(l1(q.returns)),F=!0}else if(D.tagType===3&&$&&$.type===1&&$.tagType===1&&$.codegenNode&&$.codegenNode.type===13&&$.codegenNode.children&&!a.isArray($.codegenNode.children)&&$.codegenNode.children.type===15){let q=K$(D,"slot",!0),G=q&&q.arg&&K($.codegenNode,q.arg);if(G)G.returns=W(l1(G.returns)),F=!0}}if(!F)for(let q of U)q.codegenNode=J.cache(q.codegenNode);function W(q){let G=J.cache(q);return G.needArraySpread=!0,G}function K(q,G){if(q.children&&!a.isArray(q.children)&&q.children.type===15){let Z=q.children.properties.find((H)=>H.key===G||H.key.content===G);return Z&&Z.value}}if(U.length&&J.transformHoist)J.transformHoist(Q,J,D)}function x$(D,$){let{constantCache:J}=$;switch(D.type){case 1:if(D.tagType!==0)return 0;let X=J.get(D);if(X!==void 0)return X;let Y=D.codegenNode;if(Y.type!==13)return 0;if(Y.isBlock&&D.tag!=="svg"&&D.tag!=="foreignObject"&&D.tag!=="math")return 0;if(Y.patchFlag===void 0){let U=3,F=nh(D,$);if(F===0)return J.set(D,0),0;if(F<U)U=F;for(let W=0;W<D.children.length;W++){let K=x$(D.children[W],$);if(K===0)return J.set(D,0),0;if(K<U)U=K}if(U>1)for(let W=0;W<D.props.length;W++){let K=D.props[W];if(K.type===7&&K.name==="bind"&&K.exp){let q=x$(K.exp,$);if(q===0)return J.set(D,0),0;if(q<U)U=q}}if(Y.isBlock){for(let W=0;W<D.props.length;W++)if(D.props[W].type===7)return J.set(D,0),0;$.removeHelper(i1),$.removeHelper(q8($.inSSR,Y.isComponent)),Y.isBlock=!1,$.helper(K8($.inSSR,Y.isComponent))}return J.set(D,U),U}else return J.set(D,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return x$(D.content,$);case 4:return D.constType;case 8:let Q=3;for(let U=0;U<D.children.length;U++){let F=D.children[U];if(a.isString(F)||a.isSymbol(F))continue;let W=x$(F,$);if(W===0)return 0;else if(W<Q)Q=W}return Q;case 20:return 2;default:return 0}}var DGD=new Set([gU,xU,R9,T9]);function ph(D,$){if(D.type===14&&!a.isString(D.callee)&&DGD.has(D.callee)){let J=D.arguments[0];if(J.type===4)return x$(J,$);else if(J.type===14)return ph(J,$)}return 0}function nh(D,$){let J=3,X=rh(D);if(X&&X.type===15){let{properties:Y}=X;for(let Q=0;Q<Y.length;Q++){let{key:U,value:F}=Y[Q],W=x$(U,$);if(W===0)return W;if(W<J)J=W;let K;if(F.type===4)K=x$(F,$);else if(F.type===14)K=ph(F,$);else K=0;if(K===0)return K;if(K<J)J=K}}return J}function rh(D){let $=D.codegenNode;if($.type===13)return $.props}function th(D,{filename:$="",prefixIdentifiers:J=!1,hoistStatic:X=!1,hmr:Y=!1,cacheHandlers:Q=!1,nodeTransforms:U=[],directiveTransforms:F={},transformHoist:W=null,isBuiltInComponent:K=a.NOOP,isCustomElement:q=a.NOOP,expressionPlugins:G=[],scopeId:Z=null,slotted:H=!0,ssr:z=!1,inSSR:I=!1,ssrCssVars:B="",bindingMetadata:N=a.EMPTY_OBJ,inline:V=!1,isTS:O=!1,onError:j=JV,onWarn:v=Mh,compatConfig:A}){let C=$.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),u={filename:$,selfName:C&&a.capitalize(a.camelize(C[1])),prefixIdentifiers:J,hoistStatic:X,hmr:Y,cacheHandlers:Q,nodeTransforms:U,directiveTransforms:F,transformHoist:W,isBuiltInComponent:K,isCustomElement:q,expressionPlugins:G,scopeId:Z,slotted:H,ssr:z,inSSR:I,ssrCssVars:B,bindingMetadata:N,inline:V,isTS:O,onError:j,onWarn:v,compatConfig:A,root:D,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,vForMemoKeyedNodes:new WeakSet,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:D,childIndex:0,inVOnce:!1,helper(E){let d=u.helpers.get(E)||0;return u.helpers.set(E,d+1),E},removeHelper(E){let d=u.helpers.get(E);if(d){let c=d-1;if(!c)u.helpers.delete(E);else u.helpers.set(E,c)}},helperString(E){return`_${w$[u.helper(E)]}`},replaceNode(E){{if(!u.currentNode)throw Error("Node being replaced is already removed.");if(!u.parent)throw Error("Cannot replace root node.")}u.parent.children[u.childIndex]=u.currentNode=E},removeNode(E){if(!u.parent)throw Error("Cannot remove root node.");let d=u.parent.children,c=E?d.indexOf(E):u.currentNode?u.childIndex:-1;if(c<0)throw Error("node being removed is not a child of current parent");if(!E||E===u.currentNode)u.currentNode=null,u.onNodeRemoved();else if(u.childIndex>c)u.childIndex--,u.onNodeRemoved();u.parent.children.splice(c,1)},onNodeRemoved:a.NOOP,addIdentifiers(E){if(a.isString(E))_(E);else if(E.identifiers)E.identifiers.forEach(_);else if(E.type===4)_(E.content)},removeIdentifiers(E){if(a.isString(E))y(E);else if(E.identifiers)E.identifiers.forEach(y);else if(E.type===4)y(E.content)},hoist(E){if(a.isString(E))E=OD(E);u.hoists.push(E);let d=OD(`_hoisted_${u.hoists.length}`,!1,E.loc,2);return d.hoisted=E,d},cache(E,d=!1,c=!1){let p=jh(u.cached.length,E,d,c);return u.cached.push(p),p}};u.filters=new Set;function _(E){let{identifiers:d}=u;if(d[E]===void 0)d[E]=0;d[E]++}function y(E){u.identifiers[E]--}return u}function oh(D,$){let J=th(D,$);if(P3(D,J),$.hoistStatic)eqD(D,J);if(!$.ssr)$GD(D,J);D.helpers=new Set([...J.helpers.keys()]),D.components=[...J.components],D.directives=[...J.directives],D.imports=J.imports,D.hoists=J.hoists,D.temps=J.temps,D.cached=J.cached,D.transformed=!0,D.filters=[...J.filters]}function $GD(D,$){let{helper:J}=$,{children:X}=D;if(X.length===1){let Y=ch(D);if(Y&&Y.codegenNode){let Q=Y.codegenNode;if(Q.type===13)mU(Q,$);D.codegenNode=Q}else D.codegenNode=X[0]}else if(X.length>1){let Y=64;if(X.filter((Q)=>Q.type!==3).length===1)Y|=2048;D.codegenNode=M9($,J(L9),void 0,D.children,Y,void 0,void 0,!0,void 0,!1)}}function JGD(D,$){let J=0,X=()=>{J--};for(;J<D.children.length;J++){let Y=D.children[J];if(a.isString(Y))continue;$.grandParent=$.parent,$.parent=D,$.childIndex=J,$.onNodeRemoved=X,P3(Y,$)}}function P3(D,$){$.currentNode=D;let{nodeTransforms:J}=$,X=[];for(let Q=0;Q<J.length;Q++){let U=J[Q](D,$);if(U)if(a.isArray(U))X.push(...U);else X.push(U);if(!$.currentNode)return;else D=$.currentNode}switch(D.type){case 3:if(!$.ssr)$.helper(E9);break;case 5:if(!$.ssr)$.helper(uU);break;case 9:for(let Q=0;Q<D.branches.length;Q++)P3(D.branches[Q],$);break;case 10:case 11:case 1:case 0:JGD(D,$);break}$.currentNode=D;let Y=X.length;while(Y--)X[Y]()}function HV(D,$){let J=a.isString(D)?(X)=>X===D:(X)=>D.test(X);return(X,Y)=>{if(X.type===1){let{props:Q}=X;if(X.tagType===3&&Q.some(iU))return;let U=[];for(let F=0;F<Q.length;F++){let W=Q[F];if(W.type===7&&J(W.name)){Q.splice(F,1),F--;let K=$(X,W,Y);if(K)U.push(K)}}return U}}}var pU="/*@__PURE__*/",OU=(D)=>`${w$[D]}: _${w$[D]}`;function Uh(D,{mode:$="function",prefixIdentifiers:J=$==="module",sourceMap:X=!1,filename:Y="template.vue.html",scopeId:Q=null,optimizeImports:U=!1,runtimeGlobalName:F="Vue",runtimeModuleName:W="vue",ssrRuntimeModuleName:K="vue/server-renderer",ssr:q=!1,isTS:G=!1,inSSR:Z=!1}){let H={mode:$,prefixIdentifiers:J,sourceMap:X,filename:Y,scopeId:Q,optimizeImports:U,runtimeGlobalName:F,runtimeModuleName:W,ssrRuntimeModuleName:K,ssr:q,isTS:G,inSSR:Z,source:D.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(B){return`_${w$[B]}`},push(B,N=-2,V){if(H.code+=B,H.map){if(V){let O;if(V.type===4&&!V.isStatic){let j=V.content.replace(/^_ctx\./,"");if(j!==V.content&&s6(j))O=j}if(V.loc.source)I(V.loc.start,O)}if(N===-3)KV(H,B);else if(H.offset+=B.length,N===-2)H.column+=B.length;else{if(N===-1)N=B.length-1;H.line++,H.column=B.length-N}if(V&&V.loc!==w0&&V.loc.source)I(V.loc.end)}},indent(){z(++H.indentLevel)},deindent(B=!1){if(B)--H.indentLevel;else z(--H.indentLevel)},newline(){z(H.indentLevel)}};function z(B){H.push(`
`+" ".repeat(B),0)}function I(B,N=null){let{_names:V,_mappings:O}=H.map;if(N!==null&&!V.has(N))V.add(N);O.add({originalLine:B.line,originalColumn:B.column-1,generatedLine:H.line,generatedColumn:H.column-1,source:Y,name:N})}if(X)H.map=new OqD.SourceMapGenerator,H.map.setSourceContent(Y,H.source),H.map._sources.add(Y);return H}function ah(D,$={}){let J=Uh(D,$);if($.onContextCreated)$.onContextCreated(J);let{mode:X,push:Y,prefixIdentifiers:Q,indent:U,deindent:F,newline:W,scopeId:K,ssr:q}=J,G=Array.from(D.helpers),Z=G.length>0,H=!Q&&X!=="module",z=K!=null&&X==="module",I=!!$.inline,B=I?Uh(D,$):J;if(X==="module")YGD(D,B,z,I);else XGD(D,B);let N=q?"ssrRender":"render",V=q?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"];if($.bindingMetadata&&!$.inline)V.push("$props","$setup","$data","$options");let O=$.isTS?V.map((j)=>`${j}: any`).join(","):V.join(", ");if(I)Y(`(${O}) => {`);else Y(`function ${N}(${O}) {`);if(U(),H){if(Y("with (_ctx) {"),U(),Z)Y(`const { ${G.map(OU).join(", ")} } = _Vue
`,-1),W()}if(D.components.length){if(yN(D.components,"component",J),D.directives.length||D.temps>0)W()}if(D.directives.length){if(yN(D.directives,"directive",J),D.temps>0)W()}if(D.filters&&D.filters.length)W(),yN(D.filters,"filter",J),W();if(D.temps>0){Y("let ");for(let j=0;j<D.temps;j++)Y(`${j>0?", ":""}_temp${j}`)}if(D.components.length||D.directives.length||D.temps)Y(`
`,0),W();if(!q)Y("return ");if(D.codegenNode)X0(D.codegenNode,J);else Y("null");if(H)F(),Y("}");return F(),Y("}"),{ast:D,code:J.code,preamble:I?B.code:"",map:J.map?J.map.toJSON():void 0}}function XGD(D,$){let{ssr:J,prefixIdentifiers:X,push:Y,newline:Q,runtimeModuleName:U,runtimeGlobalName:F,ssrRuntimeModuleName:W}=$,K=J?`require(${JSON.stringify(U)})`:F,q=Array.from(D.helpers);if(q.length>0){if(X)Y(`const { ${q.map(OU).join(", ")} } = ${K}
`,-1);else if(Y(`const _Vue = ${K}
`,-1),D.hoists.length){let G=[EU,TU,E9,PU,sN].filter((Z)=>q.includes(Z)).map(OU).join(", ");Y(`const { ${G} } = _Vue
`,-1)}}if(D.ssrHelpers&&D.ssrHelpers.length)Y(`const { ${D.ssrHelpers.map(OU).join(", ")} } = require("${W}")
`,-1);sh(D.hoists,$),Q(),Y("return ")}function YGD(D,$,J,X){let{push:Y,newline:Q,optimizeImports:U,runtimeModuleName:F,ssrRuntimeModuleName:W}=$;if(D.helpers.size){let K=Array.from(D.helpers);if(U)Y(`import { ${K.map((q)=>w$[q]).join(", ")} } from ${JSON.stringify(F)}
`,-1),Y(`
// Binding optimization for webpack code-split
const ${K.map((q)=>`_${w$[q]} = ${w$[q]}`).join(", ")}
`,-1);else Y(`import { ${K.map((q)=>`${w$[q]} as _${w$[q]}`).join(", ")} } from ${JSON.stringify(F)}
`,-1)}if(D.ssrHelpers&&D.ssrHelpers.length)Y(`import { ${D.ssrHelpers.map((K)=>`${w$[K]} as _${w$[K]}`).join(", ")} } from "${W}"
`,-1);if(D.imports.length)QGD(D.imports,$),Q();if(sh(D.hoists,$),Q(),!X)Y("export ")}function yN(D,$,{helper:J,push:X,newline:Y,isTS:Q}){let U=J($==="filter"?CU:$==="component"?V3:SU);for(let F=0;F<D.length;F++){let W=D[F],K=W.endsWith("__self");if(K)W=W.slice(0,-6);if(X(`const ${G8(W,$)} = ${U}(${JSON.stringify(W)}${K?", true":""})${Q?"!":""}`),F<D.length-1)Y()}}function sh(D,$){if(!D.length)return;$.pure=!0;let{push:J,newline:X}=$;X();for(let Y=0;Y<D.length;Y++){let Q=D[Y];if(Q)J(`const _hoisted_${Y+1} = `),X0(Q,$),X()}$.pure=!1}function QGD(D,$){if(!D.length)return;D.forEach((J)=>{$.push("import "),X0(J.exp,$),$.push(` from '${J.path}'`),$.newline()})}function UGD(D){return a.isString(D)||D.type===4||D.type===2||D.type===5||D.type===8}function nU(D,$){let J=D.length>3||D.some((X)=>a.isArray(X)||!UGD(X));$.push("["),J&&$.indent(),P9(D,$,J),J&&$.deindent(),$.push("]")}function P9(D,$,J=!1,X=!0){let{push:Y,newline:Q}=$;for(let U=0;U<D.length;U++){let F=D[U];if(a.isString(F))Y(F,-3);else if(a.isArray(F))nU(F,$);else X0(F,$);if(U<D.length-1)if(J)X&&Y(","),Q();else X&&Y(", ")}}function X0(D,$){if(a.isString(D)){$.push(D,-3);return}if(a.isSymbol(D)){$.push($.helper(D));return}switch(D.type){case 1:case 9:case 11:lN(D.codegenNode!=null,"Codegen node is missing for element/if/for node. Apply appropriate transforms first."),X0(D.codegenNode,$);break;case 2:FGD(D,$);break;case 4:eh(D,$);break;case 5:WGD(D,$);break;case 12:X0(D.codegenNode,$);break;case 8:Dm(D,$);break;case 3:qGD(D,$);break;case 13:GGD(D,$);break;case 14:zGD(D,$);break;case 15:HGD(D,$);break;case 17:IGD(D,$);break;case 18:BGD(D,$);break;case 19:OGD(D,$);break;case 20:NGD(D,$);break;case 21:P9(D.body,$,!0,!1);break;case 22:VGD(D,$);break;case 23:$m(D,$);break;case 24:wGD(D,$);break;case 25:jGD(D,$);break;case 26:LGD(D,$);break;case 10:break;default:return lN(!1,`unhandled codegen node type: ${D.type}`),D}}function FGD(D,$){$.push(JSON.stringify(D.content),-3,D)}function eh(D,$){let{content:J,isStatic:X}=D;$.push(X?JSON.stringify(J):J,-3,D)}function WGD(D,$){let{push:J,helper:X,pure:Y}=$;if(Y)J(pU);J(`${X(uU)}(`),X0(D.content,$),J(")")}function Dm(D,$){for(let J=0;J<D.children.length;J++){let X=D.children[J];if(a.isString(X))$.push(X,-3);else X0(X,$)}}function KGD(D,$){let{push:J}=$;if(D.type===8)J("["),Dm(D,$),J("]");else if(D.isStatic){let X=s6(D.content)?D.content:JSON.stringify(D.content);J(X,-2,D)}else J(`[${D.content}]`,-3,D)}function qGD(D,$){let{push:J,helper:X,pure:Y}=$;if(Y)J(pU);J(`${X(E9)}(${JSON.stringify(D.content)})`,-3,D)}function GGD(D,$){let{push:J,helper:X,pure:Y}=$,{tag:Q,props:U,children:F,patchFlag:W,dynamicProps:K,directives:q,isBlock:G,disableTracking:Z,isComponent:H}=D,z;if(W)if(W<0)z=W+` /* ${a.PatchFlagNames[W]} */`;else{let B=Object.keys(a.PatchFlagNames).map(Number).filter((N)=>N>0&&W&N).map((N)=>a.PatchFlagNames[N]).join(", ");z=W+` /* ${B} */`}if(q)J(X(kU)+"(");if(G)J(`(${X(i1)}(${Z?"true":""}), `);if(Y)J(pU);let I=G?q8($.inSSR,H):K8($.inSSR,H);if(J(X(I)+"(",-2,D),P9(ZGD([Q,U,F,z,K]),$),J(")"),G)J(")");if(q)J(", "),X0(q,$),J(")")}function ZGD(D){let $=D.length;while($--)if(D[$]!=null)break;return D.slice(0,$+1).map((J)=>J||"null")}function zGD(D,$){let{push:J,helper:X,pure:Y}=$,Q=a.isString(D.callee)?D.callee:X(D.callee);if(Y)J(pU);J(Q+"(",-2,D),P9(D.arguments,$),J(")")}function HGD(D,$){let{push:J,indent:X,deindent:Y,newline:Q}=$,{properties:U}=D;if(!U.length){J("{}",-2,D);return}let F=U.length>1||U.some((W)=>W.value.type!==4);J(F?"{":"{ "),F&&X();for(let W=0;W<U.length;W++){let{key:K,value:q}=U[W];if(KGD(K,$),J(": "),X0(q,$),W<U.length-1)J(","),Q()}F&&Y(),J(F?"}":" }")}function IGD(D,$){nU(D.elements,$)}function BGD(D,$){let{push:J,indent:X,deindent:Y}=$,{params:Q,returns:U,body:F,newline:W,isSlot:K}=D;if(K)J(`_${w$[yU]}(`);if(J("(",-2,D),a.isArray(Q))P9(Q,$);else if(Q)X0(Q,$);if(J(") => "),W||F)J("{"),X();if(U){if(W)J("return ");if(a.isArray(U))nU(U,$);else X0(U,$)}else if(F)X0(F,$);if(W||F)Y(),J("}");if(K){if(D.isNonScopedSlot)J(", undefined, true");J(")")}}function OGD(D,$){let{test:J,consequent:X,alternate:Y,newline:Q}=D,{push:U,indent:F,deindent:W,newline:K}=$;if(J.type===4){let G=!s6(J.content);G&&U("("),eh(J,$),G&&U(")")}else U("("),X0(J,$),U(")");Q&&F(),$.indentLevel++,Q||U(" "),U("? "),X0(X,$),$.indentLevel--,Q&&K(),Q||U(" "),U(": ");let q=Y.type===19;if(!q)$.indentLevel++;if(X0(Y,$),!q)$.indentLevel--;Q&&W(!0)}function NGD(D,$){let{push:J,helper:X,indent:Y,deindent:Q,newline:U}=$,{needPauseTracking:F,needArraySpread:W}=D;if(W)J("[...(");if(J(`_cache[${D.index}] || (`),F){if(Y(),J(`${X(j3)}(-1`),D.inVOnce)J(", true");J("),"),U(),J("(")}if(J(`_cache[${D.index}] = `),X0(D.value,$),F)J(`).cacheIndex = ${D.index},`),U(),J(`${X(j3)}(1),`),U(),J(`_cache[${D.index}]`),Q();if(J(")"),W)J(")]")}function VGD(D,$){let{push:J,indent:X,deindent:Y}=$;J("`");let Q=D.elements.length,U=Q>3;for(let F=0;F<Q;F++){let W=D.elements[F];if(a.isString(W))J(W.replace(/(`|\$|\\)/g,"\\$1"),-3);else{if(J("${"),U)X();if(X0(W,$),U)Y();J("}")}}J("`")}function $m(D,$){let{push:J,indent:X,deindent:Y}=$,{test:Q,consequent:U,alternate:F}=D;if(J("if ("),X0(Q,$),J(") {"),X(),X0(U,$),Y(),J("}"),F)if(J(" else "),F.type===23)$m(F,$);else J("{"),X(),X0(F,$),Y(),J("}")}function wGD(D,$){X0(D.left,$),$.push(" = "),X0(D.right,$)}function jGD(D,$){$.push("("),P9(D.expressions,$),$.push(")")}function LGD({returns:D},$){if($.push("return "),a.isArray(D))nU(D,$);else X0(D,$)}var RGD=a.makeMap("true,false,null,this"),Jm=(D,$)=>{if(D.type===5)D.content=q$(D.content,$);else if(D.type===1){let J=K$(D,"memo");for(let X=0;X<D.props.length;X++){let Y=D.props[X];if(Y.type===7&&Y.name!=="for"){let{exp:Q,arg:U}=Y;if(Q&&Q.type===4&&!(Y.name==="on"&&U)&&!(J&&$.vForMemoKeyedNodes.has(D)&&U&&U.type===4&&U.content==="key"))Y.exp=q$(Q,$,Y.name==="slot");if(U&&U.type===4&&!U.isStatic)Y.arg=q$(U,$)}}}};function q$(D,$,J=!1,X=!1,Y=Object.create($.identifiers)){if(!$.prefixIdentifiers||!D.content.trim())return D;let{inline:Q,bindingMetadata:U}=$,F=(I,B,N)=>{let V=a.hasOwn(U,I)&&U[I];if(Q){let O=B&&B.type==="AssignmentExpression"&&B.left===N,j=B&&B.type==="UpdateExpression"&&B.argument===N,v=B&&RU(B,G),A=B&&Th(G),C=(u)=>{let _=`${$.helperString(L3)}(${u})`;return A?`(${_})`:_};if(Fh(V)||V==="setup-reactive-const"||Y[I])return I;else if(V==="setup-ref")return`${I}.value`;else if(V==="setup-maybe-ref")return O||j||v?`${I}.value`:C(I);else if(V==="setup-let")if(O){let{right:u,operator:_}=B,y=W.slice(u.start-1,u.end-1),E=IV(q$(OD(y,!1),$,!1,!1,Z));return`${$.helperString(R3)}(${I})${$.isTS?` //@ts-ignore
`:""} ? ${I}.value ${_} ${E} : ${I}`}else if(j){N.start=B.start,N.end=B.end;let{prefix:u,operator:_}=B,y=u?_:"",E=u?"":_;return`${$.helperString(R3)}(${I})${$.isTS?` //@ts-ignore
`:""} ? ${y}${I}.value${E} : ${y}${I}${E}`}else if(v)return I;else return C(I);else if(V==="props")return a.genPropsAccessExp(I);else if(V==="props-aliased")return a.genPropsAccessExp(U.__propsAliases[I])}else if(V&&V.startsWith("setup")||V==="literal-const")return`$setup.${I}`;else if(V==="props-aliased")return`$props['${U.__propsAliases[I]}']`;else if(V)return`$${V}.${I}`;return`_ctx.${I}`},W=D.content,K=D.ast;if(K===!1)return D;if(K===null||!K&&s6(W)){let I=$.identifiers[W],B=a.isGloballyAllowed(W),N=RGD(W);if(!J&&!I&&!N&&(!B||U[W])){if(Fh(U[W]))D.constType=1;D.content=F(W)}else if(!I)if(N)D.constType=3;else D.constType=2;return D}if(!K){let I=X?` ${W} `:`(${W})${J?"=>{}":""}`;try{K=w9.parseExpression(I,{sourceType:"module",plugins:$.expressionPlugins})}catch(B){return $.onError(mD(46,D.loc,void 0,B.message)),D}}let q=[],G=[],Z=Object.create($.identifiers);vh(K,(I,B,N,V,O)=>{if(_h(I,B))return;if(I.name.startsWith("_filter_"))return;let j=V&&MGD(I);if(j&&!O){if(YV(B)&&B.shorthand)I.prefix=`${I.name}: `;I.name=F(I.name,B,I),q.push(I)}else{if(!(j&&O)&&(!B||B.type!=="CallExpression"&&B.type!=="NewExpression"&&B.type!=="MemberExpression"))I.isConstant=!0;q.push(I)}},!0,G,Z);let H=[];q.sort((I,B)=>I.start-B.start),q.forEach((I,B)=>{let N=I.start-1,V=I.end-1,O=q[B-1],j=W.slice(O?O.end-1:0,N);if(j.length||I.prefix)H.push(j+(I.prefix||""));let v=W.slice(N,V);if(H.push(OD(I.name,!1,{start:mN(D.loc.start,v,N),end:mN(D.loc.start,v,V),source:v},I.isConstant?3:0)),B===q.length-1&&V<W.length)H.push(W.slice(V))});let z;if(H.length)z=u$(H,D.loc),z.ast=K;else z=D,z.constType=3;return z.identifiers=Object.keys(Z),z}function MGD(D){if(a.isGloballyAllowed(D.name))return!1;if(D.name==="require")return!1;return!0}function IV(D){if(a.isString(D))return D;else if(D.type===4)return D.content;else return D.children.map(IV).join("")}function Fh(D){return D==="setup-const"||D==="literal-const"}var AGD=HV(/^(?:if|else|else-if)$/,(D,$,J)=>{return Xm(D,$,J,(X,Y,Q)=>{let U=J.parent.children,F=U.indexOf(X),W=0;while(F-->=0){let K=U[F];if(K&&K.type===9)W+=K.branches.length}return()=>{if(Q)X.codegenNode=Kh(Y,W,J);else{let K=EGD(X.codegenNode);K.alternate=Kh(Y,W+X.branches.length-1,J)}}})});function Xm(D,$,J,X){if($.name!=="else"&&(!$.exp||!$.exp.content.trim())){let Y=$.exp?$.exp.loc:D.loc;J.onError(mD(28,$.loc)),$.exp=OD("true",!1,Y)}if(J.prefixIdentifiers&&$.exp)$.exp=q$($.exp,J);if($.name==="if"){let Y=Wh(D,$),Q={type:9,loc:oqD(D.loc),branches:[Y]};if(J.replaceNode(Q),X)return X(Q,Y,!0)}else{let Y=J.parent.children,Q=[],U=Y.indexOf(D);while(U-->=-1){let F=Y[U];if(F&&ZV(F)){if(J.removeNode(F),F.type===3)Q.unshift(F);continue}if(F&&F.type===9){if(($.name==="else-if"||$.name==="else")&&F.branches[F.branches.length-1].condition===void 0)J.onError(mD(30,D.loc));J.removeNode();let W=Wh(D,$);if(Q.length&&!(J.parent&&J.parent.type===1&&(J.parent.tag==="transition"||J.parent.tag==="Transition")))W.children=[...Q,...W.children];{let q=W.userKey;if(q)F.branches.forEach(({userKey:G})=>{if(vGD(G,q))J.onError(mD(29,W.userKey.loc))})}F.branches.push(W);let K=X&&X(F,W,!1);if(P3(W,J),K)K();J.currentNode=null}else J.onError(mD(30,D.loc));break}}}function Wh(D,$){let J=D.tagType===3;return{type:10,loc:D.loc,condition:$.name==="else"?void 0:$.exp,children:J&&!K$(D,"for")?D.children:[D],userKey:A3(D,"key"),isTemplateIf:J}}function Kh(D,$,J){if(D.condition)return jU(D.condition,qh(D,$,J),f0(J.helper(E9),['"v-if"',"true"]));else return qh(D,$,J)}function qh(D,$,J){let{helper:X}=J,Y=V0("key",OD(`${$}`,!1,w0,2)),{children:Q}=D,U=Q[0];if(Q.length!==1||U.type!==1)if(Q.length===1&&U.type===11){let W=U.codegenNode;return E3(W,Y,J),W}else{let W=64;if(!D.isTemplateIf&&Q.filter((K)=>K.type!==3).length===1)W|=2048;return M9(J,X(L9),g$([Y]),Q,W,void 0,void 0,!0,!1,!1,D.loc)}else{let W=U.codegenNode,K=fh(W);if(K.type===13)mU(K,J);return E3(K,Y,J),W}}function vGD(D,$){if(!D||D.type!==$.type)return!1;if(D.type===6){if(D.value.content!==$.value.content)return!1}else{let J=D.exp,X=$.exp;if(J.type!==X.type)return!1;if(J.type!==4||J.isStatic!==X.isStatic||J.content!==X.content)return!1}return!0}function EGD(D){while(!0)if(D.type===19)if(D.alternate.type===19)D=D.alternate;else return D;else if(D.type===20)D=D.value}var TGD=HV("for",(D,$,J)=>{let{helper:X,removeHelper:Y}=J;return Ym(D,$,J,(Q)=>{let U=f0(X(_U),[Q.source]),F=v9(D),W=K$(D,"memo"),K=A3(D,"key",!1,!0),q=K&&K.type===7,G=K&&(K.type===6?K.value?OD(K.value.content,!0):void 0:K.exp),Z=G?V0("key",G):null;{if(F&&W)W.exp=q$(W.exp,J);if((F||W)&&Z&&q){if(G=K.exp=Z.value=q$(Z.value,J),W)J.vForMemoKeyedNodes.add(D)}}let H=Q.source.type===4&&Q.source.constType>0,z=H?64:K?128:256;return Q.codegenNode=M9(J,X(L9),void 0,U,z,void 0,void 0,!0,!H,!1,D.loc),()=>{let I,{children:B}=Q;if(F)D.children.some((O)=>{if(O.type===1){let j=A3(O,"key");if(j)return J.onError(mD(33,j.loc)),!0}});let N=B.length!==1||B[0].type!==1,V=v3(D)?D:F&&D.children.length===1&&v3(D.children[0])?D.children[0]:null;if(V){if(I=V.codegenNode,F&&Z)E3(I,Z,J)}else if(N)I=M9(J,X(L9),Z?g$([Z]):void 0,D.children,64,void 0,void 0,!0,void 0,!1);else{if(I=B[0].codegenNode,F&&Z)E3(I,Z,J);if(I.isBlock!==!H)if(I.isBlock)Y(i1),Y(q8(J.inSSR,I.isComponent));else Y(K8(J.inSSR,I.isComponent));if(I.isBlock=!H,I.isBlock)X(i1),X(q8(J.inSSR,I.isComponent));else X(K8(J.inSSR,I.isComponent))}if(W){let O=W8(MU(Q.parseResult,[OD("_cached")]));O.body=Lh([u$(["const _memo = (",W.exp,")"]),u$(["if (_cached && _cached.el",...G?[" && _cached.key === ",G]:[],` && ${J.helperString($V)}(_cached, _memo)) return _cached`]),u$(["const _item = ",I]),OD("_item.memo = _memo"),OD("return _item")]),U.arguments.push(O,OD("_cache"),OD(String(J.cached.length))),J.cached.push(null)}else U.arguments.push(W8(MU(Q.parseResult),I,!0))}})});function Ym(D,$,J,X){if(!$.exp){J.onError(mD(31,$.loc));return}let Y=$.forParseResult;if(!Y){J.onError(mD(32,$.loc));return}BV(Y,J);let{addIdentifiers:Q,removeIdentifiers:U,scopes:F}=J,{source:W,value:K,key:q,index:G}=Y,Z={type:11,loc:$.loc,source:W,valueAlias:K,keyAlias:q,objectIndexAlias:G,parseResult:Y,children:v9(D)?D.children:[D]};if(J.replaceNode(Z),F.vFor++,J.prefixIdentifiers)K&&Q(K),q&&Q(q),G&&Q(G);let H=X&&X(Z);return()=>{if(F.vFor--,J.prefixIdentifiers)K&&U(K),q&&U(q),G&&U(G);if(H)H()}}function BV(D,$){if(D.finalized)return;if($.prefixIdentifiers){if(D.source=q$(D.source,$),D.key)D.key=q$(D.key,$,!0);if(D.index)D.index=q$(D.index,$,!0);if(D.value)D.value=q$(D.value,$,!0)}D.finalized=!0}function MU({value:D,key:$,index:J},X=[]){return PGD([D,$,J,...X])}function PGD(D){let $=D.length;while($--)if(D[$])break;return D.slice(0,$+1).map((J,X)=>J||OD("_".repeat(X+1),!1))}var Gh=OD("undefined",!1),Qm=(D,$)=>{if(D.type===1&&(D.tagType===1||D.tagType===3)){let J=K$(D,"slot");if(J){let X=J.exp;if($.prefixIdentifiers)X&&$.addIdentifiers(X);return $.scopes.vSlot++,()=>{if($.prefixIdentifiers)X&&$.removeIdentifiers(X);$.scopes.vSlot--}}}},Um=(D,$)=>{let J;if(v9(D)&&D.props.some(iU)&&(J=K$(D,"for"))){let X=J.forParseResult;if(X){BV(X,$);let{value:Y,key:Q,index:U}=X,{addIdentifiers:F,removeIdentifiers:W}=$;return Y&&F(Y),Q&&F(Q),U&&F(U),()=>{Y&&W(Y),Q&&W(Q),U&&W(U)}}}},bGD=(D,$,J,X)=>W8(D,J,!1,!0,J.length?J[0].loc:X);function Fm(D,$,J=bGD){$.helper(yU);let{children:X,loc:Y}=D,Q=[],U=[],F=$.scopes.vSlot>0||$.scopes.vFor>0;if(!$.ssr&&$.prefixIdentifiers)F=D.props.some((B)=>iU(B)&&(c0(B.arg,$.identifiers)||c0(B.exp,$.identifiers)))||X.some((B)=>c0(B,$.identifiers));let W=K$(D,"slot",!0);if(W){let{arg:B,exp:N}=W;if(B&&!q6(B))F=!0;Q.push(V0(B||OD("default",!0),J(N,void 0,X,Y)))}let K=!1,q=!1,G=[],Z=new Set,H=0;for(let B=0;B<X.length;B++){let N=X[B],V;if(!v9(N)||!(V=K$(N,"slot",!0))){if(N.type!==3)G.push(N);continue}if(W){$.onError(mD(37,V.loc));break}K=!0;let{children:O,loc:j}=N,{arg:v=OD("default",!0),exp:A,loc:C}=V,u;if(q6(v))u=v?v.content:"default";else F=!0;let _=K$(N,"for"),y=J(A,_,O,j),E,d;if(E=K$(N,"if"))F=!0,U.push(jU(E.exp,ZU(v,y,H++),Gh));else if(d=K$(N,/^else(?:-if)?$/,!0)){let c=B,p;while(c--)if(p=X[c],!ZV(p))break;if(p&&v9(p)&&K$(p,/^(?:else-)?if$/)){let o=U[U.length-1];while(o.alternate.type===19)o=o.alternate;o.alternate=d.exp?jU(d.exp,ZU(v,y,H++),Gh):ZU(v,y,H++)}else $.onError(mD(30,d.loc))}else if(_){F=!0;let c=_.forParseResult;if(c)BV(c,$),U.push(f0($.helper(_U),[c.source,W8(MU(c),ZU(v,y),!0)]));else $.onError(mD(32,_.loc))}else{if(u){if(Z.has(u)){$.onError(mD(38,C));continue}if(Z.add(u),u==="default")q=!0}Q.push(V0(v,y))}}if(!W){let B=(N,V)=>{let O=J(N,void 0,V,Y);if($.compatConfig)O.isNonScopedSlot=!0;return V0("default",O)};if(!K)Q.push(B(void 0,X));else if(G.length&&!G.every(cU))if(q)$.onError(mD(39,G[0].loc));else Q.push(B(void 0,G))}let z=F?2:NU(D.children)?3:1,I=g$(Q.concat(V0("_",OD(z+` /* ${a.slotFlagsText[z]} */`,!1))),Y);if(U.length)I=f0($.helper(DV),[I,l1(U)]);return{slots:I,hasDynamicSlots:F}}function ZU(D,$,J){let X=[V0("name",D),V0("fn",$)];if(J!=null)X.push(V0("key",OD(String(J),!0)));return g$(X)}function NU(D){for(let $=0;$<D.length;$++){let J=D[$];switch(J.type){case 1:if(J.tagType===2||NU(J.children))return!0;break;case 9:if(NU(J.branches))return!0;break;case 10:case 11:if(NU(J.children))return!0;break}}return!1}var Wm=new WeakMap,Km=(D,$)=>{return function(){if(D=$.currentNode,!(D.type===1&&(D.tagType===0||D.tagType===1)))return;let{tag:X,props:Y}=D,Q=D.tagType===1,U=Q?qm(D,$):`"${X}"`,F=a.isObject(U)&&U.callee===bU,W,K,q=0,G,Z,H,z=F||U===j9||U===vU||!Q&&(X==="svg"||X==="foreignObject"||X==="math");if(Y.length>0){let I=OV(D,$,void 0,Q,F);W=I.props,q=I.patchFlag,Z=I.dynamicPropNames;let B=I.directives;if(H=B&&B.length?l1(B.map((N)=>Gm(N,$))):void 0,I.shouldUseBlock)z=!0}if(D.children.length>0){if(U===N3){if(z=!0,q|=1024,D.children.length>1)$.onError(mD(47,{start:D.children[0].loc.start,end:D.children[D.children.length-1].loc.end,source:""}))}if(Q&&U!==j9&&U!==N3){let{slots:B,hasDynamicSlots:N}=Fm(D,$);if(K=B,N)q|=1024}else if(D.children.length===1&&U!==j9){let B=D.children[0],N=B.type,V=N===5||N===8;if(V&&x$(B,$)===0)q|=1;if(V||N===2)K=B;else K=D.children}else K=D.children}if(Z&&Z.length)G=CGD(Z);D.codegenNode=M9($,U,W,K,q===0?void 0:q,G,H,!!z,!1,Q,D.loc)}};function qm(D,$,J=!1){let{tag:X}=D,Y=rN(X),Q=A3(D,"is",!1,!0);if(Q){if(Y||d1("COMPILER_IS_ON_ELEMENT",$)){let F;if(Q.type===6)F=Q.value&&OD(Q.value.content,!0);else if(F=Q.exp,!F)F=OD("is",!1,Q.arg.loc),F=Q.exp=q$(F,$);if(F)return f0($.helper(bU),[F])}else if(Q.type===6&&Q.value.content.startsWith("vue:"))X=Q.value.content.slice(4)}let U=UV(X)||$.isBuiltInComponent(X);if(U){if(!J)$.helper(U);return U}{let F=nN(X,$);if(F)return F;let W=X.indexOf(".");if(W>0){let K=nN(X.slice(0,W),$);if(K)return K+X.slice(W)}}if($.selfName&&a.capitalize(a.camelize(X))===$.selfName)return $.helper(V3),$.components.add(X+"__self"),G8(X,"component");return $.helper(V3),$.components.add(X),G8(X,"component")}function nN(D,$){let J=$.bindingMetadata;if(!J||J.__isScriptSetup===!1)return;let X=a.camelize(D),Y=a.capitalize(X),Q=(K)=>{if(J[D]===K)return D;if(J[X]===K)return X;if(J[Y]===K)return Y},U=Q("setup-const")||Q("setup-reactive-const")||Q("literal-const");if(U)return $.inline?U:`$setup[${JSON.stringify(U)}]`;let F=Q("setup-let")||Q("setup-ref")||Q("setup-maybe-ref");if(F)return $.inline?`${$.helperString(L3)}(${F})`:`$setup[${JSON.stringify(F)}]`;let W=Q("props");if(W)return`${$.helperString(L3)}(${$.inline?"__props":"$props"}[${JSON.stringify(W)}])`}function OV(D,$,J=D.props,X,Y,Q=!1){let{tag:U,loc:F,children:W}=D,K=[],q=[],G=[],Z=W.length>0,H=!1,z=0,I=!1,B=!1,N=!1,V=!1,O=!1,j=!1,v=[],A=(y)=>{if(K.length)q.push(g$(Zh(K),F)),K=[];if(y)q.push(y)},C=()=>{if($.scopes.vFor>0)K.push(V0(OD("ref_for",!0),OD("true")))},u=({key:y,value:E})=>{if(q6(y)){let d=y.content,c=a.isOn(d);if(c&&(!X||Y)&&d.toLowerCase()!=="onclick"&&d!=="onUpdate:modelValue"&&!a.isReservedProp(d))V=!0;if(c&&a.isReservedProp(d))j=!0;if(c&&E.type===14)E=E.arguments[0];if(E.type===20||(E.type===4||E.type===8)&&x$(E,$)>0)return;if(d==="ref")I=!0;else if(d==="class")B=!0;else if(d==="style")N=!0;else if(d!=="key"&&!v.includes(d))v.push(d);if(X&&(d==="class"||d==="style")&&!v.includes(d))v.push(d)}else O=!0};for(let y=0;y<J.length;y++){let E=J[y];if(E.type===6){let{loc:d,name:c,nameLoc:p,value:o}=E,R=!0;if(c==="ref"){if(I=!0,C(),o&&$.inline){let w=$.bindingMetadata[o.content];if(w==="setup-let"||w==="setup-ref"||w==="setup-maybe-ref")R=!1,K.push(V0(OD("ref_key",!0),OD(o.content,!0,o.loc)))}}if(c==="is"&&(rN(U)||o&&o.content.startsWith("vue:")||d1("COMPILER_IS_ON_ELEMENT",$)))continue;K.push(V0(OD(c,!0,p),OD(o?o.content:"",R,o?o.loc:d)))}else{let{name:d,arg:c,exp:p,loc:o,modifiers:R}=E,w=d==="bind",L=d==="on";if(d==="slot"){if(!X)$.onError(mD(40,o));continue}if(d==="once"||d==="memo")continue;if(d==="is"||w&&m1(c,"is")&&(rN(U)||d1("COMPILER_IS_ON_ELEMENT",$)))continue;if(L&&Q)continue;if(w&&m1(c,"key")||L&&Z&&m1(c,"vue:before-update"))H=!0;if(w&&m1(c,"ref"))C();if(!c&&(w||L)){if(O=!0,p)if(w){{if(A(),q.some((x)=>{if(x.type===15)return x.properties.some(({key:s})=>{if(s.type!==4||!s.isStatic)return!0;return s.content!=="class"&&s.content!=="style"&&!a.isOn(s.content)});else return!0}))A9("COMPILER_V_BIND_OBJECT_ORDER",$,o);if(d1("COMPILER_V_BIND_OBJECT_ORDER",$)){q.unshift(p);continue}}C(),A(),q.push(p)}else A({type:14,loc:o,callee:$.helper(fU),arguments:X?[p]:[p,"true"]});else $.onError(mD(w?34:35,o));continue}if(w&&R.some((f)=>f.content==="prop"))z|=32;let P=$.directiveTransforms[d];if(P){let{props:f,needRuntime:x}=P(E,D,$);if(!Q&&f.forEach(u),L&&c&&!q6(c))A(g$(f,F));else K.push(...f);if(x){if(G.push(E),a.isSymbol(x))Wm.set(E,x)}}else if(!a.isBuiltInDirective(d)){if(G.push(E),Z)H=!0}}}let _=void 0;if(q.length)if(A(),q.length>1)_=f0($.helper(w3),q,F);else _=q[0];else if(K.length)_=g$(Zh(K),F);if(O)z|=16;else{if(B&&!X)z|=2;if(N&&!X)z|=4;if(v.length)z|=8;if(V)z|=32}if(!H&&(z===0||z===32)&&(I||j||G.length>0))z|=512;if(!$.inSSR&&_)switch(_.type){case 15:let y=-1,E=-1,d=!1;for(let o=0;o<_.properties.length;o++){let R=_.properties[o].key;if(q6(R)){if(R.content==="class")y=o;else if(R.content==="style")E=o}else if(!R.isHandlerKey)d=!0}let c=_.properties[y],p=_.properties[E];if(!d){if(c&&!q6(c.value))c.value=f0($.helper(gU),[c.value]);if(p&&(N||p.value.type===4&&p.value.content.trim()[0]==="["||p.value.type===17))p.value=f0($.helper(xU),[p.value])}else _=f0($.helper(R9),[_]);break;case 14:break;default:_=f0($.helper(R9),[f0($.helper(T9),[_])]);break}return{props:_,directives:G,patchFlag:z,dynamicPropNames:v,shouldUseBlock:H}}function Zh(D){let $=new Map,J=[];for(let X=0;X<D.length;X++){let Y=D[X];if(Y.key.type===8||!Y.key.isStatic){J.push(Y);continue}let Q=Y.key.content,U=$.get(Q);if(U){if(Q==="style"||Q==="class"||a.isOn(Q))SGD(U,Y)}else $.set(Q,Y),J.push(Y)}return J}function SGD(D,$){if(D.value.type===17)D.value.elements.push($.value);else D.value=l1([D.value,$.value],D.loc)}function Gm(D,$){let J=[],X=Wm.get(D);if(X)J.push($.helperString(X));else{let Q=nN("v-"+D.name,$);if(Q)J.push(Q);else $.helper(SU),$.directives.add(D.name),J.push(G8(D.name,"directive"))}let{loc:Y}=D;if(D.exp)J.push(D.exp);if(D.arg){if(!D.exp)J.push("void 0");J.push(D.arg)}if(Object.keys(D.modifiers).length){if(!D.arg){if(!D.exp)J.push("void 0");J.push("void 0")}let Q=OD("true",!1,Y);J.push(g$(D.modifiers.map((U)=>V0(U,Q)),Y))}return l1(J,D.loc)}function CGD(D){let $="[";for(let J=0,X=D.length;J<X;J++)if($+=JSON.stringify(D[J]),J<X-1)$+=", ";return $+"]"}function rN(D){return D==="component"||D==="Component"}var kGD=(D,$)=>{if(v3(D)){let{children:J,loc:X}=D,{slotName:Y,slotProps:Q}=Zm(D,$),U=[$.prefixIdentifiers?"_ctx.$slots":"$slots",Y,"{}","undefined","true"],F=2;if(Q)U[2]=Q,F=3;if(J.length)U[3]=W8([],J,!1,!1,X),F=4;if($.scopeId&&!$.slotted)F=5;U.splice(F),D.codegenNode=f0($.helper(eN),U,X)}};function Zm(D,$){let J='"default"',X=void 0,Y=[];for(let Q=0;Q<D.props.length;Q++){let U=D.props[Q];if(U.type===6){if(U.value)if(U.name==="name")J=JSON.stringify(U.value.content);else U.name=a.camelize(U.name),Y.push(U)}else if(U.name==="bind"&&m1(U.arg,"name")){if(U.exp)J=U.exp;else if(U.arg&&U.arg.type===4){let F=a.camelize(U.arg.content);J=U.exp=OD(F,!1,U.arg.loc),J=U.exp=q$(U.exp,$)}}else{if(U.name==="bind"&&U.arg&&q6(U.arg))U.arg.content=a.camelize(U.arg.content);Y.push(U)}}if(Y.length>0){let{props:Q,directives:U}=OV(D,$,Y,!1,!1);if(X=Q,U.length)$.onError(mD(36,U[0].loc))}return{slotName:J,slotProps:X}}var zm=(D,$,J,X)=>{let{loc:Y,modifiers:Q,arg:U}=D;if(!D.exp&&!Q.length)J.onError(mD(35,Y));let F;if(U.type===4)if(U.isStatic){let G=U.content;if(G.startsWith("vnode"))J.onError(mD(52,U.loc));if(G.startsWith("vue:"))G=`vnode-${G.slice(4)}`;let Z=$.tagType!==0||G.startsWith("vnode")||!/[A-Z]/.test(G)?a.toHandlerKey(a.camelize(G)):`on:${G}`;F=OD(Z,!0,U.loc)}else F=u$([`${J.helperString(wU)}(`,U,")"]);else F=U,F.children.unshift(`${J.helperString(wU)}(`),F.children.push(")");let W=D.exp;if(W&&!W.content.trim())W=void 0;let K=J.cacheHandlers&&!W&&!J.inVOnce;if(W){let G=WV(W,J),Z=!(G||xh(W,J)),H=W.content.includes(";");if(J.prefixIdentifiers){if(Z&&J.addIdentifiers("$event"),W=D.exp=q$(W,J,!1,H),Z&&J.removeIdentifiers("$event"),K=J.cacheHandlers&&!J.inVOnce&&!(W.type===4&&W.constType>0)&&!(G&&$.tagType===1)&&!c0(W,J.identifiers),K&&G)if(W.type===4)W.content=`${W.content} && ${W.content}(...args)`;else W.children=[...W.children," && ",...W.children,"(...args)"]}if(Z||K&&G)W=u$([`${Z?J.isTS?"($event: any)":"$event":`${J.isTS?`
//@ts-ignore
`:""}(...args)`} => ${H?"{":"("}`,W,H?"}":")"])}let q={props:[V0(F,W||OD("() => {}",!1,Y))]};if(X)q=X(q);if(K)q.props[0].value=J.cache(q.props[0].value);return q.props.forEach((G)=>G.key.isHandlerKey=!0),q},Hm=(D,$,J)=>{let{modifiers:X,loc:Y}=D,Q=D.arg,{exp:U}=D;if(U&&U.type===4&&!U.content.trim())return J.onError(mD(34,Y)),{props:[V0(Q,OD("",!0,Y))]};if(Q.type!==4)Q.children.unshift("("),Q.children.push(') || ""');else if(!Q.isStatic)Q.content=Q.content?`${Q.content} || ""`:'""';if(X.some((F)=>F.content==="camel"))if(Q.type===4)if(Q.isStatic)Q.content=a.camelize(Q.content);else Q.content=`${J.helperString(VU)}(${Q.content})`;else Q.children.unshift(`${J.helperString(VU)}(`),Q.children.push(")");if(!J.inSSR){if(X.some((F)=>F.content==="prop"))zh(Q,".");if(X.some((F)=>F.content==="attr"))zh(Q,"^")}return{props:[V0(Q,U)]}},zh=(D,$)=>{if(D.type===4)if(D.isStatic)D.content=$+D.content;else D.content=`\`${$}\${${D.content}}\``;else D.children.unshift(`'${$}' + (`),D.children.push(")")},_GD=(D,$)=>{if(D.type===0||D.type===1||D.type===11||D.type===10)return()=>{let J=D.children,X=void 0,Y=!1;for(let Q=0;Q<J.length;Q++){let U=J[Q];if(zU(U)){Y=!0;for(let F=Q+1;F<J.length;F++){let W=J[F];if(zU(W)){if(!X)X=J[Q]=u$([U],U.loc);X.children.push(" + ",W),J.splice(F,1),F--}else{X=void 0;break}}}}if(!Y||J.length===1&&(D.type===0||D.type===1&&D.tagType===0&&!D.props.find((Q)=>Q.type===7&&!$.directiveTransforms[Q.name])&&D.tag!=="template"))return;for(let Q=0;Q<J.length;Q++){let U=J[Q];if(zU(U)||U.type===8){let F=[];if(U.type!==2||U.content!==" ")F.push(U);if(!$.ssr&&x$(U,$)===0)F.push(`1 /* ${a.PatchFlagNames[1]} */`);J[Q]={type:12,content:U,loc:U.loc,codegenNode:f0($.helper(PU),F)}}}}},Hh=new WeakSet,uGD=(D,$)=>{if(D.type===1&&K$(D,"once",!0)){if(Hh.has(D)||$.inVOnce||$.inSSR)return;return Hh.add(D),$.inVOnce=!0,$.helper(j3),()=>{$.inVOnce=!1;let J=$.currentNode;if(J.codegenNode)J.codegenNode=$.cache(J.codegenNode,!0,!0)}}},Im=(D,$,J)=>{let{exp:X,arg:Y}=D;if(!X)return J.onError(mD(41,D.loc)),N9();let Q=X.loc.source.trim(),U=X.type===4?X.content:Q,F=J.bindingMetadata[Q];if(F==="props"||F==="props-aliased")return J.onError(mD(44,X.loc)),N9();if(F==="literal-const"||F==="setup-const")return J.onError(mD(45,X.loc)),N9();let W=J.inline&&(F==="setup-let"||F==="setup-ref"||F==="setup-maybe-ref");if(!U.trim()||!WV(X,J)&&!W)return J.onError(mD(42,X.loc)),N9();if(J.prefixIdentifiers&&s6(U)&&J.identifiers[U])return J.onError(mD(43,X.loc)),N9();let K=Y?Y:OD("modelValue",!0),q=Y?q6(Y)?`onUpdate:${a.camelize(Y.content)}`:u$(['"onUpdate:" + ',Y]):"onUpdate:modelValue",G,Z=J.isTS?"($event: any)":"$event";if(W)if(F==="setup-ref")G=u$([`${Z} => ((`,OD(Q,!1,X.loc),").value = $event)"]);else{let z=F==="setup-let"?`${Q} = $event`:"null";G=u$([`${Z} => (${J.helperString(R3)}(${Q}) ? (`,OD(Q,!1,X.loc),`).value = $event : ${z})`])}else G=u$([`${Z} => ((`,X,") = $event)"]);let H=[V0(K,D.exp),V0(q,G)];if(J.prefixIdentifiers&&!J.inVOnce&&J.cacheHandlers&&!c0(X,J.identifiers))H[1].value=J.cache(H[1].value);if(D.modifiers.length&&$.tagType===1){let z=D.modifiers.map((B)=>B.content).map((B)=>(s6(B)?B:JSON.stringify(B))+": true").join(", "),I=Y?q6(Y)?`${Y.content}Modifiers`:u$([Y,' + "Modifiers"']):"modelModifiers";H.push(V0(I,OD(`{ ${z} }`,!1,D.loc,2)))}return N9(H)};function N9(D=[]){return{props:D}}var gGD=/[\w).+\-_$\]]/,xGD=(D,$)=>{if(!d1("COMPILER_FILTERS",$))return;if(D.type===5)AU(D.content,$);else if(D.type===1)D.props.forEach((J)=>{if(J.type===7&&J.name!=="for"&&J.exp)AU(J.exp,$)})};function AU(D,$){if(D.type===4)Ih(D,$);else for(let J=0;J<D.children.length;J++){let X=D.children[J];if(typeof X!=="object")continue;if(X.type===4)Ih(X,$);else if(X.type===8)AU(X,$);else if(X.type===5)AU(X.content,$)}}function Ih(D,$){let J=D.content,X=!1,Y=!1,Q=!1,U=!1,F=0,W=0,K=0,q=0,G,Z,H,z,I=[];for(H=0;H<J.length;H++)if(Z=G,G=J.charCodeAt(H),X){if(G===39&&Z!==92)X=!1}else if(Y){if(G===34&&Z!==92)Y=!1}else if(Q){if(G===96&&Z!==92)Q=!1}else if(U){if(G===47&&Z!==92)U=!1}else if(G===124&&J.charCodeAt(H+1)!==124&&J.charCodeAt(H-1)!==124&&!F&&!W&&!K)if(z===void 0)q=H+1,z=J.slice(0,H).trim();else B();else{switch(G){case 34:Y=!0;break;case 39:X=!0;break;case 96:Q=!0;break;case 40:K++;break;case 41:K--;break;case 91:W++;break;case 93:W--;break;case 123:F++;break;case 125:F--;break}if(G===47){let N=H-1,V;for(;N>=0;N--)if(V=J.charAt(N),V!==" ")break;if(!V||!gGD.test(V))U=!0}}if(z===void 0)z=J.slice(0,H).trim();else if(q!==0)B();function B(){I.push(J.slice(q,H).trim()),q=H+1}if(I.length){M3("COMPILER_FILTERS",$,D.loc);for(H=0;H<I.length;H++)z=fGD(z,I[H],$);D.content=z,D.ast=void 0}}function fGD(D,$,J){J.helper(CU);let X=$.indexOf("(");if(X<0)return J.filters.add($),`${G8($,"filter")}(${D})`;else{let Y=$.slice(0,X),Q=$.slice(X+1);return J.filters.add(Y),`${G8(Y,"filter")}(${D}${Q!==")"?","+Q:Q}`}}var Bh=new WeakSet,yGD=(D,$)=>{if(D.type===1){let J=K$(D,"memo");if(!J||Bh.has(D)||$.inSSR)return;return Bh.add(D),()=>{let X=D.codegenNode||$.currentNode.codegenNode;if(X&&X.type===13){if(D.tagType!==1)mU(X,$);D.codegenNode=f0($.helper(hU),[J.exp,W8(void 0,X),"_cache",String($.cached.length)]),$.cached.push(null)}}}},Bm=(D,$)=>{if(D.type===1){for(let J of D.props)if(J.type===7&&J.name==="bind"&&(!J.exp||!1)&&J.arg){let X=J.arg;if(X.type!==4||!X.isStatic)$.onError(mD(53,X.loc)),J.exp=OD("",!0,X.loc);else{let Y=a.camelize(X.content);if(FV.test(Y[0])||Y[0]==="-")J.exp=OD(Y,!1,X.loc)}}}};function Om(D){return[[Bm,uGD,AGD,yGD,TGD,xGD,...D?[Um,Jm]:[],kGD,Km,Qm,_GD],{on:zm,bind:Hm,model:Im}]}function hGD(D,$={}){let J=$.onError||JV,X=$.mode==="module",Y=$.prefixIdentifiers===!0||X;if(!Y&&$.cacheHandlers)J(mD(50));if($.scopeId&&!X)J(mD(51));let Q=a.extend({},$,{prefixIdentifiers:Y}),U=a.isString(D)?ih(D,Q):D,[F,W]=Om(Y);if($.isTS){let{expressionPlugins:K}=$;if(!K||!K.includes("typescript"))$.expressionPlugins=[...K||[],"typescript"]}return oh(U,a.extend({},Q,{nodeTransforms:[...F,...$.nodeTransforms||[]],directiveTransforms:a.extend({},W,$.directiveTransforms||{})})),ah(U,Q)}var mGD={DATA:"data",PROPS:"props",PROPS_ALIASED:"props-aliased",SETUP_LET:"setup-let",SETUP_CONST:"setup-const",SETUP_REACTIVE_CONST:"setup-reactive-const",SETUP_MAYBE_REF:"setup-maybe-ref",SETUP_REF:"setup-ref",OPTIONS:"options",LITERAL_CONST:"literal-const"},lGD=()=>({props:[]});Nm.generateCodeFrame=a.generateCodeFrame;Nm.BASE_TRANSITION=tN;Nm.BindingTypes=mGD;Nm.CAMELIZE=VU;Nm.CAPITALIZE=Oh;Nm.CREATE_BLOCK=oN;Nm.CREATE_COMMENT=E9;Nm.CREATE_ELEMENT_BLOCK=aN;Nm.CREATE_ELEMENT_VNODE=TU;Nm.CREATE_SLOTS=DV;Nm.CREATE_STATIC=sN;Nm.CREATE_TEXT=PU;Nm.CREATE_VNODE=EU;Nm.CompilerDeprecationTypes=PqD;Nm.ConstantTypes=LqD;Nm.ElementTypes=jqD;Nm.ErrorCodes=SqD;Nm.FRAGMENT=L9;Nm.GUARD_REACTIVE_PROPS=T9;Nm.IS_MEMO_SAME=$V;Nm.IS_REF=R3;Nm.KEEP_ALIVE=N3;Nm.MERGE_PROPS=w3;Nm.NORMALIZE_CLASS=gU;Nm.NORMALIZE_PROPS=R9;Nm.NORMALIZE_STYLE=xU;Nm.Namespaces=VqD;Nm.NodeTypes=wqD;Nm.OPEN_BLOCK=i1;Nm.POP_SCOPE_ID=Vh;Nm.PUSH_SCOPE_ID=Nh;Nm.RENDER_LIST=_U;Nm.RENDER_SLOT=eN;Nm.RESOLVE_COMPONENT=V3;Nm.RESOLVE_DIRECTIVE=SU;Nm.RESOLVE_DYNAMIC_COMPONENT=bU;Nm.RESOLVE_FILTER=CU;Nm.SET_BLOCK_TRACKING=j3;Nm.SUSPENSE=vU;Nm.TELEPORT=j9;Nm.TO_DISPLAY_STRING=uU;Nm.TO_HANDLERS=fU;Nm.TO_HANDLER_KEY=wU;Nm.TS_NODE_TYPES=QV;Nm.UNREF=L3;Nm.WITH_CTX=yU;Nm.WITH_DIRECTIVES=kU;Nm.WITH_MEMO=hU;Nm.advancePositionWithClone=mN;Nm.advancePositionWithMutation=KV;Nm.assert=lN;Nm.baseCompile=hGD;Nm.baseParse=ih;Nm.buildDirectiveArgs=Gm;Nm.buildProps=OV;Nm.buildSlots=Fm;Nm.checkCompatEnabled=A9;Nm.convertToBlock=mU;Nm.createArrayExpression=l1;Nm.createAssignmentExpression=vqD;Nm.createBlockStatement=Lh;Nm.createCacheExpression=jh;Nm.createCallExpression=f0;Nm.createCompilerError=mD;Nm.createCompoundExpression=u$;Nm.createConditionalExpression=jU;Nm.createForLoopParams=MU;Nm.createFunctionExpression=W8;Nm.createIfStatement=AqD;Nm.createInterpolation=RqD;Nm.createObjectExpression=g$;Nm.createObjectProperty=V0;Nm.createReturnStatement=TqD;Nm.createRoot=wh;Nm.createSequenceExpression=EqD;Nm.createSimpleExpression=OD;Nm.createStructuralDirectiveTransform=HV;Nm.createTemplateLiteral=MqD;Nm.createTransformContext=th;Nm.createVNodeCall=M9;Nm.errorMessages=Ah;Nm.extractIdentifiers=K6;Nm.findDir=K$;Nm.findProp=A3;Nm.forAliasRE=yh;Nm.generate=ah;Nm.getBaseTransformPreset=Om;Nm.getConstantType=x$;Nm.getMemoedVNodeCall=fh;Nm.getVNodeBlockHelper=q8;Nm.getVNodeHelper=K8;Nm.hasDynamicKeyVBind=yqD;Nm.hasScopeRef=c0;Nm.helperNameMap=w$;Nm.injectProp=E3;Nm.isAllWhitespace=GV;Nm.isCommentOrWhitespace=ZV;Nm.isCoreComponent=UV;Nm.isFnExpression=xh;Nm.isFnExpressionBrowser=fqD;Nm.isFnExpressionNode=gh;Nm.isFunctionType=kh;Nm.isInDestructureAssignment=RU;Nm.isInNewExpression=Th;Nm.isMemberExpression=WV;Nm.isMemberExpressionBrowser=gqD;Nm.isMemberExpressionNode=uh;Nm.isReferencedIdentifier=Eh;Nm.isSimpleIdentifier=s6;Nm.isSlotOutlet=v3;Nm.isStaticArgOf=m1;Nm.isStaticExp=q6;Nm.isStaticProperty=YV;Nm.isStaticPropertyKey=_h;Nm.isTemplateNode=v9;Nm.isText=zU;Nm.isVPre=dN;Nm.isVSlot=iU;Nm.isWhitespaceText=cU;Nm.locStub=w0;Nm.noopDirectiveTransform=lGD;Nm.processExpression=q$;Nm.processFor=Ym;Nm.processIf=Xm;Nm.processSlotOutlet=Zm;Nm.registerRuntimeHelpers=NqD;Nm.resolveComponentType=qm;Nm.stringifyExpression=IV;Nm.toValidAssetId=G8;Nm.trackSlotScopes=Qm;Nm.trackVForSlotScopes=Um;Nm.transform=oh;Nm.transformBind=Hm;Nm.transformElement=Km;Nm.transformExpression=Jm;Nm.transformModel=Im;Nm.transformOn=zm;Nm.transformVBindShorthand=Bm;Nm.traverseNode=P3;Nm.unwrapTSNode=lU;Nm.validFirstIdentCharRE=FV;Nm.walkBlockDeclarations=XV;Nm.walkFunctionParams=Ph;Nm.walkIdentifiers=vh;Nm.warnDeprecation=M3});var Cm=k((tU)=>{Object.defineProperty(tU,"__esModule",{value:!0});var jD=Vm(),TD=rO(),NV=Symbol("vModelRadio"),VV=Symbol("vModelCheckbox"),wV=Symbol("vModelText"),jV=Symbol("vModelSelect"),rU=Symbol("vModelDynamic"),LV=Symbol("vOnModifiersGuard"),RV=Symbol("vOnKeysGuard"),MV=Symbol("vShow"),oU=Symbol("Transition"),AV=Symbol("TransitionGroup");jD.registerRuntimeHelpers({[NV]:"vModelRadio",[VV]:"vModelCheckbox",[wV]:"vModelText",[jV]:"vModelSelect",[rU]:"vModelDynamic",[LV]:"withModifiers",[RV]:"withKeys",[MV]:"vShow",[oU]:"Transition",[AV]:"TransitionGroup"});var vV={parseMode:"html",isVoidTag:TD.isVoidTag,isNativeTag:(D)=>TD.isHTMLTag(D)||TD.isSVGTag(D)||TD.isMathMLTag(D),isPreTag:(D)=>D==="pre",isIgnoreNewlineTag:(D)=>D==="pre"||D==="textarea",decodeEntities:void 0,isBuiltInComponent:(D)=>{if(D==="Transition"||D==="transition")return oU;else if(D==="TransitionGroup"||D==="transition-group")return AV},getNamespace(D,$,J){let X=$?$.ns:J;if($&&X===2){if($.tag==="annotation-xml"){if(D==="svg")return 1;if($.props.some((Y)=>Y.type===6&&Y.name==="encoding"&&Y.value!=null&&(Y.value.content==="text/html"||Y.value.content==="application/xhtml+xml")))X=0}else if(/^m(?:[ions]|text)$/.test($.tag)&&D!=="mglyph"&&D!=="malignmark")X=0}else if($&&X===1){if($.tag==="foreignObject"||$.tag==="desc"||$.tag==="title")X=0}if(X===0){if(D==="svg")return 1;if(D==="math")return 2}return X}},vm=(D)=>{if(D.type===1)D.props.forEach(($,J)=>{if($.type===6&&$.name==="style"&&$.value)D.props[J]={type:7,name:"bind",arg:jD.createSimpleExpression("style",!0,$.loc),exp:vHD($.value.content,$.loc),modifiers:[],loc:$.loc}})},vHD=(D,$)=>{let J=TD.parseStringStyle(D);return jD.createSimpleExpression(JSON.stringify(J),!1,$,3)};function t$(D,$){return jD.createCompilerError(D,$,Em)}var EHD={X_V_HTML_NO_EXPRESSION:54,"54":"X_V_HTML_NO_EXPRESSION",X_V_HTML_WITH_CHILDREN:55,"55":"X_V_HTML_WITH_CHILDREN",X_V_TEXT_NO_EXPRESSION:56,"56":"X_V_TEXT_NO_EXPRESSION",X_V_TEXT_WITH_CHILDREN:57,"57":"X_V_TEXT_WITH_CHILDREN",X_V_MODEL_ON_INVALID_ELEMENT:58,"58":"X_V_MODEL_ON_INVALID_ELEMENT",X_V_MODEL_ARG_ON_ELEMENT:59,"59":"X_V_MODEL_ARG_ON_ELEMENT",X_V_MODEL_ON_FILE_INPUT_ELEMENT:60,"60":"X_V_MODEL_ON_FILE_INPUT_ELEMENT",X_V_MODEL_UNNECESSARY_VALUE:61,"61":"X_V_MODEL_UNNECESSARY_VALUE",X_V_SHOW_NO_EXPRESSION:62,"62":"X_V_SHOW_NO_EXPRESSION",X_TRANSITION_INVALID_CHILDREN:63,"63":"X_TRANSITION_INVALID_CHILDREN",X_IGNORED_SIDE_EFFECT_TAG:64,"64":"X_IGNORED_SIDE_EFFECT_TAG",__EXTEND_POINT__:65,"65":"__EXTEND_POINT__"},Em={[54]:"v-html is missing expression.",[55]:"v-html will override element children.",[56]:"v-text is missing expression.",[57]:"v-text will override element children.",[58]:"v-model can only be used on <input>, <textarea> and <select> elements.",[59]:"v-model argument is not supported on plain elements.",[60]:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",[61]:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",[62]:"v-show is missing expression.",[63]:"<Transition> expects exactly one child element or component.",[64]:"Tags with side effect (<script> and <style>) are ignored in client component templates."},THD=(D,$,J)=>{let{exp:X,loc:Y}=D;if(!X)J.onError(t$(54,Y));if($.children.length)J.onError(t$(55,Y)),$.children.length=0;return{props:[jD.createObjectProperty(jD.createSimpleExpression("innerHTML",!0,Y),X||jD.createSimpleExpression("",!0))]}},PHD=(D,$,J)=>{let{exp:X,loc:Y}=D;if(!X)J.onError(t$(56,Y));if($.children.length)J.onError(t$(57,Y)),$.children.length=0;return{props:[jD.createObjectProperty(jD.createSimpleExpression("textContent",!0),X?jD.getConstantType(X,J)>0?X:jD.createCallExpression(J.helperString(jD.TO_DISPLAY_STRING),[X],Y):jD.createSimpleExpression("",!0))]}},bHD=(D,$,J)=>{let X=jD.transformModel(D,$,J);if(!X.props.length||$.tagType===1)return X;if(D.arg)J.onError(t$(59,D.arg.loc));function Y(){let F=jD.findDir($,"bind");if(F&&jD.isStaticArgOf(F.arg,"value"))J.onError(t$(61,F.loc))}let{tag:Q}=$,U=J.isCustomElement(Q);if(Q==="input"||Q==="textarea"||Q==="select"||U){let F=wV,W=!1;if(Q==="input"||U){let K=jD.findProp($,"type");if(K){if(K.type===7)F=rU;else if(K.value)switch(K.value.content){case"radio":F=NV;break;case"checkbox":F=VV;break;case"file":W=!0,J.onError(t$(60,D.loc));break;default:Y();break}}else if(jD.hasDynamicKeyVBind($))F=rU;else Y()}else if(Q==="select")F=jV;else Y();if(!W)X.needRuntime=J.helper(F)}else J.onError(t$(58,D.loc));return X.props=X.props.filter((F)=>!(F.key.type===4&&F.key.content==="modelValue")),X},SHD=TD.makeMap("passive,once,capture"),CHD=TD.makeMap("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),kHD=TD.makeMap("left,right"),Tm=TD.makeMap("onkeyup,onkeydown,onkeypress"),_HD=(D,$,J,X)=>{let Y=[],Q=[],U=[];for(let F=0;F<$.length;F++){let W=$[F].content;if(W==="native"&&jD.checkCompatEnabled("COMPILER_V_ON_NATIVE",J,X))U.push(W);else if(SHD(W))U.push(W);else if(kHD(W))if(jD.isStaticExp(D))if(Tm(D.content.toLowerCase()))Y.push(W);else Q.push(W);else Y.push(W),Q.push(W);else if(CHD(W))Q.push(W);else Y.push(W)}return{keyModifiers:Y,nonKeyModifiers:Q,eventOptionModifiers:U}},wm=(D,$)=>{return jD.isStaticExp(D)&&D.content.toLowerCase()==="onclick"?jD.createSimpleExpression($,!0):D.type!==4?jD.createCompoundExpression(["(",D,`) === "onClick" ? "${$}" : (`,D,")"]):D},uHD=(D,$,J)=>{return jD.transformOn(D,$,J,(X)=>{let{modifiers:Y}=D;if(!Y.length)return X;let{key:Q,value:U}=X.props[0],{keyModifiers:F,nonKeyModifiers:W,eventOptionModifiers:K}=_HD(Q,Y,J,D.loc);if(W.includes("right"))Q=wm(Q,"onContextmenu");if(W.includes("middle"))Q=wm(Q,"onMouseup");if(W.length)U=jD.createCallExpression(J.helper(LV),[U,JSON.stringify(W)]);if(F.length&&(!jD.isStaticExp(Q)||Tm(Q.content.toLowerCase())))U=jD.createCallExpression(J.helper(RV),[U,JSON.stringify(F)]);if(K.length){let q=K.map(TD.capitalize).join("");Q=jD.isStaticExp(Q)?jD.createSimpleExpression(`${Q.content}${q}`,!0):jD.createCompoundExpression(["(",Q,`) + "${q}"`])}return{props:[jD.createObjectProperty(Q,U)]}})},gHD=(D,$,J)=>{let{exp:X,loc:Y}=D;if(!X)J.onError(t$(62,Y));return{props:[],needRuntime:J.helper(MV)}},xHD=(D,$)=>{if(D.type===1&&D.tagType===1){if($.isBuiltInComponent(D.tag)===oU)return()=>{if(!D.children.length)return;if(Pm(D))$.onError(t$(63,{start:D.children[0].loc.start,end:D.children[D.children.length-1].loc.end,source:""}));let X=D.children[0];if(X.type===1){for(let Y of X.props)if(Y.type===7&&Y.name==="show")D.props.push({type:6,name:"persisted",nameLoc:D.loc,value:void 0,loc:D.loc})}}}};function Pm(D){let $=D.children=D.children.filter((X)=>!jD.isCommentOrWhitespace(X)),J=$[0];return $.length!==1||J.type===11||J.type===9&&J.branches.some(Pm)}var fHD=/__VUE_EXP_START__(.*?)__VUE_EXP_END__/g,yHD=(D,$,J)=>{if($.scopes.vSlot>0)return;let X=J.type===1&&J.codegenNode&&J.codegenNode.type===13&&J.codegenNode.children&&!TD.isArray(J.codegenNode.children)&&J.codegenNode.children.type===20,Y=0,Q=0,U=[],F=(K)=>{if(Y>=20||Q>=5){let q=jD.createCallExpression($.helper(jD.CREATE_STATIC),[JSON.stringify(U.map((Z)=>EV(Z,$)).join("")).replace(fHD,'" + $1 + "'),String(U.length)]),G=U.length-1;if(X)D.splice(K-U.length,U.length,q);else if(U[0].codegenNode.value=q,U.length>1){D.splice(K-U.length+1,G);let Z=$.cached.indexOf(U[U.length-1].codegenNode);if(Z>-1){for(let H=Z;H<$.cached.length;H++){let z=$.cached[H];if(z)z.index-=G}$.cached.splice(Z-G+1,G)}}return G}return 0},W=0;for(;W<D.length;W++){let K=D[W];if(X||hHD(K)){let G=dHD(K);if(G){Y+=G[0],Q+=G[1],U.push(K);continue}}W-=F(W),Y=0,Q=0,U.length=0}F(W)},hHD=(D)=>{if((D.type===1&&D.tagType===0||D.type===12)&&D.codegenNode&&D.codegenNode.type===20)return D.codegenNode},mHD=/^(?:data|aria)-/,jm=(D,$)=>{return($===0?TD.isKnownHtmlAttr(D):$===1?TD.isKnownSvgAttr(D):$===2?TD.isKnownMathMLAttr(D):!1)||mHD.test(D)},lHD=TD.makeMap("caption,thead,tr,th,tbody,td,tfoot,colgroup,col");function dHD(D){if(D.type===1&&lHD(D.tag))return!1;if(D.type===1&&jD.findDir(D,"once",!0))return!1;if(D.type===12)return[1,0];let $=1,J=D.props.length>0?1:0,X=!1,Y=()=>{return X=!0,!1};function Q(U){let F=U.tag==="option"&&U.ns===0;for(let W=0;W<U.props.length;W++){let K=U.props[W];if(K.type===6&&!jm(K.name,U.ns))return Y();if(K.type===7&&K.name==="bind"){if(K.arg&&(K.arg.type===8||K.arg.isStatic&&!jm(K.arg.content,U.ns)))return Y();if(K.exp&&(K.exp.type===8||K.exp.constType<3))return Y();if(F&&jD.isStaticArgOf(K.arg,"value")&&K.exp&&!K.exp.isStatic)return Y()}}for(let W=0;W<U.children.length;W++){$++;let K=U.children[W];if(K.type===1){if(K.props.length>0)J++;if(Q(K),X)return!1}}return!0}return Q(D)?[$,J]:!1}function EV(D,$){if(TD.isString(D))return D;if(TD.isSymbol(D))return"";switch(D.type){case 1:return iHD(D,$);case 2:return TD.escapeHtml(D.content);case 3:return`<!--${TD.escapeHtml(D.content)}-->`;case 5:return TD.escapeHtml(TD.toDisplayString(z8(D.content)));case 8:return TD.escapeHtml(z8(D));case 12:return EV(D.content,$);default:return""}}function iHD(D,$){let J=`<${D.tag}`,X="";for(let Y=0;Y<D.props.length;Y++){let Q=D.props[Y];if(Q.type===6){if(J+=` ${Q.name}`,Q.value)J+=`="${TD.escapeHtml(Q.value.content)}"`}else if(Q.type===7){if(Q.name==="bind"){let U=Q.exp;if(U.content[0]==="_"){J+=` ${Q.arg.content}="__VUE_EXP_START__${U.content}__VUE_EXP_END__"`;continue}if(TD.isBooleanAttr(Q.arg.content)&&U.content==="false")continue;let F=z8(U);if(F!=null){let W=Q.arg&&Q.arg.content;if(W==="class")F=TD.normalizeClass(F);else if(W==="style")F=TD.stringifyStyle(TD.normalizeStyle(F));J+=` ${Q.arg.content}="${TD.escapeHtml(F)}"`}}else if(Q.name==="html")X=z8(Q.exp);else if(Q.name==="text")X=TD.escapeHtml(TD.toDisplayString(z8(Q.exp)))}}if($.scopeId)J+=` ${$.scopeId}`;if(J+=">",X)J+=X;else for(let Y=0;Y<D.children.length;Y++)J+=EV(D.children[Y],$);if(!TD.isVoidTag(D.tag))J+=`</${D.tag}>`;return J}function z8(D){if(D.type===4)return Function(`return (${D.content})`)();else{let $="";return D.children.forEach((J)=>{if(TD.isString(J)||TD.isSymbol(J))return;if(J.type===2)$+=J.content;else if(J.type===5)$+=TD.toDisplayString(z8(J.content));else $+=z8(J)}),$}}var cHD=(D,$)=>{if(D.type===1&&D.tagType===0&&(D.tag==="script"||D.tag==="style"))$.onError(t$(64,D.loc)),$.removeNode()};function pHD(D,$){if(D==="template")return!0;if(D in Lm)return Lm[D].has($);if($ in Rm)return Rm[$].has(D);if(D in Mm){if(Mm[D].has($))return!1}if($ in Am){if(Am[$].has(D))return!1}return!0}var b9=new Set(["h1","h2","h3","h4","h5","h6"]),Z8=new Set([]),Lm={head:new Set(["base","basefront","bgsound","link","meta","title","noscript","noframes","style","script","template"]),optgroup:new Set(["option"]),select:new Set(["optgroup","option","hr"]),table:new Set(["caption","colgroup","tbody","tfoot","thead"]),tr:new Set(["td","th"]),colgroup:new Set(["col"]),tbody:new Set(["tr"]),thead:new Set(["tr"]),tfoot:new Set(["tr"]),script:Z8,iframe:Z8,option:Z8,textarea:Z8,style:Z8,title:Z8},Rm={html:Z8,body:new Set(["html"]),head:new Set(["html"]),td:new Set(["tr"]),colgroup:new Set(["table"]),caption:new Set(["table"]),tbody:new Set(["table"]),tfoot:new Set(["table"]),col:new Set(["colgroup"]),th:new Set(["tr"]),thead:new Set(["table"]),tr:new Set(["tbody","thead","tfoot"]),dd:new Set(["dl","div"]),dt:new Set(["dl","div"]),figcaption:new Set(["figure"]),summary:new Set(["details"]),area:new Set(["map"])},Mm={p:new Set(["address","article","aside","blockquote","center","details","dialog","dir","div","dl","fieldset","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","menu","ol","p","pre","section","table","ul"]),svg:new Set(["b","blockquote","br","code","dd","div","dl","dt","em","embed","h1","h2","h3","h4","h5","h6","hr","i","img","li","menu","meta","ol","p","pre","ruby","s","small","span","strong","sub","sup","table","u","ul","var"])},Am={a:new Set(["a"]),button:new Set(["button"]),dd:new Set(["dd","dt"]),dt:new Set(["dd","dt"]),form:new Set(["form"]),li:new Set(["li"]),h1:b9,h2:b9,h3:b9,h4:b9,h5:b9,h6:b9},nHD=(D,$)=>{if(D.type===1&&D.tagType===0&&$.parent&&$.parent.type===1&&$.parent.tagType===0&&!pHD($.parent.tag,D.tag)){let J=SyntaxError(`<${D.tag}> cannot be child of <${$.parent.tag}>, according to HTML specifications. This can cause hydration errors or potentially disrupt future functionality.`);J.loc=D.loc,$.onWarn(J)}},bm=[vm,xHD,nHD],Sm={cloak:jD.noopDirectiveTransform,html:THD,text:PHD,model:bHD,on:uHD,show:gHD};function rHD(D,$={}){return jD.baseCompile(D,TD.extend({},vV,$,{nodeTransforms:[cHD,...bm,...$.nodeTransforms||[]],directiveTransforms:TD.extend({},Sm,$.directiveTransforms||{}),transformHoist:yHD}))}function tHD(D,$={}){return jD.baseParse(D,TD.extend({},vV,$))}tU.DOMDirectiveTransforms=Sm;tU.DOMErrorCodes=EHD;tU.DOMErrorMessages=Em;tU.DOMNodeTransforms=bm;tU.TRANSITION=oU;tU.TRANSITION_GROUP=AV;tU.V_MODEL_CHECKBOX=VV;tU.V_MODEL_DYNAMIC=rU;tU.V_MODEL_RADIO=NV;tU.V_MODEL_SELECT=jV;tU.V_MODEL_TEXT=wV;tU.V_ON_WITH_KEYS=RV;tU.V_ON_WITH_MODIFIERS=LV;tU.V_SHOW=MV;tU.compile=rHD;tU.createDOMCompilerError=t$;tU.parse=tHD;tU.parserOptions=vV;tU.transformStyle=vm;Object.keys(jD).forEach(function(D){if(D!=="default"&&!Object.prototype.hasOwnProperty.call(tU,D))tU[D]=jD[D]})});import{exit as EID}from"node:process";import{workerData as TID}from"node:worker_threads";S3();YK();Oq();import{parentPort as TYD}from"node:worker_threads";async function Yf(D,$){let{project:J,apiHost:X,anonKey:Y,apikey:Q,command:U,attemptId:F}=D;hV(U);let W=async(z,I,B={})=>{let N=Date.now();A$("scan telemetry started",{scan:$.step,event:z,budget_ms:500});try{await Y2(Q,{channel:$.channel,event:z,tracking_version:2,timestamp:new Date(I),tags:{app_id:J.appId},nonPersonTags:{attempt_id:F,command_path:U,...B}},!1,AbortSignal.timeout(500),X,"error")}catch(V){A$("scan telemetry failed",{scan:$.step,error:c5(V)})}finally{A$("scan telemetry finished",{scan:$.step,event:z,duration_ms:Date.now()-N})}};await W("scan_started",Date.now());let K=Date.now(),q=K,G="error",Z="not_attempted",H;try{if(A$("local scan started",{scan:$.step}),G=$.scan(J),q=Date.now(),A$("local scan finished",{scan:$.step,result:G,duration_ms:q-K}),G!=="found")return;Z="failed";let z=Date.now();A$("step update started",{scan:$.step});let I=await fetch(`${V1(X)}/app/${encodeURIComponent(J.appId)}`,{method:"PUT",headers:G6({"Content-Type":"application/json",Authorization:X.includes("/functions/v1")&&Y?`Bearer ${Y}`:Q,capgkey:Q}),body:JSON.stringify({onboarding:{steps:{[$.step]:{status:"done"}}}}),redirect:"error"});if(A$("step update finished",{scan:$.step,status:I.status,duration_ms:Date.now()-z}),H=I.status,Z=I.ok?"success":"rejected",I.ok)TYD?.postMessage({type:"onboarding-step",step:$.step});await I.body?.cancel()}catch(z){throw A$("local check failed",{scan:$.step,error:c5(z)}),z}finally{if(G==="error")q=Date.now();await W("scan_ended",q,{result:G,duration_ms:q-K,todo_report_status:Z,...H===void 0?{}:{todo_report_http_status:H}})}}var b3=j$(Cm(),1);import{existsSync as km,readdirSync as IID,readFileSync as BID,realpathSync as OID,statSync as NID}from"node:fs";import{basename as VID,dirname as mm,extname as _m,isAbsolute as wID,join as um,relative as lm,resolve as jID,sep as TV}from"node:path";import _D from"typescript";var PV="@capgo/capacitor-updater",gm=/\.(?:[cm]?[jt]sx?|vue)$/,xm=/^(?:\..*|node_modules|dist|build|www|coverage|android|ios|test|tests|__tests__|__mocks__|fixtures|__fixtures__|e2e|cypress|playwright|scripts)$/,LID=/\.(?:test|spec|d)\.[cm]?[jt]sx?$|^capacitor\.config\./;function fm(D,$){let J=lm(D,$);return!wID(J)&&J!==".."&&!J.startsWith(`..${TV}`)}function RID(D){let $=_D.findConfigFile(D,_D.sys.fileExists);if(!$)return{};let J=_D.readConfigFile($,_D.sys.readFile);if(J.error)return{};return _D.parseJsonConfigFileContent({...J.config,files:[],include:[]},_D.sys,mm($)).options}function MID(D){return b3.parse(D,{parseMode:"sfc",onError:(J)=>{throw J}}).children.flatMap((J)=>{if(J.type!==b3.NodeTypes.ELEMENT||J.tag!=="script")return[];return J.children.flatMap((X)=>X.type===b3.NodeTypes.TEXT?[X.content]:[])}).join(`
`)}function AID(D){for(let $=D.parent;$;$=$.parent)if(_D.isImportDeclaration($))return $;return}function ym(D){let $=AID(D);return!!$&&_D.isStringLiteral($.moduleSpecifier)&&$.moduleSpecifier.text===PV&&!$.importClause?.isTypeOnly}function hm(D,$){if(_D.isIdentifier(D))return!!$.getSymbolAtLocation(D)?.declarations?.some((J)=>{if(_D.isImportSpecifier(J))return!J.isTypeOnly&&(J.propertyName??J.name).text==="CapacitorUpdater"&&ym(J);if(!_D.isBindingElement(J)||!_D.isObjectBindingPattern(J.parent))return!1;let X=J.parent.parent,Y=J.propertyName??J.name;if(!_D.isIdentifier(Y)||Y.text!=="CapacitorUpdater"||!_D.isVariableDeclaration(X))return!1;let Q=X.initializer;return!!Q&&_D.isCallExpression(Q)&&_D.isIdentifier(Q.expression)&&Q.expression.text==="require"&&!$.getSymbolAtLocation(Q.expression)&&Q.arguments.length===1&&_D.isStringLiteral(Q.arguments[0])&&Q.arguments[0].text===PV&&_D.isVariableDeclarationList(X.parent)&&!!(X.parent.flags&_D.NodeFlags.Const)});if(_D.isPropertyAccessExpression(D)&&D.name.text==="CapacitorUpdater"&&_D.isIdentifier(D.expression))return!!$.getSymbolAtLocation(D.expression)?.declarations?.some((J)=>_D.isNamespaceImport(J)&&ym(J));return!1}function vID(D,$){function J(X){if(_D.isCallExpression(X)){let Y=X.expression;if(_D.isPropertyAccessExpression(Y)&&Y.name.text==="notifyAppReady"&&hm(Y.expression,$))return!0;if(_D.isElementAccessExpression(Y)&&_D.isStringLiteral(Y.argumentExpression)&&Y.argumentExpression.text==="notifyAppReady"&&hm(Y.expression,$))return!0}return _D.forEachChild(X,J)??!1}return J(D)}function dm(D){try{let W=function(I){if(F(),!gm.test(I)||LID.test(VID(I)))return;let B=OID(I);if(Y.has(B)||!fm(D.workspaceRoot,B)||lm(D.workspaceRoot,B).split(TV).some((A)=>xm.test(A))||D.webDir&&D.webDir!==D.dir&&fm(D.webDir,B))return;Y.add(B);let N=NID(B).size;if(N>1048576)throw Error("Source file too large");U+=N,F();let V=BID(B,"utf8"),O=B.split(TV).join("/"),j=_m(B)===".vue"?`${O}.tsx`:O,v=_m(B)===".vue"?MID(V):V;J.set(j,v),X.set(j,B)},K=function(I){F();for(let B of IID(I,{withFileTypes:!0})){let N=um(I,B.name);if(B.isDirectory()){if(!xm.test(B.name)&&!km(um(N,"package.json")))K(N)}else if(B.isFile())W(N)}},$=Date.now()+5000,J=new Map,X=new Map,Y=new Set,Q=RID(D.dir),U=0,F=()=>{if(Date.now()>$||Y.size>1e4||U>20971520)throw Error("Source scan budget exceeded")};K(D.dir);for(let[I,B]of J){F();let N=X.get(I);for(let V of _D.preProcessFile(B,!0,!0).importedFiles){let O=V.fileName;if(O===PV)continue;let j=_D.resolveModuleName(O,N,Q,_D.sys).resolvedModule?.resolvedFileName??(O.startsWith(".")&&gm.test(O)?jID(mm(N),O):void 0);if(j&&km(j))W(j)}}let q={allowJs:!0,noLib:!0,noResolve:!0,types:[],jsx:_D.JsxEmit.Preserve},G=_D.createCompilerHost(q);G.getSourceFile=(I,B)=>{let N=J.get(I);return N===void 0?void 0:_D.createSourceFile(I,N,B,!0)};let Z=_D.createProgram([...J.keys()],q,G),H=Z.getTypeChecker(),z=!1;for(let I of Z.getSourceFiles()){if(F(),Z.getSyntacticDiagnostics(I).length){z=!0;continue}if(vID(I,H))return"found"}return z?"unknown":"not_found"}catch{return"unknown"}}Yf(TID,{channel:"notify-app-ready",step:"add_code",scan:dm}).catch(()=>{}).finally(()=>EID(0));