@capgo/cli
Version:
A CLI to upload to capgo servers
297 lines • 1.31 MB
JavaScript
import{createRequire as Af}from"node:module";var wf=Object.create;var{getPrototypeOf:Of,defineProperty:d2,getOwnPropertyNames:AB,getOwnPropertyDescriptor:jf}=Object,vB=Object.prototype.hasOwnProperty;function EB(D){return this[D]}var Nf,Lf,K6=(D,$,U)=>{var J=D!=null&&typeof D==="object";if(J){var Y=$?Nf??=new WeakMap:Lf??=new WeakMap,X=Y.get(D);if(X)return X}U=D!=null?wf(Of(D)):{};let Q=$||!D||!D.__esModule?d2(U,"default",{value:D,enumerable:!0}):U;for(let F of AB(D))if(!vB.call(Q,F))d2(Q,F,{get:EB.bind(D,F),enumerable:!0});if(J)Y.set(D,Q);return Q},u$=(D)=>{var $=(MB??=new WeakMap).get(D),U;if($)return $;if($=d2({},"__esModule",{value:!0}),D&&typeof D==="object"||typeof D==="function"){for(var J of AB(D))if(!vB.call($,J))d2($,J,{get:EB.bind(D,J),enumerable:!(U=jf(D,J))||U.enumerable})}return MB.set(D,$),$},MB,S=(D,$)=>()=>($||D(($={exports:{}}).exports,$),$.exports);var Rf=(D)=>D;function Mf(D,$){this[D]=Rf.bind(null,$)}var S0=(D,$)=>{for(var U in $)d2(D,U,{get:$[U],enumerable:!0,configurable:!0,set:Mf.bind($,U)})};var _=(D,$)=>()=>(D&&($=D(D=0)),$);var UD=Af(import.meta.url);var u6;var f4=_(()=>{u6={name:"@capgo/cli",type:"module",version:"8.56.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:ci-secrets":"bun test/test-ci-secrets.mjs","test:android-onboarding-progress":"bun test/test-android-onboarding-progress.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: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","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: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:init-monorepo-targeting":"bun run test:capacitor-config-target && 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","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:manifest-path-encoding":"bun test/test-manifest-path-encoding.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-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 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: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:ci-secrets && bun run test:android-onboarding-progress && 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:app-set-options && 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: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:manifest-path-encoding && 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-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","test:build-platform-selection":"bun test/test-build-platform-selection.mjs","test:builder-project-discovery":"bun test/test-builder-project-discovery.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: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"},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.4.3"},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","@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 uD;var M1=_(()=>{uD=class uD extends Error{context;constructor(D,$){super(D);this.name="CliUserError",this.context=$}}});import{platform as Ef}from"node:os";import{version as Tf}from"node:process";function SB(D){PB=D}function Sf(D){for(let $=0;$<D.length;$++)if(D.charCodeAt($)>255)return!1;return!0}function TB(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 bf(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 MX(D,$){if($===void 0||$===null){if(RX.has(D.toLowerCase()))throw new uD(TB(D));throw new uD(`HTTP header "${D}" is missing or invalid.`)}if(typeof $!=="string"){if(RX.has(D.toLowerCase()))throw new uD(TB(D));throw new uD(`HTTP header "${D}" is missing or invalid.`)}if(!Sf($)){if(RX.has(D.toLowerCase()))throw new uD(bf(D));throw new uD(`HTTP header "${D}" contains invalid characters (only ASCII is allowed).`)}return $}function r6(D){let $={capgo_api:Pf,"x-cli-version":u6.version,"x-cli-command":PB,"x-cli-node":Tf,"x-cli-os":Ef()};if(D)for(let[U,J]of Object.entries(D))$[U]=MX(U,J);return $}var Pf="2025-10-01",PB="",RX;var A7=_(()=>{f4();M1();RX=new Set(["authorization","capgkey","x-capgo-log-token"])});import{existsSync as D6}from"fs";var i2=(D=".",$="unknown")=>{let U=`${D}/bun.lockb`,J=`${D}/bun.lock`,Y=`${D}/pnpm-lock.yaml`,X=`${D}/shrinkwrap.yaml`,Q=`${D}/yarn.lock`,F=`${D}/package-lock.json`,W=`${D}/npm-shrinkwrap.json`;if(D6(U)||D6(J))return"bun";if(D6(Y)||D6(X))return"pnpm";if(D6(Q))return"yarn";if(D6(F)||D6(W))return"npm";return $},v7=(D=i2(),$=!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"}},bB=(D=".",$="npx")=>{let U=`${D}/bun.lockb`,J=`${D}/bun.lock`,Y=`${D}/pnpm-lock.yaml`,X=`${D}/shrinkwrap.yaml`,Q=`${D}/yarn.lock`,F=`${D}/package-lock.json`,W=`${D}/npm-shrinkwrap.json`;if(D6(U)||D6(J))return"bunx";if(D6(Y)||D6(X))return"pnpm exec";if(D6(Q))return"yarn dlx";if(D6(F)||D6(W))return"npx";return $};var CB=()=>{};var kB,uB=(D)=>{return D===12288||D>=65281&&D<=65376||D>=65504&&D<=65510},_B=(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 xB=_(()=>{kB=(()=>{let D=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;return($)=>{let U=0;D.lastIndex=0;while(D.test($))U+=1;return $.length-U}})()});var Cf,kf,gB,uf,fB,_f,xf,gf,yB=(D,$={},U={})=>{let J=$.limit??1/0,Y=$.ellipsis??"",X=$?.ellipsisWidth??(Y?yB(Y,gf,U).width:0),Q=0,F=U.controlWidth??0,W=U.tabWidth??8,K=U.emojiWidth??2,Z=2,z=U.regularWidth??1,q=U.wideWidth??2,G=[[_f,z],[Cf,0],[kf,F],[uf,W],[fB,K],[gB,q]],V=0,I=0,H=D.length,w=0,j=!1,B=H,N=Math.max(0,J-X),A=0,v=0,k=0,C=0;D:while(!0){if(v>A||I>=H&&I>V){let b=D.slice(A,v)||D.slice(V,I);w=0;for(let y of b.replaceAll(xf,"")){let T=y.codePointAt(0)||0;if(uB(T))C=2;else if(_B(T))C=q;else C=z;if(k+C>N)B=Math.min(B,Math.max(A,V)+w);if(k+C>J){j=!0;break D}w+=y.length,k+=C}A=v=0}if(I>=H)break D;for(let b=0,y=G.length;b<y;b++){let[T,h]=G[b];if(T.lastIndex=I,T.test(D)){if(w=T===gB?kB(D.slice(I,T.lastIndex)):T===fB?1:T.lastIndex-I,C=w*h,k+C>N)B=Math.min(B,I+Math.floor((N-k)/h));if(k+C>J){j=!0;break D}k+=C,A=V,v=I,I=V=T.lastIndex;continue D}}I+=1}return{width:j?N:k,index:j?B:H,truncated:j,ellipsed:j&&J>=X}},hB;var mB=_(()=>{xB();Cf=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]|\u001b\]8;[^;]*;.*?(?:\u0007|\u001b\u005c)/y,kf=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,gB=/(?:(?![\uFF61-\uFF9F\uFF00-\uFFEF])[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Tangut}]){1,1000}/yu,uf=/\t{1,1000}/y,fB=/[\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,_f=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,xf=/\p{M}+/gu,gf={limit:1/0,ellipsis:""},hB=yB});var ff,yf=(D,$={})=>{return hB(D,ff,$).width},o6;var AX=_(()=>{mB();ff={limit:1/0,ellipsis:"",ellipsisWidth:0},o6=yf});function _$(D,$,U){return String(D).normalize().split(df).map((J)=>cf(J,$,U)).join(`
`)}var E7="\x1B",pB="",hf=39,EX="\x07",nB="[",mf="]",rB="m",TX,lB,cB=(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},dB=(D)=>`${E7}${nB}${D}${rB}`,iB=(D)=>`${E7}${TX}${D}${EX}`,vX=(D,$,U)=>{let J=$[Symbol.iterator](),Y=!1,X=!1,Q=D.at(-1),F=Q===void 0?0:o6(Q),W=J.next(),K=J.next(),Z=0;while(!W.done){let z=W.value,q=o6(z);if(F+q<=U)D[D.length-1]+=z;else D.push(z),F=0;if(z===E7||z===pB)Y=!0,X=$.startsWith(TX,Z+1);if(Y){if(X){if(z===EX)Y=!1,X=!1}else if(z===rB)Y=!1}else if(F+=q,F===U&&!K.done)D.push(""),F=0;W=K,K=J.next(),Z+=z.length}if(Q=D.at(-1),!F&&Q!==void 0&&Q.length&&D.length>1)D[D.length-2]+=D.pop()},lf=(D)=>{let $=D.split(" "),U=$.length;while(U){if(o6($[U-1]))break;U--}if(U===$.length)return D;return $.slice(0,U).join(" ")+$.slice(U).join("")},cf=(D,$,U={})=>{if(U.trim!==!1&&D.trim()==="")return"";let J="",Y,X,Q=D.split(" "),F=[""],W=0;for(let z=0;z<Q.length;z++){let q=Q[z];if(U.trim!==!1){let V=F.at(-1)??"",I=V.trimStart();if(V.length!==I.length)F[F.length-1]=I,W=o6(I)}if(z!==0){if(W>=$&&(U.wordWrap===!1||U.trim===!1))F.push(""),W=0;if(W||U.trim===!1)F[F.length-1]+=" ",W++}let G=o6(q);if(U.hard&&G>$){let V=$-W,I=1+Math.floor((G-V-1)/$);if(Math.floor((G-1)/$)<I)F.push("");vX(F,q,$),W=o6(F.at(-1)??"");continue}if(W+G>$&&W&&G){if(U.wordWrap===!1&&W<$){vX(F,q,$),W=o6(F.at(-1)??"");continue}F.push(""),W=0}if(W+G>$&&U.wordWrap===!1){vX(F,q,$),W=o6(F.at(-1)??"");continue}F[F.length-1]+=q,W+=G}if(U.trim!==!1)F=F.map((z)=>lf(z));let K=F.join(`
`),Z=!1;for(let z=0;z<K.length;z++){let q=K[z];if(J+=q,!Z){if(Z=q>="\uD800"&&q<="\uDBFF",Z)continue}else Z=!1;if(q===E7||q===pB){lB.lastIndex=z+1;let V=lB.exec(K)?.groups;if(V?.code!==void 0){let I=Number.parseFloat(V.code);Y=I===hf?void 0:I}else if(V?.uri!==void 0)X=V.uri.length===0?void 0:V.uri}if(K[z+1]===`
`){if(X)J+=iB("");let G=Y?cB(Y):void 0;if(Y&&G)J+=dB(G)}else if(q===`
`){if(Y&&cB(Y))J+=dB(Y);if(X)J+=iB(X)}}return J},df;var PX=_(()=>{AX();TX=`${mf}8;;`,lB=new RegExp(`(?:\\${nB}(?<code>\\d+)m|\\${TX}(?<uri>.*)${EX})`,"y"),df=/\r?\n/});var bX=S((JZD,oB)=>{var SX={to(D,$){if(!$)return`\x1B[${D+1}G`;return`\x1B[${$+1};${D+1}H`},move(D,$){let U="";if(D<0)U+=`\x1B[${-D}D`;else if(D>0)U+=`\x1B[${D}C`;if($<0)U+=`\x1B[${-$}A`;else if($>0)U+=`\x1B[${$}B`;return U},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"},pf={up:(D=1)=>"\x1B[S".repeat(D),down:(D=1)=>"\x1B[T".repeat(D)},nf={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 U=0;U<D;U++)$+=this.line+(U<D-1?SX.up():"");if(D)$+=SX.left;return $}};oB.exports={cursor:SX,scroll:pf,erase:nf,beep:"\x07"}});import{styleText as h4}from"node:util";import{stdout as _X,stdin as eB}from"node:process";import*as x$ from"node:readline";import rf from"node:readline";import{ReadStream as aB}from"node:tty";function y4(D,$,U){if(!U.some((Q)=>!Q.disabled))return D;let J=D+$,Y=Math.max(U.length-1,0),X=J<0?Y:J>Y?0:J;return U[X]?.disabled?y4(X,$<0?-1:1,U):X}function T7(D,$,U,J){let Y=J.split(`
`),X=0,Q=D;for(let W of Y){if(Q<=W.length)break;Q-=W.length+1,X++}for(X=Math.max(0,Math.min(Y.length-1,X+U)),Q=Math.min(Q,Y[X].length)+$;Q<0&&X>0;)X--,Q+=Y[X].length+1;for(;Q>Y[X].length&&X<Y.length-1;)Q-=Y[X].length+1,X++;Q=Math.max(0,Math.min(Y[X].length,Q));let F=0;for(let W=0;W<X;W++)F+=Y[W].length+1;return F+Q}function xX(D,$){if(typeof D=="string")return H0.aliases.get(D)===$;for(let U of D)if(U!==void 0&&xX(U,$))return!0;return!1}function tf(D,$){if(D===$)return;let U=D.split(`
`),J=$.split(`
`),Y=Math.max(U.length,J.length),X=[];for(let Q=0;Q<Y;Q++)U[Q]!==J[Q]&&X.push(Q);return{lines:X,numLinesBefore:U.length,numLinesAfter:J.length,numLines:Y}}function A1(D){return D===kX}function P7(D,$){let U=D;U.isTTY&&U.setRawMode($)}function Dw({input:D=eB,output:$=_X,overwrite:U=!0,hideCursor:J=!0}={}){let Y=x$.createInterface({input:D,output:$,prompt:"",tabSize:1});x$.emitKeypressEvents(D,Y),D instanceof aB&&D.isTTY&&D.setRawMode(!0);let X=(Q,{name:F,sequence:W})=>{let K=String(Q);if(xX([K,F,W],"cancel")){J&&$.write(b0.cursor.show),process.exit(0);return}if(!U)return;x$.moveCursor($,F==="return"?0:-1,F==="return"?-1:0,()=>{x$.clearLine($,1,()=>{D.once("keypress",X)})})};return J&&$.write(b0.cursor.hide),D.once("keypress",X),()=>{D.off("keypress",X),J&&$.write(b0.cursor.show),D instanceof aB&&D.isTTY&&!sf&&D.setRawMode(!1),Y.terminal=!1,Y.close()}}function p2(D,$,U,J=U,Y=U,X){let Q=b7(D??_X);return _$($,Q-U.length,{hard:!0,trim:!1}).split(`
`).map((F,W,K)=>{let Z=X?X(F,W):F;return W===0?`${J}${Z}`:W===K.length-1?`${Y}${Z}`:`${U}${Z}`}).join(`
`)}function $w(D,$){if("~standard"in D){let U=D["~standard"].validate($);if(U instanceof Promise)throw TypeError("Schema validation must be synchronous. Update `validate()` and remove any asynchronous logic.");return U.issues?.at(0)?.message}return D($)}class Z${input;output;_abortSignal;rl;opts;_render;_track=!1;_prevFrame="";_subscribers=new Map;_cursor=0;state="initial";error="";value;userInput="";constructor(D,$=!0){let{input:U=eB,output:J=_X,render:Y,signal:X,...Q}=D;this.opts=Q,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=X,this.input=U,this.output=J}unsubscribe(){this._subscribers.clear()}setSubscriber(D,$){let U=this._subscribers.get(D)??[];U.push($),this._subscribers.set(D,U)}on(D,$){this.setSubscriber(D,{cb:$})}once(D,$){this.setSubscriber(D,{cb:$,once:!0})}emit(D,...$){let U=this._subscribers.get(D)??[],J=[];for(let Y of U)Y.cb(...$),Y.once&&J.push(()=>U.splice(U.indexOf(Y),1));for(let Y of J)Y()}prompt(){return new Promise((D)=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),D(kX);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close()},{once:!0})}this.rl=rf.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),P7(this.input,!0),this.output.on("resize",this.render),this.render(),this.once("submit",()=>{this.output.write(b0.cursor.show),this.output.off("resize",this.render),P7(this.input,!1),D(this.value)}),this.once("cancel",()=>{this.output.write(b0.cursor.show),this.output.off("resize",this.render),P7(this.input,!1),D(kX)})})}_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&&H0.aliases.has($.name)&&this.emit("cursor",H0.aliases.get($.name)),H0.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 U=$w(this.opts.validate,this.value);U&&(this.error=U instanceof Error?U.message:U,this.state="error",this.rl?.write(this.userInput))}this.state!=="error"&&(this.state="submit")}xX([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(`
`),P7(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let D=_$(this._prevFrame,process.stdout.columns,{hard:!0,trim:!1}).split(`
`).length-1;this.output.write(b0.cursor.move(-999,D*-1))}render(){let D=_$(this._render(this)??"",process.stdout.columns,{hard:!0,trim:!1});if(D!==this._prevFrame){if(this.state==="initial")this.output.write(b0.cursor.hide);else{let $=tf(this._prevFrame,D),U=gX(this.output);if(this.restoreCursor(),$){let J=Math.max(0,$.numLinesAfter-U),Y=Math.max(0,$.numLinesBefore-U),X=$.lines.find((Q)=>Q>=J);if(X===void 0){this._prevFrame=D;return}if($.lines.length===1){this.output.write(b0.cursor.move(0,X-Y)),this.output.write(b0.erase.lines(1));let Q=D.split(`
`);this.output.write(Q[X]),this._prevFrame=D,this.output.write(b0.cursor.move(0,Q.length-X-1));return}else if($.lines.length>1){if(J<Y)X=J;else{let F=X-Y;F>0&&this.output.write(b0.cursor.move(0,F))}this.output.write(b0.erase.down());let Q=D.split(`
`).slice(X);this.output.write(Q.join(`
`)),this._prevFrame=D;return}}this.output.write(b0.erase.down())}this.output.write(D),this.state==="initial"&&(this.state="active"),this._prevFrame=D}}}function ef(D,$){if(D===void 0||$.length===0)return 0;let U=$.findIndex((J)=>J.value===D);return U!==-1?U:0}function Dy(D,$){return($.label??String($.value)).toLowerCase().includes(D.toLowerCase())}function $y(D,$){if($)return D?$:$[0]}function tB(D){return[...D].map(($)=>Jy[$])}function Yy(D){let $=new Intl.DateTimeFormat(D,{year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(new Date(2000,0,15)),U=[],J="/";for(let Y of $)Y.type==="literal"?J=Y.value.trim()||Y.value:(Y.type==="year"||Y.type==="month"||Y.type==="day")&&U.push({type:Y.type,len:Y.type==="year"?4:2});return{segments:U,separator:J}}function CX(D){return Number.parseInt((D||"0").replace(/_/g,"0"),10)||0}function S7(D){return{year:CX(D.year),month:CX(D.month),day:CX(D.day)}}function uX(D,$){return new Date(D||2001,$||1,0).getDate()}function Uw(D){let{year:$,month:U,day:J}=S7(D);if(!$||$<0||$>9999||!U||U<1||U>12||!J||J<1)return;let Y=new Date(Date.UTC($,U-1,J));if(!(Y.getUTCFullYear()!==$||Y.getUTCMonth()!==U-1||Y.getUTCDate()!==J))return{year:$,month:U,day:J}}function sB(D){let $=Uw(D);return $?new Date(Date.UTC($.year,$.month-1,$.day)):void 0}function Xy(D,$,U,J){let Y=U?{year:U.getUTCFullYear(),month:U.getUTCMonth()+1,day:U.getUTCDate()}:null,X=J?{year:J.getUTCFullYear(),month:J.getUTCMonth()+1,day:J.getUTCDate()}:null;return D==="year"?{min:Y?.year??1,max:X?.year??9999}:D==="month"?{min:Y&&$.year===Y.year?Y.month:1,max:X&&$.year===X.year?X.month:12}:{min:Y&&$.year===Y.year&&$.month===Y.month?Y.day:1,max:X&&$.year===X.year&&$.month===X.month?X.day:uX($.year,$.month)}}var b0,of,af,H0,sf,kX,b7=(D)=>("columns"in D)&&typeof D.columns=="number"?D.columns:80,gX=(D)=>("rows"in D)&&typeof D.rows=="number"?D.rows:20,Uy,fX,Jy,Jw,Qy,Fy,Yw,Xw,Qw,yX;var hX=_(()=>{PX();b0=K6(bX(),1);of=["up","down","left","right","space","enter","cancel"],af=["January","February","March","April","May","June","July","August","September","October","November","December"],H0={actions:new Set(of),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:[...af],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)}`}}};sf=globalThis.process.platform.startsWith("win"),kX=Symbol("clack:cancel");Uy=class extends Z${filteredOptions;multiple;isNavigating=!1;selectedValues=[];focusedValue;#$=0;#Y="";#D;#X;#F;get cursor(){return this.#$}get userInputWithCursor(){if(!this.userInput)return h4(["inverse","hidden"],"_");if(this._cursor>=this.userInput.length)return`${this.userInput}█`;let $=this.userInput.slice(0,this.cursor),U=this.userInput.slice(this.cursor,this.cursor+1),J=this.userInput.slice(this.cursor+1);return`${$}${h4("inverse",U)}${J}`}get options(){return typeof this.#X=="function"?this.#X():this.#X}constructor($){super($),this.#X=$.options,this.#F=$.placeholder;let U=this.options;this.filteredOptions=[...U],this.multiple=$.multiple===!0,this.#D=typeof $.options=="function"?$.filter:$.filter??Dy;let J;if($.initialValue&&Array.isArray($.initialValue)?this.multiple?J=$.initialValue:J=$.initialValue.slice(0,1):!this.multiple&&this.options.length>0&&(J=[this.options[0]?.value]),J)for(let Y of J){let X=U.findIndex((Q)=>Q.value===Y);X!==-1&&(this.toggleSelected(Y),this.#$=X)}this.focusedValue=this.options[this.#$]?.value,this.on("key",(Y,X)=>this.#U(Y,X)),this.on("userInput",(Y)=>this.#J(Y))}_isActionKey($,U){return $==="\t"||this.multiple&&this.isNavigating&&U.name==="space"&&$!==void 0&&$!==""}#U($,U){let J=U.name==="up",Y=U.name==="down",X=U.name==="return",Q=this.userInput===""||this.userInput==="\t",F=this.#F,W=this.options,K=F!==void 0&&F!==""&&W.some((Z)=>!Z.disabled&&(this.#D?this.#D(F,Z):!0));if(U.name==="tab"&&Q&&K){this.userInput==="\t"&&this._clearUserInput(),this._setUserInput(F,!0),this.isNavigating=!1;return}J||Y?(this.#$=y4(this.#$,J?-1:1,this.filteredOptions),this.focusedValue=this.filteredOptions[this.#$]?.value,this.multiple||(this.selectedValues=[this.focusedValue]),this.isNavigating=!0):X?this.value=$y(this.multiple,this.selectedValues):this.multiple?this.focusedValue!==void 0&&(U.name==="tab"||this.isNavigating&&U.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((U)=>U!==$):this.selectedValues=[...this.selectedValues,$]:this.selectedValues=[$])}#J($){if($!==this.#Y){this.#Y=$;let U=this.options;$&&this.#D?this.filteredOptions=U.filter((X)=>this.#D?.($,X)):this.filteredOptions=[...U];let J=ef(this.focusedValue,this.filteredOptions);this.#$=y4(J,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())}}};fX=class fX extends Z${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(b0.cursor.move(0,-1)),this.value=$,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}};Jy={Y:{type:"year",len:4},M:{type:"month",len:2},D:{type:"day",len:2}};Jw=class Jw extends Z${#$;#Y;#D;#X;#F;#U={segmentIndex:0,positionInSegment:0};#J=!0;#Q=null;inlineError="";get segmentCursor(){return{...this.#U}}get segmentValues(){return{...this.#D}}get segments(){return this.#$}get separator(){return this.#Y}get formattedValue(){return this.#z(this.#D)}#z(D){return this.#$.map(($)=>D[$.type]).join(this.#Y)}#W(){this._setUserInput(this.#z(this.#D)),this._setValue(sB(this.#D)??void 0)}constructor(D){let $=D.format?{segments:tB(D.format),separator:D.separator??"/"}:Yy(D.locale),U=D.separator??$.separator,J=D.format?tB(D.format):$.segments,Y=D.initialValue??D.defaultValue,X=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:"__"},Q=J.map((F)=>X[F.type]).join(U);super({...D,initialUserInput:Q},!1),this.#$=J,this.#Y=U,this.#D=X,this.#X=D.minDate,this.#F=D.maxDate,this.#W(),this.on("cursor",(F)=>this.#V(F)),this.on("key",(F,W)=>this.#H(F,W)),this.on("finalize",()=>this.#I(D))}#K(){let D=Math.max(0,Math.min(this.#U.segmentIndex,this.#$.length-1)),$=this.#$[D];if($)return this.#U.positionInSegment=Math.max(0,Math.min(this.#U.positionInSegment,$.len-1)),{segment:$,index:D}}#Z(D){this.inlineError="",this.#Q=null;let $=this.#K();$&&(this.#U.segmentIndex=Math.max(0,Math.min(this.#$.length-1,$.index+D)),this.#U.positionInSegment=0,this.#J=!0)}#q(D){let $=this.#K();if(!$)return;let{segment:U}=$,J=this.#D[U.type],Y=!J||J.replace(/_/g,"")==="",X=Number.parseInt((J||"0").replace(/_/g,"0"),10)||0,Q=Xy(U.type,S7(this.#D),this.#X,this.#F),F;Y?F=D===1?Q.min:Q.max:F=Math.max(Math.min(Q.max,X+D),Q.min),this.#D={...this.#D,[U.type]:F.toString().padStart(U.len,"0")},this.#J=!0,this.#Q=null,this.#W()}#V(D){if(D)switch(D){case"right":return this.#Z(1);case"left":return this.#Z(-1);case"up":return this.#q(1);case"down":return this.#q(-1)}}#H(D,$){if($?.name==="backspace"||$?.sequence===""||$?.sequence==="\b"||D===""||D==="\b"){this.inlineError="";let U=this.#K();if(!U)return;if(!this.#D[U.segment.type].replace(/_/g,"")){this.#Z(-1);return}this.#D[U.segment.type]="_".repeat(U.segment.len),this.#J=!0,this.#U.positionInSegment=0,this.#W();return}if($?.name==="tab"){this.inlineError="";let U=this.#K();if(!U)return;let J=$.shift?-1:1,Y=U.index+J;Y>=0&&Y<this.#$.length&&(this.#U.segmentIndex=Y,this.#U.positionInSegment=0,this.#J=!0);return}if(D&&/^[0-9]$/.test(D)){let U=this.#K();if(!U)return;let{segment:J}=U,Y=!this.#D[J.type].replace(/_/g,"");if(this.#J&&this.#Q!==null&&!Y){let q=this.#Q+D,G={...this.#D,[J.type]:q},V=this.#G(G,J);if(V){this.inlineError=V,this.#Q=null,this.#J=!1;return}this.inlineError="",this.#D[J.type]=q,this.#Q=null,this.#J=!1,this.#W(),U.index<this.#$.length-1&&(this.#U.segmentIndex=U.index+1,this.#U.positionInSegment=0,this.#J=!0);return}this.#J&&!Y&&(this.#D[J.type]="_".repeat(J.len),this.#U.positionInSegment=0),this.#J=!1,this.#Q=null;let X=this.#D[J.type],Q=X.indexOf("_"),F=Q>=0?Q:Math.min(this.#U.positionInSegment,J.len-1);if(F<0||F>=J.len)return;let W=X.slice(0,F)+D+X.slice(F+1),K=!1;if(F===0&&X==="__"&&(J.type==="month"||J.type==="day")){let q=Number.parseInt(D,10);W=`0${D}`,K=q<=(J.type==="month"?1:2)}if(J.type==="year"&&(W=(X.replace(/_/g,"")+D).padStart(J.len,"_")),!W.includes("_")){let q={...this.#D,[J.type]:W},G=this.#G(q,J);if(G){this.inlineError=G;return}}this.inlineError="",this.#D[J.type]=W;let Z=W.includes("_")?void 0:Uw(this.#D);if(Z){let{year:q,month:G}=Z,V=uX(q,G);this.#D={year:String(Math.max(0,Math.min(9999,q))).padStart(4,"0"),month:String(Math.max(1,Math.min(12,G))).padStart(2,"0"),day:String(Math.max(1,Math.min(V,Z.day))).padStart(2,"0")}}this.#W();let z=W.indexOf("_");K?(this.#J=!0,this.#Q=D):z>=0?this.#U.positionInSegment=z:Q>=0&&U.index<this.#$.length-1?(this.#U.segmentIndex=U.index+1,this.#U.positionInSegment=0,this.#J=!0):this.#U.positionInSegment=Math.min(F+1,J.len-1)}}#G(D,$){let{month:U,day:J}=S7(D);if($.type==="month"&&(U<0||U>12))return H0.date.messages.invalidMonth;if($.type==="day"&&(J<0||J>31))return H0.date.messages.invalidDay(31,"any month")}#I(D){let{year:$,month:U,day:J}=S7(this.#D);if($&&U&&J){let Y=uX($,U);this.#D={...this.#D,day:String(Math.min(J,Y)).padStart(2,"0")}}this.value=sB(this.#D)??D.defaultValue??void 0}};Qy=class extends Z${options;cursor=0;#$;getGroupItems($){return this.options.filter((U)=>U.group===$)}isGroupSelected($){let U=this.getGroupItems($),J=this.value;return J===void 0?!1:U.every((Y)=>J.includes(Y.value))}toggleValue(){let $=this.options[this.cursor];if($!==void 0)if(this.value===void 0&&(this.value=[]),$.group===!0){let U=$.value,J=this.getGroupItems(U);this.isGroupSelected(U)?this.value=this.value.filter((Y)=>J.findIndex((X)=>X.value===Y)===-1):this.value=[...this.value,...J.map((Y)=>Y.value)],this.value=Array.from(new Set(this.value))}else{let U=this.value.includes($.value);this.value=U?this.value.filter((J)=>J!==$.value):[...this.value,$.value]}}constructor($){super($,!1);let{options:U}=$;this.#$=$.selectableGroups!==!1,this.options=Object.entries(U).flatMap(([J,Y])=>[{value:J,group:!0,label:J},...Y.map((X)=>({...X,group:J}))]),this.value=[...$.initialValues??[]],this.cursor=Math.max(this.options.findIndex(({value:J})=>J===$.cursorAt),this.#$?0:1),this.on("cursor",(J)=>{switch(J){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}})}},Fy=new Set(["up","down","left","right"]);Yw=class Yw extends Z${#$=!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),U=D.slice(this.cursor,this.cursor+1),J=D.slice(this.cursor+1);return U===`
`?`${$}█
${J}`:`${$}${h4("inverse",U)}${J}`}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))}#X(D){let $=this.value??"";switch(D){case"up":this._cursor=T7(this._cursor,0,-1,$);return;case"down":this._cursor=T7(this._cursor,0,1,$);return;case"left":this._cursor=T7(this._cursor,-1,0,$);return;case"right":this._cursor=T7(this._cursor,1,0,$);return}}_shouldSubmit(D,$){if(this.#Y)return this.focused==="submit"?!0:(this.#D(`
`),this._cursor++,!1);let U=this.#$;return this.#$=!0,U&&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",(U,J)=>{if(J?.name&&Fy.has(J.name)){this.#$=!1,this.#X(J.name);return}if(U==="\t"&&this.#Y){this.focused=this.focused==="editor"?"submit":"editor";return}if(J?.name!=="return"){if(this.#$=!1,J?.name==="backspace"&&this.cursor>0){this._setUserInput(this.userInput.slice(0,this.cursor-1)+this.userInput.slice(this.cursor)),this._cursor--;return}if(J?.name==="delete"&&this.cursor<this.userInput.length){this._setUserInput(this.userInput.slice(0,this.cursor)+this.userInput.slice(this.cursor+1));return}U&&(this.#Y&&this.focused==="submit"&&(this.focused="editor"),this.#D(U??""),this._cursor++)}}),this.on("userInput",(U)=>{this._setValue(U)}),this.on("finalize",()=>{this.value||(this.value=D.defaultValue),this.value===void 0&&(this.value="")})}};Xw=class extends Z${_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}${h4(["inverse","hidden"],"_")}`;let U=this.masked,J=U.slice(0,this.cursor),Y=U.slice(this.cursor,this.cursor+1),X=U.slice(this.cursor+1);return`${J}${h4("inverse",Y)}${X}`}clear(){this._clearUserInput()}constructor({mask:$,...U}){super(U),this._mask=$??"•",this.on("userInput",(J)=>{this._setValue(J)}),this.on("finalize",()=>{this.value===void 0&&(this.value="")})}},Qw=class extends Z${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 U=this.options.findIndex(({value:Y})=>Y===$.initialValue),J=U===-1?0:U;this.cursor=this.options[J]?.disabled?y4(J,1,this.options):J,this.changeValue(),this.on("cursor",(Y)=>{switch(Y){case"left":case"up":this.cursor=y4(this.cursor,-1,this.options);break;case"down":case"right":this.cursor=y4(this.cursor,1,this.options);break}this.changeValue()})}};yX=class yX extends Z${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),U=D.slice(this.cursor,this.cursor+1),J=D.slice(this.cursor+1);return`${$}${h4("inverse",U)}${J}`}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 o,stripVTControlCharacters as HZD}from"node:util";import _6 from"node:process";function Wy(){if(_6.platform!=="win32")return _6.env.TERM!=="linux";return Boolean(_6.env.CI)||Boolean(_6.env.WT_SESSION)||Boolean(_6.env.TERMINUS_SUBLIME)||_6.env.ConEmuTask==="{cmd::Cmder}"||_6.env.TERM_PROGRAM==="Terminus-Sublime"||_6.env.TERM_PROGRAM==="vscode"||_6.env.TERM==="xterm-256color"||_6.env.TERM==="alacritty"||_6.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}function wy(D,$){let U=[`${$?`${o("cyan",bD)} `:""}${D.join(" • ")}`];return $&&U.push(o("cyan",z$)),U}var n2,mX,Ky=()=>process.env.CI==="true",hD=(D,$)=>mX?D:$,Zy,Ww,Kw,cX,zy,bD,z$,OZD,jZD,lX,k7,NZD,LZD,RZD,qy,MZD,AZD,vZD,EZD,TZD,PZD,Gy,Vy,Hy,Iy,u7=(D)=>{switch(D){case"initial":case"active":return o("cyan",Zy);case"cancel":return o("red",Ww);case"error":return o("yellow",Kw);case"submit":return o("green",cX)}},By=(D)=>{switch(D){case"initial":case"active":return o("cyan",bD);case"cancel":return o("red",bD);case"error":return o("yellow",bD);case"submit":return o("green",bD)}},Fw=(D,$,U,J,Y,X=!1)=>{let Q=$,F=0;if(X)for(let W=J-1;W>=U;W--){let K=D[W];if(K&&(Q-=K.length),F++,Q<=Y)break}else for(let W=U;W<J;W++){let K=D[W];if(K&&(Q-=K.length),F++,Q<=Y)break}return{lineCount:Q,removals:F}},Oy=({cursor:D,options:$,style:U,output:J=process.stdout,maxItems:Y=Number.POSITIVE_INFINITY,columnPadding:X=0,rowPadding:Q=4})=>{let F=b7(J)-X,W=gX(J),K=o("dim","..."),Z=Math.max(W-Q,0),z=Math.max(Math.min(Y,Z),5),q=0;D>=z-3&&(q=Math.max(Math.min(D-z+3,$.length-z),0));let G=z<$.length&&q>0,V=z<$.length&&q+z<$.length,I=Math.min(q+z,$.length),H=[],w=0;G&&w++,V&&w++;let j=q+(G?1:0),B=I-(V?1:0);for(let A=j;A<B;A++){let v=$[A],k=v?U(v,A===D):"",C=_$(k,F,{hard:!0,trim:!1}).split(`
`);H.push(C),w+=C.length}if(w>Z){let A=0,v=0,k=w,C=D-j,b=Z,y=()=>Fw(H,k,0,C,b),T=()=>Fw(H,k,C+1,H.length,b,!0);G?({lineCount:k,removals:A}=y(),k>b&&(V||(b-=1),{lineCount:k,removals:v}=T())):(V||(b-=1),{lineCount:k,removals:v}=T(),k>b&&(b-=1,{lineCount:k,removals:A}=y())),A>0&&(G=!0,H.splice(0,A)),v>0&&(V=!0,H.splice(H.length-v,v))}let N=[];G&&N.push(K);for(let A of H)for(let v of A)N.push(v);return V&&N.push(K),N},m4=(D)=>{let $=D.active??"Yes",U=D.inactive??"No";return new fX({active:$,inactive:U,signal:D.signal,input:D.input,output:D.output,initialValue:D.initialValue??!0,render(){let J=D.withGuide??H0.withGuide,Y=`${u7(this.state)} `,X=J?`${o("gray",bD)} `:"",Q=p2(D.output,D.message,X,Y),F=`${J?`${o("gray",bD)}
`:""}${Q}
`,W=this.value?$:U;switch(this.state){case"submit":{let K=J?`${o("gray",bD)} `:"";return`${F}${K}${o("dim",W)}`}case"cancel":{let K=J?`${o("gray",bD)} `:"";return`${F}${K}${o(["strikethrough","dim"],W)}${J?`
${o("gray",bD)}`:""}`}default:{let K=J?`${o("cyan",bD)} `:"",Z=J?o("cyan",z$):"";return`${F}${K}${this.value?`${o("green",lX)} ${$}`:`${o("dim",k7)} ${o("dim",$)}`}${D.vertical?J?`
${o("cyan",bD)} `:`
`:` ${o("dim","/")} `}${this.value?`${o("dim",k7)} ${o("dim",U)}`:`${o("green",lX)} ${U}`}
${Z}
`}}}}).prompt()},SZD,gD,bZD=(D="",$)=>{let U=$?.output??process.stdout,J=$?.withGuide??H0.withGuide?`${o("gray",z$)} `:"";U.write(`${J}${o("red",D)}
`)},_7=(D="",$)=>{let U=$?.output??process.stdout,J=$?.withGuide??H0.withGuide?`${o("gray",zy)} `:"";U.write(`${J}${D}
`)},r2=(D="",$)=>{let U=$?.output??process.stdout,J=$?.withGuide??H0.withGuide?`${o("gray",bD)}
${o("gray",z$)} `:"";U.write(`${J}${D}
`)},CZD=(D)=>new Xw({validate:D.validate,mask:D.mask??qy,signal:D.signal,input:D.input,output:D.output,render(){let $=D.withGuide??H0.withGuide,U=`${$?`${o("gray",bD)}
`:""}${u7(this.state)} ${D.message}
`,J=this.userInputWithCursor,Y=this.masked;switch(this.state){case"error":{let X=$?`${o("yellow",bD)} `:"",Q=$?`${o("yellow",z$)} `:"",F=Y??"";return D.clearOnError&&this.clear(),`${U.trim()}
${X}${F}
${Q}${o("yellow",this.error)}
`}case"submit":{let X=$?`${o("gray",bD)} `:"",Q=Y?o("dim",Y):"";return`${U}${X}${Q}`}case"cancel":{let X=$?`${o("gray",bD)} `:"",Q=Y?o(["strikethrough","dim"],Y):"";return`${U}${X}${Q}${Y&&$?`
${o("gray",bD)}`:""}`}default:{let X=$?`${o("cyan",bD)} `:"",Q=$?o("cyan",z$):"";return`${U}${X}${J}
${Q}
`}}}}).prompt(),jy=(D)=>o("magenta",D),l4=({indicator:D="dots",onCancel:$,output:U=process.stdout,cancelMessage:J,errorMessage:Y,frames:X=mX?["◒","◐","◓","◑"]:["•","o","O","0"],delay:Q=mX?80:120,signal:F,...W}={})=>{let K=Ky(),Z,z,q=!1,G=!1,V="",I,H=performance.now(),w=b7(U),j=W?.styleFrame??jy,B=(p)=>{let a=p>1?Y??H0.messages.error:J??H0.messages.cancel;G=p===1,q&&(c(a,p),G&&typeof $=="function"&&$())},N=()=>B(2),A=()=>B(1),v=()=>{process.on("uncaughtExceptionMonitor",N),process.on("unhandledRejection",N),process.on("SIGINT",A),process.on("SIGTERM",A),process.on("exit",B),F&&F.addEventListener("abort",A)},k=()=>{process.removeListener("uncaughtExceptionMonitor",N),process.removeListener("unhandledRejection",N),process.removeListener("SIGINT",A),process.removeListener("SIGTERM",A),process.removeListener("exit",B),F&&F.removeEventListener("abort",A)},C=()=>{if(I===void 0)return;K&&U.write(`
`);let p=_$(I,w,{hard:!0,trim:!1}).split(`
`);p.length>1&&U.write(n2.cursor.up(p.length-1)),U.write(n2.cursor.to(0)),U.write(n2.erase.down())},b=(p)=>p.replace(/\.+$/,""),y=(p)=>{let a=(performance.now()-p)/1000,R=Math.floor(a/60),O=Math.floor(a%60);return R>0?`[${R}m ${O}s]`:`[${O}s]`},T=W.withGuide??H0.withGuide,h=(p="")=>{q=!0,Z=Dw({output:U}),V=b(p),H=performance.now(),T&&U.write(`${o("gray",bD)}
`);let a=0,R=0;v(),z=setInterval(()=>{if(K&&V===I)return;C(),I=V;let O=j(X[a]),L;if(K)L=`${O} ${V}...`;else if(D==="timer")L=`${O} ${V} ${y(H)}`;else{let f=".".repeat(Math.floor(R)).slice(0,3);L=`${O} ${V}${f}`}let E=_$(L,w,{hard:!0,trim:!1});U.write(E),a=a+1<X.length?a+1:0,R=R<4?R+0.125:0},Q)},c=(p="",a=0,R=!1)=>{if(!q)return;q=!1,clearInterval(z),C();let O=a===0?o("green",cX):a===1?o("red",Ww):o("red",Kw);V=p??V,R||(D==="timer"?U.write(`${O} ${V} ${y(H)}
`):U.write(`${O} ${V}
`)),k(),Z()};return{start:h,stop:(p="")=>c(p,0),message:(p="")=>{V=b(p??V)},cancel:(p="")=>c(p,1),error:(p="")=>c(p,2),clear:()=>c("",0,!0),get isCancelled(){return G}}},kZD,Ny,C7=(D,$)=>D.includes(`
`)?D.split(`
`).map((U)=>$(U)).join(`
`):$(D),Zw=(D)=>{let $=(J,Y)=>{if(J===void 0)return"";let X=J.label??String(J.value);switch(Y){case"disabled":return`${o("gray",k7)} ${C7(X,(Q)=>o("gray",Q))}${J.hint?` ${o("dim",`(${J.hint??"disabled"})`)}`:""}`;case"selected":return`${C7(X,(Q)=>o("dim",Q))}`;case"active":return`${o("green",lX)} ${X}${J.hint?` ${o("dim",`(${J.hint})`)}`:""}`;case"cancelled":return`${C7(X,(Q)=>o(["strikethrough","dim"],Q))}`;default:return`${o("dim",k7)} ${C7(X,(Q)=>o("dim",Q))}`}},U=D.showInstructions??!0;return new Qw({options:D.options,signal:D.signal,input:D.input,output:D.output,initialValue:D.initialValue,render(){let J=D.withGuide??H0.withGuide,Y=`${u7(this.state)} `,X=`${By(this.state)} `,Q=p2(D.output,D.message,X,Y),F=`${J?`${o("gray",bD)}
`:""}${Q}
`;switch(this.state){case"submit":{let W=J?`${o("gray",bD)} `:"",K=p2(D.output,$(this.options[this.cursor],"selected"),W);return`${F}${K}`}case"cancel":{let W=J?`${o("gray",bD)} `:"",K=p2(D.output,$(this.options[this.cursor],"cancelled"),W);return`${F}${K}${J?`
${o("gray",bD)}`:""}`}default:{let W=J?`${o("cyan",bD)} `:"",K=F.split(`
`).length,Z=U?wy(Ny,J):J?[o("cyan",z$)]:[],z=Z.join(`
`),q=Z.length+1;return`${F}${W}${Oy({output:D.output,cursor:this.cursor,options:this.options,maxItems:D.maxItems,columnPadding:W.length,rowPadding:K+q,style:(G,V)=>$(G,G.disabled?"disabled":V?"active":"inactive")}).join(`
${W}`)}
${z}
`}}}}).prompt()},uZD,_ZD=(D)=>new yX({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??H0.withGuide,U=`${`${$?`${o("gray",bD)}
`:""}${u7(this.state)} `}${D.message}
`,J=D.placeholder&&D.placeholder.length>0?o("inverse",D.placeholder[0])+o("dim",D.placeholder.slice(1)):o(["inverse","hidden"],"_"),Y=this.userInput?this.userInputWithCursor:J,X=this.value??"";switch(this.state){case"error":{let Q=this.error?` ${o("yellow",this.error)}`:"",F=$?`${o("yellow",bD)} `:"",W=$?o("yellow",z$):"";return`${U.trim()}
${F}${Y}
${W}${Q}
`}case"submit":{let Q=X?` ${o("dim",X)}`:"",F=$?o("gray",bD):"";return`${U}${F}${Q}`}case"cancel":{let Q=X?` ${o(["strikethrough","dim"],X)}`:"",F=$?o("gray",bD):"";return`${U}${F}${Q}${X.trim()?`
${F}`:""}`}default:{let Q=$?`${o("cyan",bD)} `:"",F=$?o("cyan",z$):"";return`${U}${Q}${Y}
${F}
`}}}}).prompt();var g$=_(()=>{hX();hX();PX();AX();n2=K6(bX(),1);mX=Wy(),Zy=hD("◆","*"),Ww=hD("■","x"),Kw=hD("▲","x"),cX=hD("◇","o"),zy=hD("┌","T"),bD=hD("│","|"),z$=hD("└","—"),OZD=hD("┐","T"),jZD=hD("┘","—"),lX=hD("●",">"),k7=hD("○"," "),NZD=hD("◻","[•]"),LZD=hD("◼","[+]"),RZD=hD("◻","[ ]"),qy=hD("▪","•"),MZD=hD("─","-"),AZD=hD("╮","+"),vZD=hD("├","+"),EZD=hD("╯","+"),TZD=hD("╰","+"),PZD=hD("╭","+"),Gy=hD("●","•"),Vy=hD("◆","*"),Hy=hD("▲","!"),Iy=hD("■","x");SZD=[`${o("dim","↑/↓")} to navigate`,`${o("dim","Space:")} select`,`${o("dim","Enter:")} confirm`],gD={message:(D=[],{symbol:$=o("gray",bD),secondarySymbol:U=o("gray",bD),output:J=process.stdout,spacing:Y=1,withGuide:X}={})=>{let Q=[],F=X??H0.withGuide,W=F?U:"",K=F?`${$} `:"",Z=F?`${U} `:"";for(let q=0;q<Y;q++)Q.push(W);let z=Array.isArray(D)?D:D.split(`
`);if(z.length>0){let[q,...G]=z;q.length>0?Q.push(`${K}${q}`):Q.push(F?$:"");for(let V of G)V.length>0?Q.push(`${Z}${V}`):Q.push(F?U:"")}J.write(`${Q.join(`
`)}
`)},info:(D,$)=>{gD.message(D,{...$,symbol:o("blue",Gy)})},success:(D,$)=>{gD.message(D,{...$,symbol:o("green",Vy)})},step:(D,$)=>{gD.message(D,{...$,symbol:o("green",cX)})},warn:(D,$)=>{gD.message(D,{...$,symbol:o("yellow",Hy)})},warning:(D,$)=>{gD.warn(D,$)},error:(D,$)=>{gD.message(D,{...$,symbol:o("red",Iy)})}},kZD={light:hD("─","-"),heavy:hD("━","="),block:hD("█","#")},Ny=[`${o("dim","↑/↓")} to navigate`,`${o("dim","Enter:")} confirm`],uZD=`${o("gray",bD)} `});function x7(D,$){if(isNaN(D)||isNaN($))throw Error("Cannot compare against non-numbers");return D===$?0:D<$?-1:1}function Gw(D=[],$=[]){if(D.length&&!$.length)return-1;if(!D.length&&$.length)return 1;return 0}function g7(D=[],$=[]){let U=Math.max(D.length,$.length);for(let J=0;J<U;J++){let Y=D[J],X=$[J];if(Y===void 0&&X===void 0)return 0;if(X===void 0)return 1;if(Y===void 0)return-1;if(typeof Y==="string"&&typeof X==="number")return 1;if(typeof Y==="number"&&typeof X==="string")return-1;if(Y<X)return-1;if(Y>X)return 1}return 0}function iX(D){return typeof D==="number"&&!Number.isNaN(D)&&(!Number.isFinite(D)||0<=D&&D<=Number.MAX_SAFE_INTEGER)}function $6(D){return D.split(".").filter(Boolean).map(($)=>{if(Ay.test($)){let U=Number($);if(iX(U))return U}return $})}function a6(D){return D.split(".").filter(Boolean)}function y7(D,$){let U=Number(D);if(!iX(U))throw TypeError($);return U}function q$(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 c4="0|[1-9]\\d*",Ly="\\d*[a-zA-Z-][a-zA-Z0-9-]*",Ry,zw,Vw,qw="[0-9A-Za-z-]+",Hw,Iw,Bw,ww="(?:<|>)?=?",My="x|X|\\*",dX,f7,Ow,jw,pX=256,Ay;var Z6=_(()=>{Ry=`(?<major>${c4})\\.(?<minor>${c4})\\.(?<patch>${c4})`,zw=`(?:${c4}|${Ly})`,Vw=`(?:-(?<prerelease>${zw}(?:\\.${zw})*))`,Hw=`(?:\\+(?<buildmetadata>${qw}(?:\\.${qw})*))`,Iw=`v?${Ry}${Vw}?${Hw}?`,Bw=new RegExp(`^${Iw}$`),dX=`${c4}|${My}`,f7=`[v=\\s]*(?<major>${dX})(?:\\.(?<minor>${dX})(?:\\.(?<patch>${dX})${Vw}?${Hw}?)?)?`,Ow=new RegExp(`^(?<operator>~>?|\\^|${ww})\\s*${f7}$`),jw=new RegExp(`^(?<operator>${ww})\\s*(${Iw})$|^$`);Ay=new RegExp(`^${c4}$`)});function f0(D,$){if(D===$)return 0;return x7(D.major,$.major)||x7(D.minor,$.minor)||x7(D.patch,$.patch)||Gw(D.prerelease,$.prerelease)||g7(D.prerelease,$.prerelease)}var A6=_(()=>{Z6()});function lZD(D,$){let U=D.prerelease?.length||$.prerelease?.length;if(D.major!==$.major)return U?"premajor":"major";if(D.minor!==$.minor)return U?"preminor":"minor";if(D.patch!==$.patch)return U?"prepatch":"patch";if(g7(D.prerelease,$.prerelease)!==0)return"prerelease"}var Nw=_(()=>{Z6()});function nX(D){return D.toFixed(0)}function rX(D){let $=nX(D.major),U=nX(D.minor),J=nX(D.patch),Y=D.prerelease?.join(".")??"",X=D.build?.join(".")??"";return[[`${$}.${U}.${J}`,Y].filter((W)=>W).join("-"),X].filter((W)=>W).join("+")}function vy(D,$){if(q$($))return!0;let U=f0(D,$);switch($.operator){case"=":case void 0:return U===0;case"!=":return U!==0;case">":return U>0;case"<":return U<0;case">=":return U>=0;case"<=":return U<=0}}function h7(D,$){for(let U of $)if(!vy(D,U))return!1;if(!D.prerelease?.length)return!0;for(let U of $){if(q$(U))continue;if(!U.prerelease?.length)continue;let{major:J,minor:Y,patch:X}=U;if(D.major===J&&D.minor===Y&&D.patch===X)return!0}return!1}var m7=_(()=>{Z6();A6()});function o2(D,$){return $.some((U)=>h7(D,U))}var a2=_(()=>{m7()});function Ey(D=[]){let $=[...D],U=$.length;while(U>=0){let J=$[U];if(typeof J==="number"){$[U]=J+1;break}U-=1}if(U===-1)$.push(0);return $}function t2(D=[],$){let U=Ey(D);if(!$)return U;let J=$6($);if(J.every((Y)=>typeof Y==="string")){if(J.every((Y,X)=>Y===U[X])&&typeof U[J.length]==="number")return U;J=[...J,0]}return J}function tZD(D,$,U={}){let J=U.build!==void 0?a6(U.build):D.build??[];switch($){case"premajor":return{major:D.major+1,minor:0,patch:0,prerelease:t2(D.prerelease,U.prerelease),build:J};case"preminor":return{major:D.major,minor:D.minor+1,patch:0,prerelease:t2(D.prerelease,U.prerelease),build:J};case"prepatch":return{major:D.major,minor:D.minor,patch:D.patch+1,prerelease:t2(D.prerelease,U.prerelease),build:J};case"prerelease":{let X=(D.prerelease??[]).length===0?D.patch+1:D.patch;return{major:D.major,minor:D.minor,patch:X,prerelease:t2(D.prerelease,U.prerelease),build:J}}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:J};case"minor":{let X=(D.prerelease??[]).length===0||D.patch!==0?D.minor+1:D.minor;return{major:D.major,minor:X,patch:0,prerelease:[],build:J}}case"patch":{let X=(D.prerelease??[]).length===0?D.patch+1:D.patch;return{major:D.major,minor:D.minor,patch:X,prerelease:[],build:J}}case"pre":return{major:D.major,minor:D.minor,patch:D.patch,prerelease:t2(D.prerelease,U.prerelease),build:J};default:throw TypeError(`Cannot increment version: invalid argument ${$}`)}}var Lw=_(()=>{Z6()});var l7,d4;var s2=_(()=>{l7={major:Number.NaN,minor:Number.NaN,patch:Number.NaN,prerelease:[],build:[]},d4={operator:void 0,...l7}});var oX=_(()=>{s2();Z6()});function Ty(D,$){return f0(D,$)>0}var aX=_(()=>{A6()});var Rw=_(()=>{a2();aX()});function v1(D,$){return f0(D,$)<0}var tX=_(()=>{A6()});var Mw=_(()=>{a2();tX()});function Py(D){let U=D.match(jw)?.groups;if(!U)return null;let{operator:J}=U;return{operator:J||void 0,...l7}}function dD(D){return!D||D.toLowerCase()==="x"||D==="*"}function Sy(D){if(dD(D.major))return;if(dD(D.minor))return{operator:">=",major:+D.major,minor:0,patch:0,prerelease:[],build:[]};if(dD(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?$6(D.prerelease):[],build:[]}}function by(D){if(dD(D.major))return;if(dD(D.minor))return{operator:"<",major:+D.major+1,minor:0,patch:0,prerelease:[],build:[]};if(dD(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:$6(D.prerelease),build:[]};return{operator:"<=",major:+D.major,minor:+D.minor,patch:+D.patch,prerelease:[],build:[]}}function Cy(D){let $=D.match(new RegExp(`^${f7}`)),U=$?.groups;if(!U)return null;let J=$[0].length,Y=D.slice(J).match(/^\s+-\s+/);if(!Y)return null;let X=Y[0].length,F=D.slice(J+X).match(new RegExp(`^${f7}\\s*$`))?.groups,W=Sy(U),K=by(F);return[W,K].filter(Boolean)}function ky(D){let $=dD(D.major),U=dD(D.minor),J=dD(D.patch),Y=+D.major,X=+D.minor,Q=+D.patch;if($)return[d4];if(U)return[{operator:">=",major:Y,minor:0,patch:0},{operator:"<",major:Y+1,minor:0,patch:0}];if(J){if(Y===0)return[{operator:">=",major:Y,minor:X,patch:0},{operator:"<",major:Y,minor:X+1,patch:0}];return[{operator:">=",major:Y,minor:X,patch:0},{operator:"<",major:Y+1,minor:0,patch:0}]}let F=$6(D.prerelease??"");if(Y===0){if(X===0)return[{operator:">=",major:Y,minor:X,patch:Q,prerelease:F},{operator:"<",major:Y,minor:X,patch:Q+1}];return[{operator:">=",major:Y,minor:X,patch:Q,prerelease:F},{operator:"<",major:Y,minor:X+1,patch:0}]}return[{operator:">=",major:Y,minor:X,patch:Q,prerelease:F},{operator:"<",major:Y+1,minor:0,patch:0}]}function uy(D){let $=dD(D.major),U=dD(D.minor),J=dD(D.patch),Y=+D.major,X=+D.minor,Q=+D.patch;if($)return[d4];if(U)return[{operator:">=",major:Y,minor:0,patch:0},{operator:"<",major:Y+1,minor:0,patch:0}];if(J)return[{operator:">=",major:Y,minor:X,patch:0},{operator:"<",major:Y,minor:X+1,patch:0}];let F=$6(D.prerelease??"");return[{operator:">=",major:Y,minor:X,patch:Q,prerelease:F},{operator:"<",major:Y,minor:X+1,patch:0}]}function _y(D){let $=dD(D.major),U=dD(D.minor),J=dD(D.patch),Y=+D.major,X=+D.minor,Q=+D.patch;if($)return[{operator:"<",major:0,minor:0,patch:0}];if(U){if(J)return[{operator:"<",major:Y,minor:0,patch:0}];return[{operator:"<",major:Y,minor:0,patch:0}]}if(J)return[{operator:"<",major:Y,minor:X,patch:0}];let F=$6(D.prerelease??""),W=a6(D.build??"");return[{operator:"<",major:Y,minor:X,patch:Q,prerelease:F,build:W}]}function xy(D){let $=dD(D.minor),U=dD(D.patch),J=+D.major,Y=+D.minor,X=+D.patch;if($)return[{operator:"<",major:J+1,minor:0,patch:0}];if(U)return[{operator:"<",major:J,minor:Y+1,patch:0}];let Q=$6(D.prerelease??""),F=a6(D.build??"");return[{operator:"<=",major:J,minor:Y,patch:X,prerelease:Q,build:F}]}function gy(D){let $=dD(D.major),U=dD(D.minor),J=dD(D.patch),Y=+D.major,X=+D.minor,Q=+D.patch;if($)return[{operator:"<",major:0,minor:0,patch:0}];if(U)return[{operator:">=",major:Y+1,minor:0,patch:0}];if(J)return[{operator:">=",major:Y,minor:X+1,patch:0}];let F=$6(D.prerelease??""),W=a6(D.build??"");return[{operator:">",major:Y,minor:X,patch:Q,prerelease:F,build:W}]}function fy(D){let $=dD(D.major),U=dD(D.minor),J=dD(D.patch),Y=+D.major,X=+D.minor,Q=+D.patch;if($)return[d4];if(U)return[{operator:">=",major:Y,minor:0,patch:0}];if(J)return[{operator:">=",major:Y,minor:X,patch:0}];let F=$6(D.prerelease??""),W=a6(D.build??"");return[{operator:">=",major:Y,minor:X,patch:Q,prerelease:F,build:W}]}function yy(D){let $=dD(D.major),U=dD(D.minor),J=dD(D.patch),Y=+D.major,X=+D.minor,Q=+D.patch;if($)return[d4];if(U)return[{operator:">=",major:Y,minor:0,patch:0},{operator:"<",major:Y+1,minor:0,patch:0}];if(J)return[{operator:">=",major:Y,minor:X,patch:0},{operator:"<",major:Y,minor:X+1,patch:0}];let F=$6(D.prerelease??""),W=a6(D.build??"");return[{operator:D.operator==="="?"=":void 0,major:Y,minor:X,patch:Q,prerelease:F,build:W}]}function hy(D){let $=D.match(Ow)?.groups;if(!$)return Py(D);switch($.operator){case"^":return ky($);case"~":case"~>":return uy($);case"<":return _y($);case"<=":return xy($);case">":return gy($);case">=":return fy($);default:return yy($)}}function my(D){return D.split(/\s+/).flatMap(hy)}function c7(D){let $=D.replaceAll(/(?<=[<>=~^])(\s+)/g,"").split(/\s*\|\|\s*/).map((U)=>Cy(U)||my(U));if($.some((U)=>U.includes(null)))throw TypeError(`Cannot parse version range: range "${D}" is invalid`);return $}var sX=_(()=>{Z6();s2()});function x6(D){if(typeof D!=="string")throw TypeError(`Cannot parse version as version must be a string: received ${typeof D}`);if(D.length>pX)throw TypeError(`Cannot parse version as version length is too long: length is ${D.length}, max length is ${pX}`);D=D.trim();let $=D.match(Bw)?.groups;if(!$)throw TypeError(`Cannot parse version: ${D}`);let U=y7($.major,`Cannot parse version ${D}: invalid major version`),J=y7($.minor,`Cannot parse version ${D}: invalid minor version`),Y=y7($.patch,`Cannot parse version ${D}: invalid patch version`),X=$.prerelease?$6($.prerelease):[],Q=$.buildmetadata?a6($.buildmetadata):[];return{major:U,minor:J,patch:Y,prerelease:X,build:Q}}var d7=_(()=>{Z6();Z6()});function Aw(D,$){let U=D.operator,J=$.operator;if(U===void 0){if(q$(D))return!0;return o2(D,[[$]])}if(J===void 0){if(q$($))return!0;return o2($,[[D]])}let Y=f0(D,$);return(U===">="||U===">")&&(J===">="||J===">")||(U==="<="||U==="<")&&(J==="<="||J==="<")||Y===0&&((U===">="||U==="<=")&&(J===">="||J==="<="))||Y===-1&&(U===">="||U===">")&&(J==="<="||J==="<")||Y===1&&(U==="<="||U==="<")&&(J===">="||J===">")}function ly(D){return D.every(($)=>{return $.some((U)=>cy(U))})}function cy(D){for(let $=0;$<D.length-1;$++){let U=D[$];for(let J of D.slice($+1))if(!Aw(U,J))return!1}return!0}function vw(D,$){return ly([D,$])&&D.some((U)=>{return $.some((J)=>{return U.every((Y)=>{return J.every((X)=>Aw(Y,X))})})})}var Ew=_(()=>{Z6();A6();a2()});var Tw=_(()=>{sX()});var Pw=_(()=>{s2();s2();oX()});function e2(D){try{return x6(D),!0}catch{return!1}}var Sw=_(()=>{d7()});var bw=_(()=>{d7()});var Cw=_(()=>{Z6()});var kw=_(()=>{A6()});var uw=_(()=>{A6()});var _w=_(()=>{m7();Z6();A6()});function rzD(D,$){return f0(D,$)>=0}var xw=_(()=>{A6()});var gw=_(()=>{m7();Z6();A6()});var fw=_(()=>{A6()});var eX=_(()=>{A6();Nw();a2();Lw();oX();Rw();Mw();sX();d7();Ew();Tw();Pw();Sw();bw();Cw();kw();uw();aX();_w();xw();tX();gw();fw()});var U6=S((TqD,n7)=>{var yw,hw,mw,lw,cw,dw,iw,pw,nw,rw,ow,aw,tw,i7,DQ,sw,ew,DO,i4,$O,UO,JO,YO,XO,QO,FO,WO,KO,p7,ZO,zO,qO;(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(J){D(U($,U(J)))});else if(typeof n7==="object"&&typeof TqD==="object")D(U($,U(TqD)));else D(U($));function U(J,Y){if(J!==$)if(typeof Object.create==="function")Object.defineProperty(J,"__esModule",{value:!0});else J.__esModule=!0;return function(X,Q){return J[X]=Y?Y(X,Q):Q}}})(function(D){var $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,Q){X.__proto__=Q}||function(X,Q){for(var F in Q)if(Object.prototype.hasOwnProperty.call(Q,F))X[F]=Q[F]};yw=function(X,Q){if(typeof Q!=="function"&&Q!==null)throw TypeError("Class extends value "+String(Q)+" is not a constructor or null");$(X,Q);function F(){this.constructor=X}X.prototype=Q===null?Object.create(Q):(F.prototype=Q.prototype,new F)},hw=Object.assign||function(X){for(var Q,F=1,W=arguments.length;F<W;F++){Q=arguments[F];for(var K in Q)if(Object.prototype.hasOwnProperty.call(Q,K))X[K]=Q[K]}return X},mw=function(X,Q){var F={};for(var W in X)if(Object.prototype.hasOwnProperty.call(X,W)&&Q.indexOf(W)<0)F[W]=X[W];if(X!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var K=0,W=Object.getOwnPropertySymbols(X);K<W.length;K++)if(Q.indexOf(W[K])<0&&Object.prototype.propertyIsEnumerable.call(X,W[K]))F[W[K]]=X[W[K]]}return F},lw=function(X,Q,F,W){var K=arguments.length,Z=K<3?Q:W===null?W=Object.getOwnPropertyDescriptor(Q,F):W,z;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")Z=Reflect.decorate(X,Q,F,W);else for(var q=X.length-1;q>=0;q--)if(z=X[q])Z=(K<3?z(Z):K>3?z(Q,F,Z):z(Q,F))||Z;return K>3&&Z&&Object.defineProperty(Q,F,Z),Z},cw=function(X,Q){return function(F,W){Q(F,W,X)}},dw=function(X,Q,F,W,K,Z){function z(v){if(v!==void 0&&typeof v!=="function")throw TypeError("Function expected");return v}var q=W.kind,G=q==="getter"?"get":q==="setter"?"set":"value",V=!Q&&X?W.static?X:X.prototype:null,I=Q||(V?Object.getOwnPropertyDescriptor(V,W.name):{}),H,w=!1;for(var j=F.length-1;j>=0;j--){var B={};for(var N in W)B[N]=N==="access"?{}:W[N];for(var N in W.access)B.access[N]=W.access[N];B.addInitializer=function(v){if(w)throw TypeError("Cannot add initializers after decoration has completed");Z.push(z(v||null))};var A=(0,F[j])(q==="accessor"?{get:I.get,set:I.set}:I[G],B);if(q==="accessor"){if(A===void 0)continue;if(A===null||typeof A!=="object")throw TypeError("Object expected");if(H=z(A.get))I.get=H;if(H=z(A.set))I.set=H;if(H=z(A.init))K.unshift(H)}else if(H=z(A))if(q==="field")K.unshift(H);else I[G]=H}if(V)Object.defineProperty(V,W.name,I);w=!0},iw=function(X,Q,F){var W=arguments.length>2;for(var K=0;K<Q.length;K++)F=W?Q[K].call(X,F):Q[K].call(X);return W?F:void 0},pw=function(X){return typeof X==="symbol"?X:"".concat(X)},nw=function(X,Q,F){if(typeof Q==="symbol")Q=Q.description?"[".concat(Q.description,"]"):"";return Object.defineProperty(X,"name",{configurable:!0,value:F?"".concat(F," ",Q):Q})},rw=function(X,Q){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(X,Q)},ow=function(X,Q,F,W){function K(Z){return Z instanceof F?Z:new F(function(z){z(Z)})}return new(F||(F=Promise))(function(Z,z){function q(I){try{V(W.next(I))}catch(H){z(H)}}function G(I){try{V(W.throw(I))}catch(H){z(H)}}function V(I){I.done?Z(I.value):K(I.value).then(q,G)}V((W=W.apply(X,Q||[])).next())})},aw=function(X,Q){var F={label:0,sent:function(){if(Z[0]&1)throw Z[1];return Z[1]},trys:[],ops:[]},W,K,Z,z=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return z.next=q(0),z.throw=q(1),z.return=q(2),typeof Symbol==="function"&&(z[Symbol.iterator]=function(){return this}),z;function q(V){return function(I){return G([V,I])}}function G(V){if(W)throw TypeError("Generator is already executing.");while(z&&(z=0,V[0]&&(F=0)),F)try{if(W=1,K&&(Z=V[0]&2?K.return:V[0]?K.throw||((Z=K.return)&&Z.call(K),0):K.next)&&!(Z=Z.call(K,V[1])).done)return Z;if(K=0,Z)V=[V[0]&2,Z.value];switch(V[0]){case 0:case 1:Z=V;break;case 4:return F.label++,{value:V[1],done:!1};case 5:F.label++,K=V[1],V=[0];continue;case 7:V=F.ops.pop(),F.trys.pop();continue;default:if((Z=F.trys,!(Z=Z.length>0&&Z[Z.length-1]))&&(V[0]===6||V[0]===2)){F=0;continue}if(V[0]===3&&(!Z||V[1]>Z[0]&&V[1]<Z[3])){F.label=V[1];break}if(V[0]===6&&F.label<Z[1]){F.label=Z[1],Z=V;break}if(Z&&F.label<Z[2]){F.label=Z[2],F.ops.push(V);break}if(Z[2])F.ops.pop();F.trys.pop();continue}V=Q.call(X,F)}catch(I){V=[6,I],K=0}finally{W=Z=0}if(V[0]&5)throw V[1];return{value:V[0]?V[1]:void 0,done:!0}}},tw=function(X,Q){for(var F in X)if(F!=="default"&&!Object.prototype.hasOwnProperty.call(Q,F))p7(Q,X,F)},p7=Object.create?function(X,Q,F,W){if(W===void 0)W=F;var K=Object.getOwnPropertyDescriptor(Q,F);if(!K||("get"in K?!Q.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Q[F]}};Object.defineProperty(X,W,K)}:function(X,Q,F,W){if(W===void 0)W=F;X[W]=Q[F]},i7=function(X){var Q=typeof Symbol==="function"&&Symbol.iterator,F=Q&&X[Q],W=0;if(F)return F.call(X);if(X&&typeof X.length==="number")return{next:function(){if(X&&W>=X.length)X=void 0;return{value:X&&X[W++],done:!X}}};throw TypeError(Q?"Object is not iterable.":"Symbol.iterator is not defined.")},DQ=function(X,Q){var F=typeof Symbol==="function"&&X[Symbol.iterator];if(!F)return X;var W=F.call(X),K,Z=[],z;try{while((Q===void 0||Q-- >0)&&!(K=W.next()).done)Z.push(K.value)}catch(q){z={error:q}}finally{try{if(K&&!K.done&&(F=W.return))F.call(W)}finally{if(z)throw z.error}}return Z},sw=function(){for(var X=[],Q=0;Q<arguments.length;Q++)X=X.concat(DQ(arguments[Q]));return X},ew=function(){for(var X=0,Q=0,F=arguments.length;Q<F;Q++)X+=arguments[Q].length;for(var W=Array(X),K=0,Q=0;Q<F;Q++)for(var Z=arguments[Q],z=0,q=Z.length;z<q;z++,K++)W[K]=Z[z];return W},DO=function(X,Q,F){if(F||arguments.length===2){for(var W=0,K=Q.length,Z;W<K;W++)if(Z||!(W in Q)){if(!Z)Z=Array.prototype.slice.call(Q,0,W);Z[W]=Q[W]}}return X.concat(Z||Array.prototype.slice.call(Q))},i4=function(X){return this instanceof i4?(this.v=X,this):new i4(X)},$O=function(X,Q,F){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var W=F.apply(X,Q||[]),K,Z=[];return K=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),q("next"),q("throw"),q("return",z),K[Symbol.asyncIterator]=function(){return this},K;function z(j){return function(B){return Promise.resolve(B).then(j,H)}}function q(j,B){if(W[j]){if(K[j]=function(N){return new Promise(function(A,v){Z.push([j,N,A,v])>1||G(j,N)})},B)K[j]=B(K[j])}}function G(j,B){try{V(W[j](B))}catch(N){w(Z[0][3],N)}}function V(j){j.value instanceof i4?Promise.resolve(j.value.v).then(I,H):w(Z[0][2],j)}function I(j){G("next",j)}function H(j){G("throw",j)}function w(j,B){if(j(B),Z.shift(),Z.length)G(Z[0][0],Z[0][1])}},UO=function(X){var Q,F;return Q={},W("next"),W("throw",function(K){throw K}),W("return"),Q[Symbol.iterator]=function(){return this},Q;function W(K,Z){Q[K]=X[K]?function(z){return(F=!F)?{value:i4(X[K](z)),done:!1}:Z?Z(z):z}:Z}},JO=function(X){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var Q=X[Symbol.asyncIterator],F;return Q?Q.call(X):(X=typeof i7==="function"?i7(X):X[Symbol.iterator](),F={},W("next"),W("throw"),W("return"),F[Symbol.asyncIterator]=function(){return this},F);function W(Z){F[Z]=X[Z]&&function(z){return new Promise(function(q,G){z=X[Z](z),K(q,G,z.done,z.value)})}}function K(Z,z,q,G){Promise.resolve(G).then(function(V){Z({value:V,done:q})},z)}},YO=function(X,Q){if(Object.defineProperty)Object.defineProperty(X,"raw",{value:Q});else X.raw=Q;return X};var U=Object.create?function(X,Q){Object.defineProperty(X,"default",{enumerable:!0,value:Q})}:function(X,Q){X.default=Q},J=function(X){return J=Object.getOwnPropertyNames||function(Q){var F=[];for(var W in Q)if(Object.prototype.hasOwnProperty.call(Q,W))F[F.length]=W;return F},J(X)};XO=function(X){if(X&&X.__esModule)return X;var Q={};if(X!=null){for(var F=J(X),W=0;W<F.length;W++)if(F[W]!=="default")p7(Q,X,F[W])}return U(Q,X),Q},QO=function(X){return X&&X.__esModule?X:{default:X}},FO=function(X,Q,F,W){if(F==="a"&&!W)throw TypeError("Private accessor was defined without a getter");if(typeof Q==="function"?X!==Q||!W:!Q.has(X))throw TypeError("Cannot read private member from an object whose class did not declare it");return F==="m"?W:F==="a"?W.call(X):W?W.value:Q.get(X)},WO=function(X,Q,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 Q==="function"?X!==Q||!K:!Q.has(X))throw TypeError("Cannot write private member to an object whose class did not declare it");return W==="a"?K.call(X,F):K?K.value=F:Q.set(X,F),F},KO=function(X,Q){if(Q===null||typeof Q!=="object"&&typeof Q!=="function")throw TypeError("Cannot use 'in' operator on non-object");return typeof X==="function"?Q===X:X.has(Q)},ZO=function(X,Q,F){if(Q!==null&&Q!==void 0){if(typeof Q!=="object"&&typeof Q!=="function")throw TypeError("Object expected.");var W,K;if(F){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");W=Q[Symbol.asyncDispose]}if(W===void 0){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");if(W=Q[Symbol.dispose],F)K=W}if(typeof W!=="function")throw TypeError("Object not disposable.");if(K)W=function(){try{K.call(this)}catch(Z){return Promise.reject(Z)}};X.stack.push({value:Q,dispose:W,async:F})}else if(F)X.stack.push({async:!0});return Q};var Y=typeof SuppressedError==="function"?SuppressedError:function(X,Q,F){var W=Error(F);return W.name="SuppressedError",W.error=X,W.suppressed=Q,W};zO=function(X){function Q(Z){X.error=X.hasError?new Y(Z,X.error,"An error was suppressed during disposal."):Z,X.hasError=!0}var F,W=0;function K(){while(F=X.stack.pop())try{if(!F.async&&W===1)return W=0,X.stack.push(F),Promise.resolve().then(K);if(F.dispose){var Z=F.dispose.call(F.value);if(F.async)return W|=2,Promise.resolve(Z).then(K,function(z){return Q(z),K()})}else W|=1}catch(z){Q(z)}if(W===1)return X.hasError?Promise.reject(X.error):Promise.resolve();if(X.hasError)throw X.error}return K()},qO=function(X,Q){if(typeof X==="string"&&/^\.\.?\//.test(X))return X.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(F,W,K,Z,z){return W?Q?".jsx":".js":K&&(!Z||!z)?F:K+Z+"."+z.toLowerCase()+"js"});return X},D("__extends",yw),D("__assign",hw),D("__rest",mw),D("__decorate",lw),D("__param",cw),D("__esDecorate",dw),D("__runInitializers",iw),D("__propKey",pw),D("__setFunctionName",nw),D("__metadata",rw),D("__awaiter",ow),D("__generator",aw),D("__exportStar",tw),D("__createBinding",p7),D("__values",i7),D("__read",DQ),D("__spread",sw),D("__spreadArrays",ew),D("__spreadArray",DO),D("__await",i4),D("__asyncGenerator",$O),D("__asyncDelegator",UO),D("__asyncValues",JO),D("__makeTemplateObject",YO),D("__importStar",XO),D("__importDefault",QO),D("__classPrivateFieldGet",FO),D("__classPrivateFieldSet",WO),D("__classPrivateFieldIn",KO),D("__addDisposableResource",ZO),D("__disposeResources",zO),D("__rewriteRelativeImportExtension",qO)})});var HO=S((GO)=>{Object.defineProperty(GO,"__esModule",{value:!0});GO.resolveFetch=void 0;var dy=(D)=>{if(D)return(...$)=>D(...$);return(...$)=>fetch(...$)};GO.resolveFetch=dy});var $Q=S((jO)=>{Object.defineProperty(jO,"__esModule",{value:!0});jO.FunctionRegion=jO.FunctionsHttpError=jO.FunctionsRelayError=jO.FunctionsFetchError=jO.FunctionsError=void 0;class D9 extends Error{constructor(D,$="FunctionsError",U){super(D);this.name=$,this.context=U}toJSON(){return{name:this.name,message:this.message,context:this.context}}}jO.FunctionsError=D9;class BO extends D9{constructor(D){super("Failed to send a request to the Edge Function","FunctionsFetchError",D)}}jO.FunctionsFetchError=BO;class wO extends D9{constructor(D){super("Relay Error invoking the Edge Function","FunctionsRelayError",D)}}jO.FunctionsRelayError=wO;class OO extends D9{constructor(D){super("Edge Function returned a non-2xx status code","FunctionsHttpError",D)}}jO.FunctionsHttpError=OO;var IO;(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"})(IO||(jO.FunctionRegion=IO={}))});var AO=S((RO)=>{Object.defineProperty(RO,"__esModule",{value:!0});RO.FunctionsClient=void 0;var oy=U6(),ay=HO(),p4=$Q();class LO{constructor(D,{headers:$={},customFetch:U,region:J=p4.FunctionRegion.Any}={}){this.url=D,this.headers=$,this.region=J,this.fetch=(0,ay.resolveFetch)(U)}setAuth(D){this.headers.Authorization=`Bearer ${D}`}invoke(D){return oy.__awaiter(this,arguments,void 0,function*($,U={}){var J,Y;let X,Q,F;try{let{headers:W,method:K,body:Z,signal:z,timeout:q}=U,G={},{region:V}=U;if(!V)V=this.region;let I=new URL(`${this.url}/${$}`);if(V&&V!=="any")G["x-region"]=V,I.searchParams.set("forceFunctionRegion",V);let H,w=!!W&&Object.keys(W).some((k)=>k.toLowerCase()==="content-type");if(Z&&!w)if(typeof Blob<"u"&&Z instanceof Blob||Z instanceof ArrayBuffer)G["Content-Type"]="application/octet-stream",H=Z;else if(typeof Z==="string")G["Content-Type"]="text/plain",H=Z;else if(typeof FormData<"u"&&Z instanceof FormData)H=Z;else G["Content-Type"]="application/json",H=JSON.stringify(Z);else if(Z&&typeof Z!=="string"&&!(typeof Blob<"u"&&Z instanceof Blob)&&!(Z instanceof ArrayBuffer)&&!(typeof FormData<"u"&&Z instanceof FormData))H=JSON.stringify(Z);else H=Z;let j=z;if(q)if(Q=new AbortController,X=setTimeout(()=>Q.abort(),q),z)j=Q.signal,F=()=>Q.abort(),z.addEventListener("abort",F);else j=Q.signal;let B=yield this.fetch(I.toString(),{method:K||"POST",headers:Object.assign(Object.assign(Object.assign({},G),this.headers),W),body:H,signal:j}).catch((k)=>{throw new p4.FunctionsFetchError(k)}),N=B.headers.get("x-relay-error");if(N&&N==="true")throw new p4.FunctionsRelayError(B);if(!B.ok)throw new p4.FunctionsHttpError(B);let A=((J=B.headers.get("Content-Type"))!==null&&J!==void 0?J:"text/plain").split(";")[0].trim().toLowerCase(),v;if(A==="application/json")v=yield B.json();else if(A==="application/octet-stream"||A==="application/pdf")v=yield B.blob();else if(A==="text/event-stream")v=B;else if(A==="multipart/form-data")v=yield B.formData();else v=yield B.text();return{data:v,error:null,response:B}}catch(W){return{data:null,error:W,response:W instanceof p4.FunctionsHttpError||W instanceof p4.FunctionsRelayError?W.context:void 0}}finally{if(X)clearTimeout(X);if(F)(Y=U.signal)===null||Y===void 0||Y.removeEventListener("abort",F)}})}}RO.FunctionsClient=LO});var vO=S((f$)=>{Object.defineProperty(f$,"__esModule",{value:!0});f$.FunctionRegion=f$.FunctionsRelayError=f$.FunctionsHttpError=f$.FunctionsFetchError=f$.FunctionsError=f$.FunctionsClient=void 0;var ty=AO();Object.defineProperty(f$,"FunctionsClient",{enumerable:!0,get:function(){return ty.FunctionsClient}});var $9=$Q();Object.defineProperty(f$,"FunctionsError",{enumerable:!0,get:function(){return $9.FunctionsError}});Object.defineProperty(f$,"FunctionsFetchError",{enumerable:!0,get:function(){return $9.FunctionsFetchError}});Object.defineProperty(f$,"FunctionsHttpError",{enumerable:!0,get:function(){return $9.FunctionsHttpError}});Object.defineProperty(f$,"FunctionsRelayError",{enumerable:!0,get:function(){return $9.FunctionsRelayError}});Object.defineProperty(f$,"FunctionRegion",{enumerable:!0,get:function(){return $9.FunctionRegion}})});function TO(D,$){return new Promise((U)=>{if($===null||$===void 0?void 0:$.aborted){U();return}let J=setTimeout(()=>{$===null||$===void 0||$.removeEventListener("abort",Y),U()},D);function Y(){clearTimeout(J),U()}$===null||$===void 0||$.addEventListener("abort",Y)})}function Dh(D,$,U,J){if(!J||U>=3)return!1;if(!bO.includes(D))return!1;if(!ey.includes($))return!1;return!0}function U9(D){return U9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},U9(D)}function Yh(D,$){if(U9(D)!="object"||!D)return D;var U=D[Symbol.toPrimitive];if(U!==void 0){var J=U.call(D,$||"default");if(U9(J)!="object")return J;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}function Xh(D){var $=Yh(D,"string");return U9($)=="symbol"?$:$+""}function Qh(D,$,U){return($=Xh($))in D?Object.defineProperty(D,$,{value:U,enumerable:!0,configurable:!0,writable:!0}):D[$]=U,D}function SO(D,$){var U=Object.keys(D);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(D);$&&(J=J.filter(function(Y){return Object.getOwnPropertyDescriptor(D,Y).enumerable})),U.push.apply(U,J)}return U}function r7(D){for(var $=1;$<arguments.length;$++){var U=arguments[$]!=null?arguments[$]:{};$%2?SO(Object(U),!0).forEach(function(J){Qh(D,J,U[J])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(U)):SO(Object(U)).forEach(function(J){Object.defineProperty(D,J,Object.getOwnPropertyDescriptor(U,J))})}return D}var EO=(D)=>Math.min(1000*2**D,30000),ey,bO,UQ,$h=class{constructor(D){var $,U,J,Y,X;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=(U=D.isMaybeSingle)!==null&&U!==void 0?U:!1,this.shouldStripNulls=(J=D.shouldStripNulls)!==null&&J!==void 0?J:!1,this.urlLengthLimit=(Y=D.urlLengthLimit)!==null&&Y!==void 0?Y:8000,this.retryEnabled=(X=D.retry)!==null&&X!==void 0?X:!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 U=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 Q=this.headers.get("Accept");if(Q==="application/vnd.pgrst.object+json")this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped");else if(!Q||Q==="application/json")this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}let J=this.fetch,X=(async()=>{let Q=0;while(!0){let K={};if(U.headers.forEach((z,q)=>{K[q]=z}),Q>0)K["X-Retry-Count"]=String(Q);let Z;try{Z=await J(U.url.toString(),{method:U.method,headers:K,body:JSON.stringify(U.body,(z,q)=>typeof q==="bigint"?q.toString():q),signal:U.signal})}catch(z){if((z===null||z===void 0?void 0:z.name)==="AbortError"||(z===null||z===void 0?void 0:z.code)==="ABORT_ERR")throw z;if(!bO.includes(U.method))throw z;if(U.retryEnabled&&Q<3){let q=EO(Q);Q++,await TO(q,U.signal);continue}throw z}if(Dh(U.method,Z.status,Q,U.retryEnabled)){var F,W;let z=(F=(W=Z.headers)===null||W===void 0?void 0:W.get("Retry-After"))!==null&&F!==void 0?F:null,q=z!==null?Math.max(0,parseInt(z,10)||0)*1000:EO(Q);await Z.text(),Q++,await TO(q,U.signal);continue}return await U.processResponse(Z)}})();if(!this.shouldThrowOnError)X=X.catch((Q)=>{var F;let W="",K="",Z="",z=Q===null||Q===void 0?void 0:Q.cause;if(z){var q,G,V,I;let j=(q=z===null||z===void 0?void 0:z.message)!==null&&q!==void 0?q:"",B=(G=z===null||z===void 0?void 0:z.code)!==null&&G!==void 0?G:"";if(W=`${(V=Q===null||Q===void 0?void 0:Q.name)!==null&&V!==void 0?V:"FetchError"}: ${Q===null||Q===void 0?void 0:Q.message}`,W+=`
Caused by: ${(I=z===null||z===void 0?void 0:z.name)!==null&&I!==void 0?I:"Error"}: ${j}`,B)W+=` (${B})`;if(z===null||z===void 0?void 0:z.stack)W+=`
${z.stack}`}else{var H;W=(H=Q===null||Q===void 0?void 0:Q.stack)!==null&&H!==void 0?H:""}let w=this.url.toString().length;if((Q===null||Q===void 0?void 0:Q.name)==="AbortError"||(Q===null||Q===void 0?void 0:Q.code)==="ABORT_ERR"){if(Z="",K="Request was aborted (timeout or manual cancellation)",w>this.urlLengthLimit)K+=`. Note: Your request URL is ${w} 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((z===null||z===void 0?void 0:z.name)==="HeadersOverflowError"||(z===null||z===void 0?void 0:z.code)==="UND_ERR_HEADERS_OVERFLOW"){if(Z="",K="HTTP headers exceeded server limits (typically 16KB)",w>this.urlLengthLimit)K+=`. Your request URL is ${w} 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=Q===null||Q===void 0?void 0:Q.name)!==null&&F!==void 0?F:"FetchError"}: ${Q===null||Q===void 0?void 0:Q.message}`,details:W,hint:K,code:Z},data:null,count:null,status:0,statusText:""}});return X.then(D,$)}async processResponse(D){var $=this;let U=null,J=null,Y=null,X=D.status,Q=D.statusText;if(D.ok){var F,W;if($.method!=="HEAD"){var K;let q=await D.text();if(q==="");else if($.headers.get("Accept")==="text/csv")J=q;else if($.headers.get("Accept")&&((K=$.headers.get("Accept"))===null||K===void 0?void 0:K.includes("application/vnd.pgrst.plan+text")))J=q;else try{J=JSON.parse(q)}catch(G){if(U={message:q},J=null,$.shouldThrowOnError)throw new UQ({message:q,details:"",hint:"",code:""})}}let Z=(F=$.headers.get("Prefer"))===null||F===void 0?void 0:F.match(/count=(exact|planned|estimated)/),z=(W=D.headers.get("content-range"))===null||W===void 0?void 0:W.split("/");if(Z&&z&&z.length>1)Y=parseInt(z[1]);if($.isMaybeSingle&&Array.isArray(J))if(J.length>1)U={code:"PGRST116",details:`Results contain ${J.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},J=null,Y=null,X=406,Q="Not Acceptable";else if(J.length===1)J=J[0];else J=null}else{let Z=await D.text();try{if(U=JSON.parse(Z),Array.isArray(U)&&D.status===404)J=[],U=null,X=200,Q="OK"}catch(z){if(D.status===404&&Z==="")X=204,Q="No Content";else U={message:Z}}if(U&&$.shouldThrowOnError)throw new UQ(U)}return{success:U===null,error:U,data:J,count:Y,status:X,statusText:Q}}returns(){return this}overrideTypes(){return this}},Uh,PO,n4,Jh=class{constructor(D,{headers:$={},schema:U,fetch:J,urlLengthLimit:Y=8000,retry:X}){this.url=D,this.headers=new Headers($),this.schema=U,this.fetch=J,this.urlLengthLimit=Y,this.retry=X}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(D,$){let{head:U=!1,count:J}=$!==null&&$!==void 0?$:{},Y=U?"HEAD":"GET",X=!1,Q=(D!==null&&D!==void 0?D:"*").split("").map((K)=>{if(/\s/.test(K)&&!X)return"";if(K==='"')X=!X;return K}).join(""),{url:F,headers:W}=this.cloneRequestState();if(F.searchParams.set("select",Q),J)W.append("Prefer",`count=${J}`);return new n4({method:Y,url:F,headers:W,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(D,{count:$,defaultToNull:U=!0}={}){var J;let Y="POST",{url:X,headers:Q}=this.cloneRequestState();if($)Q.append("Prefer",`count=${$}`);if(!U)Q.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}"`);X.searchParams.set("columns",W.join(","))}}return new n4({method:"POST",url:X,headers:Q,schema:this.schema,body:D,fetch:(J=this.fetch)!==null&&J!==void 0?J:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(D,{onConflict:$,ignoreDuplicates:U=!1,count:J,defaultToNull:Y=!0}={}){var X;let Q="POST",{url:F,headers:W}=this.cloneRequestState();if(W.append("Prefer",`resolution=${U?"ignore":"merge"}-duplicates`),$!==void 0)F.searchParams.set("on_conflict",$);if(J)W.append("Prefer",`count=${J}`);if(!Y)W.append("Prefer","missing=default");if(Array.isArray(D)){let K=D.reduce((Z,z)=>Z.concat(Object.keys(z)),[]);if(K.length>0){let Z=[...new Set(K)].map((z)=>`"${z}"`);F.searchParams.set("columns",Z.join(","))}}return new n4({method:"POST",url:F,headers:W,schema:this.schema,body:D,fetch:(X=this.fetch)!==null&&X!==void 0?X:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(D,{count:$}={}){var U;let J="PATCH",{url:Y,headers:X}=this.cloneRequestState();if($)X.append("Prefer",`count=${$}`);return new n4({method:"PATCH",url:Y,headers:X,schema:this.schema,body:D,fetch:(U=this.fetch)!==null&&U!==void 0?U:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:D}={}){var $;let U="DELETE",{url:J,headers:Y}=this.cloneRequestState();if(D)Y.append("Prefer",`count=${D}`);return new n4({method:"DELETE",url:J,headers:Y,schema:this.schema,fetch:($=this.fetch)!==null&&$!==void 0?$:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}},CO=class D{constructor($,{headers:U={},schema:J,fetch:Y,timeout:X,urlLengthLimit:Q=8000,retry:F}={}){this.url=$,this.headers=new Headers(U),this.schemaName=J,this.urlLengthLimit=Q;let W=Y!==null&&Y!==void 0?Y:globalThis.fetch;if(X!==void 0&&X>0)this.fetch=(K,Z)=>{let z=new AbortController,q=setTimeout(()=>z.abort(),X),G=Z===null||Z===void 0?void 0:Z.signal;if(G){if(G.aborted)return clearTimeout(q),W(K,Z);let V=()=>{clearTimeout(q),z.abort()};return G.addEventListener("abort",V,{once:!0}),W(K,r7(r7({},Z),{},{signal:z.signal})).finally(()=>{clearTimeout(q),G.removeEventListener("abort",V)})}return W(K,r7(r7({},Z),{},{signal:z.signal})).finally(()=>clearTimeout(q))};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 Jh(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($,U={},{head:J=!1,get:Y=!1,count:X}={}){var Q;let F,W=new URL(`${this.url}/rpc/${$}`),K,Z=(G)=>G!==null&&typeof G==="object"&&(!Array.isArray(G)||G.some(Z)),z=J&&Object.values(U).some(Z);if(z)F="POST",K=U;else if(J||Y)F=J?"HEAD":"GET",Object.entries(U).filter(([G,V])=>V!==void 0).map(([G,V])=>[G,Array.isArray(V)?`{${V.join(",")}}`:`${V}`]).forEach(([G,V])=>{W.searchParams.append(G,V)});else F="POST",K=U;let q=new Headers(this.headers);if(z)q.set("Prefer",X?`count=${X},return=minimal`:"return=minimal");else if(X)q.set("Prefer",`count=${X}`);return new n4({method:F,url:W,headers:q,schema:this.schemaName,body:K,fetch:(Q=this.fetch)!==null&&Q!==void 0?Q:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};var kO=_(()=>{ey=[520,503],bO=["GET","HEAD","OPTIONS"],UQ=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}}};Uh=class extends $h{throwOnError(){return super.throwOnError()}select(D){let $=!1,U=(D!==null&&D!==void 0?D:"*").split("").map((J)=>{if(/\s/.test(J)&&!$)return"";if(J==='"')$=!$;return J}).join("");return this.url.searchParams.set("select",U),this.headers.append("Prefer","return=representation"),this}order(D,{ascending:$=!0,nullsFirst:U,foreignTable:J,referencedTable:Y=J}={}){let X=Y?`${Y}.order`:"order",Q=this.url.searchParams.get(X);return this.url.searchParams.set(X,`${Q?`${Q},`:""}${D}.${$?"asc":"desc"}${U===void 0?"":U?".nullsfirst":".nullslast"}`),this}limit(D,{foreignTable:$,referencedTable:U=$}={}){let J=typeof U>"u"?"limit":`${U}.limit`;return this.url.searchParams.set(J,`${D}`),this}range(D,$,{foreignTable:U,referencedTable:J=U}={}){let Y=typeof J>"u"?"offset":`${J}.offset`,X=typeof J>"u"?"limit":`${J}.limit`;return this.url.searchParams.set(Y,`${D}`),this.url.searchParams.set(X,`${$-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:U=!1,buffers:J=!1,wal:Y=!1,format:X="text"}={}){var Q;let F=[D?"analyze":null,$?"verbose":null,U?"settings":null,J?"buffers":null,Y?"wal":null].filter(Boolean).join("|"),W=(Q=this.headers.get("Accept"))!==null&&Q!==void 0?Q:"application/json";if(this.headers.set("Accept",`application/vnd.pgrst.plan+${X}; for="${W}"; options=${F};`),X==="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}},PO=new RegExp("[,()]"),n4=class extends Uh{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 U=Array.from(new Set($)).map((J)=>{if(typeof J==="string"&&PO.test(J))return`"${J}"`;else return`${J}`}).join(",");return this.url.searchParams.append(D,`in.(${U})`),this}notIn(D,$){let U=Array.from(new Set($)).map((J)=>{if(typeof J==="string"&&PO.test(J))return`"${J}"`;else return`${J}`}).join(",");return this.url.searchParams.append(D,`not.in.(${U})`),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:U,type:J}={}){let Y="";if(J==="plain")Y="pl";else if(J==="phrase")Y="ph";else if(J==="websearch")Y="w";let X=U===void 0?"":`(${U})`;return this.url.searchParams.append(D,`${Y}fts${X}.${$}`),this}match(D){return Object.entries(D).filter(([$,U])=>U!==void 0).forEach(([$,U])=>{this.url.searchParams.append($,`eq.${U}`)}),this}not(D,$,U){return this.url.searchParams.append(D,`not.${$}.${U}`),this}or(D,{foreignTable:$,referencedTable:U=$}={}){let J=U?`${U}.or`:"or";return this.url.searchParams.append(J,`(${D})`),this}filter(D,$,U){return this.url.searchParams.append(D,`${$}.${U}`),this}}});class JQ{constructor(){}connect(){}disconnect(){}}function Fh(D,$,U){let J=new URL($,D);if(U){for(let[Y,X]of Object.entries(U))if(X!==void 0)J.searchParams.set(Y,X)}return J.toString()}async function Wh(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 Kh(D){let $=D.fetchImpl??globalThis.fetch;return{async request({method:U,path:J,query:Y,body:X,headers:Q}){let F=Fh(D.baseUrl,J,Y),W=await Wh(D.auth),K=await $(F,{method:U,headers:{...X?{"Content-Type":"application/json"}:{},...W,...Q},body:X?JSON.stringify(X):void 0}),Z=await K.text(),z=(K.headers.get("content-type")||"").includes("application/json"),q=z&&Z?JSON.parse(Z):Z;if(!K.ok){let G=z?q:void 0,V=G?.error;throw new J9(V?.message??`Request failed with status ${K.status}`,{status:K.status,icebergType:V?.type,icebergCode:V?.code,details:G})}return{status:K.status,headers:K.headers,data:q}}}}function o7(D){return D.join("\x1F")}function r4(D){return D.join("\x1F")}var J9,Zh=class{constructor(D,$=""){this.client=D,this.prefix=$}async listNamespaces(D){let $=D?{parent:o7(D.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:$})).data.namespaces.map((J)=>({namespace:J}))}async createNamespace(D,$){let U={namespace:D.namespace,properties:$?.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:U})).data}async dropNamespace(D){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${o7(D.namespace)}`})}async loadNamespaceMetadata(D){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${o7(D.namespace)}`})).data.properties}}async namespaceExists(D){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${o7(D.namespace)}`}),!0}catch($){if($ instanceof J9&&$.status===404)return!1;throw $}}async createNamespaceIfNotExists(D,$){try{return await this.createNamespace(D,$)}catch(U){if(U instanceof J9&&U.status===409)return;throw U}}},zh=class{constructor(D,$="",U){this.client=D,this.prefix=$,this.accessDelegation=U}async listTables(D){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${r4(D.namespace)}/tables`})).data.identifiers}async createTable(D,$){let U={};if(this.accessDelegation)U["X-Iceberg-Access-Delegation"]=this.accessDelegation;return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${r4(D.namespace)}/tables`,body:$,headers:U})).data.metadata}async updateTable(D,$){let U=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${r4(D.namespace)}/tables/${D.name}`,body:$});return{"metadata-location":U.data["metadata-location"],metadata:U.data.metadata}}async dropTable(D,$){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${r4(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/${r4(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/${r4(D.namespace)}/tables/${D.name}`,headers:$}),!0}catch(U){if(U instanceof J9&&U.status===404)return!1;throw U}}async createTableIfNotExists(D,$){try{return await this.createTable(D,$)}catch(U){if(U instanceof J9&&U.status===409)return await this.loadTable({namespace:D.namespace,name:$.name});throw U}}},uO=class{constructor(D){let $="v1";if(D.catalogName)$+=`/${D.catalogName}`;let U=D.baseUrl.endsWith("/")?D.baseUrl:`${D.baseUrl}/`;this.client=Kh({baseUrl:U,auth:D.auth,fetchImpl:D.fetch}),this.accessDelegation=D.accessDelegation?.join(","),this.namespaceOps=new Zh(this.client,$),this.tableOps=new zh(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 _O=_(()=>{J9=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 X9(D){return X9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},X9(D)}function qh(D,$){if(X9(D)!="object"||!D)return D;var U=D[Symbol.toPrimitive];if(U!==void 0){var J=U.call(D,$||"default");if(X9(J)!="object")return J;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}function Gh(D){var $=qh(D,"string");return X9($)=="symbol"?$:$+""}function Vh(D,$,U){return($=Gh($))in D?Object.defineProperty(D,$,{value:U,enumerable:!0,configurable:!0,writable:!0}):D[$]=U,D}function xO(D,$){var U=Object.keys(D);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(D);$&&(J=J.filter(function(Y){return Object.getOwnPropertyDescriptor(D,Y).enumerable})),U.push.apply(U,J)}return U}function ZD(D){for(var $=1;$<arguments.length;$++){var U=arguments[$]!=null?arguments[$]:{};$%2?xO(Object(U),!0).forEach(function(J){Vh(D,J,U[J])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(U)):xO(Object(U)).forEach(function(J){Object.defineProperty(D,J,Object.getOwnPropertyDescriptor(U,J))})}return D}function e7(D){return typeof D==="object"&&D!==null&&"__isStorageError"in D}function t7(D,$,U){let J=ZD({},D),Y=$.toLowerCase();for(let X of Object.keys(J))if(X.toLowerCase()===Y)delete J[X];return J[Y]=U,J}function Hh(D){let $={};for(let[U,J]of Object.entries(D))$[U.toLowerCase()]=J;return $}async function Y9(D,$,U,J,Y,X,Q){return new Promise((F,W)=>{D(U,jh($,J,Y,X)).then((K)=>{if(!K.ok)throw K;if(J===null||J===void 0?void 0:J.noResolveJson)return K;if(Q==="vectors"){let Z=K.headers.get("content-type");if(K.headers.get("content-length")==="0"||K.status===204)return{};if(!Z||!Z.includes("application/json"))return{}}return K.json()}).then((K)=>F(K)).catch((K)=>Oh(K,W,J,Q))})}function mO(D="storage"){return{get:async($,U,J,Y)=>{return Y9($,"GET",U,J,Y,void 0,D)},post:async($,U,J,Y,X)=>{return Y9($,"POST",U,Y,X,J,D)},put:async($,U,J,Y,X)=>{return Y9($,"PUT",U,Y,X,J,D)},head:async($,U,J,Y)=>{return Y9($,"HEAD",U,ZD(ZD({},J),{},{noResolveJson:!0}),Y,void 0,D)},remove:async($,U,J,Y,X)=>{return Y9($,"DELETE",U,Y,X,J,D)}}}var s7,a7,yO,Ih=(D)=>{if(D)return(...$)=>D(...$);return(...$)=>fetch(...$)},Bh=(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)},XQ=(D)=>{if(Array.isArray(D))return D.map((U)=>XQ(U));else if(typeof D==="function"||D!==Object(D))return D;let $={};return Object.entries(D).forEach(([U,J])=>{let Y=U.replace(/([-_][a-z])/gi,(X)=>X.toUpperCase().replace(/[-_]/g,""));$[Y]=XQ(J)}),$},wh=(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)},hO=(D)=>D.split("/").map(encodeURIComponent).join("/"),gO=(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 U=$.error;if(typeof U.message==="string")return U.message}}return JSON.stringify(D)},Oh=async(D,$,U,J)=>{if(D!==null&&typeof D==="object"&&"json"in D&&typeof D.json==="function"){let Y=D,X=parseInt(String(Y.status),10);if(!Number.isFinite(X))X=500;Y.json().then((Q)=>{let F=(Q===null||Q===void 0?void 0:Q.statusCode)||(Q===null||Q===void 0?void 0:Q.code)||X+"";$(new a7(gO(Q),X,F,J))}).catch(()=>{let Q=X+"";$(new a7(Y.statusText||`HTTP ${X} error`,X,Q,J))})}else $(new yO(gO(D),D,J))},jh=(D,$,U,J)=>{let Y={method:D,headers:($===null||$===void 0?void 0:$.headers)||{}};if(D==="GET"||D==="HEAD"||!J)return ZD(ZD({},Y),U);if(Bh(J)){var X;let Q=($===null||$===void 0?void 0:$.headers)||{},F;for(let[W,K]of Object.entries(Q))if(W.toLowerCase()==="content-type")F=K;Y.headers=t7(Q,"Content-Type",(X=F)!==null&&X!==void 0?X:"application/json"),Y.body=JSON.stringify(J)}else Y.body=J;if($===null||$===void 0?void 0:$.duplex)Y.duplex=$.duplex;return ZD(ZD({},Y),U)},Nh,Q9,g6,QQ,Lh,F9,z6,o4=class{constructor(D,$={},U,J="storage"){this.shouldThrowOnError=!1,this.url=D,this.headers=Hh($),this.fetch=Ih(U),this.namespace=J}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(D,$){return this.headers=t7(this.headers,D,$),this}async handleOperation(D){var $=this;try{return{data:await D(),error:null}}catch(U){if($.shouldThrowOnError)throw U;if(e7(U))return{data:null,error:U};throw U}}},lO,Rh=class{constructor(D,$){this.downloadFn=D,this.shouldThrowOnError=$,this[lO]="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(e7($))return{data:null,error:$};throw $}}},cO,Mh=class{constructor(D,$){this.downloadFn=D,this.shouldThrowOnError=$,this[cO]="BlobDownloadBuilder",this.promise=null}asStream(){return new Rh(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(e7($))return{data:null,error:$};throw $}}},YQ,fO,Ah,vh="2.110.8",W9,Eh,Th,Ph,Sh,bh,Ch,kh,uh,dO;var iO=_(()=>{_O();s7=class extends Error{constructor(D,$="storage",U,J){super(D);this.__isStorageError=!0,this.namespace=$,this.name=$==="vectors"?"StorageVectorsError":"StorageError",this.status=U,this.statusCode=J}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};a7=class extends s7{constructor(D,$,U,J="storage"){super(D,J,$,U);this.name=J==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=$,this.statusCode=U}toJSON(){return ZD({},super.toJSON())}},yO=class extends s7{constructor(D,$,U="storage"){super(D,U);this.name=U==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=$}};Nh=mO("storage"),{get:Q9,post:g6,put:QQ,head:Lh,remove:F9}=Nh,z6=mO("vectors");lO=Symbol.toStringTag;cO=Symbol.toStringTag;YQ={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},fO={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1},Ah=class extends o4{constructor(D,$={},U,J){super(D,$,J,"storage");this.bucketId=U}async uploadOrUpdate(D,$,U,J){var Y=this;return Y.handleOperation(async()=>{let X,Q=ZD(ZD({},fO),J),F=ZD(ZD({},Y.headers),D==="POST"&&{"x-upsert":String(Q.upsert)}),W=Q.metadata;if(typeof Blob<"u"&&U instanceof Blob){if(X=new FormData,X.append("cacheControl",Q.cacheControl),W)X.append("metadata",Y.encodeMetadata(W));X.append("",U)}else if(typeof FormData<"u"&&U instanceof FormData){if(X=U,!X.has("cacheControl"))X.append("cacheControl",Q.cacheControl);if(W&&!X.has("metadata"))X.append("metadata",Y.encodeMetadata(W))}else{if(X=U,F["cache-control"]=`max-age=${Q.cacheControl}`,F["content-type"]=Q.contentType,W)F["x-metadata"]=Y.toBase64(Y.encodeMetadata(W));if((typeof ReadableStream<"u"&&X instanceof ReadableStream||X&&typeof X==="object"&&("pipe"in X)&&typeof X.pipe==="function")&&!Q.duplex)Q.duplex="half"}if(J===null||J===void 0?void 0:J.headers)for(let[q,G]of Object.entries(J.headers))F=t7(F,q,G);let K=Y._removeEmptyFolders($),Z=Y._getFinalPath(K),z=await(D=="PUT"?QQ:g6)(Y.fetch,`${Y.url}/object/${Z}`,X,ZD({headers:F},(Q===null||Q===void 0?void 0:Q.duplex)?{duplex:Q.duplex}:{}));return{path:K,id:z.Id,fullPath:z.Key}})}async upload(D,$,U){return this.uploadOrUpdate("POST",D,$,U)}async uploadToSignedUrl(D,$,U,J){var Y=this;let X=Y._removeEmptyFolders(D),Q=Y._getFinalPath(X),F=new URL(Y.url+`/object/upload/sign/${Q}`);return F.searchParams.set("token",$),Y.handleOperation(async()=>{let W,K=ZD(ZD({},fO),J),Z=ZD(ZD({},Y.headers),{"x-upsert":String(K.upsert)}),z=K.metadata;if(typeof Blob<"u"&&U instanceof Blob){if(W=new FormData,W.append("cacheControl",K.cacheControl),z)W.append("metadata",Y.encodeMetadata(z));W.append("",U)}else if(typeof FormData<"u"&&U instanceof FormData){if(W=U,!W.has("cacheControl"))W.append("cacheControl",K.cacheControl);if(z&&!W.has("metadata"))W.append("metadata",Y.encodeMetadata(z))}else{if(W=U,Z["cache-control"]=`max-age=${K.cacheControl}`,Z["content-type"]=K.contentType,z)Z["x-metadata"]=Y.toBase64(Y.encodeMetadata(z));if((typeof ReadableStream<"u"&&W instanceof ReadableStream||W&&typeof W==="object"&&("pipe"in W)&&typeof W.pipe==="function")&&!K.duplex)K.duplex="half"}if(J===null||J===void 0?void 0:J.headers)for(let[q,G]of Object.entries(J.headers))Z=t7(Z,q,G);return{path:X,fullPath:(await QQ(Y.fetch,F.toString(),W,ZD({headers:Z},(K===null||K===void 0?void 0:K.duplex)?{duplex:K.duplex}:{}))).Key}})}async createSignedUploadUrl(D,$){var U=this;return U.handleOperation(async()=>{let J=U._getFinalPath(D),Y=ZD({},U.headers);if($===null||$===void 0?void 0:$.upsert)Y["x-upsert"]="true";let X=await g6(U.fetch,`${U.url}/object/upload/sign/${J}`,{},{headers:Y}),Q=new URL(U.url+X.url),F=Q.searchParams.get("token");if(!F)throw new s7("No token returned by API");return{signedUrl:Q.toString(),path:D,token:F}})}async update(D,$,U){return this.uploadOrUpdate("PUT",D,$,U)}async move(D,$,U){var J=this;return J.handleOperation(async()=>{return await g6(J.fetch,`${J.url}/object/move`,{bucketId:J.bucketId,sourceKey:D,destinationKey:$,destinationBucket:U===null||U===void 0?void 0:U.destinationBucket},{headers:J.headers})})}async copy(D,$,U){var J=this;return J.handleOperation(async()=>{return{path:(await g6(J.fetch,`${J.url}/object/copy`,{bucketId:J.bucketId,sourceKey:D,destinationKey:$,destinationBucket:U===null||U===void 0?void 0:U.destinationBucket},{headers:J.headers})).Key}})}async createSignedUrl(D,$,U){var J=this;return J.handleOperation(async()=>{let Y=J._getFinalPath(D),X=typeof(U===null||U===void 0?void 0:U.transform)==="object"&&U.transform!==null&&Object.keys(U.transform).length>0,Q=await g6(J.fetch,`${J.url}/object/sign/${Y}`,ZD({expiresIn:$},X?{transform:U.transform}:{}),{headers:J.headers}),F=new URLSearchParams;if(U===null||U===void 0?void 0:U.download)F.set("download",U.download===!0?"":U.download);if((U===null||U===void 0?void 0:U.cacheNonce)!=null)F.set("cacheNonce",String(U.cacheNonce));let W=F.toString();return{signedUrl:encodeURI(`${J.url}${Q.signedURL}${W?`&${W}`:""}`)}})}async createSignedUrls(D,$,U){var J=this;return J.handleOperation(async()=>{let Y=await g6(J.fetch,`${J.url}/object/sign/${J.bucketId}`,{expiresIn:$,paths:D},{headers:J.headers}),X=new URLSearchParams;if(U===null||U===void 0?void 0:U.download)X.set("download",U.download===!0?"":U.download);if((U===null||U===void 0?void 0:U.cacheNonce)!=null)X.set("cacheNonce",String(U.cacheNonce));let Q=X.toString();return Y.map((F)=>ZD(ZD({},F),{},{signedUrl:F.signedURL?encodeURI(`${J.url}${F.signedURL}${Q?`&${Q}`:""}`):null}))})}download(D,$,U){let J=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 X=Y.toString(),Q=this._getFinalPath(D);return new Mh(()=>Q9(this.fetch,`${this.url}/${J}/${Q}${X?`?${X}`:""}`,{headers:this.headers,noResolveJson:!0},U),this.shouldThrowOnError)}async info(D){var $=this;let U=$._getFinalPath(D);return $.handleOperation(async()=>{return XQ(await Q9($.fetch,`${$.url}/object/info/${U}`,{headers:$.headers}))})}async exists(D){var $=this;let U=$._getFinalPath(D);try{return await Lh($.fetch,`${$.url}/object/${U}`,{headers:$.headers}),{data:!0,error:null}}catch(Y){if($.shouldThrowOnError)throw Y;if(e7(Y)){var J;let X=Y instanceof a7?Y.status:Y instanceof yO?(J=Y.originalError)===null||J===void 0?void 0:J.status:void 0;if(X!==void 0&&[400,404].includes(X))return{data:!1,error:Y}}throw Y}}getPublicUrl(D,$){let U=this._getFinalPath(D),J=new URLSearchParams;if($===null||$===void 0?void 0:$.download)J.set("download",$.download===!0?"":$.download);if($===null||$===void 0?void 0:$.transform)this.applyTransformOptsToQuery(J,$.transform);if(($===null||$===void 0?void 0:$.cacheNonce)!=null)J.set("cacheNonce",String($.cacheNonce));let Y=J.toString(),X=typeof($===null||$===void 0?void 0:$.transform)==="object"&&$.transform!==null&&Object.keys($.transform).length>0?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${X}/public/${U}`)+(Y?`?${Y}`:"")}}}async remove(D){var $=this;return $.handleOperation(async()=>{return await F9($.fetch,`${$.url}/object/${$.bucketId}`,{prefixes:D},{headers:$.headers})})}async purgeCache(D,$,U){var J=this;return J.handleOperation(async()=>{let Y=hO(J._getFinalPath(D)),X=new URLSearchParams;if($===null||$===void 0?void 0:$.transformations)X.set("transformations","true");let Q=X.toString();return await F9(J.fetch,`${J.url}/cdn/${Y}${Q?`?${Q}`:""}`,{},{headers:J.headers},U)})}async list(D,$,U){var J=this;return J.handleOperation(async()=>{let Y=($===null||$===void 0?void 0:$.sortBy)?ZD(ZD({},YQ.sortBy),$.sortBy):YQ.sortBy,X=ZD(ZD(ZD({},YQ),$),{},{sortBy:Y,prefix:D||""});return await g6(J.fetch,`${J.url}/object/list/${J.bucketId}`,X,{headers:J.headers},U)})}async listV2(D,$){var U=this;return U.handleOperation(async()=>{let J=ZD({},D);return await g6(U.fetch,`${U.url}/object/list-v2/${U.bucketId}`,J,{headers:U.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}},W9={"X-Client-Info":`storage-js/${vh}`},Eh=class extends o4{constructor(D,$={},U,J){let Y=new URL(D);if(J===null||J===void 0?void 0:J.useNewHostname){if(/supabase\.(co|in|red)$/.test(Y.hostname)&&!Y.hostname.includes("storage.supabase."))Y.hostname=Y.hostname.replace("supabase.","storage.supabase.")}let X=Y.href.replace(/\/$/,""),Q=ZD(ZD({},W9),$);super(X,Q,U,"storage")}async listBuckets(D){var $=this;return $.handleOperation(async()=>{let U=$.listBucketOptionsToQueryString(D);return await Q9($.fetch,`${$.url}/bucket${U}`,{headers:$.headers})})}async getBucket(D){var $=this;return $.handleOperation(async()=>{return await Q9($.fetch,`${$.url}/bucket/${D}`,{headers:$.headers})})}async createBucket(D,$={public:!1}){var U=this;return U.handleOperation(async()=>{return await g6(U.fetch,`${U.url}/bucket`,{id:D,name:D,type:$.type,public:$.public,file_size_limit:$.fileSizeLimit,allowed_mime_types:$.allowedMimeTypes},{headers:U.headers})})}async updateBucket(D,$){var U=this;return U.handleOperation(async()=>{return await QQ(U.fetch,`${U.url}/bucket/${D}`,{id:D,name:D,public:$.public,file_size_limit:$.fileSizeLimit,allowed_mime_types:$.allowedMimeTypes},{headers:U.headers})})}async emptyBucket(D){var $=this;return $.handleOperation(async()=>{return await g6($.fetch,`${$.url}/bucket/${D}/empty`,{},{headers:$.headers})})}async deleteBucket(D){var $=this;return $.handleOperation(async()=>{return await F9($.fetch,`${$.url}/bucket/${D}`,{},{headers:$.headers})})}async purgeBucketCache(D,$,U){var J=this;return J.handleOperation(async()=>{let Y=new URLSearchParams;if($===null||$===void 0?void 0:$.transformations)Y.set("transformations","true");let X=Y.toString();return await F9(J.fetch,`${J.url}/cdn/${hO(D)}${X?`?${X}`:""}`,{},{headers:J.headers},U)})}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():""}},Th=class extends o4{constructor(D,$={},U){let J=D.replace(/\/$/,""),Y=ZD(ZD({},W9),$);super(J,Y,U,"storage")}async createBucket(D){var $=this;return $.handleOperation(async()=>{return await g6($.fetch,`${$.url}/bucket`,{name:D},{headers:$.headers})})}async listBuckets(D){var $=this;return $.handleOperation(async()=>{let U=new URLSearchParams;if((D===null||D===void 0?void 0:D.limit)!==void 0)U.set("limit",D.limit.toString());if((D===null||D===void 0?void 0:D.offset)!==void 0)U.set("offset",D.offset.toString());if(D===null||D===void 0?void 0:D.sortColumn)U.set("sortColumn",D.sortColumn);if(D===null||D===void 0?void 0:D.sortOrder)U.set("sortOrder",D.sortOrder);if(D===null||D===void 0?void 0:D.search)U.set("search",D.search);let J=U.toString(),Y=J?`${$.url}/bucket?${J}`:`${$.url}/bucket`;return await Q9($.fetch,Y,{headers:$.headers})})}async deleteBucket(D){var $=this;return $.handleOperation(async()=>{return await F9($.fetch,`${$.url}/bucket/${D}`,{},{headers:$.headers})})}from(D){var $=this;if(!wh(D))throw new s7("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 U=new uO({baseUrl:this.url,catalogName:D,auth:{type:"custom",getHeaders:async()=>$.headers},fetch:this.fetch}),J=this.shouldThrowOnError;return new Proxy(U,{get(Y,X){let Q=Y[X];if(typeof Q!=="function")return Q;return async(...F)=>{try{return{data:await Q.apply(Y,F),error:null}}catch(W){if(J)throw W;return{data:null,error:W}}}}})}},Ph=class extends o4{constructor(D,$={},U){let J=D.replace(/\/$/,""),Y=ZD(ZD({},W9),{},{"Content-Type":"application/json"},$);super(J,Y,U,"vectors")}async createIndex(D){var $=this;return $.handleOperation(async()=>{return await z6.post($.fetch,`${$.url}/CreateIndex`,D,{headers:$.headers})||{}})}async getIndex(D,$){var U=this;return U.handleOperation(async()=>{return await z6.post(U.fetch,`${U.url}/GetIndex`,{vectorBucketName:D,indexName:$},{headers:U.headers})})}async listIndexes(D){var $=this;return $.handleOperation(async()=>{return await z6.post($.fetch,`${$.url}/ListIndexes`,D,{headers:$.headers})})}async deleteIndex(D,$){var U=this;return U.handleOperation(async()=>{return await z6.post(U.fetch,`${U.url}/DeleteIndex`,{vectorBucketName:D,indexName:$},{headers:U.headers})||{}})}},Sh=class extends o4{constructor(D,$={},U){let J=D.replace(/\/$/,""),Y=ZD(ZD({},W9),{},{"Content-Type":"application/json"},$);super(J,Y,U,"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 z6.post($.fetch,`${$.url}/PutVectors`,D,{headers:$.headers})||{}})}async getVectors(D){var $=this;return $.handleOperation(async()=>{return await z6.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 z6.post($.fetch,`${$.url}/ListVectors`,D,{headers:$.headers})})}async queryVectors(D){var $=this;return $.handleOperation(async()=>{return await z6.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 z6.post($.fetch,`${$.url}/DeleteVectors`,D,{headers:$.headers})||{}})}},bh=class extends o4{constructor(D,$={},U){let J=D.replace(/\/$/,""),Y=ZD(ZD({},W9),{},{"Content-Type":"application/json"},$);super(J,Y,U,"vectors")}async createBucket(D){var $=this;return $.handleOperation(async()=>{return await z6.post($.fetch,`${$.url}/CreateVectorBucket`,{vectorBucketName:D},{headers:$.headers})||{}})}async getBucket(D){var $=this;return $.handleOperation(async()=>{return await z6.post($.fetch,`${$.url}/GetVectorBucket`,{vectorBucketName:D},{headers:$.headers})})}async listBuckets(D={}){var $=this;return $.handleOperation(async()=>{return await z6.post($.fetch,`${$.url}/ListVectorBuckets`,D,{headers:$.headers})})}async deleteBucket(D){var $=this;return $.handleOperation(async()=>{return await z6.post($.fetch,`${$.url}/DeleteVectorBucket`,{vectorBucketName:D},{headers:$.headers})||{}})}},Ch=class extends bh{constructor(D,$={}){super(D,$.headers||{},$.fetch)}from(D){return new kh(this.url,this.headers,D,this.fetch)}async createBucket(D){var $=()=>super.createBucket,U=this;return $().call(U,D)}async getBucket(D){var $=()=>super.getBucket,U=this;return $().call(U,D)}async listBuckets(D={}){var $=()=>super.listBuckets,U=this;return $().call(U,D)}async deleteBucket(D){var $=()=>super.deleteBucket,U=this;return $().call(U,D)}},kh=class extends Ph{constructor(D,$,U,J){super(D,$,J);this.vectorBucketName=U}async createIndex(D){var $=()=>super.createIndex,U=this;return $().call(U,ZD(ZD({},D),{},{vectorBucketName:U.vectorBucketName}))}async listIndexes(D={}){var $=()=>super.listIndexes,U=this;return $().call(U,ZD(ZD({},D),{},{vectorBucketName:U.vectorBucketName}))}async getIndex(D){var $=()=>super.getIndex,U=this;return $().call(U,U.vectorBucketName,D)}async deleteIndex(D){var $=()=>super.deleteIndex,U=this;return $().call(U,U.vectorBucketName,D)}index(D){return new uh(this.url,this.headers,this.vectorBucketName,D,this.fetch)}},uh=class extends Sh{constructor(D,$,U,J,Y){super(D,$,Y);this.vectorBucketName=U,this.indexName=J}async putVectors(D){var $=()=>super.putVectors,U=this;return $().call(U,ZD(ZD({},D),{},{vectorBucketName:U.vectorBucketName,indexName:U.indexName}))}async getVectors(D){var $=()=>super.getVectors,U=this;return $().call(U,ZD(ZD({},D),{},{vectorBucketName:U.vectorBucketName,indexName:U.indexName}))}async listVectors(D={}){var $=()=>super.listVectors,U=this;return $().call(U,ZD(ZD({},D),{},{vectorBucketName:U.vectorBucketName,indexName:U.indexName}))}async queryVectors(D){var $=()=>super.queryVectors,U=this;return $().call(U,ZD(ZD({},D),{},{vectorBucketName:U.vectorBucketName,indexName:U.indexName}))}async deleteVectors(D){var $=()=>super.deleteVectors,U=this;return $().call(U,ZD(ZD({},D),{},{vectorBucketName:U.vectorBucketName,indexName:U.indexName}))}},dO=class extends Eh{constructor(D,$={},U,J){super(D,$,U,J)}from(D){return new Ah(this.url,this.headers,D,this.fetch)}get vectors(){return new Ch(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new Th(this.url+"/iceberg",this.headers,this.fetch)}}});class pO{constructor(D){return this.options=D,new Proxy(this,xh)}}var _h=()=>Promise.resolve({data:{session:null,user:null},error:null}),xh,FQ;var WQ=_(()=>{xh={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 _h}};FQ=class FQ extends pO{}});function dh(D,$,U,J){function Y(X){return X instanceof U?X:new U(function(Q){Q(X)})}return new(U||(U=Promise))(function(X,Q){function F(Z){try{K(J.next(Z))}catch(z){Q(z)}}function W(Z){try{K(J.throw(Z))}catch(z){Q(z)}}function K(Z){Z.done?X(Z.value):Y(Z.value).then(F,W)}K((J=J.apply(D,$||[])).next())})}function ph(){if(KQ===null)KQ=import(ih).catch(()=>null);return KQ}function nh(){return dh(this,void 0,void 0,function*(){try{let D=yield ph();if(!D||!D.propagation||!D.context)return null;let $={};D.propagation.inject(D.context.active(),$);let U=$.traceparent;if(!U)return null;return{traceparent:U,tracestate:$.tracestate,baggage:$.baggage}}catch(D){return null}})}function rh(D){if(!D||typeof D!=="string")return null;let $=D.split("-");if($.length!==4)return null;let[U,J,Y,X]=$;if(U.length!==2||J.length!==32||Y.length!==16||X.length!==2)return null;let Q=/^[0-9a-f]+$/i;if(!Q.test(U)||!Q.test(J)||!Q.test(Y)||!Q.test(X))return null;if(J==="00000000000000000000000000000000"||Y==="0000000000000000")return null;return{version:U,traceId:J,parentId:Y,traceFlags:X,isSampled:(parseInt(X,16)&1)===1}}function oh(D,$){if(!D||!$||$.length===0)return!1;let U;if(D instanceof URL)U=D;else try{U=new URL(D)}catch(J){return!1}for(let J of $)try{if(typeof J==="string"){if(ah(U.hostname,J))return!0}else if(J instanceof RegExp){if(J.test(U.hostname))return!0}else if(typeof J==="function"){if(J(U))return!0}}catch(Y){continue}return!1}function ah(D,$){if($===D)return!0;if($.startsWith("*.")){let U=$.slice(2);if(D.endsWith(U)){if(D===U||D.endsWith("."+U))return!0}}return!1}function th(D){let $=[];try{let U=new URL(D);$.push(U.hostname)}catch(U){}return $.push("*.supabase.co","*.supabase.in"),$.push("localhost","127.0.0.1","[::1]"),$}function q9(D){return q9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},q9(D)}function sh(D,$){if(q9(D)!="object"||!D)return D;var U=D[Symbol.toPrimitive];if(U!==void 0){var J=U.call(D,$||"default");if(q9(J)!="object")return J;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}function eh(D){var $=sh(D,"string");return q9($)=="symbol"?$:$+""}function Dm(D,$,U){return($=eh($))in D?Object.defineProperty(D,$,{value:U,enumerable:!0,configurable:!0,writable:!0}):D[$]=U,D}function nO(D,$){var U=Object.keys(D);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(D);$&&(J=J.filter(function(Y){return Object.getOwnPropertyDescriptor(D,Y).enumerable})),U.push.apply(U,J)}return U}function Y0(D){for(var $=1;$<arguments.length;$++){var U=arguments[$]!=null?arguments[$]:{};$%2?nO(Object(U),!0).forEach(function(J){Dm(D,J,U[J])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(U)):nO(Object(U)).forEach(function(J){Object.defineProperty(D,J,Object.getOwnPropertyDescriptor(U,J))})}return D}async function Xm(D,$,U){if(!oh(typeof D==="string"?D:D instanceof URL?D:D.url,$))return null;let J=await nh();if(!J||!J.traceparent)return null;if(U){let Y=rh(J.traceparent);if(Y&&!Y.isSampled)return null}return J}function aO(D){return typeof D==="boolean"?{enabled:D}:D}function Qm(D){return D.endsWith("/")?D:D+"/"}function Fm(D,$){var U,J,Y,X,Q,F;let{db:W,auth:K,realtime:Z,global:z}=D,{db:q,auth:G,realtime:V,global:I}=$,H=aO(D.tracePropagation),w=aO($.tracePropagation),j={db:Y0(Y0({},q),W),auth:Y0(Y0({},G),K),realtime:Y0(Y0({},V),Z),storage:{},global:Y0(Y0(Y0({},I),z),{},{headers:Y0(Y0({},(U=I===null||I===void 0?void 0:I.headers)!==null&&U!==void 0?U:{}),(J=z===null||z===void 0?void 0:z.headers)!==null&&J!==void 0?J:{})}),tracePropagation:{enabled:(Y=(X=H===null||H===void 0?void 0:H.enabled)!==null&&X!==void 0?X:w===null||w===void 0?void 0:w.enabled)!==null&&Y!==void 0?Y:!1,respectSamplingDecision:(Q=(F=H===null||H===void 0?void 0:H.respectSamplingDecision)!==null&&F!==void 0?F:w===null||w===void 0?void 0:w.respectSamplingDecision)!==null&&Q!==void 0?Q:!0},accessToken:async()=>""};if(D.accessToken)j.accessToken=D.accessToken;else delete j.accessToken;return j}function Wm(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(Qm($))}catch(U){throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}function zm(){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 U=$.match(/^v(\d+)\./);if(!U)return!1;return parseInt(U[1],10)<=20}var v6,gh="2.110.8",K9="",D3,Z9,z9,tO,fh,yh,hh,mh,lh,ch,KQ=null,ih="@opentelemetry/api",$m=(D)=>{if(D)return(...$)=>D(...$);return(...$)=>fetch(...$)},Um=()=>{return Headers},sO=(D)=>D.startsWith("sb_publishable_")||D.startsWith("sb_secret_"),Jm="sb_temp_",rO,Ym=(D)=>{var $,U;if(!D.startsWith("sb_")||sO(D)||D.startsWith(Jm))return;let J=($=(U=D.match(/^sb_[a-zA-Z0-9]+_/))===null||U===void 0?void 0:U[0])!==null&&$!==void 0?$:"unknown";if(rO.has(J))return;rO.add(J),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.")},oO=(D,$,U,J,Y,X)=>{let Q=$m(J),F=Um(),W=(Y===null||Y===void 0?void 0:Y.enabled)===!0,K=(Y===null||Y===void 0?void 0:Y.respectSamplingDecision)!==!1,Z=W?th($):null,z=!((X===null||X===void 0?void 0:X.omitApiKeyAsBearer)&&sO(D));return async(q,G)=>{let V=await U(),I=new F(G===null||G===void 0?void 0:G.headers);if(!I.has("apikey"))I.set("apikey",D);if(!I.has("Authorization")){let H=V!==null&&V!==void 0?V:z?D:null;if(H)I.set("Authorization",`Bearer ${H}`)}if(Z){let H=await Xm(q,Z,K);if(H){if(H.traceparent&&!I.has("traceparent"))I.set("traceparent",H.traceparent);if(H.tracestate&&!I.has("tracestate"))I.set("tracestate",H.tracestate);if(H.baggage&&!I.has("baggage"))I.set("baggage",H.baggage)}}return Q(q,Y0(Y0({},G),{},{headers:I}))}},Km,Zm=class{constructor(D,$,U){var J,Y;this.supabaseUrl=D,this.supabaseKey=$;let X=Wm(D);if(!$)throw Error("supabaseKey is required.");Ym($),this.realtimeUrl=new URL("realtime/v1",X),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",X),this.storageUrl=new URL("storage/v1",X),this.functionsUrl=new URL("functions/v1",X);let Q=`sb-${X.hostname.split(".")[0]}-auth-token`,F={db:hh,realtime:lh,auth:Y0(Y0({},mh),{},{storageKey:Q}),global:yh,tracePropagation:ch},W=Fm(U!==null&&U!==void 0?U:{},F);if(this.settings=W,this.storageKey=(J=W.auth.storageKey)!==null&&J!==void 0?J:"",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:(Z,z)=>{throw Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(z)} is not possible`)}});if(this.fetch=oO($,D,this._getSessionToken.bind(this),W.global.fetch,W.tracePropagation),this.functionsFetch=oO($,D,this._getSessionToken.bind(this),W.global.fetch,W.tracePropagation,{omitApiKeyAsBearer:!0}),this.realtime=this._initRealtimeClient(Y0({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},W.realtime)),this.accessToken)Promise.resolve(this.accessToken()).then((Z)=>this.realtime.setAuth(Z)).catch((Z)=>console.warn("Failed to set initial Realtime auth token:",Z));if(this.rest=new CO(new URL("rest/v1",X).href,{headers:this.headers,schema:W.db.schema,fetch:this.fetch,timeout:W.db.timeout,urlLengthLimit:W.db.urlLengthLimit}),this.storage=new dO(this.storageUrl.href,this.headers,this.fetch,U===null||U===void 0?void 0:U.storage),!W.accessToken)this._listenForAuthEvents()}get functions(){return new v6.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,$={},U={head:!1,get:!1,count:void 0}){return this.rest.rpc(D,$,U)}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,$,U;if(D.accessToken)return await D.accessToken();let{data:J}=await D.auth.getSession();return($=(U=J.session)===null||U===void 0?void 0:U.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:U,storage:J,userStorage:Y,storageKey:X,flowType:Q,lock:F,debug:W,throwOnError:K,experimental:Z,lockAcquireTimeout:z,skipAutoInitialize:q},G,V){let I={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new Km({url:this.authUrl.href,headers:Y0(Y0({},I),G),storageKey:X,autoRefreshToken:D,persistSession:$,detectSessionInUrl:U,storage:J,userStorage:Y,flowType:Q,lock:F,debug:W,throwOnError:K,experimental:Z,fetch:V,lockAcquireTimeout:z,skipAutoInitialize:q,hasCustomAuthorizationHeader:Object.keys(this.headers).some((H)=>H.toLowerCase()==="authorization")})}_initRealtimeClient(D){return new JQ(this.realtimeUrl.href,Y0(Y0({},D),{},{params:Y0(Y0({},{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,$,U){if((D==="TOKEN_REFRESHED"||D==="SIGNED_IN"||D==="INITIAL_SESSION")&&this.changedAccessToken!==U)this.changedAccessToken=U,this.realtime.setAuth(U);else if(D==="SIGNED_OUT"){if(this.realtime.setAuth(),$=="STORAGE")this.auth.signOut();this.changedAccessToken=void 0}}},eO=(D,$,U)=>{return new Zm(D,$,U)};var Dj=_(()=>{kO();iO();WQ();v6=K6(vO(),1);WQ();if(typeof Deno<"u")K9="deno",D3=(Z9=Deno.version)===null||Z9===void 0?void 0:Z9.deno;else if(typeof document<"u")K9="web";else if(typeof navigator<"u"&&navigator.product==="ReactNative")K9="react-native";else{K9="node";let D=globalThis.process;D3=D===null||D===void 0||(z9=D.version)===null||z9===void 0?void 0:z9.replace(/^v/,"")}tO=[`runtime=${K9}`];if(D3)tO.push(`runtime-version=${D3}`);fh={"X-Client-Info":`supabase-js/${gh}; ${tO.join("; ")}`},yh={headers:fh},hh={schema:"public"},mh={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},lh={},ch={enabled:!1,respectSamplingDecision:!0};rO=new Set;Km=class extends FQ{constructor(D){super(D)}};if(zm())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 ZQ=S((MGD,$j)=>{$j.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 $3=S((Jj)=>{var Uj={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 qm(D){return function(...$){if($.length)D=D.replace(/\{(\d)\}/g,(U,J)=>$[J]||"");return Error("ADM-ZIP: "+D)}}for(let D of Object.keys(Uj))Jj[D]=qm(Uj[D])});var Wj=S((vGD,Fj)=>{var Gm=UD("fs"),q0=UD("path"),Yj=ZQ(),Vm=$3(),Hm=typeof process==="object"&&process.platform==="win32",Xj=(D)=>typeof D==="object"&&D!==null,Qj=new Uint32Array(256).map((D,$)=>{for(let U=0;U<8;U++)if(($&1)!==0)$=3988292384^$>>>1;else $>>>=1;return $>>>0});function D0(D){if(this.sep=q0.sep,this.fs=Gm,Xj(D)){if(Xj(D.fs)&&typeof D.fs.statSync==="function")this.fs=D.fs}}Fj.exports=D0;D0.prototype.makeDir=function(D){let $=this;function U(J){let Y=J.split($.sep)[0];J.split($.sep).forEach(function(X){if(!X||X.substr(-1,1)===":")return;Y+=$.sep+X;var Q;try{Q=$.fs.statSync(Y)}catch(F){if(F.message&&F.message.startsWith("ENOENT"))$.fs.mkdirSync(Y);else throw F}if(Q&&Q.isFile())throw Vm.FILE_IN_THE_WAY(`"${Y}"`)})}U(D)};D0.prototype.writeFileTo=function(D,$,U,J){let Y=this;if(Y.fs.existsSync(D)){if(!U)return!1;var X=Y.fs.statSync(D);if(X.isDirectory())return!1}var Q=q0.dirname(D);if(!Y.fs.existsSync(Q))Y.makeDir(Q);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,J||438),!0};D0.prototype.writeFileToAsync=function(D,$,U,J,Y){if(typeof J==="function")Y=J,J=void 0;let X=this;X.fs.exists(D,function(Q){if(Q&&!U)return Y(!1);X.fs.stat(D,function(F,W){if(Q&&W&&W.isDirectory())return Y(!1);var K=q0.dirname(D);X.fs.exists(K,function(Z){if(!Z)try{X.makeDir(K)}catch(q){return Y(!1)}let z=function(q){X.fs.write(q,$,0,$.length,0,function(G){X.fs.close(q,function(){if(G)return Y(!1);X.fs.chmod(D,J||438,function(){Y(!0)})})})};X.fs.open(D,"w",438,function(q,G){if(q)X.fs.chmod(D,438,function(){X.fs.open(D,"w",438,function(V,I){if(V||!I)return Y(!1);z(I)})});else if(G)z(G);else Y(!1)})})})})};D0.prototype.findFiles=function(D){let $=this;function U(J,Y,X,Q){if(typeof Y==="boolean")X=Y,Y=void 0;let F=[];return $.fs.readdirSync(J).forEach(function(W){let K=q0.join(J,W),Z=$.fs.statSync(K);if(!Y||Y.test(K))F.push(q0.normalize(K)+(Z.isDirectory()?$.sep:""));if(Z.isDirectory()&&X){let z=$.fs.realpathSync(K);if(!Q.has(z))Q.add(z),F=F.concat(U(K,Y,X,Q))}}),F}return U(D,void 0,!0,new Set([$.fs.realpathSync(D)]))};D0.prototype.findFilesAsync=function(D,$){let U=this,J=[],Y=!1,X=function(F){if(Y)return;Y=!0,$(F,F?void 0:J)},Q=function(F,W,K){U.fs.readdir(F,function(Z,z){if(Z)return K(Z);let q=z.length;if(!q)return K();z.forEach(function(G){let V=q0.join(F,G);U.fs.stat(V,function(I,H){if(I)return K(I);if(!H){if(!--q)K();return}if(J.push(q0.normalize(V)+(H.isDirectory()?U.sep:"")),!H.isDirectory()){if(!--q)K();return}U.fs.realpath(V,function(w,j){if(w)return K(w);if(W.has(j)){if(!--q)K();return}W.add(j),Q(V,W,function(B){if(B)return K(B);if(!--q)K()})})})})})};U.fs.realpath(D,function(F,W){if(F)return X(F);Q(D,new Set([W]),X)})};D0.prototype.getAttributes=function(){};D0.prototype.setAttributes=function(){};D0.crc32update=function(D,$){return Qj[(D^$)&255]^D>>>8};D0.crc32=function(D){if(typeof D==="string")D=Buffer.from(D,"utf8");let $=D.length,U=-1;for(let J=0;J<$;)U=D0.crc32update(U,D[J++]);return~U>>>0};D0.methodToString=function(D){switch(D){case Yj.STORED:return"STORED ("+D+")";case Yj.DEFLATED:return"DEFLATED ("+D+")";default:return"UNSUPPORTED ("+D+")"}};D0.canonical=function(D){if(!D)return"";let $=q0.posix.normalize("/"+D.split("\\").join("/"));return q0.join(".",$)};D0.zipnamefix=function(D){if(!D)return"";let $=q0.posix.normalize("/"+D.split("\\").join("/"));return q0.posix.join(".",$)};D0.findLast=function(D,$){if(!Array.isArray(D))throw TypeError("arr is not array");let U=D.length>>>0;for(let J=U-1;J>=0;J--)if($(D[J],J,D))return D[J];return};D0.sanitize=function(D,$){D=q0.resolve(q0.normalize(D));var U=$.split("/");for(var J=0,Y=U.length;J<Y;J++){var X=q0.normalize(q0.join(D,U.slice(J,Y).join(q0.sep)));if(X===D||X.startsWith(D+q0.sep))return X}return q0.normalize(q0.join(D,q0.basename($)))};D0.toBuffer=function($,U){if(Buffer.isBuffer($))return $;else if($ instanceof Uint8Array)return Buffer.from($);else return typeof $==="string"?U($):Buffer.alloc(0)};D0.readBigUInt64LE=function(D,$){let U=D.readUInt32LE($);return D.readUInt32LE($+4)*4294967296+U};D0.writeBigUInt64LE=function(D,$,U){let J=$>>>0,Y=Math.floor($/4294967296)>>>0;D.writeUInt32LE(J,U),D.writeUInt32LE(Y,U+4)};D0.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)};D0.fromDate2DOS=function(D){let $=0,U=0;if(D.getFullYear()>1979)$=(D.getFullYear()-1980&127)<<9|D.getMonth()+1<<5|D.getDate(),U=D.getHours()<<11|D.getMinutes()<<5|D.getSeconds()>>1;return $<<16|U};D0.isWin=Hm;D0.crcTable=Qj});var Zj=S((EGD,Kj)=>{var Im=UD("path");Kj.exports=function(D,{fs:$}){var U=D||"",J=X(),Y=null;function X(){return{directory:!1,readonly:!1,hidden:!1,executable:!1,mtime:0,atime:0}}if(U&&$.existsSync(U))Y=$.statSync(U),J.directory=Y.isDirectory(),J.mtime=Y.mtime,J.atime=Y.atime,J.executable=(73&Y.mode)!==0,J.readonly=(128&Y.mode)===0,J.hidden=Im.basename(U)[0]===".";else console.warn("Invalid path: "+U);return{get directory(){return J.directory},get readOnly(){return J.readonly},get hidden(){return J.hidden},get mtime(){return J.mtime},get atime(){return J.atime},get executable(){return J.executable},decodeAttributes:function(){},encodeAttributes:function(){},toJSON:function(){return{path:U,isDirectory:J.directory,isReadOnly:J.readonly,isHidden:J.hidden,isExecutable:J.executable,mTime:J.mtime,aTime:J.atime}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}}});var qj=S((TGD,zj)=>{zj.exports={efs:!0,encode:(D)=>Buffer.from(D,"utf8"),decode:(D)=>D.toString("utf8")}});var t4=S((PGD,a4)=>{a4.exports=Wj();a4.exports.Constants=ZQ();a4.exports.Errors=$3();a4.exports.FileAttr=Zj();a4.exports.decoder=qj()});var Vj=S((SGD,Gj)=>{var y$=t4(),$D=y$.Constants;Gj.exports=function(){var D=20,$=10,U=0,J=0,Y=0,X=0,Q=0,F=0,W=0,K=0,Z=0,z=0,q=0,G=0,V=0;D|=y$.isWin?2560:768,U|=$D.FLG_EFS;let I={extraLen:0},H=(B)=>Math.max(0,B)>>>0,w=(B)=>Math.max(0,B)&65535,j=(B)=>Math.max(0,B)&255;return Y=y$.fromDate2DOS(new Date),{get made(){return D},set made(B){D=B},get version(){return $},set version(B){$=B},get flags(){return U},set flags(B){U=B},get flags_efs(){return(U&$D.FLG_EFS)>0},set flags_efs(B){if(B)U|=$D.FLG_EFS;else U&=~$D.FLG_EFS},get flags_desc(){return(U&$D.FLG_DESC)>0},set flags_desc(B){if(B)U|=$D.FLG_DESC;else U&=~$D.FLG_DESC},get method(){return J},set method(B){switch(B){case $D.STORED:this.version=10;break;case $D.DEFLATED:default:this.version=20}J=B},get time(){return y$.fromDOS2Date(this.timeval)},set time(B){B=new Date(B),this.timeval=y$.fromDate2DOS(B)},get timeval(){return Y},set timeval(B){Y=H(B)},get timeHighByte(){return j(Y>>>8)},get crc(){return X},set crc(B){X=H(B)},get compressedSize(){return Q},set compressedSize(B){Q=H(B)},get size(){return F},set size(B){F=H(B)},get fileNameLength(){return W},set fileNameLength(B){W=B},get extraLength(){return K},set extraLength(B){K=B},get extraLocalLength(){return I.extraLen},set extraLocalLength(B){I.extraLen=B},get commentLength(){return Z},set commentLength(B){Z=B},get diskNumStart(){return z},set diskNumStart(B){z=H(B)},get inAttr(){return q},set inAttr(B){q=H(B)},get attr(){return G},set attr(B){G=H(B)},get fileAttr(){return(G||0)>>16&4095},get offset(){return V},set offset(B){V=H(B)},get encrypted(){return(U&$D.FLG_ENC)===$D.FLG_ENC},get centralHeaderSize(){return $D.CENHDR+W+K+Z},get realDataOffset(){return V+$D.LOCHDR+I.fnameLen+I.extraLen},get localHeader(){return I},loadLocalHeaderFromBinary:function(B){var N=B.slice(V,V+$D.LOCHDR);if(N.readUInt32LE(0)!==$D.LOCSIG)throw y$.Errors.INVALID_LOC();I.version=N.readUInt16LE($D.LOCVER),I.flags=N.readUInt16LE($D.LOCFLG),I.flags_desc=(I.flags&$D.FLG_DESC)>0,I.method=N.readUInt16LE($D.LOCHOW),I.time=N.readUInt32LE($D.LOCTIM),I.crc=N.readUInt32LE($D.LOCCRC),I.compressedSize=N.readUInt32LE($D.LOCSIZ),I.size=N.readUInt32LE($D.LOCLEN),I.fnameLen=N.readUInt16LE($D.LOCNAM),I.extraLen=N.readUInt16LE($D.LOCEXT);let A=V+$D.LOCHDR+I.fnameLen,v=A+I.extraLen;return B.slice(A,v)},loadFromBinary:function(B){if(B.length!==$D.CENHDR||B.readUInt32LE(0)!==$D.CENSIG)throw y$.Errors.INVALID_CEN();D=B.readUInt16LE($D.CENVEM),$=B.readUInt16LE($D.CENVER),U=B.readUInt16LE($D.CENFLG),J=B.readUInt16LE($D.CENHOW),Y=B.readUInt32LE($D.CENTIM),X=B.readUInt32LE($D.CENCRC),Q=B.readUInt32LE($D.CENSIZ),F=B.readUInt32LE($D.CENLEN),W=B.readUInt16LE($D.CENNAM),K=B.readUInt16LE($D.CENEXT),Z=B.readUInt16LE($D.CENCOM),z=B.readUInt16LE($D.CENDSK),q=B.readUInt16LE($D.CENATT),G=B.readUInt32LE($D.CENATX),V=B.readUInt32LE($D.CENOFF)},localHeaderToBinary:function(){var B=Buffer.alloc($D.LOCHDR);return B.writeUInt32LE($D.LOCSIG,0),B.writeUInt16LE($,$D.LOCVER),B.writeUInt16LE(U&~$D.FLG_DESC,$D.LOCFLG),B.writeUInt16LE(J,$D.LOCHOW),B.writeUInt32LE(Y,$D.LOCTIM),B.writeUInt32LE(X,$D.LOCCRC),B.writeUInt32LE(Q,$D.LOCSIZ),B.writeUInt32LE(F,$D.LOCLEN),B.writeUInt16LE(W,$D.LOCNAM),B.writeUInt16LE(I.extraLen,$D.LOCEXT),B},centralHeaderToBinary:function(){var B=Buffer.alloc($D.CENHDR+W+K+Z);return B.writeUInt32LE($D.CENSIG,0),B.writeUInt16LE(D,$D.CENVEM),B.writeUInt16LE($,$D.CENVER),B.writeUInt16LE(U&~$D.FLG_DESC,$D.CENFLG),B.writeUInt16LE(J,$D.CENHOW),B.writeUInt32LE(Y,$D.CENTIM),B.writeUInt32LE(X,$D.CENCRC),B.writeUInt32LE(Q,$D.CENSIZ),B.writeUInt32LE(F,$D.CENLEN),B.writeUInt16LE(W,$D.CENNAM),B.writeUInt16LE(K,$D.CENEXT),B.writeUInt16LE(Z,$D.CENCOM),B.writeUInt16LE(z,$D.CENDSK),B.writeUInt16LE(q,$D.CENATT),B.writeUInt32LE(G,$D.CENATX),B.writeUInt32LE(V,$D.CENOFF),B},toJSON:function(){let B=function(N){return N+" bytes"};return{made:D,version:$,flags:U,method:y$.methodToString(J),time:this.time,crc:"0x"+X.toString(16).toUpperCase(),compressedSize:B(Q),size:B(F),fileNameLength:B(W),extraLength:B(K),commentLength:B(Z),diskNumStart:z,inAttr:q,attr:G,offset:V,centralHeaderSize:B($D.CENHDR+W+K+Z)}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}}});var Ij=S((bGD,Hj)=>{var E6=t4(),FD=E6.Constants;Hj.exports=function(){var D=0,$=0,U=0,J=0,Y=0;let X=()=>D>FD.EF_ZIP64_OR_16||$>FD.EF_ZIP64_OR_16||U>FD.EF_ZIP64_OR_32||J>FD.EF_ZIP64_OR_32;return{get diskEntries(){return D},set diskEntries(Q){D=$=Q},get totalEntries(){return $},set totalEntries(Q){$=D=Q},get size(){return U},set size(Q){U=Q},get offset(){return J},set offset(Q){J=Q},get commentLength(){return Y},set commentLength(Q){Y=Q},get mainHeaderSize(){return(X()?FD.ZIP64HDR+FD.END64HDR:0)+FD.ENDHDR+Y},loadFromBinary:function(Q){if((Q.length!==FD.ENDHDR||Q.readUInt32LE(0)!==FD.ENDSIG)&&(Q.length<FD.ZIP64HDR||Q.readUInt32LE(0)!==FD.ZIP64SIG))throw E6.Errors.INVALID_END();if(Q.readUInt32LE(0)===FD.ENDSIG)D=Q.readUInt16LE(FD.ENDSUB),$=Q.readUInt16LE(FD.ENDTOT),U=Q.readUInt32LE(FD.ENDSIZ),J=Q.readUInt32LE(FD.ENDOFF),Y=Q.readUInt16LE(FD.ENDCOM);else D=E6.readBigUInt64LE(Q,FD.ZIP64SUB),$=E6.readBigUInt64LE(Q,FD.ZIP64TOT),U=E6.readBigUInt64LE(Q,FD.ZIP64SIZB),J=E6.readBigUInt64LE(Q,FD.ZIP64OFF),Y=0},toBinary:function(){if(!X()){var Q=Buffer.alloc(FD.ENDHDR+Y);return Q.writeUInt32LE(FD.ENDSIG,0),Q.writeUInt32LE(0,4),Q.writeUInt16LE(D,FD.ENDSUB),Q.writeUInt16LE($,FD.ENDTOT),Q.writeUInt32LE(U,FD.ENDSIZ),Q.writeUInt32LE(J,FD.ENDOFF),Q.writeUInt16LE(Y,FD.ENDCOM),Q.fill(" ",FD.ENDHDR),Q}var Q=Buffer.alloc(this.mainHeaderSize);let F=0;Q.writeUInt32LE(FD.ZIP64SIG,F),E6.writeBigUInt64LE(Q,FD.ZIP64HDR-FD.ZIP64LEAD,F+FD.ZIP64SIZE),Q.writeUInt16LE(45,F+FD.ZIP64VEM),Q.writeUInt16LE(45,F+FD.ZIP64VER),Q.writeUInt32LE(0,F+FD.ZIP64DSK),Q.writeUInt32LE(0,F+FD.ZIP64DSKDIR),E6.writeBigUInt64LE(Q,D,F+FD.ZIP64SUB),E6.writeBigUInt64LE(Q,$,F+FD.ZIP64TOT),E6.writeBigUInt64LE(Q,U,F+FD.ZIP64SIZB),E6.writeBigUInt64LE(Q,J,F+FD.ZIP64OFF);let W=J+U;return F+=FD.ZIP64HDR,Q.writeUInt32LE(FD.END64SIG,F),Q.writeUInt32LE(0,F+FD.END64START),E6.writeBigUInt64LE(Q,W,F+FD.END64OFF),Q.writeUInt32LE(1,F+FD.END64NUMDISKS),F+=FD.END64HDR,Q.writeUInt32LE(FD.ENDSIG,F),Q.writeUInt32LE(0,F+4),Q.writeUInt16LE(Math.min(D,FD.EF_ZIP64_OR_16),F+FD.ENDSUB),Q.writeUInt16LE(Math.min($,FD.EF_ZIP64_OR_16),F+FD.ENDTOT),Q.writeUInt32LE(Math.min(U,FD.EF_ZIP64_OR_32),F+FD.ENDSIZ),Q.writeUInt32LE(Math.min(J,FD.EF_ZIP64_OR_32),F+FD.ENDOFF),Q.writeUInt16LE(Y,F+FD.ENDCOM),Q.fill(" ",F+FD.ENDHDR),Q},toJSON:function(){let Q=function(F,W){let K=F.toString(16).toUpperCase();while(K.length<W)K="0"+K;return"0x"+K};return{diskEntries:D,totalEntries:$,size:U+" bytes",offset:Q(J,4),commentLength:Y}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}}});var zQ=S((Bm)=>{Bm.EntryHeader=Vj();Bm.MainHeader=Ij()});var wj=S((kGD,Bj)=>{Bj.exports=function(D){var $=UD("zlib"),U={chunkSize:(parseInt(D.length/1024)+1)*1024};return{deflate:function(){return $.deflateRawSync(D,U)},deflateAsync:function(J){var Y=$.createDeflateRaw(U),X=[],Q=0;Y.on("data",function(F){X.push(F),Q+=F.length}),Y.on("end",function(){var F=Buffer.alloc(Q),W=0;F.fill(0);for(var K=0;K<X.length;K++){var Z=X[K];Z.copy(F,W),W+=Z.length}J&&J(F)}),Y.end(D)}}}});var jj=S((uGD,Oj)=>{var jm=+(process?.versions?.node??"").split(".")[0]||0;Oj.exports=function(D,$){var U=UD("zlib");let J=jm>=15&&$>0?{maxOutputLength:$}:{};return{inflate:function(){return U.inflateRawSync(D,J)},inflateAsync:function(Y){var X=U.createInflateRaw(J),Q=[],F=0;X.on("data",function(W){Q.push(W),F+=W.length}),X.on("end",function(){var W=Buffer.alloc(F),K=0;W.fill(0);for(var Z=0;Z<Q.length;Z++){var z=Q[Z];z.copy(W,K),K+=z.length}Y&&Y(W)}),X.end(D)}}}});var Aj=S((_GD,Mj)=>{var{randomFillSync:Nj}=UD("crypto"),Nm=$3(),Lm=new Uint32Array(256).map((D,$)=>{for(let U=0;U<8;U++)if(($&1)!==0)$=$>>>1^3988292384;else $>>>=1;return $>>>0}),Rj=(D,$)=>Math.imul(D,$)>>>0,Lj=(D,$)=>{return Lm[(D^$)&255]^D>>>8},G9=()=>{if(typeof Nj==="function")return Nj(Buffer.alloc(12));else return G9.node()};G9.node=()=>{let D=Buffer.alloc(12),$=D.length;for(let U=0;U<$;U++)D[U]=Math.random()*256&255;return D};var U3={genSalt:G9};function J3(D){let $=Buffer.isBuffer(D)?D:Buffer.from(D);this.keys=new Uint32Array([305419896,591751049,878082192]);for(let U=0;U<$.length;U++)this.updateKeys($[U])}J3.prototype.updateKeys=function(D){let $=this.keys;return $[0]=Lj($[0],D),$[1]+=$[0]&255,$[1]=Rj($[1],134775813)+1,$[2]=Lj($[2],$[1]>>>24),D};J3.prototype.next=function(){let D=(this.keys[2]|2)>>>0;return Rj(D,D^1)>>8&255};function Rm(D){let $=new J3(D);return function(U){let J=Buffer.alloc(U.length),Y=0;for(let X of U)J[Y++]=$.updateKeys(X^$.next());return J}}function Mm(D){let $=new J3(D);return function(U,J,Y=0){if(!J)J=Buffer.alloc(U.length);for(let X of U){let Q=$.next();J[Y++]=X^Q,$.updateKeys(X)}return J}}function Am(D,$,U){if(!D||!Buffer.isBuffer(D)||D.length<12)return Buffer.alloc(0);let J=Rm(U),Y=J(D.slice(0,12)),X=($.flags&8)===8?$.timeHighByte:$.crc>>>24;if(Y[11]!==X)throw Nm.WRONG_PASSWORD();return J(D.slice(12))}function vm(D){if(Buffer.isBuffer(D)&&D.length>=12)U3.genSalt=function(){return D.slice(0,12)};else if(D==="node")U3.genSalt=G9.node;else U3.genSalt=G9}function Em(D,$,U,J=!1){if(D==null)D=Buffer.alloc(0);if(!Buffer.isBuffer(D))D=Buffer.from(D.toString());let Y=Mm(U),X=U3.genSalt();if(X[11]=$.crc>>>24&255,J)X[10]=$.crc>>>16&255;let Q=Buffer.alloc(D.length+12);return Y(X,Q),Y(D,Q,12)}Mj.exports={decrypt:Am,encrypt:Em,_salter:vm}});var vj=S((Tm)=>{Tm.Deflater=wj();Tm.Inflater=jj();Tm.ZipCrypto=Aj()});var GQ=S((gGD,Ej)=>{var iD=t4(),Cm=zQ(),q6=iD.Constants,qQ=vj();Ej.exports=function(D,$){var U=new Cm.EntryHeader,J=Buffer.alloc(0),Y=Buffer.alloc(0),X=!1,Q=null,F=Buffer.alloc(0),W=Buffer.alloc(0),K=!0;let Z=D,z=typeof Z.decoder==="object"?Z.decoder:iD.decoder;K=z.hasOwnProperty("efs")?z.efs:!1;function q(){if(!$||!($ instanceof Uint8Array))return Buffer.alloc(0);return W=U.loadLocalHeaderFromBinary($),$.slice(U.realDataOffset,U.realDataOffset+U.compressedSize)}function G(B){let N=U.flags_desc||U.localHeader.flags_desc?U.crc:U.localHeader.crc;return iD.crc32(B)===N}function V(B,N,A){if(typeof N>"u"&&typeof B==="string")A=B,B=void 0;if(X){if(B&&N)N(Buffer.alloc(0),iD.Errors.DIRECTORY_CONTENT_ERROR());return Buffer.alloc(0)}var v=q();if(v.length===0){if(B&&N)N(v);return v}if(U.encrypted){if(typeof A!=="string"&&!Buffer.isBuffer(A))throw iD.Errors.INVALID_PASS_PARAM();v=qQ.ZipCrypto.decrypt(v,U,A)}var k;switch(U.method){case iD.Constants.STORED:if(k=Buffer.alloc(v.length),v.copy(k),!G(k)){if(B&&N)N(k,iD.Errors.BAD_CRC());throw iD.Errors.BAD_CRC()}else{if(B&&N)N(k);return k}case iD.Constants.DEFLATED:var C=new qQ.Inflater(v,U.size);if(!B){if(k=C.inflate(),!G(k))throw iD.Errors.BAD_CRC(`"${z.decode(J)}"`);return k}else C.inflateAsync(function(b){if(N)if(!G(b))N(b,iD.Errors.BAD_CRC());else N(b)});break;default:if(B&&N)N(Buffer.alloc(0),iD.Errors.UNKNOWN_METHOD());throw iD.Errors.UNKNOWN_METHOD()}}function I(B,N){if((!Q||!Q.length)&&Buffer.isBuffer($)){if(B&&N)N(q());return q()}if(Q.length&&!X){var A;switch(U.method){case iD.Constants.STORED:if(U.compressedSize=U.size,A=Buffer.alloc(Q.length),Q.copy(A),B&&N)N(A);return A;default:case iD.Constants.DEFLATED:var v=new qQ.Deflater(Q);if(!B){var k=v.deflate();return U.compressedSize=k.length,k}else v.deflateAsync(function(C){A=Buffer.alloc(C.length),U.compressedSize=C.length,C.copy(A),N&&N(A)});v=null;break}}else if(B&&N)N(Buffer.alloc(0));else return Buffer.alloc(0)}function H(B,N){return iD.readBigUInt64LE(B,N)}function w(B){try{var N=0,A,v,k;while(N+4<B.length)if(A=B.readUInt16LE(N),N+=2,v=B.readUInt16LE(N),N+=2,k=B.slice(N,N+v),N+=v,q6.ID_ZIP64===A)j(k)}catch(C){throw iD.Errors.EXTRA_FIELD_PARSE_ERROR()}}function j(B){var N,A,v,k;if(B.length>=q6.EF_ZIP64_SCOMP){if(N=H(B,q6.EF_ZIP64_SUNCOMP),U.size===q6.EF_ZIP64_OR_32)U.size=N}if(B.length>=q6.EF_ZIP64_RHO){if(A=H(B,q6.EF_ZIP64_SCOMP),U.compressedSize===q6.EF_ZIP64_OR_32)U.compressedSize=A}if(B.length>=q6.EF_ZIP64_DSN){if(v=H(B,q6.EF_ZIP64_RHO),U.offset===q6.EF_ZIP64_OR_32)U.offset=v}if(B.length>=q6.EF_ZIP64_DSN+4){if(k=B.readUInt32LE(q6.EF_ZIP64_DSN),U.diskNumStart===q6.EF_ZIP64_OR_16)U.diskNumStart=k}}return{get entryName(){return z.decode(J)},get rawEntryName(){return J},set entryName(B){J=iD.toBuffer(B,z.encode);var N=J[J.length-1];X=N===47||N===92,U.fileNameLength=J.length},get efs(){if(typeof K==="function")return K(this.entryName);else return K},get extra(){return F},set extra(B){F=B,U.extraLength=B.length,w(B)},get comment(){return z.decode(Y)},set comment(B){if(Y=iD.toBuffer(B,z.encode),U.commentLength=Y.length,Y.length>65535)throw iD.Errors.COMMENT_TOO_LONG()},get name(){let B=z.decode(J);return X?B.replace(/[/\\]$/,"").split("/").pop():B.split("/").pop()},get isDirectory(){return X},getCompressedData:function(){return I(!1,null)},getCompressedDataAsync:function(B){I(!0,B)},setData:function(B){if(Q=iD.toBuffer(B,iD.decoder.encode),!X&&Q.length)U.size=Q.length,U.method=iD.Constants.DEFLATED,U.crc=iD.crc32(B),U.changed=!0;else U.method=iD.Constants.STORED},getData:function(B){if(U.changed)return Q;else return V(!1,null,B)},getDataAsync:function(B,N){if(U.changed)B(Q);else V(!0,B,N)},set attr(B){U.attr=B},get attr(){return U.attr},set header(B){U.loadFromBinary(B)},get header(){return U},packCentralHeader:function(){U.flags_efs=this.efs,U.extraLength=F.length;var B=U.centralHeaderToBinary(),N=iD.Constants.CENHDR;return J.copy(B,N),N+=J.length,F.copy(B,N),N+=U.extraLength,Y.copy(B,N),B},packLocalHeader:function(){let B=0;U.flags_efs=this.efs,U.extraLocalLength=W.length;let N=U.localHeaderToBinary(),A=Buffer.alloc(N.length+J.length+U.extraLocalLength);return N.copy(A,B),B+=N.length,J.copy(A,B),B+=J.length,W.copy(A,B),B+=W.length,A},toJSON:function(){let B=function(N){return"<"+(N&&N.length+" bytes buffer"||"null")+">"};return{entryName:this.entryName,name:this.name,comment:this.comment,isDirectory:this.isDirectory,header:U.toJSON(),compressedData:B($),data:B(Q)}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}}});var Sj=S((fGD,Pj)=>{var Tj=GQ(),km=zQ(),y0=t4();Pj.exports=function(D,$){var U=[],J=Object.create(null),Y=Buffer.alloc(0),X=new km.MainHeader,Q=!1,F=null;let W=new Set,K=$,{noSort:Z,decoder:z}=K;if(D)V(K.readEntries);else Q=!0;function q(){let H=new Set;for(let w of Object.keys(J)){let j=w.split("/");if(j.pop(),!j.length)continue;for(let B=0;B<j.length;B++){let N=j.slice(0,B+1).join("/")+"/";H.add(N)}}for(let w of H)if(!(w in J)){let j=new Tj(K);j.entryName=w,j.attr=16,j.temporary=!0,U.push(j),J[j.entryName]=j,W.add(j)}}function G(){if(Q=!0,J=Object.create(null),X.diskEntries>(D.length-X.offset)/y0.Constants.CENHDR)throw y0.Errors.DISK_ENTRY_TOO_LARGE();U=Array(X.diskEntries);var H=X.offset;for(var w=0;w<U.length;w++){var j=H,B=new Tj(K,D);if(B.header=D.slice(j,j+=y0.Constants.CENHDR),B.entryName=D.slice(j,j+=B.header.fileNameLength),B.header.extraLength)B.extra=D.slice(j,j+=B.header.extraLength);if(B.header.commentLength)B.comment=D.slice(j,j+B.header.commentLength);H+=B.header.centralHeaderSize,U[w]=B,J[B.entryName]=B}W.clear(),q()}function V(H){var w=D.length-y0.Constants.ENDHDR,j=Math.max(0,w-65535),B=j,N=D.length,A=-1,v=0;if(typeof K.trailingSpace==="boolean"?K.trailingSpace:!1)j=0;for(w;w>=B;w--){if(D[w]!==80)continue;if(D.readUInt32LE(w)===y0.Constants.ENDSIG){A=w,v=w,N=w+y0.Constants.ENDHDR,B=w-y0.Constants.END64HDR;continue}if(D.readUInt32LE(w)===y0.Constants.END64SIG){B=j;continue}if(D.readUInt32LE(w)===y0.Constants.ZIP64SIG){A=w,N=w+y0.readBigUInt64LE(D,w+y0.Constants.ZIP64SIZE)+y0.Constants.ZIP64LEAD;break}}if(A==-1)throw y0.Errors.INVALID_FORMAT();if(X.loadFromBinary(D.slice(A,N)),X.commentLength)Y=D.slice(v+y0.Constants.ENDHDR);if(H)G()}function I(){if(U.length>1&&!Z)U=U.map((H)=>({entry:H,key:H.entryName.toLowerCase()})).sort((H,w)=>H.key.localeCompare(w.key)).map((H)=>H.entry)}return{get entries(){if(!Q)G();return U.filter((H)=>!W.has(H))},get comment(){return z.decode(Y)},set comment(H){Y=y0.toBuffer(H,z.encode),X.commentLength=Y.length},getEntryCount:function(){if(!Q)return X.diskEntries;return U.length},forEach:function(H){this.entries.forEach(H)},getEntry:function(H){if(!Q)G();return J[H]||null},setEntry:function(H){if(!Q)G();U.push(H),J[H.entryName]=H,X.totalEntries=U.length},deleteFile:function(H,w=!0){if(!Q)G();let j=J[H];this.getEntryChildren(j,w).map((N)=>N.entryName).forEach(this.deleteEntry)},deleteEntry:function(H){if(!Q)G();let w=J[H],j=U.indexOf(w);if(j>=0)U.splice(j,1),delete J[H],X.totalEntries=U.length},getEntryChildren:function(H,w=!0){if(!Q)G();if(typeof H==="object")if(H.isDirectory&&w){let j=[],B=H.entryName;for(let N of U)if(N.entryName.startsWith(B))j.push(N);return j}else return[H];return[]},getChildCount:function(H){if(H&&H.isDirectory){let w=this.getEntryChildren(H);return w.includes(H)?w.length-1:w.length}return 0},compressToBuffer:function(){if(!Q)G();I();let H=[],w=[],j=0,B=0;X.size=0,X.offset=0;let N=0;for(let k of this.entries){let C=k.getCompressedData();k.header.offset=B;let b=k.packLocalHeader(),y=b.length+C.length;B+=y,H.push(b),H.push(C);let T=k.packCentralHeader();w.push(T),X.size+=T.length,j+=y+T.length,N++}j+=X.mainHeaderSize,X.offset=B,X.totalEntries=N,B=0;let A=Buffer.alloc(j);for(let k of H)k.copy(A,B),B+=k.length;for(let k of w)k.copy(A,B),B+=k.length;let v=X.toBinary();if(Y)Y.copy(v,v.length-Y.length);return v.copy(A,B),D=A,Q=!1,A},toAsyncBuffer:function(H,w,j,B){try{if(!Q)G();I();let N=[],A=[],v=0,k=0,C=0;X.size=0,X.offset=0;let b=function(y){if(y.length>0){let T=y.shift(),h=T.entryName+T.extra.toString();if(j)j(h);T.getCompressedDataAsync(function(c){if(B)B(h);T.header.offset=k;let p=T.packLocalHeader(),a=p.length+c.length;k+=a,N.push(p),N.push(c);let R=T.packCentralHeader();A.push(R),X.size+=R.length,v+=a+R.length,C++,b(y)})}else{v+=X.mainHeaderSize,X.offset=k,X.totalEntries=C,k=0;let T=Buffer.alloc(v);N.forEach(function(c){c.copy(T,k),k+=c.length}),A.forEach(function(c){c.copy(T,k),k+=c.length});let h=X.toBinary();if(Y)Y.copy(h,h.length-Y.length);h.copy(T,k),D=T,Q=!1,H(T)}};b(Array.from(this.entries))}catch(N){w(N)}}}}});var kj=S((yGD,Cj)=>{var Q0=t4(),X0=UD("path"),um=GQ(),_m=Sj(),E1=(...D)=>Q0.findLast(D,($)=>typeof $==="boolean"),bj=(...D)=>Q0.findLast(D,($)=>typeof $==="string"),xm=(...D)=>Q0.findLast(D,($)=>typeof $==="function"),gm={noSort:!1,readEntries:!1,method:Q0.Constants.NONE,fs:null};Cj.exports=function(D,$){let U=null,J=Object.assign(Object.create(null),gm);if(D&&typeof D==="object"){if(!(D instanceof Uint8Array)){if(Object.assign(J,D),D=J.input?J.input:void 0,J.input)delete J.input}if(Buffer.isBuffer(D))U=D,J.method=Q0.Constants.BUFFER,D=void 0}Object.assign(J,$);let Y=new Q0(J),X=(V)=>{V.filter((I)=>I.attr).sort((I,H)=>H.path.length-I.path.length).forEach((I)=>Y.fs.chmodSync(I.path,I.attr))};if(typeof J.decoder!=="object"||typeof J.decoder.encode!=="function"||typeof J.decoder.decode!=="function")J.decoder=Q0.decoder;if(D&&typeof D==="string")if(Y.fs.existsSync(D))J.method=Q0.Constants.FILE,J.filename=D,U=Y.fs.readFileSync(D);else throw Q0.Errors.INVALID_FILENAME();let Q=new _m(U,J),{canonical:F,sanitize:W,zipnamefix:K}=Q0;function Z(V){if(V&&Q){var I;if(typeof V==="string")I=Q.getEntry(X0.posix.normalize(V));if(typeof V==="object"&&typeof V.entryName<"u"&&typeof V.header<"u")I=Q.getEntry(V.entryName);if(I)return I}return null}function z(V){let{join:I,normalize:H,sep:w}=X0.posix;return I(X0.isAbsolute(V)?"/":".",H(w+V.split("\\").join(w)+w))}function q(V){if(V instanceof RegExp)return function(I){return function(H){return I.test(H)}}(V);else if(typeof V!=="function")return()=>!0;return V}let G=(V,I)=>{let H=I.slice(-1);return H=H===Y.sep?Y.sep:"",X0.relative(V,I)+H};return{readFile:function(V,I){var H=Z(V);return H&&H.getData(I)||null},childCount:function(V){let I=Z(V);if(I)return Q.getChildCount(I)},readFileAsync:function(V,I){var H=Z(V);if(H)H.getDataAsync(I);else I(null,"getEntry failed for:"+V)},readAsText:function(V,I){var H=Z(V);if(H){var w=H.getData();if(w&&w.length)return w.toString(I||"utf8")}return""},readAsTextAsync:function(V,I,H){var w=Z(V);if(w)w.getDataAsync(function(j,B){if(B){I(j,B);return}if(j&&j.length)I(j.toString(H||"utf8"));else I("")});else I("")},deleteFile:function(V,I=!0){var H=Z(V);if(H)Q.deleteFile(H.entryName,I)},deleteEntry:function(V){var I=Z(V);if(I)Q.deleteEntry(I.entryName)},addZipComment:function(V){Q.comment=V},getZipComment:function(){return Q.comment||""},addZipEntryComment:function(V,I){var H=Z(V);if(H)H.comment=I},getZipEntryComment:function(V){var I=Z(V);if(I)return I.comment||"";return""},updateFile:function(V,I){var H=Z(V);if(H)H.setData(I)},addLocalFile:function(V,I,H,w){if(Y.fs.existsSync(V)){I=I?z(I):"";let j=X0.win32.basename(X0.win32.normalize(V));I+=H?H:j;let B=Y.fs.statSync(V),N=B.isFile()?Y.fs.readFileSync(V):Buffer.alloc(0);if(B.isDirectory())I+=Y.sep;this.addFile(I,N,w,B)}else throw Q0.Errors.FILE_NOT_FOUND(V)},addLocalFileAsync:function(V,I){V=typeof V==="object"?V:{localPath:V};let H=X0.resolve(V.localPath),{comment:w}=V,{zipPath:j,zipName:B}=V,N=this;Y.fs.stat(H,function(A,v){if(A)return I(A,!1);j=j?z(j):"";let k=X0.win32.basename(X0.win32.normalize(H));if(j+=B?B:k,v.isFile())Y.fs.readFile(H,function(C,b){if(C)return I(C,!1);return N.addFile(j,b,w,v),setImmediate(I,void 0,!0)});else if(v.isDirectory())return j+=Y.sep,N.addFile(j,Buffer.alloc(0),w,v),setImmediate(I,void 0,!0)})},addLocalFolder:function(V,I,H){if(H=q(H),I=I?z(I):"",V=X0.normalize(V),Y.fs.existsSync(V)){let w=Y.findFiles(V),j=this;if(w.length)for(let B of w){let N=X0.join(I,G(V,B));if(H(N))j.addLocalFile(B,X0.dirname(N))}}else throw Q0.Errors.FILE_NOT_FOUND(V)},addLocalFolderAsync:function(V,I,H,w){w=q(w),H=H?z(H):"",V=X0.normalize(V);var j=this;Y.fs.open(V,"r",function(B){if(B&&B.code==="ENOENT")I(void 0,Q0.Errors.FILE_NOT_FOUND(V));else if(B)I(void 0,B);else{var N=Y.findFiles(V),A=-1,v=function(){if(A+=1,A<N.length){var k=N[A],C=G(V,k).split("\\").join("/");if(C=C.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,""),w(C))Y.fs.stat(k,function(b,y){if(b)I(void 0,b);if(y.isFile())Y.fs.readFile(k,function(T,h){if(T)I(void 0,T);else j.addFile(H+C,h,"",y),v()});else j.addFile(H+C+"/",Buffer.alloc(0),"",y),v()});else process.nextTick(()=>{v()})}else I(!0,void 0)};v()}})},addLocalFolderAsync2:function(V,I){let H=this;V=typeof V==="object"?V:{localPath:V};let w=X0.resolve(z(V.localPath)),{zipPath:j,filter:B,namefix:N}=V;if(B instanceof RegExp)B=function(k){return function(C){return k.test(C)}}(B);else if(typeof B!=="function")B=function(){return!0};if(j=j?z(j):"",N==="latin1")N=(k)=>k.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,"");if(typeof N!=="function")N=(k)=>k;let A=(k)=>X0.join(j,N(G(w,k))),v=(k)=>X0.win32.basename(X0.win32.normalize(N(k)));Y.fs.open(w,"r",function(k){if(k&&k.code==="ENOENT")I(void 0,Q0.Errors.FILE_NOT_FOUND(w));else if(k)I(void 0,k);else Y.findFilesAsync(w,function(C,b){if(C)return I(C);if(b=b.filter((y)=>B(A(y))),!b.length)I(void 0,!1);setImmediate(b.reverse().reduce(function(y,T){return function(h,c){if(h||c===!1)return setImmediate(y,h,!1);H.addLocalFileAsync({localPath:T,zipPath:X0.dirname(A(T)),zipName:v(T)},y)}},I))})})},addLocalFolderPromise:function(V,I){return new Promise((H,w)=>{this.addLocalFolderAsync2(Object.assign({localPath:V},I),(j,B)=>{if(j)w(j);if(B)H(this)})})},addFile:function(V,I,H,w){V=K(V);let j=Z(V),B=j!=null;if(!B)j=new um(J),j.entryName=V;j.comment=H||"";let N=typeof w==="object"&&w instanceof Y.fs.Stats;if(N)j.header.time=w.mtime;var A=j.isDirectory?16:0;let v=j.isDirectory?16384:32768;if(N)v|=4095&w.mode;else if(typeof w==="number")v|=4095&w;else v|=j.isDirectory?493:420;if(A=(A|v<<16)>>>0,j.attr=A,j.setData(I),!B)Q.setEntry(j);return j},getEntries:function(V){return Q.password=V,Q?Q.entries:[]},getEntry:function(V){return Z(V)},getEntryCount:function(){return Q.getEntryCount()},forEach:function(V){return Q.forEach(V)},extractEntryTo:function(V,I,H,w,j,B){w=E1(!1,w),j=E1(!1,j),H=E1(!0,H),B=bj(j,B);var N=Z(V);if(!N)throw Q0.Errors.NO_ENTRY();var A=F(N.entryName),v=W(I,B&&!N.isDirectory?F(B):H?A:X0.basename(A));if(N.isDirectory){var k=Q.getEntryChildren(N);return k.forEach(function(y){if(y.isDirectory)return;var T=y.getData();if(!T)throw Q0.Errors.CANT_EXTRACT_FILE();var h=F(H?y.entryName:y.entryName.substring(N.entryName.length)),c=W(I,h);let p=j?y.header.fileAttr:void 0;Y.writeFileTo(c,T,w,p)}),!0}var C=N.getData(Q.password);if(!C)throw Q0.Errors.CANT_EXTRACT_FILE();if(Y.fs.existsSync(v)&&!w)throw Q0.Errors.CANT_OVERRIDE();let b=j?V.header.fileAttr:void 0;return Y.writeFileTo(v,C,w,b),!0},test:function(V){if(!Q)return!1;for(var I of Q.entries)try{if(I.isDirectory)continue;var H=I.getData(V);if(!H)return!1}catch(w){return!1}return!0},extractAllTo:function(V,I,H,w){if(H=E1(!1,H),w=bj(H,w),I=E1(!1,I),!Q)throw Q0.Errors.NO_ZIP();let j=[];Q.entries.forEach(function(B){var N=W(V,F(B.entryName));if(B.isDirectory){if(Y.makeDir(N),H)j.push({path:N,attr:B.header.fileAttr});return}var A=B.getData(w);if(!A)throw Q0.Errors.CANT_EXTRACT_FILE();let v=H?B.header.fileAttr:void 0;Y.writeFileTo(N,A,I,v);try{Y.fs.utimesSync(N,B.header.time,B.header.time)}catch(k){}}),X(j)},extractAllToAsync:function(V,I,H,w){if(w=xm(I,H,w),H=E1(!1,H),I=E1(!1,I),!w)return new Promise((C,b)=>{this.extractAllToAsync(V,I,H,function(y){if(y)b(y);else C(this)})});if(!Q){w(Q0.Errors.NO_ZIP());return}V=X0.resolve(V);let j=(C)=>W(V,X0.normalize(F(C.entryName))),B=(C,b)=>Error(C+': "'+b+'"'),N=[],A=[];Q.entries.forEach((C)=>{if(C.isDirectory)N.push(C);else A.push(C)});let v=[];for(let C of N){let b=j(C),y=H?C.header.fileAttr:void 0;try{Y.makeDir(b)}catch(T){w(B("Unable to create folder",b));continue}if(y)v.push({path:b,attr:y});try{Y.fs.utimesSync(b,C.header.time,C.header.time)}catch(T){}}let k=(C)=>{if(!C)try{X(v)}catch(b){return w(B("Unable to set folder permissions",b.path||""))}w(C)};A.reverse().reduce(function(C,b){return function(y){if(y)C(y);else{let T=X0.normalize(F(b.entryName)),h=W(V,T);b.getDataAsync(function(c,p){if(p)C(p);else if(!c)C(Q0.Errors.CANT_EXTRACT_FILE());else{let a=H?b.header.fileAttr:void 0;Y.writeFileToAsync(h,c,I,a,function(R){if(!R)return C(B("Unable to write file",h));Y.fs.utimes(h,b.header.time,b.header.time,function(){C()})})}})}}},k)()},writeZip:function(V,I){if(arguments.length===1){if(typeof V==="function")I=V,V=""}if(!V&&J.filename)V=J.filename;if(!V)return;var H=Q.compressToBuffer();if(H){var w=Y.writeFileTo(V,H,!0);if(typeof I==="function")I(!w?Error("failed"):null,"")}},writeZipPromise:function(V,I){let{overwrite:H,perm:w}=Object.assign({overwrite:!0},I);return new Promise((j,B)=>{if(!V&&J.filename)V=J.filename;if(!V)B("ADM-ZIP: ZIP File Name Missing");this.toBufferPromise().then((N)=>{let A=(v)=>v?j(v):B("ADM-ZIP: Wasn't able to write zip file");Y.writeFileToAsync(V,N,H,w,A)},B)})},toBufferPromise:function(){return new Promise((V,I)=>{Q.toAsyncBuffer(V,I)})},toBuffer:function(V,I,H,w){if(typeof V==="function")return Q.toAsyncBuffer(V,I,H,w),null;return Q.compressToBuffer()}}}});var uj=S((hGD,fm)=>{fm.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 IQ=S((VQ)=>{var _j=uj(),W0=process.env;Object.defineProperty(VQ,"_vendors",{value:_j.map(function(D){return D.constant})});VQ.name=null;VQ.isPR=null;VQ.id=null;if(W0.CI!=="false")_j.forEach(function(D){let U=(Array.isArray(D.env)?D.env:[D.env]).every(function(J){return xj(J)});if(VQ[D.constant]=U,!U)return;VQ.name=D.name,VQ.isPR=ym(D),VQ.id=D.constant});VQ.isCI=!!(W0.CI!=="false"&&(W0.BUILD_ID||W0.BUILD_NUMBER||W0.CI||W0.CI_APP_ID||W0.CI_BUILD_ID||W0.CI_BUILD_NUMBER||W0.CI_NAME||W0.CONTINUOUS_INTEGRATION||W0.RUN_ID||VQ.name||!1));function xj(D){if(typeof D==="string")return!!W0[D];if("env"in D)return W0[D.env]&&W0[D.env].includes(D.includes);if("any"in D)return D.any.some(function($){return!!W0[$]});return Object.keys(D).every(function($){return W0[$]===D[$]})}function ym(D){switch(typeof D.pr){case"string":return!!W0[D.pr];case"object":if("env"in D.pr)if("any"in D.pr)return D.pr.any.some(function($){return W0[D.pr.env]===$});else return D.pr.env in W0&&W0[D.pr.env]!==D.pr.ne;else if("any"in D.pr)return D.pr.any.some(function($){return!!W0[$]});else return xj(D.pr);default:return null}}});var lj=S((lGD,mj)=>{var hj={};mj.exports=hj;var yj={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(yj).forEach(function(D){var $=yj[D],U=hj[D]=[];U.open="\x1B["+$[0]+"m",U.close="\x1B["+$[1]+"m"})});var dj=S((cGD,cj)=>{cj.exports=function(D,$){$=$||process.argv;var U=$.indexOf("--"),J=/^-{1,2}/.test(D)?"":"--",Y=$.indexOf(J+D);return Y!==-1&&(U===-1?!0:Y<U)}});var pj=S((dGD,ij)=>{var mm=UD("os"),f6=dj(),h0=process.env,s4=void 0;if(f6("no-color")||f6("no-colors")||f6("color=false"))s4=!1;else if(f6("color")||f6("colors")||f6("color=true")||f6("color=always"))s4=!0;if("FORCE_COLOR"in h0)s4=h0.FORCE_COLOR.length===0||parseInt(h0.FORCE_COLOR,10)!==0;function lm(D){if(D===0)return!1;return{level:D,hasBasic:!0,has256:D>=2,has16m:D>=3}}function cm(D){if(s4===!1)return 0;if(f6("color=16m")||f6("color=full")||f6("color=truecolor"))return 3;if(f6("color=256"))return 2;if(D&&!D.isTTY&&s4!==!0)return 0;var $=s4?1:0;if(process.platform==="win32"){var U=mm.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(U[0])>=10&&Number(U[2])>=10586)return Number(U[2])>=14931?3:2;return 1}if("CI"in h0){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(Y){return Y in h0})||h0.CI_NAME==="codeship")return 1;return $}if("TEAMCITY_VERSION"in h0)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(h0.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in h0){var J=parseInt((h0.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(h0.TERM_PROGRAM){case"iTerm.app":return J>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(h0.TERM))return 2;if(/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(h0.TERM))return 1;if("COLORTERM"in h0)return 1;if(h0.TERM==="dumb")return $;return $}function BQ(D){var $=cm(D);return lm($)}ij.exports={supportsColor:BQ,stdout:BQ(process.stdout),stderr:BQ(process.stderr)}});var rj=S((iGD,nj)=>{nj.exports=function($,U){var J="";$=$||"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(X){X=X.toLowerCase();var Q=Y[X]||[" "],F=Math.floor(Math.random()*Q.length);if(typeof Y[X]<"u")J+=Y[X][F];else J+=X}),J}});var aj=S((pGD,oj)=>{oj.exports=function($,U){$=$||" he is here ";var J={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},Y=[].concat(J.up,J.down,J.mid);function X(W){var K=Math.floor(Math.random()*W);return K}function Q(W){var K=!1;return Y.filter(function(Z){K=Z===W}),K}function F(W,K){var Z="",z,q;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(q in W){if(Q(q))continue;switch(Z=Z+W[q],z={up:0,down:0,mid:0},K.size){case"mini":z.up=X(8),z.mid=X(2),z.down=X(8);break;case"maxi":z.up=X(16)+3,z.mid=X(4)+1,z.down=X(64)+3;break;default:z.up=X(8)+1,z.mid=X(6)/2,z.down=X(8)+1;break}var G=["up","mid","down"];for(var V in G){var I=G[V];for(var H=0;H<=z[I];H++)if(K[I])Z=Z+J[I][X(J[I].length)]}}return Z}return F($,U)}});var sj=S((nGD,tj)=>{tj.exports=function(D){return function($,U,J){if($===" ")return $;switch(U%3){case 0:return D.red($);case 1:return D.white($);case 2:return D.blue($)}}}});var DN=S((rGD,ej)=>{ej.exports=function(D){return function($,U,J){return U%2===0?$:D.inverse($)}}});var UN=S((oGD,$N)=>{$N.exports=function(D){var $=["red","yellow","green","blue","magenta"];return function(U,J,Y){if(U===" ")return U;else return D[$[J++%$.length]](U)}}});var YN=S((aGD,JN)=>{JN.exports=function(D){var $=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(U,J,Y){return U===" "?U:D[$[Math.round(Math.random()*($.length-2))]](U)}}});var KN=S((sGD,WN)=>{var MD={};WN.exports=MD;MD.themes={};var dm=UD("util"),T1=MD.styles=lj(),XN=Object.defineProperties,im=new RegExp(/[\r\n]+/g);MD.supportsColor=pj().supportsColor;if(typeof MD.enabled>"u")MD.enabled=MD.supportsColor()!==!1;MD.enable=function(){MD.enabled=!0};MD.disable=function(){MD.enabled=!1};MD.stripColors=MD.strip=function(D){return(""+D).replace(/\x1B\[\d+m/g,"")};var tGD=MD.stylize=function($,U){if(!MD.enabled)return $+"";var J=T1[U];if(!J&&U in MD)return MD[U]($);return J.open+$+J.close},pm=/[|\\{}()[\]^$+*?.]/g,nm=function(D){if(typeof D!=="string")throw TypeError("Expected a string");return D.replace(pm,"\\$&")};function QN(D){var $=function U(){return om.apply(U,arguments)};return $._styles=D,$.__proto__=rm,$}var FN=function(){var D={};return T1.grey=T1.gray,Object.keys(T1).forEach(function($){T1[$].closeRe=new RegExp(nm(T1[$].close),"g"),D[$]={get:function(){return QN(this._styles.concat($))}}}),D}(),rm=XN(function(){},FN);function om(){var D=Array.prototype.slice.call(arguments),$=D.map(function(Q){if(Q!=null&&Q.constructor===String)return Q;else return dm.inspect(Q)}).join(" ");if(!MD.enabled||!$)return $;var U=$.indexOf(`
`)!=-1,J=this._styles,Y=J.length;while(Y--){var X=T1[J[Y]];if($=X.open+$.replace(X.closeRe,X.open)+X.close,U)$=$.replace(im,function(Q){return X.close+Q+X.open})}return $}MD.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(U){MD[U]=function(J){if(typeof D[U]==="object"){var Y=J;for(var X in D[U])Y=MD[D[U][X]](Y);return Y}return MD[D[U]](J)}})($)};function am(){var D={};return Object.keys(FN).forEach(function($){D[$]={get:function(){return QN([$])}}}),D}var tm=function($,U){var J=U.split("");return J=J.map($),J.join("")};MD.trap=rj();MD.zalgo=aj();MD.maps={};MD.maps.america=sj()(MD);MD.maps.zebra=DN()(MD);MD.maps.rainbow=UN()(MD);MD.maps.random=YN()(MD);for(wQ in MD.maps)(function(D){MD[D]=function($){return tm(MD.maps[D],$)}})(wQ);var wQ;XN(MD,am())});var zN=S((eGD,ZN)=>{var sm=KN();ZN.exports=sm});var qN=S((em)=>{em.indent=function($){return Array($+1).join(" ")};em.getMaxIndexLength=function(D){var $=0;return Object.getOwnPropertyNames(D).forEach(function(U){if(D[U]===void 0)return;$=Math.max($,U.length)}),$}});var GN=S(($VD,Ul)=>{Ul.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 HN=S((Ql)=>{var t6=zN(),h$=qN(),Jl=/[^\w\s\n\r\v\t\.,]/i;Ql.version=GN().version;var OQ=function(D,$){return D!==void 0||$.renderUndefined},Y3=function(D,$,U){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(U.inlineArrays&&!$){if(Array.isArray(D)&&Y3(D[0],!0,U))return!0}return!1},Yl=function(D,$){if($.noColor)return D;if(typeof D==="string")return $.stringColor?t6[$.stringColor](D):D;var U=D+"";if(D===!0)return t6.green(U);if(D===!1)return t6.red(U);if(D===null||D===void 0)return t6.grey(U);if(typeof D==="number")if(D>=0)return t6[$.positiveNumberColor](U);else return t6[$.negativeNumberColor](U);if(typeof D==="function")return"function() {}";if(Array.isArray(D))return D.join(", ");return U},jQ=function(D,$){if(D.multilineStringColor===null||D.noColor)return $;else return t6[D.multilineStringColor]($)},Xl=function(D,$,U){var J=D.split(`
`);return J=J.map(function(Y){return h$.indent($)+jQ(U,Y)}),J.join(`
`)},e4=function(D,$,U){if(typeof D==="string"&&D.match(Jl)&&$.escape)D=JSON.stringify(D);if(!OQ(D,$))return[];if(Y3(D,!1,$))return[h$.indent(U)+Yl(D,$)];if(typeof D==="string")return[h$.indent(U)+jQ($,'"""'),Xl(D,U+$.defaultIndentation,$),h$.indent(U)+jQ($,'"""')];if(Array.isArray(D)){if(D.length===0)return[h$.indent(U)+$.emptyArrayMsg];var J=[];return D.forEach(function(F){if(!OQ(F,$))return;var W="- ";if(!$.noColor)W=t6[$.dashColor](W);if(W=h$.indent(U)+W,Y3(F,!1,$))W+=e4(F,$,0)[0],J.push(W);else J.push(W),J.push.apply(J,e4(F,$,U+$.defaultIndentation))}),J}if(D instanceof Error)return e4({message:D.message,stack:D.stack.split(`
`)},$,U);var Y=$.noAlign?0:h$.getMaxIndexLength(D),X,Q=[];return Object.getOwnPropertyNames(D).forEach(function(F){if(!OQ(D[F],$))return;if(X=F+": ",!$.noColor)X=t6[$.keysColor](X);if(X=h$.indent(U)+X,Y3(D[F],!1,$)){var W=$.noAlign?0:Y-F.length;X+=e4(D[F],$,W)[0],Q.push(X)}else Q.push(X),Q.push.apply(Q,e4(D[F],$,U+$.defaultIndentation))}),Q};Ql.render=function($,U,J){return J=J||0,U=U||{},U.emptyArrayMsg=U.emptyArrayMsg||"(empty array)",U.keysColor=U.keysColor||"green",U.dashColor=U.dashColor||"green",U.numberColor=U.numberColor||"blue",U.positiveNumberColor=U.positiveNumberColor||U.numberColor,U.negativeNumberColor=U.negativeNumberColor||U.numberColor,U.defaultIndentation=U.defaultIndentation||2,U.noColor=!!U.noColor,U.noAlign=!!U.noAlign,U.escape=!!U.escape,U.renderUndefined=!!U.renderUndefined,U.stringColor=U.stringColor||null,U.multilineStringColor=U.multilineStringColor||null,e4($,U,J).join(`
`)};Ql.renderString=function($,U,J){var Y="",X;if(typeof $!=="string"||$==="")return"";if($[0]!=="{"&&$[0]!=="["){var Q;if($.indexOf("{")===-1)Q=$.indexOf("[");else if($.indexOf("[")===-1)Q=$.indexOf("{");else if($.indexOf("{")<$.indexOf("["))Q=$.indexOf("{");else Q=$.indexOf("[");Y+=$.substr(0,Q)+`
`,$=$.substr(Q)}try{X=JSON.parse($)}catch(F){return t6.red("Error:")+" Not valid JSON!"}return Y+=Ql.render(X,U,J),Y}});var RQ=S((BN)=>{Object.defineProperty(BN,"__esModule",{value:!0});BN.default=void 0;function D8(D){return D8=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},D8(D)}function IN(D,$){for(var U=0;U<$.length;U++){var J=$[U];if(J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J)J.writable=!0;Object.defineProperty(D,Zl(J.key),J)}}function Kl(D,$,U){if($)IN(D.prototype,$);if(U)IN(D,U);return Object.defineProperty(D,"prototype",{writable:!1}),D}function Zl(D){var $=zl(D,"string");return D8($)=="symbol"?$:$+""}function zl(D,$){if(D8(D)!="object"||!D)return D;var U=D[Symbol.toPrimitive];if(U!==void 0){var J=U.call(D,$||"default");if(D8(J)!="object")return J;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}function ql(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function Gl(D,$,U){return $=H9($),Vl(D,LQ()?Reflect.construct($,U||[],H9(D).constructor):$.apply(D,U))}function Vl(D,$){if($&&(D8($)==="object"||typeof $==="function"))return $;else if($!==void 0)throw TypeError("Derived constructors may only return object or undefined");return Hl(D)}function Hl(D){if(D===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function Il(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}),$)V9(D,$)}function NQ(D){var $=typeof Map==="function"?new Map:void 0;return NQ=function(J){if(J===null||!wl(J))return J;if(typeof J!=="function")throw TypeError("Super expression must either be null or a function");if(typeof $<"u"){if($.has(J))return $.get(J);$.set(J,Y)}function Y(){return Bl(J,arguments,H9(this).constructor)}return Y.prototype=Object.create(J.prototype,{constructor:{value:Y,enumerable:!1,writable:!0,configurable:!0}}),V9(Y,J)},NQ(D)}function Bl(D,$,U){if(LQ())return Reflect.construct.apply(null,arguments);var J=[null];J.push.apply(J,$);var Y=new(D.bind.apply(D,J));return U&&V9(Y,U.prototype),Y}function LQ(){try{var D=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch($){}return(LQ=function(){return!!D})()}function wl(D){try{return Function.toString.call(D).indexOf("[native code]")!==-1}catch($){return typeof D==="function"}}function V9(D,$){return V9=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(J,Y){return J.__proto__=Y,J},V9(D,$)}function H9(D){return H9=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(U){return U.__proto__||Object.getPrototypeOf(U)},H9(D)}var Ol=function(D){function $(U){var J,Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Q=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;if(ql(this,$),J=Gl(this,$,[U]),J.originalRequest=X,J.originalResponse=Q,J.causingError=Y,Y!=null)U+=", caused by ".concat(Y.toString());if(X!=null){var F=X.getHeader("X-Request-ID")||"n/a",W=X.getMethod(),K=X.getURL(),Z=Q?Q.getStatus():"n/a",z=Q?Q.getBody()||"":"n/a";U+=", originated from request (method: ".concat(W,", url: ").concat(K,", response code: ").concat(Z,", response text: ").concat(z,", request id: ").concat(F,")")}return J.message=U,J}return Il($,D),Kl($)}(NQ(Error)),JVD=BN.default=Ol});var MQ=S((jN)=>{Object.defineProperty(jN,"__esModule",{value:!0});jN.enableDebugLog=jl;jN.log=Nl;var ON=!1;function jl(){ON=!0}function Nl(D){if(!ON)return;console.log(D)}});var MN=S((LN)=>{Object.defineProperty(LN,"__esModule",{value:!0});LN.default=void 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 Ml(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function NN(D,$){for(var U=0;U<$.length;U++){var J=$[U];if(J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J)J.writable=!0;Object.defineProperty(D,vl(J.key),J)}}function Al(D,$,U){if($)NN(D.prototype,$);if(U)NN(D,U);return Object.defineProperty(D,"prototype",{writable:!1}),D}function vl(D){var $=El(D,"string");return I9($)=="symbol"?$:$+""}function El(D,$){if(I9(D)!="object"||!D)return D;var U=D[Symbol.toPrimitive];if(U!==void 0){var J=U.call(D,$||"default");if(I9(J)!="object")return J;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}var QVD=LN.default=function(){function D(){Ml(this,D)}return Al(D,[{key:"listAllUploads",value:function(){return Promise.resolve([])}},{key:"findUploadsByFingerprint",value:function(U){return Promise.resolve([])}},{key:"removeUpload",value:function(U){return Promise.resolve()}},{key:"addUpload",value:function(U,J){return Promise.resolve(null)}}])}()});var AN=S((AQ,vQ)=>{(function(D,$){typeof AQ==="object"&&typeof vQ<"u"?vQ.exports=$():typeof define==="function"&&define.amd?define($):function(){var U=D.Base64,J=$();if(J.noConflict=function(){return D.Base64=U,J},D.Meteor)Base64=J;D.Base64=J}()})(typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:AQ,function(){var D="3.7.8",$=D,U=typeof Buffer==="function",J=typeof TextDecoder==="function"?new TextDecoder:void 0,Y=typeof TextEncoder==="function"?new TextEncoder:void 0,X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Q=Array.prototype.slice.call(X),F=function(u){var m={};return u.forEach(function(qD,ID){return m[qD]=ID}),m}(Q),W=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,K=String.fromCharCode.bind(String),Z=typeof Uint8Array.from==="function"?Uint8Array.from.bind(Uint8Array):function(u){return new Uint8Array(Array.prototype.slice.call(u,0))},z=function(u){return u.replace(/=/g,"").replace(/[+\/]/g,function(m){return m=="+"?"-":"_"})},q=function(u){return u.replace(/[^A-Za-z0-9\+\/]/g,"")},G=function(u){var m,qD,ID,vD,M6="",g4=u.length%3;for(var R1=0;R1<u.length;){if((qD=u.charCodeAt(R1++))>255||(ID=u.charCodeAt(R1++))>255||(vD=u.charCodeAt(R1++))>255)throw TypeError("invalid character found");m=qD<<16|ID<<8|vD,M6+=Q[m>>18&63]+Q[m>>12&63]+Q[m>>6&63]+Q[m&63]}return g4?M6.slice(0,g4-3)+"===".substring(g4):M6},V=typeof btoa==="function"?function(u){return btoa(u)}:U?function(u){return Buffer.from(u,"binary").toString("base64")}:G,I=U?function(u){return Buffer.from(u).toString("base64")}:function(u){var m=4096,qD=[];for(var ID=0,vD=u.length;ID<vD;ID+=m)qD.push(K.apply(null,u.subarray(ID,ID+m)));return V(qD.join(""))},H=function(u,m){if(m===void 0)m=!1;return m?z(I(u)):I(u)},w=function(u){if(u.length<2){var m=u.charCodeAt(0);return m<128?u:m<2048?K(192|m>>>6)+K(128|m&63):K(224|m>>>12&15)+K(128|m>>>6&63)+K(128|m&63)}else{var m=65536+(u.charCodeAt(0)-55296)*1024+(u.charCodeAt(1)-56320);return K(240|m>>>18&7)+K(128|m>>>12&63)+K(128|m>>>6&63)+K(128|m&63)}},j=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,B=function(u){return u.replace(j,w)},N=U?function(u){return Buffer.from(u,"utf8").toString("base64")}:Y?function(u){return I(Y.encode(u))}:function(u){return V(B(u))},A=function(u,m){if(m===void 0)m=!1;return m?z(N(u)):N(u)},v=function(u){return A(u,!0)},k=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,C=function(u){switch(u.length){case 4:var m=(7&u.charCodeAt(0))<<18|(63&u.charCodeAt(1))<<12|(63&u.charCodeAt(2))<<6|63&u.charCodeAt(3),qD=m-65536;return K((qD>>>10)+55296)+K((qD&1023)+56320);case 3:return K((15&u.charCodeAt(0))<<12|(63&u.charCodeAt(1))<<6|63&u.charCodeAt(2));default:return K((31&u.charCodeAt(0))<<6|63&u.charCodeAt(1))}},b=function(u){return u.replace(k,C)},y=function(u){if(u=u.replace(/\s+/g,""),!W.test(u))throw TypeError("malformed base64.");u+="==".slice(2-(u.length&3));var m,qD,ID,vD=[];for(var M6=0;M6<u.length;)if(m=F[u.charAt(M6++)]<<18|F[u.charAt(M6++)]<<12|(qD=F[u.charAt(M6++)])<<6|(ID=F[u.charAt(M6++)]),qD===64)vD.push(K(m>>16&255));else if(ID===64)vD.push(K(m>>16&255,m>>8&255));else vD.push(K(m>>16&255,m>>8&255,m&255));return vD.join("")},T=typeof atob==="function"?function(u){return atob(q(u))}:U?function(u){return Buffer.from(u,"base64").toString("binary")}:y,h=U?function(u){return Z(Buffer.from(u,"base64"))}:function(u){return Z(T(u).split("").map(function(m){return m.charCodeAt(0)}))},c=function(u){return h(a(u))},p=U?function(u){return Buffer.from(u,"base64").toString("utf8")}:J?function(u){return J.decode(h(u))}:function(u){return b(T(u))},a=function(u){return q(u.replace(/[-_]/g,function(m){return m=="-"?"+":"/"}))},R=function(u){return p(a(u))},O=function(u){if(typeof u!=="string")return!1;var m=u.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(m)||!/[^\s0-9a-zA-Z\-_]/.test(m)},L=function(u){return{value:u,enumerable:!1,writable:!0,configurable:!0}},E=function(){var u=function(m,qD){return Object.defineProperty(String.prototype,m,L(qD))};u("fromBase64",function(){return R(this)}),u("toBase64",function(m){return A(this,m)}),u("toBase64URI",function(){return A(this,!0)}),u("toBase64URL",function(){return A(this,!0)}),u("toUint8Array",function(){return c(this)})},f=function(){var u=function(m,qD){return Object.defineProperty(Uint8Array.prototype,m,L(qD))};u("toBase64",function(m){return H(this,m)}),u("toBase64URI",function(){return H(this,!0)}),u("toBase64URL",function(){return H(this,!0)})},x=function(){E(),f()},s={version:D,VERSION:$,atob:T,atobPolyfill:y,btoa:V,btoaPolyfill:G,fromBase64:R,toBase64:A,encode:A,encodeURI:v,encodeURL:v,utob:B,btou:b,decode:R,isValid:O,fromUint8Array:H,toUint8Array:c,extendString:E,extendUint8Array:f,extendBuiltins:x};return s.Base64={},Object.keys(s).forEach(function(u){return s.Base64[u]=s[u]}),s})});var EN=S((WVD,vN)=>{vN.exports=function($,U){if(U=U.split(":")[0],$=+$,!$)return!1;switch(U){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 SN=S((Cl)=>{var Tl=Object.prototype.hasOwnProperty,Pl;function TN(D){try{return decodeURIComponent(D.replace(/\+/g," "))}catch($){return null}}function PN(D){try{return encodeURIComponent(D)}catch($){return null}}function Sl(D){var $=/([^=?#&]+)=?([^&]*)/g,U={},J;while(J=$.exec(D)){var Y=TN(J[1]),X=TN(J[2]);if(Y===null||X===null||Y in U)continue;U[Y]=X}return U}function bl(D,$){$=$||"";var U=[],J,Y;if(typeof $!=="string")$="?";for(Y in D)if(Tl.call(D,Y)){if(J=D[Y],!J&&(J===null||J===Pl||isNaN(J)))J="";if(Y=PN(Y),J=PN(J),Y===null||J===null)continue;U.push(Y+"="+J)}return U.length?$+U.join("&"):""}Cl.stringify=bl;Cl.parse=Sl});var fN=S((ZVD,gN)=>{var CN=EN(),X3=SN(),_l=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,kN=/[\n\r\t]/g,xl=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,uN=/:\d+$/,gl=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,fl=/^[a-zA-Z]:/;function TQ(D){return(D?D:"").toString().replace(_l,"")}var EQ=[["#","hash"],["?","query"],function($,U){return s6(U.protocol)?$.replace(/\\/g,"/"):$},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],bN={hash:1,query:1};function _N(D){var $;if(typeof window<"u")$=window;else if(typeof global<"u")$=global;else if(typeof self<"u")$=self;else $={};var U=$.location||{};D=D||U;var J={},Y=typeof D,X;if(D.protocol==="blob:")J=new e6(unescape(D.pathname),{});else if(Y==="string"){J=new e6(D,{});for(X in bN)delete J[X]}else if(Y==="object"){for(X in D){if(X in bN)continue;J[X]=D[X]}if(J.slashes===void 0)J.slashes=xl.test(D.href)}return J}function s6(D){return D==="file:"||D==="ftp:"||D==="http:"||D==="https:"||D==="ws:"||D==="wss:"}function xN(D,$){D=TQ(D),D=D.replace(kN,""),$=$||{};var U=gl.exec(D),J=U[1]?U[1].toLowerCase():"",Y=!!U[2],X=!!U[3],Q=0,F;if(Y)if(X)F=U[2]+U[3]+U[4],Q=U[2].length+U[3].length;else F=U[2]+U[4],Q=U[2].length;else if(X)F=U[3]+U[4],Q=U[3].length;else F=U[4];if(J==="file:"){if(Q>=2)F=F.slice(2)}else if(s6(J))F=U[4];else if(J){if(Y)F=F.slice(2)}else if(Q>=2&&s6($.protocol))F=U[4];return{protocol:J,slashes:Y||s6(J),slashesCount:Q,rest:F}}function yl(D,$){if(D==="")return $;var U=($||"/").split("/").slice(0,-1).concat(D.split("/")),J=U.length,Y=U[J-1],X=!1,Q=0;while(J--)if(U[J]===".")U.splice(J,1);else if(U[J]==="..")U.splice(J,1),Q++;else if(Q){if(J===0)X=!0;U.splice(J,1),Q--}if(X)U.unshift("");if(Y==="."||Y==="..")U.push("");return U.join("/")}function e6(D,$,U){if(D=TQ(D),D=D.replace(kN,""),!(this instanceof e6))return new e6(D,$,U);var J,Y,X,Q,F,W,K=EQ.slice(),Z=typeof $,z=this,q=0;if(Z!=="object"&&Z!=="string")U=$,$=null;if(U&&typeof U!=="function")U=X3.parse;if($=_N($),Y=xN(D||"",$),J=!Y.protocol&&!Y.slashes,z.slashes=Y.slashes||J&&$.slashes,z.protocol=Y.protocol||$.protocol||"",D=Y.rest,Y.protocol==="file:"&&(Y.slashesCount!==2||fl.test(D))||!Y.slashes&&(Y.protocol||Y.slashesCount<2||!s6(z.protocol)))K[3]=[/(.*)/,"pathname"];for(;q<K.length;q++){if(Q=K[q],typeof Q==="function"){D=Q(D,z);continue}if(X=Q[0],W=Q[1],X!==X)z[W]=D;else if(typeof X==="string"){if(F=X==="@"?D.lastIndexOf(X):D.indexOf(X),~F)if(typeof Q[2]==="number")z[W]=D.slice(0,F),D=D.slice(F+Q[2]);else z[W]=D.slice(F),D=D.slice(0,F)}else if(F=X.exec(D))z[W]=F[1],D=D.slice(0,F.index);if(z[W]=z[W]||(J&&Q[3]?$[W]||"":""),Q[4])z[W]=z[W].toLowerCase()}if(U)z.query=U(z.query);if(J&&$.slashes&&z.pathname.charAt(0)!=="/"&&(z.pathname!==""||$.pathname!==""))z.pathname=yl(z.pathname,$.pathname);if(z.pathname.charAt(0)!=="/"&&s6(z.protocol))z.pathname="/"+z.pathname;if(!CN(z.port,z.protocol))z.host=z.hostname,z.port="";if(z.username=z.password="",z.auth){if(F=z.auth.indexOf(":"),~F)z.username=z.auth.slice(0,F),z.username=encodeURIComponent(decodeURIComponent(z.username)),z.password=z.auth.slice(F+1),z.password=encodeURIComponent(decodeURIComponent(z.password));else z.username=encodeURIComponent(decodeURIComponent(z.auth));z.auth=z.password?z.username+":"+z.password:z.username}z.origin=z.protocol!=="file:"&&s6(z.protocol)&&z.host?z.protocol+"//"+z.host:"null",z.href=z.toString()}function hl(D,$,U){var J=this;switch(D){case"query":if(typeof $==="string"&&$.length)$=(U||X3.parse)($);J[D]=$;break;case"port":if(J[D]=$,!CN($,J.protocol))J.host=J.hostname,J[D]="";else if($)J.host=J.hostname+":"+$;break;case"hostname":if(J[D]=$,J.port)$+=":"+J.port;J.host=$;break;case"host":if(J[D]=$,uN.test($))$=$.split(":"),J.port=$.pop(),J.hostname=$.join(":");else J.hostname=$,J.port="";break;case"protocol":J.protocol=$.toLowerCase(),J.slashes=!U;break;case"pathname":case"hash":if($){var Y=D==="pathname"?"/":"#";J[D]=$.charAt(0)!==Y?Y+$:$}else J[D]=$;break;case"username":case"password":J[D]=encodeURIComponent($);break;case"auth":var X=$.indexOf(":");if(~X)J.username=$.slice(0,X),J.username=encodeURIComponent(decodeURIComponent(J.username)),J.password=$.slice(X+1),J.password=encodeURIComponent(decodeURIComponent(J.password));else J.username=encodeURIComponent(decodeURIComponent($))}for(var Q=0;Q<EQ.length;Q++){var F=EQ[Q];if(F[4])J[F[1]]=J[F[1]].toLowerCase()}return J.auth=J.password?J.username+":"+J.password:J.username,J.origin=J.protocol!=="file:"&&s6(J.protocol)&&J.host?J.protocol+"//"+J.host:"null",J.href=J.toString(),J}function ml(D){if(!D||typeof D!=="function")D=X3.stringify;var $,U=this,J=U.host,Y=U.protocol;if(Y&&Y.charAt(Y.length-1)!==":")Y+=":";var X=Y+(U.protocol&&U.slashes||s6(U.protocol)?"//":"");if(U.username){if(X+=U.username,U.password)X+=":"+U.password;X+="@"}else if(U.password)X+=":"+U.password,X+="@";else if(U.protocol!=="file:"&&s6(U.protocol)&&!J&&U.pathname!=="/")X+="@";if(J[J.length-1]===":"||uN.test(U.hostname)&&!U.port)J+=":";if(X+=J+U.pathname,$=typeof U.query==="object"?D(U.query):U.query,$)X+=$.charAt(0)!=="?"?"?"+$:$;if(U.hash)X+=U.hash;return X}e6.prototype={set:hl,toString:ml};e6.extractProtocol=xN;e6.location=_N;e6.trimLeft=TQ;e6.qs=X3;gN.exports=e6});var hN=S((yN)=>{Object.defineProperty(yN,"__esModule",{value:!0});yN.default=ll;function ll(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(D){var $=Math.random()*16|0,U=D==="x"?$:$&3|8;return U.toString(16)})}});var JL=S(($L)=>{Object.defineProperty($L,"__esModule",{value:!0});$L.default=void 0;var dl=AN(),il=bQ(fN()),Q3=bQ(RQ()),P1=MQ(),pl=bQ(hN());function bQ(D){return D&&D.__esModule?D:{default:D}}function PQ(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */PQ=function(){return $};var D,$={},U=Object.prototype,J=U.hasOwnProperty,Y=Object.defineProperty||function(R,O,L){R[O]=L.value},X=typeof Symbol=="function"?Symbol:{},Q=X.iterator||"@@iterator",F=X.asyncIterator||"@@asyncIterator",W=X.toStringTag||"@@toStringTag";function K(R,O,L){return Object.defineProperty(R,O,{value:L,enumerable:!0,configurable:!0,writable:!0}),R[O]}try{K({},"")}catch(R){K=function(L,E,f){return L[E]=f}}function Z(R,O,L,E){var f=O&&O.prototype instanceof w?O:w,x=Object.create(f.prototype),s=new p(E||[]);return Y(x,"_invoke",{value:y(R,L,s)}),x}function z(R,O,L){try{return{type:"normal",arg:R.call(O,L)}}catch(E){return{type:"throw",arg:E}}}$.wrap=Z;var q="suspendedStart",G="suspendedYield",V="executing",I="completed",H={};function w(){}function j(){}function B(){}var N={};K(N,Q,function(){return this});var A=Object.getPrototypeOf,v=A&&A(A(a([])));v&&v!==U&&J.call(v,Q)&&(N=v);var k=B.prototype=w.prototype=Object.create(N);function C(R){["next","throw","return"].forEach(function(O){K(R,O,function(L){return this._invoke(O,L)})})}function b(R,O){function L(f,x,s,u){var m=z(R[f],R,x);if(m.type!=="throw"){var qD=m.arg,ID=qD.value;return ID&&S1(ID)=="object"&&J.call(ID,"__await")?O.resolve(ID.__await).then(function(vD){L("next",vD,s,u)},function(vD){L("throw",vD,s,u)}):O.resolve(ID).then(function(vD){qD.value=vD,s(qD)},function(vD){return L("throw",vD,s,u)})}u(m.arg)}var E;Y(this,"_invoke",{value:function(x,s){function u(){return new O(function(m,qD){L(x,s,m,qD)})}return E=E?E.then(u,u):u()}})}function y(R,O,L){var E=q;return function(f,x){if(E===V)throw Error("Generator is already running");if(E===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 u=T(s,L);if(u){if(u===H)continue;return u}}if(L.method==="next")L.sent=L._sent=L.arg;else if(L.method==="throw"){if(E===q)throw E=I,L.arg;L.dispatchException(L.arg)}else L.method==="return"&&L.abrupt("return",L.arg);E=V;var m=z(R,O,L);if(m.type==="normal"){if(E=L.done?I:G,m.arg===H)continue;return{value:m.arg,done:L.done}}m.type==="throw"&&(E=I,L.method="throw",L.arg=m.arg)}}}function T(R,O){var L=O.method,E=R.iterator[L];if(E===D)return O.delegate=null,L==="throw"&&R.iterator.return&&(O.method="return",O.arg=D,T(R,O),O.method==="throw")||L!=="return"&&(O.method="throw",O.arg=TypeError("The iterator does not provide a '"+L+"' method")),H;var f=z(E,R.iterator,O.arg);if(f.type==="throw")return O.method="throw",O.arg=f.arg,O.delegate=null,H;var x=f.arg;return x?x.done?(O[R.resultName]=x.value,O.next=R.nextLoc,O.method!=="return"&&(O.method="next",O.arg=D),O.delegate=null,H):x:(O.method="throw",O.arg=TypeError("iterator result is not an object"),O.delegate=null,H)}function h(R){var O={tryLoc:R[0]};1 in R&&(O.catchLoc=R[1]),2 in R&&(O.finallyLoc=R[2],O.afterLoc=R[3]),this.tryEntries.push(O)}function c(R){var O=R.completion||{};O.type="normal",delete O.arg,R.completion=O}function p(R){this.tryEntries=[{tryLoc:"root"}],R.forEach(h,this),this.reset(!0)}function a(R){if(R||R===""){var O=R[Q];if(O)return O.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var L=-1,E=function f(){for(;++L<R.length;)if(J.call(R,L))return f.value=R[L],f.done=!1,f;return f.value=D,f.done=!0,f};return E.next=E}}throw TypeError(S1(R)+" is not iterable")}return j.prototype=B,Y(k,"constructor",{value:B,configurable:!0}),Y(B,"constructor",{value:j,configurable:!0}),j.displayName=K(B,W,"GeneratorFunction"),$.isGeneratorFunction=function(R){var O=typeof R=="function"&&R.constructor;return!!O&&(O===j||(O.displayName||O.name)==="GeneratorFunction")},$.mark=function(R){return Object.setPrototypeOf?Object.setPrototypeOf(R,B):(R.__proto__=B,K(R,W,"GeneratorFunction")),R.prototype=Object.create(k),R},$.awrap=function(R){return{__await:R}},C(b.prototype),K(b.prototype,F,function(){return this}),$.AsyncIterator=b,$.async=function(R,O,L,E,f){f===void 0&&(f=Promise);var x=new b(Z(R,O,L,E),f);return $.isGeneratorFunction(O)?x:x.next().then(function(s){return s.done?s.value:x.next()})},C(k),K(k,W,"Generator"),K(k,Q,function(){return this}),K(k,"toString",function(){return"[object Generator]"}),$.keys=function(R){var O=Object(R),L=[];for(var E in O)L.push(E);return L.reverse(),function f(){for(;L.length;){var x=L.pop();if(x in O)return f.value=x,f.done=!1,f}return f.done=!0,f}},$.values=a,p.prototype={constructor:p,reset:function(O){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),!O)for(var L in this)L.charAt(0)==="t"&&J.call(this,L)&&!isNaN(+L.slice(1))&&(this[L]=D)},stop:function(){this.done=!0;var O=this.tryEntries[0].completion;if(O.type==="throw")throw O.arg;return this.rval},dispatchException:function(O){if(this.done)throw O;var L=this;function E(qD,ID){return s.type="throw",s.arg=O,L.next=qD,ID&&(L.method="next",L.arg=D),!!ID}for(var f=this.tryEntries.length-1;f>=0;--f){var x=this.tryEntries[f],s=x.completion;if(x.tryLoc==="root")return E("end");if(x.tryLoc<=this.prev){var u=J.call(x,"catchLoc"),m=J.call(x,"finallyLoc");if(u&&m){if(this.prev<x.catchLoc)return E(x.catchLoc,!0);if(this.prev<x.finallyLoc)return E(x.finallyLoc)}else if(u){if(this.prev<x.catchLoc)return E(x.catchLoc,!0)}else{if(!m)throw Error("try statement without catch or finally");if(this.prev<x.finallyLoc)return E(x.finallyLoc)}}}},abrupt:function(O,L){for(var E=this.tryEntries.length-1;E>=0;--E){var f=this.tryEntries[E];if(f.tryLoc<=this.prev&&J.call(f,"finallyLoc")&&this.prev<f.finallyLoc){var x=f;break}}x&&(O==="break"||O==="continue")&&x.tryLoc<=L&&L<=x.finallyLoc&&(x=null);var s=x?x.completion:{};return s.type=O,s.arg=L,x?(this.method="next",this.next=x.finallyLoc,H):this.complete(s)},complete:function(O,L){if(O.type==="throw")throw O.arg;return O.type==="break"||O.type==="continue"?this.next=O.arg:O.type==="return"?(this.rval=this.arg=O.arg,this.method="return",this.next="end"):O.type==="normal"&&L&&(this.next=L),H},finish:function(O){for(var L=this.tryEntries.length-1;L>=0;--L){var E=this.tryEntries[L];if(E.finallyLoc===O)return this.complete(E.completion,E.afterLoc),c(E),H}},catch:function(O){for(var L=this.tryEntries.length-1;L>=0;--L){var E=this.tryEntries[L];if(E.tryLoc===O){var f=E.completion;if(f.type==="throw"){var x=f.arg;c(E)}return x}}throw Error("illegal catch attempt")},delegateYield:function(O,L,E){return this.delegate={iterator:a(O),resultName:L,nextLoc:E},this.method==="next"&&(this.arg=D),H}},$}function mN(D,$,U,J,Y,X,Q){try{var F=D[X](Q),W=F.value}catch(K){U(K);return}if(F.done)$(W);else Promise.resolve(W).then(J,Y)}function nl(D){return function(){var $=this,U=arguments;return new Promise(function(J,Y){var X=D.apply($,U);function Q(W){mN(X,J,Y,Q,F,"next",W)}function F(W){mN(X,J,Y,Q,F,"throw",W)}Q(void 0)})}}function aN(D,$){return al(D)||ol(D,$)||tN(D,$)||rl()}function rl(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ol(D,$){var U=D==null?null:typeof Symbol<"u"&&D[Symbol.iterator]||D["@@iterator"];if(U!=null){var J,Y,X,Q,F=[],W=!0,K=!1;try{if(X=(U=U.call(D)).next,$===0){if(Object(U)!==U)return;W=!1}else for(;!(W=(J=X.call(U)).done)&&(F.push(J.value),F.length!==$);W=!0);}catch(Z){K=!0,Y=Z}finally{try{if(!W&&U.return!=null&&(Q=U.return(),Object(Q)!==Q))return}finally{if(K)throw Y}}return F}}function al(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 tl(D,$){var U=typeof Symbol<"u"&&D[Symbol.iterator]||D["@@iterator"];if(!U){if(Array.isArray(D)||(U=tN(D))||$&&D&&typeof D.length==="number"){if(U)D=U;var J=0,Y=function(){};return{s:Y,n:function(){if(J>=D.length)return{done:!0};return{done:!1,value:D[J++]}},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 X=!0,Q=!1,F;return{s:function(){U=U.call(D)},n:function(){var K=U.next();return X=K.done,K},e:function(K){Q=!0,F=K},f:function(){try{if(!X&&U.return!=null)U.return()}finally{if(Q)throw F}}}}function tN(D,$){if(!D)return;if(typeof D==="string")return lN(D,$);var U=Object.prototype.toString.call(D).slice(8,-1);if(U==="Object"&&D.constructor)U=D.constructor.name;if(U==="Map"||U==="Set")return Array.from(D);if(U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U))return lN(D,$)}function lN(D,$){if($==null||$>D.length)$=D.length;for(var U=0,J=Array($);U<$;U++)J[U]=D[U];return J}function cN(D,$){var U=Object.keys(D);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(D);$&&(J=J.filter(function(Y){return Object.getOwnPropertyDescriptor(D,Y).enumerable})),U.push.apply(U,J)}return U}function $8(D){for(var $=1;$<arguments.length;$++){var U=arguments[$]!=null?arguments[$]:{};$%2?cN(Object(U),!0).forEach(function(J){sl(D,J,U[J])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(U)):cN(Object(U)).forEach(function(J){Object.defineProperty(D,J,Object.getOwnPropertyDescriptor(U,J))})}return D}function sl(D,$,U){if($=sN($),$ in D)Object.defineProperty(D,$,{value:U,enumerable:!0,configurable:!0,writable:!0});else D[$]=U;return D}function el(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function dN(D,$){for(var U=0;U<$.length;U++){var J=$[U];if(J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J)J.writable=!0;Object.defineProperty(D,sN(J.key),J)}}function Dc(D,$,U){if($)dN(D.prototype,$);if(U)dN(D,U);return Object.defineProperty(D,"prototype",{writable:!1}),D}function sN(D){var $=$c(D,"string");return S1($)=="symbol"?$:$+""}function $c(D,$){if(S1(D)!="object"||!D)return D;var U=D[Symbol.toPrimitive];if(U!==void 0){var J=U.call(D,$||"default");if(S1(J)!="object")return J;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}var F3="tus-v1",W3="ietf-draft-03",B9="ietf-draft-05",Uc={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:DL,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:F3},eN=function(){function D($,U){if(el(this,D),"resume"in U)console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead.");this.options=U,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 Dc(D,[{key:"findPreviousUploads",value:function(){var U=this;return this.options.fingerprint(this.file,this.options).then(function(J){return U._urlStorage.findUploadsByFingerprint(J)})}},{key:"resumeFromPreviousUpload",value:function(U){this.url=U.uploadUrl||null,this._parallelUploadUrls=U.parallelUploadUrls||null,this._urlStorageKey=U.urlStorageKey}},{key:"start",value:function(){var U=this,J=this.file;if(!J){this._emitError(Error("tus: no file or stream to upload provided"));return}if(![F3,W3,B9].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 X=0,Q=["uploadUrl","uploadSize","uploadLengthDeferred"];X<Q.length;X++){var F=Q[X];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(J,this.options).then(function(W){if(W==null)(0,P1.log)("No fingerprint was calculated meaning that the upload cannot be stored in the URL storage.");else(0,P1.log)("Calculated fingerprint: ".concat(W));if(U._fingerprint=W,U._source)return U._source;return U.options.fileReader.openFile(J,U.options.chunkSize)}).then(function(W){if(U._source=W,U.options.uploadLengthDeferred)U._size=null;else if(U.options.uploadSize!=null){if(U._size=Number(U.options.uploadSize),Number.isNaN(U._size)){U._emitError(Error("tus: cannot convert `uploadSize` option into a number"));return}}else if(U._size=U._source.size,U._size==null){U._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(U.options.parallelUploads>1||U._parallelUploadUrls!=null)U._startParallelUpload();else U._startSingleUpload()}).catch(function(W){U._emitError(W)})}},{key:"_startParallelUpload",value:function(){var U,J=this,Y=this._size,X=0;this._parallelUploads=[];var Q=this._parallelUploadUrls!=null?this._parallelUploadUrls.length:this.options.parallelUploads,F=(U=this.options.parallelUploadBoundaries)!==null&&U!==void 0?U:Yc(this._source.size,Q);if(this._parallelUploadUrls)F.forEach(function(Z,z){Z.uploadUrl=J._parallelUploadUrls[z]||null});this._parallelUploadUrls=Array(F.length);var W=F.map(function(Z,z){var q=0;return J._source.slice(Z.start,Z.end).then(function(G){var V=G.value;return new Promise(function(I,H){var w=$8($8({},J.options),{},{uploadUrl:Z.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:J.options.metadataForPartialUploads,headers:$8($8({},J.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:I,onError:H,onProgress:function(N){X=X-q+N,q=N,J._emitProgress(X,Y)},onUploadUrlAvailable:function(){if(J._parallelUploadUrls[z]=j.url,J._parallelUploadUrls.filter(function(N){return Boolean(N)}).length===F.length)J._saveUploadInUrlStorage()}}),j=new D(V,w);j.start(),J._parallelUploads.push(j)})})}),K;Promise.all(W).then(function(){K=J._openRequest("POST",J.options.endpoint),K.setHeader("Upload-Concat","final;".concat(J._parallelUploadUrls.join(" ")));var Z=iN(J.options.metadata);if(Z!=="")K.setHeader("Upload-Metadata",Z);return J._sendRequest(K,null)}).then(function(Z){if(!U8(Z.getStatus(),200)){J._emitHttpError(K,Z,"tus: unexpected response while creating upload");return}var z=Z.getHeader("Location");if(z==null){J._emitHttpError(K,Z,"tus: invalid or missing Location header");return}J.url=oN(J.options.endpoint,z),(0,P1.log)("Created upload at ".concat(J.url)),J._emitSuccess(Z)}).catch(function(Z){J._emitError(Z)})}},{key:"_startSingleUpload",value:function(){if(this._aborted=!1,this.url!=null){(0,P1.log)("Resuming upload from previous URL: ".concat(this.url)),this._resumeUpload();return}if(this.options.uploadUrl!=null){(0,P1.log)("Resuming upload from provided URL: ".concat(this.options.uploadUrl)),this.url=this.options.uploadUrl,this._resumeUpload();return}(0,P1.log)("Creating a new upload"),this._createUpload()}},{key:"abort",value:function(U){var J=this;if(this._parallelUploads!=null){var Y=tl(this._parallelUploads),X;try{for(Y.s();!(X=Y.n()).done;){var Q=X.value;Q.abort(U)}}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(!U||this.url==null)return Promise.resolve();return D.terminate(this.url,this.options).then(function(){return J._removeFromUrlStorage()})}},{key:"_emitHttpError",value:function(U,J,Y,X){this._emitError(new Q3.default(Y,X,U,J))}},{key:"_emitError",value:function(U){var J=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(rN(U,this._retryAttempt,this.options)){var X=this.options.retryDelays[this._retryAttempt++];this._offsetBeforeRetry=this._offset,this._retryTimeout=setTimeout(function(){J.start()},X);return}}if(typeof this.options.onError==="function")this.options.onError(U);else throw U}},{key:"_emitSuccess",value:function(U){if(this.options.removeFingerprintOnSuccess)this._removeFromUrlStorage();if(typeof this.options.onSuccess==="function")this.options.onSuccess({lastResponse:U})}},{key:"_emitProgress",value:function(U,J){if(typeof this.options.onProgress==="function")this.options.onProgress(U,J)}},{key:"_emitChunkComplete",value:function(U,J,Y){if(typeof this.options.onChunkComplete==="function")this.options.onChunkComplete(U,J,Y)}},{key:"_createUpload",value:function(){var U=this;if(!this.options.endpoint){this._emitError(Error("tus: unable to create upload because no endpoint is provided"));return}var J=this._openRequest("POST",this.options.endpoint);if(this.options.uploadLengthDeferred)J.setHeader("Upload-Defer-Length","1");else J.setHeader("Upload-Length","".concat(this._size));var Y=iN(this.options.metadata);if(Y!=="")J.setHeader("Upload-Metadata",Y);var X;if(this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred)this._offset=0,X=this._addChunkToRequest(J);else{if(this.options.protocol===W3||this.options.protocol===B9)J.setHeader("Upload-Complete","?0");X=this._sendRequest(J,null)}X.then(function(Q){if(!U8(Q.getStatus(),200)){U._emitHttpError(J,Q,"tus: unexpected response while creating upload");return}var F=Q.getHeader("Location");if(F==null){U._emitHttpError(J,Q,"tus: invalid or missing Location header");return}if(U.url=oN(U.options.endpoint,F),(0,P1.log)("Created upload at ".concat(U.url)),typeof U.options.onUploadUrlAvailable==="function")U.options.onUploadUrlAvailable();if(U._size===0){U._emitSuccess(Q),U._source.close();return}U._saveUploadInUrlStorage().then(function(){if(U.options.uploadDataDuringCreation)U._handleUploadResponse(J,Q);else U._offset=0,U._performUpload()})}).catch(function(Q){U._emitHttpError(J,null,"tus: failed to create upload",Q)})}},{key:"_resumeUpload",value:function(){var U=this,J=this._openRequest("HEAD",this.url),Y=this._sendRequest(J,null);Y.then(function(X){var Q=X.getStatus();if(!U8(Q,200)){if(Q===423){U._emitHttpError(J,X,"tus: upload is currently locked; retry later");return}if(U8(Q,400))U._removeFromUrlStorage();if(!U.options.endpoint){U._emitHttpError(J,X,"tus: unable to resume upload (new upload cannot be created without an endpoint)");return}U.url=null,U._createUpload();return}var F=Number.parseInt(X.getHeader("Upload-Offset"),10);if(Number.isNaN(F)){U._emitHttpError(J,X,"tus: invalid or missing offset value");return}var W=Number.parseInt(X.getHeader("Upload-Length"),10);if(Number.isNaN(W)&&!U.options.uploadLengthDeferred&&U.options.protocol===F3){U._emitHttpError(J,X,"tus: invalid or missing length value");return}if(typeof U.options.onUploadUrlAvailable==="function")U.options.onUploadUrlAvailable();U._saveUploadInUrlStorage().then(function(){if(F===W){U._emitProgress(W,W),U._emitSuccess(X);return}U._offset=F,U._performUpload()})}).catch(function(X){U._emitHttpError(J,null,"tus: failed to resume upload",X)})}},{key:"_performUpload",value:function(){var U=this;if(this._aborted)return;var J;if(this.options.overridePatchMethod)J=this._openRequest("POST",this.url),J.setHeader("X-HTTP-Method-Override","PATCH");else J=this._openRequest("PATCH",this.url);J.setHeader("Upload-Offset","".concat(this._offset));var Y=this._addChunkToRequest(J);Y.then(function(X){if(!U8(X.getStatus(),200)){U._emitHttpError(J,X,"tus: unexpected response while uploading chunk");return}U._handleUploadResponse(J,X)}).catch(function(X){if(U._aborted)return;U._emitHttpError(J,null,"tus: failed to upload chunk at offset ".concat(U._offset),X)})}},{key:"_addChunkToRequest",value:function(U){var J=this,Y=this._offset,X=this._offset+this.options.chunkSize;if(U.setProgressHandler(function(Q){J._emitProgress(Y+Q,J._size)}),this.options.protocol===F3)U.setHeader("Content-Type","application/offset+octet-stream");else if(this.options.protocol===B9)U.setHeader("Content-Type","application/partial-upload");if((X===Number.POSITIVE_INFINITY||X>this._size)&&!this.options.uploadLengthDeferred)X=this._size;return this._source.slice(Y,X).then(function(Q){var{value:F,done:W}=Q,K=F!==null&&F!==void 0&&F.size?F.size:0;if(J.options.uploadLengthDeferred&&W)J._size=J._offset+K,U.setHeader("Upload-Length","".concat(J._size));var Z=J._offset+K;if(!J.options.uploadLengthDeferred&&W&&Z!==J._size)return Promise.reject(Error("upload was configured with a size of ".concat(J._size," bytes, but the source is done after ").concat(Z," bytes")));if(F===null)return J._sendRequest(U);if(J.options.protocol===W3||J.options.protocol===B9)U.setHeader("Upload-Complete",W?"?1":"?0");return J._emitProgress(J._offset,J._size),J._sendRequest(U,F)})}},{key:"_handleUploadResponse",value:function(U,J){var Y=Number.parseInt(J.getHeader("Upload-Offset"),10);if(Number.isNaN(Y)){this._emitHttpError(U,J,"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(J),this._source.close();return}this._performUpload()}},{key:"_openRequest",value:function(U,J){var Y=pN(U,J,this.options);return this._req=Y,Y}},{key:"_removeFromUrlStorage",value:function(){var U=this;if(!this._urlStorageKey)return;this._urlStorage.removeUpload(this._urlStorageKey).catch(function(J){U._emitError(J)}),this._urlStorageKey=null}},{key:"_saveUploadInUrlStorage",value:function(){var U=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||this._urlStorageKey!==null)return Promise.resolve();var J={size:this._size,metadata:this.options.metadata,creationTime:new Date().toString()};if(this._parallelUploads)J.parallelUploadUrls=this._parallelUploadUrls;else J.uploadUrl=this.url;return this._urlStorage.addUpload(this._fingerprint,J).then(function(Y){U._urlStorageKey=Y})}},{key:"_sendRequest",value:function(U){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return nN(U,J,this.options)}}],[{key:"terminate",value:function(U){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=pN("DELETE",U,J);return nN(Y,null,J).then(function(X){if(X.getStatus()===204)return;throw new Q3.default("tus: unexpected response while terminating upload",null,Y,X)}).catch(function(X){if(!(X instanceof Q3.default))X=new Q3.default("tus: failed to terminate upload",X,Y,null);if(!rN(X,0,J))throw X;var Q=J.retryDelays[0],F=J.retryDelays.slice(1),W=$8($8({},J),{},{retryDelays:F});return new Promise(function(K){return setTimeout(K,Q)}).then(function(){return D.terminate(U,W)})})}}])}();function iN(D){return Object.entries(D).map(function($){var U=aN($,2),J=U[0],Y=U[1];return"".concat(J," ").concat(dl.Base64.encode(String(Y)))}).join(",")}function U8(D,$){return D>=$&&D<$+100}function pN(D,$,U){var J=U.httpStack.createRequest(D,$);if(U.protocol===W3)J.setHeader("Upload-Draft-Interop-Version","5");else if(U.protocol===B9)J.setHeader("Upload-Draft-Interop-Version","6");else J.setHeader("Tus-Resumable","1.0.0");var Y=U.headers||{};for(var X=0,Q=Object.entries(Y);X<Q.length;X++){var F=aN(Q[X],2),W=F[0],K=F[1];J.setHeader(W,K)}if(U.addRequestId){var Z=(0,pl.default)();J.setHeader("X-Request-ID",Z)}return J}function nN(D,$,U){return SQ.apply(this,arguments)}function SQ(){return SQ=nl(PQ().mark(function D($,U,J){var Y;return PQ().wrap(function(Q){while(!0)switch(Q.prev=Q.next){case 0:if(typeof J.onBeforeRequest!=="function"){Q.next=3;break}return Q.next=3,J.onBeforeRequest($);case 3:return Q.next=5,$.send(U);case 5:if(Y=Q.sent,typeof J.onAfterResponse!=="function"){Q.next=9;break}return Q.next=9,J.onAfterResponse($,Y);case 9:return Q.abrupt("return",Y);case 10:case"end":return Q.stop()}},D)})),SQ.apply(this,arguments)}function Jc(){var D=!0;if(typeof navigator<"u"&&navigator.onLine===!1)D=!1;return D}function rN(D,$,U){if(U.retryDelays==null||$>=U.retryDelays.length||D.originalRequest==null)return!1;if(U&&typeof U.onShouldRetry==="function")return U.onShouldRetry(D,$,U);return DL(D)}function DL(D){var $=D.originalResponse?D.originalResponse.getStatus():0;return(!U8($,400)||$===409||$===423)&&Jc()}function oN(D,$){return new il.default($,D).toString()}function Yc(D,$){var U=Math.floor(D/$),J=[];for(var Y=0;Y<$;Y++)J.push({start:U*Y,end:U*(Y+1)});return J[$-1].end=D,J}eN.defaultOptions=Uc;var qVD=$L.default=eN});var XL=S((VVD,YL)=>{var D$=(D)=>D!==null&&typeof D==="object"&&typeof D.pipe==="function";D$.writable=(D)=>D$(D)&&D.writable!==!1&&typeof D._write==="function"&&typeof D._writableState==="object";D$.readable=(D)=>D$(D)&&D.readable!==!1&&typeof D._read==="function"&&typeof D._readableState==="object";D$.duplex=(D)=>D$.writable(D)&&D$.readable(D);D$.transform=(D)=>D$.duplex(D)&&typeof D._transform==="function";YL.exports=D$});var KL=S((FL)=>{Object.defineProperty(FL,"__esModule",{value:!0});FL.default=void 0;function w9(D){return w9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},w9(D)}function Xc(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function QL(D,$){for(var U=0;U<$.length;U++){var J=$[U];if(J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J)J.writable=!0;Object.defineProperty(D,Fc(J.key),J)}}function Qc(D,$,U){if($)QL(D.prototype,$);if(U)QL(D,U);return Object.defineProperty(D,"prototype",{writable:!1}),D}function Fc(D){var $=Wc(D,"string");return w9($)=="symbol"?$:$+""}function Wc(D,$){if(w9(D)!="object"||!D)return D;var U=D[Symbol.toPrimitive];if(U!==void 0){var J=U.call(D,$||"default");if(w9(J)!="object")return J;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}var HVD=FL.default=function(){function D($){Xc(this,D),this._buffer=$,this.size=$.length}return Qc(D,[{key:"slice",value:function(U,J){var Y=this._buffer.slice(U,J);Y.size=Y.length;var X=J>=this.size;return Promise.resolve({value:Y,done:X})}},{key:"close",value:function(){}}])}()});var VL=S((GL)=>{Object.defineProperty(GL,"__esModule",{value:!0});GL.default=Vc;var qL=UD("fs");function b1(D){return b1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},b1(D)}function CQ(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */CQ=function(){return $};var D,$={},U=Object.prototype,J=U.hasOwnProperty,Y=Object.defineProperty||function(R,O,L){R[O]=L.value},X=typeof Symbol=="function"?Symbol:{},Q=X.iterator||"@@iterator",F=X.asyncIterator||"@@asyncIterator",W=X.toStringTag||"@@toStringTag";function K(R,O,L){return Object.defineProperty(R,O,{value:L,enumerable:!0,configurable:!0,writable:!0}),R[O]}try{K({},"")}catch(R){K=function(L,E,f){return L[E]=f}}function Z(R,O,L,E){var f=O&&O.prototype instanceof w?O:w,x=Object.create(f.prototype),s=new p(E||[]);return Y(x,"_invoke",{value:y(R,L,s)}),x}function z(R,O,L){try{return{type:"normal",arg:R.call(O,L)}}catch(E){return{type:"throw",arg:E}}}$.wrap=Z;var q="suspendedStart",G="suspendedYield",V="executing",I="completed",H={};function w(){}function j(){}function B(){}var N={};K(N,Q,function(){return this});var A=Object.getPrototypeOf,v=A&&A(A(a([])));v&&v!==U&&J.call(v,Q)&&(N=v);var k=B.prototype=w.prototype=Object.create(N);function C(R){["next","throw","return"].forEach(function(O){K(R,O,function(L){return this._invoke(O,L)})})}function b(R,O){function L(f,x,s,u){var m=z(R[f],R,x);if(m.type!=="throw"){var qD=m.arg,ID=qD.value;return ID&&b1(ID)=="object"&&J.call(ID,"__await")?O.resolve(ID.__await).then(function(vD){L("next",vD,s,u)},function(vD){L("throw",vD,s,u)}):O.resolve(ID).then(function(vD){qD.value=vD,s(qD)},function(vD){return L("throw",vD,s,u)})}u(m.arg)}var E;Y(this,"_invoke",{value:function(x,s){function u(){return new O(function(m,qD){L(x,s,m,qD)})}return E=E?E.then(u,u):u()}})}function y(R,O,L){var E=q;return function(f,x){if(E===V)throw Error("Generator is already running");if(E===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 u=T(s,L);if(u){if(u===H)continue;return u}}if(L.method==="next")L.sent=L._sent=L.arg;else if(L.method==="throw"){if(E===q)throw E=I,L.arg;L.dispatchException(L.arg)}else L.method==="return"&&L.abrupt("return",L.arg);E=V;var m=z(R,O,L);if(m.type==="normal"){if(E=L.done?I:G,m.arg===H)continue;return{value:m.arg,done:L.done}}m.type==="throw"&&(E=I,L.method="throw",L.arg=m.arg)}}}function T(R,O){var L=O.method,E=R.iterator[L];if(E===D)return O.delegate=null,L==="throw"&&R.iterator.return&&(O.method="return",O.arg=D,T(R,O),O.method==="throw")||L!=="return"&&(O.method="throw",O.arg=TypeError("The iterator does not provide a '"+L+"' method")),H;var f=z(E,R.iterator,O.arg);if(f.type==="throw")return O.method="throw",O.arg=f.arg,O.delegate=null,H;var x=f.arg;return x?x.done?(O[R.resultName]=x.value,O.next=R.nextLoc,O.method!=="return"&&(O.method="next",O.arg=D),O.delegate=null,H):x:(O.method="throw",O.arg=TypeError("iterator result is not an object"),O.delegate=null,H)}function h(R){var O={tryLoc:R[0]};1 in R&&(O.catchLoc=R[1]),2 in R&&(O.finallyLoc=R[2],O.afterLoc=R[3]),this.tryEntries.push(O)}function c(R){var O=R.completion||{};O.type="normal",delete O.arg,R.completion=O}function p(R){this.tryEntries=[{tryLoc:"root"}],R.forEach(h,this),this.reset(!0)}function a(R){if(R||R===""){var O=R[Q];if(O)return O.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var L=-1,E=function f(){for(;++L<R.length;)if(J.call(R,L))return f.value=R[L],f.done=!1,f;return f.value=D,f.done=!0,f};return E.next=E}}throw TypeError(b1(R)+" is not iterable")}return j.prototype=B,Y(k,"constructor",{value:B,configurable:!0}),Y(B,"constructor",{value:j,configurable:!0}),j.displayName=K(B,W,"GeneratorFunction"),$.isGeneratorFunction=function(R){var O=typeof R=="function"&&R.constructor;return!!O&&(O===j||(O.displayName||O.name)==="GeneratorFunction")},$.mark=function(R){return Object.setPrototypeOf?Object.setPrototypeOf(R,B):(R.__proto__=B,K(R,W,"GeneratorFunction")),R.prototype=Object.create(k),R},$.awrap=function(R){return{__await:R}},C(b.prototype),K(b.prototype,F,function(){return this}),$.AsyncIterator=b,$.async=function(R,O,L,E,f){f===void 0&&(f=Promise);var x=new b(Z(R,O,L,E),f);return $.isGeneratorFunction(O)?x:x.next().then(function(s){return s.done?s.value:x.next()})},C(k),K(k,W,"Generator"),K(k,Q,function(){return this}),K(k,"toString",function(){return"[object Generator]"}),$.keys=function(R){var O=Object(R),L=[];for(var E in O)L.push(E);return L.reverse(),function f(){for(;L.length;){var x=L.pop();if(x in O)return f.value=x,f.done=!1,f}return f.done=!0,f}},$.values=a,p.prototype={constructor:p,reset:function(O){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),!O)for(var L in this)L.charAt(0)==="t"&&J.call(this,L)&&!isNaN(+L.slice(1))&&(this[L]=D)},stop:function(){this.done=!0;var O=this.tryEntries[0].completion;if(O.type==="throw")throw O.arg;return this.rval},dispatchException:function(O){if(this.done)throw O;var L=this;function E(qD,ID){return s.type="throw",s.arg=O,L.next=qD,ID&&(L.method="next",L.arg=D),!!ID}for(var f=this.tryEntries.length-1;f>=0;--f){var x=this.tryEntries[f],s=x.completion;if(x.tryLoc==="root")return E("end");if(x.tryLoc<=this.prev){var u=J.call(x,"catchLoc"),m=J.call(x,"finallyLoc");if(u&&m){if(this.prev<x.catchLoc)return E(x.catchLoc,!0);if(this.prev<x.finallyLoc)return E(x.finallyLoc)}else if(u){if(this.prev<x.catchLoc)return E(x.catchLoc,!0)}else{if(!m)throw Error("try statement without catch or finally");if(this.prev<x.finallyLoc)return E(x.finallyLoc)}}}},abrupt:function(O,L){for(var E=this.tryEntries.length-1;E>=0;--E){var f=this.tryEntries[E];if(f.tryLoc<=this.prev&&J.call(f,"finallyLoc")&&this.prev<f.finallyLoc){var x=f;break}}x&&(O==="break"||O==="continue")&&x.tryLoc<=L&&L<=x.finallyLoc&&(x=null);var s=x?x.completion:{};return s.type=O,s.arg=L,x?(this.method="next",this.next=x.finallyLoc,H):this.complete(s)},complete:function(O,L){if(O.type==="throw")throw O.arg;return O.type==="break"||O.type==="continue"?this.next=O.arg:O.type==="return"?(this.rval=this.arg=O.arg,this.method="return",this.next="end"):O.type==="normal"&&L&&(this.next=L),H},finish:function(O){for(var L=this.tryEntries.length-1;L>=0;--L){var E=this.tryEntries[L];if(E.finallyLoc===O)return this.complete(E.completion,E.afterLoc),c(E),H}},catch:function(O){for(var L=this.tryEntries.length-1;L>=0;--L){var E=this.tryEntries[L];if(E.tryLoc===O){var f=E.completion;if(f.type==="throw"){var x=f.arg;c(E)}return x}}throw Error("illegal catch attempt")},delegateYield:function(O,L,E){return this.delegate={iterator:a(O),resultName:L,nextLoc:E},this.method==="next"&&(this.arg=D),H}},$}function Kc(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function ZL(D,$){for(var U=0;U<$.length;U++){var J=$[U];if(J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J)J.writable=!0;Object.defineProperty(D,zc(J.key),J)}}function Zc(D,$,U){if($)ZL(D.prototype,$);if(U)ZL(D,U);return Object.defineProperty(D,"prototype",{writable:!1}),D}function zc(D){var $=qc(D,"string");return b1($)=="symbol"?$:$+""}function qc(D,$){if(b1(D)!="object"||!D)return D;var U=D[Symbol.toPrimitive];if(U!==void 0){var J=U.call(D,$||"default");if(b1(J)!="object")return J;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}function zL(D,$,U,J,Y,X,Q){try{var F=D[X](Q),W=F.value}catch(K){U(K);return}if(F.done)$(W);else Promise.resolve(W).then(J,Y)}function Gc(D){return function(){var $=this,U=arguments;return new Promise(function(J,Y){var X=D.apply($,U);function Q(W){zL(X,J,Y,Q,F,"next",W)}function F(W){zL(X,J,Y,Q,F,"throw",W)}Q(void 0)})}}function Vc(D){return kQ.apply(this,arguments)}function kQ(){return kQ=Gc(CQ().mark(function D($){var U,J,Y,X,Q,F,W;return CQ().wrap(function(Z){while(!0)switch(Z.prev=Z.next){case 0:return J=$.path.toString(),Z.next=3,qL.promises.stat(J);case 3:return Y=Z.sent,X=Y.size,Q=(U=$.start)!==null&&U!==void 0?U:0,F=Number.isFinite($.end)?$.end+1:X,W=F-Q,Z.abrupt("return",new Hc($,J,W));case 9:case"end":return Z.stop()}},D)})),kQ.apply(this,arguments)}var Hc=function(){function D($,U,J){Kc(this,D),this._stream=$,this._path=U,this.size=J}return Zc(D,[{key:"slice",value:function(U,J){var Y,X=(Y=this._stream.start)!==null&&Y!==void 0?Y:0,Q=(0,qL.createReadStream)(this._path,{start:X+U,end:X+J-1,autoClose:!0});Q.size=Math.min(J-U,this.size);var F=Q.size>=this.size;return Promise.resolve({value:Q,done:F})}},{key:"close",value:function(){this._stream.destroy()}}])}()});var _Q=S((wL)=>{Object.defineProperty(wL,"__esModule",{value:!0});wL.default=void 0;function C1(D){return C1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},C1(D)}function O9(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */O9=function(){return $};var D,$={},U=Object.prototype,J=U.hasOwnProperty,Y=Object.defineProperty||function(R,O,L){R[O]=L.value},X=typeof Symbol=="function"?Symbol:{},Q=X.iterator||"@@iterator",F=X.asyncIterator||"@@asyncIterator",W=X.toStringTag||"@@toStringTag";function K(R,O,L){return Object.defineProperty(R,O,{value:L,enumerable:!0,configurable:!0,writable:!0}),R[O]}try{K({},"")}catch(R){K=function(L,E,f){return L[E]=f}}function Z(R,O,L,E){var f=O&&O.prototype instanceof w?O:w,x=Object.create(f.prototype),s=new p(E||[]);return Y(x,"_invoke",{value:y(R,L,s)}),x}function z(R,O,L){try{return{type:"normal",arg:R.call(O,L)}}catch(E){return{type:"throw",arg:E}}}$.wrap=Z;var q="suspendedStart",G="suspendedYield",V="executing",I="completed",H={};function w(){}function j(){}function B(){}var N={};K(N,Q,function(){return this});var A=Object.getPrototypeOf,v=A&&A(A(a([])));v&&v!==U&&J.call(v,Q)&&(N=v);var k=B.prototype=w.prototype=Object.create(N);function C(R){["next","throw","return"].forEach(function(O){K(R,O,function(L){return this._invoke(O,L)})})}function b(R,O){function L(f,x,s,u){var m=z(R[f],R,x);if(m.type!=="throw"){var qD=m.arg,ID=qD.value;return ID&&C1(ID)=="object"&&J.call(ID,"__await")?O.resolve(ID.__await).then(function(vD){L("next",vD,s,u)},function(vD){L("throw",vD,s,u)}):O.resolve(ID).then(function(vD){qD.value=vD,s(qD)},function(vD){return L("throw",vD,s,u)})}u(m.arg)}var E;Y(this,"_invoke",{value:function(x,s){function u(){return new O(function(m,qD){L(x,s,m,qD)})}return E=E?E.then(u,u):u()}})}function y(R,O,L){var E=q;return function(f,x){if(E===V)throw Error("Generator is already running");if(E===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 u=T(s,L);if(u){if(u===H)continue;return u}}if(L.method==="next")L.sent=L._sent=L.arg;else if(L.method==="throw"){if(E===q)throw E=I,L.arg;L.dispatchException(L.arg)}else L.method==="return"&&L.abrupt("return",L.arg);E=V;var m=z(R,O,L);if(m.type==="normal"){if(E=L.done?I:G,m.arg===H)continue;return{value:m.arg,done:L.done}}m.type==="throw"&&(E=I,L.method="throw",L.arg=m.arg)}}}function T(R,O){var L=O.method,E=R.iterator[L];if(E===D)return O.delegate=null,L==="throw"&&R.iterator.return&&(O.method="return",O.arg=D,T(R,O),O.method==="throw")||L!=="return"&&(O.method="throw",O.arg=TypeError("The iterator does not provide a '"+L+"' method")),H;var f=z(E,R.iterator,O.arg);if(f.type==="throw")return O.method="throw",O.arg=f.arg,O.delegate=null,H;var x=f.arg;return x?x.done?(O[R.resultName]=x.value,O.next=R.nextLoc,O.method!=="return"&&(O.method="next",O.arg=D),O.delegate=null,H):x:(O.method="throw",O.arg=TypeError("iterator result is not an object"),O.delegate=null,H)}function h(R){var O={tryLoc:R[0]};1 in R&&(O.catchLoc=R[1]),2 in R&&(O.finallyLoc=R[2],O.afterLoc=R[3]),this.tryEntries.push(O)}function c(R){var O=R.completion||{};O.type="normal",delete O.arg,R.completion=O}function p(R){this.tryEntries=[{tryLoc:"root"}],R.forEach(h,this),this.reset(!0)}function a(R){if(R||R===""){var O=R[Q];if(O)return O.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var L=-1,E=function f(){for(;++L<R.length;)if(J.call(R,L))return f.value=R[L],f.done=!1,f;return f.value=D,f.done=!0,f};return E.next=E}}throw TypeError(C1(R)+" is not iterable")}return j.prototype=B,Y(k,"constructor",{value:B,configurable:!0}),Y(B,"constructor",{value:j,configurable:!0}),j.displayName=K(B,W,"GeneratorFunction"),$.isGeneratorFunction=function(R){var O=typeof R=="function"&&R.constructor;return!!O&&(O===j||(O.displayName||O.name)==="GeneratorFunction")},$.mark=function(R){return Object.setPrototypeOf?Object.setPrototypeOf(R,B):(R.__proto__=B,K(R,W,"GeneratorFunction")),R.prototype=Object.create(k),R},$.awrap=function(R){return{__await:R}},C(b.prototype),K(b.prototype,F,function(){return this}),$.AsyncIterator=b,$.async=function(R,O,L,E,f){f===void 0&&(f=Promise);var x=new b(Z(R,O,L,E),f);return $.isGeneratorFunction(O)?x:x.next().then(function(s){return s.done?s.value:x.next()})},C(k),K(k,W,"Generator"),K(k,Q,function(){return this}),K(k,"toString",function(){return"[object Generator]"}),$.keys=function(R){var O=Object(R),L=[];for(var E in O)L.push(E);return L.reverse(),function f(){for(;L.length;){var x=L.pop();if(x in O)return f.value=x,f.done=!1,f}return f.done=!0,f}},$.values=a,p.prototype={constructor:p,reset:function(O){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),!O)for(var L in this)L.charAt(0)==="t"&&J.call(this,L)&&!isNaN(+L.slice(1))&&(this[L]=D)},stop:function(){this.done=!0;var O=this.tryEntries[0].completion;if(O.type==="throw")throw O.arg;return this.rval},dispatchException:function(O){if(this.done)throw O;var L=this;function E(qD,ID){return s.type="throw",s.arg=O,L.next=qD,ID&&(L.method="next",L.arg=D),!!ID}for(var f=this.tryEntries.length-1;f>=0;--f){var x=this.tryEntries[f],s=x.completion;if(x.tryLoc==="root")return E("end");if(x.tryLoc<=this.prev){var u=J.call(x,"catchLoc"),m=J.call(x,"finallyLoc");if(u&&m){if(this.prev<x.catchLoc)return E(x.catchLoc,!0);if(this.prev<x.finallyLoc)return E(x.finallyLoc)}else if(u){if(this.prev<x.catchLoc)return E(x.catchLoc,!0)}else{if(!m)throw Error("try statement without catch or finally");if(this.prev<x.finallyLoc)return E(x.finallyLoc)}}}},abrupt:function(O,L){for(var E=this.tryEntries.length-1;E>=0;--E){var f=this.tryEntries[E];if(f.tryLoc<=this.prev&&J.call(f,"finallyLoc")&&this.prev<f.finallyLoc){var x=f;break}}x&&(O==="break"||O==="continue")&&x.tryLoc<=L&&L<=x.finallyLoc&&(x=null);var s=x?x.completion:{};return s.type=O,s.arg=L,x?(this.method="next",this.next=x.finallyLoc,H):this.complete(s)},complete:function(O,L){if(O.type==="throw")throw O.arg;return O.type==="break"||O.type==="continue"?this.next=O.arg:O.type==="return"?(this.rval=this.arg=O.arg,this.method="return",this.next="end"):O.type==="normal"&&L&&(this.next=L),H},finish:function(O){for(var L=this.tryEntries.length-1;L>=0;--L){var E=this.tryEntries[L];if(E.finallyLoc===O)return this.complete(E.completion,E.afterLoc),c(E),H}},catch:function(O){for(var L=this.tryEntries.length-1;L>=0;--L){var E=this.tryEntries[L];if(E.tryLoc===O){var f=E.completion;if(f.type==="throw"){var x=f.arg;c(E)}return x}}throw Error("illegal catch attempt")},delegateYield:function(O,L,E){return this.delegate={iterator:a(O),resultName:L,nextLoc:E},this.method==="next"&&(this.arg=D),H}},$}function Bc(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function HL(D,$){for(var U=0;U<$.length;U++){var J=$[U];if(J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J)J.writable=!0;Object.defineProperty(D,Oc(J.key),J)}}function wc(D,$,U){if($)HL(D.prototype,$);if(U)HL(D,U);return Object.defineProperty(D,"prototype",{writable:!1}),D}function Oc(D){var $=jc(D,"string");return C1($)=="symbol"?$:$+""}function jc(D,$){if(C1(D)!="object"||!D)return D;var U=D[Symbol.toPrimitive];if(U!==void 0){var J=U.call(D,$||"default");if(C1(J)!="object")return J;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}function IL(D,$,U,J,Y,X,Q){try{var F=D[X](Q),W=F.value}catch(K){U(K);return}if(F.done)$(W);else Promise.resolve(W).then(J,Y)}function BL(D){return function(){var $=this,U=arguments;return new Promise(function(J,Y){var X=D.apply($,U);function Q(W){IL(X,J,Y,Q,F,"next",W)}function F(W){IL(X,J,Y,Q,F,"throw",W)}Q(void 0)})}}function Nc(D,$){return uQ.apply(this,arguments)}function uQ(){return uQ=BL(O9().mark(function D($,U){return O9().wrap(function(Y){while(!0)switch(Y.prev=Y.next){case 0:return Y.abrupt("return",new Promise(function(X,Q){var F=function(Z){$.off("readable",W),Q(Z)},W=function K(){var Z=$.read(U);if(Z!==null)$.off("error",F),$.off("readable",K),X(Z)};$.once("error",F),$.on("readable",W)}));case 1:case"end":return Y.stop()}},D)})),uQ.apply(this,arguments)}var wVD=wL.default=function(){function D($){var U=this;Bc(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(){U._ended=!0}),$.on("error",function(J){U._error=J})}return wc(D,[{key:"slice",value:function(){var $=BL(O9().mark(function J(Y,X){var Q,F,W,K,Z;return O9().wrap(function(q){while(!0)switch(q.prev=q.next){case 0:if(!(Y<this._bufPos)){q.next=2;break}throw Error("cannot slice from position which we already seeked away");case 2:if(!(Y>this._bufPos+this._buf.length)){q.next=4;break}throw Error("slice start is outside of buffer (currently not implemented)");case 4:if(!this._error){q.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,X-this._bufPos),Q=this._buf.slice(F,W);else Q=Buffer.alloc(0);if(!this._ended){q.next=10;break}return Q.size=Q.length,q.abrupt("return",{value:Q,done:!0});case 10:if(K=X-Y,!(K>Q.length)){q.next=16;break}return q.next=14,Nc(this._stream,K-Q.length);case 14:Z=q.sent,Q=Buffer.concat([Q,Z]);case 16:return this._buf=Q,this._bufPos=Y,Q.size=Q.length,q.abrupt("return",{value:Q,done:this._ended});case 20:case"end":return q.stop()}},J,this)}));function U(J,Y){return $.apply(this,arguments)}return U}()},{key:"close",value:function(){this._stream.destroy()}}])}()});var RL=S((NL)=>{Object.defineProperty(NL,"__esModule",{value:!0});NL.default=void 0;var Lc=UD("fs"),Rc=K3(XL()),Mc=K3(KL()),Ac=K3(VL()),vc=K3(_Q());function K3(D){return D&&D.__esModule?D:{default:D}}function j9(D){return j9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},j9(D)}function Ec(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function jL(D,$){for(var U=0;U<$.length;U++){var J=$[U];if(J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J)J.writable=!0;Object.defineProperty(D,Pc(J.key),J)}}function Tc(D,$,U){if($)jL(D.prototype,$);if(U)jL(D,U);return Object.defineProperty(D,"prototype",{writable:!1}),D}function Pc(D){var $=Sc(D,"string");return j9($)=="symbol"?$:$+""}function Sc(D,$){if(j9(D)!="object"||!D)return D;var U=D[Symbol.toPrimitive];if(U!==void 0){var J=U.call(D,$||"default");if(j9(J)!="object")return J;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}var jVD=NL.default=function(){function D(){Ec(this,D)}return Tc(D,[{key:"openFile",value:function(U,J){if(Buffer.isBuffer(U))return Promise.resolve(new Mc.default(U));if(U instanceof Lc.ReadStream&&U.path!=null)return(0,Ac.default)(U);if(Rc.default.readable(U)){if(J=Number(J),!Number.isFinite(J))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 vc.default(U))}return Promise.reject(Error("source object may only be an instance of Buffer or Readable in this environment"))}}])}()});var TL=S((EL)=>{Object.defineProperty(EL,"__esModule",{value:!0});EL.default=kc;var bc=UD("crypto"),ML=vL(UD("fs")),Cc=vL(UD("path"));function AL(D){if(typeof WeakMap!="function")return null;var $=new WeakMap,U=new WeakMap;return(AL=function(J){return J?U:$})(D)}function vL(D,$){if(!$&&D&&D.__esModule)return D;if(D===null||typeof D!="object"&&typeof D!="function")return{default:D};var U=AL($);if(U&&U.has(D))return U.get(D);var J={__proto__:null},Y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var X in D)if(X!=="default"&&{}.hasOwnProperty.call(D,X)){var Q=Y?Object.getOwnPropertyDescriptor(D,X):null;Q&&(Q.get||Q.set)?Object.defineProperty(J,X,Q):J[X]=D[X]}return J.default=D,U&&U.set(D,J),J}function kc(D,$){if(Buffer.isBuffer(D)){var U=65536,J=D.slice(0,Math.min(U,D.length)),Y=(0,bc.createHash)("md5").update(J).digest("hex"),X=["node-buffer",Y,D.length,$.endpoint].join("-");return Promise.resolve(X)}if(D instanceof ML.ReadStream&&D.path!=null)return new Promise(function(Q,F){var W=Cc.resolve(D.path);ML.stat(D.path,function(K,Z){if(K){F(K);return}var z=["node-file",W,Z.size,Z.mtime.getTime(),$.endpoint].join("-");Q(z)})});return Promise.resolve(null)}});var kL=S((RVD,CL)=>{var bL="Expected a function",PL=NaN,_c="[object Symbol]",xc=/^\s+|\s+$/g,gc=/^[-+]0x[0-9a-f]+$/i,fc=/^0b[01]+$/i,yc=/^0o[0-7]+$/i,hc=parseInt,mc=typeof global=="object"&&global&&global.Object===Object&&global,lc=typeof self=="object"&&self&&self.Object===Object&&self,cc=mc||lc||Function("return this")(),dc=Object.prototype,ic=dc.toString,pc=Math.max,nc=Math.min,xQ=function(){return cc.Date.now()};function rc(D,$,U){var J,Y,X,Q,F,W,K=0,Z=!1,z=!1,q=!0;if(typeof D!="function")throw TypeError(bL);if($=SL($)||0,Z3(U))Z=!!U.leading,z="maxWait"in U,X=z?pc(SL(U.maxWait)||0,$):X,q="trailing"in U?!!U.trailing:q;function G(v){var k=J,C=Y;return J=Y=void 0,K=v,Q=D.apply(C,k),Q}function V(v){return K=v,F=setTimeout(w,$),Z?G(v):Q}function I(v){var k=v-W,C=v-K,b=$-k;return z?nc(b,X-C):b}function H(v){var k=v-W,C=v-K;return W===void 0||k>=$||k<0||z&&C>=X}function w(){var v=xQ();if(H(v))return j(v);F=setTimeout(w,I(v))}function j(v){if(F=void 0,q&&J)return G(v);return J=Y=void 0,Q}function B(){if(F!==void 0)clearTimeout(F);K=0,J=W=Y=F=void 0}function N(){return F===void 0?Q:j(xQ())}function A(){var v=xQ(),k=H(v);if(J=arguments,Y=this,W=v,k){if(F===void 0)return V(W);if(z)return F=setTimeout(w,$),G(W)}if(F===void 0)F=setTimeout(w,$);return Q}return A.cancel=B,A.flush=N,A}function oc(D,$,U){var J=!0,Y=!0;if(typeof D!="function")throw TypeError(bL);if(Z3(U))J="leading"in U?!!U.leading:J,Y="trailing"in U?!!U.trailing:Y;return rc(D,$,{leading:J,maxWait:$,trailing:Y})}function Z3(D){var $=typeof D;return!!D&&($=="object"||$=="function")}function ac(D){return!!D&&typeof D=="object"}function tc(D){return typeof D=="symbol"||ac(D)&&ic.call(D)==_c}function SL(D){if(typeof D=="number")return D;if(tc(D))return PL;if(Z3(D)){var $=typeof D.valueOf=="function"?D.valueOf():D;D=Z3($)?$+"":$}if(typeof D!="string")return D===0?D:+D;D=D.replace(xc,"");var U=fc.test(D);return U||yc.test(D)?hc(D.slice(2),U?2:8):gc.test(D)?PL:+D}CL.exports=oc});var dL=S((lL)=>{Object.defineProperty(lL,"__esModule",{value:!0});lL.default=void 0;var sc=yL(UD("http")),ec=yL(UD("https")),xL=UD("stream"),Dd=UD("url"),gL=$d(kL());function $d(D){return D&&D.__esModule?D:{default:D}}function fL(D){if(typeof WeakMap!="function")return null;var $=new WeakMap,U=new WeakMap;return(fL=function(J){return J?U:$})(D)}function yL(D,$){if(!$&&D&&D.__esModule)return D;if(D===null||typeof D!="object"&&typeof D!="function")return{default:D};var U=fL($);if(U&&U.has(D))return U.get(D);var J={__proto__:null},Y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var X in D)if(X!=="default"&&{}.hasOwnProperty.call(D,X)){var Q=Y?Object.getOwnPropertyDescriptor(D,X):null;Q&&(Q.get||Q.set)?Object.defineProperty(J,X,Q):J[X]=D[X]}return J.default=D,U&&U.set(D,J),J}function Ud(D,$,U){return $=z3($),Jd(D,hL()?Reflect.construct($,U||[],z3(D).constructor):$.apply(D,U))}function Jd(D,$){if($&&(J8($)==="object"||typeof $==="function"))return $;else if($!==void 0)throw TypeError("Derived constructors may only return object or undefined");return Yd(D)}function Yd(D){if(D===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function hL(){try{var D=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch($){}return(hL=function(){return!!D})()}function z3(D){return z3=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(U){return U.__proto__||Object.getPrototypeOf(U)},z3(D)}function Xd(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}),$)gQ(D,$)}function gQ(D,$){return gQ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(J,Y){return J.__proto__=Y,J},gQ(D,$)}function uL(D,$){var U=Object.keys(D);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(D);$&&(J=J.filter(function(Y){return Object.getOwnPropertyDescriptor(D,Y).enumerable})),U.push.apply(U,J)}return U}function N9(D){for(var $=1;$<arguments.length;$++){var U=arguments[$]!=null?arguments[$]:{};$%2?uL(Object(U),!0).forEach(function(J){Qd(D,J,U[J])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(U)):uL(Object(U)).forEach(function(J){Object.defineProperty(D,J,Object.getOwnPropertyDescriptor(U,J))})}return D}function Qd(D,$,U){if($=mL($),$ in D)Object.defineProperty(D,$,{value:U,enumerable:!0,configurable:!0,writable:!0});else D[$]=U;return D}function J8(D){return J8=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},J8(D)}function q3(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function _L(D,$){for(var U=0;U<$.length;U++){var J=$[U];if(J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J)J.writable=!0;Object.defineProperty(D,mL(J.key),J)}}function G3(D,$,U){if($)_L(D.prototype,$);if(U)_L(D,U);return Object.defineProperty(D,"prototype",{writable:!1}),D}function mL(D){var $=Fd(D,"string");return J8($)=="symbol"?$:$+""}function Fd(D,$){if(J8(D)!="object"||!D)return D;var U=D[Symbol.toPrimitive];if(U!==void 0){var J=U.call(D,$||"default");if(J8(J)!="object")return J;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}var MVD=lL.default=function(){function D(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};q3(this,D),this._requestOptions=$}return G3(D,[{key:"createRequest",value:function(U,J){return new Wd(U,J,this._requestOptions)}},{key:"getName",value:function(){return"NodeHttpStack"}}])}(),Wd=function(){function D($,U,J){q3(this,D),this._method=$,this._url=U,this._headers={},this._request=null,this._progressHandler=function(){},this._requestOptions=J||{}}return G3(D,[{key:"getMethod",value:function(){return this._method}},{key:"getURL",value:function(){return this._url}},{key:"setHeader",value:function(U,J){this._headers[U]=J}},{key:"getHeader",value:function(U){return this._headers[U]}},{key:"setProgressHandler",value:function(U){this._progressHandler=U}},{key:"send",value:function(){var U=this,J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return new Promise(function(Y,X){var Q=N9(N9(N9({},(0,Dd.parse)(U._url)),U._requestOptions),{},{method:U._method,headers:N9(N9({},U._requestOptions.headers||{}),U._headers)});if(J!==null&&J!==void 0&&J.size)Q.headers["Content-Length"]=J.size;var F=Q.protocol==="https:"?ec:sc;U._request=F.request(Q);var W=U._request;if(W.on("response",function(K){var Z=[];K.on("data",function(z){Z.push(z)}),K.on("end",function(){var z=Buffer.concat(Z).toString("utf8");Y(new Kd(K,z))})}),W.on("error",function(K){X(K)}),J instanceof xL.Readable)J.pipe(new Zd(U._progressHandler)).pipe(W);else if(J instanceof Uint8Array)zd(W,J,U._progressHandler);else W.end(J)})}},{key:"abort",value:function(){if(this._request!==null)this._request.abort();return Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._request}}])}(),Kd=function(){function D($,U){q3(this,D),this._response=$,this._body=U}return G3(D,[{key:"getStatus",value:function(){return this._response.statusCode}},{key:"getHeader",value:function(U){return this._response.headers[U.toLowerCase()]}},{key:"getBody",value:function(){return this._body}},{key:"getUnderlyingObject",value:function(){return this._response}}])}(),Zd=function(D){function $(U){var J;return q3(this,$),J=Ud(this,$),J._onprogress=(0,gL.default)(U,100,{leading:!0,trailing:!1}),J._position=0,J}return Xd($,D),G3($,[{key:"_transform",value:function(J,Y,X){this._position+=J.length,this._onprogress(this._position),X(null,J)}}])}(xL.Transform),zd=function($,U,J){J=(0,gL.default)(J,100,{leading:!0,trailing:!1});var Y=0;function X(){var Q=Math.min($.writableHighWaterMark,U.length-Y),F=U.subarray(Y,Y+Q);Y+=F.length;var W=$.write(F);if(!W)$.once("drain",X),J(Y);else if(Y<U.length)X();else $.end()}X()}});var iL=S((qd)=>{qd.expectReceive=function(D,$,U){var J;if(U.root(D,$,U),J=this.message,D.hasOwnProperty("expected"))J+=" Expected "+D.expected+".";if(D.hasOwnProperty("received"))J+=" Received: "+D.received+".";this.message=J};qd.root=function(D,$,U){var J=this,Y,X={stackLength:Error.stackTraceLimit,rootOnly:!0},Q="",F=Error.stackTraceLimit,W;function K(){W[0]=J.toString(),J.stack=W.join(`
`)}if(!$||typeof $!=="object")$={};if($.hasOwnProperty("stackLength")&&typeof $.stackLength==="number"&&!isNaN($.stackLength)&&$.stackLength>=0)X.stackLength=$.stackLength;if(!$.hasOwnProperty("rootOnly"))X.rootOnly=$.rootOnly;if(!X.rootOnly||this.CustomError.parent===Error)Object.keys(D).forEach(function(Z){switch(Z){case"code":Y=D.code||void 0;break;case"message":Q=D.message||"";break;default:J[Z]=D[Z]}}),Error.stackTraceLimit=X.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(Z){Y=Z,K()}}),Object.defineProperty(this,"message",{configurable:!0,enumerable:!0,get:function(){return Q},set:function(Z){Q=Z,K()}}),K()}});var rL=S((EVD,nL)=>{nL.exports=k1;k1.factory=iL();var hQ=k1("CustomError");hQ.order=k1(hQ,{message:"Arguments out of order.",code:"EOARG"});function k1(D,$,U,J){var Y,X;if($=V3(arguments,1,Error,pL,[fQ,H3]),U=V3(arguments,2,{},fQ,[H3]),J=V3(arguments,3,yQ,H3,[]),D=V3(arguments,0,$===Error?"Error":$.prototype.CustomError.name,Hd,[pL,fQ,H3]),X=$===Error,X&&J===yQ)J=k1.factory.root;return Y=function(Q,F){var W,K,Z,z,q,G;if(!(this instanceof Y))return new Y(Q,F);if(delete this.constructor.name,Object.defineProperty(this.constructor,"name",{enumerable:!1,configurable:!0,value:D,writable:!1}),typeof Q==="string")Q={message:Q};if(!Q)Q={};K=this.CustomError.chain.slice(0).reverse().map(function(V){return V.properties}),K.push(Q),K.unshift({}),G=Object.assign.apply(Object,K),W=this,Z={},Object.keys(k1.factory).forEach(function(V){Z[V]=function(I,H){k1.factory[V].call(W,I,H,Z)}});for(z=this.CustomError.chain.length-1;z>=0;z--)if(q=this.CustomError.chain[z],q.factory!==yQ)q.factory.call(this,G,F,Z)},Y.prototype=Object.create($.prototype),Y.prototype.constructor=Y,Y.prototype.name=D,Y.prototype.CustomError={chain:X?[]:$.prototype.CustomError.chain.slice(0),factory:J,name:D,parent:$,properties:U},Y.prototype.CustomError.chain.unshift(Y.prototype.CustomError),Y.prototype.toString=function(){var Q=this.CustomError.chain[this.CustomError.chain.length-1].name;if(this.code)Q+=" "+this.code;if(this.message)Q+=": "+this.message;return Q},Y}function V3(D,$,U,J,Y){var X=-1,Q=-1,F,W,K=$<D.length?$:D.length,Z;for(F=0;F<=K;F++){if(Z=D[F],X===-1){for(W=0;W<Y.length;W++)if(Y[W](Z))X=F}if(Q===-1&&J(Z))Q=F}if(Q!==-1&&X!==-1&&X<Q)throw new hQ.order;return Q!==-1?D[Q]:U}function H3(D){return typeof D==="function"&&D!==Error&&!D.prototype.CustomError}function Hd(D){return typeof D==="string"}function pL(D){return typeof D==="function"&&(D===Error||D.prototype.CustomError)}function fQ(D){return D&&typeof D==="object"}function yQ(){}});var eL=S((X8,Y8)=>{var Id=1/0,Bd="[object Symbol]",L9={function:!0,object:!0},wd=L9[typeof X8]&&X8&&!X8.nodeType?X8:void 0,Od=L9[typeof Y8]&&Y8&&!Y8.nodeType?Y8:void 0,jd=I3(wd&&Od&&typeof global=="object"&&global),Nd=I3(L9[typeof self]&&self),oL=I3(L9[typeof window]&&window),mQ=I3(L9[typeof X8]&&X8),Ld=jd||oL!==(mQ&&mQ.window)&&oL||Nd||mQ||Function("return this")();function I3(D){return D&&D.Object===Object?D:null}var Rd=Object.prototype,Md=Rd.toString,aL=Ld.Symbol,tL=aL?aL.prototype:void 0,sL=tL?tL.toString:void 0;function Ad(D){if(typeof D=="string")return D;if(Ed(D))return sL?sL.call(D):"";var $=D+"";return $=="0"&&1/D==-Id?"-0":$}function vd(D){return!!D&&typeof D=="object"}function Ed(D){return typeof D=="symbol"||vd(D)&&Md.call(D)==Bd}Y8.exports=Ad});var QR=S((F8,Q8)=>{var Td=eL(),Pd="Expected a function",$R="__lodash_hash_undefined__",Sd="[object Function]",bd="[object GeneratorFunction]",Cd=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g,kd=/[\\^$.*+?()[\]{}|]/g,ud=/\\(\\)?/g,_d=/^\[object .+?Constructor\]$/,M9={function:!0,object:!0},xd=M9[typeof F8]&&F8&&!F8.nodeType?F8:void 0,gd=M9[typeof Q8]&&Q8&&!Q8.nodeType?Q8:void 0,fd=B3(xd&&gd&&typeof global=="object"&&global),yd=B3(M9[typeof self]&&self),DR=B3(M9[typeof window]&&window),lQ=B3(M9[typeof F8]&&F8),hd=fd||DR!==(lQ&&lQ.window)&&DR||yd||lQ||Function("return this")();function B3(D){return D&&D.Object===Object?D:null}function md(D){var $=!1;if(D!=null&&typeof D.toString!="function")try{$=!!(D+"")}catch(U){}return $}var ld=Array.prototype,UR=Object.prototype,JR=Function.prototype.toString,cQ=UR.hasOwnProperty,cd=UR.toString,dd=RegExp("^"+JR.call(cQ).replace(kd,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),id=ld.splice,pd=YR(hd,"Map"),R9=YR(Object,"create");function u1(D){var $=-1,U=D?D.length:0;this.clear();while(++$<U){var J=D[$];this.set(J[0],J[1])}}function nd(){this.__data__=R9?R9(null):{}}function rd(D){return this.has(D)&&delete this.__data__[D]}function od(D){var $=this.__data__;if(R9){var U=$[D];return U===$R?void 0:U}return cQ.call($,D)?$[D]:void 0}function ad(D){var $=this.__data__;return R9?$[D]!==void 0:cQ.call($,D)}function td(D,$){var U=this.__data__;return U[D]=R9&&$===void 0?$R:$,this}u1.prototype.clear=nd;u1.prototype.delete=rd;u1.prototype.get=od;u1.prototype.has=ad;u1.prototype.set=td;function W8(D){var $=-1,U=D?D.length:0;this.clear();while(++$<U){var J=D[$];this.set(J[0],J[1])}}function sd(){this.__data__=[]}function ed(D){var $=this.__data__,U=w3($,D);if(U<0)return!1;var J=$.length-1;if(U==J)$.pop();else id.call($,U,1);return!0}function Di(D){var $=this.__data__,U=w3($,D);return U<0?void 0:$[U][1]}function $i(D){return w3(this.__data__,D)>-1}function Ui(D,$){var U=this.__data__,J=w3(U,D);if(J<0)U.push([D,$]);else U[J][1]=$;return this}W8.prototype.clear=sd;W8.prototype.delete=ed;W8.prototype.get=Di;W8.prototype.has=$i;W8.prototype.set=Ui;function _1(D){var $=-1,U=D?D.length:0;this.clear();while(++$<U){var J=D[$];this.set(J[0],J[1])}}function Ji(){this.__data__={hash:new u1,map:new(pd||W8),string:new u1}}function Yi(D){return O3(this,D).delete(D)}function Xi(D){return O3(this,D).get(D)}function Qi(D){return O3(this,D).has(D)}function Fi(D,$){return O3(this,D).set(D,$),this}_1.prototype.clear=Ji;_1.prototype.delete=Yi;_1.prototype.get=Xi;_1.prototype.has=Qi;_1.prototype.set=Fi;function w3(D,$){var U=D.length;while(U--)if(zi(D[U][0],$))return U;return-1}function O3(D,$){var U=D.__data__;return Wi($)?U[typeof $=="string"?"string":"hash"]:U.map}function YR(D,$){var U=D[$];return Gi(U)?U:void 0}function Wi(D){var $=typeof D;return $=="string"||$=="number"||$=="symbol"||$=="boolean"?D!=="__proto__":D===null}var Ki=dQ(function(D){var $=[];return Vi(D).replace(Cd,function(U,J,Y,X){$.push(Y?X.replace(ud,"$1"):J||U)}),$});function Zi(D){if(D!=null){try{return JR.call(D)}catch($){}try{return D+""}catch($){}}return""}function dQ(D,$){if(typeof D!="function"||$&&typeof $!="function")throw TypeError(Pd);var U=function(){var J=arguments,Y=$?$.apply(this,J):J[0],X=U.cache;if(X.has(Y))return X.get(Y);var Q=D.apply(this,J);return U.cache=X.set(Y,Q),Q};return U.cache=new(dQ.Cache||_1),U}dQ.Cache=_1;function zi(D,$){return D===$||D!==D&&$!==$}function qi(D){var $=XR(D)?cd.call(D):"";return $==Sd||$==bd}function XR(D){var $=typeof D;return!!D&&($=="object"||$=="function")}function Gi(D){if(!XR(D))return!1;var $=qi(D)||md(D)?dd:_d;return $.test(Zi(D))}function Vi(D){return D==null?"":Td(D)}Q8.exports=Ki});var xR=S((z8,Z8)=>{var Hi=QR(),Ii=200,$F="__lodash_hash_undefined__",M3=1,q8=2,Bi=1/0,qR=9007199254740991,j3="[object Arguments]",nQ="[object Array]",GR="[object Boolean]",VR="[object Date]",HR="[object Error]",IR="[object Function]",wi="[object GeneratorFunction]",A9="[object Map]",BR="[object Number]",K8="[object Object]",FR="[object Promise]",wR="[object RegExp]",v9="[object Set]",UF="[object String]",OR="[object Symbol]",rQ="[object WeakMap]",jR="[object ArrayBuffer]",N3="[object DataView]",Oi="[object Float32Array]",ji="[object Float64Array]",Ni="[object Int8Array]",Li="[object Int16Array]",Ri="[object Int32Array]",Mi="[object Uint8Array]",Ai="[object Uint8ClampedArray]",vi="[object Uint16Array]",Ei="[object Uint32Array]",Ti=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pi=/^\w*$/,Si=/[\\^$.*+?()[\]{}|]/g,bi=/^\[object .+?Constructor\]$/,Ci=/^(?:0|[1-9]\d*)$/,rD={};rD[Oi]=rD[ji]=rD[Ni]=rD[Li]=rD[Ri]=rD[Mi]=rD[Ai]=rD[vi]=rD[Ei]=!0;rD[j3]=rD[nQ]=rD[jR]=rD[GR]=rD[N3]=rD[VR]=rD[HR]=rD[IR]=rD[A9]=rD[BR]=rD[K8]=rD[wR]=rD[v9]=rD[UF]=rD[rQ]=!1;var T9={function:!0,object:!0},ki=T9[typeof z8]&&z8&&!z8.nodeType?z8:void 0,ui=T9[typeof Z8]&&Z8&&!Z8.nodeType?Z8:void 0,_i=A3(ki&&ui&&typeof global=="object"&&global),xi=A3(T9[typeof self]&&self),WR=A3(T9[typeof window]&&window),iQ=A3(T9[typeof z8]&&z8),f1=_i||WR!==(iQ&&iQ.window)&&WR||xi||iQ||Function("return this")();function gi(D,$){var U=-1,J=D.length,Y=Array(J);while(++U<J)Y[U]=$(D[U],U,D);return Y}function fi(D,$){var U=-1,J=D.length;while(++U<J)if($(D[U],U,D))return!0;return!1}function yi(D,$){var U=-1,J=Array(D);while(++U<D)J[U]=$(U);return J}function hi(D,$){return gi($,function(U){return[U,D[U]]})}function A3(D){return D&&D.Object===Object?D:null}function oQ(D){var $=!1;if(D!=null&&typeof D.toString!="function")try{$=!!(D+"")}catch(U){}return $}function NR(D){var $=-1,U=Array(D.size);return D.forEach(function(J,Y){U[++$]=[Y,J]}),U}function mi(D){var $=-1,U=Array(D.size);return D.forEach(function(J){U[++$]=J}),U}function li(D){var $=-1,U=Array(D.size);return D.forEach(function(J){U[++$]=[J,J]}),U}var ci=Array.prototype,v3=Object.prototype,LR=Function.prototype.toString,x1=v3.hasOwnProperty,y1=v3.toString,di=RegExp("^"+LR.call(x1).replace(Si,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),KR=f1.Symbol,ZR=f1.Uint8Array,ii=v3.propertyIsEnumerable,pi=ci.splice,ni=Object.getPrototypeOf,ri=Object.keys,aQ=G8(f1,"DataView"),L3=G8(f1,"Map"),tQ=G8(f1,"Promise"),sQ=G8(f1,"Set"),eQ=G8(f1,"WeakMap"),E9=G8(Object,"create"),oi=m1(aQ),ai=m1(L3),ti=m1(tQ),si=m1(sQ),ei=m1(eQ),zR=KR?KR.prototype:void 0,pQ=zR?zR.valueOf:void 0;function g1(D){var $=-1,U=D?D.length:0;this.clear();while(++$<U){var J=D[$];this.set(J[0],J[1])}}function Dp(){this.__data__=E9?E9(null):{}}function $p(D){return this.has(D)&&delete this.__data__[D]}function Up(D){var $=this.__data__;if(E9){var U=$[D];return U===$F?void 0:U}return x1.call($,D)?$[D]:void 0}function Jp(D){var $=this.__data__;return E9?$[D]!==void 0:x1.call($,D)}function Yp(D,$){var U=this.__data__;return U[D]=E9&&$===void 0?$F:$,this}g1.prototype.clear=Dp;g1.prototype.delete=$p;g1.prototype.get=Up;g1.prototype.has=Jp;g1.prototype.set=Yp;function H$(D){var $=-1,U=D?D.length:0;this.clear();while(++$<U){var J=D[$];this.set(J[0],J[1])}}function Xp(){this.__data__=[]}function Qp(D){var $=this.__data__,U=E3($,D);if(U<0)return!1;var J=$.length-1;if(U==J)$.pop();else pi.call($,U,1);return!0}function Fp(D){var $=this.__data__,U=E3($,D);return U<0?void 0:$[U][1]}function Wp(D){return E3(this.__data__,D)>-1}function Kp(D,$){var U=this.__data__,J=E3(U,D);if(J<0)U.push([D,$]);else U[J][1]=$;return this}H$.prototype.clear=Xp;H$.prototype.delete=Qp;H$.prototype.get=Fp;H$.prototype.has=Wp;H$.prototype.set=Kp;function h1(D){var $=-1,U=D?D.length:0;this.clear();while(++$<U){var J=D[$];this.set(J[0],J[1])}}function Zp(){this.__data__={hash:new g1,map:new(L3||H$),string:new g1}}function zp(D){return T3(this,D).delete(D)}function qp(D){return T3(this,D).get(D)}function Gp(D){return T3(this,D).has(D)}function Vp(D,$){return T3(this,D).set(D,$),this}h1.prototype.clear=Zp;h1.prototype.delete=zp;h1.prototype.get=qp;h1.prototype.has=Gp;h1.prototype.set=Vp;function R3(D){var $=-1,U=D?D.length:0;this.__data__=new h1;while(++$<U)this.add(D[$])}function Hp(D){return this.__data__.set(D,$F),this}function Ip(D){return this.__data__.has(D)}R3.prototype.add=R3.prototype.push=Hp;R3.prototype.has=Ip;function V$(D){this.__data__=new H$(D)}function Bp(){this.__data__=new H$}function wp(D){return this.__data__.delete(D)}function Op(D){return this.__data__.get(D)}function jp(D){return this.__data__.has(D)}function Np(D,$){var U=this.__data__;if(U instanceof H$&&U.__data__.length==Ii)U=this.__data__=new h1(U.__data__);return U.set(D,$),this}V$.prototype.clear=Bp;V$.prototype.delete=wp;V$.prototype.get=Op;V$.prototype.has=jp;V$.prototype.set=Np;function E3(D,$){var U=D.length;while(U--)if(hp(D[U][0],$))return U;return-1}function RR(D,$){$=P3($,D)?[$]:vR($);var U=0,J=$.length;while(D!=null&&U<J)D=D[S3($[U++])];return U&&U==J?D:void 0}function MR(D,$){return x1.call(D,$)||typeof D=="object"&&$ in D&&_p(D)===null}function Lp(D,$){return $ in Object(D)}function JF(D,$,U,J,Y){if(D===$)return!0;if(D==null||$==null||!C3(D)&&!P9($))return D!==D&&$!==$;return Rp(D,$,JF,U,J,Y)}function Rp(D,$,U,J,Y,X){var Q=m$(D),F=m$($),W=nQ,K=nQ;if(!Q)W=G$(D),W=W==j3?K8:W;if(!F)K=G$($),K=K==j3?K8:K;var Z=W==K8&&!oQ(D),z=K==K8&&!oQ($),q=W==K;if(q&&!Z)return X||(X=new V$),Q||cp(D)?ER(D,$,U,J,Y,X):bp(D,$,W,U,J,Y,X);if(!(Y&q8)){var G=Z&&x1.call(D,"__wrapped__"),V=z&&x1.call($,"__wrapped__");if(G||V){var I=G?D.value():D,H=V?$.value():$;return X||(X=new V$),U(I,H,J,Y,X)}}if(!q)return!1;return X||(X=new V$),Cp(D,$,U,J,Y,X)}function Mp(D,$,U,J){var Y=U.length,X=Y,Q=!J;if(D==null)return!X;D=Object(D);while(Y--){var F=U[Y];if(Q&&F[2]?F[1]!==D[F[0]]:!(F[0]in D))return!1}while(++Y<X){F=U[Y];var W=F[0],K=D[W],Z=F[1];if(Q&&F[2]){if(K===void 0&&!(W in D))return!1}else{var z=new V$;if(J)var q=J(K,Z,W,D,$,z);if(!(q===void 0?JF(Z,K,J,M3|q8,z):q))return!1}}return!0}function Ap(D){if(typeof D=="function")return D;if(D==null)return np;if(typeof D=="object")return m$(D)?Tp(D[0],D[1]):Ep(D);return rp(D)}function vp(D){return ri(Object(D))}function Ep(D){var $=up(D);if($.length==1&&$[0][2])return SR($[0][0],$[0][1]);return function(U){return U===D||Mp(U,D,$)}}function Tp(D,$){if(P3(D)&&PR($))return SR(S3(D),$);return function(U){var J=dp(U,D);return J===void 0&&J===$?ip(U,D):JF($,J,void 0,M3|q8)}}function AR(D){return function($){return $==null?void 0:$[D]}}function Pp(D){return function($){return RR($,D)}}function vR(D){return m$(D)?D:Hi(D)}function Sp(D){return function($){var U=G$($);if(U==A9)return NR($);if(U==v9)return li($);return hi($,D($))}}function ER(D,$,U,J,Y,X){var Q=Y&q8,F=D.length,W=$.length;if(F!=W&&!(Q&&W>F))return!1;var K=X.get(D);if(K)return K==$;var Z=-1,z=!0,q=Y&M3?new R3:void 0;X.set(D,$);while(++Z<F){var G=D[Z],V=$[Z];if(J)var I=Q?J(V,G,Z,$,D,X):J(G,V,Z,D,$,X);if(I!==void 0){if(I)continue;z=!1;break}if(q){if(!fi($,function(H,w){if(!q.has(w)&&(G===H||U(G,H,J,Y,X)))return q.add(w)})){z=!1;break}}else if(!(G===V||U(G,V,J,Y,X))){z=!1;break}}return X.delete(D),z}function bp(D,$,U,J,Y,X,Q){switch(U){case N3:if(D.byteLength!=$.byteLength||D.byteOffset!=$.byteOffset)return!1;D=D.buffer,$=$.buffer;case jR:if(D.byteLength!=$.byteLength||!J(new ZR(D),new ZR($)))return!1;return!0;case GR:case VR:return+D==+$;case HR:return D.name==$.name&&D.message==$.message;case BR:return D!=+D?$!=+$:D==+$;case wR:case UF:return D==$+"";case A9:var F=NR;case v9:var W=X&q8;if(F||(F=mi),D.size!=$.size&&!W)return!1;var K=Q.get(D);if(K)return K==$;return X|=M3,Q.set(D,$),ER(F(D),F($),J,Y,X,Q);case OR:if(pQ)return pQ.call(D)==pQ.call($)}return!1}function Cp(D,$,U,J,Y,X){var Q=Y&q8,F=DF(D),W=F.length,K=DF($),Z=K.length;if(W!=Z&&!Q)return!1;var z=W;while(z--){var q=F[z];if(!(Q?q in $:MR($,q)))return!1}var G=X.get(D);if(G)return G==$;var V=!0;X.set(D,$);var I=Q;while(++z<W){q=F[z];var H=D[q],w=$[q];if(J)var j=Q?J(w,H,q,$,D,X):J(H,w,q,D,$,X);if(!(j===void 0?H===w||U(H,w,J,Y,X):j)){V=!1;break}I||(I=q=="constructor")}if(V&&!I){var B=D.constructor,N=$.constructor;if(B!=N&&(("constructor"in D)&&("constructor"in $))&&!(typeof B=="function"&&B instanceof B&&typeof N=="function"&&N instanceof N))V=!1}return X.delete(D),V}var kp=AR("length");function T3(D,$){var U=D.__data__;return fp($)?U[typeof $=="string"?"string":"hash"]:U.map}function up(D){var $=pp(D),U=$.length;while(U--)$[U][2]=PR($[U][1]);return $}function G8(D,$){var U=D[$];return lp(U)?U:void 0}function _p(D){return ni(Object(D))}function G$(D){return y1.call(D)}if(aQ&&G$(new aQ(new ArrayBuffer(1)))!=N3||L3&&G$(new L3)!=A9||tQ&&G$(tQ.resolve())!=FR||sQ&&G$(new sQ)!=v9||eQ&&G$(new eQ)!=rQ)G$=function(D){var $=y1.call(D),U=$==K8?D.constructor:void 0,J=U?m1(U):void 0;if(J)switch(J){case oi:return N3;case ai:return A9;case ti:return FR;case si:return v9;case ei:return rQ}return $};function xp(D,$,U){$=P3($,D)?[$]:vR($);var J,Y=-1,Q=$.length;while(++Y<Q){var X=S3($[Y]);if(!(J=D!=null&&U(D,X)))break;D=D[X]}if(J)return J;var Q=D?D.length:0;return!!Q&&b3(Q)&&TR(X,Q)&&(m$(D)||uR(D)||bR(D))}function gp(D){var $=D?D.length:void 0;if(b3($)&&(m$(D)||uR(D)||bR(D)))return yi($,String);return null}function TR(D,$){return $=$==null?qR:$,!!$&&(typeof D=="number"||Ci.test(D))&&(D>-1&&D%1==0&&D<$)}function P3(D,$){if(m$(D))return!1;var U=typeof D;if(U=="number"||U=="symbol"||U=="boolean"||D==null||_R(D))return!0;return Pi.test(D)||!Ti.test(D)||$!=null&&D in Object($)}function fp(D){var $=typeof D;return $=="string"||$=="number"||$=="symbol"||$=="boolean"?D!=="__proto__":D===null}function yp(D){var $=D&&D.constructor,U=typeof $=="function"&&$.prototype||v3;return D===U}function PR(D){return D===D&&!C3(D)}function SR(D,$){return function(U){if(U==null)return!1;return U[D]===$&&($!==void 0||(D in Object(U)))}}function S3(D){if(typeof D=="string"||_R(D))return D;var $=D+"";return $=="0"&&1/D==-Bi?"-0":$}function m1(D){if(D!=null){try{return LR.call(D)}catch($){}try{return D+""}catch($){}}return""}function hp(D,$){return D===$||D!==D&&$!==$}function bR(D){return mp(D)&&x1.call(D,"callee")&&(!ii.call(D,"callee")||y1.call(D)==j3)}var m$=Array.isArray;function CR(D){return D!=null&&b3(kp(D))&&!kR(D)}function mp(D){return P9(D)&&CR(D)}function kR(D){var $=C3(D)?y1.call(D):"";return $==IR||$==wi}function b3(D){return typeof D=="number"&&D>-1&&D%1==0&&D<=qR}function C3(D){var $=typeof D;return!!D&&($=="object"||$=="function")}function P9(D){return!!D&&typeof D=="object"}function lp(D){if(!C3(D))return!1;var $=kR(D)||oQ(D)?di:bi;return $.test(m1(D))}function uR(D){return typeof D=="string"||!m$(D)&&P9(D)&&y1.call(D)==UF}function _R(D){return typeof D=="symbol"||P9(D)&&y1.call(D)==OR}function cp(D){return P9(D)&&b3(D.length)&&!!rD[y1.call(D)]}function dp(D,$,U){var J=D==null?void 0:RR(D,$);return J===void 0?U:J}function ip(D,$){return D!=null&&xp(D,$,Lp)}function DF(D){var $=yp(D);if(!($||CR(D)))return vp(D);var U=gp(D),J=!!U,Y=U||[],X=Y.length;for(var Q in D)if(MR(D,Q)&&!(J&&(Q=="length"||TR(Q,X)))&&!($&&Q=="constructor"))Y.push(Q);return Y}var pp=Sp(DF);function np(D){return D}function rp(D){return P3(D)?AR(S3(D)):Pp(D)}Z8.exports=Ap});var mR=S((H8,V8)=>{var op=1/0,ap="[object Function]",tp="[object GeneratorFunction]",sp=/[\\^$.*+?()[\]{}|]/g,ep=/^\[object .+?Constructor\]$/,S9={function:!0,object:!0},Dn=S9[typeof H8]&&H8&&!H8.nodeType?H8:void 0,$n=S9[typeof V8]&&V8&&!V8.nodeType?V8:void 0,Un=k3(Dn&&$n&&typeof global=="object"&&global),Jn=k3(S9[typeof self]&&self),gR=k3(S9[typeof window]&&window),YF=k3(S9[typeof H8]&&H8),Yn=Un||gR!==(YF&&YF.window)&&gR||Jn||YF||Function("return this")();function k3(D){return D&&D.Object===Object?D:null}function Xn(D){var $=!1;if(D!=null&&typeof D.toString!="function")try{$=!!(D+"")}catch(U){}return $}function Qn(D){var $=-1,U=Array(D.size);return D.forEach(function(J){U[++$]=J}),U}var fR=Object.prototype,yR=Function.prototype.toString,Fn=fR.hasOwnProperty,Wn=fR.toString,Kn=RegExp("^"+yR.call(Fn).replace(sp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),XF=zn(Yn,"Set"),Zn=!(XF&&1/Qn(new XF([,-0]))[1]==op)?Hn:function(D){return new XF(D)};function zn(D,$){var U=D[$];return Vn(U)?U:void 0}function qn(D){if(D!=null){try{return yR.call(D)}catch($){}try{return D+""}catch($){}}return""}function Gn(D){var $=hR(D)?Wn.call(D):"";return $==ap||$==tp}function hR(D){var $=typeof D;return!!D&&($=="object"||$=="function")}function Vn(D){if(!hR(D))return!1;var $=Gn(D)||Xn(D)?Kn:ep;return $.test(qn(D))}function Hn(){}V8.exports=Zn});var cR=S((B8,I8)=>{var b9={function:!0,object:!0},In=b9[typeof B8]&&B8&&!B8.nodeType?B8:void 0,Bn=b9[typeof I8]&&I8&&!I8.nodeType?I8:void 0,wn=u3(In&&Bn&&typeof global=="object"&&global),On=u3(b9[typeof self]&&self),lR=u3(b9[typeof window]&&window),QF=u3(b9[typeof B8]&&B8),jn=wn||lR!==(QF&&QF.window)&&lR||On||QF||Function("return this")();function u3(D){return D&&D.Object===Object?D:null}I8.exports=jn});var oR=S((kVD,rR)=>{var Nn=mR(),Ln=cR(),Rn=200,FF="__lodash_hash_undefined__",Mn="[object Function]",An="[object GeneratorFunction]",vn=/[\\^$.*+?()[\]{}|]/g,En=/^\[object .+?Constructor\]$/;function Tn(D,$){return!!D.length&&Sn(D,$,0)>-1}function Pn(D,$,U){var J=-1,Y=D.length;while(++J<Y)if(U($,D[J]))return!0;return!1}function Sn(D,$,U){if($!==$)return Cn(D,U);var J=U-1,Y=D.length;while(++J<Y)if(D[J]===$)return J;return-1}function bn(D,$){return D.has($)}function Cn(D,$,U){var J=D.length,Y=$+(U?0:-1);while(U?Y--:++Y<J){var X=D[Y];if(X!==X)return Y}return-1}function kn(D){var $=!1;if(D!=null&&typeof D.toString!="function")try{$=!!(D+"")}catch(U){}return $}function un(D){var $=-1,U=Array(D.size);return D.forEach(function(J){U[++$]=J}),U}var _n=Array.prototype,dR=Object.prototype,iR=Function.prototype.toString,WF=dR.hasOwnProperty,xn=dR.toString,gn=RegExp("^"+iR.call(WF).replace(vn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fn=_n.splice,yn=pR(Ln,"Map"),C9=pR(Object,"create");function l1(D){var $=-1,U=D?D.length:0;this.clear();while(++$<U){var J=D[$];this.set(J[0],J[1])}}function hn(){this.__data__=C9?C9(null):{}}function mn(D){return this.has(D)&&delete this.__data__[D]}function ln(D){var $=this.__data__;if(C9){var U=$[D];return U===FF?void 0:U}return WF.call($,D)?$[D]:void 0}function cn(D){var $=this.__data__;return C9?$[D]!==void 0:WF.call($,D)}function dn(D,$){var U=this.__data__;return U[D]=C9&&$===void 0?FF:$,this}l1.prototype.clear=hn;l1.prototype.delete=mn;l1.prototype.get=ln;l1.prototype.has=cn;l1.prototype.set=dn;function w8(D){var $=-1,U=D?D.length:0;this.clear();while(++$<U){var J=D[$];this.set(J[0],J[1])}}function pn(){this.__data__=[]}function nn(D){var $=this.__data__,U=x3($,D);if(U<0)return!1;var J=$.length-1;if(U==J)$.pop();else fn.call($,U,1);return!0}function rn(D){var $=this.__data__,U=x3($,D);return U<0?void 0:$[U][1]}function on(D){return x3(this.__data__,D)>-1}function an(D,$){var U=this.__data__,J=x3(U,D);if(J<0)U.push([D,$]);else U[J][1]=$;return this}w8.prototype.clear=pn;w8.prototype.delete=nn;w8.prototype.get=rn;w8.prototype.has=on;w8.prototype.set=an;function O8(D){var $=-1,U=D?D.length:0;this.clear();while(++$<U){var J=D[$];this.set(J[0],J[1])}}function tn(){this.__data__={hash:new l1,map:new(yn||w8),string:new l1}}function sn(D){return g3(this,D).delete(D)}function en(D){return g3(this,D).get(D)}function Dr(D){return g3(this,D).has(D)}function $r(D,$){return g3(this,D).set(D,$),this}O8.prototype.clear=tn;O8.prototype.delete=sn;O8.prototype.get=en;O8.prototype.has=Dr;O8.prototype.set=$r;function _3(D){var $=-1,U=D?D.length:0;this.__data__=new O8;while(++$<U)this.add(D[$])}function Ur(D){return this.__data__.set(D,FF),this}function Jr(D){return this.__data__.has(D)}_3.prototype.add=_3.prototype.push=Ur;_3.prototype.has=Jr;function x3(D,$){var U=D.length;while(U--)if(Fr(D[U][0],$))return U;return-1}function Yr(D,$,U){var J=-1,Y=Tn,X=D.length,Q=!0,F=[],W=F;if(U)Q=!1,Y=Pn;else if(X>=Rn){var K=$?null:Nn(D);if(K)return un(K);Q=!1,Y=bn,W=new _3}else W=$?[]:F;D:while(++J<X){var Z=D[J],z=$?$(Z):Z;if(Z=U||Z!==0?Z:0,Q&&z===z){var q=W.length;while(q--)if(W[q]===z)continue D;if($)W.push(z);F.push(Z)}else if(!Y(W,z,U)){if(W!==F)W.push(z);F.push(Z)}}return F}function g3(D,$){var U=D.__data__;return Xr($)?U[typeof $=="string"?"string":"hash"]:U.map}function pR(D,$){var U=D[$];return Kr(U)?U:void 0}function Xr(D){var $=typeof D;return $=="string"||$=="number"||$=="symbol"||$=="boolean"?D!=="__proto__":D===null}function Qr(D){if(D!=null){try{return iR.call(D)}catch($){}try{return D+""}catch($){}}return""}function Fr(D,$){return D===$||D!==D&&$!==$}function Wr(D){var $=nR(D)?xn.call(D):"";return $==Mn||$==An}function nR(D){var $=typeof D;return!!D&&($=="object"||$=="function")}function Kr(D){if(!nR(D))return!1;var $=Wr(D)||kn(D)?gn:En;return $.test(Qr(D))}rR.exports=Yr});var tR=S((uVD,aR)=>{var Zr=xR(),zr=oR();function qr(D,$){return D&&D.length?zr(D,Zr($)):[]}aR.exports=qr});var eR=S((_VD,sR)=>{var Gr=rL(),Vr=tR(),Hr=Gr("MultiError");sR.exports=KF;function KF(D){if(!(this instanceof KF))return new KF(D);if(D=Array.isArray(D)?D:[D],D=Vr(D,function(U){return U.stack}),D.length===1)return D[0];var $=new Hr({message:D.map(function(U){return U.message}).join("; "),errors:D.reduce(function(U,J){return U.concat(J.errors||J)},[])});return $.__defineGetter__("stack",function(){return D.map(function(U){return U.stack}).join(`
`)}),$.__defineSetter__("stack",function(U){return[U].concat($.stack).join(`
`)}),$}});var $M=S((xVD,DM)=>{var l$=UD("constants"),Ir=process.cwd,f3=null,Br=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!f3)f3=Ir.call(process);return f3};try{process.cwd()}catch(D){}if(typeof process.chdir==="function"){if(y3=process.chdir,process.chdir=function(D){f3=null,y3.call(process,D)},Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,y3)}var y3;DM.exports=wr;function wr(D){if(l$.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./))$(D);if(!D.lutimes)U(D);if(D.chown=X(D.chown),D.fchown=X(D.fchown),D.lchown=X(D.lchown),D.chmod=J(D.chmod),D.fchmod=J(D.fchmod),D.lchmod=J(D.lchmod),D.chownSync=Q(D.chownSync),D.fchownSync=Q(D.fchownSync),D.lchownSync=Q(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(Z,z,q){if(q)process.nextTick(q)},D.lchmodSync=function(){};if(D.chown&&!D.lchown)D.lchown=function(Z,z,q,G){if(G)process.nextTick(G)},D.lchownSync=function(){};if(Br==="win32")D.rename=typeof D.rename!=="function"?D.rename:function(Z){function z(q,G,V){var I=Date.now(),H=0;Z(q,G,function w(j){if(j&&(j.code==="EACCES"||j.code==="EPERM"||j.code==="EBUSY")&&Date.now()-I<60000){if(setTimeout(function(){D.stat(G,function(B,N){if(B&&B.code==="ENOENT")Z(q,G,w);else V(j)})},H),H<100)H+=10;return}if(V)V(j)})}if(Object.setPrototypeOf)Object.setPrototypeOf(z,Z);return z}(D.rename);D.read=typeof D.read!=="function"?D.read:function(Z){function z(q,G,V,I,H,w){var j;if(w&&typeof w==="function"){var B=0;j=function(N,A,v){if(N&&N.code==="EAGAIN"&&B<10)return B++,Z.call(D,q,G,V,I,H,j);w.apply(this,arguments)}}return Z.call(D,q,G,V,I,H,j)}if(Object.setPrototypeOf)Object.setPrototypeOf(z,Z);return z}(D.read),D.readSync=typeof D.readSync!=="function"?D.readSync:function(Z){return function(z,q,G,V,I){var H=0;while(!0)try{return Z.call(D,z,q,G,V,I)}catch(w){if(w.code==="EAGAIN"&&H<10){H++;continue}throw w}}}(D.readSync);function $(Z){Z.lchmod=function(z,q,G){Z.open(z,l$.O_WRONLY|l$.O_SYMLINK,q,function(V,I){if(V){if(G)G(V);return}Z.fchmod(I,q,function(H){Z.close(I,function(w){if(G)G(H||w)})})})},Z.lchmodSync=function(z,q){var G=Z.openSync(z,l$.O_WRONLY|l$.O_SYMLINK,q),V=!0,I;try{I=Z.fchmodSync(G,q),V=!1}finally{if(V)try{Z.closeSync(G)}catch(H){}else Z.closeSync(G)}return I}}function U(Z){if(l$.hasOwnProperty("O_SYMLINK")&&Z.futimes)Z.lutimes=function(z,q,G,V){Z.open(z,l$.O_SYMLINK,function(I,H){if(I){if(V)V(I);return}Z.futimes(H,q,G,function(w){Z.close(H,function(j){if(V)V(w||j)})})})},Z.lutimesSync=function(z,q,G){var V=Z.openSync(z,l$.O_SYMLINK),I,H=!0;try{I=Z.futimesSync(V,q,G),H=!1}finally{if(H)try{Z.closeSync(V)}catch(w){}else Z.closeSync(V)}return I};else if(Z.futimes)Z.lutimes=function(z,q,G,V){if(V)process.nextTick(V)},Z.lutimesSync=function(){}}function J(Z){if(!Z)return Z;return function(z,q,G){return Z.call(D,z,q,function(V){if(K(V))V=null;if(G)G.apply(this,arguments)})}}function Y(Z){if(!Z)return Z;return function(z,q){try{return Z.call(D,z,q)}catch(G){if(!K(G))throw G}}}function X(Z){if(!Z)return Z;return function(z,q,G,V){return Z.call(D,z,q,G,function(I){if(K(I))I=null;if(V)V.apply(this,arguments)})}}function Q(Z){if(!Z)return Z;return function(z,q,G){try{return Z.call(D,z,q,G)}catch(V){if(!K(V))throw V}}}function F(Z){if(!Z)return Z;return function(z,q,G){if(typeof q==="function")G=q,q=null;function V(I,H){if(H){if(H.uid<0)H.uid+=4294967296;if(H.gid<0)H.gid+=4294967296}if(G)G.apply(this,arguments)}return q?Z.call(D,z,q,V):Z.call(D,z,V)}}function W(Z){if(!Z)return Z;return function(z,q){var G=q?Z.call(D,z,q):Z.call(D,z);if(G){if(G.uid<0)G.uid+=4294967296;if(G.gid<0)G.gid+=4294967296}return G}}function K(Z){if(!Z)return!0;if(Z.code==="ENOSYS")return!0;var z=!process.getuid||process.getuid()!==0;if(z){if(Z.code==="EINVAL"||Z.code==="EPERM")return!0}return!1}}});var YM=S((gVD,JM)=>{var UM=UD("stream").Stream;JM.exports=Or;function Or(D){return{ReadStream:$,WriteStream:U};function $(J,Y){if(!(this instanceof $))return new $(J,Y);UM.call(this);var X=this;this.path=J,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,Y=Y||{};var Q=Object.keys(Y);for(var F=0,W=Q.length;F<W;F++){var K=Q[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(){X._read()});return}D.open(this.path,this.flags,this.mode,function(Z,z){if(Z){X.emit("error",Z),X.readable=!1;return}X.fd=z,X.emit("open",z),X._read()})}function U(J,Y){if(!(this instanceof U))return new U(J,Y);UM.call(this),this.path=J,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,Y=Y||{};var X=Object.keys(Y);for(var Q=0,F=X.length;Q<F;Q++){var W=X[Q];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 QM=S((fVD,XM)=>{XM.exports=Nr;var jr=Object.getPrototypeOf||function(D){return D.__proto__};function Nr(D){if(D===null||typeof D!=="object")return D;if(D instanceof Object)var $={__proto__:jr(D)};else var $=Object.create(null);return Object.getOwnPropertyNames(D).forEach(function(U){Object.defineProperty($,U,Object.getOwnPropertyDescriptor(D,U))}),$}});var c$=S((yVD,GF)=>{var $0=UD("fs"),Lr=$M(),Rr=YM(),Mr=QM(),h3=UD("util"),L0,l3;if(typeof Symbol==="function"&&typeof Symbol.for==="function")L0=Symbol.for("graceful-fs.queue"),l3=Symbol.for("graceful-fs.previous");else L0="___graceful-fs.queue",l3="___graceful-fs.previous";function Ar(){}function WM(D,$){Object.defineProperty(D,L0,{get:function(){return $}})}var c1=Ar;if(h3.debuglog)c1=h3.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))c1=function(){var D=h3.format.apply(h3,arguments);D="GFS4: "+D.split(/\n/).join(`
GFS4: `),console.error(D)};if(!$0[L0]){if(ZF=global[L0]||[],WM($0,ZF),$0.close=function(D){function $(U,J){return D.call($0,U,function(Y){if(!Y)FM();if(typeof J==="function")J.apply(this,arguments)})}return Object.defineProperty($,l3,{value:D}),$}($0.close),$0.closeSync=function(D){function $(U){D.apply($0,arguments),FM()}return Object.defineProperty($,l3,{value:D}),$}($0.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))process.on("exit",function(){c1($0[L0]),UD("assert").equal($0[L0].length,0)})}var ZF;if(!global[L0])WM(global,$0[L0]);GF.exports=zF(Mr($0));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!$0.__patched)GF.exports=zF($0),$0.__patched=!0;function zF(D){Lr(D),D.gracefulify=zF,D.createReadStream=A,D.createWriteStream=v;var $=D.readFile;D.readFile=U;function U(b,y,T){if(typeof y==="function")T=y,y=null;return h(b,y,T);function h(c,p,a,R){return $(c,p,function(O){if(O&&(O.code==="EMFILE"||O.code==="ENFILE"))j8([h,[c,p,a],O,R||Date.now(),Date.now()]);else if(typeof a==="function")a.apply(this,arguments)})}}var J=D.writeFile;D.writeFile=Y;function Y(b,y,T,h){if(typeof T==="function")h=T,T=null;return c(b,y,T,h);function c(p,a,R,O,L){return J(p,a,R,function(E){if(E&&(E.code==="EMFILE"||E.code==="ENFILE"))j8([c,[p,a,R,O],E,L||Date.now(),Date.now()]);else if(typeof O==="function")O.apply(this,arguments)})}}var X=D.appendFile;if(X)D.appendFile=Q;function Q(b,y,T,h){if(typeof T==="function")h=T,T=null;return c(b,y,T,h);function c(p,a,R,O,L){return X(p,a,R,function(E){if(E&&(E.code==="EMFILE"||E.code==="ENFILE"))j8([c,[p,a,R,O],E,L||Date.now(),Date.now()]);else if(typeof O==="function")O.apply(this,arguments)})}}var F=D.copyFile;if(F)D.copyFile=W;function W(b,y,T,h){if(typeof T==="function")h=T,T=0;return c(b,y,T,h);function c(p,a,R,O,L){return F(p,a,R,function(E){if(E&&(E.code==="EMFILE"||E.code==="ENFILE"))j8([c,[p,a,R,O],E,L||Date.now(),Date.now()]);else if(typeof O==="function")O.apply(this,arguments)})}}var K=D.readdir;D.readdir=z;var Z=/^v[0-5]\./;function z(b,y,T){if(typeof y==="function")T=y,y=null;var h=Z.test(process.version)?function(a,R,O,L){return K(a,c(a,R,O,L))}:function(a,R,O,L){return K(a,R,c(a,R,O,L))};return h(b,y,T);function c(p,a,R,O){return function(L,E){if(L&&(L.code==="EMFILE"||L.code==="ENFILE"))j8([h,[p,a,R],L,O||Date.now(),Date.now()]);else{if(E&&E.sort)E.sort();if(typeof R==="function")R.call(this,L,E)}}}}if(process.version.substr(0,4)==="v0.8"){var q=Rr(D);w=q.ReadStream,B=q.WriteStream}var G=D.ReadStream;if(G)w.prototype=Object.create(G.prototype),w.prototype.open=j;var V=D.WriteStream;if(V)B.prototype=Object.create(V.prototype),B.prototype.open=N;Object.defineProperty(D,"ReadStream",{get:function(){return w},set:function(b){w=b},enumerable:!0,configurable:!0}),Object.defineProperty(D,"WriteStream",{get:function(){return B},set:function(b){B=b},enumerable:!0,configurable:!0});var I=w;Object.defineProperty(D,"FileReadStream",{get:function(){return I},set:function(b){I=b},enumerable:!0,configurable:!0});var H=B;Object.defineProperty(D,"FileWriteStream",{get:function(){return H},set:function(b){H=b},enumerable:!0,configurable:!0});function w(b,y){if(this instanceof w)return G.apply(this,arguments),this;else return w.apply(Object.create(w.prototype),arguments)}function j(){var b=this;C(b.path,b.flags,b.mode,function(y,T){if(y){if(b.autoClose)b.destroy();b.emit("error",y)}else b.fd=T,b.emit("open",T),b.read()})}function B(b,y){if(this instanceof B)return V.apply(this,arguments),this;else return B.apply(Object.create(B.prototype),arguments)}function N(){var b=this;C(b.path,b.flags,b.mode,function(y,T){if(y)b.destroy(),b.emit("error",y);else b.fd=T,b.emit("open",T)})}function A(b,y){return new D.ReadStream(b,y)}function v(b,y){return new D.WriteStream(b,y)}var k=D.open;D.open=C;function C(b,y,T,h){if(typeof T==="function")h=T,T=null;return c(b,y,T,h);function c(p,a,R,O,L){return k(p,a,R,function(E,f){if(E&&(E.code==="EMFILE"||E.code==="ENFILE"))j8([c,[p,a,R,O],E,L||Date.now(),Date.now()]);else if(typeof O==="function")O.apply(this,arguments)})}}return D}function j8(D){c1("ENQUEUE",D[0].name,D[1]),$0[L0].push(D),qF()}var m3;function FM(){var D=Date.now();for(var $=0;$<$0[L0].length;++$)if($0[L0][$].length>2)$0[L0][$][3]=D,$0[L0][$][4]=D;qF()}function qF(){if(clearTimeout(m3),m3=void 0,$0[L0].length===0)return;var D=$0[L0].shift(),$=D[0],U=D[1],J=D[2],Y=D[3],X=D[4];if(Y===void 0)c1("RETRY",$.name,U),$.apply(null,U);else if(Date.now()-Y>=60000){c1("TIMEOUT",$.name,U);var Q=U.pop();if(typeof Q==="function")Q.call(null,J)}else{var F=Date.now()-X,W=Math.max(X-Y,1),K=Math.min(W*1.2,100);if(F>=K)c1("RETRY",$.name,U),$.apply(null,U.concat([Y]));else $0[L0].push(D)}if(m3===void 0)m3=setTimeout(qF,0)}});var ZM=S((hVD,KM)=>{function T6(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)}KM.exports=T6;T6.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts};T6.prototype.stop=function(){if(this._timeout)clearTimeout(this._timeout);this._timeouts=[],this._cachedTimeouts=null};T6.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 U=this._timeouts.shift();if(U===void 0)if(this._cachedTimeouts)this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),U=this._timeouts.shift();else return!1;var J=this,Y=setTimeout(function(){if(J._attempts++,J._operationTimeoutCb){if(J._timeout=setTimeout(function(){J._operationTimeoutCb(J._attempts)},J._operationTimeout),J._options.unref)J._timeout.unref()}J._fn(J._attempts)},U);if(this._options.unref)Y.unref();return!0};T6.prototype.attempt=function(D,$){if(this._fn=D,$){if($.timeout)this._operationTimeout=$.timeout;if($.cb)this._operationTimeoutCb=$.cb}var U=this;if(this._operationTimeoutCb)this._timeout=setTimeout(function(){U._operationTimeoutCb()},U._operationTimeout);this._operationStart=new Date().getTime(),this._fn(this._attempts)};T6.prototype.try=function(D){console.log("Using RetryOperation.try() is deprecated"),this.attempt(D)};T6.prototype.start=function(D){console.log("Using RetryOperation.start() is deprecated"),this.attempt(D)};T6.prototype.start=T6.prototype.try;T6.prototype.errors=function(){return this._errors};T6.prototype.attempts=function(){return this._attempts};T6.prototype.mainError=function(){if(this._errors.length===0)return null;var D={},$=null,U=0;for(var J=0;J<this._errors.length;J++){var Y=this._errors[J],X=Y.message,Q=(D[X]||0)+1;if(D[X]=Q,Q>=U)$=Y,U=Q}return $}});var qM=S((Er)=>{var vr=ZM();Er.operation=function(D){var $=Er.timeouts(D);return new vr($,{forever:D&&D.forever,unref:D&&D.unref,maxRetryTime:D&&D.maxRetryTime})};Er.timeouts=function(D){if(D instanceof Array)return[].concat(D);var $={retries:10,factor:2,minTimeout:1000,maxTimeout:1/0,randomize:!1};for(var U in D)$[U]=D[U];if($.minTimeout>$.maxTimeout)throw Error("minTimeout is greater than maxTimeout");var J=[];for(var Y=0;Y<$.retries;Y++)J.push(this.createTimeout(Y,$));if(D&&D.forever&&!J.length)J.push(this.createTimeout(Y,$));return J.sort(function(X,Q){return X-Q}),J};Er.createTimeout=function(D,$){var U=$.randomize?Math.random()+1:1,J=Math.round(U*$.minTimeout*Math.pow($.factor,D));return J=Math.min(J,$.maxTimeout),J};Er.wrap=function(D,$,U){if($ instanceof Array)U=$,$=null;if(!U){U=[];for(var J in D)if(typeof D[J]==="function")U.push(J)}for(var Y=0;Y<U.length;Y++){var X=U[Y],Q=D[X];D[X]=function(W){var K=Er.operation($),Z=Array.prototype.slice.call(arguments,1),z=Z.pop();Z.push(function(q){if(K.retry(q))return;if(q)arguments[0]=K.mainError();z.apply(this,arguments)}),K.attempt(function(){W.apply(D,Z)})}.bind(D,Q),D[X].options=$}}});var GM=S((lVD,c3)=>{c3.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32")c3.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");if(process.platform==="linux")c3.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var wF=S((cVD,L8)=>{var tD=global.process,d1=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(!d1(tD))L8.exports=function(){return function(){}};else{if(VF=UD("assert"),i1=GM(),HF=/^win/i.test(tD.platform),N8=UD("events"),typeof N8!=="function")N8=N8.EventEmitter;if(tD.__signal_exit_emitter__)I0=tD.__signal_exit_emitter__;else I0=tD.__signal_exit_emitter__=new N8,I0.count=0,I0.emitted={};if(!I0.infinite)I0.setMaxListeners(1/0),I0.infinite=!0;L8.exports=function(D,$){if(!d1(global.process))return function(){};if(VF.equal(typeof D,"function","a callback must be provided for exit handler"),p1===!1)d3();var U="exit";if($&&$.alwaysLast)U="afterexit";var J=function(){if(I0.removeListener(U,D),I0.listeners("exit").length===0&&I0.listeners("afterexit").length===0)k9()};return I0.on(U,D),J},k9=function(){if(!p1||!d1(global.process))return;p1=!1,i1.forEach(function($){try{tD.removeListener($,u9[$])}catch(U){}}),tD.emit=_9,tD.reallyExit=i3,I0.count-=1},L8.exports.unload=k9,d$=function($,U,J){if(I0.emitted[$])return;I0.emitted[$]=!0,I0.emit($,U,J)},u9={},i1.forEach(function(D){u9[D]=function(){if(!d1(global.process))return;var U=tD.listeners(D);if(U.length===I0.count){if(k9(),d$("exit",null,D),d$("afterexit",null,D),HF&&D==="SIGHUP")D="SIGINT";tD.kill(tD.pid,D)}}}),L8.exports.signals=function(){return i1},p1=!1,d3=function(){if(p1||!d1(global.process))return;p1=!0,I0.count+=1,i1=i1.filter(function($){try{return tD.on($,u9[$]),!0}catch(U){return!1}}),tD.emit=BF,tD.reallyExit=IF},L8.exports.load=d3,i3=tD.reallyExit,IF=function($){if(!d1(global.process))return;tD.exitCode=$||0,d$("exit",tD.exitCode,null),d$("afterexit",tD.exitCode,null),i3.call(tD,tD.exitCode)},_9=tD.emit,BF=function($,U){if($==="exit"&&d1(global.process)){if(U!==void 0)tD.exitCode=U;var J=_9.apply(this,arguments);return d$("exit",tD.exitCode,null),d$("afterexit",tD.exitCode,null),J}else return _9.apply(this,arguments)}}var VF,i1,HF,N8,I0,k9,d$,u9,p1,d3,i3,IF,_9,BF});var HM=S((kr,OF)=>{var VM=Symbol();function br(D,$,U){let J=$[VM];if(J)return $.stat(D,(X,Q)=>{if(X)return U(X);U(null,Q.mtime,J)});let Y=new Date(Math.ceil(Date.now()/1000)*1000+5);$.utimes(D,Y,Y,(X)=>{if(X)return U(X);$.stat(D,(Q,F)=>{if(Q)return U(Q);let W=F.mtime.getTime()%1000===0?"s":"ms";Object.defineProperty($,VM,{value:W}),U(null,F.mtime,W)})})}function Cr(D){let $=Date.now();if(D==="s")$=Math.ceil($/1000)*1000;return new Date($)}kr.probe=br;kr.getMtime=Cr});var jM=S((lr,g9)=>{var xr=UD("path"),LF=c$(),gr=qM(),fr=wF(),IM=HM(),I$={};function x9(D,$){return $.lockfilePath||`${D}.lock`}function RF(D,$,U){if(!$.realpath)return U(null,xr.resolve(D));$.fs.realpath(D,U)}function NF(D,$,U){let J=x9(D,$);$.fs.mkdir(J,(Y)=>{if(!Y)return IM.probe(J,$.fs,(X,Q,F)=>{if(X)return $.fs.rmdir(J,()=>{}),U(X);U(null,Q,F)});if(Y.code!=="EEXIST")return U(Y);if($.stale<=0)return U(Object.assign(Error("Lock file is already being held"),{code:"ELOCKED",file:D}));$.fs.stat(J,(X,Q)=>{if(X){if(X.code==="ENOENT")return NF(D,{...$,stale:0},U);return U(X)}if(!BM(Q,$))return U(Object.assign(Error("Lock file is already being held"),{code:"ELOCKED",file:D}));wM(D,$,(F)=>{if(F)return U(F);NF(D,{...$,stale:0},U)})})})}function BM(D,$){return D.mtime.getTime()<Date.now()-$.stale}function wM(D,$,U){$.fs.rmdir(x9(D,$),(J)=>{if(J&&J.code!=="ENOENT")return U(J);U()})}function p3(D,$){let U=I$[D];if(U.updateTimeout)return;if(U.updateDelay=U.updateDelay||$.update,U.updateTimeout=setTimeout(()=>{U.updateTimeout=null,$.fs.stat(U.lockfilePath,(J,Y)=>{let X=U.lastUpdate+$.stale<Date.now();if(J){if(J.code==="ENOENT"||X)return jF(D,U,Object.assign(J,{code:"ECOMPROMISED"}));return U.updateDelay=1000,p3(D,$)}if(U.mtime.getTime()!==Y.mtime.getTime())return jF(D,U,Object.assign(Error("Unable to update lock within the stale threshold"),{code:"ECOMPROMISED"}));let F=IM.getMtime(U.mtimePrecision);$.fs.utimes(U.lockfilePath,F,F,(W)=>{let K=U.lastUpdate+$.stale<Date.now();if(U.released)return;if(W){if(W.code==="ENOENT"||K)return jF(D,U,Object.assign(W,{code:"ECOMPROMISED"}));return U.updateDelay=1000,p3(D,$)}U.mtime=F,U.lastUpdate=Date.now(),U.updateDelay=null,p3(D,$)})})},U.updateDelay),U.updateTimeout.unref)U.updateTimeout.unref()}function jF(D,$,U){if($.released=!0,$.updateTimeout)clearTimeout($.updateTimeout);if(I$[D]===$)delete I$[D];$.options.onCompromised(U)}function yr(D,$,U){$={stale:1e4,update:null,realpath:!0,retries:0,fs:LF,onCompromised:(J)=>{throw J},...$},$.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),RF(D,$,(J,Y)=>{if(J)return U(J);let X=gr.operation($.retries);X.attempt(()=>{NF(Y,$,(Q,F,W)=>{if(X.retry(Q))return;if(Q)return U(X.mainError());let K=I$[Y]={lockfilePath:x9(Y,$),mtime:F,mtimePrecision:W,options:$,lastUpdate:Date.now()};p3(Y,$),U(null,(Z)=>{if(K.released)return Z&&Z(Object.assign(Error("Lock is already released"),{code:"ERELEASED"}));OM(Y,{...$,realpath:!1},Z)})})})})}function OM(D,$,U){$={fs:LF,realpath:!0,...$},RF(D,$,(J,Y)=>{if(J)return U(J);let X=I$[Y];if(!X)return U(Object.assign(Error("Lock is not acquired/owned by you"),{code:"ENOTACQUIRED"}));X.updateTimeout&&clearTimeout(X.updateTimeout),X.released=!0,delete I$[Y],wM(Y,$,U)})}function hr(D,$,U){$={stale:1e4,realpath:!0,fs:LF,...$},$.stale=Math.max($.stale||0,2000),RF(D,$,(J,Y)=>{if(J)return U(J);$.fs.stat(x9(Y,$),(X,Q)=>{if(X)return X.code==="ENOENT"?U(null,!1):U(X);return U(null,!BM(Q,$))})})}function mr(){return I$}fr(()=>{for(let D in I$){let $=I$[D].options;try{$.fs.rmdirSync(x9(D,$))}catch(U){}}});lr.lock=yr;lr.unlock=OM;lr.check=hr;lr.getLocks=mr});var LM=S((dVD,NM)=>{var nr=c$();function rr(D){let $=["mkdir","realpath","stat","rmdir","utimes"],U={...D};return $.forEach((J)=>{U[J]=(...Y)=>{let X=Y.pop(),Q;try{Q=D[`${J}Sync`](...Y)}catch(F){return X(F)}X(null,Q)}}),U}function or(D){return(...$)=>new Promise((U,J)=>{$.push((Y,X)=>{if(Y)J(Y);else U(X)}),D(...$)})}function ar(D){return(...$)=>{let U,J;if($.push((Y,X)=>{U=Y,J=X}),D(...$),U)throw U;return J}}function tr(D){if(D={...D},D.fs=rr(D.fs||nr),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}NM.exports={toPromise:or,toSync:ar,toSyncOptions:tr}});var MM=S((iVD,i$)=>{var R8=jM(),{toPromise:n3,toSync:r3,toSyncOptions:MF}=LM();async function RM(D,$){let U=await n3(R8.lock)(D,$);return n3(U)}function sr(D,$){let U=r3(R8.lock)(D,MF($));return r3(U)}function er(D,$){return n3(R8.unlock)(D,$)}function Do(D,$){return r3(R8.unlock)(D,MF($))}function $o(D,$){return n3(R8.check)(D,$)}function Uo(D,$){return r3(R8.check)(D,MF($))}i$.exports=RM;i$.exports.lock=RM;i$.exports.unlock=er;i$.exports.lockSync=sr;i$.exports.unlockSync=Do;i$.exports.check=$o;i$.exports.checkSync=Uo});var bM=S((PM)=>{Object.defineProperty(PM,"__esModule",{value:!0});PM.canStoreURLs=PM.FileUrlStorage=void 0;var AM=UD("fs"),Jo=Xo(eR()),vM=Yo(MM());function TM(D){if(typeof WeakMap!="function")return null;var $=new WeakMap,U=new WeakMap;return(TM=function(J){return J?U:$})(D)}function Yo(D,$){if(!$&&D&&D.__esModule)return D;if(D===null||typeof D!="object"&&typeof D!="function")return{default:D};var U=TM($);if(U&&U.has(D))return U.get(D);var J={__proto__:null},Y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var X in D)if(X!=="default"&&{}.hasOwnProperty.call(D,X)){var Q=Y?Object.getOwnPropertyDescriptor(D,X):null;Q&&(Q.get||Q.set)?Object.defineProperty(J,X,Q):J[X]=D[X]}return J.default=D,U&&U.set(D,J),J}function Xo(D){return D&&D.__esModule?D:{default:D}}function f9(D){return f9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},f9(D)}function Qo(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function EM(D,$){for(var U=0;U<$.length;U++){var J=$[U];if(J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J)J.writable=!0;Object.defineProperty(D,Wo(J.key),J)}}function Fo(D,$,U){if($)EM(D.prototype,$);if(U)EM(D,U);return Object.defineProperty(D,"prototype",{writable:!1}),D}function Wo(D){var $=Ko(D,"string");return f9($)=="symbol"?$:$+""}function Ko(D,$){if(f9(D)!="object"||!D)return D;var U=D[Symbol.toPrimitive];if(U!==void 0){var J=U.call(D,$||"default");if(f9(J)!="object")return J;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}var pVD=PM.canStoreURLs=!0,nVD=PM.FileUrlStorage=function(){function D($){Qo(this,D),this.path=$}return Fo(D,[{key:"findAllUploads",value:function(){var U=this;return new Promise(function(J,Y){U._getItems("tus::",function(X,Q){if(X)Y(X);else J(Q)})})}},{key:"findUploadsByFingerprint",value:function(U){var J=this;return new Promise(function(Y,X){J._getItems("tus::".concat(U),function(Q,F){if(Q)X(Q);else Y(F)})})}},{key:"removeUpload",value:function(U){var J=this;return new Promise(function(Y,X){J._removeItem(U,function(Q){if(Q)X(Q);else Y()})})}},{key:"addUpload",value:function(U,J){var Y=this,X=Math.round(Math.random()*1000000000000),Q="tus::".concat(U,"::").concat(X);return new Promise(function(F,W){Y._setItem(Q,J,function(K){if(K)W(K);else F(Q)})})}},{key:"_setItem",value:function(U,J,Y){var X=this;vM.lock(this.path,this._lockfileOptions()).then(function(Q){Y=X._releaseAndCb(Q,Y),X._getData(function(F,W){if(F){Y(F);return}W[U]=J,X._writeData(W,function(K){return Y(K)})})}).catch(Y)}},{key:"_getItems",value:function(U,J){this._getData(function(Y,X){if(Y){J(Y);return}var Q=Object.keys(X).filter(function(F){return F.startsWith(U)}).map(function(F){var W=X[F];return W.urlStorageKey=F,W});J(null,Q)})}},{key:"_removeItem",value:function(U,J){var Y=this;vM.lock(this.path,this._lockfileOptions()).then(function(X){J=Y._releaseAndCb(X,J),Y._getData(function(Q,F){if(Q){J(Q);return}delete F[U],Y._writeData(F,function(W){return J(W)})})}).catch(J)}},{key:"_lockfileOptions",value:function(){return{realpath:!1,retries:{retries:5,minTimeout:20}}}},{key:"_releaseAndCb",value:function(U,J){return function(Y){if(Y){U().then(function(){return J(Y)}).catch(function(X){return J((0,Jo.default)([Y,X]))});return}U().then(J).catch(J)}}},{key:"_writeData",value:function(U,J){var Y={encoding:"utf8",mode:432,flag:"w"};(0,AM.writeFile)(this.path,JSON.stringify(U),Y,function(X){return J(X)})}},{key:"_getData",value:function(U){(0,AM.readFile)(this.path,"utf8",function(J,Y){if(J){if(J.code==="ENOENT")U(null,{});else U(J);return}try{Y=!Y.trim().length?{}:JSON.parse(Y)}catch(X){U(X);return}U(null,Y)})}}])}()});var lM=S((p$)=>{Object.defineProperty(p$,"__esModule",{value:!0});Object.defineProperty(p$,"DefaultHttpStack",{enumerable:!0,get:function(){return _M.default}});Object.defineProperty(p$,"DetailedError",{enumerable:!0,get:function(){return zo.default}});Object.defineProperty(p$,"FileUrlStorage",{enumerable:!0,get:function(){return xM.FileUrlStorage}});Object.defineProperty(p$,"StreamSource",{enumerable:!0,get:function(){return Io.default}});p$.Upload=void 0;Object.defineProperty(p$,"canStoreURLs",{enumerable:!0,get:function(){return xM.canStoreURLs}});p$.defaultOptions=void 0;Object.defineProperty(p$,"enableDebugLog",{enumerable:!0,get:function(){return qo.enableDebugLog}});p$.isSupported=void 0;var zo=n1(RQ()),qo=MQ(),Go=n1(MN()),AF=n1(JL()),Vo=n1(RL()),Ho=n1(TL()),_M=n1(dL()),Io=n1(_Q()),xM=bM();function n1(D){return D&&D.__esModule?D:{default:D}}function A8(D){return A8=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},A8(D)}function Bo(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function CM(D,$){for(var U=0;U<$.length;U++){var J=$[U];if(J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J)J.writable=!0;Object.defineProperty(D,fM(J.key),J)}}function wo(D,$,U){if($)CM(D.prototype,$);if(U)CM(D,U);return Object.defineProperty(D,"prototype",{writable:!1}),D}function Oo(D,$,U){return $=o3($),jo(D,gM()?Reflect.construct($,U||[],o3(D).constructor):$.apply(D,U))}function jo(D,$){if($&&(A8($)==="object"||typeof $==="function"))return $;else if($!==void 0)throw TypeError("Derived constructors may only return object or undefined");return No(D)}function No(D){if(D===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function gM(){try{var D=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch($){}return(gM=function(){return!!D})()}function o3(D){return o3=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(U){return U.__proto__||Object.getPrototypeOf(U)},o3(D)}function Lo(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}),$)vF(D,$)}function vF(D,$){return vF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(J,Y){return J.__proto__=Y,J},vF(D,$)}function kM(D,$){var U=Object.keys(D);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(D);$&&(J=J.filter(function(Y){return Object.getOwnPropertyDescriptor(D,Y).enumerable})),U.push.apply(U,J)}return U}function M8(D){for(var $=1;$<arguments.length;$++){var U=arguments[$]!=null?arguments[$]:{};$%2?kM(Object(U),!0).forEach(function(J){Ro(D,J,U[J])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(U)):kM(Object(U)).forEach(function(J){Object.defineProperty(D,J,Object.getOwnPropertyDescriptor(U,J))})}return D}function Ro(D,$,U){if($=fM($),$ in D)Object.defineProperty(D,$,{value:U,enumerable:!0,configurable:!0,writable:!0});else D[$]=U;return D}function fM(D){var $=Mo(D,"string");return A8($)=="symbol"?$:$+""}function Mo(D,$){if(A8(D)!="object"||!D)return D;var U=D[Symbol.toPrimitive];if(U!==void 0){var J=U.call(D,$||"default");if(A8(J)!="object")return J;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}var uM=p$.defaultOptions=M8(M8({},AF.default.defaultOptions),{},{httpStack:new _M.default,fileReader:new Vo.default,urlStorage:new Go.default,fingerprint:Ho.default}),oVD=p$.Upload=function(D){function $(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Bo(this,$),J=M8(M8({},uM),J),Oo(this,$,[U,J])}return Lo($,D),wo($,null,[{key:"terminate",value:function(J){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Y=M8(M8({},uM),Y),AF.default.terminate(J,Y)}}])}(AF.default),aVD=p$.isSupported=!0});import{execFileSync as Po}from"child_process";import So from"path";function Eo(D,$){if($===void 0)return!0;if(typeof $==="string")return D===$;if($ instanceof RegExp)return $.test(D);return $(D)}function To(D,$,U){return{agent:{id:D.id,name:D.name},strategy:"environment",signal:$.name,value:U}}function ko(D,$){let U=[],J=dM($.command);for(let Y of D)for(let X of Y.process??[]){if(!X.pattern.test(J))continue;U.push(uo(Y,X,{...$,command:J}))}return U}function uo(D,$,U){return{agent:{id:D.id,name:D.name},strategy:"process-tree",signal:$.pattern.toString(),value:`${U.pid}:${U.command}`}}function cM(D,$){try{return Po("ps",["-o",`${$}=`,"-p",String(D)],{encoding:"utf8",stdio:["ignore","pipe","ignore"]}).trim()}catch{return""}}function dM(D){return So.basename(D.trim()).replace(/^-+/,"")}function iM(D={}){let $=D.agents??Ao,U=D.strategies??_o(D.experimentalProcessTree),J={env:D.env??process.env,pid:D.pid??process.pid,agents:$,maxProcessDepth:D.maxProcessDepth??20},Y=U.flatMap((Q)=>Q.detect(J)),X=xo($,Y,J.env);if(X===void 0)return{detected:!1};return{detected:!0,agent:X}}function _o(D=!1){let $=[new vo];if(D)$.push(new Co);return $}function xo(D,$,U){let J=new Set($.map((Y)=>Y.agent.id));for(let Y of D){if(!J.has(Y.id))continue;return{id:Y.id,name:Y.name,...go(Y,U)}}return}function go(D,$){for(let U of D.sessionEnv??[]){let J=$[U];if(J!==void 0&&J.length>0)return{sessionId:J}}return{}}var Ao,vo=class{name="environment";detect(D){let $=[];for(let U of D.agents)for(let J of U.env??[]){let Y=D.env[J.name];if(Y===void 0||!Eo(Y,J.value))continue;$.push(To(U,J,Y))}return $}},bo=class{read(D){let $=cM(D,"comm"),U=Number.parseInt(cM(D,"ppid"),10);if(!$||!Number.isInteger(U))return;return{pid:D,ppid:U,command:dM($)}}},Co=class{constructor(D=new bo){this.reader=D}reader;name="process-tree";detect(D){let $=[],U=D.pid;for(let J=0;J<D.maxProcessDepth;J+=1){let Y=this.reader.read(U);if(Y===void 0)break;if($.push(...ko(D.agents,Y)),Y.ppid===void 0||Y.ppid<=1||Y.ppid===U)break;U=Y.ppid}return $}};var pM=_(()=>{Ao=[{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 fo,release as yo}from"node:os";import{arch as ho,env as mo,version as lo}from"node:process";function WHD(D){EF=D}function KHD(){return EF}function nM(D=mo){let $=iM({env:D}),U={cli_version:u6.version,node_version:lo,os_platform:fo(),os_arch:ho,os_release:yo(),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||"undefined",is_ci:y9.isCI,is_tty:Boolean(process.stdout.isTTY),invocation_source:EF,agent_invoker:$.detected};if($.detected&&$.agent)U.agent_identity=$.agent;if(y9.name)U.ci_provider=y9.name;return U}var y9,EF="cli";var rM=_(()=>{pM();f4();y9=K6(IQ(),1)});import{AsyncLocalStorage as co}from"node:async_hooks";function qHD(D,$){return aM.run(D,()=>Promise.resolve($()))}function io(){return aM.getStore()}function GHD(){tM=!0}function sM(){return tM}function VHD(D){eM=D}function oM(D){try{eM?.(D)}catch{}}function IHD(D,$){let U;try{U=new URL(D).pathname}catch{U=D.split("?")[0]}let J="/functions/v1/",Y=U.indexOf(J);if(Y>=0){let K=U.slice(Y+J.length),Z=0,z=K.length;while(Z<z&&K[Z]==="/")Z+=1;while(z>Z&&K[z-1]==="/")z-=1;let q=K.slice(Z,z);return q?`${$} functions:${q}`:`${$} functions`}let X="/rest/v1/",Q=U.indexOf(X),F=Q>=0?U.slice(Q+X.length):U.replace(/^\//,"");if(F.startsWith("rpc/"))return`rpc:${F.slice(4).split("/")[0]}`;let W=F.split("/")[0]||U;return`${$} ${W}`}function po(D){let $=D?.headers;if(!$)return;let U=$.get;if(typeof U==="function")return U.call($,"capgkey")??void 0;if(Array.isArray($))return $.find(([J])=>J.toLowerCase()==="capgkey")?.[1];return $.capgkey}function DA(){return async($,U)=>{let J=(U?.method??"GET").toUpperCase(),Y=typeof $==="string"?$:$ instanceof URL?$.href:$.url,X=io(),Q=po(U),F=Date.now();try{let W=await globalThis.fetch($,U);return oM({url:Y,method:J,status:W.status,ok:W.ok,durationMs:Date.now()-F,source:X,apikey:Q}),W}catch(W){throw oM({url:Y,method:J,status:0,ok:!1,durationMs:Date.now()-F,source:X,apikey:Q,error:W}),W}}}var aM,tM=!1,eM,HHD=5000;var $A=_(()=>{aM=new co});function no(D,$){if(!e2(D)||!e2($))return!1;return v1(x6(D),x6($))}function ro(D,$,U){let J=U?.trim()?`
${U.trim()}`:"";return`This Capgo API requires @capgo/cli@${$} or newer. You are using @capgo/cli@${D}.${J}
Please update: npx @capgo/cli@latest`}function UA(D,$,U=!1){let J=$||u6.version,Y=D.minCliVersion?.trim();if(!Y||!no(J,Y))return;let X=ro(J,Y,D.minCliVersionReason);if(!U)gD.error(X);throw new uD(X,{minCliVersion:Y,currentVersion:J})}var JA=_(()=>{g$();eX();f4();M1()});function YA(D,$){let J=["normal","bold","dim","italic","underline","strikethrough"].indexOf(D),Y="\x1B[";return"\x1B["+J+"m"+$+"\x1B[0m"}var h9;var XA=_(()=>{h9=class h9{title=null;headers=[];rows=[];static narrowTheme={top:["╔","═","╤","╗"],row:["║"," ","│","║"],div:["╟","─","┼","╢"],bot:["╚","═","╧","╝"]};static wideTheme={top:["╔═","═","═╤═","═╗"],row:["║ "," "," │ "," ║"],div:["╟─","─","─┼─","─╢"],bot:["╚═","═","═╧═","═╝"]};static roundTheme={top:["╭─","─","─┬─","─╮"],row:["│ "," "," │ "," │"],div:["├─","─","─┼─","─┤"],bot:["╰─","─","─┴─","─╯"]};theme=h9.wideTheme;columnWidth(){let D=[this.headers,...this.rows].filter((U)=>U.length>0),$=D[0].map((U)=>this.cast(U).length);for(let U of D.slice(1))for(let J=0;J<$.length;J++){let Y=this.cast(U[J]).length;if(Y>$[J])$[J]=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((U)=>D[1].repeat(U)).join(D[2])+D[3]}renderCell(D,$,U=!1){let J=this.cast(D),Y=U?YA("bold",J):J,X=$-J.length,Q=this.theme.row[1];switch(typeof D){case"number":return Q.repeat(X)+Y;case"string":return Y+Q.repeat(X);case"boolean":case"object":return Q.repeat(Math.ceil(X/2))+YA("italic",J)+Q.repeat(Math.floor(X/2));default:return Q.repeat(X)}}renderRow(D,$=!1){let U=this.theme.row,J=this.columnWidth();return U[0]+D.map((Y,X)=>this.renderCell(Y,J[X],$)).join(U[2])+U[3]}toString(){let D=this.theme,$=this.headers.length>0,U=this.rows.length>0;return[this.title?this.renderTitle():"",$||U?this.renderLine(D.top):"",$?this.renderRow(this.headers,!0):"",$&&U?this.renderLine(D.div):"",...this.rows.map((J)=>this.renderRow(J)),$||U?this.renderLine(D.bot):""].filter((J)=>J.length>0).join(`
`)}}});var QA=_(()=>{XA()});async function FA(D){try{let U=`https://registry.npmjs.org/${encodeURIComponent(D.toLowerCase())}`,J=await fetch(U,{headers:{accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"}});if(!J.ok)return null;return(await J.json())["dist-tags"]?.latest||null}catch{return null}}async function oo(){let D=await FA("@capgo/cli")??"",$=D?.split(".")[0]??"";return{currentVersion:u6.version,latestVersion:D,isOutdated:!!D&&D!==u6.version,majorVersion:$}}async function WA(D={warn:($)=>gD.warning($)}){let{isOutdated:$,currentVersion:U,latestVersion:J,majorVersion:Y}=await oo();if($)D.warn(`\uD83D\uDEA8 You are using @capgo/cli@${U} it's not the latest version.
Please use @capgo/cli@${J}" or @capgo/cli@${Y} to keep up to date with the latest features and bug fixes.`)}var KA=_(()=>{g$();f4()});function zA(D,$,U=new Date,J=300000){return{appId:D,devicesId:$?[$]:void 0,order:[{key:"created_at",sortable:"desc"}],rangeStart:new Date(U.getTime()-J).toISOString()}}function qA(D,$=!1){if($)return!1;let U=D.replace(/\r|\n/g,"");return U==="c"||U==="C"}var ZA=5000,TF="Press C to continue if you already verified the update in the Capgo dashboard";var Ya={};S0(Ya,{waitLog:()=>HA,sendCliEvent:()=>v8,getStats:()=>VA,debugApp:()=>Ja,cancelCommand:()=>GA});import ao from"node:process";function to(D,$){return new Promise((U)=>{if($?.aborted){U();return}let J=()=>{clearTimeout(Y),U()},Y=setTimeout(()=>{$?.removeEventListener("abort",J),U()},D);$?.addEventListener("abort",J,{once:!0})})}function so(D){return new Date(D||"").toLocaleTimeString()}function eo(D,$){let U=D,J=U?.cause?.name,Y=U?.cause?.code||U?.code,X=(U?.message||"").toLowerCase();if(Y==="UND_ERR_CONNECT_TIMEOUT"||J==="UND_ERR_CONNECT_TIMEOUT"||/connect timeout/.test(X)||/timed out/.test(X))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"||X.includes("fetch failed"))return`Cannot reach ${$} (network error). Verify internet connectivity and that ${$} is reachable from this machine.`;if(X.startsWith("http error! status: "))return U?.message||"Capgo API returned an HTTP error.";return C0(D)}async function v8(D,$,U,J,Y,X){await E8(U,{channel:D,event:J,org_id:$,tracking_version:2,...Y||X?{tags:{...Y?{"app-id":Y}:{},...X}}:{}})}async function GA(D,$,U,J){if(!A1($))return;throw await v8(D,U,J,"canceled"),gD.warn("Command cancelled"),new uD("Command cancelled")}async function VA(D,$,U,J){let X=`${(await r1()).hostApi}/private/stats`;try{let Q=U?{...$,rangeStart:U}:{...$},F=await fetch(X,{method:"POST",headers:r6({"Content-Type":"application/json",capgkey:D}),body:JSON.stringify(Q),signal:J});if(!F.ok)throw Error(`HTTP error! status: ${F.status}`);let W=await F.json();if(W?.length>0)return W}catch(Q){if(J?.aborted||Q instanceof Error&&Q.name==="AbortError")return[];gD.error(`Cannot get stats: ${eo(Q,X)}`)}return[]}function Da(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:U})=>`Out of quota. Upgrade plan: ${U}/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 U=D.action.split("_")[1];if(U==="complete")return{summary:()=>"Download complete; relaunch app to apply",level:"info",trackingEvent:"downloaded"};if(U==="fail")return{summary:()=>"Download failed on device",level:"error"};return{summary:()=>`Downloading ${U}%`,level:"info"}}return $[D.action]||null}async function $a(D,$,U,J,Y,X){let Q=Da(D);if(!Q)return{};if(Q.trackingEvent)await v8($,U,J,Q.trackingEvent);let F=so(D.created_at),W=D.action,K=D.version_id?`(version #${D.version_id})`:"",Z=D.version?` (version ${D.version})`:K,z=`${Q.summary({data:D,baseAppUrl:Y,baseUrl:X})}${Z}`;return{row:[F,D.device_id,W,z],stop:Q.stop}}function Ua(D){return new Promise(($)=>{let U=ao.stdin,J=Boolean(U.isTTY&&typeof U.setRawMode==="function"),Y=J?U.isRaw:void 0,X=U.readableFlowing===!0,Q=()=>{W(),$()},F=(K)=>{let Z=String(K);if(Z==="\x03"||qA(Z))Q()},W=()=>{if(U.off("data",F),D.removeEventListener("abort",Q),J&&Y!==void 0)U.setRawMode(Y);if(!X)U.pause()};if(D.addEventListener("abort",Q,{once:!0}),J)U.setRawMode(!0),U.resume();if(U.isTTY)U.on("data",F)})}async function HA(D,$,U,J,Y={}){let X=await r1(),Q=`${X.hostWeb}/app/${U}`;await v8(D,J,$,"Use waitlog",U);let F=zA(U,Y.deviceId,Y.now,Y.lookbackMs),W=null,K=new Set,Z=Y.spinner??l4(),z=Y.logInfo??((N)=>{gD.info(N)}),q=Y.sleep??to,G=Y.pollMs??ZA,V=`${X.host}/docs/plugins/updater/debugging/#sent-from-the-backend`,I=`Waiting for logs (expect ~30s delay). ${TF}. More info: ${V}`;Z.start(I);let H=new AbortController,w=Y.waitForSkip?Y.waitForSkip(H.signal):Ua(H.signal),B=(async()=>{let N=!0;while(!H.signal.aborted){if(!N)await q(G,H.signal);if(N=!1,H.signal.aborted)return"aborted";let A=await VA($,F,W,H.signal);if(H.signal.aborted)return"aborted";if(A.length===0)continue;let v=A.reduce((y,T)=>{let h=new Date(T.created_at).getTime();return Math.max(y,h)},W?new Date(W).getTime():0);if(v>0)W=new Date(v).toISOString();let k=A.filter((y)=>{let T=`${y.app_id}|${y.device_id}|${y.action}|${y.version_id}|${y.created_at}`;if(K.has(T))return!1;return K.add(T),!0}).sort((y,T)=>new Date(y.created_at).getTime()-new Date(T.created_at).getTime()),C=new h9;C.headers=["Time","Device","Key","Message"],C.theme=h9.roundTheme,C.rows=[];let b=!1;for(let y of k){let{row:T,stop:h}=await $a(y,D,J,$,Q,X.hostWeb);if(T)C.rows.push(T);if(h)b=!0}if(H.signal.aborted)return"aborted";if(C.rows.length){if(Z.stop(""),z(C.toString()),!b)Z.start(I)}if(b)return"set"}return"aborted"})();try{let N=await Promise.race([B,w.then(()=>"skip")]);if(H.abort(),await B,N==="skip")return Z.stop("Skipped waiting for logs"),z("You can confirm the update in the Capgo dashboard anytime."),{skipped:!0};return Z.stop("Stop watching logs"),{skipped:!1}}catch(N){throw H.abort(),await B.catch(()=>{return}),Z.stop("Stop watching logs"),N}}async function Ja(D,$){_7("Debug Live update in Capgo"),await WA(),$.apikey=$.apikey||BA();let U=await PF();D=OA(D,U?.config);let J=$.device;if(!$.apikey)throw gD.error("Missing API key, you need to provide an API key to delete your app"),Error("Missing API key");if(!D)throw gD.error("Missing argument, you need to provide a appId, or be in a capacitor project"),new uD("Missing appId");let Y=await wA($.apikey,D,{supaHost:$.supaHost,supaAnon:$.supaAnon}),X=await m4({message:"Automatic check if update working in device ?"});if(await GA("debug",X,Y,$.apikey),X)gD.info(`Wait logs sent to Capgo from ${D} device, Please background your app and open it again \uD83D\uDCAA`),gD.info(TF),await HA("debug",$.apikey,D,Y,{deviceId:J}),r2("Done ✅");else r2("Canceled ❌")}var IA=_(()=>{g$();QA();A7();KA();M1();SF()});import{AsyncLocalStorage as Xa}from"node:async_hooks";function lHD(){return bF.getStore()??jA}function NA(){let D=bF.getStore();return D===jA?void 0:D}function cHD(D,$){if(!D)return $();return bF.run(D,$)}var jA,bF;var LA=_(()=>{g$();jA={info:(D)=>gD.info(D),warn:(D)=>gD.warn(D),error:(D)=>gD.error(D),success:(D)=>gD.success(D),intro:_7,outro:r2,spinner:l4},bF=new Xa});var MA=S((iHD,RA)=>{var T8=1000,P8=T8*60,S8=P8*60,o1=S8*24,Qa=o1*7,Fa=o1*365.25;RA.exports=function(D,$){$=$||{};var U=typeof D;if(U==="string"&&D.length>0)return Wa(D);else if(U==="number"&&isFinite(D))return $.long?Za(D):Ka(D);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(D))};function Wa(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 U=parseFloat($[1]),J=($[2]||"ms").toLowerCase();switch(J){case"years":case"year":case"yrs":case"yr":case"y":return U*Fa;case"weeks":case"week":case"w":return U*Qa;case"days":case"day":case"d":return U*o1;case"hours":case"hour":case"hrs":case"hr":case"h":return U*S8;case"minutes":case"minute":case"mins":case"min":case"m":return U*P8;case"seconds":case"second":case"secs":case"sec":case"s":return U*T8;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return U;default:return}}function Ka(D){var $=Math.abs(D);if($>=o1)return Math.round(D/o1)+"d";if($>=S8)return Math.round(D/S8)+"h";if($>=P8)return Math.round(D/P8)+"m";if($>=T8)return Math.round(D/T8)+"s";return D+"ms"}function Za(D){var $=Math.abs(D);if($>=o1)return a3(D,$,o1,"day");if($>=S8)return a3(D,$,S8,"hour");if($>=P8)return a3(D,$,P8,"minute");if($>=T8)return a3(D,$,T8,"second");return D+" ms"}function a3(D,$,U,J){var Y=$>=U*1.5;return Math.round(D/U)+" "+J+(Y?"s":"")}});var CF=S((pHD,AA)=>{function za(D){U.debug=U,U.default=U,U.coerce=W,U.disable=Q,U.enable=Y,U.enabled=F,U.humanize=MA(),U.destroy=K,Object.keys(D).forEach((Z)=>{U[Z]=D[Z]}),U.names=[],U.skips=[],U.formatters={};function $(Z){let z=0;for(let q=0;q<Z.length;q++)z=(z<<5)-z+Z.charCodeAt(q),z|=0;return U.colors[Math.abs(z)%U.colors.length]}U.selectColor=$;function U(Z){let z,q=null,G,V;function I(...H){if(!I.enabled)return;let w=I,j=Number(new Date),B=j-(z||j);if(w.diff=B,w.prev=z,w.curr=j,z=j,H[0]=U.coerce(H[0]),typeof H[0]!=="string")H.unshift("%O");let N=0;H[0]=H[0].replace(/%([a-zA-Z%])/g,(v,k)=>{if(v==="%%")return"%";N++;let C=U.formatters[k];if(typeof C==="function"){let b=H[N];v=C.call(w,b),H.splice(N,1),N--}return v}),U.formatArgs.call(w,H),(w.log||U.log).apply(w,H)}if(I.namespace=Z,I.useColors=U.useColors(),I.color=U.selectColor(Z),I.extend=J,I.destroy=U.destroy,Object.defineProperty(I,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(q!==null)return q;if(G!==U.namespaces)G=U.namespaces,V=U.enabled(Z);return V},set:(H)=>{q=H}}),typeof U.init==="function")U.init(I);return I}function J(Z,z){let q=U(this.namespace+(typeof z>"u"?":":z)+Z);return q.log=this.log,q}function Y(Z){U.save(Z),U.namespaces=Z,U.names=[],U.skips=[];let z=(typeof Z==="string"?Z:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let q of z)if(q[0]==="-")U.skips.push(q.slice(1));else U.names.push(q)}function X(Z,z){let q=0,G=0,V=-1,I=0;while(q<Z.length)if(G<z.length&&(z[G]===Z[q]||z[G]==="*"))if(z[G]==="*")V=G,I=q,G++;else q++,G++;else if(V!==-1)G=V+1,I++,q=I;else return!1;while(G<z.length&&z[G]==="*")G++;return G===z.length}function Q(){let Z=[...U.names,...U.skips.map((z)=>"-"+z)].join(",");return U.enable(""),Z}function F(Z){for(let z of U.skips)if(X(Z,z))return!1;for(let z of U.names)if(X(Z,z))return!0;return!1}function W(Z){if(Z instanceof Error)return Z.stack||Z.message;return Z}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 U.enable(U.load()),U}AA.exports=za});var EA=S((vA,t3)=>{vA.formatArgs=Ga;vA.save=Va;vA.load=Ha;vA.useColors=qa;vA.storage=Ia();vA.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`.")}})();vA.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 qa(){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 Ga(D){if(D[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+D[0]+(this.useColors?"%c ":" ")+"+"+t3.exports.humanize(this.diff),!this.useColors)return;let $="color: "+this.color;D.splice(1,0,$,"color: inherit");let U=0,J=0;D[0].replace(/%[a-zA-Z%]/g,(Y)=>{if(Y==="%%")return;if(U++,Y==="%c")J=U}),D.splice(J,0,$)}vA.log=console.debug||console.log||(()=>{});function Va(D){try{if(D)vA.storage.setItem("debug",D);else vA.storage.removeItem("debug")}catch($){}}function Ha(){let D;try{D=vA.storage.getItem("debug")||vA.storage.getItem("DEBUG")}catch($){}if(!D&&typeof process<"u"&&"env"in process)D=process.env.DEBUG;return D}function Ia(){try{return localStorage}catch(D){}}t3.exports=CF()(vA);var{formatters:Ba}=t3.exports;Ba.j=function(D){try{return JSON.stringify(D)}catch($){return"[UnexpectedJSONParseError]: "+$.message}}});var PA=S((rHD,TA)=>{TA.exports=(D,$=process.argv)=>{let U=D.startsWith("-")?"":D.length===1?"-":"--",J=$.indexOf(U+D),Y=$.indexOf("--");return J!==-1&&(Y===-1||J<Y)}});var CA=S((oHD,bA)=>{var Aa=UD("os"),SA=UD("tty"),P6=PA(),{env:B0}=process,n$;if(P6("no-color")||P6("no-colors")||P6("color=false")||P6("color=never"))n$=0;else if(P6("color")||P6("colors")||P6("color=true")||P6("color=always"))n$=1;if("FORCE_COLOR"in B0)if(B0.FORCE_COLOR==="true")n$=1;else if(B0.FORCE_COLOR==="false")n$=0;else n$=B0.FORCE_COLOR.length===0?1:Math.min(parseInt(B0.FORCE_COLOR,10),3);function kF(D){if(D===0)return!1;return{level:D,hasBasic:!0,has256:D>=2,has16m:D>=3}}function uF(D,$){if(n$===0)return 0;if(P6("color=16m")||P6("color=full")||P6("color=truecolor"))return 3;if(P6("color=256"))return 2;if(D&&!$&&n$===void 0)return 0;let U=n$||0;if(B0.TERM==="dumb")return U;if(process.platform==="win32"){let J=Aa.release().split(".");if(Number(J[0])>=10&&Number(J[2])>=10586)return Number(J[2])>=14931?3:2;return 1}if("CI"in B0){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((J)=>(J in B0))||B0.CI_NAME==="codeship")return 1;return U}if("TEAMCITY_VERSION"in B0)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(B0.TEAMCITY_VERSION)?1:0;if(B0.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in B0){let J=parseInt((B0.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(B0.TERM_PROGRAM){case"iTerm.app":return J>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(B0.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(B0.TERM))return 1;if("COLORTERM"in B0)return 1;return U}function va(D){let $=uF(D,D&&D.isTTY);return kF($)}bA.exports={supportsColor:va,stdout:kF(uF(!0,SA.isatty(1))),stderr:kF(uF(!0,SA.isatty(2)))}});var xA=S((uA,e3)=>{var Ea=UD("tty"),s3=UD("util");uA.init=ua;uA.log=ba;uA.formatArgs=Pa;uA.save=Ca;uA.load=ka;uA.useColors=Ta;uA.destroy=s3.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");uA.colors=[6,2,3,4,5,1];try{let D=CA();if(D&&(D.stderr||D).level>=2)uA.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){}uA.inspectOpts=Object.keys(process.env).filter((D)=>{return/^debug_/i.test(D)}).reduce((D,$)=>{let U=$.substring(6).toLowerCase().replace(/_([a-z])/g,(Y,X)=>{return X.toUpperCase()}),J=process.env[$];if(/^(yes|on|true|enabled)$/i.test(J))J=!0;else if(/^(no|off|false|disabled)$/i.test(J))J=!1;else if(J==="null")J=null;else J=Number(J);return D[U]=J,D},{});function Ta(){return"colors"in uA.inspectOpts?Boolean(uA.inspectOpts.colors):Ea.isatty(process.stderr.fd)}function Pa(D){let{namespace:$,useColors:U}=this;if(U){let J=this.color,Y="\x1B[3"+(J<8?J:"8;5;"+J),X=` ${Y};1m${$} \x1B[0m`;D[0]=X+D[0].split(`
`).join(`
`+X),D.push(Y+"m+"+e3.exports.humanize(this.diff)+"\x1B[0m")}else D[0]=Sa()+$+" "+D[0]}function Sa(){if(uA.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function ba(...D){return process.stderr.write(s3.formatWithOptions(uA.inspectOpts,...D)+`
`)}function Ca(D){if(D)process.env.DEBUG=D;else delete process.env.DEBUG}function ka(){return process.env.DEBUG}function ua(D){D.inspectOpts={};let $=Object.keys(uA.inspectOpts);for(let U=0;U<$.length;U++)D.inspectOpts[$[U]]=uA.inspectOpts[$[U]]}e3.exports=CF()(uA);var{formatters:kA}=e3.exports;kA.o=function(D){return this.inspectOpts.colors=this.useColors,s3.inspect(D,this.inspectOpts).split(`
`).map(($)=>$.trim()).join(" ")};kA.O=function(D){return this.inspectOpts.colors=this.useColors,s3.inspect(D,this.inspectOpts)}});var xF=S((tHD,_F)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)_F.exports=EA();else _F.exports=xA()});var w0=S((la)=>{la.fromCallback=function(D){return Object.defineProperty(function(...$){if(typeof $[$.length-1]==="function")D.apply(this,$);else return new Promise((U,J)=>{$.push((Y,X)=>Y!=null?J(Y):U(X)),D.apply(this,$)})},"name",{value:D.name})};la.fromPromise=function(D){return Object.defineProperty(function(...$){let U=$[$.length-1];if(typeof U!=="function")return D.apply(this,$);else $.pop(),D.apply(this,$).then((J)=>U(null,J),U)},"name",{value:D.name})}});var l0=S((gF)=>{var gA=w0().fromCallback,m0=c$(),ia=["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 m0[D]==="function"});Object.assign(gF,m0);ia.forEach((D)=>{gF[D]=gA(m0[D])});gF.exists=function(D,$){if(typeof $==="function")return m0.exists(D,$);return new Promise((U)=>{return m0.exists(D,U)})};gF.read=function(D,$,U,J,Y,X){if(typeof X==="function")return m0.read(D,$,U,J,Y,X);return new Promise((Q,F)=>{m0.read(D,$,U,J,Y,(W,K,Z)=>{if(W)return F(W);Q({bytesRead:K,buffer:Z})})})};gF.write=function(D,$,...U){if(typeof U[U.length-1]==="function")return m0.write(D,$,...U);return new Promise((J,Y)=>{m0.write(D,$,...U,(X,Q,F)=>{if(X)return Y(X);J({bytesWritten:Q,buffer:F})})})};gF.readv=function(D,$,...U){if(typeof U[U.length-1]==="function")return m0.readv(D,$,...U);return new Promise((J,Y)=>{m0.readv(D,$,...U,(X,Q,F)=>{if(X)return Y(X);J({bytesRead:Q,buffers:F})})})};gF.writev=function(D,$,...U){if(typeof U[U.length-1]==="function")return m0.writev(D,$,...U);return new Promise((J,Y)=>{m0.writev(D,$,...U,(X,Q,F)=>{if(X)return Y(X);J({bytesWritten:Q,buffers:F})})})};if(typeof m0.realpath.native==="function")gF.realpath.native=gA(m0.realpath.native);else process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var yA=S((sa,fA)=>{var ta=UD("path");sa.checkPath=function($){if(process.platform==="win32"){if(/[<>:"|?*]/.test($.replace(ta.parse($).root,""))){let J=Error(`Path contains invalid characters: ${$}`);throw J.code="EINVAL",J}}}});var cA=S((Dt,fF)=>{var hA=l0(),{checkPath:mA}=yA(),lA=(D)=>{let $={mode:511};if(typeof D==="number")return D;return{...$,...D}.mode};Dt.makeDir=async(D,$)=>{return mA(D),hA.mkdir(D,{mode:lA($),recursive:!0})};Dt.makeDirSync=(D,$)=>{return mA(D),hA.mkdirSync(D,{mode:lA($),recursive:!0})}});var y6=S(($ID,dA)=>{var Jt=w0().fromPromise,{makeDir:Yt,makeDirSync:yF}=cA(),hF=Jt(Yt);dA.exports={mkdirs:hF,mkdirsSync:yF,mkdirp:hF,mkdirpSync:yF,ensureDir:hF,ensureDirSync:yF}});var r$=S((UID,pA)=>{var Xt=w0().fromPromise,iA=l0();function Qt(D){return iA.access(D).then(()=>!0).catch(()=>!1)}pA.exports={pathExists:Xt(Qt),pathExistsSync:iA.existsSync}});var mF=S((JID,nA)=>{var b8=l0(),Ft=w0().fromPromise;async function Wt(D,$,U){let J=await b8.open(D,"r+"),Y=null;try{await b8.futimes(J,$,U)}catch(X){Y=X}finally{try{await b8.close(J)}catch(X){if(!Y)Y=X}}if(Y)throw Y}function Kt(D,$,U){let J=b8.openSync(D,"r+"),Y=null;try{b8.futimesSync(J,$,U)}catch(X){Y=X}finally{try{b8.closeSync(J)}catch(X){if(!Y)Y=X}}if(Y)throw Y}nA.exports={utimesMillis:Ft(Wt),utimesMillisSync:Kt}});var t1=S((YID,tA)=>{var C8=l0(),O0=UD("path"),rA=w0().fromPromise;function Zt(D,$,U){let J=U.dereference?(Y)=>C8.stat(Y,{bigint:!0}):(Y)=>C8.lstat(Y,{bigint:!0});return Promise.all([J(D),J($).catch((Y)=>{if(Y.code==="ENOENT")return null;throw Y})]).then(([Y,X])=>({srcStat:Y,destStat:X}))}function zt(D,$,U){let J,Y=U.dereference?(Q)=>C8.statSync(Q,{bigint:!0}):(Q)=>C8.lstatSync(Q,{bigint:!0}),X=Y(D);try{J=Y($)}catch(Q){if(Q.code==="ENOENT")return{srcStat:X,destStat:null};throw Q}return{srcStat:X,destStat:J}}async function qt(D,$,U,J){let{srcStat:Y,destStat:X}=await Zt(D,$,J);if(X){if(l9(Y,X)){let Q=O0.basename(D),F=O0.basename($);if(U==="move"&&Q!==F&&Q.toLowerCase()===F.toLowerCase())return{srcStat:Y,destStat:X,isChangingCase:!0};throw Error("Source and destination must not be the same.")}if(Y.isDirectory()&&!X.isDirectory())throw Error(`Cannot overwrite non-directory '${$}' with directory '${D}'.`);if(!Y.isDirectory()&&X.isDirectory())throw Error(`Cannot overwrite directory '${$}' with non-directory '${D}'.`)}if(Y.isDirectory()&&lF(D,$))throw Error(DU(D,$,U));return{srcStat:Y,destStat:X}}function Gt(D,$,U,J){let{srcStat:Y,destStat:X}=zt(D,$,J);if(X){if(l9(Y,X)){let Q=O0.basename(D),F=O0.basename($);if(U==="move"&&Q!==F&&Q.toLowerCase()===F.toLowerCase())return{srcStat:Y,destStat:X,isChangingCase:!0};throw Error("Source and destination must not be the same.")}if(Y.isDirectory()&&!X.isDirectory())throw Error(`Cannot overwrite non-directory '${$}' with directory '${D}'.`);if(!Y.isDirectory()&&X.isDirectory())throw Error(`Cannot overwrite directory '${$}' with non-directory '${D}'.`)}if(Y.isDirectory()&&lF(D,$))throw Error(DU(D,$,U));return{srcStat:Y,destStat:X}}async function oA(D,$,U,J){let Y=O0.resolve(O0.dirname(D)),X=O0.resolve(O0.dirname(U));if(X===Y||X===O0.parse(X).root)return;let Q;try{Q=await C8.stat(X,{bigint:!0})}catch(F){if(F.code==="ENOENT")return;throw F}if(l9($,Q))throw Error(DU(D,U,J));return oA(D,$,X,J)}function aA(D,$,U,J){let Y=O0.resolve(O0.dirname(D)),X=O0.resolve(O0.dirname(U));if(X===Y||X===O0.parse(X).root)return;let Q;try{Q=C8.statSync(X,{bigint:!0})}catch(F){if(F.code==="ENOENT")return;throw F}if(l9($,Q))throw Error(DU(D,U,J));return aA(D,$,X,J)}function l9(D,$){return $.ino!==void 0&&$.dev!==void 0&&$.ino===D.ino&&$.dev===D.dev}function lF(D,$){let U=O0.resolve(D).split(O0.sep).filter((Y)=>Y),J=O0.resolve($).split(O0.sep).filter((Y)=>Y);return U.every((Y,X)=>J[X]===Y)}function DU(D,$,U){return`Cannot ${U} '${D}' to a subdirectory of itself, '${$}'.`}tA.exports={checkPaths:rA(qt),checkPathsSync:Gt,checkParentPaths:rA(oA),checkParentPathsSync:aA,isSrcSubdir:lF,areIdentical:l9}});var eA=S((XID,sA)=>{async function Vt(D,$){let U=[];for await(let J of D)U.push($(J).then(()=>null,(Y)=>Y??Error("unknown error")));await Promise.all(U.map((J)=>J.then((Y)=>{if(Y!==null)throw Y})))}sA.exports={asyncIteratorConcurrentProcess:Vt}});var Yv=S((QID,Jv)=>{var k0=l0(),c9=UD("path"),{mkdirs:Ht}=y6(),{pathExists:It}=r$(),{utimesMillis:Bt}=mF(),d9=t1(),{asyncIteratorConcurrentProcess:wt}=eA();async function Ot(D,$,U={}){if(typeof U==="function")U={filter:U};if(U.clobber="clobber"in U?!!U.clobber:!0,U.overwrite="overwrite"in U?!!U.overwrite:U.clobber,U.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:J,destStat:Y}=await d9.checkPaths(D,$,"copy",U);if(await d9.checkParentPaths(D,J,$,"copy"),!await $v(D,$,U))return;let Q=c9.dirname($);if(!await It(Q))await Ht(Q);await Uv(Y,D,$,U)}async function $v(D,$,U){if(!U.filter)return!0;return U.filter(D,$)}async function Uv(D,$,U,J){let X=await(J.dereference?k0.stat:k0.lstat)($);if(X.isDirectory())return Rt(X,D,$,U,J);if(X.isFile()||X.isCharacterDevice()||X.isBlockDevice())return jt(X,D,$,U,J);if(X.isSymbolicLink())return Mt(D,$,U,J);if(X.isSocket())throw Error(`Cannot copy a socket file: ${$}`);if(X.isFIFO())throw Error(`Cannot copy a FIFO pipe: ${$}`);throw Error(`Unknown file: ${$}`)}async function jt(D,$,U,J,Y){if(!$)return Dv(D,U,J,Y);if(Y.overwrite)return await k0.unlink(J),Dv(D,U,J,Y);if(Y.errorOnExist)throw Error(`'${J}' already exists`)}async function Dv(D,$,U,J){if(await k0.copyFile($,U),J.preserveTimestamps){if(Nt(D.mode))await Lt(U,D.mode);let Y=await k0.stat($);await Bt(U,Y.atime,Y.mtime)}return k0.chmod(U,D.mode)}function Nt(D){return(D&128)===0}function Lt(D,$){return k0.chmod(D,$|128)}async function Rt(D,$,U,J,Y){if(!$)await k0.mkdir(J);if(await wt(await k0.opendir(U),async(X)=>{let Q=c9.join(U,X.name),F=c9.join(J,X.name);if(await $v(Q,F,Y)){let{destStat:K}=await d9.checkPaths(Q,F,"copy",Y);await Uv(K,Q,F,Y)}}),!$)await k0.chmod(J,D.mode)}async function Mt(D,$,U,J){let Y=await k0.readlink($);if(J.dereference)Y=c9.resolve(process.cwd(),Y);if(!D)return k0.symlink(Y,U);let X=null;try{X=await k0.readlink(U)}catch(Q){if(Q.code==="EINVAL"||Q.code==="UNKNOWN")return k0.symlink(Y,U);throw Q}if(J.dereference)X=c9.resolve(process.cwd(),X);if(Y!==X){if(d9.isSrcSubdir(Y,X))throw Error(`Cannot copy '${Y}' to a subdirectory of itself, '${X}'.`);if(d9.isSrcSubdir(X,Y))throw Error(`Cannot overwrite '${X}' with '${Y}'.`)}return await k0.unlink(U),k0.symlink(Y,U)}Jv.exports=Ot});var Kv=S((FID,Wv)=>{var c0=c$(),i9=UD("path"),At=y6().mkdirsSync,vt=mF().utimesMillisSync,p9=t1();function Et(D,$,U){if(typeof U==="function")U={filter:U};if(U=U||{},U.clobber="clobber"in U?!!U.clobber:!0,U.overwrite="overwrite"in U?!!U.overwrite:U.clobber,U.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:J,destStat:Y}=p9.checkPathsSync(D,$,"copy",U);if(p9.checkParentPathsSync(D,J,$,"copy"),U.filter&&!U.filter(D,$))return;let X=i9.dirname($);if(!c0.existsSync(X))At(X);return Xv(Y,D,$,U)}function Xv(D,$,U,J){let X=(J.dereference?c0.statSync:c0.lstatSync)($);if(X.isDirectory())return ut(X,D,$,U,J);else if(X.isFile()||X.isCharacterDevice()||X.isBlockDevice())return Tt(X,D,$,U,J);else if(X.isSymbolicLink())return gt(D,$,U,J);else if(X.isSocket())throw Error(`Cannot copy a socket file: ${$}`);else if(X.isFIFO())throw Error(`Cannot copy a FIFO pipe: ${$}`);throw Error(`Unknown file: ${$}`)}function Tt(D,$,U,J,Y){if(!$)return Qv(D,U,J,Y);return Pt(D,U,J,Y)}function Pt(D,$,U,J){if(J.overwrite)return c0.unlinkSync(U),Qv(D,$,U,J);else if(J.errorOnExist)throw Error(`'${U}' already exists`)}function Qv(D,$,U,J){if(c0.copyFileSync($,U),J.preserveTimestamps)St(D.mode,$,U);return cF(U,D.mode)}function St(D,$,U){if(bt(D))Ct(U,D);return kt($,U)}function bt(D){return(D&128)===0}function Ct(D,$){return cF(D,$|128)}function cF(D,$){return c0.chmodSync(D,$)}function kt(D,$){let U=c0.statSync(D);return vt($,U.atime,U.mtime)}function ut(D,$,U,J,Y){if(!$)return _t(D.mode,U,J,Y);return Fv(U,J,Y)}function _t(D,$,U,J){return c0.mkdirSync(U),Fv($,U,J),cF(U,D)}function Fv(D,$,U){let J=c0.opendirSync(D);try{let Y;while((Y=J.readSync())!==null)xt(Y.name,D,$,U)}finally{J.closeSync()}}function xt(D,$,U,J){let Y=i9.join($,D),X=i9.join(U,D);if(J.filter&&!J.filter(Y,X))return;let{destStat:Q}=p9.checkPathsSync(Y,X,"copy",J);return Xv(Q,Y,X,J)}function gt(D,$,U,J){let Y=c0.readlinkSync($);if(J.dereference)Y=i9.resolve(process.cwd(),Y);if(!D)return c0.symlinkSync(Y,U);else{let X;try{X=c0.readlinkSync(U)}catch(Q){if(Q.code==="EINVAL"||Q.code==="UNKNOWN")return c0.symlinkSync(Y,U);throw Q}if(J.dereference)X=i9.resolve(process.cwd(),X);if(Y!==X){if(p9.isSrcSubdir(Y,X))throw Error(`Cannot copy '${Y}' to a subdirectory of itself, '${X}'.`);if(p9.isSrcSubdir(X,Y))throw Error(`Cannot overwrite '${X}' with '${Y}'.`)}return ft(Y,U)}}function ft(D,$){return c0.unlinkSync($),c0.symlinkSync(D,$)}Wv.exports=Et});var $U=S((WID,Zv)=>{var yt=w0().fromPromise;Zv.exports={copy:yt(Yv()),copySync:Kv()}});var n9=S((KID,qv)=>{var zv=c$(),ht=w0().fromCallback;function mt(D,$){zv.rm(D,{recursive:!0,force:!0},$)}function lt(D){zv.rmSync(D,{recursive:!0,force:!0})}qv.exports={remove:ht(mt),removeSync:lt}});var jv=S((ZID,Ov)=>{var ct=w0().fromPromise,Hv=l0(),Iv=UD("path"),Bv=y6(),wv=n9(),Gv=ct(async function($){let U;try{U=await Hv.readdir($)}catch{return Bv.mkdirs($)}return Promise.all(U.map((J)=>wv.remove(Iv.join($,J))))});function Vv(D){let $;try{$=Hv.readdirSync(D)}catch{return Bv.mkdirsSync(D)}$.forEach((U)=>{U=Iv.join(D,U),wv.removeSync(U)})}Ov.exports={emptyDirSync:Vv,emptydirSync:Vv,emptyDir:Gv,emptydir:Gv}});var Mv=S((zID,Rv)=>{var dt=w0().fromPromise,Nv=UD("path"),B$=l0(),Lv=y6();async function it(D){let $;try{$=await B$.stat(D)}catch{}if($&&$.isFile())return;let U=Nv.dirname(D),J=null;try{J=await B$.stat(U)}catch(Y){if(Y.code==="ENOENT"){await Lv.mkdirs(U),await B$.writeFile(D,"");return}else throw Y}if(J.isDirectory())await B$.writeFile(D,"");else await B$.readdir(U)}function pt(D){let $;try{$=B$.statSync(D)}catch{}if($&&$.isFile())return;let U=Nv.dirname(D);try{if(!B$.statSync(U).isDirectory())B$.readdirSync(U)}catch(J){if(J&&J.code==="ENOENT")Lv.mkdirsSync(U);else throw J}B$.writeFileSync(D,"")}Rv.exports={createFile:dt(it),createFileSync:pt}});var Pv=S((qID,Tv)=>{var nt=w0().fromPromise,Av=UD("path"),o$=l0(),vv=y6(),{pathExists:rt}=r$(),{areIdentical:Ev}=t1();async function ot(D,$){let U;try{U=await o$.lstat($,{bigint:!0})}catch{}let J;try{J=await o$.lstat(D,{bigint:!0})}catch(Q){throw Q.message=Q.message.replace("lstat","ensureLink"),Q}if(U&&Ev(J,U))return;let Y=Av.dirname($);if(!await rt(Y))await vv.mkdirs(Y);await o$.link(D,$)}function at(D,$){let U;try{U=o$.lstatSync($,{bigint:!0})}catch{}try{let X=o$.lstatSync(D,{bigint:!0});if(U&&Ev(X,U))return}catch(X){throw X.message=X.message.replace("lstat","ensureLink"),X}let J=Av.dirname($);if(o$.existsSync(J))return o$.linkSync(D,$);return vv.mkdirsSync(J),o$.linkSync(D,$)}Tv.exports={createLink:nt(ot),createLinkSync:at}});var bv=S((GID,Sv)=>{var a$=UD("path"),r9=l0(),{pathExists:tt}=r$(),st=w0().fromPromise;async function et(D,$){if(a$.isAbsolute(D)){try{await r9.lstat(D)}catch(X){throw X.message=X.message.replace("lstat","ensureSymlink"),X}return{toCwd:D,toDst:D}}let U=a$.dirname($),J=a$.join(U,D);if(await tt(J))return{toCwd:J,toDst:D};try{await r9.lstat(D)}catch(X){throw X.message=X.message.replace("lstat","ensureSymlink"),X}return{toCwd:D,toDst:a$.relative(U,D)}}function Ds(D,$){if(a$.isAbsolute(D)){if(!r9.existsSync(D))throw Error("absolute srcpath does not exist");return{toCwd:D,toDst:D}}let U=a$.dirname($),J=a$.join(U,D);if(r9.existsSync(J))return{toCwd:J,toDst:D};if(!r9.existsSync(D))throw Error("relative srcpath does not exist");return{toCwd:D,toDst:a$.relative(U,D)}}Sv.exports={symlinkPaths:st(et),symlinkPathsSync:Ds}});var uv=S((VID,kv)=>{var Cv=l0(),$s=w0().fromPromise;async function Us(D,$){if($)return $;let U;try{U=await Cv.lstat(D)}catch{return"file"}return U&&U.isDirectory()?"dir":"file"}function Js(D,$){if($)return $;let U;try{U=Cv.lstatSync(D)}catch{return"file"}return U&&U.isDirectory()?"dir":"file"}kv.exports={symlinkType:$s(Us),symlinkTypeSync:Js}});var gv=S((HID,xv)=>{var Ys=w0().fromPromise,t$=UD("path"),J6=l0(),{mkdirs:Xs,mkdirsSync:Qs}=y6(),{symlinkPaths:Fs,symlinkPathsSync:Ws}=bv(),{symlinkType:Ks,symlinkTypeSync:Zs}=uv(),{pathExists:zs}=r$(),{areIdentical:_v}=t1();async function qs(D,$,U){let J;try{J=await J6.lstat($)}catch{}if(J&&J.isSymbolicLink()){let F;if(t$.isAbsolute(D))F=await J6.stat(D,{bigint:!0});else{let K=t$.dirname($),Z=t$.join(K,D);try{F=await J6.stat(Z,{bigint:!0})}catch{F=await J6.stat(D,{bigint:!0})}}let W=await J6.stat($,{bigint:!0});if(_v(F,W))return}let Y=await Fs(D,$);D=Y.toDst;let X=await Ks(Y.toCwd,U),Q=t$.dirname($);if(!await zs(Q))await Xs(Q);return J6.symlink(D,$,X)}function Gs(D,$,U){let J;try{J=J6.lstatSync($)}catch{}if(J&&J.isSymbolicLink()){let F;if(t$.isAbsolute(D))F=J6.statSync(D,{bigint:!0});else{let K=t$.dirname($),Z=t$.join(K,D);try{F=J6.statSync(Z,{bigint:!0})}catch{F=J6.statSync(D,{bigint:!0})}}let W=J6.statSync($,{bigint:!0});if(_v(F,W))return}let Y=Ws(D,$);D=Y.toDst,U=Zs(Y.toCwd,U);let X=t$.dirname($);if(J6.existsSync(X))return J6.symlinkSync(D,$,U);return Qs(X),J6.symlinkSync(D,$,U)}xv.exports={createSymlink:Ys(qs),createSymlinkSync:Gs}});var iv=S((IID,dv)=>{var{createFile:fv,createFileSync:yv}=Mv(),{createLink:hv,createLinkSync:mv}=Pv(),{createSymlink:lv,createSymlinkSync:cv}=gv();dv.exports={createFile:fv,createFileSync:yv,ensureFile:fv,ensureFileSync:yv,createLink:hv,createLinkSync:mv,ensureLink:hv,ensureLinkSync:mv,createSymlink:lv,createSymlinkSync:cv,ensureSymlink:lv,ensureSymlinkSync:cv}});var UU=S((BID,pv)=>{function Vs(D,{EOL:$=`
`,finalEOL:U=!0,replacer:J=null,spaces:Y}={}){let X=U?$:"",Q=JSON.stringify(D,J,Y);if(Q===void 0)throw TypeError(`Converting ${typeof D} value to JSON is not supported`);return Q.replace(/\n/g,$)+X}function Hs(D){if(Buffer.isBuffer(D))D=D.toString("utf8");return D.replace(/^\uFEFF/,"")}pv.exports={stringify:Vs,stripBom:Hs}});var av=S((wID,ov)=>{var k8;try{k8=c$()}catch(D){k8=UD("fs")}var JU=w0(),{stringify:nv,stripBom:rv}=UU();async function Is(D,$={}){if(typeof $==="string")$={encoding:$};let U=$.fs||k8,J="throws"in $?$.throws:!0,Y=await JU.fromCallback(U.readFile)(D,$);Y=rv(Y);let X;try{X=JSON.parse(Y,$?$.reviver:null)}catch(Q){if(J)throw Q.message=`${D}: ${Q.message}`,Q;else return null}return X}var Bs=JU.fromPromise(Is);function ws(D,$={}){if(typeof $==="string")$={encoding:$};let U=$.fs||k8,J="throws"in $?$.throws:!0;try{let Y=U.readFileSync(D,$);return Y=rv(Y),JSON.parse(Y,$.reviver)}catch(Y){if(J)throw Y.message=`${D}: ${Y.message}`,Y;else return null}}async function Os(D,$,U={}){let J=U.fs||k8,Y=nv($,U);await JU.fromCallback(J.writeFile)(D,Y,U)}var js=JU.fromPromise(Os);function Ns(D,$,U={}){let J=U.fs||k8,Y=nv($,U);return J.writeFileSync(D,Y,U)}ov.exports={readFile:Bs,readFileSync:ws,writeFile:js,writeFileSync:Ns}});var sv=S((OID,tv)=>{var YU=av();tv.exports={readJson:YU.readFile,readJsonSync:YU.readFileSync,writeJson:YU.writeFile,writeJsonSync:YU.writeFileSync}});var XU=S((jID,$E)=>{var Ls=w0().fromPromise,dF=l0(),ev=UD("path"),DE=y6(),Rs=r$().pathExists;async function Ms(D,$,U="utf-8"){let J=ev.dirname(D);if(!await Rs(J))await DE.mkdirs(J);return dF.writeFile(D,$,U)}function As(D,...$){let U=ev.dirname(D);if(!dF.existsSync(U))DE.mkdirsSync(U);dF.writeFileSync(D,...$)}$E.exports={outputFile:Ls(Ms),outputFileSync:As}});var JE=S((NID,UE)=>{var{stringify:vs}=UU(),{outputFile:Es}=XU();async function Ts(D,$,U={}){let J=vs($,U);await Es(D,J,U)}UE.exports=Ts});var XE=S((LID,YE)=>{var{stringify:Ps}=UU(),{outputFileSync:Ss}=XU();function bs(D,$,U){let J=Ps($,U);Ss(D,J,U)}YE.exports=bs});var FE=S((RID,QE)=>{var Cs=w0().fromPromise,d0=sv();d0.outputJson=Cs(JE());d0.outputJsonSync=XE();d0.outputJSON=d0.outputJson;d0.outputJSONSync=d0.outputJsonSync;d0.writeJSON=d0.writeJson;d0.writeJSONSync=d0.writeJsonSync;d0.readJSON=d0.readJson;d0.readJSONSync=d0.readJsonSync;QE.exports=d0});var qE=S((MID,zE)=>{var ks=l0(),WE=UD("path"),{copy:us}=$U(),{remove:ZE}=n9(),{mkdirp:_s}=y6(),{pathExists:xs}=r$(),KE=t1();async function gs(D,$,U={}){let J=U.overwrite||U.clobber||!1,{srcStat:Y,isChangingCase:X=!1}=await KE.checkPaths(D,$,"move",U);await KE.checkParentPaths(D,Y,$,"move");let Q=WE.dirname($);if(WE.parse(Q).root!==Q)await _s(Q);return fs(D,$,J,X)}async function fs(D,$,U,J){if(!J){if(U)await ZE($);else if(await xs($))throw Error("dest already exists.")}try{await ks.rename(D,$)}catch(Y){if(Y.code!=="EXDEV")throw Y;await ys(D,$,U)}}async function ys(D,$,U){return await us(D,$,{overwrite:U,errorOnExist:!0,preserveTimestamps:!0}),ZE(D)}zE.exports=gs});var BE=S((AID,IE)=>{var VE=c$(),pF=UD("path"),hs=$U().copySync,HE=n9().removeSync,ms=y6().mkdirpSync,GE=t1();function ls(D,$,U){U=U||{};let J=U.overwrite||U.clobber||!1,{srcStat:Y,isChangingCase:X=!1}=GE.checkPathsSync(D,$,"move",U);if(GE.checkParentPathsSync(D,Y,$,"move"),!cs($))ms(pF.dirname($));return ds(D,$,J,X)}function cs(D){let $=pF.dirname(D);return pF.parse($).root===$}function ds(D,$,U,J){if(J)return iF(D,$,U);if(U)return HE($),iF(D,$,U);if(VE.existsSync($))throw Error("dest already exists.");return iF(D,$,U)}function iF(D,$,U){try{VE.renameSync(D,$)}catch(J){if(J.code!=="EXDEV")throw J;return is(D,$,U)}}function is(D,$,U){return hs(D,$,{overwrite:U,errorOnExist:!0,preserveTimestamps:!0}),HE(D)}IE.exports=ls});var OE=S((vID,wE)=>{var ps=w0().fromPromise;wE.exports={move:ps(qE()),moveSync:BE()}});var u8=S((EID,jE)=>{jE.exports={...l0(),...$U(),...jv(),...iv(),...FE(),...y6(),...OE(),...XU(),...r$(),...n9()}});var EE=S((TID,vE)=>{var nF,LE,RE,ME,AE=!0;if(typeof process<"u")({FORCE_COLOR:nF,NODE_DISABLE_COLORS:LE,NO_COLOR:RE,TERM:ME}=process.env||{}),AE=process.stdout&&process.stdout.isTTY;var fD={enabled:!LE&&RE==null&&ME!=="dumb"&&(nF!=null&&nF!=="0"||AE),reset:pD(0,0),bold:pD(1,22),dim:pD(2,22),italic:pD(3,23),underline:pD(4,24),inverse:pD(7,27),hidden:pD(8,28),strikethrough:pD(9,29),black:pD(30,39),red:pD(31,39),green:pD(32,39),yellow:pD(33,39),blue:pD(34,39),magenta:pD(35,39),cyan:pD(36,39),white:pD(37,39),gray:pD(90,39),grey:pD(90,39),bgBlack:pD(40,49),bgRed:pD(41,49),bgGreen:pD(42,49),bgYellow:pD(43,49),bgBlue:pD(44,49),bgMagenta:pD(45,49),bgCyan:pD(46,49),bgWhite:pD(47,49)};function NE(D,$){let U=0,J,Y="",X="";for(;U<D.length;U++)if(J=D[U],Y+=J.open,X+=J.close,~$.indexOf(J.close))$=$.replace(J.rgx,J.close+J.open);return Y+$+X}function ns(D,$){let U={has:D,keys:$};return U.reset=fD.reset.bind(U),U.bold=fD.bold.bind(U),U.dim=fD.dim.bind(U),U.italic=fD.italic.bind(U),U.underline=fD.underline.bind(U),U.inverse=fD.inverse.bind(U),U.hidden=fD.hidden.bind(U),U.strikethrough=fD.strikethrough.bind(U),U.black=fD.black.bind(U),U.red=fD.red.bind(U),U.green=fD.green.bind(U),U.yellow=fD.yellow.bind(U),U.blue=fD.blue.bind(U),U.magenta=fD.magenta.bind(U),U.cyan=fD.cyan.bind(U),U.white=fD.white.bind(U),U.gray=fD.gray.bind(U),U.grey=fD.grey.bind(U),U.bgBlack=fD.bgBlack.bind(U),U.bgRed=fD.bgRed.bind(U),U.bgGreen=fD.bgGreen.bind(U),U.bgYellow=fD.bgYellow.bind(U),U.bgBlue=fD.bgBlue.bind(U),U.bgMagenta=fD.bgMagenta.bind(U),U.bgCyan=fD.bgCyan.bind(U),U.bgWhite=fD.bgWhite.bind(U),U}function pD(D,$){let U={open:`\x1B[${D}m`,close:`\x1B[${$}m`,rgx:new RegExp(`\\x1b\\[${$}m`,"g")};return function(J){if(this!==void 0&&this.has!==void 0)return!!~this.has.indexOf(D)||(this.has.push(D),this.keys.push(U)),J===void 0?this:fD.enabled?NE(this.keys,J+""):J+"";return J===void 0?ns([D],[U]):fD.enabled?NE([U],J+""):J+""}}vE.exports=fD});var _8=S((TE)=>{Object.defineProperty(TE,"__esModule",{value:!0});TE.ancillary=TE.failure=TE.success=TE.input=TE.weak=TE.strong=void 0;var rs=U6(),$$=rs.__importDefault(EE());TE.strong=$$.default.bold;TE.weak=$$.default.dim;TE.input=$$.default.cyan;TE.success=$$.default.green;TE.failure=$$.default.red;TE.ancillary=$$.default.cyan;var os={strong:TE.strong,weak:TE.weak,input:TE.input,success:TE.success,failure:TE.failure,ancillary:TE.ancillary,log:{DEBUG:$$.default.magenta,INFO:$$.default.cyan,WARN:$$.default.yellow,ERROR:$$.default.red}};TE.default=os});var oF=S((uE)=>{Object.defineProperty(uE,"__esModule",{value:!0});uE.EscapeCode=void 0;var h6="\x1B[";class R0{}uE.EscapeCode=R0;R0.cursorLeft=()=>`${h6}G`;R0.cursorUp=(D=1)=>`${h6}${D}A`;R0.cursorDown=(D=1)=>`${h6}${D}B`;R0.cursorForward=(D=1)=>`${h6}${D}C`;R0.cursorBackward=(D=1)=>`${h6}${D}D`;R0.cursorHide=()=>`${h6}?25l`;R0.cursorShow=()=>`${h6}?25h`;R0.eraseLine=()=>`${h6}2K`;R0.eraseLines=(D)=>{let $="";for(let U=0;U<D;U++)if($+=R0.eraseLine(),U<D-1)$+=R0.cursorUp();return`${$}${R0.cursorLeft()}`};R0.eraseUp=()=>`${h6}1J`;R0.eraseDown=()=>`${h6}J`;R0.eraseScreen=()=>`${h6}2J`});var yE=S((gE)=>{Object.defineProperty(gE,"__esModule",{value:!0});gE.Cursor=void 0;var ts=U6(),ss=ts.__importDefault(wF()),xE=oF();class M0{static show(){if(M0.stream.isTTY)M0._isVisible=!0,M0.stream.write(xE.EscapeCode.cursorShow())}static hide(){if(M0.stream.isTTY){if(!M0._listenerAttached)(0,ss.default)(()=>{M0.show()}),M0._listenerAttached=!0;M0._isVisible=!1,M0.stream.write(xE.EscapeCode.cursorHide())}}static toggle(){if(M0._isVisible)M0.hide();else M0.show()}}gE.Cursor=M0;M0.stream=process.stderr;M0._isVisible=!0;M0._listenerAttached=!1});var tF=S((CID,aF)=>{var hE=(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};aF.exports=hE;aF.exports.default=hE});var lE=S((kID,mE)=>{var es=(D)=>D&&D.exact?new RegExp(`^${"[\uD800-\uDBFF][\uDC00-\uDFFF]"}$`):new RegExp("[\uD800-\uDBFF][\uDC00-\uDFFF]","g");mE.exports=es});var dE=S((uID,cE)=>{cE.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 sF=S((_ID,pE)=>{var o9=dE(),iE={};for(let D of Object.keys(o9))iE[o9[D]]=D;var XD={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"]}};pE.exports=XD;for(let D of Object.keys(XD)){if(!("channels"in XD[D]))throw Error("missing channels property: "+D);if(!("labels"in XD[D]))throw Error("missing channel labels property: "+D);if(XD[D].labels.length!==XD[D].channels)throw Error("channel and label counts mismatch: "+D);let{channels:$,labels:U}=XD[D];delete XD[D].channels,delete XD[D].labels,Object.defineProperty(XD[D],"channels",{value:$}),Object.defineProperty(XD[D],"labels",{value:U})}XD.rgb.hsl=function(D){let $=D[0]/255,U=D[1]/255,J=D[2]/255,Y=Math.min($,U,J),X=Math.max($,U,J),Q=X-Y,F,W;if(X===Y)F=0;else if($===X)F=(U-J)/Q;else if(U===X)F=2+(J-$)/Q;else if(J===X)F=4+($-U)/Q;if(F=Math.min(F*60,360),F<0)F+=360;let K=(Y+X)/2;if(X===Y)W=0;else if(K<=0.5)W=Q/(X+Y);else W=Q/(2-X-Y);return[F,W*100,K*100]};XD.rgb.hsv=function(D){let $,U,J,Y,X,Q=D[0]/255,F=D[1]/255,W=D[2]/255,K=Math.max(Q,F,W),Z=K-Math.min(Q,F,W),z=function(q){return(K-q)/6/Z+0.5};if(Z===0)Y=0,X=0;else{if(X=Z/K,$=z(Q),U=z(F),J=z(W),Q===K)Y=J-U;else if(F===K)Y=0.3333333333333333+$-J;else if(W===K)Y=0.6666666666666666+U-$;if(Y<0)Y+=1;else if(Y>1)Y-=1}return[Y*360,X*100,K*100]};XD.rgb.hwb=function(D){let $=D[0],U=D[1],J=D[2],Y=XD.rgb.hsl(D)[0],X=0.00392156862745098*Math.min($,Math.min(U,J));return J=1-0.00392156862745098*Math.max($,Math.max(U,J)),[Y,X*100,J*100]};XD.rgb.cmyk=function(D){let $=D[0]/255,U=D[1]/255,J=D[2]/255,Y=Math.min(1-$,1-U,1-J),X=(1-$-Y)/(1-Y)||0,Q=(1-U-Y)/(1-Y)||0,F=(1-J-Y)/(1-Y)||0;return[X*100,Q*100,F*100,Y*100]};function De(D,$){return(D[0]-$[0])**2+(D[1]-$[1])**2+(D[2]-$[2])**2}XD.rgb.keyword=function(D){let $=iE[D];if($)return $;let U=1/0,J;for(let Y of Object.keys(o9)){let X=o9[Y],Q=De(D,X);if(Q<U)U=Q,J=Y}return J};XD.keyword.rgb=function(D){return o9[D]};XD.rgb.xyz=function(D){let $=D[0]/255,U=D[1]/255,J=D[2]/255;$=$>0.04045?(($+0.055)/1.055)**2.4:$/12.92,U=U>0.04045?((U+0.055)/1.055)**2.4:U/12.92,J=J>0.04045?((J+0.055)/1.055)**2.4:J/12.92;let Y=$*0.4124+U*0.3576+J*0.1805,X=$*0.2126+U*0.7152+J*0.0722,Q=$*0.0193+U*0.1192+J*0.9505;return[Y*100,X*100,Q*100]};XD.rgb.lab=function(D){let $=XD.rgb.xyz(D),U=$[0],J=$[1],Y=$[2];U/=95.047,J/=100,Y/=108.883,U=U>0.008856?U**0.3333333333333333:7.787*U+0.13793103448275862,J=J>0.008856?J**0.3333333333333333:7.787*J+0.13793103448275862,Y=Y>0.008856?Y**0.3333333333333333:7.787*Y+0.13793103448275862;let X=116*J-16,Q=500*(U-J),F=200*(J-Y);return[X,Q,F]};XD.hsl.rgb=function(D){let $=D[0]/360,U=D[1]/100,J=D[2]/100,Y,X,Q;if(U===0)return Q=J*255,[Q,Q,Q];if(J<0.5)Y=J*(1+U);else Y=J+U-J*U;let F=2*J-Y,W=[0,0,0];for(let K=0;K<3;K++){if(X=$+0.3333333333333333*-(K-1),X<0)X++;if(X>1)X--;if(6*X<1)Q=F+(Y-F)*6*X;else if(2*X<1)Q=Y;else if(3*X<2)Q=F+(Y-F)*(0.6666666666666666-X)*6;else Q=F;W[K]=Q*255}return W};XD.hsl.hsv=function(D){let $=D[0],U=D[1]/100,J=D[2]/100,Y=U,X=Math.max(J,0.01);J*=2,U*=J<=1?J:2-J,Y*=X<=1?X:2-X;let Q=(J+U)/2,F=J===0?2*Y/(X+Y):2*U/(J+U);return[$,F*100,Q*100]};XD.hsv.rgb=function(D){let $=D[0]/60,U=D[1]/100,J=D[2]/100,Y=Math.floor($)%6,X=$-Math.floor($),Q=255*J*(1-U),F=255*J*(1-U*X),W=255*J*(1-U*(1-X));switch(J*=255,Y){case 0:return[J,W,Q];case 1:return[F,J,Q];case 2:return[Q,J,W];case 3:return[Q,F,J];case 4:return[W,Q,J];case 5:return[J,Q,F]}};XD.hsv.hsl=function(D){let $=D[0],U=D[1]/100,J=D[2]/100,Y=Math.max(J,0.01),X,Q;Q=(2-U)*J;let F=(2-U)*Y;return X=U*Y,X/=F<=1?F:2-F,X=X||0,Q/=2,[$,X*100,Q*100]};XD.hwb.rgb=function(D){let $=D[0]/360,U=D[1]/100,J=D[2]/100,Y=U+J,X;if(Y>1)U/=Y,J/=Y;let Q=Math.floor(6*$),F=1-J;if(X=6*$-Q,(Q&1)!==0)X=1-X;let W=U+X*(F-U),K,Z,z;switch(Q){default:case 6:case 0:K=F,Z=W,z=U;break;case 1:K=W,Z=F,z=U;break;case 2:K=U,Z=F,z=W;break;case 3:K=U,Z=W,z=F;break;case 4:K=W,Z=U,z=F;break;case 5:K=F,Z=U,z=W;break}return[K*255,Z*255,z*255]};XD.cmyk.rgb=function(D){let $=D[0]/100,U=D[1]/100,J=D[2]/100,Y=D[3]/100,X=1-Math.min(1,$*(1-Y)+Y),Q=1-Math.min(1,U*(1-Y)+Y),F=1-Math.min(1,J*(1-Y)+Y);return[X*255,Q*255,F*255]};XD.xyz.rgb=function(D){let $=D[0]/100,U=D[1]/100,J=D[2]/100,Y,X,Q;return Y=$*3.2406+U*-1.5372+J*-0.4986,X=$*-0.9689+U*1.8758+J*0.0415,Q=$*0.0557+U*-0.204+J*1.057,Y=Y>0.0031308?1.055*Y**0.4166666666666667-0.055:Y*12.92,X=X>0.0031308?1.055*X**0.4166666666666667-0.055:X*12.92,Q=Q>0.0031308?1.055*Q**0.4166666666666667-0.055:Q*12.92,Y=Math.min(Math.max(0,Y),1),X=Math.min(Math.max(0,X),1),Q=Math.min(Math.max(0,Q),1),[Y*255,X*255,Q*255]};XD.xyz.lab=function(D){let $=D[0],U=D[1],J=D[2];$/=95.047,U/=100,J/=108.883,$=$>0.008856?$**0.3333333333333333:7.787*$+0.13793103448275862,U=U>0.008856?U**0.3333333333333333:7.787*U+0.13793103448275862,J=J>0.008856?J**0.3333333333333333:7.787*J+0.13793103448275862;let Y=116*U-16,X=500*($-U),Q=200*(U-J);return[Y,X,Q]};XD.lab.xyz=function(D){let $=D[0],U=D[1],J=D[2],Y,X,Q;X=($+16)/116,Y=U/500+X,Q=X-J/200;let F=X**3,W=Y**3,K=Q**3;return X=F>0.008856?F:(X-0.13793103448275862)/7.787,Y=W>0.008856?W:(Y-0.13793103448275862)/7.787,Q=K>0.008856?K:(Q-0.13793103448275862)/7.787,Y*=95.047,X*=100,Q*=108.883,[Y,X,Q]};XD.lab.lch=function(D){let $=D[0],U=D[1],J=D[2],Y;if(Y=Math.atan2(J,U)*360/2/Math.PI,Y<0)Y+=360;let Q=Math.sqrt(U*U+J*J);return[$,Q,Y]};XD.lch.lab=function(D){let $=D[0],U=D[1],Y=D[2]/360*2*Math.PI,X=U*Math.cos(Y),Q=U*Math.sin(Y);return[$,X,Q]};XD.rgb.ansi16=function(D,$=null){let[U,J,Y]=D,X=$===null?XD.rgb.hsv(D)[2]:$;if(X=Math.round(X/50),X===0)return 30;let Q=30+(Math.round(Y/255)<<2|Math.round(J/255)<<1|Math.round(U/255));if(X===2)Q+=60;return Q};XD.hsv.ansi16=function(D){return XD.rgb.ansi16(XD.hsv.rgb(D),D[2])};XD.rgb.ansi256=function(D){let $=D[0],U=D[1],J=D[2];if($===U&&U===J){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(U/255*5)+Math.round(J/255*5)};XD.ansi16.rgb=function(D){let $=D%10;if($===0||$===7){if(D>50)$+=3.5;return $=$/10.5*255,[$,$,$]}let U=(~~(D>50)+1)*0.5,J=($&1)*U*255,Y=($>>1&1)*U*255,X=($>>2&1)*U*255;return[J,Y,X]};XD.ansi256.rgb=function(D){if(D>=232){let X=(D-232)*10+8;return[X,X,X]}D-=16;let $,U=Math.floor(D/36)/5*255,J=Math.floor(($=D%36)/6)/5*255,Y=$%6/5*255;return[U,J,Y]};XD.rgb.hex=function(D){let U=(((Math.round(D[0])&255)<<16)+((Math.round(D[1])&255)<<8)+(Math.round(D[2])&255)).toString(16).toUpperCase();return"000000".substring(U.length)+U};XD.hex.rgb=function(D){let $=D.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!$)return[0,0,0];let U=$[0];if($[0].length===3)U=U.split("").map((F)=>{return F+F}).join("");let J=parseInt(U,16),Y=J>>16&255,X=J>>8&255,Q=J&255;return[Y,X,Q]};XD.rgb.hcg=function(D){let $=D[0]/255,U=D[1]/255,J=D[2]/255,Y=Math.max(Math.max($,U),J),X=Math.min(Math.min($,U),J),Q=Y-X,F,W;if(Q<1)F=X/(1-Q);else F=0;if(Q<=0)W=0;else if(Y===$)W=(U-J)/Q%6;else if(Y===U)W=2+(J-$)/Q;else W=4+($-U)/Q;return W/=6,W%=1,[W*360,Q*100,F*100]};XD.hsl.hcg=function(D){let $=D[1]/100,U=D[2]/100,J=U<0.5?2*$*U:2*$*(1-U),Y=0;if(J<1)Y=(U-0.5*J)/(1-J);return[D[0],J*100,Y*100]};XD.hsv.hcg=function(D){let $=D[1]/100,U=D[2]/100,J=$*U,Y=0;if(J<1)Y=(U-J)/(1-J);return[D[0],J*100,Y*100]};XD.hcg.rgb=function(D){let $=D[0]/360,U=D[1]/100,J=D[2]/100;if(U===0)return[J*255,J*255,J*255];let Y=[0,0,0],X=$%1*6,Q=X%1,F=1-Q,W=0;switch(Math.floor(X)){case 0:Y[0]=1,Y[1]=Q,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]=Q;break;case 3:Y[0]=0,Y[1]=F,Y[2]=1;break;case 4:Y[0]=Q,Y[1]=0,Y[2]=1;break;default:Y[0]=1,Y[1]=0,Y[2]=F}return W=(1-U)*J,[(U*Y[0]+W)*255,(U*Y[1]+W)*255,(U*Y[2]+W)*255]};XD.hcg.hsv=function(D){let $=D[1]/100,U=D[2]/100,J=$+U*(1-$),Y=0;if(J>0)Y=$/J;return[D[0],Y*100,J*100]};XD.hcg.hsl=function(D){let $=D[1]/100,J=D[2]/100*(1-$)+0.5*$,Y=0;if(J>0&&J<0.5)Y=$/(2*J);else if(J>=0.5&&J<1)Y=$/(2*(1-J));return[D[0],Y*100,J*100]};XD.hcg.hwb=function(D){let $=D[1]/100,U=D[2]/100,J=$+U*(1-$);return[D[0],(J-$)*100,(1-J)*100]};XD.hwb.hcg=function(D){let $=D[1]/100,J=1-D[2]/100,Y=J-$,X=0;if(Y<1)X=(J-Y)/(1-Y);return[D[0],Y*100,X*100]};XD.apple.rgb=function(D){return[D[0]/65535*255,D[1]/65535*255,D[2]/65535*255]};XD.rgb.apple=function(D){return[D[0]/255*65535,D[1]/255*65535,D[2]/255*65535]};XD.gray.rgb=function(D){return[D[0]/100*255,D[0]/100*255,D[0]/100*255]};XD.gray.hsl=function(D){return[0,0,D[0]]};XD.gray.hsv=XD.gray.hsl;XD.gray.hwb=function(D){return[0,100,D[0]]};XD.gray.cmyk=function(D){return[0,0,0,D[0]]};XD.gray.lab=function(D){return[D[0],0,0]};XD.gray.hex=function(D){let $=Math.round(D[0]/100*255)&255,J=(($<<16)+($<<8)+$).toString(16).toUpperCase();return"000000".substring(J.length)+J};XD.rgb.gray=function(D){return[(D[0]+D[1]+D[2])/3/255*100]}});var rE=S((xID,nE)=>{var QU=sF();function $e(){let D={},$=Object.keys(QU);for(let U=$.length,J=0;J<U;J++)D[$[J]]={distance:-1,parent:null};return D}function Ue(D){let $=$e(),U=[D];$[D].distance=0;while(U.length){let J=U.pop(),Y=Object.keys(QU[J]);for(let X=Y.length,Q=0;Q<X;Q++){let F=Y[Q],W=$[F];if(W.distance===-1)W.distance=$[J].distance+1,W.parent=J,U.unshift(F)}}return $}function Je(D,$){return function(U){return $(D(U))}}function Ye(D,$){let U=[$[D].parent,D],J=QU[$[D].parent][D],Y=$[D].parent;while($[Y].parent)U.unshift($[Y].parent),J=Je(QU[$[Y].parent][Y],J),Y=$[Y].parent;return J.conversion=U,J}nE.exports=function(D){let $=Ue(D),U={},J=Object.keys($);for(let Y=J.length,X=0;X<Y;X++){let Q=J[X];if($[Q].parent===null)continue;U[Q]=Ye(Q,$)}return U}});var aE=S((gID,oE)=>{var eF=sF(),Xe=rE(),x8={},Qe=Object.keys(eF);function Fe(D){let $=function(...U){let J=U[0];if(J===void 0||J===null)return J;if(J.length>1)U=J;return D(U)};if("conversion"in D)$.conversion=D.conversion;return $}function We(D){let $=function(...U){let J=U[0];if(J===void 0||J===null)return J;if(J.length>1)U=J;let Y=D(U);if(typeof Y==="object")for(let X=Y.length,Q=0;Q<X;Q++)Y[Q]=Math.round(Y[Q]);return Y};if("conversion"in D)$.conversion=D.conversion;return $}Qe.forEach((D)=>{x8[D]={},Object.defineProperty(x8[D],"channels",{value:eF[D].channels}),Object.defineProperty(x8[D],"labels",{value:eF[D].labels});let $=Xe(D);Object.keys($).forEach((J)=>{let Y=$[J];x8[D][J]=We(Y),x8[D][J].raw=Fe(Y)})});oE.exports=x8});var $W=S((fID,$T)=>{var tE=(D,$)=>(...U)=>{return`\x1B[${D(...U)+$}m`},sE=(D,$)=>(...U)=>{let J=D(...U);return`\x1B[${38+$};5;${J}m`},eE=(D,$)=>(...U)=>{let J=D(...U);return`\x1B[${38+$};2;${J[0]};${J[1]};${J[2]}m`},FU=(D)=>D,DT=(D,$,U)=>[D,$,U],g8=(D,$,U)=>{Object.defineProperty(D,$,{get:()=>{let J=U();return Object.defineProperty(D,$,{value:J,enumerable:!0,configurable:!0}),J},enumerable:!0,configurable:!0})},DW,f8=(D,$,U,J)=>{if(DW===void 0)DW=aE();let Y=J?10:0,X={};for(let[Q,F]of Object.entries(DW)){let W=Q==="ansi16"?"ansi":Q;if(Q===$)X[W]=D(U,Y);else if(typeof F==="object")X[W]=D(F[$],Y)}return X};function Ke(){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[U,J]of Object.entries($)){for(let[Y,X]of Object.entries(J))$[Y]={open:`\x1B[${X[0]}m`,close:`\x1B[${X[1]}m`},J[Y]=$[Y],D.set(X[0],X[1]);Object.defineProperty($,U,{value:J,enumerable:!1})}return Object.defineProperty($,"codes",{value:D,enumerable:!1}),$.color.close="\x1B[39m",$.bgColor.close="\x1B[49m",g8($.color,"ansi",()=>f8(tE,"ansi16",FU,!1)),g8($.color,"ansi256",()=>f8(sE,"ansi256",FU,!1)),g8($.color,"ansi16m",()=>f8(eE,"rgb",DT,!1)),g8($.bgColor,"ansi",()=>f8(tE,"ansi16",FU,!0)),g8($.bgColor,"ansi256",()=>f8(sE,"ansi256",FU,!0)),g8($.bgColor,"ansi16m",()=>f8(eE,"rgb",DT,!0)),$}Object.defineProperty($T,"exports",{enumerable:!0,get:Ke})});var QT=S((yID,XT)=>{var Ze=tF(),ze=lE(),UT=$W(),YT=["\x1B",""],WU=(D)=>`${YT[0]}[${D}m`,JT=(D,$,U)=>{let J=[];D=[...D];for(let Y of D){let X=Y;if(Y.includes(";"))Y=Y.split(";")[0][0]+"0";let Q=UT.codes.get(Number.parseInt(Y,10));if(Q){let F=D.indexOf(Q.toString());if(F===-1)J.push(WU($?Q:X));else D.splice(F,1)}else if($){J.push(WU(0));break}else J.push(WU(X))}if($){if(J=J.filter((Y,X)=>J.indexOf(Y)===X),U!==void 0){let Y=WU(UT.codes.get(Number.parseInt(U,10)));J=J.reduce((X,Q)=>Q===Y?[Q,...X]:[...X,Q],[])}}return J.join("")};XT.exports=(D,$,U)=>{let J=[...D],Y=[],X=typeof U==="number"?U:J.length,Q=!1,F,W=0,K="";for(let[Z,z]of J.entries()){let q=!1;if(YT.includes(z)){let G=/\d[^m]*/.exec(D.slice(Z,Z+18));if(F=G&&G.length>0?G[0]:void 0,W<X){if(Q=!0,F!==void 0)Y.push(F)}}else if(Q&&z==="m")Q=!1,q=!0;if(!Q&&!q)W++;if(!ze({exact:!0}).test(z)&&Ze(z.codePointAt())){if(W++,typeof U!=="number")X++}if(W>$&&W<=X)K+=z;else if(W===$&&!Q&&F!==void 0)K=JT(Y);else if(W>=X){K+=JT(Y,!0,F);break}}return K}});var WT=S((hID,FT)=>{FT.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 KU=S((mID,KT)=>{var qe=WT();KT.exports=(D)=>typeof D==="string"?D.replace(qe(),""):D});var zT=S((lID,ZT)=>{ZT.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 JW=S((cID,UW)=>{var Ge=KU(),Ve=tF(),He=zT(),qT=(D)=>{if(typeof D!=="string"||D.length===0)return 0;if(D=Ge(D),D.length===0)return 0;D=D.replace(He()," ");let $=0;for(let U=0;U<D.length;U++){let J=D.codePointAt(U);if(J<=31||J>=127&&J<=159)continue;if(J>=768&&J<=879)continue;if(J>65535)U++;$+=Ve(J)?2:1}return $};UW.exports=qT;UW.exports.default=qT});var IT=S((dID,HT)=>{var a9=JW(),Ie=KU(),Be=$W(),ZU=new Set(["\x1B",""]),GT=(D)=>`${ZU.values().next().value}[${D}m`,VT=(D)=>`${ZU.values().next().value}]8;;${D}\x07`,we=(D)=>D.split(" ").map(($)=>a9($)),YW=(D,$,U)=>{let J=[...$],Y=!1,X=!1,Q=a9(Ie(D[D.length-1]));for(let[F,W]of J.entries()){let K=a9(W);if(Q+K<=U)D[D.length-1]+=W;else D.push(W),Q=0;if(ZU.has(W))Y=!0,X=J.slice(F+1).join("").startsWith("]8;;");if(Y){if(X){if(W==="\x07")Y=!1,X=!1}else if(W==="m")Y=!1;continue}if(Q+=K,Q===U&&F<J.length-1)D.push(""),Q=0}if(!Q&&D[D.length-1].length>0&&D.length>1)D[D.length-2]+=D.pop()},Oe=(D)=>{let $=D.split(" "),U=$.length;while(U>0){if(a9($[U-1])>0)break;U--}if(U===$.length)return D;return $.slice(0,U).join(" ")+$.slice(U).join("")},je=(D,$,U={})=>{if(U.trim!==!1&&D.trim()==="")return"";let J="",Y,X,Q=we(D),F=[""];for(let[K,Z]of D.split(" ").entries()){if(U.trim!==!1)F[F.length-1]=F[F.length-1].trimStart();let z=a9(F[F.length-1]);if(K!==0){if(z>=$&&(U.wordWrap===!1||U.trim===!1))F.push(""),z=0;if(z>0||U.trim===!1)F[F.length-1]+=" ",z++}if(U.hard&&Q[K]>$){let q=$-z,G=1+Math.floor((Q[K]-q-1)/$);if(Math.floor((Q[K]-1)/$)<G)F.push("");YW(F,Z,$);continue}if(z+Q[K]>$&&z>0&&Q[K]>0){if(U.wordWrap===!1&&z<$){YW(F,Z,$);continue}F.push("")}if(z+Q[K]>$&&U.wordWrap===!1){YW(F,Z,$);continue}F[F.length-1]+=Z}if(U.trim!==!1)F=F.map(Oe);let W=[...F.join(`
`)];for(let[K,Z]of W.entries()){if(J+=Z,ZU.has(Z)){let{groups:q}=new RegExp("(?:\\[(?<code>\\d+)m|\\]8;;(?<uri>.*)\x07)").exec(W.slice(K).join(""))||{groups:{}};if(q.code!==void 0){let G=Number.parseFloat(q.code);Y=G===39?void 0:G}else if(q.uri!==void 0)X=q.uri.length===0?void 0:q.uri}let z=Be.codes.get(Number(Y));if(W[K+1]===`
`){if(X)J+=VT("");if(Y&&z)J+=GT(z)}else if(Z===`
`){if(Y&&z)J+=GT(Y);if(X)J+=VT(X)}}return J};HT.exports=(D,$,U)=>{return String(D).normalize().replace(/\r\n/g,`
`).split(`
`).map((J)=>je(J,$,U)).join(`
`)}});var OT=S((iID,wT)=>{var Ne=UD("os"),BT=Ne.homedir();wT.exports=(D)=>{if(typeof D!=="string")throw TypeError(`Expected a string, got ${typeof D}`);return BT?D.replace(/^~(?=$|\/|\\)/,BT):D}});var TT=S((AT)=>{Object.defineProperty(AT,"__esModule",{value:!0});AT.columnar=AT.generateFillSpaceStringList=AT.expandPath=AT.prettyPath=AT.wordWrap=AT.indent=AT.TTY_WIDTH=AT.stripAnsi=AT.stringWidth=AT.sliceAnsi=void 0;var jT=U6(),Le=jT.__importStar(UD("os")),w$=jT.__importStar(UD("path")),NT=QT();AT.sliceAnsi=NT;var zU=JW();AT.stringWidth=zU;var Re=KU();AT.stripAnsi=Re;var Me=IT(),Ae=OT(),ve=80,Ee=120;AT.TTY_WIDTH=process.stdout.columns?Math.max(ve,Math.min(process.stdout.columns,Ee)):1/0;function LT(D=4){return" ".repeat(D)}AT.indent=LT;function Te(D,{width:$=AT.TTY_WIDTH,indentation:U=0,append:J=""}){return Me(D,$-U-J.length,{trim:!0}).split(`
`).join(`${J}
${LT(U)}`)}AT.wordWrap=Te;function Pe(D){D=RT(D);let $=process.cwd(),U=w$.dirname(D),J=Le.homedir(),Y=Math.abs(U.split(w$.sep).length-$.split(w$.sep).length);if($===U)return"."+w$.sep+w$.basename(D);else if(U.startsWith($))return"."+w$.sep+D.substring($.length+1);else if(Y<=2){let X=w$.relative($,D);return X?X:"."}else if(D===J)return"~";else if(D.indexOf(J)===0)return"~"+w$.sep+D.substring(J.length+1);return D}AT.prettyPath=Pe;function RT(D){return w$.resolve(Ae(D))}AT.expandPath=RT;function MT(D,$=1,U=" "){if($<2)$=2;let J=Math.max(...D.map((Q)=>zU(Q))),Y=J>$?J+1:$,X=U.repeat(Y);return D.map((Q)=>NT(X,0,Y-zU(Q)))}AT.generateFillSpaceStringList=MT;function Se(D,{hsep:$="-",vsep:U="|",headers:J}){let Y=J?!0:!1;if(!D[0])return"";let X=J?J.length:D[0].length,Q=J?J.map((Z)=>[Z]):D[0].map(()=>[]);for(let Z of D){let z=0,q=Z.map((G)=>{let V=G.split(`
`);return z=Math.max(z,V.length),V});for(let G in Z)if(Q[G])Q[G].push(...q[G],...Array(z-q[G].length).fill(""))}let F=Q.map((Z,z)=>{if(z<X-1){let q=MT(Z);return Z.map((G,V)=>`${G}${q[V]}${U===""?"":`${U} `}`)}else return Z}),W=0,K=F.reduce((Z,z)=>{return Z.map((q,G)=>{let V=Z[G]+z[G];return W=Math.max(W,zU(V)),V})});if(Y&&$!=="")K.splice(1,0,$.repeat(W));return K.join(`
`)}AT.columnar=Se});var CT=S((PT)=>{Object.defineProperty(PT,"__esModule",{value:!0});PT.TERMINAL_INFO=PT.CI_ENVIRONMENT_VARIABLES_DETECTED=PT.CI_ENVIRONMENT_VARIABLES=void 0;var ye=U6(),he=xF(),me=ye.__importStar(UD("os")),le=(0,he.debug)("ionic:utils-terminal:info");PT.CI_ENVIRONMENT_VARIABLES=["CI","BUILD_ID","BUILD_NUMBER","BITBUCKET_COMMIT","CODEBUILD_BUILD_ARN","GITHUB_ACTIONS"];PT.CI_ENVIRONMENT_VARIABLES_DETECTED=PT.CI_ENVIRONMENT_VARIABLES.filter((D)=>!!process.env[D]);function ce(){let{shell:D}=me.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(PT.CI_ENVIRONMENT_VARIABLES_DETECTED.length>0)le(`Environment variables for CI detected: ${PT.CI_ENVIRONMENT_VARIABLES_DETECTED.join(", ")}`);PT.TERMINAL_INFO=Object.freeze({ci:PT.CI_ENVIRONMENT_VARIABLES_DETECTED.length>0,shell:ce(),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 XW=S((y8)=>{Object.defineProperty(y8,"__esModule",{value:!0});var GU=U6();GU.__exportStar(oF(),y8);GU.__exportStar(yE(),y8);GU.__exportStar(TT(),y8);GU.__exportStar(CT(),y8)});var HU=S((kT)=>{Object.defineProperty(kT,"__esModule",{value:!0});kT.isFatal=kT.fatal=kT.FatalException=kT.BaseException=void 0;class QW extends Error{constructor(D,$){super(D);this.message=D,this.code=$}}kT.BaseException=QW;class VU extends QW{constructor(D,$=1){super(D,"FATAL");this.message=D,this.exitCode=$}}kT.FatalException=VU;function de(D){throw new VU(D)}kT.fatal=de;function ie(D){return D&&D instanceof VU}kT.isFatal=ie});var WW={};S0(WW,{wordWrap:()=>DDD,stripAnsi:()=>ee,stringWidth:()=>se,sliceAnsi:()=>te,indent:()=>ae,createDefaultLogger:()=>$DD,TTY_WIDTH:()=>oe,TTYOutputStrategy:()=>xT,StreamOutputStrategy:()=>FW,NO_COLORS:()=>_T,Logger:()=>gT,LOGGER_LEVELS:()=>UDD});class FW{constructor(){this.colors=_T,this.stream=process.stdout}}class gT{constructor(){}info(){}warn(){}error(){}debug(){}}var oe=80,ae=(D)=>D,te=(D)=>D,se=(D)=>D.length,ee=(D)=>D,DDD=(D)=>D,$DD=()=>({info:console.log,warn:console.warn,error:console.error,debug:console.debug}),_T,xT,UDD;var KW=_(()=>{_T={};xT=class xT extends FW{constructor(D){super();this.options=D}};UDD={DEBUG:"DEBUG",INFO:"INFO",WARN:"WARN",ERROR:"ERROR"}});var hT=S((yT)=>{Object.defineProperty(yT,"__esModule",{value:!0});yT.isInteractive=yT.checkInteractive=void 0;var JDD=U6(),fT=XW(),YDD=JDD.__importDefault(_8()),XDD=t9(),QDD=(...D)=>{if(yT.isInteractive())return!0;if(!D.length)return!1;if(D.filter(($)=>!$).length)return XDD.logger.error(`Non-interactive shell detected.
Run the command with ${YDD.default.input("--help")} to see a list of arguments that must be provided.`),!1;return!0};yT.checkInteractive=QDD;var FDD=()=>fT.TERMINAL_INFO.tty&&!fT.TERMINAL_INFO.ci;yT.isInteractive=FDD});var IU={};S0(IU,{default:()=>mT});function mT(){throw Error("Prompts are not supported in this CLI build")}var t9=S((cT)=>{Object.defineProperty(cT,"__esModule",{value:!0});cT.logSuccess=cT.logPrompt=cT.logger=cT.output=void 0;var zW=U6(),s1=(KW(),u$(WW)),e1=zW.__importDefault(_8()),KDD=hT(),lT={colors:e1.default,stream:process.argv.includes("--json")?process.stderr:process.stdout};cT.output=(0,KDD.isInteractive)()?new s1.TTYOutputStrategy(lT):new s1.StreamOutputStrategy(lT);cT.logger=(0,s1.createDefaultLogger)({output:cT.output,formatterOptions:{titleize:!1,tags:new Map([[s1.LOGGER_LEVELS.DEBUG,e1.default.log.DEBUG("[debug]")],[s1.LOGGER_LEVELS.INFO,e1.default.log.INFO("[info]")],[s1.LOGGER_LEVELS.WARN,e1.default.log.WARN("[warn]")],[s1.LOGGER_LEVELS.ERROR,e1.default.log.ERROR("[error]")]])}});async function ZDD(D,$){let{wordWrap:U}=await Promise.resolve().then(()=>zW.__importStar((KW(),u$(WW)))),{prompt:J}=await Promise.resolve().then(()=>zW.__importStar(u$(IU)));return cT.logger.log({msg:`${e1.default.input("[?]")} ${U(D,{indentation:4})}`,logger:cT.logger,format:!1}),J($,{onCancel:()=>process.exit(1)})}cT.logPrompt=ZDD;function zDD(D){cT.logger.msg(`${e1.default.success("[success]")} ${D}`)}cT.logSuccess=zDD});var s9=S((pT)=>{Object.defineProperty(pT,"__esModule",{value:!0});pT.resolveNode=pT.requireTS=void 0;var GDD=UD("fs"),VDD=u8(),HDD=UD("path"),IDD=(D,$)=>{let U=(0,HDD.resolve)($);delete UD.cache[U],UD.extensions[".ts"]=(Y,X)=>{var Q;let F=(0,VDD.readFileSync)(X,"utf8");if(X.endsWith(".ts"))F=D.transpileModule(F,{fileName:X,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");(Q=Y._compile)===null||Q===void 0||Q.call(Y,F,X)};let J=UD(U);return delete UD.extensions[".ts"],J};pT.requireTS=IDD;function BDD(D,...$){try{return UD.resolve($.join("/"),{paths:[D]})}catch(U){let J=[D,"node_modules",...$].join("/");if((0,GDD.existsSync)(J))return J;return null}}pT.resolveNode=BDD});var rT={};S0(rT,{default:()=>ODD});var ODD;var oT=_(()=>{ODD={}});var sT=S((aT)=>{Object.defineProperty(aT,"__esModule",{value:!0});aT.buildXmlElement=aT.writeXML=aT.parseXML=aT.readXML=void 0;var jDD=U6(),NDD=u8(),e9=jDD.__importDefault((oT(),u$(rT)));async function LDD(D){var $;try{let U=await(0,NDD.readFile)(D,{encoding:"utf-8"});try{return await e9.default.parseStringPromise(U)}catch(J){throw`Error parsing: ${D}, ${($=J.stack)!==null&&$!==void 0?$:J}`}}catch(U){throw`Unable to read: ${D}`}}aT.readXML=LDD;function RDD(D,$){let U=$!==void 0?new e9.default.Parser({...$}):new e9.default.Parser,J;return U.parseString(D,(Y,X)=>{if(!Y)J=X}),J}aT.parseXML=RDD;async function MDD(D){return new Promise(($)=>{let J=new e9.default.Builder({headless:!0,explicitRoot:!1,rootName:"deleteme"}).buildObject(D);J=J.replace("<deleteme>","").replace("</deleteme>",""),$(J)})}aT.writeXML=MDD;function ADD(D,$){return new e9.default.Builder({headless:!0,explicitRoot:!1,rootName:$}).buildObject(D)}aT.buildXmlElement=ADD});var XP=S((JP)=>{Object.defineProperty(JP,"__esModule",{value:!0});JP.getAllElements=JP.getFilePath=JP.getAssets=JP.getJSModules=JP.getPluginType=JP.getPlatformElement=JP.getPluginPlatform=JP.printPlugins=JP.fixName=JP.getDependencies=JP.resolvePlugin=JP.getPlugins=JP.getIncludedPluginPackages=void 0;var PDD=U6(),SDD=u8(),qW=UD("path"),h8=PDD.__importDefault(_8()),bDD=HU(),CDD=t9(),eT=s9(),kDD=sT();function DP(D,$){var U,J,Y,X;let{extConfig:Q}=D.app;switch($){case"android":return(J=(U=Q.android)===null||U===void 0?void 0:U.includePlugins)!==null&&J!==void 0?J:Q.includePlugins;case"ios":return(X=(Y=Q.ios)===null||Y===void 0?void 0:Y.includePlugins)!==null&&X!==void 0?X:Q.includePlugins}}JP.getIncludedPluginPackages=DP;async function uDD(D,$){var U;let J=(U=DP(D,$))!==null&&U!==void 0?U:UP(D);return(await Promise.all(J.map(async(X)=>$P(D,X)))).filter((X)=>!!X)}JP.getPlugins=uDD;async function $P(D,$){try{let U=(0,eT.resolveNode)(D.app.rootDir,$,"package.json");if(!U)(0,bDD.fatal)(`Unable to find ${h8.default.strong(`node_modules/${$}`)}.
Are you sure ${h8.default.strong($)} is installed?`);let J=(0,qW.dirname)(U),Y=await(0,SDD.readJSON)(U);if(!Y)return null;if(Y.capacitor)return{id:$,name:GW($),version:Y.version,rootPath:J,repository:Y.repository,manifest:Y.capacitor};let X=(0,qW.join)(J,"plugin.xml"),Q=await(0,kDD.readXML)(X);return{id:$,name:GW($),version:Y.version,rootPath:J,repository:Y.repository,xml:Q.plugin}}catch(U){}return null}JP.resolvePlugin=$P;function UP(D){var $,U;return[...Object.keys(($=D.app.package.dependencies)!==null&&$!==void 0?$:{}),...Object.keys((U=D.app.package.devDependencies)!==null&&U!==void 0?U:{})]}JP.getDependencies=UP;function GW(D){return D=D.replace(/\//g,"_").replace(/-/g,"_").replace(/@/g,"").replace(/_\w/g,($)=>$[1].toUpperCase()),D.charAt(0).toUpperCase()+D.slice(1)}JP.fixName=GW;function _DD(D,$,U="capacitor"){if(D.length===0)return;let J,Y=D.length===1?"":"s";switch(U){case"cordova":J=`Found ${D.length} Cordova plugin${Y} for ${h8.default.strong($)}:
`;break;case"incompatible":J=`Found ${D.length} incompatible Cordova plugin${Y} for ${h8.default.strong($)}, skipped install:
`;break;case"capacitor":J=`Found ${D.length} Capacitor plugin${Y} for ${h8.default.strong($)}:
`;break}J+=D.map((X)=>`${X.id}${h8.default.weak(`@${X.version}`)}`).join(`
`),CDD.logger.info(J)}JP.printPlugins=_DD;function VW(D,$){if(D.xml.platform)return D.xml.platform.filter(function(Y){return Y.$.name===$})[0];return[]}JP.getPluginPlatform=VW;function xDD(D,$,U){let J=VW(D,$);if(J){let Y=J[U];if(Y)return Y}return[]}JP.getPlatformElement=xDD;function gDD(D,$){var U,J,Y,X;switch($){case"ios":return(J=(U=D.ios)===null||U===void 0?void 0:U.type)!==null&&J!==void 0?J:0;case"android":return(X=(Y=D.android)===null||Y===void 0?void 0:Y.type)!==null&&X!==void 0?X:0}return 0}JP.getPluginType=gDD;function fDD(D,$){return HW(D,$,"js-module")}JP.getJSModules=fDD;function yDD(D,$){return HW(D,$,"asset")}JP.getAssets=yDD;function hDD(D,$,U){if(U.startsWith("node_modules")){let J=U.split("/").slice(1);if(J[0].startsWith("@"))J=[J[0]+"/"+J[1],...J.slice(2)];let Y=(0,eT.resolveNode)(D.app.rootDir,...J);if(!Y)throw Error(`Can't resolve module ${J[0]}`);return Y}return(0,qW.join)($.rootPath,U)}JP.getFilePath=hDD;function HW(D,$,U){let J=[];if(D.xml[U])J=J.concat(D.xml[U]);let Y=VW(D,$);if(Y===null||Y===void 0?void 0:Y[U])J=J.concat(Y[U]);return J}JP.getAllElements=HW});var OU=S((QP)=>{Object.defineProperty(QP,"__esModule",{value:!0});QP.isNXMonorepo=QP.isMonorepo=QP.findPackageRelativePathInMonorepo=QP.findPackagePath=QP.findNXMonorepoRoot=QP.findMonorepoRoot=void 0;var D5=UD("node:fs"),s$=UD("node:path");function wU(D){let $=(0,s$.join)(D,"package.json"),U=(0,s$.join)(D,"pnpm-workspace.yaml");if((0,D5.existsSync)(U)||(0,D5.existsSync)($)&&JSON.parse((0,D5.readFileSync)($,"utf-8")).workspaces)return D;let J=(0,s$.dirname)(D);if(J===D)throw Error("Monorepo root not found");return wU(J)}QP.findMonorepoRoot=wU;function IW(D){let $=(0,s$.join)(D,"nx.json");if((0,D5.existsSync)($))return D;let U=(0,s$.dirname)(D);if(U===D)throw Error("Monorepo root not found");return IW(U)}QP.findNXMonorepoRoot=IW;function BW(D,$,U){let J=(0,s$.join)($,"node_modules",D);if((0,D5.existsSync)(J))return J;if($===U)return null;let Y=(0,s$.dirname)($);return BW(D,Y,U)}QP.findPackagePath=BW;function eDD(D,$){let U=wU($),J=BW(D,$,U);if(J)return(0,s$.relative)($,J);return null}QP.findPackageRelativePathInMonorepo=eDD;function D0D(D){try{return wU(D),!0}catch($){return!1}}QP.isMonorepo=D0D;function $0D(D){try{return IW(D),!0}catch($){return!1}}QP.isNXMonorepo=$0D});var WP={};S0(WP,{default:()=>F0D});var F0D;var KP=_(()=>{F0D={}});var jU=S((zP)=>{Object.defineProperty(zP,"__esModule",{value:!0});zP.isInstalled=zP.getCommandOutput=zP.runCommand=void 0;var wW=(KP(),u$(WP));async function ZP(D,$,U={}){let J=new wW.Subprocess(D,$,U);try{return await J.output()}catch(Y){if(Y instanceof wW.SubprocessError)throw Y.output?Y.output:Y.cause?`${Y.message} ${Y.cause.toString()}`:Y.code?Y.code:"Unknown error";throw Y}}zP.runCommand=ZP;async function W0D(D,$,U={}){try{return(await ZP(D,$,U)).trim()}catch(J){return null}}zP.getCommandOutput=W0D;async function K0D(D){try{await(0,wW.which)(D)}catch($){return!1}return!0}zP.isInstalled=K0D});var GP={};S0(GP,{validRange:()=>b0D,valid:()=>V0D,satisfies:()=>T0D,rcompare:()=>N0D,patch:()=>O0D,parse:()=>G0D,outside:()=>C0D,neq:()=>A0D,minor:()=>w0D,minSatisfying:()=>S0D,maxSatisfying:()=>P0D,major:()=>B0D,ltr:()=>u0D,lte:()=>E0D,lt:()=>R0D,intersects:()=>_0D,inc:()=>I0D,gtr:()=>k0D,gte:()=>v0D,gt:()=>L0D,eq:()=>M0D,diff:()=>q0D,compare:()=>j0D,coerce:()=>x0D,clean:()=>H0D,SemVer:()=>f0D,Range:()=>g0D,Comparator:()=>y0D});var q0D=()=>null,G0D=()=>null,V0D=()=>null,H0D=()=>null,I0D=()=>null,B0D=()=>null,w0D=()=>null,O0D=()=>null,j0D=()=>0,N0D=()=>0,L0D=()=>!1,R0D=()=>!1,M0D=()=>!1,A0D=()=>!0,v0D=()=>!1,E0D=()=>!1,T0D=()=>!1,P0D=()=>null,S0D=()=>null,b0D=()=>null,C0D=()=>!1,k0D=()=>!1,u0D=()=>!1,_0D=()=>!1,x0D=()=>null,g0D=class{},f0D=class{},y0D=class{};var EP=S((AP)=>{Object.defineProperty(AP,"__esModule",{value:!0});AP.parseApkNameFromFlavor=AP.checkJDKMajorVersion=AP.resolvePlatform=AP.checkPlatformVersions=AP.getAddedPlatforms=AP.getPlatformTargetName=AP.promptForPlatformTarget=AP.promptForPlatform=AP.isValidEnterprisePlatform=AP.getKnownEnterprisePlatforms=AP.isValidCommunityPlatform=AP.getKnownCommunityPlatforms=AP.isValidPlatform=AP.getKnownPlatforms=AP.selectPlatforms=AP.getProjectPlatformDirectory=AP.getCLIVersion=AP.getCoreVersion=AP.getCapacitorPackageVersion=AP.requireCapacitorPackage=AP.getCapacitorPackage=AP.runTask=AP.runPlatformHook=AP.runHooks=AP.wait=AP.checkAppName=AP.checkAppId=AP.checkAppDir=AP.checkAppConfig=AP.checkCapacitorPlatform=AP.checkPackage=AP.checkWebDir=AP.check=void 0;var U5=U6(),VP=XW(),e$=u8(),D4=UD("path"),yD=U5.__importDefault(_8()),$4=HU(),IP=t9(),h0D=XP(),HP=OU(),$5=s9(),m0D=jU();async function l0D(D){let U=(await Promise.all(D.map((J)=>J()))).filter((J)=>J!=null);if(U.length>0)throw U.join(`
`)}AP.check=l0D;async function c0D(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,e$.pathExists)(D.app.webDirAbs))return`Could not find the web assets directory: ${yD.default.strong((0,VP.prettyPath)(D.app.webDirAbs))}.
Please create it and make sure it has an ${yD.default.strong("index.html")} file. You can change the path of this directory in ${yD.default.strong(D.app.extConfigName)} (${yD.default.input("webDir")} option). You may need to compile the web assets for your app (typically ${yD.default.input("npm run build")}). More info: ${yD.default.strong("https://capacitorjs.com/docs/basics/workflow#sync-your-project")}`;if(!await(0,e$.pathExists)((0,D4.join)(D.app.webDirAbs,"index.html")))return`The web assets directory (${yD.default.strong((0,VP.prettyPath)(D.app.webDirAbs))}) must contain an ${yD.default.strong("index.html")} file.
It will be the entry point for the web portion of the Capacitor app.`;return null}AP.checkWebDir=c0D;async function d0D(){if(!await(0,e$.pathExists)("package.json"))if(await(0,e$.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: ${yD.default.strong("https://docs.npmjs.com/cli/init")}`;return null}AP.checkPackage=d0D;async function i0D(D,$){if(!await jW(D,$))return`Could not find the ${yD.default.input($)} platform.
You must install it in your project first, e.g. w/ ${yD.default.input(`npm install @capacitor/${$}`)}`;return null}AP.checkCapacitorPlatform=i0D;async function p0D(D){if(!D.app.appId)return`Missing ${yD.default.input("appId")} for new platform.
Please add it in ${D.app.extConfigName} or run ${yD.default.input("npx cap init")}.`;if(!D.app.appName)return`Missing ${yD.default.input("appName")} for new platform.
Please add it in ${D.app.extConfigName} or run ${yD.default.input("npx cap init")}.`;let $=await BP(D,D.app.appId);if($)return $;let U=await wP(D,D.app.appName);if(U)return U;return null}AP.checkAppConfig=p0D;async function n0D(D,$){if(!/^\S*$/.test($))return"Your app directory should not contain spaces";return null}AP.checkAppDir=n0D;async function BP(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.
`}AP.checkAppId=BP;async function wP(D,$){if(!($===null||$===void 0?void 0:$.length))return"Must provide an app name. For example: 'Spacebook'";return null}AP.checkAppName=wP;async function r0D(D){return new Promise(($)=>setTimeout($,D))}AP.wait=r0D;async function o0D(D,$,U,J){await OW(D,$,U,J);let Y=await(0,h0D.getPlugins)(D,$);for(let X of Y)await OW(D,$,X.rootPath,J)}AP.runHooks=o0D;async function OW(D,$,U,J){var Y;let{spawn:X}=await Promise.resolve().then(()=>U5.__importStar(UD("child_process"))),Q;if((0,HP.isNXMonorepo)(U))Q=await(0,e$.readJSON)((0,D4.join)((0,HP.findNXMonorepoRoot)(U),"package.json"));else Q=await(0,e$.readJSON)((0,D4.join)(U,"package.json"));let F=(Y=Q.scripts)===null||Y===void 0?void 0:Y[J];if(!F)return;return new Promise((W,K)=>{let Z=X(F,{stdio:"inherit",shell:!0,cwd:U,env:{INIT_CWD:U,CAPACITOR_ROOT_DIR:D.app.rootDir,CAPACITOR_WEB_DIR:D.app.webDirAbs,CAPACITOR_CONFIG:JSON.stringify(D.app.extConfig),CAPACITOR_PLATFORM_NAME:$,...process.env}});Z.on("close",(z)=>{if(z===0)W();else K(Error(`${J} hook on ${$} failed with error code: ${z} while running command: ${F}`))}),Z.on("error",(z)=>{K(z)})})}AP.runPlatformHook=OW;async function a0D(D,$){let U=IP.output.createTaskChain();U.next(D);try{let J=await $();return U.end(),J}catch(J){throw U.fail(),J}}AP.runTask=a0D;async function jW(D,$){let U=(0,$5.resolveNode)(D.app.rootDir,`@capacitor/${$}`,"package.json");if(!U)return null;return(0,e$.readJSON)(U)}AP.getCapacitorPackage=jW;async function OP(D,$){let U=await jW(D,$);if(!U)(0,$4.fatal)(`Unable to find node_modules/@capacitor/${$}.
Are you sure ${yD.default.strong(`@capacitor/${$}`)} is installed?`);return U}AP.requireCapacitorPackage=OP;async function LU(D,$){return(await OP(D,$)).version}AP.getCapacitorPackageVersion=LU;async function jP(D){return LU(D,"core")}AP.getCoreVersion=jP;async function t0D(D){return LU(D,"cli")}AP.getCLIVersion=t0D;function s0D(D,$){switch($){case"android":return D.android.platformDirAbs;case"ios":return D.ios.platformDirAbs;case"web":return D.web.platformDirAbs}return null}async function NU(D,$){let U=s0D(D,$);if(U&&await(0,e$.pathExists)(U))return U;return null}AP.getProjectPlatformDirectory=NU;async function e0D(D,$){if($){let U=$.toLowerCase().trim();if(!await LW(U))(0,$4.fatal)(`Invalid platform: ${yD.default.input(U)}`);else if(!await NU(D,U)){if(U==="web")(0,$4.fatal)(`Could not find the web platform directory.
Make sure ${yD.default.strong(D.app.webDir)} exists.`);(0,$4.fatal)(`${yD.default.strong(U)} platform has not been added yet.
See the docs for adding the ${yD.default.strong(U)} platform: ${yD.default.strong(`https://capacitorjs.com/docs/${U}#adding-the-${U}-platform`)}`)}return[U]}return MP(D)}AP.selectPlatforms=e0D;async function NW(){return["web","android","ios"]}AP.getKnownPlatforms=NW;async function LW(D){return(await NW()).includes(D)}AP.isValidPlatform=LW;async function NP(){return["electron"]}AP.getKnownCommunityPlatforms=NP;async function D6D(D){return(await NP()).includes(D)}AP.isValidCommunityPlatform=D6D;async function LP(){return["windows"]}AP.getKnownEnterprisePlatforms=LP;async function $6D(D){return(await LP()).includes(D)}AP.isValidEnterprisePlatform=$6D;async function U6D(D,$,U){let{prompt:J}=await Promise.resolve().then(()=>U5.__importStar(u$(IU)));if(!U)return(await J([{type:"select",name:"mode",message:$,choices:D.map((Q)=>({title:Q,value:Q}))}],{onCancel:()=>process.exit(1)})).mode.toLowerCase().trim();let Y=U.toLowerCase().trim();if(!await LW(Y)){let X=await NW();(0,$4.fatal)(`Invalid platform: ${yD.default.input(Y)}.
Valid platforms include: ${X.join(", ")}`)}return Y}AP.promptForPlatform=U6D;async function J6D(D,$,U,J){let{prompt:Y}=await Promise.resolve().then(()=>U5.__importStar(u$(IU))),X=D.filter((W)=>W.id!==void 0);if(!$)if(X.length===1)return X[0];else return(await Y([{type:"select",name:"target",message:"Please choose a target device:",choices:X.map((K)=>({title:`${RP(K)} (${K.id})`,value:K}))}],{onCancel:()=>process.exit(1)})).target;let Q=$.trim(),F=D.find((W)=>{var K;if(J===!0){let Z=(K=W.name)!==null&&K!==void 0?K:W.model;if(Z)Z=Z.replace(/[\u2018\u2019]/g,"'").replace(/[\u201C\u201D]/g,'"');if(U)return Z===Q&&W.sdkVersion===U;return Z===Q}return W.id===Q});if(!F){if(J){let W=Q;if(U)W+=` [${U}]`;(0,$4.fatal)(`Invalid target name: ${yD.default.input(W)}.
Valid targets are:
${D.map((K)=>{var Z;return`${(Z=K.name)!==null&&Z!==void 0?Z:K.model} [${K.sdkVersion}]`}).join(`
`)}`)}(0,$4.fatal)(`Invalid target ID: ${yD.default.input(Q)}.
Valid targets are:
${D.map((W)=>W.id).join(`
`)}`)}return F}AP.promptForPlatformTarget=J6D;function RP(D){var $,U,J;return`${(J=(U=($=D.name)!==null&&$!==void 0?$:D.model)!==null&&U!==void 0?U:D.id)!==null&&J!==void 0?J:"?"}${D.virtual?` (${D.platform==="ios"?"simulator":"emulator"})`:""}`}AP.getPlatformTargetName=RP;async function MP(D){let $=[];if(await NU(D,D.android.name))$.push(D.android.name);if(await NU(D,D.ios.name))$.push(D.ios.name);return $.push(D.web.name),$}AP.getAddedPlatforms=MP;async function Y6D(D,$){let U=await Promise.resolve().then(()=>U5.__importStar(u$(GP))),J=await jP(D),Y=await LU(D,$);if(U.diff(J,Y)==="minor"||U.diff(J,Y)==="major")IP.logger.warn(`${yD.default.strong("@capacitor/core")}${yD.default.weak(`@${J}`)} version doesn't match ${yD.default.strong(`@capacitor/${$}`)}${yD.default.weak(`@${Y}`)} version.
Consider updating to a matching version, e.g. w/ ${yD.default.input(`npm install @capacitor/core@${Y}`)}`)}AP.checkPlatformVersions=Y6D;function X6D(D,$){if($[0]!=="@"){let J=(0,$5.resolveNode)(D.app.rootDir,`@capacitor/${$}`,"package.json");if(J)return(0,D4.dirname)(J);let Y=(0,$5.resolveNode)(D.app.rootDir,`@capacitor-community/${$}`,"package.json");if(Y)return(0,D4.dirname)(Y);let X=(0,$5.resolveNode)(D.app.rootDir,`@ionic-enterprise/capacitor-${$}`,"package.json");if(X)return(0,D4.dirname)(X)}let U=(0,$5.resolveNode)(D.app.rootDir,$,"package.json");if(U)return(0,D4.dirname)(U);return null}AP.resolvePlatform=X6D;async function Q6D(){try{let D=await(0,m0D.runCommand)("java",["--version"]),U=RegExp(/([0-9]+)\.?([0-9]*)\.?([0-9]*)/).exec(D);if(U===null)return-1;let J=parseInt(U[1]),Y=parseInt(U[2]);if(typeof J==="number"&&J!=1)return J;else if(typeof Y==="number"&&J==1&&Y<9)return Y;else return-1}catch(D){return-1}}AP.checkJDKMajorVersion=Q6D;function F6D(D){let $=D.replace(/([A-Z])/g,"-$1").toLowerCase();if($.startsWith("-"))$=$.replace("-","");return`app-${$?`${$}-`:""}debug.apk`}AP.parseApkNameFromFlavor=F6D});var SP=S((TP)=>{Object.defineProperty(TP,"__esModule",{value:!0});TP.tryFn=void 0;var h6D=async(D,...$)=>{try{return await D(...$)}catch{}return null};TP.tryFn=h6D});var RW=S((bP)=>{Object.defineProperty(bP,"__esModule",{value:!0});bP.formatJSObject=void 0;var m6D=U6(),l6D=m6D.__importDefault(UD("util"));function c6D(D){try{D=JSON.parse(JSON.stringify(D))}catch($){throw Error(`Cannot parse object as JSON: ${$.stack?$.stack:$}`)}return l6D.default.inspect(D,{compact:!1,breakLength:1/0,depth:1/0,maxArrayLength:1/0,maxStringLength:1/0})}bP.formatJSObject=c6D});var _P=S((kP)=>{Object.defineProperty(kP,"__esModule",{value:!0});kP.lazy=kP.LazyPromise=kP.allSerial=void 0;function d6D(D){return D.reduce(($,U)=>$.then((J)=>U().then((Y)=>J.concat(Y))),Promise.resolve([]))}kP.allSerial=d6D;class MW 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)}}kP.LazyPromise=MW;function i6D(D){return new MW(async($,U)=>{try{$(await D())}catch(J){U(J)}})}kP.lazy=i6D});var mP=S((yP)=>{Object.defineProperty(yP,"__esModule",{value:!0});yP.writeConfig=yP.loadConfig=yP.CONFIG_FILE_NAME_JSON=yP.CONFIG_FILE_NAME_JS=yP.CONFIG_FILE_NAME_TS=void 0;var SW=U6(),r6D=SW.__importDefault(xF()),u0=u8(),VD=UD("path"),J4=SW.__importDefault(_8()),o6D=EP(),RU=HU(),a6D=t9(),AW=SP(),t6D=RW(),xP=OU(),gP=s9(),U4=_P(),fP=jU(),vW=(0,r6D.default)("capacitor:config");yP.CONFIG_FILE_NAME_TS="capacitor.config.ts";yP.CONFIG_FILE_NAME_JS="capacitor.config.js";yP.CONFIG_FILE_NAME_JSON="capacitor.config.json";async function s6D(){var D,$,U,J;let Y=process.cwd(),X=(0,VD.dirname)(UD("path").dirname(UD("url").fileURLToPath(import.meta.url))),Q=await U$D(Y),F=await(async()=>{var G,V;if((0,xP.isNXMonorepo)(Y)){let I=(0,xP.findNXMonorepoRoot)(Y),H=await(0,AW.tryFn)(u0.readJSON,(0,VD.resolve)(I,"package.json")),w=(G=H===null||H===void 0?void 0:H.devDependencies)!==null&&G!==void 0?G:{},j=(V=H===null||H===void 0?void 0:H.dependencies)!==null&&V!==void 0?V:{};return{devDependencies:w,dependencies:j}}return{}})(),W=(D=Q.extConfig.appId)!==null&&D!==void 0?D:"",K=($=Q.extConfig.appName)!==null&&$!==void 0?$:"",Z=(U=Q.extConfig.webDir)!==null&&U!==void 0?U:"www",z=await J$D(X),q={android:await Y$D(Y,Q.extConfig,z),ios:await X$D(Y,Q.extConfig),web:await Q$D(Y,Z),cli:z,app:{rootDir:Y,appId:W,appName:K,webDir:Z,webDirAbs:(0,VD.resolve)(Y,Z),package:(J=await(0,AW.tryFn)(u0.readJSON,(0,VD.resolve)(Y,"package.json")))!==null&&J!==void 0?J:{name:K,version:"1.0.0",...F},...Q}};return vW("config: %O",q),q}yP.loadConfig=s6D;async function e6D(D,$){switch((0,VD.extname)($)){case".json":{await(0,u0.writeJSON)($,D,{spaces:2});break}case".ts":{await(0,u0.writeFile)($,G$D(D));break}}}yP.writeConfig=e6D;async function D$D(D,$,U){var J;try{let Y=(0,gP.resolveNode)(D,"typescript");if(!Y)(0,RU.fatal)(`Could not find installation of TypeScript.
To use ${J4.default.strong($)} files, you must install TypeScript in your project, e.g. w/ ${J4.default.input("npm install -D typescript")}`);let X=UD(Y),Q=(0,gP.requireTS)(X,U),F=Q.default?await Q.default:Q;return{extConfigType:"ts",extConfigName:$,extConfigFilePath:U,extConfig:F}}catch(Y){if(!(0,RU.isFatal)(Y))(0,RU.fatal)(`Parsing ${J4.default.strong($)} failed.
${(J=Y.stack)!==null&&J!==void 0?J:Y}`);throw Y}}async function $$D(D,$,U){var J;try{return{extConfigType:"js",extConfigName:$,extConfigFilePath:U,extConfig:await UD(U)}}catch(Y){(0,RU.fatal)(`Parsing ${J4.default.strong($)} failed.
${(J=Y.stack)!==null&&J!==void 0?J:Y}`)}}async function U$D(D){var $;let U=(0,VD.resolve)(D,yP.CONFIG_FILE_NAME_TS);if(await(0,u0.pathExists)(U))return D$D(D,yP.CONFIG_FILE_NAME_TS,U);let J=(0,VD.resolve)(D,yP.CONFIG_FILE_NAME_JS);if(await(0,u0.pathExists)(J))return $$D(D,yP.CONFIG_FILE_NAME_JS,J);let Y=(0,VD.resolve)(D,yP.CONFIG_FILE_NAME_JSON);return{extConfigType:"json",extConfigName:yP.CONFIG_FILE_NAME_JSON,extConfigFilePath:Y,extConfig:($=await(0,AW.tryFn)(u0.readJSON,Y))!==null&&$!==void 0?$:{}}}async function J$D(D){let U=(0,VD.join)(D,"assets"),J="ios-spm-template.tar.gz",Y="capacitor-cordova-ios-plugins.tar.gz",X="android-template.tar.gz",Q="capacitor-cordova-android-plugins.tar.gz";return{rootDir:D,assetsDir:"assets",assetsDirAbs:U,assets:{ios:{platformTemplateArchive:"ios-spm-template.tar.gz",platformTemplateArchiveAbs:(0,VD.resolve)(U,"ios-spm-template.tar.gz"),cordovaPluginsTemplateArchive:"capacitor-cordova-ios-plugins.tar.gz",cordovaPluginsTemplateArchiveAbs:(0,VD.resolve)(U,"capacitor-cordova-ios-plugins.tar.gz")},android:{platformTemplateArchive:"android-template.tar.gz",platformTemplateArchiveAbs:(0,VD.resolve)(U,"android-template.tar.gz"),cordovaPluginsTemplateArchive:"capacitor-cordova-android-plugins.tar.gz",cordovaPluginsTemplateArchiveAbs:(0,VD.resolve)(U,"capacitor-cordova-android-plugins.tar.gz")}},package:await(0,u0.readJSON)((0,VD.resolve)(D,"package.json")).catch(()=>({name:"@capacitor/cli",version:"0.0.0"})),os:F$D(process.platform)}}async function Y$D(D,$,U){var J,Y,X,Q,F,W,K,Z,z,q,G,V,I,H,w,j,B;let N="android",A=(Y=(J=$.android)===null||J===void 0?void 0:J.path)!==null&&Y!==void 0?Y:"android",v=(0,VD.resolve)(D,A),k="app",C="app/src",b="app/src/main",y="app/src/main/assets",T="app/src/main/assets/public",h="app/src/main/res",c="app/build/outputs/apk/",p=((X=$.android)===null||X===void 0?void 0:X.flavor)||"";if((Q=$.android)===null||Q===void 0?void 0:Q.flavor)c=`${c}/${(F=$.android)===null||F===void 0?void 0:F.flavor}`;let a=(0,o6D.parseApkNameFromFlavor)(p),R=`${c}/debug`,O="capacitor-cordova-android-plugins",L=(0,U4.lazy)(()=>Z$D(U.os)),E={keystorePath:(K=(W=$.android)===null||W===void 0?void 0:W.buildOptions)===null||K===void 0?void 0:K.keystorePath,keystorePassword:(z=(Z=$.android)===null||Z===void 0?void 0:Z.buildOptions)===null||z===void 0?void 0:z.keystorePassword,keystoreAlias:(G=(q=$.android)===null||q===void 0?void 0:q.buildOptions)===null||G===void 0?void 0:G.keystoreAlias,keystoreAliasPassword:(I=(V=$.android)===null||V===void 0?void 0:V.buildOptions)===null||I===void 0?void 0:I.keystoreAliasPassword,signingType:(w=(H=$.android)===null||H===void 0?void 0:H.buildOptions)===null||w===void 0?void 0:w.signingType,releaseType:(B=(j=$.android)===null||j===void 0?void 0:j.buildOptions)===null||B===void 0?void 0:B.releaseType};return{name:"android",minVersion:"24",studioPath:L,platformDir:A,platformDirAbs:v,cordovaPluginsDir:O,cordovaPluginsDirAbs:(0,VD.resolve)(v,O),appDir:"app",appDirAbs:(0,VD.resolve)(v,"app"),srcDir:"app/src",srcDirAbs:(0,VD.resolve)(v,"app/src"),srcMainDir:"app/src/main",srcMainDirAbs:(0,VD.resolve)(v,"app/src/main"),assetsDir:"app/src/main/assets",assetsDirAbs:(0,VD.resolve)(v,"app/src/main/assets"),webDir:"app/src/main/assets/public",webDirAbs:(0,VD.resolve)(v,"app/src/main/assets/public"),resDir:"app/src/main/res",resDirAbs:(0,VD.resolve)(v,"app/src/main/res"),apkName:a,buildOutputDir:R,buildOutputDirAbs:(0,VD.resolve)(v,R),flavor:p,buildOptions:E}}async function X$D(D,$){var U,J,Y,X,Q,F,W,K,Z,z,q,G;let V="ios",I=(J=(U=$.ios)===null||U===void 0?void 0:U.path)!==null&&J!==void 0?J:"ios",H=(0,VD.resolve)(D,I),w=(X=(Y=$.ios)===null||Y===void 0?void 0:Y.scheme)!==null&&X!==void 0?X:"App",j="App",B=(0,VD.resolve)(H,"App"),N="App/App",A=(0,VD.resolve)(H,"App/App"),v="App/App.xcodeproj",k=(0,VD.resolve)(H,"App/App.xcodeproj"),C=(0,U4.lazy)(()=>W$D(B)),b=(0,U4.lazy)(()=>z$D()),y=(0,U4.lazy)(()=>q$D(D,H,B)),T=(0,U4.lazy)(()=>K$D(B,A,k)),h="capacitor-cordova-ios-plugins",c={exportMethod:(F=(Q=$.ios)===null||Q===void 0?void 0:Q.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:(z=(Z=$.ios)===null||Z===void 0?void 0:Z.buildOptions)===null||z===void 0?void 0:z.signingCertificate,provisioningProfile:(G=(q=$.ios)===null||q===void 0?void 0:q.buildOptions)===null||G===void 0?void 0:G.provisioningProfile};return{name:"ios",minVersion:"15.0",platformDir:I,platformDirAbs:H,scheme:w,cordovaPluginsDir:"capacitor-cordova-ios-plugins",cordovaPluginsDirAbs:(0,VD.resolve)(H,"capacitor-cordova-ios-plugins"),nativeProjectDir:"App",nativeProjectDirAbs:B,nativeTargetDir:"App/App",nativeTargetDirAbs:A,nativeXcodeProjDir:"App/App.xcodeproj",nativeXcodeProjDirAbs:k,nativeXcodeWorkspaceDir:(0,U4.lazy)(async()=>(0,VD.relative)(H,await C)),nativeXcodeWorkspaceDirAbs:C,webDir:(0,U4.lazy)(async()=>(0,VD.relative)(H,await T)),webDirAbs:T,podPath:b,packageManager:y,buildOptions:c}}async function Q$D(D,$){let U=$,J=(0,VD.resolve)(D,U);return{name:"web",platformDir:U,platformDirAbs:J}}function F$D(D){switch(D){case"darwin":return"mac";case"win32":return"windows";case"linux":return"linux"}return"unknown"}async function W$D(D){return(0,VD.resolve)(D,"App.xcworkspace")}async function K$D(D,$,U){let J=/path\s=\spublic[\s\S]+?sourceTree\s=\s([^;]+)/,Y=(0,VD.resolve)(U,"project.pbxproj");try{let Q=(await(0,u0.readFile)(Y,{encoding:"utf8"})).match(J);if(Q&&Q[1]==="SOURCE_ROOT")return a6D.logger.warn(`Using the iOS project root for the ${J4.default.strong("public")} directory is deprecated.
Please follow the Upgrade Guide to move ${J4.default.strong("public")} inside the iOS target directory: ${J4.default.strong("https://capacitorjs.com/docs/updating/3-0#move-public-into-the-ios-target-directory")}`),(0,VD.resolve)(D,"public")}catch(X){}return(0,VD.resolve)($,"public")}async function Z$D(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(()=>SW.__importStar(jU())),U="C:\\Program Files\\Android\\Android Studio\\bin\\studio64.exe";try{if(!await(0,u0.pathExists)(U)){let J=await $("REG",["QUERY","HKEY_LOCAL_MACHINE\\SOFTWARE\\Android Studio","/v","Path"]);J=J.replace(/(\r\n|\n|\r)/gm,"");let Y=J.indexOf("REG_SZ");if(Y>0)U=J.substring(Y+6).trim()+"\\bin\\studio64.exe"}}catch(J){vW("Error checking registry for Android Studio path: %O",J);break}return U}case"linux":{try{if(await(0,u0.pathExists)("/usr/local/android-studio/bin/studio"))return"/usr/local/android-studio/bin/studio"}catch(J){vW("Error checking for studio executable: %O",J)}return"/usr/local/android-studio/bin/studio.sh"}}return""}async function z$D(){if(process.env.CAPACITOR_COCOAPODS_PATH)return process.env.CAPACITOR_COCOAPODS_PATH;return"pod"}async function q$D(D,$,U){if((0,u0.existsSync)((0,VD.resolve)(U,"CapApp-SPM")))return"SPM";if(process.env.CAPACITOR_COCOAPODS_PATH)return"Cocoapods";let J="";if(await(0,u0.pathExists)((0,VD.resolve)(D,"Gemfile")))J=(0,VD.resolve)(D,"Gemfile");else if(await(0,u0.pathExists)((0,VD.resolve)($,"Gemfile")))J=(0,VD.resolve)($,"Gemfile");else if(await(0,u0.pathExists)((0,VD.resolve)(U,"Gemfile")))J=(0,VD.resolve)(U,"Gemfile");if(J=="")try{let X=await(0,fP.getCommandOutput)("git",["rev-parse","--show-toplevel"],{cwd:D});if(X!=null)J=(0,VD.resolve)(X,"Gemfile")}catch(X){}try{let X=(await(0,u0.readFile)(J)).toString();if(!X)return"Cocoapods";if(new RegExp(/gem\s+['"]cocoapods/).test(X)&&await(0,fP.isInstalled)("bundle"))return"bundler";else return"Cocoapods"}catch{return"Cocoapods"}}function G$D(D){return`import type { CapacitorConfig } from '@capacitor/cli';
const config: CapacitorConfig = ${(0,t6D.formatJSObject)(D)};
export default config;
`}});var MU,D1,lP,cP,dP,iP,pP,nP,rP,oP,bW,CW;var kW=_(()=>{MU=K6(mP(),1),D1=K6(OU(),1),lP=K6(RW(),1),cP=K6(s9(),1),dP=cP.requireTS,iP=lP.formatJSObject,pP=MU.loadConfig,nP=MU.writeConfig,rP=D1.findMonorepoRoot,oP=D1.findNXMonorepoRoot,bW=D1.isMonorepo,CW=D1.isNXMonorepo});import{Buffer as aP}from"node:buffer";import{createHash as H$D}from"node:crypto";function B$D(D){let $=4294967295;for(let U=0;U<D.length;U++){let J=D[U];$=I$D[($^J)&255]^$>>>8}return $=$^4294967295,($>>>0).toString(16).padStart(8,"0")}async function tP(D,$="sha256"){let U=aP.isBuffer(D)?D:aP.from(D);if($==="crc32")return B$D(U);let J=H$D($);return J.update(U),J.digest("hex")}var I$D;var sP=_(()=>{I$D=(()=>{let D=[];for(let $=0;$<256;$++){let U=$;for(let J=0;J<8;J++)U=U&1?3988292384^U>>>1:U>>>1;D[$]=U}return D})()});import{AsyncLocalStorage as w$D}from"node:async_hooks";import{existsSync as gW,realpathSync as eP,statSync as JS}from"node:fs";import{readFile as O$D,writeFile as j$D}from"node:fs/promises";import{createRequire as fW}from"node:module";import{basename as N$D,extname as yW,isAbsolute as L$D,relative as R$D,resolve as m8,sep as M$D}from"node:path";import{cwd as uW}from"node:process";import{pathToFileURL as DS}from"node:url";function AU(D,$,U=!1){if(U){let J=$?.path;gD.error(typeof J==="string"?`${D}: ${J}`:D)}throw new uD(D,$)}function MBD(D){YS=D}function _W(){let D=XS.getStore();return D===void 0?YS:D.filePath}function ABD(D,$){return XS.run({filePath:D},$)}function vBD(D,$=uW(),U){let J=U?.logError??!1;if(D===void 0)return;if(!D.trim())AU("Capacitor config path must not be empty",void 0,J);let Y=m8($,D);if(!gW(Y)||!JS(Y).isFile())AU("Capacitor config path does not exist",{path:Y},J);if(!A$D.test(N$D(Y)))AU("Capacitor config path must point to a capacitor.config.*.ts, capacitor.config.*.js, or capacitor.config.*.json file",{path:Y},J);let X=eP($),Q=eP(Y),F=R$D(X,Q);if(F===".."||F.startsWith(`..${M$D}`)||L$D(F))AU("Capacitor config path must stay within the current working directory",{path:Y},J);return Q}function xW(D){if(D===null||typeof D!=="object")return!1;let $=D;return typeof $.transpileModule==="function"&&typeof $.ModuleKind?.CommonJS==="number"}function E$D(D){for(let $ of v$D){let U=m8(D,$);if(gW(U)&&JS(U).isFile())return U}return}function T$D(D){let $=m8(D,"package.json");try{return fW(gW($)?$:m8(D,"capacitor.config.ts"))("typescript")}catch{return}}function P$D(D){return!xW(T$D(D))}function S$D(){if(vU===void 0)try{vU=fW(import.meta.url)("typescript")}catch{vU=null}return vU}function US(){if(process.versions.bun)return!0;let D=Number(process.versions.node.split(".")[0]);return Number.isFinite(D)&&D>=22}async function QS(D){let $=yW(D);if($===".json")return JSON.parse(await O$D(D,"utf8"));let U=fW(D);if($===".js"){let F=U(D),W=F.default??F;return typeof W==="function"?await W():await W}let J;try{J=U("typescript")}catch{J=void 0}let Y=xW(J)?J:S$D(),X;if(xW(Y))try{X=await Promise.resolve(dP(Y,D))}catch(F){if(!US())throw F;X=await $S(DS(m8(D)).href)}else if(US())X=await $S(DS(m8(D)).href);else throw Error("Could not load a usable TypeScript compiler for the Capacitor config");let Q=X.default??X;return typeof Q==="function"?await Q():await Q}async function b$D(D,$){if(yW($)===".js"){let U=`/** @type {import('@capacitor/cli').CapacitorConfig} */
const config = ${iP(D)}
module.exports = config
`;await j$D($,U);return}await nP(D,$)}async function hW(){let D=E$D(uW());if(D&&yW(D)===".ts"&&P$D(uW()))return{config:await QS(D),path:_W()??D};let $=await pP();return{config:$.app.extConfig,path:_W()??$.app.extConfigFilePath}}async function mW(){let D=_W();if(D)return{config:await QS(D),path:D};return hW()}async function lW(D,$,U=!1){let J=await mW();if(!J)return;let{config:Y}=J;if(Y){if(!Y.plugins)Y.plugins={extConfig:{},[D]:{}};if(!Y.plugins[D])Y.plugins[D]={};if(!U)Y.plugins[D]=$.config.plugins?.[D];else Y=$.config;await b$D(Y,J.path)}}async function EBD(D,$=!1){await lW("CapacitorUpdater",D,$)}var $S,YS,XS,A$D,v$D,vU;var FS=_(()=>{g$();kW();M1();$S=Function("specifier","return import(specifier)"),XS=new w$D,A$D=/^capacitor\.config(?:\.[^.]+)*\.(?:ts|js|json)$/;v$D=["capacitor.config.ts","capacitor.config.js","capacitor.config.json"]});function $1(D){let $=D.length;while($>0&&D[$-1]==="/")$-=1;return D.slice(0,$)}import{randomUUID as WS}from"node:crypto";import{existsSync as C$D,mkdirSync as k$D,readFileSync as u$D,writeFileSync as _$D}from"node:fs";import{homedir as dW,platform as x$D,release as g$D}from"node:os";import{join as KS}from"node:path";import{arch as f$D,cwd as ZS,env as Y4,version as y$D}from"node:process";function J5(D){return D==="1"||D?.toLowerCase()==="true"||D?.toLowerCase()==="yes"}function d$D(){if(J5(Y4.CAPGO_DISABLE_TELEMETRY)||J5(Y4.CAPGO_DISABLE_POSTHOG))return;return Y4.CAPGO_CLI_POSTHOG_API_KEY?.trim()||Y4.POSTHOG_API_KEY?.trim()||m$D}function i$D(D){let $=$1(D);if($.endsWith("/i/v0/e"))return`${$}/`;let U=$.replace(/\/capture$/,"/");return new URL("i/v0/e/",U.endsWith("/")?U:`${U}/`).toString()}function p$D(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 n$D(D){let $=D,U=ZS(),J=dW();if(U)$=$.replaceAll(U,"<cwd>");if(J)$=$.replaceAll(J,"~");return $}function r$D(D){let $=D,U=ZS(),J=dW();if(U)$=$.replaceAll(U,"<cwd>");if(J)$=$.replaceAll(J,"~");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 o$D(D,$){let U=D?.split(`
`).slice(1).map((J)=>{let Y=J.trim(),X=Y.startsWith("at ")?Y.slice(3):Y,Q=$,F=X,W=X.lastIndexOf(" (");if(W!==-1&&X.endsWith(")"))Q=X.slice(0,W).trim()||$,F=X.slice(W+2,-1);else{let z=X.lastIndexOf(" "),q=z===-1?"":X.slice(z+1);if(/:\d+:\d+$/.test(q))Q=X.slice(0,z).trim()||$,F=q}let K=F.lastIndexOf(":"),Z=K===-1?-1:F.lastIndexOf(":",K-1);if(K===-1||Z===-1)return{function:$,platform:"custom",lang:"javascript"};return{function:Q,filename:n$D(F.slice(0,Z)),lineno:Number.parseInt(F.slice(Z+1,K),10),colno:Number.parseInt(F.slice(K+1),10),platform:"custom",lang:"javascript"}}).filter(Boolean);return U&&U.length>0?U:[{function:$,platform:"custom",lang:"javascript"}]}function a$D(D){if(!D||typeof D!=="object"||!("code"in D))return;let{code:$}=D;return typeof $==="string"?$:void 0}function s$D(D){if(!D||typeof D!=="object")return;let $=D;if(typeof $.status==="number")return $.status;if(typeof $.statusCode==="number")return $.statusCode;let U=$.context&&typeof $.context==="object"?$.context.status:void 0;return typeof U==="number"?U:void 0}function e$D(D){let $=(D instanceof Error?D.message:typeof D==="string"?D:"").toLowerCase();if(t$D.some((U)=>$.includes(U)))return!0;return s$D(D)===401}function zS(D){if(D instanceof uD){if(c$D.has(D.message))return!0;return!1}if(e$D(D))return!1;return!a$D(D)?.startsWith("commander.")}function fBD(D){let $=[],U=D;while(U?.parent){let J=U.name();if(J)$.push(J);U=U.parent}return $.reverse().join(" ")||"unknown"}function D1D(D=KS(dW(),".capgo-credentials")){if(cW)return cW;let $=KS(D,"install-id"),U;try{let J=C$D($)?u$D($,"utf8").trim():"";if(J)U=J;else U=WS(),k$D(D,{recursive:!0}),_$D($,U,{encoding:"utf8",mode:384})}catch{U=WS()}return cW=U,U}async function qS(D){let $=d$D();if(!$)return!1;let U=Y4.CAPGO_CLI_POSTHOG_API_HOST?.trim()||Y4.POSTHOG_API_HOST?.trim()||h$D,J;try{J=i$D(U)}catch{return!1}let Y=p$D(D.error),X=r$D(Y.message),Q=D1D(),F=o$D(Y.stack,D.functionName),W=[D.functionName,D.kind,Y.name||"Error",String(D.status??1)].join(":"),K={token:$,event:"$exception",properties:{distinct_id:Q,$exception_list:[{type:Y.name||"Error",value:X,mechanism:{handled:!0,synthetic:!1},stacktrace:{type:"raw",frames:F}}],$exception_fingerprint:W,architecture:f$D,cli_version:u6.version,error_kind:D.kind,function_name:D.functionName,is_ci:Boolean(Y4.CI),node_version:y$D,os_platform:x$D(),os_release:g$D(),runtime:"cli",status:D.status},timestamp:new Date().toISOString()};try{let Z=new AbortController,z=setTimeout(()=>Z.abort(),l$D);try{return(await fetch(J,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(K),signal:Z.signal})).ok}finally{clearTimeout(z)}}catch{return!1}}var h$D="https://eu.i.posthog.com/i/v0/e/",m$D="phc_NXDyDajQaTQVwb25DEhIVZfxVUn4R0Y348Z7vWYHZUi",l$D=1500,iW="iOS sync validation failed. Delete your iOS folder, then rerun the add and sync commands above and retry.",c$D,t$D,cW;var pW=_(()=>{f4();M1();c$D=new Set([iW]);t$D=["invalid_apikey","invalid apikey","no_key_provided","no key provided","invalid api key or insufficient permissions","does not exist, run first"]});import{env as $1D}from"node:process";function Y1D(D,$){return`${D} ${$.join(" ")}`}function X1D(D){let[$=""]=D.npm_config_user_agent?.trim().toLowerCase().split(/\s+/,1)??[],[U,J]=$.split("/",2);if(U==="bun")return"bunx";if(U==="pnpm")return"pnpm dlx";if(U==="yarn"){let X=Number.parseInt(J??"",10);return Number.isNaN(X)||X<2?"npx -y":"yarn dlx"}if(U==="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 GS(D=$1D){return Y1D(X1D(D),["@capgo/cli@latest","login"])}function mBD(D){let $=D.trim().replaceAll(U1D," ");if(!J1D.has($))throw Error(`Unsupported package manager runner: "${D}"`);let U=$.split(" ").map((X)=>X.trim()).filter(Boolean),[J=D,...Y]=U;return{command:J,args:Y}}var U1D,J1D;var VS=_(()=>{U1D=/\s+/g,J1D=new Set(["bunx","npx","pnpm exec","yarn dlx"])});function P(D,$,U){function J(F,W){if(!F._zod)Object.defineProperty(F,"_zod",{value:{def:W,constr:Q,traits:new Set},enumerable:!1});if(F._zod.traits.has(D))return;F._zod.traits.add(D),$(F,W);let K=Q.prototype,Z=Object.keys(K);for(let z=0;z<Z.length;z++){let q=Z[z];if(!(q in F))F[q]=K[q].bind(F)}}let Y=U?.Parent??Object;class X extends Y{}Object.defineProperty(X,"name",{value:D});function Q(F){var W;let K=U?.Parent?new X:this;J(K,F),(W=K._zod).deferred??(W.deferred=[]);for(let Z of K._zod.deferred)Z();return K}return Object.defineProperty(Q,"init",{value:J}),Object.defineProperty(Q,Symbol.hasInstance,{value:(F)=>{if(U?.Parent&&F instanceof U.Parent)return!0;return F?._zod?.traits?.has(D)}}),Object.defineProperty(Q,"name",{value:D}),Q}function F0(D){if(D)Object.assign(X4,D);return X4}var HS,nW,rW,U$,Q4,X4;var F4=_(()=>{nW=Object.freeze({status:"aborted"});rW=Symbol("zod_brand");U$=class U$ extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}};Q4=class Q4 extends Error{constructor(D){super(`Encountered unidirectional transform during encode: ${D}`);this.name="ZodEncodeError"}};(HS=globalThis).__zod_globalConfig??(HS.__zod_globalConfig={});X4=globalThis.__zod_globalConfig});var i={};S0(i,{unwrapMessage:()=>Y5,uint8ArrayToHex:()=>S1D,uint8ArrayToBase64url:()=>T1D,uint8ArrayToBase64:()=>wS,stringifyPrimitive:()=>l,slugify:()=>tW,shallowClone:()=>eW,safeExtend:()=>L1D,required:()=>A1D,randomString:()=>H1D,propertyKeyTypes:()=>F5,promiseAllObject:()=>V1D,primitiveTypes:()=>DK,prefixIssues:()=>Y6,pick:()=>O1D,partial:()=>M1D,parsedType:()=>d,optionalKeys:()=>$K,omit:()=>j1D,objectClone:()=>z1D,numKeys:()=>I1D,nullish:()=>U1,normalizeParams:()=>r,mergeDefs:()=>O$,merge:()=>R1D,jsonStringifyReplacer:()=>l8,joinValues:()=>g,issue:()=>d8,isPlainObject:()=>Y1,isObject:()=>W4,hexToUint8Array:()=>P1D,getSizableOrigin:()=>W5,getParsedType:()=>B1D,getLengthableOrigin:()=>K5,getEnumValues:()=>X5,getElementAtPath:()=>G1D,floatSafeRemainder:()=>aW,finalizeIssue:()=>p0,extend:()=>N1D,explicitlyAborted:()=>YK,escapeRegex:()=>S6,esc:()=>EU,defineLazy:()=>ND,createTransparentProxy:()=>w1D,cloneDef:()=>q1D,clone:()=>i0,cleanRegex:()=>Q5,cleanEnum:()=>v1D,captureStackTrace:()=>TU,cached:()=>c8,base64urlToUint8Array:()=>E1D,base64ToUint8Array:()=>BS,assignProp:()=>J1,assertNotEqual:()=>F1D,assertNever:()=>K1D,assertIs:()=>W1D,assertEqual:()=>Q1D,assert:()=>Z1D,allowsEval:()=>sW,aborted:()=>X1,NUMBER_FORMAT_RANGES:()=>UK,Class:()=>OS,BIGINT_FORMAT_RANGES:()=>JK});function Q1D(D){return D}function F1D(D){return D}function W1D(D){}function K1D(D){throw Error("Unexpected value in exhaustive check")}function Z1D(D){}function X5(D){let $=Object.values(D).filter((J)=>typeof J==="number");return Object.entries(D).filter(([J,Y])=>$.indexOf(+J)===-1).map(([J,Y])=>Y)}function g(D,$="|"){return D.map((U)=>l(U)).join($)}function l8(D,$){if(typeof $==="bigint")return $.toString();return $}function c8(D){return{get value(){{let U=D();return Object.defineProperty(this,"value",{value:U}),U}throw Error("cached value already set")}}}function U1(D){return D===null||D===void 0}function Q5(D){let $=D.startsWith("^")?1:0,U=D.endsWith("$")?D.length-1:D.length;return D.slice($,U)}function aW(D,$){let U=D/$,J=Math.round(U),Y=Number.EPSILON*Math.max(Math.abs(U),1);if(Math.abs(U-J)<Y)return 0;return U-J}function ND(D,$,U){let J=void 0;Object.defineProperty(D,$,{get(){if(J===IS)return;if(J===void 0)J=IS,J=U();return J},set(Y){Object.defineProperty(D,$,{value:Y})},configurable:!0})}function z1D(D){return Object.create(Object.getPrototypeOf(D),Object.getOwnPropertyDescriptors(D))}function J1(D,$,U){Object.defineProperty(D,$,{value:U,writable:!0,enumerable:!0,configurable:!0})}function O$(...D){let $={};for(let U of D){let J=Object.getOwnPropertyDescriptors(U);Object.assign($,J)}return Object.defineProperties({},$)}function q1D(D){return O$(D._zod.def)}function G1D(D,$){if(!$)return D;return $.reduce((U,J)=>U?.[J],D)}function V1D(D){let $=Object.keys(D),U=$.map((J)=>D[J]);return Promise.all(U).then((J)=>{let Y={};for(let X=0;X<$.length;X++)Y[$[X]]=J[X];return Y})}function H1D(D=10){let U="";for(let J=0;J<D;J++)U+="abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random()*26)];return U}function EU(D){return JSON.stringify(D)}function tW(D){return D.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function W4(D){return typeof D==="object"&&D!==null&&!Array.isArray(D)}function Y1(D){if(W4(D)===!1)return!1;let $=D.constructor;if($===void 0)return!0;if(typeof $!=="function")return!0;let U=$.prototype;if(W4(U)===!1)return!1;if(Object.prototype.hasOwnProperty.call(U,"isPrototypeOf")===!1)return!1;return!0}function eW(D){if(Y1(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 I1D(D){let $=0;for(let U in D)if(Object.prototype.hasOwnProperty.call(D,U))$++;return $}function S6(D){return D.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function i0(D,$,U){let J=new D._zod.constr($??D._zod.def);if(!$||U?.parent)J._zod.parent=D;return J}function r(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 w1D(D){let $;return new Proxy({},{get(U,J,Y){return $??($=D()),Reflect.get($,J,Y)},set(U,J,Y,X){return $??($=D()),Reflect.set($,J,Y,X)},has(U,J){return $??($=D()),Reflect.has($,J)},deleteProperty(U,J){return $??($=D()),Reflect.deleteProperty($,J)},ownKeys(U){return $??($=D()),Reflect.ownKeys($)},getOwnPropertyDescriptor(U,J){return $??($=D()),Reflect.getOwnPropertyDescriptor($,J)},defineProperty(U,J,Y){return $??($=D()),Reflect.defineProperty($,J,Y)}})}function l(D){if(typeof D==="bigint")return D.toString()+"n";if(typeof D==="string")return`"${D}"`;return`${D}`}function $K(D){return Object.keys(D).filter(($)=>{return D[$]._zod.optin==="optional"&&D[$]._zod.optout==="optional"})}function O1D(D,$){let U=D._zod.def,J=U.checks;if(J&&J.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let X=O$(D._zod.def,{get shape(){let Q={};for(let F in $){if(!(F in U.shape))throw Error(`Unrecognized key: "${F}"`);if(!$[F])continue;Q[F]=U.shape[F]}return J1(this,"shape",Q),Q},checks:[]});return i0(D,X)}function j1D(D,$){let U=D._zod.def,J=U.checks;if(J&&J.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let X=O$(D._zod.def,{get shape(){let Q={...D._zod.def.shape};for(let F in $){if(!(F in U.shape))throw Error(`Unrecognized key: "${F}"`);if(!$[F])continue;delete Q[F]}return J1(this,"shape",Q),Q},checks:[]});return i0(D,X)}function N1D(D,$){if(!Y1($))throw Error("Invalid input to extend: expected a plain object");let U=D._zod.def.checks;if(U&&U.length>0){let X=D._zod.def.shape;for(let Q in $)if(Object.getOwnPropertyDescriptor(X,Q)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let Y=O$(D._zod.def,{get shape(){let X={...D._zod.def.shape,...$};return J1(this,"shape",X),X}});return i0(D,Y)}function L1D(D,$){if(!Y1($))throw Error("Invalid input to safeExtend: expected a plain object");let U=O$(D._zod.def,{get shape(){let J={...D._zod.def.shape,...$};return J1(this,"shape",J),J}});return i0(D,U)}function R1D(D,$){if(D._zod.def.checks?.length)throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let U=O$(D._zod.def,{get shape(){let J={...D._zod.def.shape,...$._zod.def.shape};return J1(this,"shape",J),J},get catchall(){return $._zod.def.catchall},checks:$._zod.def.checks??[]});return i0(D,U)}function M1D(D,$,U){let Y=$._zod.def.checks;if(Y&&Y.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let Q=O$($._zod.def,{get shape(){let F=$._zod.def.shape,W={...F};if(U)for(let K in U){if(!(K in F))throw Error(`Unrecognized key: "${K}"`);if(!U[K])continue;W[K]=D?new D({type:"optional",innerType:F[K]}):F[K]}else for(let K in F)W[K]=D?new D({type:"optional",innerType:F[K]}):F[K];return J1(this,"shape",W),W},checks:[]});return i0($,Q)}function A1D(D,$,U){let J=O$($._zod.def,{get shape(){let Y=$._zod.def.shape,X={...Y};if(U)for(let Q in U){if(!(Q in X))throw Error(`Unrecognized key: "${Q}"`);if(!U[Q])continue;X[Q]=new D({type:"nonoptional",innerType:Y[Q]})}else for(let Q in Y)X[Q]=new D({type:"nonoptional",innerType:Y[Q]});return J1(this,"shape",X),X}});return i0($,J)}function X1(D,$=0){if(D.aborted===!0)return!0;for(let U=$;U<D.issues.length;U++)if(D.issues[U]?.continue!==!0)return!0;return!1}function YK(D,$=0){if(D.aborted===!0)return!0;for(let U=$;U<D.issues.length;U++)if(D.issues[U]?.continue===!1)return!0;return!1}function Y6(D,$){return $.map((U)=>{var J;return(J=U).path??(J.path=[]),U.path.unshift(D),U})}function Y5(D){return typeof D==="string"?D:D?.message}function p0(D,$,U){let J=D.message?D.message:Y5(D.inst?._zod.def?.error?.(D))??Y5($?.error?.(D))??Y5(U.customError?.(D))??Y5(U.localeError?.(D))??"Invalid input",{inst:Y,continue:X,input:Q,...F}=D;if(F.path??(F.path=[]),F.message=J,$?.reportInput)F.input=Q;return F}function W5(D){if(D instanceof Set)return"set";if(D instanceof Map)return"map";if(D instanceof File)return"file";return"unknown"}function K5(D){if(Array.isArray(D))return"array";if(typeof D==="string")return"string";return"unknown"}function d(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 U=D;if(U&&Object.getPrototypeOf(U)!==Object.prototype&&"constructor"in U&&U.constructor)return U.constructor.name}}return $}function d8(...D){let[$,U,J]=D;if(typeof $==="string")return{message:$,code:"custom",input:U,inst:J};return{...$}}function v1D(D){return Object.entries(D).filter(([$,U])=>{return Number.isNaN(Number.parseInt($,10))}).map(($)=>$[1])}function BS(D){let $=atob(D),U=new Uint8Array($.length);for(let J=0;J<$.length;J++)U[J]=$.charCodeAt(J);return U}function wS(D){let $="";for(let U=0;U<D.length;U++)$+=String.fromCharCode(D[U]);return btoa($)}function E1D(D){let $=D.replace(/-/g,"+").replace(/_/g,"/"),U="=".repeat((4-$.length%4)%4);return BS($+U)}function T1D(D){return wS(D).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function P1D(D){let $=D.replace(/^0x/,"");if($.length%2!==0)throw Error("Invalid hex string length");let U=new Uint8Array($.length/2);for(let J=0;J<$.length;J+=2)U[J/2]=Number.parseInt($.slice(J,J+2),16);return U}function S1D(D){return Array.from(D).map(($)=>$.toString(16).padStart(2,"0")).join("")}class OS{constructor(...D){}}var IS,TU,sW,B1D=(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: ${$}`)}},F5,DK,UK,JK;var QD=_(()=>{F4();IS=Symbol("evaluating");TU="captureStackTrace"in Error?Error.captureStackTrace:(...D)=>{};sW=c8(()=>{if(X4.jitless)return!1;if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(D){return!1}});F5=new Set(["string","number","symbol"]),DK=new Set(["string","number","bigint","boolean","symbol","undefined"]);UK={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]},JK={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]}});function z5(D,$=(U)=>U.message){let U={},J=[];for(let Y of D.issues)if(Y.path.length>0)U[Y.path[0]]=U[Y.path[0]]||[],U[Y.path[0]].push($(Y));else J.push($(Y));return{formErrors:J,fieldErrors:U}}function q5(D,$=(U)=>U.message){let U={_errors:[]},J=(Y,X=[])=>{for(let Q of Y.issues)if(Q.code==="invalid_union"&&Q.errors.length)Q.errors.map((F)=>J({issues:F},[...X,...Q.path]));else if(Q.code==="invalid_key")J({issues:Q.issues},[...X,...Q.path]);else if(Q.code==="invalid_element")J({issues:Q.issues},[...X,...Q.path]);else{let F=[...X,...Q.path];if(F.length===0)U._errors.push($(Q));else{let W=U,K=0;while(K<F.length){let Z=F[K];if(K!==F.length-1)W[Z]=W[Z]||{_errors:[]};else W[Z]=W[Z]||{_errors:[]},W[Z]._errors.push($(Q));W=W[Z],K++}}}};return J(D),U}function XK(D,$=(U)=>U.message){let U={errors:[]},J=(Y,X=[])=>{var Q,F;for(let W of Y.issues)if(W.code==="invalid_union"&&W.errors.length)W.errors.map((K)=>J({issues:K},[...X,...W.path]));else if(W.code==="invalid_key")J({issues:W.issues},[...X,...W.path]);else if(W.code==="invalid_element")J({issues:W.issues},[...X,...W.path]);else{let K=[...X,...W.path];if(K.length===0){U.errors.push($(W));continue}let Z=U,z=0;while(z<K.length){let q=K[z],G=z===K.length-1;if(typeof q==="string")Z.properties??(Z.properties={}),(Q=Z.properties)[q]??(Q[q]={errors:[]}),Z=Z.properties[q];else Z.items??(Z.items=[]),(F=Z.items)[q]??(F[q]={errors:[]}),Z=Z.items[q];if(G)Z.errors.push($(W));z++}}};return J(D),U}function NS(D){let $=[],U=D.map((J)=>typeof J==="object"?J.key:J);for(let J of U)if(typeof J==="number")$.push(`[${J}]`);else if(typeof J==="symbol")$.push(`[${JSON.stringify(String(J))}]`);else if(/[^\w$]/.test(J))$.push(`[${JSON.stringify(J)}]`);else{if($.length)$.push(".");$.push(J)}return $.join("")}function QK(D){let $=[],U=[...D.issues].sort((J,Y)=>(J.path??[]).length-(Y.path??[]).length);for(let J of U)if($.push(`✖ ${J.message}`),J.path?.length)$.push(` → at ${NS(J.path)}`);return $.join(`
`)}var jS=(D,$)=>{D.name="$ZodError",Object.defineProperty(D,"_zod",{value:D._zod,enumerable:!1}),Object.defineProperty(D,"issues",{value:$,enumerable:!1}),D.message=JSON.stringify($,l8,2),Object.defineProperty(D,"toString",{value:()=>D.message,enumerable:!1})},Z5,X6;var FK=_(()=>{F4();QD();Z5=P("$ZodError",jS),X6=P("$ZodError",jS,{Parent:Error})});var i8=(D)=>($,U,J,Y)=>{let X=J?{...J,async:!1}:{async:!1},Q=$._zod.run({value:U,issues:[]},X);if(Q instanceof Promise)throw new U$;if(Q.issues.length){let F=new(Y?.Err??D)(Q.issues.map((W)=>p0(W,X,F0())));throw TU(F,Y?.callee),F}return Q.value},PU,p8=(D)=>async($,U,J,Y)=>{let X=J?{...J,async:!0}:{async:!0},Q=$._zod.run({value:U,issues:[]},X);if(Q instanceof Promise)Q=await Q;if(Q.issues.length){let F=new(Y?.Err??D)(Q.issues.map((W)=>p0(W,X,F0())));throw TU(F,Y?.callee),F}return Q.value},SU,n8=(D)=>($,U,J)=>{let Y=J?{...J,async:!1}:{async:!1},X=$._zod.run({value:U,issues:[]},Y);if(X instanceof Promise)throw new U$;return X.issues.length?{success:!1,error:new(D??Z5)(X.issues.map((Q)=>p0(Q,Y,F0())))}:{success:!0,data:X.value}},WK,r8=(D)=>async($,U,J)=>{let Y=J?{...J,async:!0}:{async:!0},X=$._zod.run({value:U,issues:[]},Y);if(X instanceof Promise)X=await X;return X.issues.length?{success:!1,error:new D(X.issues.map((Q)=>p0(Q,Y,F0())))}:{success:!0,data:X.value}},KK,bU=(D)=>($,U,J)=>{let Y=J?{...J,direction:"backward"}:{direction:"backward"};return i8(D)($,U,Y)},C1D,CU=(D)=>($,U,J)=>{return i8(D)($,U,J)},k1D,kU=(D)=>async($,U,J)=>{let Y=J?{...J,direction:"backward"}:{direction:"backward"};return p8(D)($,U,Y)},u1D,uU=(D)=>async($,U,J)=>{return p8(D)($,U,J)},_1D,_U=(D)=>($,U,J)=>{let Y=J?{...J,direction:"backward"}:{direction:"backward"};return n8(D)($,U,Y)},x1D,xU=(D)=>($,U,J)=>{return n8(D)($,U,J)},g1D,gU=(D)=>async($,U,J)=>{let Y=J?{...J,direction:"backward"}:{direction:"backward"};return r8(D)($,U,Y)},f1D,fU=(D)=>async($,U,J)=>{return r8(D)($,U,J)},y1D;var ZK=_(()=>{F4();FK();QD();PU=i8(X6),SU=p8(X6),WK=n8(X6),KK=r8(X6),C1D=bU(X6),k1D=CU(X6),u1D=kU(X6),_1D=uU(X6),x1D=_U(X6),g1D=xU(X6),f1D=gU(X6),y1D=fU(X6)});var G6={};S0(G6,{xid:()=>VK,uuid7:()=>c1D,uuid6:()=>l1D,uuid4:()=>m1D,uuid:()=>K4,uppercase:()=>yK,unicodeEmail:()=>LS,undefined:()=>gK,ulid:()=>GK,time:()=>SK,string:()=>CK,sha512_hex:()=>Z4D,sha512_base64url:()=>q4D,sha512_base64:()=>z4D,sha384_hex:()=>F4D,sha384_base64url:()=>K4D,sha384_base64:()=>W4D,sha256_hex:()=>Y4D,sha256_base64url:()=>Q4D,sha256_base64:()=>X4D,sha1_hex:()=>$4D,sha1_base64url:()=>J4D,sha1_base64:()=>U4D,rfc5322Email:()=>i1D,number:()=>G5,null:()=>xK,nanoid:()=>IK,md5_hex:()=>s1D,md5_base64url:()=>D4D,md5_base64:()=>e1D,mac:()=>RK,lowercase:()=>fK,ksuid:()=>HK,ipv6:()=>LK,ipv4:()=>NK,integer:()=>uK,idnEmail:()=>p1D,httpProtocol:()=>EK,html5Email:()=>d1D,hostname:()=>o1D,hex:()=>t1D,guid:()=>wK,extendedDuration:()=>h1D,emoji:()=>jK,email:()=>OK,e164:()=>TK,duration:()=>BK,domain:()=>a1D,datetime:()=>bK,date:()=>PK,cuid2:()=>qK,cuid:()=>zK,cidrv6:()=>AK,cidrv4:()=>MK,browserEmail:()=>n1D,boolean:()=>_K,bigint:()=>kK,base64url:()=>yU,base64:()=>vK});function jK(){return new RegExp(r1D,"u")}function MS(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}}`:"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function SK(D){return new RegExp(`^${MS(D)}$`)}function bK(D){let $=MS({precision:D.precision}),U=["Z"];if(D.local)U.push("");if(D.offset)U.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let J=`${$}(?:${U.join("|")})`;return new RegExp(`^${RS}T(?:${J})$`)}function V5(D,$){return new RegExp(`^[A-Za-z0-9+/]{${D}}${$}$`)}function H5(D){return new RegExp(`^[A-Za-z0-9_-]{${D}}$`)}var zK,qK,GK,VK,HK,IK,BK,h1D,wK,K4=(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})$`)},m1D,l1D,c1D,OK,d1D,i1D,LS,p1D,n1D,r1D="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",NK,LK,RK=(D)=>{let $=S6(D??":");return new RegExp(`^(?:[0-9A-F]{2}${$}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${$}){5}[0-9a-f]{2}$`)},MK,AK,vK,yU,o1D,a1D,EK,TK,RS="(?:(?:\\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])))",PK,CK=(D)=>{let $=D?`[\\s\\S]{${D?.minimum??0},${D?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${$}$`)},kK,uK,G5,_K,xK,gK,fK,yK,t1D,s1D,e1D,D4D,$4D,U4D,J4D,Y4D,X4D,Q4D,F4D,W4D,K4D,Z4D,z4D,q4D;var hU=_(()=>{QD();zK=/^[cC][0-9a-z]{6,}$/,qK=/^[0-9a-z]+$/,GK=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,VK=/^[0-9a-vA-V]{20}$/,HK=/^[A-Za-z0-9]{27}$/,IK=/^[a-zA-Z0-9_-]{21}$/,BK=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,h1D=/^[-+]?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)?)??$/,wK=/^([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})$/,m1D=K4(4),l1D=K4(6),c1D=K4(7),OK=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,d1D=/^[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])?)*$/,i1D=/^(([^<>()\[\]\\.,;:\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,}))$/,LS=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,p1D=LS,n1D=/^[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])?)*$/;NK=/^(?:(?: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])$/,LK=/^(([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}|:))$/,MK=/^((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])$/,AK=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,vK=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,yU=/^[A-Za-z0-9_-]*$/,o1D=/^(?=.{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])?)*\.?$/,a1D=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,EK=/^https?$/,TK=/^\+[1-9]\d{6,14}$/,PK=new RegExp(`^${RS}$`);kK=/^-?\d+n?$/,uK=/^-?\d+$/,G5=/^-?\d+(?:\.\d+)?$/,_K=/^(?:true|false)$/i,xK=/^null$/i,gK=/^undefined$/i,fK=/^[^A-Z]*$/,yK=/^[^a-z]*$/,t1D=/^[0-9a-fA-F]*$/;s1D=/^[0-9a-fA-F]{32}$/,e1D=V5(22,"=="),D4D=H5(22),$4D=/^[0-9a-fA-F]{40}$/,U4D=V5(27,"="),J4D=H5(27),Y4D=/^[0-9a-fA-F]{64}$/,X4D=V5(43,"="),Q4D=H5(43),F4D=/^[0-9a-fA-F]{96}$/,W4D=V5(64,""),K4D=H5(64),Z4D=/^[0-9a-fA-F]{128}$/,z4D=V5(86,"=="),q4D=H5(86)});function AS(D,$,U){if(D.issues.length)$.issues.push(...Y6(U,D.issues))}var cD,vS,mU,lU,hK,mK,lK,cK,dK,iK,pK,nK,rK,o8,oK,aK,tK,sK,eK,DZ,$Z,UZ,JZ;var cU=_(()=>{F4();hU();QD();cD=P("$ZodCheck",(D,$)=>{var U;D._zod??(D._zod={}),D._zod.def=$,(U=D._zod).onattach??(U.onattach=[])}),vS={number:"number",bigint:"bigint",object:"date"},mU=P("$ZodCheckLessThan",(D,$)=>{cD.init(D,$);let U=vS[typeof $.value];D._zod.onattach.push((J)=>{let Y=J._zod.bag,X=($.inclusive?Y.maximum:Y.exclusiveMaximum)??Number.POSITIVE_INFINITY;if($.value<X)if($.inclusive)Y.maximum=$.value;else Y.exclusiveMaximum=$.value}),D._zod.check=(J)=>{if($.inclusive?J.value<=$.value:J.value<$.value)return;J.issues.push({origin:U,code:"too_big",maximum:typeof $.value==="object"?$.value.getTime():$.value,input:J.value,inclusive:$.inclusive,inst:D,continue:!$.abort})}}),lU=P("$ZodCheckGreaterThan",(D,$)=>{cD.init(D,$);let U=vS[typeof $.value];D._zod.onattach.push((J)=>{let Y=J._zod.bag,X=($.inclusive?Y.minimum:Y.exclusiveMinimum)??Number.NEGATIVE_INFINITY;if($.value>X)if($.inclusive)Y.minimum=$.value;else Y.exclusiveMinimum=$.value}),D._zod.check=(J)=>{if($.inclusive?J.value>=$.value:J.value>$.value)return;J.issues.push({origin:U,code:"too_small",minimum:typeof $.value==="object"?$.value.getTime():$.value,input:J.value,inclusive:$.inclusive,inst:D,continue:!$.abort})}}),hK=P("$ZodCheckMultipleOf",(D,$)=>{cD.init(D,$),D._zod.onattach.push((U)=>{var J;(J=U._zod.bag).multipleOf??(J.multipleOf=$.value)}),D._zod.check=(U)=>{if(typeof U.value!==typeof $.value)throw Error("Cannot mix number and bigint in multiple_of check.");if(typeof U.value==="bigint"?U.value%$.value===BigInt(0):aW(U.value,$.value)===0)return;U.issues.push({origin:typeof U.value,code:"not_multiple_of",divisor:$.value,input:U.value,inst:D,continue:!$.abort})}}),mK=P("$ZodCheckNumberFormat",(D,$)=>{cD.init(D,$),$.format=$.format||"float64";let U=$.format?.includes("int"),J=U?"int":"number",[Y,X]=UK[$.format];D._zod.onattach.push((Q)=>{let F=Q._zod.bag;if(F.format=$.format,F.minimum=Y,F.maximum=X,U)F.pattern=uK}),D._zod.check=(Q)=>{let F=Q.value;if(U){if(!Number.isInteger(F)){Q.issues.push({expected:J,format:$.format,code:"invalid_type",continue:!1,input:F,inst:D});return}if(!Number.isSafeInteger(F)){if(F>0)Q.issues.push({input:F,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:D,origin:J,inclusive:!0,continue:!$.abort});else Q.issues.push({input:F,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:D,origin:J,inclusive:!0,continue:!$.abort});return}}if(F<Y)Q.issues.push({origin:"number",input:F,code:"too_small",minimum:Y,inclusive:!0,inst:D,continue:!$.abort});if(F>X)Q.issues.push({origin:"number",input:F,code:"too_big",maximum:X,inclusive:!0,inst:D,continue:!$.abort})}}),lK=P("$ZodCheckBigIntFormat",(D,$)=>{cD.init(D,$);let[U,J]=JK[$.format];D._zod.onattach.push((Y)=>{let X=Y._zod.bag;X.format=$.format,X.minimum=U,X.maximum=J}),D._zod.check=(Y)=>{let X=Y.value;if(X<U)Y.issues.push({origin:"bigint",input:X,code:"too_small",minimum:U,inclusive:!0,inst:D,continue:!$.abort});if(X>J)Y.issues.push({origin:"bigint",input:X,code:"too_big",maximum:J,inclusive:!0,inst:D,continue:!$.abort})}}),cK=P("$ZodCheckMaxSize",(D,$)=>{var U;cD.init(D,$),(U=D._zod.def).when??(U.when=(J)=>{let Y=J.value;return!U1(Y)&&Y.size!==void 0}),D._zod.onattach.push((J)=>{let Y=J._zod.bag.maximum??Number.POSITIVE_INFINITY;if($.maximum<Y)J._zod.bag.maximum=$.maximum}),D._zod.check=(J)=>{let Y=J.value;if(Y.size<=$.maximum)return;J.issues.push({origin:W5(Y),code:"too_big",maximum:$.maximum,inclusive:!0,input:Y,inst:D,continue:!$.abort})}}),dK=P("$ZodCheckMinSize",(D,$)=>{var U;cD.init(D,$),(U=D._zod.def).when??(U.when=(J)=>{let Y=J.value;return!U1(Y)&&Y.size!==void 0}),D._zod.onattach.push((J)=>{let Y=J._zod.bag.minimum??Number.NEGATIVE_INFINITY;if($.minimum>Y)J._zod.bag.minimum=$.minimum}),D._zod.check=(J)=>{let Y=J.value;if(Y.size>=$.minimum)return;J.issues.push({origin:W5(Y),code:"too_small",minimum:$.minimum,inclusive:!0,input:Y,inst:D,continue:!$.abort})}}),iK=P("$ZodCheckSizeEquals",(D,$)=>{var U;cD.init(D,$),(U=D._zod.def).when??(U.when=(J)=>{let Y=J.value;return!U1(Y)&&Y.size!==void 0}),D._zod.onattach.push((J)=>{let Y=J._zod.bag;Y.minimum=$.size,Y.maximum=$.size,Y.size=$.size}),D._zod.check=(J)=>{let Y=J.value,X=Y.size;if(X===$.size)return;let Q=X>$.size;J.issues.push({origin:W5(Y),...Q?{code:"too_big",maximum:$.size}:{code:"too_small",minimum:$.size},inclusive:!0,exact:!0,input:J.value,inst:D,continue:!$.abort})}}),pK=P("$ZodCheckMaxLength",(D,$)=>{var U;cD.init(D,$),(U=D._zod.def).when??(U.when=(J)=>{let Y=J.value;return!U1(Y)&&Y.length!==void 0}),D._zod.onattach.push((J)=>{let Y=J._zod.bag.maximum??Number.POSITIVE_INFINITY;if($.maximum<Y)J._zod.bag.maximum=$.maximum}),D._zod.check=(J)=>{let Y=J.value;if(Y.length<=$.maximum)return;let Q=K5(Y);J.issues.push({origin:Q,code:"too_big",maximum:$.maximum,inclusive:!0,input:Y,inst:D,continue:!$.abort})}}),nK=P("$ZodCheckMinLength",(D,$)=>{var U;cD.init(D,$),(U=D._zod.def).when??(U.when=(J)=>{let Y=J.value;return!U1(Y)&&Y.length!==void 0}),D._zod.onattach.push((J)=>{let Y=J._zod.bag.minimum??Number.NEGATIVE_INFINITY;if($.minimum>Y)J._zod.bag.minimum=$.minimum}),D._zod.check=(J)=>{let Y=J.value;if(Y.length>=$.minimum)return;let Q=K5(Y);J.issues.push({origin:Q,code:"too_small",minimum:$.minimum,inclusive:!0,input:Y,inst:D,continue:!$.abort})}}),rK=P("$ZodCheckLengthEquals",(D,$)=>{var U;cD.init(D,$),(U=D._zod.def).when??(U.when=(J)=>{let Y=J.value;return!U1(Y)&&Y.length!==void 0}),D._zod.onattach.push((J)=>{let Y=J._zod.bag;Y.minimum=$.length,Y.maximum=$.length,Y.length=$.length}),D._zod.check=(J)=>{let Y=J.value,X=Y.length;if(X===$.length)return;let Q=K5(Y),F=X>$.length;J.issues.push({origin:Q,...F?{code:"too_big",maximum:$.length}:{code:"too_small",minimum:$.length},inclusive:!0,exact:!0,input:J.value,inst:D,continue:!$.abort})}}),o8=P("$ZodCheckStringFormat",(D,$)=>{var U,J;if(cD.init(D,$),D._zod.onattach.push((Y)=>{let X=Y._zod.bag;if(X.format=$.format,$.pattern)X.patterns??(X.patterns=new Set),X.patterns.add($.pattern)}),$.pattern)(U=D._zod).check??(U.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(J=D._zod).check??(J.check=()=>{})}),oK=P("$ZodCheckRegex",(D,$)=>{o8.init(D,$),D._zod.check=(U)=>{if($.pattern.lastIndex=0,$.pattern.test(U.value))return;U.issues.push({origin:"string",code:"invalid_format",format:"regex",input:U.value,pattern:$.pattern.toString(),inst:D,continue:!$.abort})}}),aK=P("$ZodCheckLowerCase",(D,$)=>{$.pattern??($.pattern=fK),o8.init(D,$)}),tK=P("$ZodCheckUpperCase",(D,$)=>{$.pattern??($.pattern=yK),o8.init(D,$)}),sK=P("$ZodCheckIncludes",(D,$)=>{cD.init(D,$);let U=S6($.includes),J=new RegExp(typeof $.position==="number"?`^.{${$.position}}${U}`:U);$.pattern=J,D._zod.onattach.push((Y)=>{let X=Y._zod.bag;X.patterns??(X.patterns=new Set),X.patterns.add(J)}),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})}}),eK=P("$ZodCheckStartsWith",(D,$)=>{cD.init(D,$);let U=new RegExp(`^${S6($.prefix)}.*`);$.pattern??($.pattern=U),D._zod.onattach.push((J)=>{let Y=J._zod.bag;Y.patterns??(Y.patterns=new Set),Y.patterns.add(U)}),D._zod.check=(J)=>{if(J.value.startsWith($.prefix))return;J.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:$.prefix,input:J.value,inst:D,continue:!$.abort})}}),DZ=P("$ZodCheckEndsWith",(D,$)=>{cD.init(D,$);let U=new RegExp(`.*${S6($.suffix)}$`);$.pattern??($.pattern=U),D._zod.onattach.push((J)=>{let Y=J._zod.bag;Y.patterns??(Y.patterns=new Set),Y.patterns.add(U)}),D._zod.check=(J)=>{if(J.value.endsWith($.suffix))return;J.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:$.suffix,input:J.value,inst:D,continue:!$.abort})}});$Z=P("$ZodCheckProperty",(D,$)=>{cD.init(D,$),D._zod.check=(U)=>{let J=$.schema._zod.run({value:U.value[$.property],issues:[]},{});if(J instanceof Promise)return J.then((Y)=>AS(Y,U,$.property));AS(J,U,$.property);return}}),UZ=P("$ZodCheckMimeType",(D,$)=>{cD.init(D,$);let U=new Set($.mime);D._zod.onattach.push((J)=>{J._zod.bag.mime=$.mime}),D._zod.check=(J)=>{if(U.has(J.value.type))return;J.issues.push({code:"invalid_value",values:$.mime,input:J.value.type,inst:D,continue:!$.abort})}}),JZ=P("$ZodCheckOverwrite",(D,$)=>{cD.init(D,$),D._zod.check=(U)=>{U.value=$.tx(U.value)}})});class dU{constructor(D=[]){if(this.content=[],this.indent=0,this)this.args=D}indented(D){this.indent+=1,D(this),this.indent-=1}write(D){if(typeof D==="function"){D(this,{execution:"sync"}),D(this,{execution:"async"});return}let U=D.split(`
`).filter((X)=>X),J=Math.min(...U.map((X)=>X.length-X.trimStart().length)),Y=U.map((X)=>X.slice(J)).map((X)=>" ".repeat(this.indent*2)+X);for(let X of Y)this.content.push(X)}compile(){let D=Function,$=this?.args,J=[...(this?.content??[""]).map((Y)=>` ${Y}`)];return new D(...$,J.join(`
`))}}var YZ;var XZ=_(()=>{YZ={major:4,minor:4,patch:3}});function EZ(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 lS(D){if(!yU.test(D))return!1;let $=D.replace(/[-_]/g,(J)=>J==="-"?"+":"/"),U=$.padEnd(Math.ceil($.length/4)*4,"=");return EZ(U)}function cS(D,$=null){try{let U=D.split(".");if(U.length!==3)return!1;let[J]=U;if(!J)return!1;let Y=JSON.parse(atob(J));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 TS(D,$,U){if(D.issues.length)$.issues.push(...Y6(U,D.issues));$.value[U]=D.value}function rU(D,$,U,J,Y,X){let Q=U in J;if(D.issues.length){if(Y&&X&&!Q)return;$.issues.push(...Y6(U,D.issues))}if(!Q&&!Y){if(!D.issues.length)$.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[U]});return}if(D.value===void 0){if(Q)$.value[U]=void 0}else $.value[U]=D.value}function dS(D){let $=Object.keys(D.shape);for(let J of $)if(!D.shape?.[J]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${J}": expected a Zod schema`);let U=$K(D.shape);return{...D,keys:$,keySet:new Set($),numKeys:$.length,optionalKeys:new Set(U)}}function iS(D,$,U,J,Y,X){let Q=[],F=Y.keySet,W=Y.catchall._zod,K=W.def.type,Z=W.optin==="optional",z=W.optout==="optional";for(let q in $){if(q==="__proto__")continue;if(F.has(q))continue;if(K==="never"){Q.push(q);continue}let G=W.run({value:$[q],issues:[]},J);if(G instanceof Promise)D.push(G.then((V)=>rU(V,U,q,$,Z,z)));else rU(G,U,q,$,Z,z)}if(Q.length)U.issues.push({code:"unrecognized_keys",keys:Q,input:$,inst:X});if(!D.length)return U;return Promise.all(D).then(()=>{return U})}function PS(D,$,U,J){for(let X of D)if(X.issues.length===0)return $.value=X.value,$;let Y=D.filter((X)=>!X1(X));if(Y.length===1)return $.value=Y[0].value,Y[0];return $.issues.push({code:"invalid_union",input:$.value,inst:U,errors:D.map((X)=>X.issues.map((Q)=>p0(Q,J,F0())))}),$}function SS(D,$,U,J){let Y=D.filter((X)=>X.issues.length===0);if(Y.length===1)return $.value=Y[0].value,$;if(Y.length===0)$.issues.push({code:"invalid_union",input:$.value,inst:U,errors:D.map((X)=>X.issues.map((Q)=>p0(Q,J,F0())))});else $.issues.push({code:"invalid_union",input:$.value,inst:U,errors:[],inclusive:!1});return $}function QZ(D,$){if(D===$)return{valid:!0,data:D};if(D instanceof Date&&$ instanceof Date&&+D===+$)return{valid:!0,data:D};if(Y1(D)&&Y1($)){let U=Object.keys($),J=Object.keys(D).filter((X)=>U.indexOf(X)!==-1),Y={...D,...$};for(let X of J){let Q=QZ(D[X],$[X]);if(!Q.valid)return{valid:!1,mergeErrorPath:[X,...Q.mergeErrorPath]};Y[X]=Q.data}return{valid:!0,data:Y}}if(Array.isArray(D)&&Array.isArray($)){if(D.length!==$.length)return{valid:!1,mergeErrorPath:[]};let U=[];for(let J=0;J<D.length;J++){let Y=D[J],X=$[J],Q=QZ(Y,X);if(!Q.valid)return{valid:!1,mergeErrorPath:[J,...Q.mergeErrorPath]};U.push(Q.data)}return{valid:!0,data:U}}return{valid:!1,mergeErrorPath:[]}}function bS(D,$,U){let J=new Map,Y;for(let F of $.issues)if(F.code==="unrecognized_keys"){Y??(Y=F);for(let W of F.keys){if(!J.has(W))J.set(W,{});J.get(W).l=!0}}else D.issues.push(F);for(let F of U.issues)if(F.code==="unrecognized_keys")for(let W of F.keys){if(!J.has(W))J.set(W,{});J.get(W).r=!0}else D.issues.push(F);let X=[...J].filter(([,F])=>F.l&&F.r).map(([F])=>F);if(X.length&&Y)D.issues.push({...Y,keys:X});if(X1(D))return D;let Q=QZ($.value,U.value);if(!Q.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(Q.mergeErrorPath)}`);return D.value=Q.data,D}function CS(D,$){for(let U=D.length-1;U>=0;U--)if(D[U]._zod[$]!=="optional")return U+1;return 0}function kS(D,$,U){if(D.issues.length)$.issues.push(...Y6(U,D.issues));$.value[U]=D.value}function uS(D,$,U,J,Y){for(let X=0;X<U.length;X++){let Q=D[X],F=X<J.length;if(Q.issues.length){if(!F&&X>=Y){$.value.length=X;break}$.issues.push(...Y6(X,Q.issues))}$.value[X]=Q.value}for(let X=$.value.length-1;X>=J.length;X--)if(U[X]._zod.optout==="optional"&&$.value[X]===void 0)$.value.length=X;else break;return $}function _S(D,$,U,J,Y,X,Q){if(D.issues.length)if(F5.has(typeof J))U.issues.push(...Y6(J,D.issues));else U.issues.push({code:"invalid_key",origin:"map",input:Y,inst:X,issues:D.issues.map((F)=>p0(F,Q,F0()))});if($.issues.length)if(F5.has(typeof J))U.issues.push(...Y6(J,$.issues));else U.issues.push({origin:"map",code:"invalid_element",input:Y,inst:X,key:J,issues:$.issues.map((F)=>p0(F,Q,F0()))});U.value.set(D.value,$.value)}function xS(D,$){if(D.issues.length)$.issues.push(...D.issues);$.value.add(D.value)}function gS(D,$){if($===void 0&&(D.issues.length||D.fallback))return{issues:[],value:void 0};return D}function fS(D,$){if(D.value===void 0)D.value=$.defaultValue;return D}function yS(D,$){if(!D.issues.length&&D.value===void 0)D.issues.push({code:"invalid_type",expected:"nonoptional",input:D.value,inst:$});return D}function iU(D,$,U){if(D.issues.length)return D.aborted=!0,D;return $._zod.run({value:D.value,issues:D.issues,fallback:D.fallback},U)}function pU(D,$,U){if(D.issues.length)return D.aborted=!0,D;if((U.direction||"forward")==="forward"){let Y=$.transform(D.value,D);if(Y instanceof Promise)return Y.then((X)=>nU(D,X,$.out,U));return nU(D,Y,$.out,U)}else{let Y=$.reverseTransform(D.value,D);if(Y instanceof Promise)return Y.then((X)=>nU(D,X,$.in,U));return nU(D,Y,$.in,U)}}function nU(D,$,U,J){if(D.issues.length)return D.aborted=!0,D;return U._zod.run({value:$,issues:D.issues},J)}function hS(D){return D.value=Object.freeze(D.value),D}function mS(D,$,U,J){if(!D){let Y={code:"custom",input:U,inst:J,path:[...J._zod.def.path??[]],continue:!J._zod.def.abort};if(J._zod.def.params)Y.params=J._zod.def.params;$.issues.push(d8(Y))}}var zD,Z4,mD,FZ,WZ,KZ,ZZ,zZ,qZ,GZ,VZ,HZ,IZ,BZ,wZ,OZ,jZ,NZ,LZ,RZ,MZ,AZ,vZ,TZ,PZ,SZ,bZ,CZ,oU,kZ,I5,aU,uZ,_Z,xZ,gZ,fZ,yZ,hZ,mZ,lZ,cZ,pS,dZ,B5,iZ,pZ,nZ,tU,rZ,oZ,aZ,tZ,sZ,eZ,Dz,sU,$z,Uz,Jz,Yz,Xz,Qz,Fz,Wz,eU,w5,Kz,Zz,zz,qz,Gz,Vz,Hz;var Iz=_(()=>{cU();F4();ZK();hU();QD();XZ();QD();zD=P("$ZodType",(D,$)=>{var U;D??(D={}),D._zod.def=$,D._zod.bag=D._zod.bag||{},D._zod.version=YZ;let J=[...D._zod.def.checks??[]];if(D._zod.traits.has("$ZodCheck"))J.unshift(D);for(let Y of J)for(let X of Y._zod.onattach)X(D);if(J.length===0)(U=D._zod).deferred??(U.deferred=[]),D._zod.deferred?.push(()=>{D._zod.run=D._zod.parse});else{let Y=(Q,F,W)=>{let K=X1(Q),Z;for(let z of F){if(z._zod.def.when){if(YK(Q))continue;if(!z._zod.def.when(Q))continue}else if(K)continue;let q=Q.issues.length,G=z._zod.check(Q);if(G instanceof Promise&&W?.async===!1)throw new U$;if(Z||G instanceof Promise)Z=(Z??Promise.resolve()).then(async()=>{if(await G,Q.issues.length===q)return;if(!K)K=X1(Q,q)});else{if(Q.issues.length===q)continue;if(!K)K=X1(Q,q)}}if(Z)return Z.then(()=>{return Q});return Q},X=(Q,F,W)=>{if(X1(Q))return Q.aborted=!0,Q;let K=Y(F,J,W);if(K instanceof Promise){if(W.async===!1)throw new U$;return K.then((Z)=>D._zod.parse(Z,W))}return D._zod.parse(K,W)};D._zod.run=(Q,F)=>{if(F.skipChecks)return D._zod.parse(Q,F);if(F.direction==="backward"){let K=D._zod.parse({value:Q.value,issues:[]},{...F,skipChecks:!0});if(K instanceof Promise)return K.then((Z)=>{return X(Z,Q,F)});return X(K,Q,F)}let W=D._zod.parse(Q,F);if(W instanceof Promise){if(F.async===!1)throw new U$;return W.then((K)=>Y(K,J,F))}return Y(W,J,F)}}ND(D,"~standard",()=>({validate:(Y)=>{try{let X=WK(D,Y);return X.success?{value:X.data}:{issues:X.error?.issues}}catch(X){return KK(D,Y).then((Q)=>Q.success?{value:Q.data}:{issues:Q.error?.issues})}},vendor:"zod",version:1}))}),Z4=P("$ZodString",(D,$)=>{zD.init(D,$),D._zod.pattern=[...D?._zod.bag?.patterns??[]].pop()??CK(D._zod.bag),D._zod.parse=(U,J)=>{if($.coerce)try{U.value=String(U.value)}catch(Y){}if(typeof U.value==="string")return U;return U.issues.push({expected:"string",code:"invalid_type",input:U.value,inst:D}),U}}),mD=P("$ZodStringFormat",(D,$)=>{o8.init(D,$),Z4.init(D,$)}),FZ=P("$ZodGUID",(D,$)=>{$.pattern??($.pattern=wK),mD.init(D,$)}),WZ=P("$ZodUUID",(D,$)=>{if($.version){let J={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[$.version];if(J===void 0)throw Error(`Invalid UUID version: "${$.version}"`);$.pattern??($.pattern=K4(J))}else $.pattern??($.pattern=K4());mD.init(D,$)}),KZ=P("$ZodEmail",(D,$)=>{$.pattern??($.pattern=OK),mD.init(D,$)}),ZZ=P("$ZodURL",(D,$)=>{mD.init(D,$),D._zod.check=(U)=>{try{let J=U.value.trim();if(!$.normalize&&$.protocol?.source===EK.source){if(!/^https?:\/\//i.test(J)){U.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:U.value,inst:D,continue:!$.abort});return}}let Y=new URL(J);if($.hostname){if($.hostname.lastIndex=0,!$.hostname.test(Y.hostname))U.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:$.hostname.source,input:U.value,inst:D,continue:!$.abort})}if($.protocol){if($.protocol.lastIndex=0,!$.protocol.test(Y.protocol.endsWith(":")?Y.protocol.slice(0,-1):Y.protocol))U.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:$.protocol.source,input:U.value,inst:D,continue:!$.abort})}if($.normalize)U.value=Y.href;else U.value=J;return}catch(J){U.issues.push({code:"invalid_format",format:"url",input:U.value,inst:D,continue:!$.abort})}}}),zZ=P("$ZodEmoji",(D,$)=>{$.pattern??($.pattern=jK()),mD.init(D,$)}),qZ=P("$ZodNanoID",(D,$)=>{$.pattern??($.pattern=IK),mD.init(D,$)}),GZ=P("$ZodCUID",(D,$)=>{$.pattern??($.pattern=zK),mD.init(D,$)}),VZ=P("$ZodCUID2",(D,$)=>{$.pattern??($.pattern=qK),mD.init(D,$)}),HZ=P("$ZodULID",(D,$)=>{$.pattern??($.pattern=GK),mD.init(D,$)}),IZ=P("$ZodXID",(D,$)=>{$.pattern??($.pattern=VK),mD.init(D,$)}),BZ=P("$ZodKSUID",(D,$)=>{$.pattern??($.pattern=HK),mD.init(D,$)}),wZ=P("$ZodISODateTime",(D,$)=>{$.pattern??($.pattern=bK($)),mD.init(D,$)}),OZ=P("$ZodISODate",(D,$)=>{$.pattern??($.pattern=PK),mD.init(D,$)}),jZ=P("$ZodISOTime",(D,$)=>{$.pattern??($.pattern=SK($)),mD.init(D,$)}),NZ=P("$ZodISODuration",(D,$)=>{$.pattern??($.pattern=BK),mD.init(D,$)}),LZ=P("$ZodIPv4",(D,$)=>{$.pattern??($.pattern=NK),mD.init(D,$),D._zod.bag.format="ipv4"}),RZ=P("$ZodIPv6",(D,$)=>{$.pattern??($.pattern=LK),mD.init(D,$),D._zod.bag.format="ipv6",D._zod.check=(U)=>{try{new URL(`http://[${U.value}]`)}catch{U.issues.push({code:"invalid_format",format:"ipv6",input:U.value,inst:D,continue:!$.abort})}}}),MZ=P("$ZodMAC",(D,$)=>{$.pattern??($.pattern=RK($.delimiter)),mD.init(D,$),D._zod.bag.format="mac"}),AZ=P("$ZodCIDRv4",(D,$)=>{$.pattern??($.pattern=MK),mD.init(D,$)}),vZ=P("$ZodCIDRv6",(D,$)=>{$.pattern??($.pattern=AK),mD.init(D,$),D._zod.check=(U)=>{let J=U.value.split("/");try{if(J.length!==2)throw Error();let[Y,X]=J;if(!X)throw Error();let Q=Number(X);if(`${Q}`!==X)throw Error();if(Q<0||Q>128)throw Error();new URL(`http://[${Y}]`)}catch{U.issues.push({code:"invalid_format",format:"cidrv6",input:U.value,inst:D,continue:!$.abort})}}});TZ=P("$ZodBase64",(D,$)=>{$.pattern??($.pattern=vK),mD.init(D,$),D._zod.bag.contentEncoding="base64",D._zod.check=(U)=>{if(EZ(U.value))return;U.issues.push({code:"invalid_format",format:"base64",input:U.value,inst:D,continue:!$.abort})}});PZ=P("$ZodBase64URL",(D,$)=>{$.pattern??($.pattern=yU),mD.init(D,$),D._zod.bag.contentEncoding="base64url",D._zod.check=(U)=>{if(lS(U.value))return;U.issues.push({code:"invalid_format",format:"base64url",input:U.value,inst:D,continue:!$.abort})}}),SZ=P("$ZodE164",(D,$)=>{$.pattern??($.pattern=TK),mD.init(D,$)});bZ=P("$ZodJWT",(D,$)=>{mD.init(D,$),D._zod.check=(U)=>{if(cS(U.value,$.alg))return;U.issues.push({code:"invalid_format",format:"jwt",input:U.value,inst:D,continue:!$.abort})}}),CZ=P("$ZodCustomStringFormat",(D,$)=>{mD.init(D,$),D._zod.check=(U)=>{if($.fn(U.value))return;U.issues.push({code:"invalid_format",format:$.format,input:U.value,inst:D,continue:!$.abort})}}),oU=P("$ZodNumber",(D,$)=>{zD.init(D,$),D._zod.pattern=D._zod.bag.pattern??G5,D._zod.parse=(U,J)=>{if($.coerce)try{U.value=Number(U.value)}catch(Q){}let Y=U.value;if(typeof Y==="number"&&!Number.isNaN(Y)&&Number.isFinite(Y))return U;let X=typeof Y==="number"?Number.isNaN(Y)?"NaN":!Number.isFinite(Y)?"Infinity":void 0:void 0;return U.issues.push({expected:"number",code:"invalid_type",input:Y,inst:D,...X?{received:X}:{}}),U}}),kZ=P("$ZodNumberFormat",(D,$)=>{mK.init(D,$),oU.init(D,$)}),I5=P("$ZodBoolean",(D,$)=>{zD.init(D,$),D._zod.pattern=_K,D._zod.parse=(U,J)=>{if($.coerce)try{U.value=Boolean(U.value)}catch(X){}let Y=U.value;if(typeof Y==="boolean")return U;return U.issues.push({expected:"boolean",code:"invalid_type",input:Y,inst:D}),U}}),aU=P("$ZodBigInt",(D,$)=>{zD.init(D,$),D._zod.pattern=kK,D._zod.parse=(U,J)=>{if($.coerce)try{U.value=BigInt(U.value)}catch(Y){}if(typeof U.value==="bigint")return U;return U.issues.push({expected:"bigint",code:"invalid_type",input:U.value,inst:D}),U}}),uZ=P("$ZodBigIntFormat",(D,$)=>{lK.init(D,$),aU.init(D,$)}),_Z=P("$ZodSymbol",(D,$)=>{zD.init(D,$),D._zod.parse=(U,J)=>{let Y=U.value;if(typeof Y==="symbol")return U;return U.issues.push({expected:"symbol",code:"invalid_type",input:Y,inst:D}),U}}),xZ=P("$ZodUndefined",(D,$)=>{zD.init(D,$),D._zod.pattern=gK,D._zod.values=new Set([void 0]),D._zod.parse=(U,J)=>{let Y=U.value;if(typeof Y>"u")return U;return U.issues.push({expected:"undefined",code:"invalid_type",input:Y,inst:D}),U}}),gZ=P("$ZodNull",(D,$)=>{zD.init(D,$),D._zod.pattern=xK,D._zod.values=new Set([null]),D._zod.parse=(U,J)=>{let Y=U.value;if(Y===null)return U;return U.issues.push({expected:"null",code:"invalid_type",input:Y,inst:D}),U}}),fZ=P("$ZodAny",(D,$)=>{zD.init(D,$),D._zod.parse=(U)=>U}),yZ=P("$ZodUnknown",(D,$)=>{zD.init(D,$),D._zod.parse=(U)=>U}),hZ=P("$ZodNever",(D,$)=>{zD.init(D,$),D._zod.parse=(U,J)=>{return U.issues.push({expected:"never",code:"invalid_type",input:U.value,inst:D}),U}}),mZ=P("$ZodVoid",(D,$)=>{zD.init(D,$),D._zod.parse=(U,J)=>{let Y=U.value;if(typeof Y>"u")return U;return U.issues.push({expected:"void",code:"invalid_type",input:Y,inst:D}),U}}),lZ=P("$ZodDate",(D,$)=>{zD.init(D,$),D._zod.parse=(U,J)=>{if($.coerce)try{U.value=new Date(U.value)}catch(F){}let Y=U.value,X=Y instanceof Date;if(X&&!Number.isNaN(Y.getTime()))return U;return U.issues.push({expected:"date",code:"invalid_type",input:Y,...X?{received:"Invalid Date"}:{},inst:D}),U}});cZ=P("$ZodArray",(D,$)=>{zD.init(D,$),D._zod.parse=(U,J)=>{let Y=U.value;if(!Array.isArray(Y))return U.issues.push({expected:"array",code:"invalid_type",input:Y,inst:D}),U;U.value=Array(Y.length);let X=[];for(let Q=0;Q<Y.length;Q++){let F=Y[Q],W=$.element._zod.run({value:F,issues:[]},J);if(W instanceof Promise)X.push(W.then((K)=>TS(K,U,Q)));else TS(W,U,Q)}if(X.length)return Promise.all(X).then(()=>U);return U}});pS=P("$ZodObject",(D,$)=>{if(zD.init(D,$),!Object.getOwnPropertyDescriptor($,"shape")?.get){let F=$.shape;Object.defineProperty($,"shape",{get:()=>{let W={...F};return Object.defineProperty($,"shape",{value:W}),W}})}let J=c8(()=>dS($));ND(D._zod,"propValues",()=>{let F=$.shape,W={};for(let K in F){let Z=F[K]._zod;if(Z.values){W[K]??(W[K]=new Set);for(let z of Z.values)W[K].add(z)}}return W});let Y=W4,X=$.catchall,Q;D._zod.parse=(F,W)=>{Q??(Q=J.value);let K=F.value;if(!Y(K))return F.issues.push({expected:"object",code:"invalid_type",input:K,inst:D}),F;F.value={};let Z=[],z=Q.shape;for(let q of Q.keys){let G=z[q],V=G._zod.optin==="optional",I=G._zod.optout==="optional",H=G._zod.run({value:K[q],issues:[]},W);if(H instanceof Promise)Z.push(H.then((w)=>rU(w,F,q,K,V,I)));else rU(H,F,q,K,V,I)}if(!X)return Z.length?Promise.all(Z).then(()=>F):F;return iS(Z,K,F,W,J.value,D)}}),dZ=P("$ZodObjectJIT",(D,$)=>{pS.init(D,$);let U=D._zod.parse,J=c8(()=>dS($)),Y=(q)=>{let G=new dU(["shape","payload","ctx"]),V=J.value,I=(B)=>{let N=EU(B);return`shape[${N}]._zod.run({ value: input[${N}], issues: [] }, ctx)`};G.write("const input = payload.value;");let H=Object.create(null),w=0;for(let B of V.keys)H[B]=`key_${w++}`;G.write("const newResult = {};");for(let B of V.keys){let N=H[B],A=EU(B),v=q[B],k=v?._zod?.optin==="optional",C=v?._zod?.optout==="optional";if(G.write(`const ${N} = ${I(B)};`),k&&C)G.write(`
if (${N}.issues.length) {
if (${A} in input) {
payload.issues = payload.issues.concat(${N}.issues.map(iss => ({
...iss,
path: iss.path ? [${A}, ...iss.path] : [${A}]
})));
}
}
if (${N}.value === undefined) {
if (${A} in input) {
newResult[${A}] = undefined;
}
} else {
newResult[${A}] = ${N}.value;
}
`);else if(!k)G.write(`
const ${N}_present = ${A} in input;
if (${N}.issues.length) {
payload.issues = payload.issues.concat(${N}.issues.map(iss => ({
...iss,
path: iss.path ? [${A}, ...iss.path] : [${A}]
})));
}
if (!${N}_present && !${N}.issues.length) {
payload.issues.push({
code: "invalid_type",
expected: "nonoptional",
input: undefined,
path: [${A}]
});
}
if (${N}_present) {
if (${N}.value === undefined) {
newResult[${A}] = undefined;
} else {
newResult[${A}] = ${N}.value;
}
}
`);else G.write(`
if (${N}.issues.length) {
payload.issues = payload.issues.concat(${N}.issues.map(iss => ({
...iss,
path: iss.path ? [${A}, ...iss.path] : [${A}]
})));
}
if (${N}.value === undefined) {
if (${A} in input) {
newResult[${A}] = undefined;
}
} else {
newResult[${A}] = ${N}.value;
}
`)}G.write("payload.value = newResult;"),G.write("return payload;");let j=G.compile();return(B,N)=>j(q,B,N)},X,Q=W4,F=!X4.jitless,K=F&&sW.value,Z=$.catchall,z;D._zod.parse=(q,G)=>{z??(z=J.value);let V=q.value;if(!Q(V))return q.issues.push({expected:"object",code:"invalid_type",input:V,inst:D}),q;if(F&&K&&G?.async===!1&&G.jitless!==!0){if(!X)X=Y($.shape);if(q=X(q,G),!Z)return q;return iS([],V,q,G,z,D)}return U(q,G)}});B5=P("$ZodUnion",(D,$)=>{zD.init(D,$),ND(D._zod,"optin",()=>$.options.some((J)=>J._zod.optin==="optional")?"optional":void 0),ND(D._zod,"optout",()=>$.options.some((J)=>J._zod.optout==="optional")?"optional":void 0),ND(D._zod,"values",()=>{if($.options.every((J)=>J._zod.values))return new Set($.options.flatMap((J)=>Array.from(J._zod.values)));return}),ND(D._zod,"pattern",()=>{if($.options.every((J)=>J._zod.pattern)){let J=$.options.map((Y)=>Y._zod.pattern);return new RegExp(`^(${J.map((Y)=>Q5(Y.source)).join("|")})$`)}return});let U=$.options.length===1?$.options[0]._zod.run:null;D._zod.parse=(J,Y)=>{if(U)return U(J,Y);let X=!1,Q=[];for(let F of $.options){let W=F._zod.run({value:J.value,issues:[]},Y);if(W instanceof Promise)Q.push(W),X=!0;else{if(W.issues.length===0)return W;Q.push(W)}}if(!X)return PS(Q,J,D,Y);return Promise.all(Q).then((F)=>{return PS(F,J,D,Y)})}});iZ=P("$ZodXor",(D,$)=>{B5.init(D,$),$.inclusive=!1;let U=$.options.length===1?$.options[0]._zod.run:null;D._zod.parse=(J,Y)=>{if(U)return U(J,Y);let X=!1,Q=[];for(let F of $.options){let W=F._zod.run({value:J.value,issues:[]},Y);if(W instanceof Promise)Q.push(W),X=!0;else Q.push(W)}if(!X)return SS(Q,J,D,Y);return Promise.all(Q).then((F)=>{return SS(F,J,D,Y)})}}),pZ=P("$ZodDiscriminatedUnion",(D,$)=>{$.inclusive=!1,B5.init(D,$);let U=D._zod.parse;ND(D._zod,"propValues",()=>{let Y={};for(let X of $.options){let Q=X._zod.propValues;if(!Q||Object.keys(Q).length===0)throw Error(`Invalid discriminated union option at index "${$.options.indexOf(X)}"`);for(let[F,W]of Object.entries(Q)){if(!Y[F])Y[F]=new Set;for(let K of W)Y[F].add(K)}}return Y});let J=c8(()=>{let Y=$.options,X=new Map;for(let Q of Y){let F=Q._zod.propValues?.[$.discriminator];if(!F||F.size===0)throw Error(`Invalid discriminated union option at index "${$.options.indexOf(Q)}"`);for(let W of F){if(X.has(W))throw Error(`Duplicate discriminator value "${String(W)}"`);X.set(W,Q)}}return X});D._zod.parse=(Y,X)=>{let Q=Y.value;if(!W4(Q))return Y.issues.push({code:"invalid_type",expected:"object",input:Q,inst:D}),Y;let F=J.value.get(Q?.[$.discriminator]);if(F)return F._zod.run(Y,X);if($.unionFallback||X.direction==="backward")return U(Y,X);return Y.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:$.discriminator,options:Array.from(J.value.keys()),input:Q,path:[$.discriminator],inst:D}),Y}}),nZ=P("$ZodIntersection",(D,$)=>{zD.init(D,$),D._zod.parse=(U,J)=>{let Y=U.value,X=$.left._zod.run({value:Y,issues:[]},J),Q=$.right._zod.run({value:Y,issues:[]},J);if(X instanceof Promise||Q instanceof Promise)return Promise.all([X,Q]).then(([W,K])=>{return bS(U,W,K)});return bS(U,X,Q)}});tU=P("$ZodTuple",(D,$)=>{zD.init(D,$);let U=$.items;D._zod.parse=(J,Y)=>{let X=J.value;if(!Array.isArray(X))return J.issues.push({input:X,inst:D,expected:"tuple",code:"invalid_type"}),J;J.value=[];let Q=[],F=CS(U,"optin"),W=CS(U,"optout");if(!$.rest){if(X.length<F)return J.issues.push({code:"too_small",minimum:F,inclusive:!0,input:X,inst:D,origin:"array"}),J;if(X.length>U.length)J.issues.push({code:"too_big",maximum:U.length,inclusive:!0,input:X,inst:D,origin:"array"})}let K=Array(U.length);for(let Z=0;Z<U.length;Z++){let z=U[Z]._zod.run({value:X[Z],issues:[]},Y);if(z instanceof Promise)Q.push(z.then((q)=>{K[Z]=q}));else K[Z]=z}if($.rest){let Z=U.length-1,z=X.slice(U.length);for(let q of z){Z++;let G=$.rest._zod.run({value:q,issues:[]},Y);if(G instanceof Promise)Q.push(G.then((V)=>kS(V,J,Z)));else kS(G,J,Z)}}if(Q.length)return Promise.all(Q).then(()=>uS(K,J,U,X,W));return uS(K,J,U,X,W)}});rZ=P("$ZodRecord",(D,$)=>{zD.init(D,$),D._zod.parse=(U,J)=>{let Y=U.value;if(!Y1(Y))return U.issues.push({expected:"record",code:"invalid_type",input:Y,inst:D}),U;let X=[],Q=$.keyType._zod.values;if(Q){U.value={};let F=new Set;for(let K of Q)if(typeof K==="string"||typeof K==="number"||typeof K==="symbol"){F.add(typeof K==="number"?K.toString():K);let Z=$.keyType._zod.run({value:K,issues:[]},J);if(Z instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(Z.issues.length){U.issues.push({code:"invalid_key",origin:"record",issues:Z.issues.map((G)=>p0(G,J,F0())),input:K,path:[K],inst:D});continue}let z=Z.value,q=$.valueType._zod.run({value:Y[K],issues:[]},J);if(q instanceof Promise)X.push(q.then((G)=>{if(G.issues.length)U.issues.push(...Y6(K,G.issues));U.value[z]=G.value}));else{if(q.issues.length)U.issues.push(...Y6(K,q.issues));U.value[z]=q.value}}let W;for(let K in Y)if(!F.has(K))W=W??[],W.push(K);if(W&&W.length>0)U.issues.push({code:"unrecognized_keys",input:Y,inst:D,keys:W})}else{U.value={};for(let F of Reflect.ownKeys(Y)){if(F==="__proto__")continue;if(!Object.prototype.propertyIsEnumerable.call(Y,F))continue;let W=$.keyType._zod.run({value:F,issues:[]},J);if(W instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(typeof F==="string"&&G5.test(F)&&W.issues.length){let z=$.keyType._zod.run({value:Number(F),issues:[]},J);if(z instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(z.issues.length===0)W=z}if(W.issues.length){if($.mode==="loose")U.value[F]=Y[F];else U.issues.push({code:"invalid_key",origin:"record",issues:W.issues.map((z)=>p0(z,J,F0())),input:F,path:[F],inst:D});continue}let Z=$.valueType._zod.run({value:Y[F],issues:[]},J);if(Z instanceof Promise)X.push(Z.then((z)=>{if(z.issues.length)U.issues.push(...Y6(F,z.issues));U.value[W.value]=z.value}));else{if(Z.issues.length)U.issues.push(...Y6(F,Z.issues));U.value[W.value]=Z.value}}}if(X.length)return Promise.all(X).then(()=>U);return U}}),oZ=P("$ZodMap",(D,$)=>{zD.init(D,$),D._zod.parse=(U,J)=>{let Y=U.value;if(!(Y instanceof Map))return U.issues.push({expected:"map",code:"invalid_type",input:Y,inst:D}),U;let X=[];U.value=new Map;for(let[Q,F]of Y){let W=$.keyType._zod.run({value:Q,issues:[]},J),K=$.valueType._zod.run({value:F,issues:[]},J);if(W instanceof Promise||K instanceof Promise)X.push(Promise.all([W,K]).then(([Z,z])=>{_S(Z,z,U,Q,Y,D,J)}));else _S(W,K,U,Q,Y,D,J)}if(X.length)return Promise.all(X).then(()=>U);return U}});aZ=P("$ZodSet",(D,$)=>{zD.init(D,$),D._zod.parse=(U,J)=>{let Y=U.value;if(!(Y instanceof Set))return U.issues.push({input:Y,inst:D,expected:"set",code:"invalid_type"}),U;let X=[];U.value=new Set;for(let Q of Y){let F=$.valueType._zod.run({value:Q,issues:[]},J);if(F instanceof Promise)X.push(F.then((W)=>xS(W,U)));else xS(F,U)}if(X.length)return Promise.all(X).then(()=>U);return U}});tZ=P("$ZodEnum",(D,$)=>{zD.init(D,$);let U=X5($.entries),J=new Set(U);D._zod.values=J,D._zod.pattern=new RegExp(`^(${U.filter((Y)=>F5.has(typeof Y)).map((Y)=>typeof Y==="string"?S6(Y):Y.toString()).join("|")})$`),D._zod.parse=(Y,X)=>{let Q=Y.value;if(J.has(Q))return Y;return Y.issues.push({code:"invalid_value",values:U,input:Q,inst:D}),Y}}),sZ=P("$ZodLiteral",(D,$)=>{if(zD.init(D,$),$.values.length===0)throw Error("Cannot create literal schema with no valid values");let U=new Set($.values);D._zod.values=U,D._zod.pattern=new RegExp(`^(${$.values.map((J)=>typeof J==="string"?S6(J):J?S6(J.toString()):String(J)).join("|")})$`),D._zod.parse=(J,Y)=>{let X=J.value;if(U.has(X))return J;return J.issues.push({code:"invalid_value",values:$.values,input:X,inst:D}),J}}),eZ=P("$ZodFile",(D,$)=>{zD.init(D,$),D._zod.parse=(U,J)=>{let Y=U.value;if(Y instanceof File)return U;return U.issues.push({expected:"file",code:"invalid_type",input:Y,inst:D}),U}}),Dz=P("$ZodTransform",(D,$)=>{zD.init(D,$),D._zod.optin="optional",D._zod.parse=(U,J)=>{if(J.direction==="backward")throw new Q4(D.constructor.name);let Y=$.transform(U.value,U);if(J.async)return(Y instanceof Promise?Y:Promise.resolve(Y)).then((Q)=>{return U.value=Q,U.fallback=!0,U});if(Y instanceof Promise)throw new U$;return U.value=Y,U.fallback=!0,U}});sU=P("$ZodOptional",(D,$)=>{zD.init(D,$),D._zod.optin="optional",D._zod.optout="optional",ND(D._zod,"values",()=>{return $.innerType._zod.values?new Set([...$.innerType._zod.values,void 0]):void 0}),ND(D._zod,"pattern",()=>{let U=$.innerType._zod.pattern;return U?new RegExp(`^(${Q5(U.source)})?$`):void 0}),D._zod.parse=(U,J)=>{if($.innerType._zod.optin==="optional"){let Y=U.value,X=$.innerType._zod.run(U,J);if(X instanceof Promise)return X.then((Q)=>gS(Q,Y));return gS(X,Y)}if(U.value===void 0)return U;return $.innerType._zod.run(U,J)}}),$z=P("$ZodExactOptional",(D,$)=>{sU.init(D,$),ND(D._zod,"values",()=>$.innerType._zod.values),ND(D._zod,"pattern",()=>$.innerType._zod.pattern),D._zod.parse=(U,J)=>{return $.innerType._zod.run(U,J)}}),Uz=P("$ZodNullable",(D,$)=>{zD.init(D,$),ND(D._zod,"optin",()=>$.innerType._zod.optin),ND(D._zod,"optout",()=>$.innerType._zod.optout),ND(D._zod,"pattern",()=>{let U=$.innerType._zod.pattern;return U?new RegExp(`^(${Q5(U.source)}|null)$`):void 0}),ND(D._zod,"values",()=>{return $.innerType._zod.values?new Set([...$.innerType._zod.values,null]):void 0}),D._zod.parse=(U,J)=>{if(U.value===null)return U;return $.innerType._zod.run(U,J)}}),Jz=P("$ZodDefault",(D,$)=>{zD.init(D,$),D._zod.optin="optional",ND(D._zod,"values",()=>$.innerType._zod.values),D._zod.parse=(U,J)=>{if(J.direction==="backward")return $.innerType._zod.run(U,J);if(U.value===void 0)return U.value=$.defaultValue,U;let Y=$.innerType._zod.run(U,J);if(Y instanceof Promise)return Y.then((X)=>fS(X,$));return fS(Y,$)}});Yz=P("$ZodPrefault",(D,$)=>{zD.init(D,$),D._zod.optin="optional",ND(D._zod,"values",()=>$.innerType._zod.values),D._zod.parse=(U,J)=>{if(J.direction==="backward")return $.innerType._zod.run(U,J);if(U.value===void 0)U.value=$.defaultValue;return $.innerType._zod.run(U,J)}}),Xz=P("$ZodNonOptional",(D,$)=>{zD.init(D,$),ND(D._zod,"values",()=>{let U=$.innerType._zod.values;return U?new Set([...U].filter((J)=>J!==void 0)):void 0}),D._zod.parse=(U,J)=>{let Y=$.innerType._zod.run(U,J);if(Y instanceof Promise)return Y.then((X)=>yS(X,D));return yS(Y,D)}});Qz=P("$ZodSuccess",(D,$)=>{zD.init(D,$),D._zod.parse=(U,J)=>{if(J.direction==="backward")throw new Q4("ZodSuccess");let Y=$.innerType._zod.run(U,J);if(Y instanceof Promise)return Y.then((X)=>{return U.value=X.issues.length===0,U});return U.value=Y.issues.length===0,U}}),Fz=P("$ZodCatch",(D,$)=>{zD.init(D,$),D._zod.optin="optional",ND(D._zod,"optout",()=>$.innerType._zod.optout),ND(D._zod,"values",()=>$.innerType._zod.values),D._zod.parse=(U,J)=>{if(J.direction==="backward")return $.innerType._zod.run(U,J);let Y=$.innerType._zod.run(U,J);if(Y instanceof Promise)return Y.then((X)=>{if(U.value=X.value,X.issues.length)U.value=$.catchValue({...U,error:{issues:X.issues.map((Q)=>p0(Q,J,F0()))},input:U.value}),U.issues=[],U.fallback=!0;return U});if(U.value=Y.value,Y.issues.length)U.value=$.catchValue({...U,error:{issues:Y.issues.map((X)=>p0(X,J,F0()))},input:U.value}),U.issues=[],U.fallback=!0;return U}}),Wz=P("$ZodNaN",(D,$)=>{zD.init(D,$),D._zod.parse=(U,J)=>{if(typeof U.value!=="number"||!Number.isNaN(U.value))return U.issues.push({input:U.value,inst:D,expected:"nan",code:"invalid_type"}),U;return U}}),eU=P("$ZodPipe",(D,$)=>{zD.init(D,$),ND(D._zod,"values",()=>$.in._zod.values),ND(D._zod,"optin",()=>$.in._zod.optin),ND(D._zod,"optout",()=>$.out._zod.optout),ND(D._zod,"propValues",()=>$.in._zod.propValues),D._zod.parse=(U,J)=>{if(J.direction==="backward"){let X=$.out._zod.run(U,J);if(X instanceof Promise)return X.then((Q)=>iU(Q,$.in,J));return iU(X,$.in,J)}let Y=$.in._zod.run(U,J);if(Y instanceof Promise)return Y.then((X)=>iU(X,$.out,J));return iU(Y,$.out,J)}});w5=P("$ZodCodec",(D,$)=>{zD.init(D,$),ND(D._zod,"values",()=>$.in._zod.values),ND(D._zod,"optin",()=>$.in._zod.optin),ND(D._zod,"optout",()=>$.out._zod.optout),ND(D._zod,"propValues",()=>$.in._zod.propValues),D._zod.parse=(U,J)=>{if((J.direction||"forward")==="forward"){let X=$.in._zod.run(U,J);if(X instanceof Promise)return X.then((Q)=>pU(Q,$,J));return pU(X,$,J)}else{let X=$.out._zod.run(U,J);if(X instanceof Promise)return X.then((Q)=>pU(Q,$,J));return pU(X,$,J)}}});Kz=P("$ZodPreprocess",(D,$)=>{eU.init(D,$)}),Zz=P("$ZodReadonly",(D,$)=>{zD.init(D,$),ND(D._zod,"propValues",()=>$.innerType._zod.propValues),ND(D._zod,"values",()=>$.innerType._zod.values),ND(D._zod,"optin",()=>$.innerType?._zod?.optin),ND(D._zod,"optout",()=>$.innerType?._zod?.optout),D._zod.parse=(U,J)=>{if(J.direction==="backward")return $.innerType._zod.run(U,J);let Y=$.innerType._zod.run(U,J);if(Y instanceof Promise)return Y.then(hS);return hS(Y)}});zz=P("$ZodTemplateLiteral",(D,$)=>{zD.init(D,$);let U=[];for(let J of $.parts)if(typeof J==="object"&&J!==null){if(!J._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...J._zod.traits].shift()}`);let Y=J._zod.pattern instanceof RegExp?J._zod.pattern.source:J._zod.pattern;if(!Y)throw Error(`Invalid template literal part: ${J._zod.traits}`);let X=Y.startsWith("^")?1:0,Q=Y.endsWith("$")?Y.length-1:Y.length;U.push(Y.slice(X,Q))}else if(J===null||DK.has(typeof J))U.push(S6(`${J}`));else throw Error(`Invalid template literal part: ${J}`);D._zod.pattern=new RegExp(`^${U.join("")}$`),D._zod.parse=(J,Y)=>{if(typeof J.value!=="string")return J.issues.push({input:J.value,inst:D,expected:"string",code:"invalid_type"}),J;if(D._zod.pattern.lastIndex=0,!D._zod.pattern.test(J.value))return J.issues.push({input:J.value,inst:D,code:"invalid_format",format:$.format??"template_literal",pattern:D._zod.pattern.source}),J;return J}}),qz=P("$ZodFunction",(D,$)=>{return zD.init(D,$),D._def=$,D._zod.def=$,D.implement=(U)=>{if(typeof U!=="function")throw Error("implement() must be called with a function");return function(...J){let Y=D._def.input?PU(D._def.input,J):J,X=Reflect.apply(U,this,Y);if(D._def.output)return PU(D._def.output,X);return X}},D.implementAsync=(U)=>{if(typeof U!=="function")throw Error("implementAsync() must be called with a function");return async function(...J){let Y=D._def.input?await SU(D._def.input,J):J,X=await Reflect.apply(U,this,Y);if(D._def.output)return await SU(D._def.output,X);return X}},D._zod.parse=(U,J)=>{if(typeof U.value!=="function")return U.issues.push({code:"invalid_type",expected:"function",input:U.value,inst:D}),U;if(D._def.output&&D._def.output._zod.def.type==="promise")U.value=D.implementAsync(U.value);else U.value=D.implement(U.value);return U},D.input=(...U)=>{let J=D.constructor;if(Array.isArray(U[0]))return new J({type:"function",input:new tU({type:"tuple",items:U[0],rest:U[1]}),output:D._def.output});return new J({type:"function",input:U[0],output:D._def.output})},D.output=(U)=>{return new D.constructor({type:"function",input:D._def.input,output:U})},D}),Gz=P("$ZodPromise",(D,$)=>{zD.init(D,$),D._zod.parse=(U,J)=>{return Promise.resolve(U.value).then((Y)=>$.innerType._zod.run({value:Y,issues:[]},J))}}),Vz=P("$ZodLazy",(D,$)=>{zD.init(D,$),ND(D._zod,"innerType",()=>{let U=$;if(!U._cachedInner)U._cachedInner=$.getter();return U._cachedInner}),ND(D._zod,"pattern",()=>D._zod.innerType?._zod?.pattern),ND(D._zod,"propValues",()=>D._zod.innerType?._zod?.propValues),ND(D._zod,"optin",()=>D._zod.innerType?._zod?.optin??void 0),ND(D._zod,"optout",()=>D._zod.innerType?._zod?.optout??void 0),D._zod.parse=(U,J)=>{return D._zod.innerType._zod.run(U,J)}}),Hz=P("$ZodCustom",(D,$)=>{cD.init(D,$),zD.init(D,$),D._zod.parse=(U,J)=>{return U},D._zod.check=(U)=>{let J=U.value,Y=$.fn(J);if(Y instanceof Promise)return Y.then((X)=>mS(X,U,J,D));mS(Y,U,J,D);return}})});function Bz(){return{localeError:V4D()}}var V4D=()=>{let D={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function $(Y){return D[Y]??null}let U={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"},J={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`مدخلات غير مقبولة: يفترض إدخال instanceof ${Y.expected}، ولكن تم إدخال ${F}`;return`مدخلات غير مقبولة: يفترض إدخال ${X}، ولكن تم إدخال ${F}`}case"invalid_value":if(Y.values.length===1)return`مدخلات غير مقبولة: يفترض إدخال ${l(Y.values[0])}`;return`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return` أكبر من اللازم: يفترض أن تكون ${Y.origin??"القيمة"} ${X} ${Y.maximum.toString()} ${Q.unit??"عنصر"}`;return`أكبر من اللازم: يفترض أن تكون ${Y.origin??"القيمة"} ${X} ${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`أصغر من اللازم: يفترض لـ ${Y.origin} أن يكون ${X} ${Y.minimum.toString()} ${Q.unit}`;return`أصغر من اللازم: يفترض لـ ${Y.origin} أن يكون ${X} ${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`نَص غير مقبول: يجب أن يبدأ بـ "${Y.prefix}"`;if(X.format==="ends_with")return`نَص غير مقبول: يجب أن ينتهي بـ "${X.suffix}"`;if(X.format==="includes")return`نَص غير مقبول: يجب أن يتضمَّن "${X.includes}"`;if(X.format==="regex")return`نَص غير مقبول: يجب أن يطابق النمط ${X.pattern}`;return`${U[X.format]??Y.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${Y.divisor}`;case"unrecognized_keys":return`معرف${Y.keys.length>1?"ات":""} غريب${Y.keys.length>1?"ة":""}: ${g(Y.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${Y.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${Y.origin}`;default:return"مدخل غير مقبول"}}};var nS=_(()=>{QD()});function wz(){return{localeError:H4D()}}var H4D=()=>{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"}};function $(Y){return D[Y]??null}let U={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},J={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;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 ${X}, daxil olan ${F}`}case"invalid_value":if(Y.values.length===1)return`Yanlış dəyər: gözlənilən ${l(Y.values[0])}`;return`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`Çox böyük: gözlənilən ${Y.origin??"dəyər"} ${X}${Y.maximum.toString()} ${Q.unit??"element"}`;return`Çox böyük: gözlənilən ${Y.origin??"dəyər"} ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`Çox kiçik: gözlənilən ${Y.origin} ${X}${Y.minimum.toString()} ${Q.unit}`;return`Çox kiçik: gözlənilən ${Y.origin} ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Yanlış mətn: "${X.prefix}" ilə başlamalıdır`;if(X.format==="ends_with")return`Yanlış mətn: "${X.suffix}" ilə bitməlidir`;if(X.format==="includes")return`Yanlış mətn: "${X.includes}" daxil olmalıdır`;if(X.format==="regex")return`Yanlış mətn: ${X.pattern} şablonuna uyğun olmalıdır`;return`Yanlış ${U[X.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":""}: ${g(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 rS=_(()=>{QD()});function oS(D,$,U,J){let Y=Math.abs(D),X=Y%10,Q=Y%100;if(Q>=11&&Q<=19)return J;if(X===1)return $;if(X>=2&&X<=4)return U;return J}function Oz(){return{localeError:I4D()}}var I4D=()=>{let D={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function $(Y){return D[Y]??null}let U={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"},J={nan:"NaN",number:"лік",array:"масіў"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`Няправільны ўвод: чакаўся instanceof ${Y.expected}, атрымана ${F}`;return`Няправільны ўвод: чакаўся ${X}, атрымана ${F}`}case"invalid_value":if(Y.values.length===1)return`Няправільны ўвод: чакалася ${l(Y.values[0])}`;return`Няправільны варыянт: чакаўся адзін з ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q){let F=Number(Y.maximum),W=oS(F,Q.unit.one,Q.unit.few,Q.unit.many);return`Занадта вялікі: чакалася, што ${Y.origin??"значэнне"} павінна ${Q.verb} ${X}${Y.maximum.toString()} ${W}`}return`Занадта вялікі: чакалася, што ${Y.origin??"значэнне"} павінна быць ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q){let F=Number(Y.minimum),W=oS(F,Q.unit.one,Q.unit.few,Q.unit.many);return`Занадта малы: чакалася, што ${Y.origin} павінна ${Q.verb} ${X}${Y.minimum.toString()} ${W}`}return`Занадта малы: чакалася, што ${Y.origin} павінна быць ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Няправільны радок: павінен пачынацца з "${X.prefix}"`;if(X.format==="ends_with")return`Няправільны радок: павінен заканчвацца на "${X.suffix}"`;if(X.format==="includes")return`Няправільны радок: павінен змяшчаць "${X.includes}"`;if(X.format==="regex")return`Няправільны радок: павінен адпавядаць шаблону ${X.pattern}`;return`Няправільны ${U[X.format]??Y.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${Y.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${Y.keys.length>1?"ключы":"ключ"}: ${g(Y.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${Y.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${Y.origin}`;default:return"Няправільны ўвод"}}};var aS=_(()=>{QD()});function jz(){return{localeError:B4D()}}var B4D=()=>{let D={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function $(Y){return D[Y]??null}let U={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",jwt:"JWT",template_literal:"вход"},J={nan:"NaN",number:"число",array:"масив"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`Невалиден вход: очакван instanceof ${Y.expected}, получен ${F}`;return`Невалиден вход: очакван ${X}, получен ${F}`}case"invalid_value":if(Y.values.length===1)return`Невалиден вход: очакван ${l(Y.values[0])}`;return`Невалидна опция: очаквано едно от ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`Твърде голямо: очаква се ${Y.origin??"стойност"} да съдържа ${X}${Y.maximum.toString()} ${Q.unit??"елемента"}`;return`Твърде голямо: очаква се ${Y.origin??"стойност"} да бъде ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`Твърде малко: очаква се ${Y.origin} да съдържа ${X}${Y.minimum.toString()} ${Q.unit}`;return`Твърде малко: очаква се ${Y.origin} да бъде ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Невалиден низ: трябва да започва с "${X.prefix}"`;if(X.format==="ends_with")return`Невалиден низ: трябва да завършва с "${X.suffix}"`;if(X.format==="includes")return`Невалиден низ: трябва да включва "${X.includes}"`;if(X.format==="regex")return`Невалиден низ: трябва да съвпада с ${X.pattern}`;let Q="Невалиден";if(X.format==="emoji")Q="Невалидно";if(X.format==="datetime")Q="Невалидно";if(X.format==="date")Q="Невалидна";if(X.format==="time")Q="Невалидно";if(X.format==="duration")Q="Невалидна";return`${Q} ${U[X.format]??Y.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${Y.divisor}`;case"unrecognized_keys":return`Неразпознат${Y.keys.length>1?"и":""} ключ${Y.keys.length>1?"ове":""}: ${g(Y.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${Y.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${Y.origin}`;default:return"Невалиден вход"}}};var tS=_(()=>{QD()});function Nz(){return{localeError:w4D()}}var w4D=()=>{let D={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function $(Y){return D[Y]??null}let U={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},J={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;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 ${X}, s'ha rebut ${F}`}case"invalid_value":if(Y.values.length===1)return`Valor invàlid: s'esperava ${l(Y.values[0])}`;return`Opció invàlida: s'esperava una de ${g(Y.values," o ")}`;case"too_big":{let X=Y.inclusive?"com a màxim":"menys de",Q=$(Y.origin);if(Q)return`Massa gran: s'esperava que ${Y.origin??"el valor"} contingués ${X} ${Y.maximum.toString()} ${Q.unit??"elements"}`;return`Massa gran: s'esperava que ${Y.origin??"el valor"} fos ${X} ${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?"com a mínim":"més de",Q=$(Y.origin);if(Q)return`Massa petit: s'esperava que ${Y.origin} contingués ${X} ${Y.minimum.toString()} ${Q.unit}`;return`Massa petit: s'esperava que ${Y.origin} fos ${X} ${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Format invàlid: ha de començar amb "${X.prefix}"`;if(X.format==="ends_with")return`Format invàlid: ha d'acabar amb "${X.suffix}"`;if(X.format==="includes")return`Format invàlid: ha d'incloure "${X.includes}"`;if(X.format==="regex")return`Format invàlid: ha de coincidir amb el patró ${X.pattern}`;return`Format invàlid per a ${U[X.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":""}: ${g(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 sS=_(()=>{QD()});function Lz(){return{localeError:O4D()}}var O4D=()=>{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"}};function $(Y){return D[Y]??null}let U={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"},J={nan:"NaN",number:"číslo",string:"řetězec",function:"funkce",array:"pole"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;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 ${X}, obdrženo ${F}`}case"invalid_value":if(Y.values.length===1)return`Neplatný vstup: očekáváno ${l(Y.values[0])}`;return`Neplatná možnost: očekávána jedna z hodnot ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`Hodnota je příliš velká: ${Y.origin??"hodnota"} musí mít ${X}${Y.maximum.toString()} ${Q.unit??"prvků"}`;return`Hodnota je příliš velká: ${Y.origin??"hodnota"} musí být ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`Hodnota je příliš malá: ${Y.origin??"hodnota"} musí mít ${X}${Y.minimum.toString()} ${Q.unit??"prvků"}`;return`Hodnota je příliš malá: ${Y.origin??"hodnota"} musí být ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Neplatný řetězec: musí začínat na "${X.prefix}"`;if(X.format==="ends_with")return`Neplatný řetězec: musí končit na "${X.suffix}"`;if(X.format==="includes")return`Neplatný řetězec: musí obsahovat "${X.includes}"`;if(X.format==="regex")return`Neplatný řetězec: musí odpovídat vzoru ${X.pattern}`;return`Neplatný formát ${U[X.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: ${g(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 eS=_(()=>{QD()});function Rz(){return{localeError:j4D()}}var j4D=()=>{let D={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function $(Y){return D[Y]??null}let U={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},J={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 X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`Ugyldigt input: forventede instanceof ${Y.expected}, fik ${F}`;return`Ugyldigt input: forventede ${X}, fik ${F}`}case"invalid_value":if(Y.values.length===1)return`Ugyldig værdi: forventede ${l(Y.values[0])}`;return`Ugyldigt valg: forventede en af følgende ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin),F=J[Y.origin]??Y.origin;if(Q)return`For stor: forventede ${F??"value"} ${Q.verb} ${X} ${Y.maximum.toString()} ${Q.unit??"elementer"}`;return`For stor: forventede ${F??"value"} havde ${X} ${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin),F=J[Y.origin]??Y.origin;if(Q)return`For lille: forventede ${F} ${Q.verb} ${X} ${Y.minimum.toString()} ${Q.unit}`;return`For lille: forventede ${F} havde ${X} ${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Ugyldig streng: skal starte med "${X.prefix}"`;if(X.format==="ends_with")return`Ugyldig streng: skal ende med "${X.suffix}"`;if(X.format==="includes")return`Ugyldig streng: skal indeholde "${X.includes}"`;if(X.format==="regex")return`Ugyldig streng: skal matche mønsteret ${X.pattern}`;return`Ugyldig ${U[X.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"}: ${g(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 Db=_(()=>{QD()});function Mz(){return{localeError:N4D()}}var N4D=()=>{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"}};function $(Y){return D[Y]??null}let U={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},J={nan:"NaN",number:"Zahl",array:"Array"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`Ungültige Eingabe: erwartet instanceof ${Y.expected}, erhalten ${F}`;return`Ungültige Eingabe: erwartet ${X}, erhalten ${F}`}case"invalid_value":if(Y.values.length===1)return`Ungültige Eingabe: erwartet ${l(Y.values[0])}`;return`Ungültige Option: erwartet eine von ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`Zu groß: erwartet, dass ${Y.origin??"Wert"} ${X}${Y.maximum.toString()} ${Q.unit??"Elemente"} hat`;return`Zu groß: erwartet, dass ${Y.origin??"Wert"} ${X}${Y.maximum.toString()} ist`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`Zu klein: erwartet, dass ${Y.origin} ${X}${Y.minimum.toString()} ${Q.unit} hat`;return`Zu klein: erwartet, dass ${Y.origin} ${X}${Y.minimum.toString()} ist`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Ungültiger String: muss mit "${X.prefix}" beginnen`;if(X.format==="ends_with")return`Ungültiger String: muss mit "${X.suffix}" enden`;if(X.format==="includes")return`Ungültiger String: muss "${X.includes}" enthalten`;if(X.format==="regex")return`Ungültiger String: muss dem Muster ${X.pattern} entsprechen`;return`Ungültig: ${U[X.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"}: ${g(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 $b=_(()=>{QD()});function Az(){return{localeError:L4D()}}var L4D=()=>{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 U={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",jwt:"JWT",template_literal:"είσοδος"},J={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(typeof Y.expected==="string"&&/^[A-Z]/.test(Y.expected))return`Μη έγκυρη είσοδος: αναμενόταν instanceof ${Y.expected}, λήφθηκε ${F}`;return`Μη έγκυρη είσοδος: αναμενόταν ${X}, λήφθηκε ${F}`}case"invalid_value":if(Y.values.length===1)return`Μη έγκυρη είσοδος: αναμενόταν ${l(Y.values[0])}`;return`Μη έγκυρη επιλογή: αναμενόταν ένα από ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`Πολύ μεγάλο: αναμενόταν ${Y.origin??"τιμή"} να έχει ${X}${Y.maximum.toString()} ${Q.unit??"στοιχεία"}`;return`Πολύ μεγάλο: αναμενόταν ${Y.origin??"τιμή"} να είναι ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`Πολύ μικρό: αναμενόταν ${Y.origin} να έχει ${X}${Y.minimum.toString()} ${Q.unit}`;return`Πολύ μικρό: αναμενόταν ${Y.origin} να είναι ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${X.prefix}"`;if(X.format==="ends_with")return`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${X.suffix}"`;if(X.format==="includes")return`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${X.includes}"`;if(X.format==="regex")return`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${X.pattern}`;return`Μη έγκυρο: ${U[X.format]??Y.format}`}case"not_multiple_of":return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${Y.divisor}`;case"unrecognized_keys":return`Άγνωστ${Y.keys.length>1?"α":"ο"} κλειδ${Y.keys.length>1?"ιά":"ί"}: ${g(Y.keys,", ")}`;case"invalid_key":return`Μη έγκυρο κλειδί στο ${Y.origin}`;case"invalid_union":return"Μη έγκυρη είσοδος";case"invalid_element":return`Μη έγκυρη τιμή στο ${Y.origin}`;default:return"Μη έγκυρη είσοδος"}}};var Ub=_(()=>{QD()});function O5(){return{localeError:R4D()}}var R4D=()=>{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 $(Y){return D[Y]??null}let U={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},J={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;return`Invalid input: expected ${X}, received ${F}`}case"invalid_value":if(Y.values.length===1)return`Invalid input: expected ${l(Y.values[0])}`;return`Invalid option: expected one of ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`Too big: expected ${Y.origin??"value"} to have ${X}${Y.maximum.toString()} ${Q.unit??"elements"}`;return`Too big: expected ${Y.origin??"value"} to be ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`Too small: expected ${Y.origin} to have ${X}${Y.minimum.toString()} ${Q.unit}`;return`Too small: expected ${Y.origin} to be ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Invalid string: must start with "${X.prefix}"`;if(X.format==="ends_with")return`Invalid string: must end with "${X.suffix}"`;if(X.format==="includes")return`Invalid string: must include "${X.includes}"`;if(X.format==="regex")return`Invalid string: must match pattern ${X.pattern}`;return`Invalid ${U[X.format]??Y.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${Y.divisor}`;case"unrecognized_keys":return`Unrecognized key${Y.keys.length>1?"s":""}: ${g(Y.keys,", ")}`;case"invalid_key":return`Invalid key in ${Y.origin}`;case"invalid_union":if(Y.options&&Array.isArray(Y.options)&&Y.options.length>0)return`Invalid discriminator value. Expected ${Y.options.map((Q)=>`'${Q}'`).join(" | ")}`;return"Invalid input";case"invalid_element":return`Invalid value in ${Y.origin}`;default:return"Invalid input"}}};var vz=_(()=>{QD()});function Ez(){return{localeError:M4D()}}var M4D=()=>{let D={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function $(Y){return D[Y]??null}let U={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},J={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`Nevalida enigo: atendiĝis instanceof ${Y.expected}, riceviĝis ${F}`;return`Nevalida enigo: atendiĝis ${X}, riceviĝis ${F}`}case"invalid_value":if(Y.values.length===1)return`Nevalida enigo: atendiĝis ${l(Y.values[0])}`;return`Nevalida opcio: atendiĝis unu el ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`Tro granda: atendiĝis ke ${Y.origin??"valoro"} havu ${X}${Y.maximum.toString()} ${Q.unit??"elementojn"}`;return`Tro granda: atendiĝis ke ${Y.origin??"valoro"} havu ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`Tro malgranda: atendiĝis ke ${Y.origin} havu ${X}${Y.minimum.toString()} ${Q.unit}`;return`Tro malgranda: atendiĝis ke ${Y.origin} estu ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Nevalida karaktraro: devas komenciĝi per "${X.prefix}"`;if(X.format==="ends_with")return`Nevalida karaktraro: devas finiĝi per "${X.suffix}"`;if(X.format==="includes")return`Nevalida karaktraro: devas inkluzivi "${X.includes}"`;if(X.format==="regex")return`Nevalida karaktraro: devas kongrui kun la modelo ${X.pattern}`;return`Nevalida ${U[X.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":""}: ${g(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 Jb=_(()=>{QD()});function Tz(){return{localeError:A4D()}}var A4D=()=>{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 U={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},J={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 X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`Entrada inválida: se esperaba instanceof ${Y.expected}, recibido ${F}`;return`Entrada inválida: se esperaba ${X}, recibido ${F}`}case"invalid_value":if(Y.values.length===1)return`Entrada inválida: se esperaba ${l(Y.values[0])}`;return`Opción inválida: se esperaba una de ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin),F=J[Y.origin]??Y.origin;if(Q)return`Demasiado grande: se esperaba que ${F??"valor"} tuviera ${X}${Y.maximum.toString()} ${Q.unit??"elementos"}`;return`Demasiado grande: se esperaba que ${F??"valor"} fuera ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin),F=J[Y.origin]??Y.origin;if(Q)return`Demasiado pequeño: se esperaba que ${F} tuviera ${X}${Y.minimum.toString()} ${Q.unit}`;return`Demasiado pequeño: se esperaba que ${F} fuera ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Cadena inválida: debe comenzar con "${X.prefix}"`;if(X.format==="ends_with")return`Cadena inválida: debe terminar en "${X.suffix}"`;if(X.format==="includes")return`Cadena inválida: debe incluir "${X.includes}"`;if(X.format==="regex")return`Cadena inválida: debe coincidir con el patrón ${X.pattern}`;return`Inválido ${U[X.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":""}: ${g(Y.keys,", ")}`;case"invalid_key":return`Llave inválida en ${J[Y.origin]??Y.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${J[Y.origin]??Y.origin}`;default:return"Entrada inválida"}}};var Yb=_(()=>{QD()});function Pz(){return{localeError:v4D()}}var v4D=()=>{let D={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function $(Y){return D[Y]??null}let U={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"},J={nan:"NaN",number:"عدد",array:"آرایه"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`ورودی نامعتبر: میبایست instanceof ${Y.expected} میبود، ${F} دریافت شد`;return`ورودی نامعتبر: میبایست ${X} میبود، ${F} دریافت شد`}case"invalid_value":if(Y.values.length===1)return`ورودی نامعتبر: میبایست ${l(Y.values[0])} میبود`;return`گزینه نامعتبر: میبایست یکی از ${g(Y.values,"|")} میبود`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`خیلی بزرگ: ${Y.origin??"مقدار"} باید ${X}${Y.maximum.toString()} ${Q.unit??"عنصر"} باشد`;return`خیلی بزرگ: ${Y.origin??"مقدار"} باید ${X}${Y.maximum.toString()} باشد`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`خیلی کوچک: ${Y.origin} باید ${X}${Y.minimum.toString()} ${Q.unit} باشد`;return`خیلی کوچک: ${Y.origin} باید ${X}${Y.minimum.toString()} باشد`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`رشته نامعتبر: باید با "${X.prefix}" شروع شود`;if(X.format==="ends_with")return`رشته نامعتبر: باید با "${X.suffix}" تمام شود`;if(X.format==="includes")return`رشته نامعتبر: باید شامل "${X.includes}" باشد`;if(X.format==="regex")return`رشته نامعتبر: باید با الگوی ${X.pattern} مطابقت داشته باشد`;return`${U[X.format]??Y.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${Y.divisor} باشد`;case"unrecognized_keys":return`کلید${Y.keys.length>1?"های":""} ناشناس: ${g(Y.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${Y.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${Y.origin}`;default:return"ورودی نامعتبر"}}};var Xb=_(()=>{QD()});function Sz(){return{localeError:E4D()}}var E4D=()=>{let D={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function $(Y){return D[Y]??null}let U={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},J={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`Virheellinen tyyppi: odotettiin instanceof ${Y.expected}, oli ${F}`;return`Virheellinen tyyppi: odotettiin ${X}, oli ${F}`}case"invalid_value":if(Y.values.length===1)return`Virheellinen syöte: täytyy olla ${l(Y.values[0])}`;return`Virheellinen valinta: täytyy olla yksi seuraavista: ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`Liian suuri: ${Q.subject} täytyy olla ${X}${Y.maximum.toString()} ${Q.unit}`.trim();return`Liian suuri: arvon täytyy olla ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`Liian pieni: ${Q.subject} täytyy olla ${X}${Y.minimum.toString()} ${Q.unit}`.trim();return`Liian pieni: arvon täytyy olla ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Virheellinen syöte: täytyy alkaa "${X.prefix}"`;if(X.format==="ends_with")return`Virheellinen syöte: täytyy loppua "${X.suffix}"`;if(X.format==="includes")return`Virheellinen syöte: täytyy sisältää "${X.includes}"`;if(X.format==="regex")return`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${X.pattern}`;return`Virheellinen ${U[X.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"}: ${g(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 Qb=_(()=>{QD()});function bz(){return{localeError:T4D()}}var T4D=()=>{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 U={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},J={string:"chaîne",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:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`Entrée invalide : instanceof ${Y.expected} attendu, ${F} reçu`;return`Entrée invalide : ${X} attendu, ${F} reçu`}case"invalid_value":if(Y.values.length===1)return`Entrée invalide : ${l(Y.values[0])} attendu`;return`Option invalide : une valeur parmi ${g(Y.values,"|")} attendue`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`Trop grand : ${J[Y.origin]??"valeur"} doit ${Q.verb} ${X}${Y.maximum.toString()} ${Q.unit??"élément(s)"}`;return`Trop grand : ${J[Y.origin]??"valeur"} doit être ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`Trop petit : ${J[Y.origin]??"valeur"} doit ${Q.verb} ${X}${Y.minimum.toString()} ${Q.unit}`;return`Trop petit : ${J[Y.origin]??"valeur"} doit être ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Chaîne invalide : doit commencer par "${X.prefix}"`;if(X.format==="ends_with")return`Chaîne invalide : doit se terminer par "${X.suffix}"`;if(X.format==="includes")return`Chaîne invalide : doit inclure "${X.includes}"`;if(X.format==="regex")return`Chaîne invalide : doit correspondre au modèle ${X.pattern}`;return`${U[X.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":""} : ${g(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 Fb=_(()=>{QD()});function Cz(){return{localeError:P4D()}}var P4D=()=>{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 U={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},J={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`Entrée invalide : attendu instanceof ${Y.expected}, reçu ${F}`;return`Entrée invalide : attendu ${X}, reçu ${F}`}case"invalid_value":if(Y.values.length===1)return`Entrée invalide : attendu ${l(Y.values[0])}`;return`Option invalide : attendu l'une des valeurs suivantes ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"≤":"<",Q=$(Y.origin);if(Q)return`Trop grand : attendu que ${Y.origin??"la valeur"} ait ${X}${Y.maximum.toString()} ${Q.unit}`;return`Trop grand : attendu que ${Y.origin??"la valeur"} soit ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?"≥":">",Q=$(Y.origin);if(Q)return`Trop petit : attendu que ${Y.origin} ait ${X}${Y.minimum.toString()} ${Q.unit}`;return`Trop petit : attendu que ${Y.origin} soit ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Chaîne invalide : doit commencer par "${X.prefix}"`;if(X.format==="ends_with")return`Chaîne invalide : doit se terminer par "${X.suffix}"`;if(X.format==="includes")return`Chaîne invalide : doit inclure "${X.includes}"`;if(X.format==="regex")return`Chaîne invalide : doit correspondre au motif ${X.pattern}`;return`${U[X.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":""} : ${g(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 Wb=_(()=>{QD()});function kz(){return{localeError:S4D()}}var S4D=()=>{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:"גדול"}},U=(K)=>K?D[K]:void 0,J=(K)=>{let Z=U(K);if(Z)return Z.label;return K??D.unknown.label},Y=(K)=>`ה${J(K)}`,X=(K)=>{return(U(K)?.gender??"m")==="f"?"צריכה להיות":"צריך להיות"},Q=(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"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}},W={nan:"NaN"};return(K)=>{switch(K.code){case"invalid_type":{let Z=K.expected,z=W[Z??""]??J(Z),q=d(K.input),G=W[q]??D[q]?.label??q;if(/^[A-Z]/.test(K.expected))return`קלט לא תקין: צריך להיות instanceof ${K.expected}, התקבל ${G}`;return`קלט לא תקין: צריך להיות ${z}, התקבל ${G}`}case"invalid_value":{if(K.values.length===1)return`ערך לא תקין: הערך חייב להיות ${l(K.values[0])}`;let Z=K.values.map((G)=>l(G));if(K.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${Z[0]} או ${Z[1]}`;let z=Z[Z.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${Z.slice(0,-1).join(", ")} או ${z}`}case"too_big":{let Z=Q(K.origin),z=Y(K.origin??"value");if(K.origin==="string")return`${Z?.longLabel??"ארוך"} מדי: ${z} צריכה להכיל ${K.maximum.toString()} ${Z?.unit??""} ${K.inclusive?"או פחות":"לכל היותר"}`.trim();if(K.origin==="number"){let V=K.inclusive?`קטן או שווה ל-${K.maximum}`:`קטן מ-${K.maximum}`;return`גדול מדי: ${z} צריך להיות ${V}`}if(K.origin==="array"||K.origin==="set"){let V=K.origin==="set"?"צריכה":"צריך",I=K.inclusive?`${K.maximum} ${Z?.unit??""} או פחות`:`פחות מ-${K.maximum} ${Z?.unit??""}`;return`גדול מדי: ${z} ${V} להכיל ${I}`.trim()}let q=K.inclusive?"<=":"<",G=X(K.origin??"value");if(Z?.unit)return`${Z.longLabel} מדי: ${z} ${G} ${q}${K.maximum.toString()} ${Z.unit}`;return`${Z?.longLabel??"גדול"} מדי: ${z} ${G} ${q}${K.maximum.toString()}`}case"too_small":{let Z=Q(K.origin),z=Y(K.origin??"value");if(K.origin==="string")return`${Z?.shortLabel??"קצר"} מדי: ${z} צריכה להכיל ${K.minimum.toString()} ${Z?.unit??""} ${K.inclusive?"או יותר":"לפחות"}`.trim();if(K.origin==="number"){let V=K.inclusive?`גדול או שווה ל-${K.minimum}`:`גדול מ-${K.minimum}`;return`קטן מדי: ${z} צריך להיות ${V}`}if(K.origin==="array"||K.origin==="set"){let V=K.origin==="set"?"צריכה":"צריך";if(K.minimum===1&&K.inclusive){let H=K.origin==="set"?"לפחות פריט אחד":"לפחות פריט אחד";return`קטן מדי: ${z} ${V} להכיל ${H}`}let I=K.inclusive?`${K.minimum} ${Z?.unit??""} או יותר`:`יותר מ-${K.minimum} ${Z?.unit??""}`;return`קטן מדי: ${z} ${V} להכיל ${I}`.trim()}let q=K.inclusive?">=":">",G=X(K.origin??"value");if(Z?.unit)return`${Z.shortLabel} מדי: ${z} ${G} ${q}${K.minimum.toString()} ${Z.unit}`;return`${Z?.shortLabel??"קטן"} מדי: ${z} ${G} ${q}${K.minimum.toString()}`}case"invalid_format":{let Z=K;if(Z.format==="starts_with")return`המחרוזת חייבת להתחיל ב "${Z.prefix}"`;if(Z.format==="ends_with")return`המחרוזת חייבת להסתיים ב "${Z.suffix}"`;if(Z.format==="includes")return`המחרוזת חייבת לכלול "${Z.includes}"`;if(Z.format==="regex")return`המחרוזת חייבת להתאים לתבנית ${Z.pattern}`;let z=F[Z.format],q=z?.label??Z.format,V=(z?.gender??"m")==="f"?"תקינה":"תקין";return`${q} לא ${V}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${K.divisor}`;case"unrecognized_keys":return`מפתח${K.keys.length>1?"ות":""} לא מזוה${K.keys.length>1?"ים":"ה"}: ${g(K.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${Y(K.origin??"array")}`;default:return"קלט לא תקין"}}};var Kb=_(()=>{QD()});function uz(){return{localeError:b4D()}}var b4D=()=>{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 U={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",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},J={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 X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;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 ${X}, a primljeno je ${F}`}case"invalid_value":if(Y.values.length===1)return`Neispravna vrijednost: očekivano ${l(Y.values[0])}`;return`Neispravna opcija: očekivano jedno od ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin),F=J[Y.origin]??Y.origin;if(Q)return`Preveliko: očekivano da ${F??"vrijednost"} ima ${X}${Y.maximum.toString()} ${Q.unit??"elemenata"}`;return`Preveliko: očekivano da ${F??"vrijednost"} bude ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin),F=J[Y.origin]??Y.origin;if(Q)return`Premalo: očekivano da ${F} ima ${X}${Y.minimum.toString()} ${Q.unit}`;return`Premalo: očekivano da ${F} bude ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Neispravan tekst: mora započinjati s "${X.prefix}"`;if(X.format==="ends_with")return`Neispravan tekst: mora završavati s "${X.suffix}"`;if(X.format==="includes")return`Neispravan tekst: mora sadržavati "${X.includes}"`;if(X.format==="regex")return`Neispravan tekst: mora odgovarati uzorku ${X.pattern}`;return`Neispravna ${U[X.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č"}: ${g(Y.keys,", ")}`;case"invalid_key":return`Neispravan ključ u ${J[Y.origin]??Y.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${J[Y.origin]??Y.origin}`;default:return"Neispravan unos"}}};var Zb=_(()=>{QD()});function _z(){return{localeError:C4D()}}var C4D=()=>{let D={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function $(Y){return D[Y]??null}let U={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"},J={nan:"NaN",number:"szám",array:"tömb"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;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 ${X}, a kapott érték ${F}`}case"invalid_value":if(Y.values.length===1)return`Érvénytelen bemenet: a várt érték ${l(Y.values[0])}`;return`Érvénytelen opció: valamelyik érték várt ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`Túl nagy: ${Y.origin??"érték"} mérete túl nagy ${X}${Y.maximum.toString()} ${Q.unit??"elem"}`;return`Túl nagy: a bemeneti érték ${Y.origin??"érték"} túl nagy: ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`Túl kicsi: a bemeneti érték ${Y.origin} mérete túl kicsi ${X}${Y.minimum.toString()} ${Q.unit}`;return`Túl kicsi: a bemeneti érték ${Y.origin} túl kicsi ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Érvénytelen string: "${X.prefix}" értékkel kell kezdődnie`;if(X.format==="ends_with")return`Érvénytelen string: "${X.suffix}" értékkel kell végződnie`;if(X.format==="includes")return`Érvénytelen string: "${X.includes}" értéket kell tartalmaznia`;if(X.format==="regex")return`Érvénytelen string: ${X.pattern} mintának kell megfelelnie`;return`Érvénytelen ${U[X.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":""}: ${g(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 zb=_(()=>{QD()});function qb(D,$,U){return Math.abs(D)===1?$:U}function a8(D){if(!D)return"";let $=["ա","ե","ը","ի","ո","ու","օ"],U=D[D.length-1];return D+($.includes(U)?"ն":"ը")}function xz(){return{localeError:k4D()}}var k4D=()=>{let D={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}};function $(Y){return D[Y]??null}let U={regex:"մուտք",email:"էլ. հասցե",url:"URL",emoji:"էմոջի",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ամսաթիվ և ժամ",date:"ISO ամսաթիվ",time:"ISO ժամ",duration:"ISO տևողություն",ipv4:"IPv4 հասցե",ipv6:"IPv6 հասցե",cidrv4:"IPv4 միջակայք",cidrv6:"IPv6 միջակայք",base64:"base64 ձևաչափով տող",base64url:"base64url ձևաչափով տող",json_string:"JSON տող",e164:"E.164 համար",jwt:"JWT",template_literal:"մուտք"},J={nan:"NaN",number:"թիվ",array:"զանգված"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`Սխալ մուտքագրում․ սպասվում էր instanceof ${Y.expected}, ստացվել է ${F}`;return`Սխալ մուտքագրում․ սպասվում էր ${X}, ստացվել է ${F}`}case"invalid_value":if(Y.values.length===1)return`Սխալ մուտքագրում․ սպասվում էր ${l(Y.values[1])}`;return`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q){let F=Number(Y.maximum),W=qb(F,Q.unit.one,Q.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${a8(Y.origin??"արժեք")} կունենա ${X}${Y.maximum.toString()} ${W}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${a8(Y.origin??"արժեք")} լինի ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q){let F=Number(Y.minimum),W=qb(F,Q.unit.one,Q.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${a8(Y.origin)} կունենա ${X}${Y.minimum.toString()} ${W}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${a8(Y.origin)} լինի ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Սխալ տող․ պետք է սկսվի "${X.prefix}"-ով`;if(X.format==="ends_with")return`Սխալ տող․ պետք է ավարտվի "${X.suffix}"-ով`;if(X.format==="includes")return`Սխալ տող․ պետք է պարունակի "${X.includes}"`;if(X.format==="regex")return`Սխալ տող․ պետք է համապատասխանի ${X.pattern} ձևաչափին`;return`Սխալ ${U[X.format]??Y.format}`}case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${Y.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${Y.keys.length>1?"ներ":""}. ${g(Y.keys,", ")}`;case"invalid_key":return`Սխալ բանալի ${a8(Y.origin)}-ում`;case"invalid_union":return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${a8(Y.origin)}-ում`;default:return"Սխալ մուտքագրում"}}};var Gb=_(()=>{QD()});function gz(){return{localeError:u4D()}}var u4D=()=>{let D={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function $(Y){return D[Y]??null}let U={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},J={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`Input tidak valid: diharapkan instanceof ${Y.expected}, diterima ${F}`;return`Input tidak valid: diharapkan ${X}, diterima ${F}`}case"invalid_value":if(Y.values.length===1)return`Input tidak valid: diharapkan ${l(Y.values[0])}`;return`Pilihan tidak valid: diharapkan salah satu dari ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`Terlalu besar: diharapkan ${Y.origin??"value"} memiliki ${X}${Y.maximum.toString()} ${Q.unit??"elemen"}`;return`Terlalu besar: diharapkan ${Y.origin??"value"} menjadi ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`Terlalu kecil: diharapkan ${Y.origin} memiliki ${X}${Y.minimum.toString()} ${Q.unit}`;return`Terlalu kecil: diharapkan ${Y.origin} menjadi ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`String tidak valid: harus dimulai dengan "${X.prefix}"`;if(X.format==="ends_with")return`String tidak valid: harus berakhir dengan "${X.suffix}"`;if(X.format==="includes")return`String tidak valid: harus menyertakan "${X.includes}"`;if(X.format==="regex")return`String tidak valid: harus sesuai pola ${X.pattern}`;return`${U[X.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":""}: ${g(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 Vb=_(()=>{QD()});function fz(){return{localeError:_4D()}}var _4D=()=>{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"}};function $(Y){return D[Y]??null}let U={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"},J={nan:"NaN",number:"númer",array:"fylki"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;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 ${X}`}case"invalid_value":if(Y.values.length===1)return`Rangt gildi: gert ráð fyrir ${l(Y.values[0])}`;return`Ógilt val: má vera eitt af eftirfarandi ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`Of stórt: gert er ráð fyrir að ${Y.origin??"gildi"} hafi ${X}${Y.maximum.toString()} ${Q.unit??"hluti"}`;return`Of stórt: gert er ráð fyrir að ${Y.origin??"gildi"} sé ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`Of lítið: gert er ráð fyrir að ${Y.origin} hafi ${X}${Y.minimum.toString()} ${Q.unit}`;return`Of lítið: gert er ráð fyrir að ${Y.origin} sé ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Ógildur strengur: verður að byrja á "${X.prefix}"`;if(X.format==="ends_with")return`Ógildur strengur: verður að enda á "${X.suffix}"`;if(X.format==="includes")return`Ógildur strengur: verður að innihalda "${X.includes}"`;if(X.format==="regex")return`Ógildur strengur: verður að fylgja mynstri ${X.pattern}`;return`Rangt ${U[X.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"}: ${g(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 Hb=_(()=>{QD()});function yz(){return{localeError:x4D()}}var x4D=()=>{let D={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function $(Y){return D[Y]??null}let U={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},J={nan:"NaN",number:"numero",array:"vettore"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`Input non valido: atteso instanceof ${Y.expected}, ricevuto ${F}`;return`Input non valido: atteso ${X}, ricevuto ${F}`}case"invalid_value":if(Y.values.length===1)return`Input non valido: atteso ${l(Y.values[0])}`;return`Opzione non valida: atteso uno tra ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`Troppo grande: ${Y.origin??"valore"} deve avere ${X}${Y.maximum.toString()} ${Q.unit??"elementi"}`;return`Troppo grande: ${Y.origin??"valore"} deve essere ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`Troppo piccolo: ${Y.origin} deve avere ${X}${Y.minimum.toString()} ${Q.unit}`;return`Troppo piccolo: ${Y.origin} deve essere ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Stringa non valida: deve iniziare con "${X.prefix}"`;if(X.format==="ends_with")return`Stringa non valida: deve terminare con "${X.suffix}"`;if(X.format==="includes")return`Stringa non valida: deve includere "${X.includes}"`;if(X.format==="regex")return`Stringa non valida: deve corrispondere al pattern ${X.pattern}`;return`Input non valido: ${U[X.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"}: ${g(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 Ib=_(()=>{QD()});function hz(){return{localeError:g4D()}}var g4D=()=>{let D={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function $(Y){return D[Y]??null}let U={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"},J={nan:"NaN",number:"数値",array:"配列"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`無効な入力: instanceof ${Y.expected}が期待されましたが、${F}が入力されました`;return`無効な入力: ${X}が期待されましたが、${F}が入力されました`}case"invalid_value":if(Y.values.length===1)return`無効な入力: ${l(Y.values[0])}が期待されました`;return`無効な選択: ${g(Y.values,"、")}のいずれかである必要があります`;case"too_big":{let X=Y.inclusive?"以下である":"より小さい",Q=$(Y.origin);if(Q)return`大きすぎる値: ${Y.origin??"値"}は${Y.maximum.toString()}${Q.unit??"要素"}${X}必要があります`;return`大きすぎる値: ${Y.origin??"値"}は${Y.maximum.toString()}${X}必要があります`}case"too_small":{let X=Y.inclusive?"以上である":"より大きい",Q=$(Y.origin);if(Q)return`小さすぎる値: ${Y.origin}は${Y.minimum.toString()}${Q.unit}${X}必要があります`;return`小さすぎる値: ${Y.origin}は${Y.minimum.toString()}${X}必要があります`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`無効な文字列: "${X.prefix}"で始まる必要があります`;if(X.format==="ends_with")return`無効な文字列: "${X.suffix}"で終わる必要があります`;if(X.format==="includes")return`無効な文字列: "${X.includes}"を含む必要があります`;if(X.format==="regex")return`無効な文字列: パターン${X.pattern}に一致する必要があります`;return`無効な${U[X.format]??Y.format}`}case"not_multiple_of":return`無効な数値: ${Y.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${Y.keys.length>1?"群":""}: ${g(Y.keys,"、")}`;case"invalid_key":return`${Y.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${Y.origin}内の無効な値`;default:return"無効な入力"}}};var Bb=_(()=>{QD()});function mz(){return{localeError:f4D()}}var f4D=()=>{let D={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function $(Y){return D[Y]??null}let U={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული ველი",base64url:"base64url-კოდირებული ველი",json_string:"JSON ველი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"},J={nan:"NaN",number:"რიცხვი",string:"ველი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`არასწორი შეყვანა: მოსალოდნელი instanceof ${Y.expected}, მიღებული ${F}`;return`არასწორი შეყვანა: მოსალოდნელი ${X}, მიღებული ${F}`}case"invalid_value":if(Y.values.length===1)return`არასწორი შეყვანა: მოსალოდნელი ${l(Y.values[0])}`;return`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${g(Y.values,"|")}-დან`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`ზედმეტად დიდი: მოსალოდნელი ${Y.origin??"მნიშვნელობა"} ${Q.verb} ${X}${Y.maximum.toString()} ${Q.unit}`;return`ზედმეტად დიდი: მოსალოდნელი ${Y.origin??"მნიშვნელობა"} იყოს ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`ზედმეტად პატარა: მოსალოდნელი ${Y.origin} ${Q.verb} ${X}${Y.minimum.toString()} ${Q.unit}`;return`ზედმეტად პატარა: მოსალოდნელი ${Y.origin} იყოს ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`არასწორი ველი: უნდა იწყებოდეს "${X.prefix}"-ით`;if(X.format==="ends_with")return`არასწორი ველი: უნდა მთავრდებოდეს "${X.suffix}"-ით`;if(X.format==="includes")return`არასწორი ველი: უნდა შეიცავდეს "${X.includes}"-ს`;if(X.format==="regex")return`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${X.pattern}`;return`არასწორი ${U[X.format]??Y.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${Y.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${Y.keys.length>1?"ები":"ი"}: ${g(Y.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${Y.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${Y.origin}-ში`;default:return"არასწორი შეყვანა"}}};var wb=_(()=>{QD()});function j5(){return{localeError:y4D()}}var y4D=()=>{let D={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function $(Y){return D[Y]??null}let U={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"},J={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${Y.expected} ប៉ុន្តែទទួលបាន ${F}`;return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${X} ប៉ុន្តែទទួលបាន ${F}`}case"invalid_value":if(Y.values.length===1)return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${l(Y.values[0])}`;return`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`ធំពេក៖ ត្រូវការ ${Y.origin??"តម្លៃ"} ${X} ${Y.maximum.toString()} ${Q.unit??"ធាតុ"}`;return`ធំពេក៖ ត្រូវការ ${Y.origin??"តម្លៃ"} ${X} ${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`តូចពេក៖ ត្រូវការ ${Y.origin} ${X} ${Y.minimum.toString()} ${Q.unit}`;return`តូចពេក៖ ត្រូវការ ${Y.origin} ${X} ${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${X.prefix}"`;if(X.format==="ends_with")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${X.suffix}"`;if(X.format==="includes")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${X.includes}"`;if(X.format==="regex")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${X.pattern}`;return`មិនត្រឹមត្រូវ៖ ${U[X.format]??Y.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${Y.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${g(Y.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${Y.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${Y.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};var lz=_(()=>{QD()});function cz(){return j5()}var Ob=_(()=>{lz()});function dz(){return{localeError:h4D()}}var h4D=()=>{let D={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function $(Y){return D[Y]??null}let U={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"},J={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`잘못된 입력: 예상 타입은 instanceof ${Y.expected}, 받은 타입은 ${F}입니다`;return`잘못된 입력: 예상 타입은 ${X}, 받은 타입은 ${F}입니다`}case"invalid_value":if(Y.values.length===1)return`잘못된 입력: 값은 ${l(Y.values[0])} 이어야 합니다`;return`잘못된 옵션: ${g(Y.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{let X=Y.inclusive?"이하":"미만",Q=X==="미만"?"이어야 합니다":"여야 합니다",F=$(Y.origin),W=F?.unit??"요소";if(F)return`${Y.origin??"값"}이 너무 큽니다: ${Y.maximum.toString()}${W} ${X}${Q}`;return`${Y.origin??"값"}이 너무 큽니다: ${Y.maximum.toString()} ${X}${Q}`}case"too_small":{let X=Y.inclusive?"이상":"초과",Q=X==="이상"?"이어야 합니다":"여야 합니다",F=$(Y.origin),W=F?.unit??"요소";if(F)return`${Y.origin??"값"}이 너무 작습니다: ${Y.minimum.toString()}${W} ${X}${Q}`;return`${Y.origin??"값"}이 너무 작습니다: ${Y.minimum.toString()} ${X}${Q}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`잘못된 문자열: "${X.prefix}"(으)로 시작해야 합니다`;if(X.format==="ends_with")return`잘못된 문자열: "${X.suffix}"(으)로 끝나야 합니다`;if(X.format==="includes")return`잘못된 문자열: "${X.includes}"을(를) 포함해야 합니다`;if(X.format==="regex")return`잘못된 문자열: 정규식 ${X.pattern} 패턴과 일치해야 합니다`;return`잘못된 ${U[X.format]??Y.format}`}case"not_multiple_of":return`잘못된 숫자: ${Y.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${g(Y.keys,", ")}`;case"invalid_key":return`잘못된 키: ${Y.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${Y.origin}`;default:return"잘못된 입력"}}};var jb=_(()=>{QD()});function Nb(D){let $=Math.abs(D),U=$%10,J=$%100;if(J>=11&&J<=19||U===0)return"many";if(U===1)return"one";return"few"}function iz(){return{localeError:m4D()}}var N5=(D)=>{return D.charAt(0).toUpperCase()+D.slice(1)},m4D=()=>{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,X,Q,F){let W=D[Y]??null;if(W===null)return W;return{unit:W.unit[X],verb:W.verb[F][Q?"inclusive":"notInclusive"]}}let U={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"},J={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 X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`Gautas tipas ${F}, o tikėtasi - instanceof ${Y.expected}`;return`Gautas tipas ${F}, o tikėtasi - ${X}`}case"invalid_value":if(Y.values.length===1)return`Privalo būti ${l(Y.values[0])}`;return`Privalo būti vienas iš ${g(Y.values,"|")} pasirinkimų`;case"too_big":{let X=J[Y.origin]??Y.origin,Q=$(Y.origin,Nb(Number(Y.maximum)),Y.inclusive??!1,"smaller");if(Q?.verb)return`${N5(X??Y.origin??"reikšmė")} ${Q.verb} ${Y.maximum.toString()} ${Q.unit??"elementų"}`;let F=Y.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${N5(X??Y.origin??"reikšmė")} turi būti ${F} ${Y.maximum.toString()} ${Q?.unit}`}case"too_small":{let X=J[Y.origin]??Y.origin,Q=$(Y.origin,Nb(Number(Y.minimum)),Y.inclusive??!1,"bigger");if(Q?.verb)return`${N5(X??Y.origin??"reikšmė")} ${Q.verb} ${Y.minimum.toString()} ${Q.unit??"elementų"}`;let F=Y.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${N5(X??Y.origin??"reikšmė")} turi būti ${F} ${Y.minimum.toString()} ${Q?.unit}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Eilutė privalo prasidėti "${X.prefix}"`;if(X.format==="ends_with")return`Eilutė privalo pasibaigti "${X.suffix}"`;if(X.format==="includes")return`Eilutė privalo įtraukti "${X.includes}"`;if(X.format==="regex")return`Eilutė privalo atitikti ${X.pattern}`;return`Neteisingas ${U[X.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"}: ${g(Y.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{let X=J[Y.origin]??Y.origin;return`${N5(X??Y.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};var Lb=_(()=>{QD()});function pz(){return{localeError:l4D()}}var l4D=()=>{let D={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function $(Y){return D[Y]??null}let U={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"},J={nan:"NaN",number:"број",array:"низа"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`Грешен внес: се очекува instanceof ${Y.expected}, примено ${F}`;return`Грешен внес: се очекува ${X}, примено ${F}`}case"invalid_value":if(Y.values.length===1)return`Invalid input: expected ${l(Y.values[0])}`;return`Грешана опција: се очекува една ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`Премногу голем: се очекува ${Y.origin??"вредноста"} да има ${X}${Y.maximum.toString()} ${Q.unit??"елементи"}`;return`Премногу голем: се очекува ${Y.origin??"вредноста"} да биде ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`Премногу мал: се очекува ${Y.origin} да има ${X}${Y.minimum.toString()} ${Q.unit}`;return`Премногу мал: се очекува ${Y.origin} да биде ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Неважечка низа: мора да започнува со "${X.prefix}"`;if(X.format==="ends_with")return`Неважечка низа: мора да завршува со "${X.suffix}"`;if(X.format==="includes")return`Неважечка низа: мора да вклучува "${X.includes}"`;if(X.format==="regex")return`Неважечка низа: мора да одгоара на патернот ${X.pattern}`;return`Invalid ${U[X.format]??Y.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${Y.divisor}`;case"unrecognized_keys":return`${Y.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${g(Y.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${Y.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${Y.origin}`;default:return"Грешен внес"}}};var Rb=_(()=>{QD()});function nz(){return{localeError:c4D()}}var c4D=()=>{let D={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function $(Y){return D[Y]??null}let U={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},J={nan:"NaN",number:"nombor"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`Input tidak sah: dijangka instanceof ${Y.expected}, diterima ${F}`;return`Input tidak sah: dijangka ${X}, diterima ${F}`}case"invalid_value":if(Y.values.length===1)return`Input tidak sah: dijangka ${l(Y.values[0])}`;return`Pilihan tidak sah: dijangka salah satu daripada ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`Terlalu besar: dijangka ${Y.origin??"nilai"} ${Q.verb} ${X}${Y.maximum.toString()} ${Q.unit??"elemen"}`;return`Terlalu besar: dijangka ${Y.origin??"nilai"} adalah ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`Terlalu kecil: dijangka ${Y.origin} ${Q.verb} ${X}${Y.minimum.toString()} ${Q.unit}`;return`Terlalu kecil: dijangka ${Y.origin} adalah ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`String tidak sah: mesti bermula dengan "${X.prefix}"`;if(X.format==="ends_with")return`String tidak sah: mesti berakhir dengan "${X.suffix}"`;if(X.format==="includes")return`String tidak sah: mesti mengandungi "${X.includes}"`;if(X.format==="regex")return`String tidak sah: mesti sepadan dengan corak ${X.pattern}`;return`${U[X.format]??Y.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${Y.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${g(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 Mb=_(()=>{QD()});function rz(){return{localeError:d4D()}}var d4D=()=>{let D={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function $(Y){return D[Y]??null}let U={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},J={nan:"NaN",number:"getal"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`Ongeldige invoer: verwacht instanceof ${Y.expected}, ontving ${F}`;return`Ongeldige invoer: verwacht ${X}, ontving ${F}`}case"invalid_value":if(Y.values.length===1)return`Ongeldige invoer: verwacht ${l(Y.values[0])}`;return`Ongeldige optie: verwacht één van ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin),F=Y.origin==="date"?"laat":Y.origin==="string"?"lang":"groot";if(Q)return`Te ${F}: verwacht dat ${Y.origin??"waarde"} ${X}${Y.maximum.toString()} ${Q.unit??"elementen"} ${Q.verb}`;return`Te ${F}: verwacht dat ${Y.origin??"waarde"} ${X}${Y.maximum.toString()} is`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin),F=Y.origin==="date"?"vroeg":Y.origin==="string"?"kort":"klein";if(Q)return`Te ${F}: verwacht dat ${Y.origin} ${X}${Y.minimum.toString()} ${Q.unit} ${Q.verb}`;return`Te ${F}: verwacht dat ${Y.origin} ${X}${Y.minimum.toString()} is`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Ongeldige tekst: moet met "${X.prefix}" beginnen`;if(X.format==="ends_with")return`Ongeldige tekst: moet op "${X.suffix}" eindigen`;if(X.format==="includes")return`Ongeldige tekst: moet "${X.includes}" bevatten`;if(X.format==="regex")return`Ongeldige tekst: moet overeenkomen met patroon ${X.pattern}`;return`Ongeldig: ${U[X.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":""}: ${g(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 Ab=_(()=>{QD()});function oz(){return{localeError:i4D()}}var i4D=()=>{let D={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function $(Y){return D[Y]??null}let U={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},J={nan:"NaN",number:"tall",array:"liste"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`Ugyldig input: forventet instanceof ${Y.expected}, fikk ${F}`;return`Ugyldig input: forventet ${X}, fikk ${F}`}case"invalid_value":if(Y.values.length===1)return`Ugyldig verdi: forventet ${l(Y.values[0])}`;return`Ugyldig valg: forventet en av ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`For stor(t): forventet ${Y.origin??"value"} til å ha ${X}${Y.maximum.toString()} ${Q.unit??"elementer"}`;return`For stor(t): forventet ${Y.origin??"value"} til å ha ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`For lite(n): forventet ${Y.origin} til å ha ${X}${Y.minimum.toString()} ${Q.unit}`;return`For lite(n): forventet ${Y.origin} til å ha ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Ugyldig streng: må starte med "${X.prefix}"`;if(X.format==="ends_with")return`Ugyldig streng: må ende med "${X.suffix}"`;if(X.format==="includes")return`Ugyldig streng: må inneholde "${X.includes}"`;if(X.format==="regex")return`Ugyldig streng: må matche mønsteret ${X.pattern}`;return`Ugyldig ${U[X.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"}: ${g(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 vb=_(()=>{QD()});function az(){return{localeError:p4D()}}var p4D=()=>{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"}};function $(Y){return D[Y]??null}let U={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"},J={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`Fâsit giren: umulan instanceof ${Y.expected}, alınan ${F}`;return`Fâsit giren: umulan ${X}, alınan ${F}`}case"invalid_value":if(Y.values.length===1)return`Fâsit giren: umulan ${l(Y.values[0])}`;return`Fâsit tercih: mûteberler ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`Fazla büyük: ${Y.origin??"value"}, ${X}${Y.maximum.toString()} ${Q.unit??"elements"} sahip olmalıydı.`;return`Fazla büyük: ${Y.origin??"value"}, ${X}${Y.maximum.toString()} olmalıydı.`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`Fazla küçük: ${Y.origin}, ${X}${Y.minimum.toString()} ${Q.unit} sahip olmalıydı.`;return`Fazla küçük: ${Y.origin}, ${X}${Y.minimum.toString()} olmalıydı.`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Fâsit metin: "${X.prefix}" ile başlamalı.`;if(X.format==="ends_with")return`Fâsit metin: "${X.suffix}" ile bitmeli.`;if(X.format==="includes")return`Fâsit metin: "${X.includes}" ihtivâ etmeli.`;if(X.format==="regex")return`Fâsit metin: ${X.pattern} nakşına uymalı.`;return`Fâsit ${U[X.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":""}: ${g(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 Eb=_(()=>{QD()});function tz(){return{localeError:n4D()}}var n4D=()=>{let D={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function $(Y){return D[Y]??null}let U={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"},J={nan:"NaN",number:"عدد",array:"ارې"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`ناسم ورودي: باید instanceof ${Y.expected} وای, مګر ${F} ترلاسه شو`;return`ناسم ورودي: باید ${X} وای, مګر ${F} ترلاسه شو`}case"invalid_value":if(Y.values.length===1)return`ناسم ورودي: باید ${l(Y.values[0])} وای`;return`ناسم انتخاب: باید یو له ${g(Y.values,"|")} څخه وای`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`ډیر لوی: ${Y.origin??"ارزښت"} باید ${X}${Y.maximum.toString()} ${Q.unit??"عنصرونه"} ولري`;return`ډیر لوی: ${Y.origin??"ارزښت"} باید ${X}${Y.maximum.toString()} وي`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`ډیر کوچنی: ${Y.origin} باید ${X}${Y.minimum.toString()} ${Q.unit} ولري`;return`ډیر کوچنی: ${Y.origin} باید ${X}${Y.minimum.toString()} وي`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`ناسم متن: باید د "${X.prefix}" سره پیل شي`;if(X.format==="ends_with")return`ناسم متن: باید د "${X.suffix}" سره پای ته ورسيږي`;if(X.format==="includes")return`ناسم متن: باید "${X.includes}" ولري`;if(X.format==="regex")return`ناسم متن: باید د ${X.pattern} سره مطابقت ولري`;return`${U[X.format]??Y.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${Y.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${Y.keys.length>1?"کلیډونه":"کلیډ"}: ${g(Y.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${Y.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${Y.origin} کې`;default:return"ناسمه ورودي"}}};var Tb=_(()=>{QD()});function sz(){return{localeError:r4D()}}var r4D=()=>{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ć"}};function $(Y){return D[Y]??null}let U={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"},J={nan:"NaN",number:"liczba",array:"tablica"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;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 ${X}, otrzymano ${F}`}case"invalid_value":if(Y.values.length===1)return`Nieprawidłowe dane wejściowe: oczekiwano ${l(Y.values[0])}`;return`Nieprawidłowa opcja: oczekiwano jednej z wartości ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`Za duża wartość: oczekiwano, że ${Y.origin??"wartość"} będzie mieć ${X}${Y.maximum.toString()} ${Q.unit??"elementów"}`;return`Zbyt duż(y/a/e): oczekiwano, że ${Y.origin??"wartość"} będzie wynosić ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`Za mała wartość: oczekiwano, że ${Y.origin??"wartość"} będzie mieć ${X}${Y.minimum.toString()} ${Q.unit??"elementów"}`;return`Zbyt mał(y/a/e): oczekiwano, że ${Y.origin??"wartość"} będzie wynosić ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Nieprawidłowy ciąg znaków: musi zaczynać się od "${X.prefix}"`;if(X.format==="ends_with")return`Nieprawidłowy ciąg znaków: musi kończyć się na "${X.suffix}"`;if(X.format==="includes")return`Nieprawidłowy ciąg znaków: musi zawierać "${X.includes}"`;if(X.format==="regex")return`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${X.pattern}`;return`Nieprawidłow(y/a/e) ${U[X.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":""}: ${g(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 Pb=_(()=>{QD()});function ez(){return{localeError:o4D()}}var o4D=()=>{let D={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function $(Y){return D[Y]??null}let U={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},J={nan:"NaN",number:"número",null:"nulo"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`Tipo inválido: esperado instanceof ${Y.expected}, recebido ${F}`;return`Tipo inválido: esperado ${X}, recebido ${F}`}case"invalid_value":if(Y.values.length===1)return`Entrada inválida: esperado ${l(Y.values[0])}`;return`Opção inválida: esperada uma das ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`Muito grande: esperado que ${Y.origin??"valor"} tivesse ${X}${Y.maximum.toString()} ${Q.unit??"elementos"}`;return`Muito grande: esperado que ${Y.origin??"valor"} fosse ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`Muito pequeno: esperado que ${Y.origin} tivesse ${X}${Y.minimum.toString()} ${Q.unit}`;return`Muito pequeno: esperado que ${Y.origin} fosse ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Texto inválido: deve começar com "${X.prefix}"`;if(X.format==="ends_with")return`Texto inválido: deve terminar com "${X.suffix}"`;if(X.format==="includes")return`Texto inválido: deve incluir "${X.includes}"`;if(X.format==="regex")return`Texto inválido: deve corresponder ao padrão ${X.pattern}`;return`${U[X.format]??Y.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${Y.divisor}`;case"unrecognized_keys":return`Chave${Y.keys.length>1?"s":""} desconhecida${Y.keys.length>1?"s":""}: ${g(Y.keys,", ")}`;case"invalid_key":return`Chave inválida em ${Y.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${Y.origin}`;default:return"Campo inválido"}}};var Sb=_(()=>{QD()});function Dq(){return{localeError:a4D()}}var a4D=()=>{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 U={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",jwt:"JWT",template_literal:"intrare"},J={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 X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;return`Intrare invalidă: așteptat ${X}, primit ${F}`}case"invalid_value":if(Y.values.length===1)return`Intrare invalidă: așteptat ${l(Y.values[0])}`;return`Opțiune invalidă: așteptat una dintre ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`Prea mare: așteptat ca ${Y.origin??"valoarea"} ${Q.verb} ${X}${Y.maximum.toString()} ${Q.unit??"elemente"}`;return`Prea mare: așteptat ca ${Y.origin??"valoarea"} să fie ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`Prea mic: așteptat ca ${Y.origin} ${Q.verb} ${X}${Y.minimum.toString()} ${Q.unit}`;return`Prea mic: așteptat ca ${Y.origin} să fie ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Șir invalid: trebuie să înceapă cu "${X.prefix}"`;if(X.format==="ends_with")return`Șir invalid: trebuie să se termine cu "${X.suffix}"`;if(X.format==="includes")return`Șir invalid: trebuie să includă "${X.includes}"`;if(X.format==="regex")return`Șir invalid: trebuie să se potrivească cu modelul ${X.pattern}`;return`Format invalid: ${U[X.format]??Y.format}`}case"not_multiple_of":return`Număr invalid: trebuie să fie multiplu de ${Y.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${g(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 bb=_(()=>{QD()});function Cb(D,$,U,J){let Y=Math.abs(D),X=Y%10,Q=Y%100;if(Q>=11&&Q<=19)return J;if(X===1)return $;if(X>=2&&X<=4)return U;return J}function $q(){return{localeError:t4D()}}var t4D=()=>{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:"иметь"}};function $(Y){return D[Y]??null}let U={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"},J={nan:"NaN",number:"число",array:"массив"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`Неверный ввод: ожидалось instanceof ${Y.expected}, получено ${F}`;return`Неверный ввод: ожидалось ${X}, получено ${F}`}case"invalid_value":if(Y.values.length===1)return`Неверный ввод: ожидалось ${l(Y.values[0])}`;return`Неверный вариант: ожидалось одно из ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q){let F=Number(Y.maximum),W=Cb(F,Q.unit.one,Q.unit.few,Q.unit.many);return`Слишком большое значение: ожидалось, что ${Y.origin??"значение"} будет иметь ${X}${Y.maximum.toString()} ${W}`}return`Слишком большое значение: ожидалось, что ${Y.origin??"значение"} будет ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q){let F=Number(Y.minimum),W=Cb(F,Q.unit.one,Q.unit.few,Q.unit.many);return`Слишком маленькое значение: ожидалось, что ${Y.origin} будет иметь ${X}${Y.minimum.toString()} ${W}`}return`Слишком маленькое значение: ожидалось, что ${Y.origin} будет ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Неверная строка: должна начинаться с "${X.prefix}"`;if(X.format==="ends_with")return`Неверная строка: должна заканчиваться на "${X.suffix}"`;if(X.format==="includes")return`Неверная строка: должна содержать "${X.includes}"`;if(X.format==="regex")return`Неверная строка: должна соответствовать шаблону ${X.pattern}`;return`Неверный ${U[X.format]??Y.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${Y.divisor}`;case"unrecognized_keys":return`Нераспознанн${Y.keys.length>1?"ые":"ый"} ключ${Y.keys.length>1?"и":""}: ${g(Y.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${Y.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${Y.origin}`;default:return"Неверные входные данные"}}};var kb=_(()=>{QD()});function Uq(){return{localeError:s4D()}}var s4D=()=>{let D={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function $(Y){return D[Y]??null}let U={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"},J={nan:"NaN",number:"število",array:"tabela"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`Neveljaven vnos: pričakovano instanceof ${Y.expected}, prejeto ${F}`;return`Neveljaven vnos: pričakovano ${X}, prejeto ${F}`}case"invalid_value":if(Y.values.length===1)return`Neveljaven vnos: pričakovano ${l(Y.values[0])}`;return`Neveljavna možnost: pričakovano eno izmed ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`Preveliko: pričakovano, da bo ${Y.origin??"vrednost"} imelo ${X}${Y.maximum.toString()} ${Q.unit??"elementov"}`;return`Preveliko: pričakovano, da bo ${Y.origin??"vrednost"} ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`Premajhno: pričakovano, da bo ${Y.origin} imelo ${X}${Y.minimum.toString()} ${Q.unit}`;return`Premajhno: pričakovano, da bo ${Y.origin} ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Neveljaven niz: mora se začeti z "${X.prefix}"`;if(X.format==="ends_with")return`Neveljaven niz: mora se končati z "${X.suffix}"`;if(X.format==="includes")return`Neveljaven niz: mora vsebovati "${X.includes}"`;if(X.format==="regex")return`Neveljaven niz: mora ustrezati vzorcu ${X.pattern}`;return`Neveljaven ${U[X.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č"}: ${g(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 ub=_(()=>{QD()});function Jq(){return{localeError:e4D()}}var e4D=()=>{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"}};function $(Y){return D[Y]??null}let U={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},J={nan:"NaN",number:"antal",array:"lista"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`Ogiltig inmatning: förväntat instanceof ${Y.expected}, fick ${F}`;return`Ogiltig inmatning: förväntat ${X}, fick ${F}`}case"invalid_value":if(Y.values.length===1)return`Ogiltig inmatning: förväntat ${l(Y.values[0])}`;return`Ogiltigt val: förväntade en av ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`För stor(t): förväntade ${Y.origin??"värdet"} att ha ${X}${Y.maximum.toString()} ${Q.unit??"element"}`;return`För stor(t): förväntat ${Y.origin??"värdet"} att ha ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`För lite(t): förväntade ${Y.origin??"värdet"} att ha ${X}${Y.minimum.toString()} ${Q.unit}`;return`För lite(t): förväntade ${Y.origin??"värdet"} att ha ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Ogiltig sträng: måste börja med "${X.prefix}"`;if(X.format==="ends_with")return`Ogiltig sträng: måste sluta med "${X.suffix}"`;if(X.format==="includes")return`Ogiltig sträng: måste innehålla "${X.includes}"`;if(X.format==="regex")return`Ogiltig sträng: måste matcha mönstret "${X.pattern}"`;return`Ogiltig(t) ${U[X.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"}: ${g(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 _b=_(()=>{QD()});function Yq(){return{localeError:D8D()}}var D8D=()=>{let D={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function $(Y){return D[Y]??null}let U={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"},J={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${Y.expected}, பெறப்பட்டது ${F}`;return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${X}, பெறப்பட்டது ${F}`}case"invalid_value":if(Y.values.length===1)return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${l(Y.values[0])}`;return`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${g(Y.values,"|")} இல் ஒன்று`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${Y.origin??"மதிப்பு"} ${X}${Y.maximum.toString()} ${Q.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`;return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${Y.origin??"மதிப்பு"} ${X}${Y.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${Y.origin} ${X}${Y.minimum.toString()} ${Q.unit} ஆக இருக்க வேண்டும்`;return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${Y.origin} ${X}${Y.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`தவறான சரம்: "${X.prefix}" இல் தொடங்க வேண்டும்`;if(X.format==="ends_with")return`தவறான சரம்: "${X.suffix}" இல் முடிவடைய வேண்டும்`;if(X.format==="includes")return`தவறான சரம்: "${X.includes}" ஐ உள்ளடக்க வேண்டும்`;if(X.format==="regex")return`தவறான சரம்: ${X.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`;return`தவறான ${U[X.format]??Y.format}`}case"not_multiple_of":return`தவறான எண்: ${Y.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${Y.keys.length>1?"கள்":""}: ${g(Y.keys,", ")}`;case"invalid_key":return`${Y.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${Y.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};var xb=_(()=>{QD()});function Xq(){return{localeError:$8D()}}var $8D=()=>{let D={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function $(Y){return D[Y]??null}let U={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"},J={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${Y.expected} แต่ได้รับ ${F}`;return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${X} แต่ได้รับ ${F}`}case"invalid_value":if(Y.values.length===1)return`ค่าไม่ถูกต้อง: ควรเป็น ${l(Y.values[0])}`;return`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"ไม่เกิน":"น้อยกว่า",Q=$(Y.origin);if(Q)return`เกินกำหนด: ${Y.origin??"ค่า"} ควรมี${X} ${Y.maximum.toString()} ${Q.unit??"รายการ"}`;return`เกินกำหนด: ${Y.origin??"ค่า"} ควรมี${X} ${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?"อย่างน้อย":"มากกว่า",Q=$(Y.origin);if(Q)return`น้อยกว่ากำหนด: ${Y.origin} ควรมี${X} ${Y.minimum.toString()} ${Q.unit}`;return`น้อยกว่ากำหนด: ${Y.origin} ควรมี${X} ${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${X.prefix}"`;if(X.format==="ends_with")return`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${X.suffix}"`;if(X.format==="includes")return`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${X.includes}" อยู่ในข้อความ`;if(X.format==="regex")return`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${X.pattern}`;return`รูปแบบไม่ถูกต้อง: ${U[X.format]??Y.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${Y.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${g(Y.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${Y.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${Y.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};var gb=_(()=>{QD()});function Qq(){return{localeError:U8D()}}var U8D=()=>{let D={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function $(Y){return D[Y]??null}let U={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"},J={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`Geçersiz değer: beklenen instanceof ${Y.expected}, alınan ${F}`;return`Geçersiz değer: beklenen ${X}, alınan ${F}`}case"invalid_value":if(Y.values.length===1)return`Geçersiz değer: beklenen ${l(Y.values[0])}`;return`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`Çok büyük: beklenen ${Y.origin??"değer"} ${X}${Y.maximum.toString()} ${Q.unit??"öğe"}`;return`Çok büyük: beklenen ${Y.origin??"değer"} ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`Çok küçük: beklenen ${Y.origin} ${X}${Y.minimum.toString()} ${Q.unit}`;return`Çok küçük: beklenen ${Y.origin} ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Geçersiz metin: "${X.prefix}" ile başlamalı`;if(X.format==="ends_with")return`Geçersiz metin: "${X.suffix}" ile bitmeli`;if(X.format==="includes")return`Geçersiz metin: "${X.includes}" içermeli`;if(X.format==="regex")return`Geçersiz metin: ${X.pattern} desenine uymalı`;return`Geçersiz ${U[X.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":""}: ${g(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 fb=_(()=>{QD()});function L5(){return{localeError:J8D()}}var J8D=()=>{let D={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function $(Y){return D[Y]??null}let U={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"},J={nan:"NaN",number:"число",array:"масив"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`Неправильні вхідні дані: очікується instanceof ${Y.expected}, отримано ${F}`;return`Неправильні вхідні дані: очікується ${X}, отримано ${F}`}case"invalid_value":if(Y.values.length===1)return`Неправильні вхідні дані: очікується ${l(Y.values[0])}`;return`Неправильна опція: очікується одне з ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`Занадто велике: очікується, що ${Y.origin??"значення"} ${Q.verb} ${X}${Y.maximum.toString()} ${Q.unit??"елементів"}`;return`Занадто велике: очікується, що ${Y.origin??"значення"} буде ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`Занадто мале: очікується, що ${Y.origin} ${Q.verb} ${X}${Y.minimum.toString()} ${Q.unit}`;return`Занадто мале: очікується, що ${Y.origin} буде ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Неправильний рядок: повинен починатися з "${X.prefix}"`;if(X.format==="ends_with")return`Неправильний рядок: повинен закінчуватися на "${X.suffix}"`;if(X.format==="includes")return`Неправильний рядок: повинен містити "${X.includes}"`;if(X.format==="regex")return`Неправильний рядок: повинен відповідати шаблону ${X.pattern}`;return`Неправильний ${U[X.format]??Y.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${Y.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${Y.keys.length>1?"і":""}: ${g(Y.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${Y.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${Y.origin}`;default:return"Неправильні вхідні дані"}}};var Fq=_(()=>{QD()});function Wq(){return L5()}var yb=_(()=>{Fq()});function Kq(){return{localeError:Y8D()}}var Y8D=()=>{let D={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function $(Y){return D[Y]??null}let U={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"},J={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`غلط ان پٹ: instanceof ${Y.expected} متوقع تھا، ${F} موصول ہوا`;return`غلط ان پٹ: ${X} متوقع تھا، ${F} موصول ہوا`}case"invalid_value":if(Y.values.length===1)return`غلط ان پٹ: ${l(Y.values[0])} متوقع تھا`;return`غلط آپشن: ${g(Y.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`بہت بڑا: ${Y.origin??"ویلیو"} کے ${X}${Y.maximum.toString()} ${Q.unit??"عناصر"} ہونے متوقع تھے`;return`بہت بڑا: ${Y.origin??"ویلیو"} کا ${X}${Y.maximum.toString()} ہونا متوقع تھا`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`بہت چھوٹا: ${Y.origin} کے ${X}${Y.minimum.toString()} ${Q.unit} ہونے متوقع تھے`;return`بہت چھوٹا: ${Y.origin} کا ${X}${Y.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`غلط سٹرنگ: "${X.prefix}" سے شروع ہونا چاہیے`;if(X.format==="ends_with")return`غلط سٹرنگ: "${X.suffix}" پر ختم ہونا چاہیے`;if(X.format==="includes")return`غلط سٹرنگ: "${X.includes}" شامل ہونا چاہیے`;if(X.format==="regex")return`غلط سٹرنگ: پیٹرن ${X.pattern} سے میچ ہونا چاہیے`;return`غلط ${U[X.format]??Y.format}`}case"not_multiple_of":return`غلط نمبر: ${Y.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${Y.keys.length>1?"ز":""}: ${g(Y.keys,"، ")}`;case"invalid_key":return`${Y.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${Y.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};var hb=_(()=>{QD()});function Zq(){return{localeError:X8D()}}var X8D=()=>{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 U={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},J={nan:"NaN",number:"raqam",array:"massiv"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`Noto‘g‘ri kirish: kutilgan instanceof ${Y.expected}, qabul qilingan ${F}`;return`Noto‘g‘ri kirish: kutilgan ${X}, qabul qilingan ${F}`}case"invalid_value":if(Y.values.length===1)return`Noto‘g‘ri kirish: kutilgan ${l(Y.values[0])}`;return`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`Juda katta: kutilgan ${Y.origin??"qiymat"} ${X}${Y.maximum.toString()} ${Q.unit} ${Q.verb}`;return`Juda katta: kutilgan ${Y.origin??"qiymat"} ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`Juda kichik: kutilgan ${Y.origin} ${X}${Y.minimum.toString()} ${Q.unit} ${Q.verb}`;return`Juda kichik: kutilgan ${Y.origin} ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Noto‘g‘ri satr: "${X.prefix}" bilan boshlanishi kerak`;if(X.format==="ends_with")return`Noto‘g‘ri satr: "${X.suffix}" bilan tugashi kerak`;if(X.format==="includes")return`Noto‘g‘ri satr: "${X.includes}" ni o‘z ichiga olishi kerak`;if(X.format==="regex")return`Noto‘g‘ri satr: ${X.pattern} shabloniga mos kelishi kerak`;return`Noto‘g‘ri ${U[X.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":""}: ${g(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 mb=_(()=>{QD()});function zq(){return{localeError:Q8D()}}var Q8D=()=>{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ó"}};function $(Y){return D[Y]??null}let U={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"},J={nan:"NaN",number:"số",array:"mảng"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;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 ${X}, nhận được ${F}`}case"invalid_value":if(Y.values.length===1)return`Đầu vào không hợp lệ: mong đợi ${l(Y.values[0])}`;return`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`Quá lớn: mong đợi ${Y.origin??"giá trị"} ${Q.verb} ${X}${Y.maximum.toString()} ${Q.unit??"phần tử"}`;return`Quá lớn: mong đợi ${Y.origin??"giá trị"} ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`Quá nhỏ: mong đợi ${Y.origin} ${Q.verb} ${X}${Y.minimum.toString()} ${Q.unit}`;return`Quá nhỏ: mong đợi ${Y.origin} ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Chuỗi không hợp lệ: phải bắt đầu bằng "${X.prefix}"`;if(X.format==="ends_with")return`Chuỗi không hợp lệ: phải kết thúc bằng "${X.suffix}"`;if(X.format==="includes")return`Chuỗi không hợp lệ: phải bao gồm "${X.includes}"`;if(X.format==="regex")return`Chuỗi không hợp lệ: phải khớp với mẫu ${X.pattern}`;return`${U[X.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: ${g(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 lb=_(()=>{QD()});function qq(){return{localeError:F8D()}}var F8D=()=>{let D={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function $(Y){return D[Y]??null}let U={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"},J={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`无效输入:期望 instanceof ${Y.expected},实际接收 ${F}`;return`无效输入:期望 ${X},实际接收 ${F}`}case"invalid_value":if(Y.values.length===1)return`无效输入:期望 ${l(Y.values[0])}`;return`无效选项:期望以下之一 ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`数值过大:期望 ${Y.origin??"值"} ${X}${Y.maximum.toString()} ${Q.unit??"个元素"}`;return`数值过大:期望 ${Y.origin??"值"} ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`数值过小:期望 ${Y.origin} ${X}${Y.minimum.toString()} ${Q.unit}`;return`数值过小:期望 ${Y.origin} ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`无效字符串:必须以 "${X.prefix}" 开头`;if(X.format==="ends_with")return`无效字符串:必须以 "${X.suffix}" 结尾`;if(X.format==="includes")return`无效字符串:必须包含 "${X.includes}"`;if(X.format==="regex")return`无效字符串:必须满足正则表达式 ${X.pattern}`;return`无效${U[X.format]??Y.format}`}case"not_multiple_of":return`无效数字:必须是 ${Y.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${g(Y.keys,", ")}`;case"invalid_key":return`${Y.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${Y.origin} 中包含无效值(value)`;default:return"无效输入"}}};var cb=_(()=>{QD()});function Gq(){return{localeError:W8D()}}var W8D=()=>{let D={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function $(Y){return D[Y]??null}let U={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"},J={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;if(/^[A-Z]/.test(Y.expected))return`無效的輸入值:預期為 instanceof ${Y.expected},但收到 ${F}`;return`無效的輸入值:預期為 ${X},但收到 ${F}`}case"invalid_value":if(Y.values.length===1)return`無效的輸入值:預期為 ${l(Y.values[0])}`;return`無效的選項:預期為以下其中之一 ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`數值過大:預期 ${Y.origin??"值"} 應為 ${X}${Y.maximum.toString()} ${Q.unit??"個元素"}`;return`數值過大:預期 ${Y.origin??"值"} 應為 ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`數值過小:預期 ${Y.origin} 應為 ${X}${Y.minimum.toString()} ${Q.unit}`;return`數值過小:預期 ${Y.origin} 應為 ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`無效的字串:必須以 "${X.prefix}" 開頭`;if(X.format==="ends_with")return`無效的字串:必須以 "${X.suffix}" 結尾`;if(X.format==="includes")return`無效的字串:必須包含 "${X.includes}"`;if(X.format==="regex")return`無效的字串:必須符合格式 ${X.pattern}`;return`無效的 ${U[X.format]??Y.format}`}case"not_multiple_of":return`無效的數字:必須為 ${Y.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${Y.keys.length>1?"們":""}:${g(Y.keys,"、")}`;case"invalid_key":return`${Y.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${Y.origin} 中有無效的值`;default:return"無效的輸入值"}}};var db=_(()=>{QD()});function Vq(){return{localeError:K8D()}}var K8D=()=>{let D={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function $(Y){return D[Y]??null}let U={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"},J={nan:"NaN",number:"nọ́mbà",array:"akopọ"};return(Y)=>{switch(Y.code){case"invalid_type":{let X=J[Y.expected]??Y.expected,Q=d(Y.input),F=J[Q]??Q;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 ${X}, àmọ̀ a rí ${F}`}case"invalid_value":if(Y.values.length===1)return`Ìbáwọlé aṣìṣe: a ní láti fi ${l(Y.values[0])}`;return`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${g(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",Q=$(Y.origin);if(Q)return`Tó pọ̀ jù: a ní láti jẹ́ pé ${Y.origin??"iye"} ${Q.verb} ${X}${Y.maximum} ${Q.unit}`;return`Tó pọ̀ jù: a ní láti jẹ́ ${X}${Y.maximum}`}case"too_small":{let X=Y.inclusive?">=":">",Q=$(Y.origin);if(Q)return`Kéré ju: a ní láti jẹ́ pé ${Y.origin} ${Q.verb} ${X}${Y.minimum} ${Q.unit}`;return`Kéré ju: a ní láti jẹ́ ${X}${Y.minimum}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${X.prefix}"`;if(X.format==="ends_with")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${X.suffix}"`;if(X.format==="includes")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${X.includes}"`;if(X.format==="regex")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${X.pattern}`;return`Aṣìṣe: ${U[X.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ọ̀: ${g(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 ib=_(()=>{QD()});var R5={};S0(R5,{zhTW:()=>Gq,zhCN:()=>qq,yo:()=>Vq,vi:()=>zq,uz:()=>Zq,ur:()=>Kq,uk:()=>L5,ua:()=>Wq,tr:()=>Qq,th:()=>Xq,ta:()=>Yq,sv:()=>Jq,sl:()=>Uq,ru:()=>$q,ro:()=>Dq,pt:()=>ez,ps:()=>tz,pl:()=>sz,ota:()=>az,no:()=>oz,nl:()=>rz,ms:()=>nz,mk:()=>pz,lt:()=>iz,ko:()=>dz,km:()=>j5,kh:()=>cz,ka:()=>mz,ja:()=>hz,it:()=>yz,is:()=>fz,id:()=>gz,hy:()=>xz,hu:()=>_z,hr:()=>uz,he:()=>kz,frCA:()=>Cz,fr:()=>bz,fi:()=>Sz,fa:()=>Pz,es:()=>Tz,eo:()=>Ez,en:()=>O5,el:()=>Az,de:()=>Mz,da:()=>Rz,cs:()=>Lz,ca:()=>Nz,bg:()=>jz,be:()=>Oz,az:()=>wz,ar:()=>Bz});var Hq=_(()=>{nS();rS();aS();tS();sS();eS();Db();$b();Ub();vz();Jb();Yb();Xb();Qb();Fb();Wb();Kb();Zb();zb();Gb();Vb();Hb();Ib();Bb();wb();Ob();lz();jb();Lb();Rb();Mb();Ab();vb();Eb();Tb();Pb();Sb();bb();kb();ub();_b();xb();gb();fb();yb();Fq();hb();mb();lb();cb();db();ib()});class wq{constructor(){this._map=new WeakMap,this._idmap=new Map}add(D,...$){let U=$[0];if(this._map.set(D,U),U&&typeof U==="object"&&"id"in U)this._idmap.set(U.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 U={...this.get($)??{}};delete U.id;let J={...U,...this._map.get(D)};return Object.keys(J).length?J:void 0}return this._map.get(D)}has(D){return this._map.has(D)}}function DJ(){return new wq}var pb,Iq,Bq,A0;var M5=_(()=>{Iq=Symbol("ZodOutput"),Bq=Symbol("ZodInput");(pb=globalThis).__zod_globalRegistry??(pb.__zod_globalRegistry=DJ());A0=globalThis.__zod_globalRegistry});function Oq(D,$){return new D({type:"string",...r($)})}function jq(D,$){return new D({type:"string",coerce:!0,...r($)})}function $J(D,$){return new D({type:"string",format:"email",check:"string_format",abort:!1,...r($)})}function A5(D,$){return new D({type:"string",format:"guid",check:"string_format",abort:!1,...r($)})}function UJ(D,$){return new D({type:"string",format:"uuid",check:"string_format",abort:!1,...r($)})}function JJ(D,$){return new D({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...r($)})}function YJ(D,$){return new D({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...r($)})}function XJ(D,$){return new D({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...r($)})}function v5(D,$){return new D({type:"string",format:"url",check:"string_format",abort:!1,...r($)})}function QJ(D,$){return new D({type:"string",format:"emoji",check:"string_format",abort:!1,...r($)})}function FJ(D,$){return new D({type:"string",format:"nanoid",check:"string_format",abort:!1,...r($)})}function WJ(D,$){return new D({type:"string",format:"cuid",check:"string_format",abort:!1,...r($)})}function KJ(D,$){return new D({type:"string",format:"cuid2",check:"string_format",abort:!1,...r($)})}function ZJ(D,$){return new D({type:"string",format:"ulid",check:"string_format",abort:!1,...r($)})}function zJ(D,$){return new D({type:"string",format:"xid",check:"string_format",abort:!1,...r($)})}function qJ(D,$){return new D({type:"string",format:"ksuid",check:"string_format",abort:!1,...r($)})}function GJ(D,$){return new D({type:"string",format:"ipv4",check:"string_format",abort:!1,...r($)})}function VJ(D,$){return new D({type:"string",format:"ipv6",check:"string_format",abort:!1,...r($)})}function Nq(D,$){return new D({type:"string",format:"mac",check:"string_format",abort:!1,...r($)})}function HJ(D,$){return new D({type:"string",format:"cidrv4",check:"string_format",abort:!1,...r($)})}function IJ(D,$){return new D({type:"string",format:"cidrv6",check:"string_format",abort:!1,...r($)})}function BJ(D,$){return new D({type:"string",format:"base64",check:"string_format",abort:!1,...r($)})}function wJ(D,$){return new D({type:"string",format:"base64url",check:"string_format",abort:!1,...r($)})}function OJ(D,$){return new D({type:"string",format:"e164",check:"string_format",abort:!1,...r($)})}function jJ(D,$){return new D({type:"string",format:"jwt",check:"string_format",abort:!1,...r($)})}function Rq(D,$){return new D({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...r($)})}function Mq(D,$){return new D({type:"string",format:"date",check:"string_format",...r($)})}function Aq(D,$){return new D({type:"string",format:"time",check:"string_format",precision:null,...r($)})}function vq(D,$){return new D({type:"string",format:"duration",check:"string_format",...r($)})}function Eq(D,$){return new D({type:"number",checks:[],...r($)})}function Tq(D,$){return new D({type:"number",coerce:!0,checks:[],...r($)})}function Pq(D,$){return new D({type:"number",check:"number_format",abort:!1,format:"safeint",...r($)})}function Sq(D,$){return new D({type:"number",check:"number_format",abort:!1,format:"float32",...r($)})}function bq(D,$){return new D({type:"number",check:"number_format",abort:!1,format:"float64",...r($)})}function Cq(D,$){return new D({type:"number",check:"number_format",abort:!1,format:"int32",...r($)})}function kq(D,$){return new D({type:"number",check:"number_format",abort:!1,format:"uint32",...r($)})}function uq(D,$){return new D({type:"boolean",...r($)})}function _q(D,$){return new D({type:"boolean",coerce:!0,...r($)})}function xq(D,$){return new D({type:"bigint",...r($)})}function gq(D,$){return new D({type:"bigint",coerce:!0,...r($)})}function fq(D,$){return new D({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...r($)})}function yq(D,$){return new D({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...r($)})}function hq(D,$){return new D({type:"symbol",...r($)})}function mq(D,$){return new D({type:"undefined",...r($)})}function lq(D,$){return new D({type:"null",...r($)})}function cq(D){return new D({type:"any"})}function dq(D){return new D({type:"unknown"})}function iq(D,$){return new D({type:"never",...r($)})}function pq(D,$){return new D({type:"void",...r($)})}function nq(D,$){return new D({type:"date",...r($)})}function rq(D,$){return new D({type:"date",coerce:!0,...r($)})}function oq(D,$){return new D({type:"nan",...r($)})}function J$(D,$){return new mU({check:"less_than",...r($),value:D,inclusive:!1})}function V6(D,$){return new mU({check:"less_than",...r($),value:D,inclusive:!0})}function Y$(D,$){return new lU({check:"greater_than",...r($),value:D,inclusive:!1})}function n0(D,$){return new lU({check:"greater_than",...r($),value:D,inclusive:!0})}function NJ(D){return Y$(0,D)}function LJ(D){return J$(0,D)}function RJ(D){return V6(0,D)}function MJ(D){return n0(0,D)}function Q1(D,$){return new hK({check:"multiple_of",...r($),value:D})}function F1(D,$){return new cK({check:"max_size",...r($),maximum:D})}function X$(D,$){return new dK({check:"min_size",...r($),minimum:D})}function z4(D,$){return new iK({check:"size_equals",...r($),size:D})}function q4(D,$){return new pK({check:"max_length",...r($),maximum:D})}function j$(D,$){return new nK({check:"min_length",...r($),minimum:D})}function G4(D,$){return new rK({check:"length_equals",...r($),length:D})}function t8(D,$){return new oK({check:"string_format",format:"regex",...r($),pattern:D})}function s8(D){return new aK({check:"string_format",format:"lowercase",...r(D)})}function e8(D){return new tK({check:"string_format",format:"uppercase",...r(D)})}function D2(D,$){return new sK({check:"string_format",format:"includes",...r($),includes:D})}function $2(D,$){return new eK({check:"string_format",format:"starts_with",...r($),prefix:D})}function U2(D,$){return new DZ({check:"string_format",format:"ends_with",...r($),suffix:D})}function AJ(D,$,U){return new $Z({check:"property",property:D,schema:$,...r(U)})}function J2(D,$){return new UZ({check:"mime_type",mime:D,...r($)})}function m6(D){return new JZ({check:"overwrite",tx:D})}function Y2(D){return m6(($)=>$.normalize(D))}function X2(){return m6((D)=>D.trim())}function Q2(){return m6((D)=>D.toLowerCase())}function F2(){return m6((D)=>D.toUpperCase())}function W2(){return m6((D)=>tW(D))}function aq(D,$,U){return new D({type:"array",element:$,...r(U)})}function z8D(D,$,U){return new D({type:"union",options:$,...r(U)})}function q8D(D,$,U){return new D({type:"union",options:$,inclusive:!1,...r(U)})}function G8D(D,$,U,J){return new D({type:"union",options:U,discriminator:$,...r(J)})}function V8D(D,$,U){return new D({type:"intersection",left:$,right:U})}function H8D(D,$,U,J){let Y=U instanceof zD;return new D({type:"tuple",items:$,rest:Y?U:null,...r(Y?J:U)})}function I8D(D,$,U,J){return new D({type:"record",keyType:$,valueType:U,...r(J)})}function B8D(D,$,U,J){return new D({type:"map",keyType:$,valueType:U,...r(J)})}function w8D(D,$,U){return new D({type:"set",valueType:$,...r(U)})}function O8D(D,$,U){let J=Array.isArray($)?Object.fromEntries($.map((Y)=>[Y,Y])):$;return new D({type:"enum",entries:J,...r(U)})}function j8D(D,$,U){return new D({type:"enum",entries:$,...r(U)})}function N8D(D,$,U){return new D({type:"literal",values:Array.isArray($)?$:[$],...r(U)})}function tq(D,$){return new D({type:"file",...r($)})}function L8D(D,$){return new D({type:"transform",transform:$})}function R8D(D,$){return new D({type:"optional",innerType:$})}function M8D(D,$){return new D({type:"nullable",innerType:$})}function A8D(D,$,U){return new D({type:"default",innerType:$,get defaultValue(){return typeof U==="function"?U():eW(U)}})}function v8D(D,$,U){return new D({type:"nonoptional",innerType:$,...r(U)})}function E8D(D,$){return new D({type:"success",innerType:$})}function T8D(D,$,U){return new D({type:"catch",innerType:$,catchValue:typeof U==="function"?U:()=>U})}function P8D(D,$,U){return new D({type:"pipe",in:$,out:U})}function S8D(D,$){return new D({type:"readonly",innerType:$})}function b8D(D,$,U){return new D({type:"template_literal",parts:$,...r(U)})}function C8D(D,$){return new D({type:"lazy",getter:$})}function k8D(D,$){return new D({type:"promise",innerType:$})}function sq(D,$,U){let J=r(U);return J.abort??(J.abort=!0),new D({type:"custom",check:"custom",fn:$,...J})}function eq(D,$,U){return new D({type:"custom",check:"custom",fn:$,...r(U)})}function DG(D,$){let U=nb((J)=>{return J.addIssue=(Y)=>{if(typeof Y==="string")J.issues.push(d8(Y,J.value,U._zod.def));else{let X=Y;if(X.fatal)X.continue=!1;X.code??(X.code="custom"),X.input??(X.input=J.value),X.inst??(X.inst=U),X.continue??(X.continue=!U._zod.def.abort),J.issues.push(d8(X))}},D(J.value,J)},$);return U}function nb(D,$){let U=new cD({check:"custom",...r($)});return U._zod.check=D,U}function $G(D){let $=new cD({check:"describe"});return $._zod.onattach=[(U)=>{let J=A0.get(U)??{};A0.add(U,{...J,description:D})}],$._zod.check=()=>{},$}function UG(D){let $=new cD({check:"meta"});return $._zod.onattach=[(U)=>{let J=A0.get(U)??{};A0.add(U,{...J,...D})}],$._zod.check=()=>{},$}function JG(D,$){let U=r($),J=U.truthy??["true","1","yes","on","y","enabled"],Y=U.falsy??["false","0","no","off","n","disabled"];if(U.case!=="sensitive")J=J.map((G)=>typeof G==="string"?G.toLowerCase():G),Y=Y.map((G)=>typeof G==="string"?G.toLowerCase():G);let X=new Set(J),Q=new Set(Y),F=D.Codec??w5,W=D.Boolean??I5,Z=new(D.String??Z4)({type:"string",error:U.error}),z=new W({type:"boolean",error:U.error}),q=new F({type:"pipe",in:Z,out:z,transform:(G,V)=>{let I=G;if(U.case!=="sensitive")I=I.toLowerCase();if(X.has(I))return!0;else if(Q.has(I))return!1;else return V.issues.push({code:"invalid_value",expected:"stringbool",values:[...X,...Q],input:V.value,inst:q,continue:!1}),{}},reverseTransform:(G,V)=>{if(G===!0)return J[0]||"true";else return Y[0]||"false"},error:U.error});return q}function K2(D,$,U,J={}){let Y=r(J),X={...r(J),check:"string_format",type:"string",format:$,fn:typeof U==="function"?U:(F)=>U.test(F),...Y};if(U instanceof RegExp)X.pattern=U;return new D(X)}var Lq;var rb=_(()=>{cU();M5();Iz();QD();Lq={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}});function W1(D){let $=D?.target??"draft-2020-12";if($==="draft-4")$="draft-04";if($==="draft-7")$="draft-07";return{processors:D.processors??{},metadataRegistry:D?.metadata??A0,target:$,unrepresentable:D?.unrepresentable??"throw",override:D?.override??(()=>{}),io:D?.io??"output",counter:0,seen:new Map,cycles:D?.cycles??"ref",reused:D?.reused??"inline",external:D?.external??void 0}}function _D(D,$,U={path:[],schemaPath:[]}){var J;let Y=D._zod.def,X=$.seen.get(D);if(X){if(X.count++,U.schemaPath.includes(D))X.cycle=U.path;return X.schema}let Q={schema:{},count:1,cycle:void 0,path:U.path};$.seen.set(D,Q);let F=D._zod.toJSONSchema?.();if(F)Q.schema=F;else{let Z={...U,schemaPath:[...U.schemaPath,D],path:U.path};if(D._zod.processJSONSchema)D._zod.processJSONSchema($,Q.schema,Z);else{let q=Q.schema,G=$.processors[Y.type];if(!G)throw Error(`[toJSONSchema]: Non-representable type encountered: ${Y.type}`);G(D,$,q,Z)}let z=D._zod.parent;if(z){if(!Q.ref)Q.ref=z;_D(z,$,Z),$.seen.get(z).isParent=!0}}let W=$.metadataRegistry.get(D);if(W)Object.assign(Q.schema,W);if($.io==="input"&&r0(D))delete Q.schema.examples,delete Q.schema.default;if($.io==="input"&&"_prefault"in Q.schema)(J=Q.schema).default??(J.default=Q.schema._prefault);return delete Q.schema._prefault,$.seen.get(D).schema}function K1(D,$){let U=D.seen.get($);if(!U)throw Error("Unprocessed schema. This is a bug in Zod.");let J=new Map;for(let Q of D.seen.entries()){let F=D.metadataRegistry.get(Q[0])?.id;if(F){let W=J.get(F);if(W&&W!==Q[0])throw Error(`Duplicate schema id "${F}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);J.set(F,Q[0])}}let Y=(Q)=>{let F=D.target==="draft-2020-12"?"$defs":"definitions";if(D.external){let z=D.external.registry.get(Q[0])?.id,q=D.external.uri??((V)=>V);if(z)return{ref:q(z)};let G=Q[1].defId??Q[1].schema.id??`schema${D.counter++}`;return Q[1].defId=G,{defId:G,ref:`${q("__shared")}#/${F}/${G}`}}if(Q[1]===U)return{ref:"#"};let K=`${"#"}/${F}/`,Z=Q[1].schema.id??`__schema${D.counter++}`;return{defId:Z,ref:K+Z}},X=(Q)=>{if(Q[1].schema.$ref)return;let F=Q[1],{ref:W,defId:K}=Y(Q);if(F.def={...F.schema},K)F.defId=K;let Z=F.schema;for(let z in Z)delete Z[z];Z.$ref=W};if(D.cycles==="throw")for(let Q of D.seen.entries()){let F=Q[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 Q of D.seen.entries()){let F=Q[1];if($===Q[0]){X(Q);continue}if(D.external){let K=D.external.registry.get(Q[0])?.id;if($!==Q[0]&&K){X(Q);continue}}if(D.metadataRegistry.get(Q[0])?.id){X(Q);continue}if(F.cycle){X(Q);continue}if(F.count>1){if(D.reused==="ref"){X(Q);continue}}}}function Z1(D,$){let U=D.seen.get($);if(!U)throw Error("Unprocessed schema. This is a bug in Zod.");let J=(F)=>{let W=D.seen.get(F);if(W.ref===null)return;let K=W.def??W.schema,Z={...K},z=W.ref;if(W.ref=null,z){J(z);let G=D.seen.get(z),V=G.schema;if(V.$ref&&(D.target==="draft-07"||D.target==="draft-04"||D.target==="openapi-3.0"))K.allOf=K.allOf??[],K.allOf.push(V);else Object.assign(K,V);if(Object.assign(K,Z),F._zod.parent===z)for(let H in K){if(H==="$ref"||H==="allOf")continue;if(!(H in Z))delete K[H]}if(V.$ref&&G.def)for(let H in K){if(H==="$ref"||H==="allOf")continue;if(H in G.def&&JSON.stringify(K[H])===JSON.stringify(G.def[H]))delete K[H]}}let q=F._zod.parent;if(q&&q!==z){J(q);let G=D.seen.get(q);if(G?.schema.$ref){if(K.$ref=G.schema.$ref,G.def)for(let V in K){if(V==="$ref"||V==="allOf")continue;if(V in G.def&&JSON.stringify(K[V])===JSON.stringify(G.def[V]))delete K[V]}}}D.override({zodSchema:F,jsonSchema:K,path:W.path??[]})};for(let F of[...D.seen.entries()].reverse())J(F[0]);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)}Object.assign(Y,U.def??U.schema);let X=D.metadataRegistry.get($)?.id;if(X!==void 0&&Y.id===X)delete Y.id;let Q=D.external?.defs??{};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;Q[W.defId]=W.def}}if(D.external);else if(Object.keys(Q).length>0)if(D.target==="draft-2020-12")Y.$defs=Q;else Y.definitions=Q;try{let F=JSON.parse(JSON.stringify(Y));return Object.defineProperty(F,"~standard",{value:{...$["~standard"],jsonSchema:{input:Z2($,"input",D.processors),output:Z2($,"output",D.processors)}},enumerable:!1,writable:!1}),F}catch(F){throw Error("Error converting schema to JSON.")}}function r0(D,$){let U=$??{seen:new Set};if(U.seen.has(D))return!1;U.seen.add(D);let J=D._zod.def;if(J.type==="transform")return!0;if(J.type==="array")return r0(J.element,U);if(J.type==="set")return r0(J.valueType,U);if(J.type==="lazy")return r0(J.getter(),U);if(J.type==="promise"||J.type==="optional"||J.type==="nonoptional"||J.type==="nullable"||J.type==="readonly"||J.type==="default"||J.type==="prefault")return r0(J.innerType,U);if(J.type==="intersection")return r0(J.left,U)||r0(J.right,U);if(J.type==="record"||J.type==="map")return r0(J.keyType,U)||r0(J.valueType,U);if(J.type==="pipe"){if(D._zod.traits.has("$ZodCodec"))return!0;return r0(J.in,U)||r0(J.out,U)}if(J.type==="object"){for(let Y in J.shape)if(r0(J.shape[Y],U))return!0;return!1}if(J.type==="union"){for(let Y of J.options)if(r0(Y,U))return!0;return!1}if(J.type==="tuple"){for(let Y of J.items)if(r0(Y,U))return!0;if(J.rest&&r0(J.rest,U))return!0;return!1}return!1}var YG=(D,$={})=>(U)=>{let J=W1({...U,processors:$});return _D(D,J),K1(J,D),Z1(J,D)},Z2=(D,$,U={})=>(J)=>{let{libraryOptions:Y,target:X}=J??{},Q=W1({...Y??{},target:X,io:$,processors:U});return _D(D,Q),K1(Q,D),Z1(Q,D)};var E5=_(()=>{M5()});function PJ(D,$){if("_idmap"in D){let J=D,Y=W1({...$,processors:vJ}),X={};for(let W of J._idmap.entries()){let[K,Z]=W;_D(Z,Y)}let Q={},F={registry:J,uri:$?.uri,defs:X};Y.external=F;for(let W of J._idmap.entries()){let[K,Z]=W;K1(Y,Z),Q[K]=Z1(Y,Z)}if(Object.keys(X).length>0){let W=Y.target==="draft-2020-12"?"$defs":"definitions";Q.__shared={[W]:X}}return{schemas:Q}}let U=W1({...$,processors:vJ});return _D(D,U),K1(U,D),Z1(U,D)}var u8D,XG=(D,$,U,J)=>{let Y=U;Y.type="string";let{minimum:X,maximum:Q,format:F,patterns:W,contentEncoding:K}=D._zod.bag;if(typeof X==="number")Y.minLength=X;if(typeof Q==="number")Y.maxLength=Q;if(F){if(Y.format=u8D[F]??F,Y.format==="")delete Y.format;if(F==="time")delete Y.format}if(K)Y.contentEncoding=K;if(W&&W.size>0){let Z=[...W];if(Z.length===1)Y.pattern=Z[0].source;else if(Z.length>1)Y.allOf=[...Z.map((z)=>({...$.target==="draft-07"||$.target==="draft-04"||$.target==="openapi-3.0"?{type:"string"}:{},pattern:z.source}))]}},QG=(D,$,U,J)=>{let Y=U,{minimum:X,maximum:Q,format:F,multipleOf:W,exclusiveMaximum:K,exclusiveMinimum:Z}=D._zod.bag;if(typeof F==="string"&&F.includes("int"))Y.type="integer";else Y.type="number";let z=typeof Z==="number"&&Z>=(X??Number.NEGATIVE_INFINITY),q=typeof K==="number"&&K<=(Q??Number.POSITIVE_INFINITY),G=$.target==="draft-04"||$.target==="openapi-3.0";if(z)if(G)Y.minimum=Z,Y.exclusiveMinimum=!0;else Y.exclusiveMinimum=Z;else if(typeof X==="number")Y.minimum=X;if(q)if(G)Y.maximum=K,Y.exclusiveMaximum=!0;else Y.exclusiveMaximum=K;else if(typeof Q==="number")Y.maximum=Q;if(typeof W==="number")Y.multipleOf=W},FG=(D,$,U,J)=>{U.type="boolean"},WG=(D,$,U,J)=>{if($.unrepresentable==="throw")throw Error("BigInt cannot be represented in JSON Schema")},KG=(D,$,U,J)=>{if($.unrepresentable==="throw")throw Error("Symbols cannot be represented in JSON Schema")},ZG=(D,$,U,J)=>{if($.target==="openapi-3.0")U.type="string",U.nullable=!0,U.enum=[null];else U.type="null"},zG=(D,$,U,J)=>{if($.unrepresentable==="throw")throw Error("Undefined cannot be represented in JSON Schema")},qG=(D,$,U,J)=>{if($.unrepresentable==="throw")throw Error("Void cannot be represented in JSON Schema")},GG=(D,$,U,J)=>{U.not={}},VG=(D,$,U,J)=>{},HG=(D,$,U,J)=>{},IG=(D,$,U,J)=>{if($.unrepresentable==="throw")throw Error("Date cannot be represented in JSON Schema")},BG=(D,$,U,J)=>{let Y=D._zod.def,X=X5(Y.entries);if(X.every((Q)=>typeof Q==="number"))U.type="number";if(X.every((Q)=>typeof Q==="string"))U.type="string";U.enum=X},wG=(D,$,U,J)=>{let Y=D._zod.def,X=[];for(let Q of Y.values)if(Q===void 0){if($.unrepresentable==="throw")throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof Q==="bigint")if($.unrepresentable==="throw")throw Error("BigInt literals cannot be represented in JSON Schema");else X.push(Number(Q));else X.push(Q);if(X.length===0);else if(X.length===1){let Q=X[0];if(U.type=Q===null?"null":typeof Q,$.target==="draft-04"||$.target==="openapi-3.0")U.enum=[Q];else U.const=Q}else{if(X.every((Q)=>typeof Q==="number"))U.type="number";if(X.every((Q)=>typeof Q==="string"))U.type="string";if(X.every((Q)=>typeof Q==="boolean"))U.type="boolean";if(X.every((Q)=>Q===null))U.type="null";U.enum=X}},OG=(D,$,U,J)=>{if($.unrepresentable==="throw")throw Error("NaN cannot be represented in JSON Schema")},jG=(D,$,U,J)=>{let Y=U,X=D._zod.pattern;if(!X)throw Error("Pattern not found in template literal");Y.type="string",Y.pattern=X.source},NG=(D,$,U,J)=>{let Y=U,X={type:"string",format:"binary",contentEncoding:"binary"},{minimum:Q,maximum:F,mime:W}=D._zod.bag;if(Q!==void 0)X.minLength=Q;if(F!==void 0)X.maxLength=F;if(W)if(W.length===1)X.contentMediaType=W[0],Object.assign(Y,X);else Object.assign(Y,X),Y.anyOf=W.map((K)=>({contentMediaType:K}));else Object.assign(Y,X)},LG=(D,$,U,J)=>{U.type="boolean"},RG=(D,$,U,J)=>{if($.unrepresentable==="throw")throw Error("Custom types cannot be represented in JSON Schema")},MG=(D,$,U,J)=>{if($.unrepresentable==="throw")throw Error("Function types cannot be represented in JSON Schema")},AG=(D,$,U,J)=>{if($.unrepresentable==="throw")throw Error("Transforms cannot be represented in JSON Schema")},vG=(D,$,U,J)=>{if($.unrepresentable==="throw")throw Error("Map cannot be represented in JSON Schema")},EG=(D,$,U,J)=>{if($.unrepresentable==="throw")throw Error("Set cannot be represented in JSON Schema")},TG=(D,$,U,J)=>{let Y=U,X=D._zod.def,{minimum:Q,maximum:F}=D._zod.bag;if(typeof Q==="number")Y.minItems=Q;if(typeof F==="number")Y.maxItems=F;Y.type="array",Y.items=_D(X.element,$,{...J,path:[...J.path,"items"]})},PG=(D,$,U,J)=>{let Y=U,X=D._zod.def;Y.type="object",Y.properties={};let Q=X.shape;for(let K in Q)Y.properties[K]=_D(Q[K],$,{...J,path:[...J.path,"properties",K]});let F=new Set(Object.keys(Q)),W=new Set([...F].filter((K)=>{let Z=X.shape[K]._zod;if($.io==="input")return Z.optin===void 0;else return Z.optout===void 0}));if(W.size>0)Y.required=Array.from(W);if(X.catchall?._zod.def.type==="never")Y.additionalProperties=!1;else if(!X.catchall){if($.io==="output")Y.additionalProperties=!1}else if(X.catchall)Y.additionalProperties=_D(X.catchall,$,{...J,path:[...J.path,"additionalProperties"]})},EJ=(D,$,U,J)=>{let Y=D._zod.def,X=Y.inclusive===!1,Q=Y.options.map((F,W)=>_D(F,$,{...J,path:[...J.path,X?"oneOf":"anyOf",W]}));if(X)U.oneOf=Q;else U.anyOf=Q},SG=(D,$,U,J)=>{let Y=D._zod.def,X=_D(Y.left,$,{...J,path:[...J.path,"allOf",0]}),Q=_D(Y.right,$,{...J,path:[...J.path,"allOf",1]}),F=(K)=>("allOf"in K)&&Object.keys(K).length===1,W=[...F(X)?X.allOf:[X],...F(Q)?Q.allOf:[Q]];U.allOf=W},bG=(D,$,U,J)=>{let Y=U,X=D._zod.def;Y.type="array";let Q=$.target==="draft-2020-12"?"prefixItems":"items",F=$.target==="draft-2020-12"?"items":$.target==="openapi-3.0"?"items":"additionalItems",W=X.items.map((q,G)=>_D(q,$,{...J,path:[...J.path,Q,G]})),K=X.rest?_D(X.rest,$,{...J,path:[...J.path,F,...$.target==="openapi-3.0"?[X.items.length]:[]]}):null;if($.target==="draft-2020-12"){if(Y.prefixItems=W,K)Y.items=K}else if($.target==="openapi-3.0"){if(Y.items={anyOf:W},K)Y.items.anyOf.push(K);if(Y.minItems=W.length,!K)Y.maxItems=W.length}else if(Y.items=W,K)Y.additionalItems=K;let{minimum:Z,maximum:z}=D._zod.bag;if(typeof Z==="number")Y.minItems=Z;if(typeof z==="number")Y.maxItems=z},CG=(D,$,U,J)=>{let Y=U,X=D._zod.def;Y.type="object";let Q=X.keyType,W=Q._zod.bag?.patterns;if(X.mode==="loose"&&W&&W.size>0){let Z=_D(X.valueType,$,{...J,path:[...J.path,"patternProperties","*"]});Y.patternProperties={};for(let z of W)Y.patternProperties[z.source]=Z}else{if($.target==="draft-07"||$.target==="draft-2020-12")Y.propertyNames=_D(X.keyType,$,{...J,path:[...J.path,"propertyNames"]});Y.additionalProperties=_D(X.valueType,$,{...J,path:[...J.path,"additionalProperties"]})}let K=Q._zod.values;if(K){let Z=[...K].filter((z)=>typeof z==="string"||typeof z==="number");if(Z.length>0)Y.required=Z}},kG=(D,$,U,J)=>{let Y=D._zod.def,X=_D(Y.innerType,$,J),Q=$.seen.get(D);if($.target==="openapi-3.0")Q.ref=Y.innerType,U.nullable=!0;else U.anyOf=[X,{type:"null"}]},uG=(D,$,U,J)=>{let Y=D._zod.def;_D(Y.innerType,$,J);let X=$.seen.get(D);X.ref=Y.innerType},_G=(D,$,U,J)=>{let Y=D._zod.def;_D(Y.innerType,$,J);let X=$.seen.get(D);X.ref=Y.innerType,U.default=JSON.parse(JSON.stringify(Y.defaultValue))},xG=(D,$,U,J)=>{let Y=D._zod.def;_D(Y.innerType,$,J);let X=$.seen.get(D);if(X.ref=Y.innerType,$.io==="input")U._prefault=JSON.parse(JSON.stringify(Y.defaultValue))},gG=(D,$,U,J)=>{let Y=D._zod.def;_D(Y.innerType,$,J);let X=$.seen.get(D);X.ref=Y.innerType;let Q;try{Q=Y.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}U.default=Q},fG=(D,$,U,J)=>{let Y=D._zod.def,X=Y.in._zod.traits.has("$ZodTransform"),Q=$.io==="input"?X?Y.out:Y.in:Y.out;_D(Q,$,J);let F=$.seen.get(D);F.ref=Q},yG=(D,$,U,J)=>{let Y=D._zod.def;_D(Y.innerType,$,J);let X=$.seen.get(D);X.ref=Y.innerType,U.readOnly=!0},hG=(D,$,U,J)=>{let Y=D._zod.def;_D(Y.innerType,$,J);let X=$.seen.get(D);X.ref=Y.innerType},TJ=(D,$,U,J)=>{let Y=D._zod.def;_D(Y.innerType,$,J);let X=$.seen.get(D);X.ref=Y.innerType},mG=(D,$,U,J)=>{let Y=D._zod.innerType;_D(Y,$,J);let X=$.seen.get(D);X.ref=Y},vJ;var T5=_(()=>{E5();QD();u8D={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},vJ={string:XG,number:QG,boolean:FG,bigint:WG,symbol:KG,null:ZG,undefined:zG,void:qG,never:GG,any:VG,unknown:HG,date:IG,enum:BG,literal:wG,nan:OG,template_literal:jG,file:NG,success:LG,custom:RG,function:MG,transform:AG,map:vG,set:EG,array:TG,object:PG,union:EJ,intersection:SG,tuple:bG,record:CG,nullable:kG,nonoptional:uG,default:_G,prefault:xG,catch:gG,pipe:fG,readonly:yG,promise:hG,optional:TJ,lazy:mG}});class lG{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=W1({processors:vJ,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 _D(D,this.ctx,$)}emit(D,$){if($){if($.cycles)this.ctx.cycles=$.cycles;if($.reused)this.ctx.reused=$.reused;if($.external)this.ctx.external=$.external}K1(this.ctx,D);let U=Z1(this.ctx,D),{"~standard":J,...Y}=U;return Y}}var ob=_(()=>{T5();E5()});var ab={};var tb=()=>{};var N$={};S0(N$,{version:()=>YZ,util:()=>i,treeifyError:()=>XK,toJSONSchema:()=>PJ,toDotPath:()=>NS,safeParseAsync:()=>KK,safeParse:()=>WK,safeEncodeAsync:()=>f1D,safeEncode:()=>x1D,safeDecodeAsync:()=>y1D,safeDecode:()=>g1D,registry:()=>DJ,regexes:()=>G6,process:()=>_D,prettifyError:()=>QK,parseAsync:()=>SU,parse:()=>PU,meta:()=>UG,locales:()=>R5,isValidJWT:()=>cS,isValidBase64URL:()=>lS,isValidBase64:()=>EZ,initializeContext:()=>W1,globalRegistry:()=>A0,globalConfig:()=>X4,formatError:()=>q5,flattenError:()=>z5,finalize:()=>Z1,extractDefs:()=>K1,encodeAsync:()=>u1D,encode:()=>C1D,describe:()=>$G,decodeAsync:()=>_1D,decode:()=>k1D,createToJSONSchemaMethod:()=>YG,createStandardJSONSchemaMethod:()=>Z2,config:()=>F0,clone:()=>i0,_xor:()=>q8D,_xid:()=>zJ,_void:()=>pq,_uuidv7:()=>XJ,_uuidv6:()=>YJ,_uuidv4:()=>JJ,_uuid:()=>UJ,_url:()=>v5,_uppercase:()=>e8,_unknown:()=>dq,_union:()=>z8D,_undefined:()=>mq,_ulid:()=>ZJ,_uint64:()=>yq,_uint32:()=>kq,_tuple:()=>H8D,_trim:()=>X2,_transform:()=>L8D,_toUpperCase:()=>F2,_toLowerCase:()=>Q2,_templateLiteral:()=>b8D,_symbol:()=>hq,_superRefine:()=>DG,_success:()=>E8D,_stringbool:()=>JG,_stringFormat:()=>K2,_string:()=>Oq,_startsWith:()=>$2,_slugify:()=>W2,_size:()=>z4,_set:()=>w8D,_safeParseAsync:()=>r8,_safeParse:()=>n8,_safeEncodeAsync:()=>gU,_safeEncode:()=>_U,_safeDecodeAsync:()=>fU,_safeDecode:()=>xU,_regex:()=>t8,_refine:()=>eq,_record:()=>I8D,_readonly:()=>S8D,_property:()=>AJ,_promise:()=>k8D,_positive:()=>NJ,_pipe:()=>P8D,_parseAsync:()=>p8,_parse:()=>i8,_overwrite:()=>m6,_optional:()=>R8D,_number:()=>Eq,_nullable:()=>M8D,_null:()=>lq,_normalize:()=>Y2,_nonpositive:()=>RJ,_nonoptional:()=>v8D,_nonnegative:()=>MJ,_never:()=>iq,_negative:()=>LJ,_nativeEnum:()=>j8D,_nanoid:()=>FJ,_nan:()=>oq,_multipleOf:()=>Q1,_minSize:()=>X$,_minLength:()=>j$,_min:()=>n0,_mime:()=>J2,_maxSize:()=>F1,_maxLength:()=>q4,_max:()=>V6,_map:()=>B8D,_mac:()=>Nq,_lte:()=>V6,_lt:()=>J$,_lowercase:()=>s8,_literal:()=>N8D,_length:()=>G4,_lazy:()=>C8D,_ksuid:()=>qJ,_jwt:()=>jJ,_isoTime:()=>Aq,_isoDuration:()=>vq,_isoDateTime:()=>Rq,_isoDate:()=>Mq,_ipv6:()=>VJ,_ipv4:()=>GJ,_intersection:()=>V8D,_int64:()=>fq,_int32:()=>Cq,_int:()=>Pq,_includes:()=>D2,_guid:()=>A5,_gte:()=>n0,_gt:()=>Y$,_float64:()=>bq,_float32:()=>Sq,_file:()=>tq,_enum:()=>O8D,_endsWith:()=>U2,_encodeAsync:()=>kU,_encode:()=>bU,_emoji:()=>QJ,_email:()=>$J,_e164:()=>OJ,_discriminatedUnion:()=>G8D,_default:()=>A8D,_decodeAsync:()=>uU,_decode:()=>CU,_date:()=>nq,_custom:()=>sq,_cuid2:()=>KJ,_cuid:()=>WJ,_coercedString:()=>jq,_coercedNumber:()=>Tq,_coercedDate:()=>rq,_coercedBoolean:()=>_q,_coercedBigint:()=>gq,_cidrv6:()=>IJ,_cidrv4:()=>HJ,_check:()=>nb,_catch:()=>T8D,_boolean:()=>uq,_bigint:()=>xq,_base64url:()=>wJ,_base64:()=>BJ,_array:()=>aq,_any:()=>cq,TimePrecision:()=>Lq,NEVER:()=>nW,JSONSchemaGenerator:()=>lG,JSONSchema:()=>ab,Doc:()=>dU,$output:()=>Iq,$input:()=>Bq,$constructor:()=>P,$brand:()=>rW,$ZodXor:()=>iZ,$ZodXID:()=>IZ,$ZodVoid:()=>mZ,$ZodUnknown:()=>yZ,$ZodUnion:()=>B5,$ZodUndefined:()=>xZ,$ZodUUID:()=>WZ,$ZodURL:()=>ZZ,$ZodULID:()=>HZ,$ZodType:()=>zD,$ZodTuple:()=>tU,$ZodTransform:()=>Dz,$ZodTemplateLiteral:()=>zz,$ZodSymbol:()=>_Z,$ZodSuccess:()=>Qz,$ZodStringFormat:()=>mD,$ZodString:()=>Z4,$ZodSet:()=>aZ,$ZodRegistry:()=>wq,$ZodRecord:()=>rZ,$ZodRealError:()=>X6,$ZodReadonly:()=>Zz,$ZodPromise:()=>Gz,$ZodPreprocess:()=>Kz,$ZodPrefault:()=>Yz,$ZodPipe:()=>eU,$ZodOptional:()=>sU,$ZodObjectJIT:()=>dZ,$ZodObject:()=>pS,$ZodNumberFormat:()=>kZ,$ZodNumber:()=>oU,$ZodNullable:()=>Uz,$ZodNull:()=>gZ,$ZodNonOptional:()=>Xz,$ZodNever:()=>hZ,$ZodNanoID:()=>qZ,$ZodNaN:()=>Wz,$ZodMap:()=>oZ,$ZodMAC:()=>MZ,$ZodLiteral:()=>sZ,$ZodLazy:()=>Vz,$ZodKSUID:()=>BZ,$ZodJWT:()=>bZ,$ZodIntersection:()=>nZ,$ZodISOTime:()=>jZ,$ZodISODuration:()=>NZ,$ZodISODateTime:()=>wZ,$ZodISODate:()=>OZ,$ZodIPv6:()=>RZ,$ZodIPv4:()=>LZ,$ZodGUID:()=>FZ,$ZodFunction:()=>qz,$ZodFile:()=>eZ,$ZodExactOptional:()=>$z,$ZodError:()=>Z5,$ZodEnum:()=>tZ,$ZodEncodeError:()=>Q4,$ZodEmoji:()=>zZ,$ZodEmail:()=>KZ,$ZodE164:()=>SZ,$ZodDiscriminatedUnion:()=>pZ,$ZodDefault:()=>Jz,$ZodDate:()=>lZ,$ZodCustomStringFormat:()=>CZ,$ZodCustom:()=>Hz,$ZodCodec:()=>w5,$ZodCheckUpperCase:()=>tK,$ZodCheckStringFormat:()=>o8,$ZodCheckStartsWith:()=>eK,$ZodCheckSizeEquals:()=>iK,$ZodCheckRegex:()=>oK,$ZodCheckProperty:()=>$Z,$ZodCheckOverwrite:()=>JZ,$ZodCheckNumberFormat:()=>mK,$ZodCheckMultipleOf:()=>hK,$ZodCheckMinSize:()=>dK,$ZodCheckMinLength:()=>nK,$ZodCheckMimeType:()=>UZ,$ZodCheckMaxSize:()=>cK,$ZodCheckMaxLength:()=>pK,$ZodCheckLowerCase:()=>aK,$ZodCheckLessThan:()=>mU,$ZodCheckLengthEquals:()=>rK,$ZodCheckIncludes:()=>sK,$ZodCheckGreaterThan:()=>lU,$ZodCheckEndsWith:()=>DZ,$ZodCheckBigIntFormat:()=>lK,$ZodCheck:()=>cD,$ZodCatch:()=>Fz,$ZodCUID2:()=>VZ,$ZodCUID:()=>GZ,$ZodCIDRv6:()=>vZ,$ZodCIDRv4:()=>AZ,$ZodBoolean:()=>I5,$ZodBigIntFormat:()=>uZ,$ZodBigInt:()=>aU,$ZodBase64URL:()=>PZ,$ZodBase64:()=>TZ,$ZodAsyncError:()=>U$,$ZodArray:()=>cZ,$ZodAny:()=>fZ});var H6=_(()=>{QD();hU();Hq();T5();ob();tb();F4();ZK();FK();Iz();cU();XZ();M5();rb();E5()});var SJ={};S0(SJ,{uppercase:()=>e8,trim:()=>X2,toUpperCase:()=>F2,toLowerCase:()=>Q2,startsWith:()=>$2,slugify:()=>W2,size:()=>z4,regex:()=>t8,property:()=>AJ,positive:()=>NJ,overwrite:()=>m6,normalize:()=>Y2,nonpositive:()=>RJ,nonnegative:()=>MJ,negative:()=>LJ,multipleOf:()=>Q1,minSize:()=>X$,minLength:()=>j$,mime:()=>J2,maxSize:()=>F1,maxLength:()=>q4,lte:()=>V6,lt:()=>J$,lowercase:()=>s8,length:()=>G4,includes:()=>D2,gte:()=>n0,gt:()=>Y$,endsWith:()=>U2});var bJ=_(()=>{H6()});var z2={};S0(z2,{time:()=>iG,duration:()=>pG,datetime:()=>cG,date:()=>dG,ZodISOTime:()=>uJ,ZodISODuration:()=>_J,ZodISODateTime:()=>CJ,ZodISODate:()=>kJ});function cG(D){return Rq(CJ,D)}function dG(D){return Mq(kJ,D)}function iG(D){return Aq(uJ,D)}function pG(D){return vq(_J,D)}var CJ,kJ,uJ,_J;var P5=_(()=>{H6();b5();CJ=P("ZodISODateTime",(D,$)=>{wZ.init(D,$),lD.init(D,$)});kJ=P("ZodISODate",(D,$)=>{OZ.init(D,$),lD.init(D,$)});uJ=P("ZodISOTime",(D,$)=>{jZ.init(D,$),lD.init(D,$)});_J=P("ZodISODuration",(D,$)=>{NZ.init(D,$),lD.init(D,$)})});var sb=(D,$)=>{Z5.init(D,$),D.name="ZodError",Object.defineProperties(D,{format:{value:(U)=>q5(D,U)},flatten:{value:(U)=>z5(D,U)},addIssue:{value:(U)=>{D.issues.push(U),D.message=JSON.stringify(D.issues,l8,2)}},addIssues:{value:(U)=>{D.issues.push(...U),D.message=JSON.stringify(D.issues,l8,2)}},isEmpty:{get(){return D.issues.length===0}}})},x8D,Q6;var nG=_(()=>{H6();H6();QD();x8D=P("ZodError",sb),Q6=P("ZodError",sb,{Parent:Error})});var rG,oG,aG,tG,sG,eG,DV,$V,UV,JV,YV,XV;var QV=_(()=>{H6();nG();rG=i8(Q6),oG=p8(Q6),aG=n8(Q6),tG=r8(Q6),sG=bU(Q6),eG=CU(Q6),DV=kU(Q6),$V=uU(Q6),UV=_U(Q6),JV=xU(Q6),YV=gU(Q6),XV=fU(Q6)});var S5={};S0(S5,{xor:()=>dC,xid:()=>GC,void:()=>fC,uuidv7:()=>XC,uuidv6:()=>YC,uuidv4:()=>JC,uuid:()=>UC,url:()=>QC,unknown:()=>V4,union:()=>JY,undefined:()=>xC,ulid:()=>qC,uint64:()=>uC,uint32:()=>bC,tuple:()=>MV,transform:()=>XY,templateLiteral:()=>Yk,symbol:()=>_C,superRefine:()=>sV,success:()=>Dk,stringbool:()=>qk,stringFormat:()=>MC,string:()=>C5,strictObject:()=>lC,set:()=>oC,refine:()=>tV,record:()=>AV,readonly:()=>iV,promise:()=>Xk,preprocess:()=>Vk,prefault:()=>gV,pipe:()=>gJ,partialRecord:()=>pC,optional:()=>u5,object:()=>mC,number:()=>WV,nullish:()=>eC,nullable:()=>_5,null:()=>GV,nonoptional:()=>fV,never:()=>UY,nativeEnum:()=>aC,nanoid:()=>KC,nan:()=>$k,meta:()=>Zk,map:()=>rC,mac:()=>IC,looseRecord:()=>nC,looseObject:()=>cC,literal:()=>tC,lazy:()=>rV,ksuid:()=>VC,keyof:()=>hC,jwt:()=>RC,json:()=>Gk,ipv6:()=>BC,ipv4:()=>HC,invertCodec:()=>Jk,intersection:()=>LV,int64:()=>kC,int32:()=>SC,int:()=>xJ,instanceof:()=>zk,httpUrl:()=>FC,hostname:()=>AC,hex:()=>vC,hash:()=>EC,guid:()=>$C,function:()=>Qk,float64:()=>PC,float32:()=>TC,file:()=>sC,exactOptional:()=>CV,enum:()=>YY,emoji:()=>WC,email:()=>DC,e164:()=>LC,discriminatedUnion:()=>iC,describe:()=>Kk,date:()=>yC,custom:()=>Wk,cuid2:()=>zC,cuid:()=>ZC,codec:()=>Uk,cidrv6:()=>OC,cidrv4:()=>wC,check:()=>Fk,catch:()=>mV,boolean:()=>KV,bigint:()=>CC,base64url:()=>NC,base64:()=>jC,array:()=>y5,any:()=>gC,_function:()=>Qk,_default:()=>_V,_ZodString:()=>fJ,ZodXor:()=>OV,ZodXID:()=>iJ,ZodVoid:()=>BV,ZodUnknown:()=>HV,ZodUnion:()=>m5,ZodUndefined:()=>zV,ZodUUID:()=>Q$,ZodURL:()=>g5,ZodULID:()=>dJ,ZodType:()=>BD,ZodTuple:()=>RV,ZodTransform:()=>SV,ZodTemplateLiteral:()=>pV,ZodSymbol:()=>ZV,ZodSuccess:()=>yV,ZodStringFormat:()=>lD,ZodString:()=>V2,ZodSet:()=>EV,ZodRecord:()=>q2,ZodReadonly:()=>dV,ZodPromise:()=>oV,ZodPreprocess:()=>cV,ZodPrefault:()=>xV,ZodPipe:()=>l5,ZodOptional:()=>QY,ZodObject:()=>h5,ZodNumberFormat:()=>H4,ZodNumber:()=>I2,ZodNullable:()=>kV,ZodNull:()=>qV,ZodNonOptional:()=>FY,ZodNever:()=>IV,ZodNanoID:()=>mJ,ZodNaN:()=>lV,ZodMap:()=>vV,ZodMAC:()=>FV,ZodLiteral:()=>TV,ZodLazy:()=>nV,ZodKSUID:()=>pJ,ZodJWT:()=>DY,ZodIntersection:()=>NV,ZodIPv6:()=>rJ,ZodIPv4:()=>nJ,ZodGUID:()=>k5,ZodFunction:()=>aV,ZodFile:()=>PV,ZodExactOptional:()=>bV,ZodEnum:()=>G2,ZodEmoji:()=>hJ,ZodEmail:()=>yJ,ZodE164:()=>eJ,ZodDiscriminatedUnion:()=>jV,ZodDefault:()=>uV,ZodDate:()=>f5,ZodCustomStringFormat:()=>H2,ZodCustom:()=>d5,ZodCodec:()=>c5,ZodCatch:()=>hV,ZodCUID2:()=>cJ,ZodCUID:()=>lJ,ZodCIDRv6:()=>aJ,ZodCIDRv4:()=>oJ,ZodBoolean:()=>B2,ZodBigIntFormat:()=>$Y,ZodBigInt:()=>w2,ZodBase64URL:()=>sJ,ZodBase64:()=>tJ,ZodArray:()=>wV,ZodAny:()=>VV});function x5(D,$,U){let J=Object.getPrototypeOf(D),Y=eb.get(J);if(!Y)Y=new Set,eb.set(J,Y);if(Y.has($))return;Y.add($);for(let X in U){let Q=U[X];Object.defineProperty(J,X,{configurable:!0,enumerable:!1,get(){let F=Q.bind(this);return Object.defineProperty(this,X,{configurable:!0,writable:!0,enumerable:!0,value:F}),F},set(F){Object.defineProperty(this,X,{configurable:!0,writable:!0,enumerable:!0,value:F})}})}}function C5(D){return Oq(V2,D)}function DC(D){return $J(yJ,D)}function $C(D){return A5(k5,D)}function UC(D){return UJ(Q$,D)}function JC(D){return JJ(Q$,D)}function YC(D){return YJ(Q$,D)}function XC(D){return XJ(Q$,D)}function QC(D){return v5(g5,D)}function FC(D){return v5(g5,{protocol:G6.httpProtocol,hostname:G6.domain,...i.normalizeParams(D)})}function WC(D){return QJ(hJ,D)}function KC(D){return FJ(mJ,D)}function ZC(D){return WJ(lJ,D)}function zC(D){return KJ(cJ,D)}function qC(D){return ZJ(dJ,D)}function GC(D){return zJ(iJ,D)}function VC(D){return qJ(pJ,D)}function HC(D){return GJ(nJ,D)}function IC(D){return Nq(FV,D)}function BC(D){return VJ(rJ,D)}function wC(D){return HJ(oJ,D)}function OC(D){return IJ(aJ,D)}function jC(D){return BJ(tJ,D)}function NC(D){return wJ(sJ,D)}function LC(D){return OJ(eJ,D)}function RC(D){return jJ(DY,D)}function MC(D,$,U={}){return K2(H2,D,$,U)}function AC(D){return K2(H2,"hostname",G6.hostname,D)}function vC(D){return K2(H2,"hex",G6.hex,D)}function EC(D,$){let U=$?.enc??"hex",J=`${D}_${U}`,Y=G6[J];if(!Y)throw Error(`Unrecognized hash format: ${J}`);return K2(H2,J,Y,$)}function WV(D){return Eq(I2,D)}function xJ(D){return Pq(H4,D)}function TC(D){return Sq(H4,D)}function PC(D){return bq(H4,D)}function SC(D){return Cq(H4,D)}function bC(D){return kq(H4,D)}function KV(D){return uq(B2,D)}function CC(D){return xq(w2,D)}function kC(D){return fq($Y,D)}function uC(D){return yq($Y,D)}function _C(D){return hq(ZV,D)}function xC(D){return mq(zV,D)}function GV(D){return lq(qV,D)}function gC(){return cq(VV)}function V4(){return dq(HV)}function UY(D){return iq(IV,D)}function fC(D){return pq(BV,D)}function yC(D){return nq(f5,D)}function y5(D,$){return aq(wV,D,$)}function hC(D){let $=D._zod.def.shape;return YY(Object.keys($))}function mC(D,$){let U={type:"object",shape:D??{},...i.normalizeParams($)};return new h5(U)}function lC(D,$){return new h5({type:"object",shape:D,catchall:UY(),...i.normalizeParams($)})}function cC(D,$){return new h5({type:"object",shape:D,catchall:V4(),...i.normalizeParams($)})}function JY(D,$){return new m5({type:"union",options:D,...i.normalizeParams($)})}function dC(D,$){return new OV({type:"union",options:D,inclusive:!1,...i.normalizeParams($)})}function iC(D,$,U){return new jV({type:"union",options:$,discriminator:D,...i.normalizeParams(U)})}function LV(D,$){return new NV({type:"intersection",left:D,right:$})}function MV(D,$,U){let J=$ instanceof zD,Y=J?U:$;return new RV({type:"tuple",items:D,rest:J?$:null,...i.normalizeParams(Y)})}function AV(D,$,U){if(!$||!$._zod)return new q2({type:"record",keyType:C5(),valueType:D,...i.normalizeParams($)});return new q2({type:"record",keyType:D,valueType:$,...i.normalizeParams(U)})}function pC(D,$,U){let J=i0(D);return J._zod.values=void 0,new q2({type:"record",keyType:J,valueType:$,...i.normalizeParams(U)})}function nC(D,$,U){return new q2({type:"record",keyType:D,valueType:$,mode:"loose",...i.normalizeParams(U)})}function rC(D,$,U){return new vV({type:"map",keyType:D,valueType:$,...i.normalizeParams(U)})}function oC(D,$){return new EV({type:"set",valueType:D,...i.normalizeParams($)})}function YY(D,$){let U=Array.isArray(D)?Object.fromEntries(D.map((J)=>[J,J])):D;return new G2({type:"enum",entries:U,...i.normalizeParams($)})}function aC(D,$){return new G2({type:"enum",entries:D,...i.normalizeParams($)})}function tC(D,$){return new TV({type:"literal",values:Array.isArray(D)?D:[D],...i.normalizeParams($)})}function sC(D){return tq(PV,D)}function XY(D){return new SV({type:"transform",transform:D})}function u5(D){return new QY({type:"optional",innerType:D})}function CV(D){return new bV({type:"optional",innerType:D})}function _5(D){return new kV({type:"nullable",innerType:D})}function eC(D){return u5(_5(D))}function _V(D,$){return new uV({type:"default",innerType:D,get defaultValue(){return typeof $==="function"?$():i.shallowClone($)}})}function gV(D,$){return new xV({type:"prefault",innerType:D,get defaultValue(){return typeof $==="function"?$():i.shallowClone($)}})}function fV(D,$){return new FY({type:"nonoptional",innerType:D,...i.normalizeParams($)})}function Dk(D){return new yV({type:"success",innerType:D})}function mV(D,$){return new hV({type:"catch",innerType:D,catchValue:typeof $==="function"?$:()=>$})}function $k(D){return oq(lV,D)}function gJ(D,$){return new l5({type:"pipe",in:D,out:$})}function Uk(D,$,U){return new c5({type:"pipe",in:D,out:$,transform:U.decode,reverseTransform:U.encode})}function Jk(D){let $=D._zod.def;return new c5({type:"pipe",in:$.out,out:$.in,transform:$.reverseTransform,reverseTransform:$.transform})}function iV(D){return new dV({type:"readonly",innerType:D})}function Yk(D,$){return new pV({type:"template_literal",parts:D,...i.normalizeParams($)})}function rV(D){return new nV({type:"lazy",getter:D})}function Xk(D){return new oV({type:"promise",innerType:D})}function Qk(D){return new aV({type:"function",input:Array.isArray(D?.input)?MV(D?.input):D?.input??y5(V4()),output:D?.output??V4()})}function Fk(D){let $=new cD({check:"custom"});return $._zod.check=D,$}function Wk(D,$){return sq(d5,D??(()=>!0),$)}function tV(D,$={}){return eq(d5,D,$)}function sV(D,$){return DG(D,$)}function zk(D,$={}){let U=new d5({type:"custom",check:"custom",fn:(J)=>J instanceof D,abort:!0,...i.normalizeParams($)});return U._zod.bag.Class=D,U._zod.check=(J)=>{if(!(J.value instanceof D))J.issues.push({code:"invalid_type",expected:D.name,input:J.value,inst:U,path:[...U._zod.def.path??[]]})},U}function Gk(D){let $=rV(()=>{return JY([C5(D),WV(),KV(),GV(),y5($),AV(C5(),$)])});return $}function Vk(D,$){return new cV({type:"pipe",in:XY(D),out:$})}var eb,BD,fJ,V2,lD,yJ,k5,Q$,g5,hJ,mJ,lJ,cJ,dJ,iJ,pJ,nJ,FV,rJ,oJ,aJ,tJ,sJ,eJ,DY,H2,I2,H4,B2,w2,$Y,ZV,zV,qV,VV,HV,IV,BV,f5,wV,h5,m5,OV,jV,NV,RV,q2,vV,EV,G2,TV,PV,SV,QY,bV,kV,uV,xV,FY,yV,hV,lV,l5,c5,cV,dV,pV,nV,oV,aV,d5,Kk,Zk,qk=(...D)=>JG({Codec:c5,Boolean:B2,String:V2},...D);var b5=_(()=>{H6();H6();T5();E5();bJ();P5();QV();eb=new WeakMap;BD=P("ZodType",(D,$)=>{return zD.init(D,$),Object.assign(D["~standard"],{jsonSchema:{input:Z2(D,"input"),output:Z2(D,"output")}}),D.toJSONSchema=YG(D,{}),D.def=$,D.type=$.type,Object.defineProperty(D,"_def",{value:$}),D.parse=(U,J)=>rG(D,U,J,{callee:D.parse}),D.safeParse=(U,J)=>aG(D,U,J),D.parseAsync=async(U,J)=>oG(D,U,J,{callee:D.parseAsync}),D.safeParseAsync=async(U,J)=>tG(D,U,J),D.spa=D.safeParseAsync,D.encode=(U,J)=>sG(D,U,J),D.decode=(U,J)=>eG(D,U,J),D.encodeAsync=async(U,J)=>DV(D,U,J),D.decodeAsync=async(U,J)=>$V(D,U,J),D.safeEncode=(U,J)=>UV(D,U,J),D.safeDecode=(U,J)=>JV(D,U,J),D.safeEncodeAsync=async(U,J)=>YV(D,U,J),D.safeDecodeAsync=async(U,J)=>XV(D,U,J),x5(D,"ZodType",{check(...U){let J=this.def;return this.clone(i.mergeDefs(J,{checks:[...J.checks??[],...U.map((Y)=>typeof Y==="function"?{_zod:{check:Y,def:{check:"custom"},onattach:[]}}:Y)]}),{parent:!0})},with(...U){return this.check(...U)},clone(U,J){return i0(this,U,J)},brand(){return this},register(U,J){return U.add(this,J),this},refine(U,J){return this.check(tV(U,J))},superRefine(U,J){return this.check(sV(U,J))},overwrite(U){return this.check(m6(U))},optional(){return u5(this)},exactOptional(){return CV(this)},nullable(){return _5(this)},nullish(){return u5(_5(this))},nonoptional(U){return fV(this,U)},array(){return y5(this)},or(U){return JY([this,U])},and(U){return LV(this,U)},transform(U){return gJ(this,XY(U))},default(U){return _V(this,U)},prefault(U){return gV(this,U)},catch(U){return mV(this,U)},pipe(U){return gJ(this,U)},readonly(){return iV(this)},describe(U){let J=this.clone();return A0.add(J,{description:U}),J},meta(...U){if(U.length===0)return A0.get(this);let J=this.clone();return A0.add(J,U[0]),J},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(U){return U(this)}}),Object.defineProperty(D,"description",{get(){return A0.get(D)?.description},configurable:!0}),D}),fJ=P("_ZodString",(D,$)=>{Z4.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(J,Y,X)=>XG(D,J,Y,X);let U=D._zod.bag;D.format=U.format??null,D.minLength=U.minimum??null,D.maxLength=U.maximum??null,x5(D,"_ZodString",{regex(...J){return this.check(t8(...J))},includes(...J){return this.check(D2(...J))},startsWith(...J){return this.check($2(...J))},endsWith(...J){return this.check(U2(...J))},min(...J){return this.check(j$(...J))},max(...J){return this.check(q4(...J))},length(...J){return this.check(G4(...J))},nonempty(...J){return this.check(j$(1,...J))},lowercase(J){return this.check(s8(J))},uppercase(J){return this.check(e8(J))},trim(){return this.check(X2())},normalize(...J){return this.check(Y2(...J))},toLowerCase(){return this.check(Q2())},toUpperCase(){return this.check(F2())},slugify(){return this.check(W2())}})}),V2=P("ZodString",(D,$)=>{Z4.init(D,$),fJ.init(D,$),D.email=(U)=>D.check($J(yJ,U)),D.url=(U)=>D.check(v5(g5,U)),D.jwt=(U)=>D.check(jJ(DY,U)),D.emoji=(U)=>D.check(QJ(hJ,U)),D.guid=(U)=>D.check(A5(k5,U)),D.uuid=(U)=>D.check(UJ(Q$,U)),D.uuidv4=(U)=>D.check(JJ(Q$,U)),D.uuidv6=(U)=>D.check(YJ(Q$,U)),D.uuidv7=(U)=>D.check(XJ(Q$,U)),D.nanoid=(U)=>D.check(FJ(mJ,U)),D.guid=(U)=>D.check(A5(k5,U)),D.cuid=(U)=>D.check(WJ(lJ,U)),D.cuid2=(U)=>D.check(KJ(cJ,U)),D.ulid=(U)=>D.check(ZJ(dJ,U)),D.base64=(U)=>D.check(BJ(tJ,U)),D.base64url=(U)=>D.check(wJ(sJ,U)),D.xid=(U)=>D.check(zJ(iJ,U)),D.ksuid=(U)=>D.check(qJ(pJ,U)),D.ipv4=(U)=>D.check(GJ(nJ,U)),D.ipv6=(U)=>D.check(VJ(rJ,U)),D.cidrv4=(U)=>D.check(HJ(oJ,U)),D.cidrv6=(U)=>D.check(IJ(aJ,U)),D.e164=(U)=>D.check(OJ(eJ,U)),D.datetime=(U)=>D.check(cG(U)),D.date=(U)=>D.check(dG(U)),D.time=(U)=>D.check(iG(U)),D.duration=(U)=>D.check(pG(U))});lD=P("ZodStringFormat",(D,$)=>{mD.init(D,$),fJ.init(D,$)}),yJ=P("ZodEmail",(D,$)=>{KZ.init(D,$),lD.init(D,$)});k5=P("ZodGUID",(D,$)=>{FZ.init(D,$),lD.init(D,$)});Q$=P("ZodUUID",(D,$)=>{WZ.init(D,$),lD.init(D,$)});g5=P("ZodURL",(D,$)=>{ZZ.init(D,$),lD.init(D,$)});hJ=P("ZodEmoji",(D,$)=>{zZ.init(D,$),lD.init(D,$)});mJ=P("ZodNanoID",(D,$)=>{qZ.init(D,$),lD.init(D,$)});lJ=P("ZodCUID",(D,$)=>{GZ.init(D,$),lD.init(D,$)});cJ=P("ZodCUID2",(D,$)=>{VZ.init(D,$),lD.init(D,$)});dJ=P("ZodULID",(D,$)=>{HZ.init(D,$),lD.init(D,$)});iJ=P("ZodXID",(D,$)=>{IZ.init(D,$),lD.init(D,$)});pJ=P("ZodKSUID",(D,$)=>{BZ.init(D,$),lD.init(D,$)});nJ=P("ZodIPv4",(D,$)=>{LZ.init(D,$),lD.init(D,$)});FV=P("ZodMAC",(D,$)=>{MZ.init(D,$),lD.init(D,$)});rJ=P("ZodIPv6",(D,$)=>{RZ.init(D,$),lD.init(D,$)});oJ=P("ZodCIDRv4",(D,$)=>{AZ.init(D,$),lD.init(D,$)});aJ=P("ZodCIDRv6",(D,$)=>{vZ.init(D,$),lD.init(D,$)});tJ=P("ZodBase64",(D,$)=>{TZ.init(D,$),lD.init(D,$)});sJ=P("ZodBase64URL",(D,$)=>{PZ.init(D,$),lD.init(D,$)});eJ=P("ZodE164",(D,$)=>{SZ.init(D,$),lD.init(D,$)});DY=P("ZodJWT",(D,$)=>{bZ.init(D,$),lD.init(D,$)});H2=P("ZodCustomStringFormat",(D,$)=>{CZ.init(D,$),lD.init(D,$)});I2=P("ZodNumber",(D,$)=>{oU.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(J,Y,X)=>QG(D,J,Y,X),x5(D,"ZodNumber",{gt(J,Y){return this.check(Y$(J,Y))},gte(J,Y){return this.check(n0(J,Y))},min(J,Y){return this.check(n0(J,Y))},lt(J,Y){return this.check(J$(J,Y))},lte(J,Y){return this.check(V6(J,Y))},max(J,Y){return this.check(V6(J,Y))},int(J){return this.check(xJ(J))},safe(J){return this.check(xJ(J))},positive(J){return this.check(Y$(0,J))},nonnegative(J){return this.check(n0(0,J))},negative(J){return this.check(J$(0,J))},nonpositive(J){return this.check(V6(0,J))},multipleOf(J,Y){return this.check(Q1(J,Y))},step(J,Y){return this.check(Q1(J,Y))},finite(){return this}});let U=D._zod.bag;D.minValue=Math.max(U.minimum??Number.NEGATIVE_INFINITY,U.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,D.maxValue=Math.min(U.maximum??Number.POSITIVE_INFINITY,U.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,D.isInt=(U.format??"").includes("int")||Number.isSafeInteger(U.multipleOf??0.5),D.isFinite=!0,D.format=U.format??null});H4=P("ZodNumberFormat",(D,$)=>{kZ.init(D,$),I2.init(D,$)});B2=P("ZodBoolean",(D,$)=>{I5.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>FG(D,U,J,Y)});w2=P("ZodBigInt",(D,$)=>{aU.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(J,Y,X)=>WG(D,J,Y,X),D.gte=(J,Y)=>D.check(n0(J,Y)),D.min=(J,Y)=>D.check(n0(J,Y)),D.gt=(J,Y)=>D.check(Y$(J,Y)),D.gte=(J,Y)=>D.check(n0(J,Y)),D.min=(J,Y)=>D.check(n0(J,Y)),D.lt=(J,Y)=>D.check(J$(J,Y)),D.lte=(J,Y)=>D.check(V6(J,Y)),D.max=(J,Y)=>D.check(V6(J,Y)),D.positive=(J)=>D.check(Y$(BigInt(0),J)),D.negative=(J)=>D.check(J$(BigInt(0),J)),D.nonpositive=(J)=>D.check(V6(BigInt(0),J)),D.nonnegative=(J)=>D.check(n0(BigInt(0),J)),D.multipleOf=(J,Y)=>D.check(Q1(J,Y));let U=D._zod.bag;D.minValue=U.minimum??null,D.maxValue=U.maximum??null,D.format=U.format??null});$Y=P("ZodBigIntFormat",(D,$)=>{uZ.init(D,$),w2.init(D,$)});ZV=P("ZodSymbol",(D,$)=>{_Z.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>KG(D,U,J,Y)});zV=P("ZodUndefined",(D,$)=>{xZ.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>zG(D,U,J,Y)});qV=P("ZodNull",(D,$)=>{gZ.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>ZG(D,U,J,Y)});VV=P("ZodAny",(D,$)=>{fZ.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>VG(D,U,J,Y)});HV=P("ZodUnknown",(D,$)=>{yZ.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>HG(D,U,J,Y)});IV=P("ZodNever",(D,$)=>{hZ.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>GG(D,U,J,Y)});BV=P("ZodVoid",(D,$)=>{mZ.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>qG(D,U,J,Y)});f5=P("ZodDate",(D,$)=>{lZ.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(J,Y,X)=>IG(D,J,Y,X),D.min=(J,Y)=>D.check(n0(J,Y)),D.max=(J,Y)=>D.check(V6(J,Y));let U=D._zod.bag;D.minDate=U.minimum?new Date(U.minimum):null,D.maxDate=U.maximum?new Date(U.maximum):null});wV=P("ZodArray",(D,$)=>{cZ.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>TG(D,U,J,Y),D.element=$.element,x5(D,"ZodArray",{min(U,J){return this.check(j$(U,J))},nonempty(U){return this.check(j$(1,U))},max(U,J){return this.check(q4(U,J))},length(U,J){return this.check(G4(U,J))},unwrap(){return this.element}})});h5=P("ZodObject",(D,$)=>{dZ.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>PG(D,U,J,Y),i.defineLazy(D,"shape",()=>{return $.shape}),x5(D,"ZodObject",{keyof(){return YY(Object.keys(this._zod.def.shape))},catchall(U){return this.clone({...this._zod.def,catchall:U})},passthrough(){return this.clone({...this._zod.def,catchall:V4()})},loose(){return this.clone({...this._zod.def,catchall:V4()})},strict(){return this.clone({...this._zod.def,catchall:UY()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(U){return i.extend(this,U)},safeExtend(U){return i.safeExtend(this,U)},merge(U){return i.merge(this,U)},pick(U){return i.pick(this,U)},omit(U){return i.omit(this,U)},partial(...U){return i.partial(QY,this,U[0])},required(...U){return i.required(FY,this,U[0])}})});m5=P("ZodUnion",(D,$)=>{B5.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>EJ(D,U,J,Y),D.options=$.options});OV=P("ZodXor",(D,$)=>{m5.init(D,$),iZ.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>EJ(D,U,J,Y),D.options=$.options});jV=P("ZodDiscriminatedUnion",(D,$)=>{m5.init(D,$),pZ.init(D,$)});NV=P("ZodIntersection",(D,$)=>{nZ.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>SG(D,U,J,Y)});RV=P("ZodTuple",(D,$)=>{tU.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>bG(D,U,J,Y),D.rest=(U)=>D.clone({...D._zod.def,rest:U})});q2=P("ZodRecord",(D,$)=>{rZ.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>CG(D,U,J,Y),D.keyType=$.keyType,D.valueType=$.valueType});vV=P("ZodMap",(D,$)=>{oZ.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>vG(D,U,J,Y),D.keyType=$.keyType,D.valueType=$.valueType,D.min=(...U)=>D.check(X$(...U)),D.nonempty=(U)=>D.check(X$(1,U)),D.max=(...U)=>D.check(F1(...U)),D.size=(...U)=>D.check(z4(...U))});EV=P("ZodSet",(D,$)=>{aZ.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>EG(D,U,J,Y),D.min=(...U)=>D.check(X$(...U)),D.nonempty=(U)=>D.check(X$(1,U)),D.max=(...U)=>D.check(F1(...U)),D.size=(...U)=>D.check(z4(...U))});G2=P("ZodEnum",(D,$)=>{tZ.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(J,Y,X)=>BG(D,J,Y,X),D.enum=$.entries,D.options=Object.values($.entries);let U=new Set(Object.keys($.entries));D.extract=(J,Y)=>{let X={};for(let Q of J)if(U.has(Q))X[Q]=$.entries[Q];else throw Error(`Key ${Q} not found in enum`);return new G2({...$,checks:[],...i.normalizeParams(Y),entries:X})},D.exclude=(J,Y)=>{let X={...$.entries};for(let Q of J)if(U.has(Q))delete X[Q];else throw Error(`Key ${Q} not found in enum`);return new G2({...$,checks:[],...i.normalizeParams(Y),entries:X})}});TV=P("ZodLiteral",(D,$)=>{sZ.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>wG(D,U,J,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]}})});PV=P("ZodFile",(D,$)=>{eZ.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>NG(D,U,J,Y),D.min=(U,J)=>D.check(X$(U,J)),D.max=(U,J)=>D.check(F1(U,J)),D.mime=(U,J)=>D.check(J2(Array.isArray(U)?U:[U],J))});SV=P("ZodTransform",(D,$)=>{Dz.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>AG(D,U,J,Y),D._zod.parse=(U,J)=>{if(J.direction==="backward")throw new Q4(D.constructor.name);U.addIssue=(X)=>{if(typeof X==="string")U.issues.push(i.issue(X,U.value,$));else{let Q=X;if(Q.fatal)Q.continue=!1;Q.code??(Q.code="custom"),Q.input??(Q.input=U.value),Q.inst??(Q.inst=D),U.issues.push(i.issue(Q))}};let Y=$.transform(U.value,U);if(Y instanceof Promise)return Y.then((X)=>{return U.value=X,U.fallback=!0,U});return U.value=Y,U.fallback=!0,U}});QY=P("ZodOptional",(D,$)=>{sU.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>TJ(D,U,J,Y),D.unwrap=()=>D._zod.def.innerType});bV=P("ZodExactOptional",(D,$)=>{$z.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>TJ(D,U,J,Y),D.unwrap=()=>D._zod.def.innerType});kV=P("ZodNullable",(D,$)=>{Uz.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>kG(D,U,J,Y),D.unwrap=()=>D._zod.def.innerType});uV=P("ZodDefault",(D,$)=>{Jz.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>_G(D,U,J,Y),D.unwrap=()=>D._zod.def.innerType,D.removeDefault=D.unwrap});xV=P("ZodPrefault",(D,$)=>{Yz.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>xG(D,U,J,Y),D.unwrap=()=>D._zod.def.innerType});FY=P("ZodNonOptional",(D,$)=>{Xz.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>uG(D,U,J,Y),D.unwrap=()=>D._zod.def.innerType});yV=P("ZodSuccess",(D,$)=>{Qz.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>LG(D,U,J,Y),D.unwrap=()=>D._zod.def.innerType});hV=P("ZodCatch",(D,$)=>{Fz.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>gG(D,U,J,Y),D.unwrap=()=>D._zod.def.innerType,D.removeCatch=D.unwrap});lV=P("ZodNaN",(D,$)=>{Wz.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>OG(D,U,J,Y)});l5=P("ZodPipe",(D,$)=>{eU.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>fG(D,U,J,Y),D.in=$.in,D.out=$.out});c5=P("ZodCodec",(D,$)=>{l5.init(D,$),w5.init(D,$)});cV=P("ZodPreprocess",(D,$)=>{l5.init(D,$),Kz.init(D,$)}),dV=P("ZodReadonly",(D,$)=>{Zz.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>yG(D,U,J,Y),D.unwrap=()=>D._zod.def.innerType});pV=P("ZodTemplateLiteral",(D,$)=>{zz.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>jG(D,U,J,Y)});nV=P("ZodLazy",(D,$)=>{Vz.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>mG(D,U,J,Y),D.unwrap=()=>D._zod.def.getter()});oV=P("ZodPromise",(D,$)=>{Gz.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>hG(D,U,J,Y),D.unwrap=()=>D._zod.def.innerType});aV=P("ZodFunction",(D,$)=>{qz.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>MG(D,U,J,Y)});d5=P("ZodCustom",(D,$)=>{Hz.init(D,$),BD.init(D,$),D._zod.processJSONSchema=(U,J,Y)=>RG(D,U,J,Y)});Kk=$G,Zk=UG});function y8D(D){F0({customError:D})}function h8D(){return F0().customError}var f8D,eV;var Hk=_(()=>{H6();f8D={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){})(eV||(eV={}))});function l8D(D,$){let U=D.$schema;if(U==="https://json-schema.org/draft/2020-12/schema")return"draft-2020-12";if(U==="http://json-schema.org/draft-07/schema#")return"draft-7";if(U==="http://json-schema.org/draft-04/schema#")return"draft-4";return $??"draft-2020-12"}function c8D(D,$){if(!D.startsWith("#"))throw Error("External $ref is not supported, only local refs (#/...) are allowed");let U=D.slice(1).split("/").filter(Boolean);if(U.length===0)return $.rootSchema;let J=$.version==="draft-2020-12"?"$defs":"definitions";if(U[0]===J){let Y=U[1];if(!Y||!$.defs[Y])throw Error(`Reference not found: ${D}`);return $.defs[Y]}throw Error(`Reference not found: ${D}`)}function Ik(D,$){if(D.not!==void 0){if(typeof D.not==="object"&&Object.keys(D.not).length===0)return DD.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 DD.lazy(()=>{if(!$.refs.has(Y))throw Error(`Circular reference not resolved: ${Y}`);return $.refs.get(Y)});$.processing.add(Y);let X=c8D(Y,$),Q=_0(X,$);return $.refs.set(Y,Q),$.processing.delete(Y),Q}if(D.enum!==void 0){let Y=D.enum;if($.version==="openapi-3.0"&&D.nullable===!0&&Y.length===1&&Y[0]===null)return DD.null();if(Y.length===0)return DD.never();if(Y.length===1)return DD.literal(Y[0]);if(Y.every((Q)=>typeof Q==="string"))return DD.enum(Y);let X=Y.map((Q)=>DD.literal(Q));if(X.length<2)return X[0];return DD.union([X[0],X[1],...X.slice(2)])}if(D.const!==void 0)return DD.literal(D.const);let U=D.type;if(Array.isArray(U)){let Y=U.map((X)=>{let Q={...D,type:X};return Ik(Q,$)});if(Y.length===0)return DD.never();if(Y.length===1)return Y[0];return DD.union(Y)}if(!U)return DD.any();let J;switch(U){case"string":{let Y=DD.string();if(D.format){let X=D.format;if(X==="email")Y=Y.check(DD.email());else if(X==="uri"||X==="uri-reference")Y=Y.check(DD.url());else if(X==="uuid"||X==="guid")Y=Y.check(DD.uuid());else if(X==="date-time")Y=Y.check(DD.iso.datetime());else if(X==="date")Y=Y.check(DD.iso.date());else if(X==="time")Y=Y.check(DD.iso.time());else if(X==="duration")Y=Y.check(DD.iso.duration());else if(X==="ipv4")Y=Y.check(DD.ipv4());else if(X==="ipv6")Y=Y.check(DD.ipv6());else if(X==="mac")Y=Y.check(DD.mac());else if(X==="cidr")Y=Y.check(DD.cidrv4());else if(X==="cidr-v6")Y=Y.check(DD.cidrv6());else if(X==="base64")Y=Y.check(DD.base64());else if(X==="base64url")Y=Y.check(DD.base64url());else if(X==="e164")Y=Y.check(DD.e164());else if(X==="jwt")Y=Y.check(DD.jwt());else if(X==="emoji")Y=Y.check(DD.emoji());else if(X==="nanoid")Y=Y.check(DD.nanoid());else if(X==="cuid")Y=Y.check(DD.cuid());else if(X==="cuid2")Y=Y.check(DD.cuid2());else if(X==="ulid")Y=Y.check(DD.ulid());else if(X==="xid")Y=Y.check(DD.xid());else if(X==="ksuid")Y=Y.check(DD.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));J=Y;break}case"number":case"integer":{let Y=U==="integer"?DD.number().int():DD.number();if(typeof D.minimum==="number")Y=Y.min(D.minimum);if(typeof D.maximum==="number")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);J=Y;break}case"boolean":{J=DD.boolean();break}case"null":{J=DD.null();break}case"object":{let Y={},X=D.properties||{},Q=new Set(D.required||[]);for(let[W,K]of Object.entries(X)){let Z=_0(K,$);Y[W]=Q.has(W)?Z:Z.optional()}if(D.propertyNames){let W=_0(D.propertyNames,$),K=D.additionalProperties&&typeof D.additionalProperties==="object"?_0(D.additionalProperties,$):DD.any();if(Object.keys(Y).length===0){J=DD.record(W,K);break}let Z=DD.object(Y).passthrough(),z=DD.looseRecord(W,K);J=DD.intersection(Z,z);break}if(D.patternProperties){let W=D.patternProperties,K=Object.keys(W),Z=[];for(let q of K){let G=_0(W[q],$),V=DD.string().regex(new RegExp(q));Z.push(DD.looseRecord(V,G))}let z=[];if(Object.keys(Y).length>0)z.push(DD.object(Y).passthrough());if(z.push(...Z),z.length===0)J=DD.object({}).passthrough();else if(z.length===1)J=z[0];else{let q=DD.intersection(z[0],z[1]);for(let G=2;G<z.length;G++)q=DD.intersection(q,z[G]);J=q}break}let F=DD.object(Y);if(D.additionalProperties===!1)J=F.strict();else if(typeof D.additionalProperties==="object")J=F.catchall(_0(D.additionalProperties,$));else J=F.passthrough();break}case"array":{let{prefixItems:Y,items:X}=D;if(Y&&Array.isArray(Y)){let Q=Y.map((W)=>_0(W,$)),F=X&&typeof X==="object"&&!Array.isArray(X)?_0(X,$):void 0;if(F)J=DD.tuple(Q).rest(F);else J=DD.tuple(Q);if(typeof D.minItems==="number")J=J.check(DD.minLength(D.minItems));if(typeof D.maxItems==="number")J=J.check(DD.maxLength(D.maxItems))}else if(Array.isArray(X)){let Q=X.map((W)=>_0(W,$)),F=D.additionalItems&&typeof D.additionalItems==="object"?_0(D.additionalItems,$):void 0;if(F)J=DD.tuple(Q).rest(F);else J=DD.tuple(Q);if(typeof D.minItems==="number")J=J.check(DD.minLength(D.minItems));if(typeof D.maxItems==="number")J=J.check(DD.maxLength(D.maxItems))}else if(X!==void 0){let Q=_0(X,$),F=DD.array(Q);if(typeof D.minItems==="number")F=F.min(D.minItems);if(typeof D.maxItems==="number")F=F.max(D.maxItems);J=F}else J=DD.array(DD.any());break}default:throw Error(`Unsupported type: ${U}`)}return J}function _0(D,$){if(typeof D==="boolean")return D?DD.any():DD.never();let U=Ik(D,$),J=D.type||D.enum!==void 0||D.const!==void 0;if(D.anyOf&&Array.isArray(D.anyOf)){let F=D.anyOf.map((K)=>_0(K,$)),W=DD.union(F);U=J?DD.intersection(U,W):W}if(D.oneOf&&Array.isArray(D.oneOf)){let F=D.oneOf.map((K)=>_0(K,$)),W=DD.xor(F);U=J?DD.intersection(U,W):W}if(D.allOf&&Array.isArray(D.allOf))if(D.allOf.length===0)U=J?U:DD.any();else{let F=J?U:_0(D.allOf[0],$),W=J?0:1;for(let K=W;K<D.allOf.length;K++)F=DD.intersection(F,_0(D.allOf[K],$));U=F}if(D.nullable===!0&&$.version==="openapi-3.0")U=DD.nullable(U);if(D.readOnly===!0)U=DD.readonly(U);if(D.default!==void 0)U=U.default(D.default);let Y={},X=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let F of X)if(F in D)Y[F]=D[F];let Q=["contentEncoding","contentMediaType","contentSchema"];for(let F of Q)if(F in D)Y[F]=D[F];for(let F of Object.keys(D))if(!m8D.has(F))Y[F]=D[F];if(Object.keys(Y).length>0)$.registry.add(U,Y);if(D.description)U=U.describe(D.description);return U}function Bk(D,$){if(typeof D==="boolean")return D?DD.any():DD.never();let U;try{U=JSON.parse(JSON.stringify(D))}catch{throw Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let J=l8D(U,$?.defaultTarget),Y=U.$defs||U.definitions||{},X={version:J,defs:Y,refs:new Map,processing:new Set,rootSchema:U,registry:$?.registry??A0};return _0(U,X)}var DD,m8D;var wk=_(()=>{M5();bJ();P5();b5();DD={...S5,...SJ,iso:z2},m8D=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"])});var DH={};S0(DH,{string:()=>d8D,number:()=>i8D,date:()=>r8D,boolean:()=>p8D,bigint:()=>n8D});function d8D(D){return jq(V2,D)}function i8D(D){return Tq(I2,D)}function p8D(D){return _q(B2,D)}function n8D(D){return gq(w2,D)}function r8D(D){return rq(f5,D)}var Ok=_(()=>{H6();b5()});var PD={};S0(PD,{xor:()=>dC,xid:()=>GC,void:()=>fC,uuidv7:()=>XC,uuidv6:()=>YC,uuidv4:()=>JC,uuid:()=>UC,util:()=>i,url:()=>QC,uppercase:()=>e8,unknown:()=>V4,union:()=>JY,undefined:()=>xC,ulid:()=>qC,uint64:()=>uC,uint32:()=>bC,tuple:()=>MV,trim:()=>X2,treeifyError:()=>XK,transform:()=>XY,toUpperCase:()=>F2,toLowerCase:()=>Q2,toJSONSchema:()=>PJ,templateLiteral:()=>Yk,symbol:()=>_C,superRefine:()=>sV,success:()=>Dk,stringbool:()=>qk,stringFormat:()=>MC,string:()=>C5,strictObject:()=>lC,startsWith:()=>$2,slugify:()=>W2,size:()=>z4,setErrorMap:()=>y8D,set:()=>oC,safeParseAsync:()=>tG,safeParse:()=>aG,safeEncodeAsync:()=>YV,safeEncode:()=>UV,safeDecodeAsync:()=>XV,safeDecode:()=>JV,registry:()=>DJ,regexes:()=>G6,regex:()=>t8,refine:()=>tV,record:()=>AV,readonly:()=>iV,property:()=>AJ,promise:()=>Xk,prettifyError:()=>QK,preprocess:()=>Vk,prefault:()=>gV,positive:()=>NJ,pipe:()=>gJ,partialRecord:()=>pC,parseAsync:()=>oG,parse:()=>rG,overwrite:()=>m6,optional:()=>u5,object:()=>mC,number:()=>WV,nullish:()=>eC,nullable:()=>_5,null:()=>GV,normalize:()=>Y2,nonpositive:()=>RJ,nonoptional:()=>fV,nonnegative:()=>MJ,never:()=>UY,negative:()=>LJ,nativeEnum:()=>aC,nanoid:()=>KC,nan:()=>$k,multipleOf:()=>Q1,minSize:()=>X$,minLength:()=>j$,mime:()=>J2,meta:()=>Zk,maxSize:()=>F1,maxLength:()=>q4,map:()=>rC,mac:()=>IC,lte:()=>V6,lt:()=>J$,lowercase:()=>s8,looseRecord:()=>nC,looseObject:()=>cC,locales:()=>R5,literal:()=>tC,length:()=>G4,lazy:()=>rV,ksuid:()=>VC,keyof:()=>hC,jwt:()=>RC,json:()=>Gk,iso:()=>z2,ipv6:()=>BC,ipv4:()=>HC,invertCodec:()=>Jk,intersection:()=>LV,int64:()=>kC,int32:()=>SC,int:()=>xJ,instanceof:()=>zk,includes:()=>D2,httpUrl:()=>FC,hostname:()=>AC,hex:()=>vC,hash:()=>EC,guid:()=>$C,gte:()=>n0,gt:()=>Y$,globalRegistry:()=>A0,getErrorMap:()=>h8D,function:()=>Qk,fromJSONSchema:()=>Bk,formatError:()=>q5,float64:()=>PC,float32:()=>TC,flattenError:()=>z5,file:()=>sC,exactOptional:()=>CV,enum:()=>YY,endsWith:()=>U2,encodeAsync:()=>DV,encode:()=>sG,emoji:()=>WC,email:()=>DC,e164:()=>LC,discriminatedUnion:()=>iC,describe:()=>Kk,decodeAsync:()=>$V,decode:()=>eG,date:()=>yC,custom:()=>Wk,cuid2:()=>zC,cuid:()=>ZC,core:()=>N$,config:()=>F0,coerce:()=>DH,codec:()=>Uk,clone:()=>i0,cidrv6:()=>OC,cidrv4:()=>wC,check:()=>Fk,catch:()=>mV,boolean:()=>KV,bigint:()=>CC,base64url:()=>NC,base64:()=>jC,array:()=>y5,any:()=>gC,_function:()=>Qk,_default:()=>_V,_ZodString:()=>fJ,ZodXor:()=>OV,ZodXID:()=>iJ,ZodVoid:()=>BV,ZodUnknown:()=>HV,ZodUnion:()=>m5,ZodUndefined:()=>zV,ZodUUID:()=>Q$,ZodURL:()=>g5,ZodULID:()=>dJ,ZodType:()=>BD,ZodTuple:()=>RV,ZodTransform:()=>SV,ZodTemplateLiteral:()=>pV,ZodSymbol:()=>ZV,ZodSuccess:()=>yV,ZodStringFormat:()=>lD,ZodString:()=>V2,ZodSet:()=>EV,ZodRecord:()=>q2,ZodRealError:()=>Q6,ZodReadonly:()=>dV,ZodPromise:()=>oV,ZodPreprocess:()=>cV,ZodPrefault:()=>xV,ZodPipe:()=>l5,ZodOptional:()=>QY,ZodObject:()=>h5,ZodNumberFormat:()=>H4,ZodNumber:()=>I2,ZodNullable:()=>kV,ZodNull:()=>qV,ZodNonOptional:()=>FY,ZodNever:()=>IV,ZodNanoID:()=>mJ,ZodNaN:()=>lV,ZodMap:()=>vV,ZodMAC:()=>FV,ZodLiteral:()=>TV,ZodLazy:()=>nV,ZodKSUID:()=>pJ,ZodJWT:()=>DY,ZodIssueCode:()=>f8D,ZodIntersection:()=>NV,ZodISOTime:()=>uJ,ZodISODuration:()=>_J,ZodISODateTime:()=>CJ,ZodISODate:()=>kJ,ZodIPv6:()=>rJ,ZodIPv4:()=>nJ,ZodGUID:()=>k5,ZodFunction:()=>aV,ZodFirstPartyTypeKind:()=>eV,ZodFile:()=>PV,ZodExactOptional:()=>bV,ZodError:()=>x8D,ZodEnum:()=>G2,ZodEmoji:()=>hJ,ZodEmail:()=>yJ,ZodE164:()=>eJ,ZodDiscriminatedUnion:()=>jV,ZodDefault:()=>uV,ZodDate:()=>f5,ZodCustomStringFormat:()=>H2,ZodCustom:()=>d5,ZodCodec:()=>c5,ZodCatch:()=>hV,ZodCUID2:()=>cJ,ZodCUID:()=>lJ,ZodCIDRv6:()=>aJ,ZodCIDRv4:()=>oJ,ZodBoolean:()=>B2,ZodBigIntFormat:()=>$Y,ZodBigInt:()=>w2,ZodBase64URL:()=>sJ,ZodBase64:()=>tJ,ZodArray:()=>wV,ZodAny:()=>VV,TimePrecision:()=>Lq,NEVER:()=>nW,$output:()=>Iq,$input:()=>Bq,$brand:()=>rW});var $H=_(()=>{H6();H6();vz();H6();T5();wk();Hq();P5();P5();Ok();b5();bJ();nG();QV();Hk();F0(O5())});var jk=_(()=>{$H();$H()});function yjD(D,$,U){let J=U.filter((X)=>D[X]===!0);if(J.length<2)return;let Y=String(J[0]);for(let X of J.slice(1))$.addIssue({code:"custom",message:`not used together with "${Y}"`,path:[X]})}var Nk,o8D,hjD,mjD,ljD,cjD;var Lk=_(()=>{jk();Nk=PD.object({name:PD.string().min(1),version:PD.string().min(1),requested_version:PD.string().optional(),ios_checksum:PD.string().optional(),android_checksum:PD.string().optional()}),o8D=PD.enum(["new_plugin","removed_plugin","version_mismatch","requested_version_changed","ios_code_changed","android_code_changed","both_platforms_changed","platform_checksum_metadata_changed"]),hjD=PD.object({name:PD.string(),localVersion:PD.string().optional(),remoteVersion:PD.string().optional(),localRequestedVersion:PD.string().optional(),remoteRequestedVersion:PD.string().optional(),localIosChecksum:PD.string().optional(),remoteIosChecksum:PD.string().optional(),localAndroidChecksum:PD.string().optional(),remoteAndroidChecksum:PD.string().optional()}),mjD=PD.object({compatible:PD.boolean(),reasons:o8D.array(),message:PD.string()}),ljD=PD.object({isSecurityPolicyError:PD.boolean(),errorCode:PD.string(),message:PD.string()}),cjD=PD.record(PD.string(),PD.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"}),PD.NEVER;let U=Object.create(null);for(let[J,Y]of Object.entries(D)){let X=J.trim(),Q=Y.trim();if(!X)return $.addIssue({code:"custom",message:"a non-empty locale key"}),PD.NEVER;if(!Q)return $.addIssue({code:"custom",message:"a non-empty release note"}),PD.NEVER;if(Object.hasOwn(U,X))return $.addIssue({code:"custom",message:`a unique locale key (duplicate after trim: "${X}")`}),PD.NEVER;U[X]=Q}return U})});function a8D(D){if(typeof D?.then==="function")throw TypeError("Expected synchronous schema validation result");return D}function UH(D,$){let U=a8D(D["~standard"].validate($));if(U.issues)return{success:!1,error:new Rk(U.issues)};return{success:!0,data:U.value}}function ijD(D,$){let U=UH(D,$);if(!U.success)throw U.error;return U.data}var Rk;var Mk=_(()=>{Rk=class Rk extends Error{issues;constructor(D){super(D.map(($)=>$.message).join("; ")||"Schema validation failed");this.name="SchemaError",this.issues=D}}});function t8D(D){if(D&&typeof D==="object"&&"status"in D){let $=D.status;if(typeof $==="number")return $}return}function s8D(D){let $=[],U=new Set,J=D;if(typeof D==="string")return D;while(J){if(typeof J==="string"){$.push(J);break}if(typeof J!=="object")break;if(U.has(J))break;if(U.add(J),J instanceof Error){$.push(J.message),J=J.cause;continue}let Y=J;if(typeof Y.message==="string")$.push(Y.message);J=Y.cause}return $.join(" ")}function e8D(D){return s8D(D)}function Ak(D){if(D&&typeof D==="object"&&"code"in D){let J=D.code;if(typeof J==="string"&&J.startsWith("commander."))return"commander"}let $=t8D(D);if($!==void 0){if($===401)return"unauthorized";if($===403)return"forbidden";if($===404)return"not_found";if($===413)return"payload_too_large";if($>=500)return"server_error"}let U=e8D(D).toLowerCase();if(/econnrefused|econnreset|enotfound|eai_again|fetch failed|failed to fetch|connect timeout|und_err/.test(U))return"network_error";if(/timed out|timeout|etimedout|aborted/.test(U))return"timeout";if(/invalid|must be|required|not allowed|malformed|validation/.test(U))return"validation_error";return"unknown"}function njD(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 O2(D){let $=Ak(D);return $==="network_error"||$==="timeout"}var JH=()=>{};function J2D(D){return new Promise(($)=>setTimeout($,D))}async function Ek(D){let $={data:null,error:null};for(let U=1;U<=vk;U++){if($=await D(),!$.error)return $;if(!O2($.error))return $;if(U<vk)await J2D(U2D[U-1]??1000)}return $}async function Tk(D){if(!D.silent)gD.warn($2D);let $=new YH;if(zS($))await qS({error:$,functionName:D.telemetryFunctionName,kind:"unhandled_error",status:0})}function Pk(D){if(O2(D))throw new YH;let $=D.message??"unknown error";throw Error(`Cannot check 2FA compliance: ${$}`)}var D2D="Cannot reach Capgo to verify 2FA compliance. Check your network connection and try again.",$2D="Could not verify 2FA compliance due to a network error. Continuing — Capgo will still enforce 2FA on this action if required.",vk=3,U2D,YH;var Sk=_(()=>{g$();pW();JH();U2D=[500,1000];YH=class YH extends Error{constructor(D=D2D){super(D);this.name="TwoFactorComplianceNetworkError"}}});function Y2D(D){return Object.values(WY).includes(D)}function XH(D){let $="",U="";if(typeof D==="string")$=D,U=D;else if(D&&typeof D==="object"){let J=D;$=String(J.error||J.code||J.errorCode||""),U=String(J.message||J.error||"")}if(Y2D($))return{isSecurityPolicyError:!0,errorCode:$,message:bk[$]||U};for(let[J,Y]of Object.entries(bk))if(U.includes(J))return{isSecurityPolicyError:!0,errorCode:J,message:Y};return{isSecurityPolicyError:!1,errorCode:$,message:U}}function Ck(D){let $=XH(D);if($.isSecurityPolicyError)return`
❌ Security Policy Error: ${$.errorCode}
${$.message}
`;return $.message||"An unknown error occurred"}var WY,bk;var kk=_(()=>{WY={ORG_REQUIRES_EXPIRING_KEY:"org_requires_expiring_key",EXPIRATION_REQUIRED:"expiration_required",EXPIRATION_EXCEEDS_MAX:"expiration_exceeds_max"},bk={[WY.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`,[WY.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`,[WY.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 uk from"node:fs";function X2D(){try{return uk.statSync("/.dockerenv"),!0}catch{return!1}}function Q2D(){try{return uk.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}function FH(){if(QH===void 0)QH=X2D()||Q2D();return QH}var QH;var _k=()=>{};import F2D from"node:fs";function I4(){if(WH===void 0)WH=W2D()||FH();return WH}var WH,W2D=()=>{try{return F2D.statSync("/run/.containerenv"),!0}catch{return!1}};var KH=_(()=>{_k()});import gk from"node:process";import K2D from"node:os";import ZH from"node:fs";var xk=()=>{if(gk.platform!=="linux")return!1;if(K2D.release().toLowerCase().includes("microsoft")){if(I4())return!1;return!0}try{if(ZH.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft"))return!I4()}catch{}if(ZH.existsSync("/proc/sys/fs/binfmt_misc/WSLInterop")||ZH.existsSync("/run/WSL"))return!I4();return!1},L$;var zH=_(()=>{KH();L$=gk.env.__IS_WSL_TEST__?xk:xk()});import fk from"node:process";import{Buffer as Z2D}from"node:buffer";import{promisify as z2D}from"node:util";import q2D from"node:child_process";var G2D,qH=()=>`${fk.env.SYSTEMROOT||fk.env.windir||String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`,I6=async(D,$={})=>{let{powerShellPath:U,...J}=$,Y=I6.encodeCommand(D);return G2D(U??qH(),[...I6.argumentsPrefix,Y],{encoding:"utf8",...J})};var GH=_(()=>{G2D=z2D(q2D.execFile);I6.argumentsPrefix=["-NoProfile","-NonInteractive","-ExecutionPolicy","Bypass","-EncodedCommand"];I6.encodeCommand=(D)=>Z2D.from(D,"utf16le").toString("base64");I6.escapeArgument=(D)=>`'${String(D).replaceAll("'","''")}'`});function yk(D){for(let $ of D.split(`
`)){if(/^\s*#/.test($))continue;let U=/^\s*root\s*=\s*(?<mountPoint>"[^"]*"|'[^']*'|[^#]*)/.exec($);if(!U)continue;return U.groups.mountPoint.trim().replaceAll(/^["']|["']$/g,"")}}import{promisify as V2D}from"node:util";import H2D from"node:child_process";import VH,{constants as mk}from"node:fs/promises";var I2D,B2D,w2D=async()=>{return`${await B2D()}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`},KY,hk,lk=async()=>{return hk??=(async()=>{try{let D=await KY();return await VH.access(D,mk.X_OK),!0}catch{return!1}})(),hk},ck=async()=>{let D=await KY(),$=String.raw`(Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice").ProgId`,{stdout:U}=await I6($,{powerShellPath:D});return U.trim()},dk=async(D)=>{if(/^[a-z]+:\/\//i.test(D))return D;try{let{stdout:$}=await I2D("wslpath",["-aw",D],{encoding:"utf8"});return $.trim()}catch{return D}};var ik=_(()=>{zH();GH();zH();I2D=V2D(H2D.execFile),B2D=(()=>{let $;return async function(){if($)return $;let U="/etc/wsl.conf",J=!1;try{await VH.access(U,mk.F_OK),J=!0}catch{}if(!J)return"/mnt/";let Y=await VH.readFile(U,{encoding:"utf8"}),X=yk(Y);if(X===void 0)return"/mnt/";return $=X,$=$.endsWith("/")?$:`${$}/`,$}})(),KY=L$?w2D:qH});function B4(D,$,U){let J=(Y)=>Object.defineProperty(D,$,{value:Y,enumerable:!0,writable:!0});return Object.defineProperty(D,$,{configurable:!0,enumerable:!0,get(){let Y=U();return J(Y),Y},set(Y){J(Y)}}),D}import{promisify as O2D}from"node:util";import j2D from"node:process";import{execFile as N2D}from"node:child_process";async function HH(){if(j2D.platform!=="darwin")throw Error("macOS only");let{stdout:D}=await L2D("defaults",["read","com.apple.LaunchServices/com.apple.launchservices.secure","LSHandlers"]),U=/LSHandlerRoleAll = "(?!-)(?<id>[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(D)?.groups.id??"com.apple.Safari";if(U==="com.apple.safari")return"com.apple.Safari";return U}var L2D;var pk=_(()=>{L2D=O2D(N2D)});import R2D from"node:process";import{promisify as M2D}from"node:util";import{execFile as A2D,execFileSync as uND}from"node:child_process";async function nk(D,{humanReadableOutput:$=!0,signal:U}={}){if(R2D.platform!=="darwin")throw Error("macOS only");let J=$?[]:["-ss"],Y={};if(U)Y.signal=U;let{stdout:X}=await v2D("osascript",["-e",D,J],Y);return X.trim()}var v2D;var rk=_(()=>{v2D=M2D(A2D)});async function IH(D){return nk(`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 ok=_(()=>{rk()});import{promisify as E2D}from"node:util";import{execFile as T2D}from"node:child_process";async function BH(D=P2D){let{stdout:$}=await D("reg",["QUERY"," HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice","/v","ProgId"]),U=/ProgId\s*REG_SZ\s*(?<id>\S+)/.exec($);if(!U)throw new ak(`Cannot find Windows browser in stdout: ${JSON.stringify($)}`);let{id:J}=U.groups,Y=J.lastIndexOf("."),X=J.lastIndexOf("-"),Q=Y===-1?void 0:J.slice(0,Y),F=X===-1?void 0:J.slice(0,X);return ZY[J]??ZY[Q]??ZY[F]??{name:J,id:J}}var P2D,ZY,zY,ak;var wH=_(()=>{P2D=E2D(T2D),ZY={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"}},zY=new Map(Object.entries(ZY));ak=class ak extends Error{}});import{promisify as S2D}from"node:util";import OH from"node:process";import{execFile as b2D}from"node:child_process";async function jH(){if(OH.platform==="darwin"){let D=await HH();return{name:await IH(D),id:D}}if(OH.platform==="linux"){let{stdout:D}=await C2D("xdg-mime",["query","default","x-scheme-handler/http"]),$=D.trim();return{name:k2D($.replace(/.desktop$/,"").replace("-"," ")),id:$}}if(OH.platform==="win32")return BH();throw Error("Only macOS, Linux, and Windows are supported")}var C2D,k2D=(D)=>D.toLowerCase().replaceAll(/(?:^|\s|-)\S/g,($)=>$.toUpperCase());var tk=_(()=>{pk();ok();wH();wH();C2D=S2D(b2D)});import NH from"node:process";var u2D,sk;var ek=_(()=>{u2D=Boolean(NH.env.SSH_CONNECTION||NH.env.SSH_CLIENT||NH.env.SSH_TTY),sk=u2D});var Xu={};S0(Xu,{openApp:()=>h2D,default:()=>m2D,apps:()=>w4});import LH from"node:process";import Yu from"node:path";import{fileURLToPath as _2D}from"node:url";import x2D from"node:child_process";import g2D,{constants as f2D}from"node:fs/promises";function Ju(D){if(typeof D==="string"||Array.isArray(D))return D;let{[$u]:$}=D;if(!$)throw Error(`${$u} is not supported`);return $}function p5({[j2]:D},{wsl:$}={}){if($&&L$)return Ju($);if(!D)throw Error(`${j2} is not supported`);return Ju(D)}var qY,RH,Du,j2,$u,Uu=async(D,$)=>{if(D.length===0)return;let U=[];for(let J of D)try{return await $(J)}catch(Y){U.push(Y)}throw AggregateError(U,"Failed to open in all supported apps")},i5=async(D)=>{D={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...D};let $=D[qY]===!0;if(delete D[qY],Array.isArray(D.app))return Uu(D.app,(K)=>i5({...D,app:K,[qY]:!0}));let{name:U,arguments:J=[]}=D.app??{};if(J=[...J],Array.isArray(U))return Uu(U,(K)=>i5({...D,app:{name:K,arguments:J},[qY]:!0}));if(U==="browser"||U==="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"},Z={chrome:"--incognito",brave:"--incognito",firefox:"--private-window",edge:"--inPrivate"},z;if(L$){let q=await ck();z=zY.get(q)??{}}else z=await jH();if(z.id in K){let q=K[z.id.toLowerCase()];if(U==="browserPrivate"){if(q==="safari")throw Error("Safari doesn't support opening in private mode via command line");J.push(Z[q])}return i5({...D,app:{name:w4[q],arguments:J}})}throw Error(`${z.name} is not supported as a default browser`)}let Y,X=[],Q={},F=!1;if(L$&&!I4()&&!sk&&!U)F=await lk();if(j2==="darwin"){if(Y="open",D.wait)X.push("--wait-apps");if(D.background)X.push("--background");if(D.newInstance)X.push("--new");if(U)X.push("-a",U)}else if(j2==="win32"||F){if(Y=await KY(),X.push(...I6.argumentsPrefix),!L$)Q.windowsVerbatimArguments=!0;if(L$&&D.target)D.target=await dk(D.target);let K=["$ProgressPreference = 'SilentlyContinue';","Start"];if(D.wait)K.push("-Wait");if(U){if(K.push(I6.escapeArgument(U)),D.target)J.push(D.target)}else if(D.target)K.push(I6.escapeArgument(D.target));if(J.length>0)J=J.map((Z)=>I6.escapeArgument(Z)),K.push("-ArgumentList",J.join(","));if(D.target=I6.encodeCommand(K.join(" ")),!D.wait)Q.stdio="ignore"}else{if(U)Y=U;else{let K=!RH||RH==="/",Z=!1;try{await g2D.access(Du,f2D.X_OK),Z=!0}catch{}Y=LH.versions.electron??(j2==="android"||K||!Z)?"xdg-open":Du}if(J.length>0)X.push(...J);if(!D.wait)Q.stdio="ignore",Q.detached=!0}if(j2==="darwin"&&J.length>0)X.push("--args",...J);if(D.target)X.push(D.target);let W=x2D.spawn(Y,X,Q);if(D.wait)return new Promise((K,Z)=>{W.once("error",Z),W.once("close",(z)=>{if(!D.allowNonzeroExitCode&&z!==0){Z(Error(`Exited with code ${z}`));return}K(W)})});if($)return new Promise((K,Z)=>{W.once("error",Z),W.once("spawn",()=>{W.once("close",(z)=>{if(W.off("error",Z),z!==0){Z(Error(`Exited with code ${z}`));return}W.unref(),K(W)})})});return W.unref(),new Promise((K,Z)=>{W.once("error",Z),W.once("spawn",()=>{W.off("error",Z),K(W)})})},y2D=(D,$)=>{if(typeof D!=="string")throw TypeError("Expected a `target`");return i5({...$,target:D})},h2D=(D,$)=>{if(typeof D!=="string"&&!Array.isArray(D))throw TypeError("Expected a valid `name`");let{arguments:U=[]}=$??{};if(U!==void 0&&U!==null&&!Array.isArray(U))throw TypeError("Expected `appArguments` as Array type");return i5({...$,app:{name:D,arguments:U}})},w4,m2D;var Qu=_(()=>{ik();GH();tk();KH();ek();qY=Symbol("fallbackAttempt"),RH=import.meta.url?Yu.dirname(_2D(import.meta.url)):"",Du=Yu.join(RH,"xdg-open"),{platform:j2,arch:$u}=LH;w4={browser:"browser",browserPrivate:"browserPrivate"};B4(w4,"chrome",()=>p5({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"]}}));B4(w4,"brave",()=>p5({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"]}}));B4(w4,"firefox",()=>p5({darwin:"firefox",win32:String.raw`C:\Program Files\Mozilla Firefox\firefox.exe`,linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}));B4(w4,"edge",()=>p5({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}));B4(w4,"safari",()=>p5({darwin:"Safari"}));m2D=y2D});import{spawn as l2D}from"node:child_process";import{existsSync as GD,readdirSync as R2,readFileSync as K0,statSync as c2D}from"node:fs";import{homedir as Gu,platform as Vu}from"node:os";import N4,{dirname as R$,join as OD,relative as Hu,resolve as oD,sep as Iu}from"node:path";import{cwd as j0,env as j4,stdin as Bu,stdout as wu}from"node:process";function GY(D,$){let U=NA();if(U)U[D]($);else gD[D]($)}function ju(D=""){if(!D)return wY;return`${wY}${D.startsWith("/")?D:`/${D}`}`}function fLD(D){let $=a2D.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 hLD(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 C0(D){if(!D)return"Unknown error";if(XH(D).isSecurityPolicyError)return Ck(D);let U=D;if(typeof D==="string")return D;if(D instanceof Error){let J=U.message||U.cause?.message||U.stack||D.name,Y=U.cause?.name,X=J.toLowerCase();if(X.includes("fetch failed")||X.includes("failed to fetch")||X.includes("connect timeout")||X.includes("network")||Y?.startsWith("UND_ERR"))return`Network error: ${J}${U.code?` (code ${U.code})`:""}. Check your network connection and API endpoint availability.`;let Q=U.status||U.statusCode;return[J,U.code?`Code: ${U.code}`:void 0,Q?`Status: ${Q}`:void 0].filter(Boolean).join(" | ")||D.name}if(U.message){let J=[U.message,U.code?`Code: ${U.code}`:void 0,U.status||U.statusCode?`Status: ${U.status||U.statusCode}`:void 0].filter(Boolean).join(" | "),Y=U.message.toLowerCase();if(Y.includes("fetch failed")||Y.includes("failed to fetch")||U.error==="Failed to fetch")return`Network error: ${J}. Check your network connection and API endpoint availability.`;if(U.details||U.hint||U.error)return`${J}${J?" | ":""}${U.error?typeof U.error==="string"?U.error:U.error.message??"":""}${U.details?`Details: ${U.details}`:""}${U.hint?`Hint: ${U.hint}`:""}`.trim();return J}if(typeof U.error==="string"&&U.error.length>0)return U.error;if(U.error&&typeof U.error==="object"&&typeof U.error.message==="string"&&U.error.message.length>0)return U.error.message;return`
${Ou.default.render(D)}`}async function lLD(D,$,U=!1){let{data:J,error:Y}=await Ek(()=>D.rpc("reject_access_due_to_2fa_for_org",{org_id:$}));if(Y){if(!U&&!O2(Y))n.error(`Cannot check 2FA compliance: ${Y.message}`);if(O2(Y)){await Tk({silent:U,telemetryFunctionName:"check2FAAccessForOrg"});return}Pk(Y)}if(J){if(!U)n.error(`\uD83D\uDD10 Access Denied: 2FA Required. Enable 2FA at ${ju("/settings/account")}`);throw Error("2FA required for this organization")}}function cLD({silent:D=!1,stdinIsTTY:$=!!Bu.isTTY,stdoutIsTTY:U=!!wu.isTTY,ci:J=SH.isCI}={}){return!D&&$&&U&&!J}function t2D(D={}){let $=D.ci??SH.isCI,U=D.stdinIsTTY??!!Bu.isTTY,J=D.stdoutIsTTY??!!wu.isTTY,Y=D.platform??Vu(),X="display"in D?D.display:j4.DISPLAY;if($||!U||!J)return!1;if(Y==="linux"&&!X)return!1;return!0}async function s2D(D){if(!t2D())return;try{await(await Promise.resolve().then(() => (Qu(),Xu))).default(D)}catch($){if($?.code==="ENOENT")return}}function dLD(D){return bW(D)||CW(D)}function M$(D){if(bW(D))return rP(D);else if(CW(D))return oP(D);return D}function Nu(D=M$(j0()),$=void 0){let U=$?.split(",")[0],J=U??OD(D,F6);if(!GD(J)){let X=U?`Package.json at ${J} does not exist`:`No package.json found at ${J}. 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 n.error(X),Error(X)}let Y=K0(J);return JSON.parse(Y)}function iLD(D=M$(j0()),$=void 0){return Nu(D,$).scripts}function pLD(D=M$(j0()),$=void 0){return Nu(D,$).version??""}function e2D(D){let $=D.replace("^","").replace("~","");if(e2($))try{let U=x6($);return rX(U)}catch{return $}return $}async function nLD(D,$=j0(),U){let J=U?U.split(",").map((Q)=>Q.trim()).filter(Boolean):[],Y=[],X=(Q)=>{let F=oD(Q);if(!Y.includes(F))Y.push(F)};for(let Q of J){let F=oD($,Q);if(GD(F))X(R$(F))}X(oD($)),X(j0());for(let Q of Y)try{let F=`${D}/package.json`,{createRequire:W}=await import("node:module"),Z=W(OD(Q,"package.json")).resolve(F),z=JSON.parse(K0(Z,"utf-8"));if(z.version)return z.version}catch{}for(let Q of Y){let F=Q,W=N4.parse(F).root;while(F!==W){let K=OD(F,"node_modules",D,F6);if(GD(K))try{let z=JSON.parse(K0(K,"utf-8"));if(z.version)return z.version}catch{}let Z=R$(F);if(Z===F)break;F=Z}}if(D==="@capgo/capacitor-updater"){let Q=null,F=OD($,"ios","App","Podfile");if(GD(F))try{let K=K0(F,"utf-8").match(/pod\s+['"]CapgoCapacitorUpdater['"],\s*:path\s*=>\s*['"]([^'"]+)['"]/);if(K?.[1])Q=oD(OD($,"ios","App",K[1]))}catch{}if(!Q){let W=OD($,"android","capacitor.settings.gradle");if(GD(W))try{let Z=K0(W,"utf-8").match(/project\(':capgo-capacitor-updater'\)\.projectDir\s*=\s*new\s+File\(['"]([^'"]+)['"]/);if(Z?.[1])Q=oD(OD($,"android",Z[1])).replace(/\/android$/,"")}catch{}}if(Q){let W=OD(Q,F6);if(GD(W))try{let K=JSON.parse(K0(W,"utf-8"));if(K.version)return K.version}catch{}}}try{let Q=U?U.split(",").map((K)=>K.trim()).filter(Boolean).join(","):U,W=(await NY($,Q)).get(D);if(W)return W}catch{}return null}async function NY(D=M$(j0()),$=void 0){let U=$?.split(",").map((X)=>X.trim()).filter(Boolean);if(U??=[OD(D,F6)],U){for(let X of U)if(!GD(X)){let Q=`Package.json at ${X} does not exist`;throw n.error(Q),Error(Q)}}let J=new Map,{createRequire:Y}=await import("node:module");for(let X of U){let Q=K0(X),F=JSON.parse(Q),W=R$(X),K=(Z,z)=>{try{let I=Y(OD(W,"package.json")).resolve(`${Z}/package.json`),H=JSON.parse(K0(I,"utf-8"));if(H.version)return H.version}catch{}let q=W,G=N4.parse(q).root;while(q!==G){let V=OD(q,"node_modules",Z,F6);if(GD(V))try{let H=JSON.parse(K0(V,"utf-8"));if(H.version)return H.version}catch{}let I=R$(q);if(I===q)break;q=I}return e2D(z)};for(let Z in F.dependencies)J.set(Z,K(Z,F.dependencies[Z]));for(let Z in F.devDependencies)J.set(Z,K(Z,F.devDependencies[Z]))}return J}async function D9D(D=M$(j0()),$=void 0){let U=$?.split(",").map((Y)=>Y.trim()).filter(Boolean);if(U??=[OD(D,F6)],U){for(let Y of U)if(!GD(Y)){let X=`Package.json at ${Y} does not exist`;throw n.error(X),Error(X)}}let J=new Map;for(let Y of U){let X=K0(Y),Q=JSON.parse(X);for(let F in Q.dependencies??{})if(typeof Q.dependencies[F]==="string")J.set(F,Q.dependencies[F]);for(let F in Q.devDependencies??{})if(typeof Q.devDependencies[F]==="string")J.set(F,Q.devDependencies[F])}return J}function $9D(D){if(!D)return!1;if(D.config&&Object.keys(D.config).length>0)return!0;return!!D.path&&GD(D.path)}async function Lu(D,$=!1){try{let J=await D();if(!$9D(J)){if(!$)n.error("No capacitor config file found, run `cap init` first");throw new uD("No capacitor config file found, run `cap init` first")}return J}catch(J){if(J instanceof uD)throw J;let Y=C0(J);if(!$)n.error(`No capacitor config file found, run \`cap init\` first: ${Y}`);throw new uD("No capacitor config file found, run `cap init` first",{cause:Y})}}function PF(D=!1){return Lu(hW,D)}function U9D(D=!1){return Lu(mW,D)}async function J9D(D,$){let U=await U9D();if(U?.config)U.config.plugins??={},U.config.plugins.extConfig??={},U.config.plugins[D]??={},U.config.plugins[D]={...U.config.plugins[D],...$},await lW(D,U);return U}async function rLD(D){return J9D("CapacitorUpdater",D)}async function r1(D=!1){try{let $=await PF(D),U={host:$?.config?.plugins?.CapacitorUpdater?.localHost||Fu,hostWeb:$?.config?.plugins?.CapacitorUpdater?.localWebHost||wY,hostFilesApi:$?.config?.plugins?.CapacitorUpdater?.localApiFiles||Wu,hostApi:$?.config?.plugins?.CapacitorUpdater?.localApi||BY};if($?.config?.plugins?.CapacitorUpdater?.localSupa&&$?.config?.plugins?.CapacitorUpdater?.localSupaAnon){if(!D)n.info("Using custom supabase instance from capacitor.config.json");U.supaKey=$?.config?.plugins?.CapacitorUpdater?.localSupaAnon,U.supaHost=$?.config?.plugins?.CapacitorUpdater?.localSupa}return U}catch{return{host:Fu,hostWeb:wY,hostFilesApi:Wu,hostApi:BY}}}function Zu(D){return typeof D==="object"&&D!==null}function Y9D(D){if(!Zu(D))return!1;let $=D.capacitor;if(Zu($)&&($.ios!==void 0||$.android!==void 0))return!0;return!1}function X9D(D){if(GD(OD(D,"plugin.xml")))return!0;let $=OD(D,F6);if(!GD($))return!1;try{return Y9D(JSON.parse(K0($,"utf-8")))}catch{return!1}}async function r5(D=!1,$){let U=(Y)=>{let X={...Y};return UA(X,void 0,D),X};if(!$&&MH)return U(MH);if(!$&&VY)return VY.then(U);let J=(async()=>{let Y=await r1(D);try{let X=Au(),Q=await fetch(`${Y.hostApi}/private/config`,{...$?{signal:$}:{},headers:r6(X?{capgkey:X}:void 0)});if(!Q.ok)throw Error(`HTTP error! status: ${Q.status}`);let W={...await Q.json(),...Y};if(!$)MH=W;return{...W}}catch{if(!D)n.info(`Local config ${C0(Y)}`);return{...Y}}finally{if(!$)VY=null}})();if(!$)VY=J;return J.then(U)}async function oLD(){let D=await r1();try{let $=Au(),U=await fetch(`${D.hostFilesApi}/files/config`,{headers:r6($?{capgkey:$}:void 0)});if(!U.ok)throw Error(`HTTP error! status: ${U.status}`);return await U.json()}catch{return{partialUpload:!1,TUSUpload:!1,partialUploadForced:!1,TUSUploadForced:!1,maxUploadLength:n2D,maxChunkSize:r2D,alertUploadSize:p2D}}}function L2(D){let $=new URL(D);if(!["http:","https:"].includes($.protocol))throw Error("Invalid Supabase host protocol");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 U=$1($.pathname);return`${$.origin}${U}`}function Q9D(D){if(!D||typeof D!=="object")return"";let $=D;return[$.error,$.message,$.status].filter(Boolean).join(" | ")}function zu(D,$){let U=D.indexOf($);if(U<0)return D;return D.slice(U+$.length).replace(/^:\s*/,"").split(`
`)[0].trim()}async function aLD(D){let $=await Mu(D);if($?.error==="channel_zip_required"||$?.error==="channel_delta_required")return $.message||$.error;let U=D instanceof Error?D.message:String(D??"");if(U.includes("CHANNEL_ZIP_REQUIRED"))return zu(U,"CHANNEL_ZIP_REQUIRED");if(U.includes("CHANNEL_DELTA_REQUIRED"))return zu(U,"CHANNEL_DELTA_REQUIRED");return null}function n5(D){if(!D)return!1;try{let $=new URL(L2(D)).hostname.toLowerCase();return $==="sb.capgo.app"||$==="xvwzpoazmxkqosrdewyv.supabase.co"||$==="ibwjdnhknbkcqfbabwei.supabase.co"||$==="aucsybvnhavogdmzwtcw.supabase.co"}catch{return!1}}function F9D(D){if(D.supaHost&&D.supaKey&&D.hostApi===BY&&!n5(D.supaHost))return`${L2(D.supaHost)}/functions/v1`;return D.hostApi}function tLD(D){let $=D?.context;return typeof $?.status==="number"?$.status:void 0}async function Mu(D){let $=D?.context;if(!$||typeof $.clone!=="function")return null;try{let U=await $.clone().text();try{return JSON.parse(U)}catch{return U?{message:U}:null}}catch{return null}}async function sLD(D){let $=await Mu(D);if($){let U=Q9D($);if(U)return U}return C0(D)}async function LY(D,$){let U=($.method??"POST").toUpperCase(),J,Y=$.supaAnon;if($.supaHost&&$.supaAnon&&!n5($.supaHost))J=`${L2($.supaHost)}/functions/v1`;else{let F=await r5(!0);if(Y=$.supaAnon??F.supaKey,F.supaHost&&F.supaKey&&F.hostApi===BY&&!n5(F.supaHost)&&!($.supaHost&&n5($.supaHost)))J=`${L2(F.supaHost)}/functions/v1`;else if($.useFilesHost)J=F.hostFilesApi;else J=F.hostApi}let X=J.includes("/functions/v1"),Q=`${$1(J)}/${D.replace(/^\//,"")}`;try{let F=await fetch(Q,{method:U,headers:r6({"Content-Type":"application/json",Authorization:X&&Y?`Bearer ${Y}`:$.apikey,capgkey:$.apikey}),body:U==="GET"||U==="HEAD"?void 0:typeof $.body==="string"?$.body:JSON.stringify($.body??{}),signal:$.signal});if(!F.ok)return{data:null,error:new v6.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 eLD(D,$=!0){if(D?.supaHost&&D?.supaAnon){if(n5(D.supaHost))return(await r1($)).hostApi;return`${L2(D.supaHost)}/functions/v1`}let U=await r1($);if(U.supaHost&&U.supaKey)return F9D(U);return(await r5($)).hostApi}async function DRD(D,$,U,J=!1,Y=!0,X){let Q=await r5(J,X);if($&&U){if(!J)n.info("Using custom supabase instance from provided options");Q.supaHost=$,Q.supaKey=U}if(!Q.supaHost||!Q.supaKey)throw n.error(Ku),new uD(Ku,{missingSupaHost:!Q.supaHost,missingSupaKey:!Q.supaKey});let F=L2(Q.supaHost);return eO(F,Q.supaKey,{auth:{persistSession:!1},global:{headers:{capgkey:MX("capgkey",D)},...sM()&&Y?{fetch:DA()}:{}}})}async function W9D(D,$){let{data:U}=await D.rpc("is_paying_org",{orgid:$}).single();return U||!1}async function K9D(D,$){let{data:U}=await D.rpc("is_trial_org",{orgid:$}).single();return U||0}async function Z9D(D,$,U){let{data:J}=await D.rpc("has_usage_credits_org",U?{orgid:$,appid:U}:{orgid:$}).single();return J||!1}function z9D(D){let{trialDays:$,isPaying:U,hasCredits:J,warning:Y=!0}=D;return!!Y&&$>0&&!U&&!J}async function q9D(D,$){let{data:U,error:J}=await D.rpc("is_allowed_action_org",{orgid:$}).single();if(J)throw Error(`Cannot validate plan: ${C0(J)}`);return U===!0}async function AH(D,$,U,J){let{data:Y,error:X}=J?await D.rpc("is_allowed_action_org_action",{orgid:$,actions:U,appid:J}):await D.rpc("is_allowed_action_org_action",{orgid:$,actions:U});if(X){if(J&&X.code==="PGRST202")return q9D(D,$);throw Error(`Cannot validate plan: ${C0(X)}`)}return Y===!0}async function G9D(D,$,U,J){if(J){if(await AH(D,$,U,J))return"allowed";if(await AH(D,$,U))return"permission_denied";return"billing_denied"}return await AH(D,$,U)?"allowed":"billing_denied"}async function V9D(D,$){throw n.error(`You need to upgrade your plan to continue to use capgo.
Upgrade here: ${D}
`),await s2D(D),new uD($)}async function H9D(){throw n.error("Cannot validate plan usage for this app. The API key may lack permission to read app billing details."),new uD("Plan validation permission denied")}async function $RD(D,$,U){let{data:J,error:Y}=await D.rpc("get_organization_cli_warnings",{orgid:$,cli_version:U});if(Y){n.error(`Cannot get cli warnings: ${C0(Y)}`);return}if(J.length>0){n.warn(`Found ${J.length} cli warnings for your organization.`);let X=null;for(let Q of J){if(typeof Q!=="object"||typeof Q.message!=="string"||typeof Q.fatal!=="boolean"){n.error(`Invalid cli warning: ${Q}`);continue}let F=Q;if(F.fatal)n.error(`${F.message.replaceAll("\\n",`
`)}`),X=Error(F.message);else n.warn(`${F.message.replaceAll("\\n",`
`)}`)}if(X)throw n.error("Please fix the warnings and try again."),X;n.info("End of cli warnings.")}}async function URD(D,$,U,J=!0){let Y=await r5(),X=`${Y.hostWeb}/settings/organization/plans`,Q=await G9D(D,$,["storage"],U);if(Q==="permission_denied")await H9D();if(Q==="billing_denied")await V9D(X,"Plan upgrade required for upload");let[F,W,K]=await Promise.all([K9D(D,$),W9D(D,$),Z9D(D,$,U)]);if(z9D({trialDays:F,isPaying:W,hasCredits:K,warning:J}))n.warn(`WARNING !!
Trial expires in ${F} days, upgrade here: ${Y.hostWeb}/settings/organization/plans
`)}function OY(D){try{if(!GD(D))return;return K0(D,"utf8").trim()||void 0}catch{return}}function Au(){let D=j4.CAPGO_TOKEN?.trim();if(D)return D;let $=OY(`${Gu()}/.capgo`);if($)return $;return OY(".capgo")}function BA(D=!1,$=(U)=>n.info(U)){let U=j4.CAPGO_TOKEN?.trim();if(U){if(!D)$("Use CAPGO_TOKEN environment variable");return U}let Y=`${Gu()}/.capgo`,X=OY(Y);if(X){if(!D)$(`Use global API key ${Y}`)}else if(Y=".capgo",X=OY(Y),X&&!D)$(`Use local API key ${Y}`);if(!X){let F=`No Capgo API key found. Run \`${GS()}\` first, then retry this command.`;throw n.error(F),new uD(F)}return X}async function*bH(D){let $=await R2(D,{withFileTypes:!0});for(let U of $){let J=oD(D,U.name);if(U.isDirectory()&&!U.name.startsWith(".")&&!U.name.startsWith("node_modules")&&!U.name.startsWith("dist"))yield*bH(J);else yield J}}function JRD(D){let U=(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"}[U]||"application/octet-stream"}function z1(D,$){return`${D}-${$?"ts":"js"}`}function q1(D,$){if(!$)n.info(`Found ${D} project`)}function I9D(D){if(GD(oD(D,"angular.json")))return"angular";if(GD(oD(D,"nuxt.config.js"))||GD(oD(D,"nuxt.config.ts")))return"nuxtjs";if(GD(oD(D,"next.config.js"))||GD(oD(D,"next.config.mjs"))||GD(oD(D,"next.config.ts")))return"nextjs";if(GD(oD(D,"svelte.config.js"))||GD(oD(D,"svelte.config.ts")))return"sveltekit";if(GD(oD(D,"vue.config.js"))||GD(oD(D,"vue.config.ts")))return"vue"}function vu(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 B9D(D,$){let U=GD(oD(D,"tsconfig.json")),J=I9D(D);if(J)return q1(J,$),z1(J,U);let Y=oD(D,F6);if(!GD(Y))return;let X=await NY(void 0,Y),Q=vu(X);if(!Q)return;return q1(Q,$),z1(Q,U)}function vH(D,$){if(!$)return;let U=oD($);if(!D.includes(U))D.push(U)}function w9D(D){let $=D,U=N4.parse($).root;while(!0){if(GD(oD($,F6)))return $;if($===U)return;let J=R$($);if(J===$)return;$=J}}function O9D(D){let $=[],U=D?.split(",").map((J)=>J.trim()).filter(Boolean)[0];if(U)vH($,R$(oD(U)));return vH($,w9D(j0())),vH($,M$(j0())),$}async function YRD(D){let $=j0(),U=!1,J=D?.quiet??!1;for(let X of O9D(D?.packageJsonPath)){let Q=await B9D(X,J);if(Q)return Q}let Y=oD($,"tsconfig.json");if(GD(Y))U=!0;for await(let X of bH($)){if(X.includes("angular.json"))return q1("angular",J),z1("angular",U);if(X.includes("nuxt.config.js")||X.includes("nuxt.config.ts"))return q1("nuxtjs",J),z1("nuxtjs",U);if(X.includes("next.config.js")||X.includes("next.config.mjs")||X.includes("next.config.ts"))return q1("nextjs",J),z1("nextjs",U);if(X.includes("svelte.config.js")||X.includes("svelte.config.ts"))return q1("sveltekit",J),z1("sveltekit",U);if(X.includes("vue.config.js")||X.includes("vue.config.ts"))return q1("vue",J),z1("vue",U);if(X.includes(F6)){let Q=R$(X),F=await NY(Q),W=vu(F);if(W)return q1(W,J),z1(W,U)}}return"unknown"}function XRD(D,$,U=j0()){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 J=$?"src/main.tsx":"src/main.js",Y=$?"src/index.tsx":"src/index.js";if(GD(oD(U,J)))return J;return Y}return null}async function QRD(D){let $=D.replace(/-(?:ts|js)$/,"");if($==="angular")return n.info("Angular project detected"),"build";if($==="nuxtjs")return n.info("Nuxtjs project detected"),"generate";if($==="nextjs"){if(n.info("Nextjs project detected"),n.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"),n.warn("Please make sure you have the output: 'export' and distDir: 'dist' in your next.config.js"),!await m4({message:"Do you want to continue?"}))throw n.error("Build command selection aborted by user"),Error("Build command selection aborted by user");return"build"}if($==="sveltekit"){if(n.info("Sveltekit project detected"),n.warn("Please make sure you have the adapter-static installed: https://kit.svelte.dev/docs/adapter-static"),n.warn("Please make sure you have the pages: 'dist' and assets: 'dest', in your svelte.config.js adapter"),!await m4({message:"Do you want to continue?"}))throw n.error("Build command selection aborted by user"),Error("Build command selection aborted by user");return"build"}return"build"}async function FRD(D=!1,$=j0()){let U=/(main|index)\.(ts|tsx|js|jsx)$/,J="",Y=oD($),X=Y.split("/").length;for await(let Q of bH(Y))if(Q.split("/").length-X<=2&&U.test(Q)){if(J=Q,!D)n.info(`Found main file here ${Q}`);break}return J}async function WRD(D,$){return D.from("app_versions").upsert($,{onConflict:"name,app_id"}).eq("app_id",$.app_id).eq("name",$.name)}async function KRD(D,$,U,J){let Y={app_id:$,name:U,version:0};try{let X=await LY("files/upload_link",{apikey:D,body:Y,useFilesHost:!0,supaHost:J?.supaHost,supaAnon:J?.supaAnon});if(X.error){if(X.error instanceof v6.FunctionsHttpError){let Q=await X.error.context.json().catch(()=>({}));n.error(`Upload URL error: ${Q.status||JSON.stringify(Q)}`)}else n.error(`Cannot get upload url: ${X.error.message}`);return""}return X.data?.url??""}catch(X){n.error(`Cannot get upload url ${C0(X)}`)}return""}async function*Eu(D){let $=R2(D,{withFileTypes:!0});for(let U of $){let J=OD(D,U.name);if(U.isDirectory())yield*Eu(J);else yield J}}function GRD(D,$="5.10.0",U="6.25.0",J="7.25.0"){if(D.major===5&&v1(D,x6($)))return!0;if(D.major===6&&v1(D,x6(U)))return!0;if(D.major===7&&v1(D,x6(J)))return!0;return!1}async function VRD(D){let $=[],U=[".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 J of Eu(D)){if(U.some((F)=>J.includes(F))){n.info(`Ignoring file ${J}, please ensure you have only required files in your dist folder`);continue}let Y=K0(J);if(Y.length===0){n.info(`Ignoring empty file ${J}, please ensure you have only required files in your dist folder`);continue}let X=await tP(Y,"sha256"),Q=Hu(D,J);if(Q.startsWith("/"))Q=Q.substring(1);$.push({file:Q,hash:X})}return $}async function HRD(D){if(Vu()==="win32")return N9D(D);else return j9D(D)}function j9D(D){let $=new PH.default;return $.addLocalFolder(D),$.toBuffer()}async function N9D(D){n.info("Zipping file windows mode");let $=new PH.default,U=(J,Y)=>{let X=R2(J);for(let Q of X){let F=OD(J,Q),W=c2D(F);if(W.isFile()){let K=K0(F);$.addFile(OD(Y,Q).split(Iu).join("/"),K)}else if(W.isDirectory())U(F,OD(Y,Q))}};return U(D,""),$.toBuffer()}function L9D(D){let $=TH();return`App ${D} does not exist, run first \`${$.runner} @capgo/cli app add ${D}\` to create it`}function R9D(D){let U=D?.originalResponse?.getBody?.(),J=D instanceof Error?D.message:String(D??"");return`${U??""} ${J}`.includes("app_not_found")}async function IRD(D,$,U,J,Y,X,Q,F){return new Promise((W,K)=>{E8(D,{channel:"app",event:"App TUS upload",org_id:U,tracking_version:2,tags:{"app-id":J}}),new jY.Upload($,{endpoint:`${Q.hostFilesApi}/files/upload/attachments/`,chunkSize:F,retryDelays:[...o2D],metadataForPartialUploads:{filename:`orgs/${U}/apps/${J}/${Y}.zip`,filetype:"application/gzip"},metadata:{filename:`orgs/${U}/apps/${J}/${Y}.zip`,filetype:"application/zip"},headers:r6({Authorization:D}),onError(z){if(n.error(`Error uploading bundle: ${z.message}`),R9D(z)){K(Error(L9D(J)));return}if(z instanceof jY.DetailedError){let q=z.originalResponse?.getBody(),G=z.originalResponse?.getStatus(),V=z.originalRequest?.getURL(),I=(()=>{try{let H=JSON.parse(q||'{"error": "unknown error"}');return H.status||H.error||H.message||"unknown error"}catch{return q||z.message}})();K(Error(`TUS upload failed (status ${G??"unknown"}, url ${V??"unknown"}): ${I}`))}else K(Error(`TUS upload failed: ${z.message||z.toString()}`))},onProgress(z,q){let G=(z/q*100).toFixed(2);X.message(`Uploaded ${G}%`)},async onSuccess(){await E8(D,{channel:"app",event:"App TUS done",org_id:U,tracking_version:2,tags:{"app-id":J}}).catch(),W(!0)}}).start()})}async function BRD(D,$,U,J){let X=await LY("private/delete_failed_version",{apikey:D,method:"DELETE",body:{app_id:$,name:U},supaHost:J?.supaHost,supaAnon:J?.supaAnon});if(X.error){if(X.error instanceof v6.FunctionsHttpError){let Q=await X.error.context.json().catch(()=>({}));throw Error(Q.status||Q.message||JSON.stringify(Q))}throw Error(X.error.message)}}async function wRD(D,$,U,J,Y){let Q=await LY("private/set_manifest",{apikey:D,body:{app_id:$,name:U,manifest:J},supaHost:Y?.supaHost,supaAnon:Y?.supaAnon});if(Q.error){if(Q.error instanceof v6.FunctionsHttpError){let F=await Q.error.context.json().catch(()=>({}));throw Error(F.error||F.status||F.message||JSON.stringify(F))}throw Error(Q.error.message)}}async function ORD(D,$){if(!$.app_id||!$.name||!$.created_by)return n.error("missing app_id, name, or created_by"),Promise.reject(Error("missing app_id, name, or created_by"));let{data:U,error:J}=await D.from("channels").select().eq("app_id",$.app_id).eq("name",$.name).single();if(U&&!J)return D.from("channels").update($).eq("app_id",$.app_id).eq("name",$.name).select().single();return D.from("channels").insert($).select().single()}async function E8(D,$,U,J,Y,X){if((J5(j4.CAPGO_DISABLE_TELEMETRY)||J5(j4.CAPGO_DISABLE_POSTHOG))&&!$.notifyConsole)return;try{let F={};try{F=nM()}catch(G){if(U)n.error(`Failed to enrich event tags, sending caller tags only: ${C0(G)}`)}let W={...$,nonPersonTags:{...F,...$.nonPersonTags??{}}};if(U)n.info(`Get remove config: for ${$.event}`);let K=Y??(await r5(!0,J)).hostApi;if(U)n.info(`Sending analytics event: ${JSON.stringify(W)}`);let Z=new AbortController,z=setTimeout(()=>Z.abort(),1e4),q=J?typeof AbortSignal.any==="function"?AbortSignal.any([Z.signal,J]):J:Z.signal;try{let G=await fetch(`${$1(K)}/private/events`,{method:"POST",body:JSON.stringify(W),headers:r6({"Content-Type":"application/json",capgkey:D}),signal:q,redirect:X});if(clearTimeout(z),!G.ok)throw Error(`HTTP error! status: ${G.status}`);let V=await G.json();if(V.error&&U)n.error(`Failed to send analytics event: ${V.error}`)}finally{clearTimeout(z)}}catch(F){if(U)n.error("Failed to send Stats event details:"),n.error(C0(F))}}function M9D(D){if(n.error(`
\uD83D\uDD10 Access Denied: Two-Factor Authentication Required`),n.error("━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"),D)n.error(`
The organization "${D}" requires all members to have 2FA enabled.`);else n.error(`
This organization requires all members to have 2FA enabled.`);throw n.error(`
To regain access:`),n.error(` 1. Go to ${ju("/settings/account")}`),n.error(" 2. Enable Two-Factor Authentication on your account"),n.error(" 3. Try your command again"),n.error(`
For more information, visit: https://capgo.app/docs/webapp/2fa-enforcement/
`),Error("2FA required for this organization")}async function A9D(D,$,U,J){return(await Promise.all(U.map(async(X)=>{return await Tu(D,$,J,{orgId:X.gid})?X:null}))).filter((X)=>X!==null)}async function v9D(D,$,U){let{error:J,data:Y}=await D.rpc("get_orgs_v7");if(J)throw n.error("Cannot get the list of organizations - exiting"),n.error(C0(J)),Error("Cannot get the list of organizations");if(Y.length===0)throw n.error("Could not get organization please create an organization first"),Error("No organizations available");let X=await A9D(D,$,Y,U);if(X.length===0)throw n.error(`Could not find organization with permission: ${U}`),Error("Could not find organization with required permission");return{allOrganizations:Y,allowedOrganizations:X}}async function jRD(D,$,U){let{allOrganizations:J,allowedOrganizations:Y}=await v9D(D,$,U),X=Y.length>1?await Zw({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(A1(X))throw n.warn("Canceled organization selection, exiting"),new uD("Organization selection cancelled");let Q=X,F=J.find((W)=>W.gid===Q);if(F.enforcing_2fa&&!F["2fa_has_access"])M9D(F.name);return n.info(`Using the organization "${F.name}" as the app owner`),F}async function E9D(D,$,U=!1){let{data:J,error:Y}=await D.rpc("request_actor_user_id"),X=(J||"").toString();if(Y){if(!U)n.error(Y.message);throw Y}if(!X){if(!U)n.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 X}async function Tu(D,$,U,J={}){let{data:Y,error:X}=await D.rpc("cli_check_permission",{apikey:$,permission_key:U,org_id:J.orgId??null,app_id:J.appId??null,channel_id:J.channelId??null});if(X)throw n.error(`Cannot check permission ${U}`),n.error(C0(X)),Error(`Cannot check permission ${U}`);return!!Y}async function T9D(D,$,U,J={},Y={}){if(await Tu(D,$,U,J))return;let Q=Y.message||`Insufficient permissions for ${U}`;if(!Y.silent)n.error(Q);throw new uD(`Insufficient permissions for ${U}`,{permissionKey:U,...J})}async function NRD(D,$,U,J,Y,X){await E9D(D,$,X),await T9D(D,$,U,{orgId:J},{message:Y,silent:X})}async function wA(D,$,U){let{data:J,error:Y}=await LY(`app/${encodeURIComponent($)}`,{apikey:D,method:"GET",body:void 0,supaHost:U?.supaHost,supaAnon:U?.supaAnon});if(!J?.owner_org||Y){let X=C0(Y);throw n.error(`Cannot get organization id for app id ${$}: ${X}`),new uD("Cannot get organization id for app",{appId:$,cause:X})}return J.owner_org}function LRD(D){return new Date(D||"").toLocaleString()}function TH(){if(EH)return{pm:O4,command:N2,installCommand:`${O4} ${N2}`,runner:IY};let D=M$(j0());return O4=i2(D,"npm"),N2=v7(O4),EH=!0,IY=bB(D),{pm:O4,command:N2,installCommand:`${O4} ${N2}`,runner:IY}}function RRD(D){O4=D.pm,N2=D.command,IY=D.runner,EH=!0}function P9D(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 Pu(D){return R2(D,{withFileTypes:!0}).flatMap((J)=>{let Y=OD(D,J.name);if(J.isDirectory())return Pu(Y);else return Y.split(`node_modules${Iu}`)[1]||Y})}function Su(D){if(!GD(D))return[];try{return R2(D,{withFileTypes:!0}).flatMap((J)=>{let Y=OD(D,J.name);if(J.isDirectory())return Su(Y);else return Y})}catch{return[]}}function S9D(D,$){let U=[];if($==="ios"){try{let X=R2(D);for(let Q of X)if(Q.endsWith(".podspec"))U.push(OD(D,Q))}catch{}let J=OD(D,"Package.swift"),Y=OD(D,"ios","Package.swift");if(GD(J))U.push(J);if(GD(Y))U.push(Y)}else if($==="android"){let J=OD(D,"android"),Y=OD(J,"build.gradle"),X=OD(J,"build.gradle.kts");if(GD(Y))U.push(Y);if(GD(X))U.push(X)}return U}async function b9D(D){let $=OD(D,"ios"),U=OD(D,"android"),J=async(Q,F)=>{let W=GD(Q)?Su(Q).filter((G)=>Ru.test(G)):[],K=S9D(D,F),Z=[...W,...K].sort((G,V)=>G.localeCompare(V));if(Z.length===0)return;let{createHash:z}=await import("node:crypto"),q=z("sha256");for(let G of Z)try{let V=Hu(D,G);q.update(V);let I=K0(G);q.update(I)}catch{}return q.digest("hex")},[Y,X]=await Promise.all([J($,"ios"),J(U,"android")]);return{ios_checksum:Y,android_checksum:X}}function C9D(D){let $=[],U=D,J=N4.parse(U).root;while(!0){if($.push(OD(U,"node_modules")),U===J)break;let Y=R$(U);if(Y===U)break;U=Y}return $}async function k9D(D,$){let U=$?$.split(",").map((z)=>z.trim()).filter(Boolean):[],J;try{J=await NY("",D)}catch(z){throw n.error("Invalid package.json, JSON parsing failed"),n.error(`json parse error: ${C0(z)}`),z instanceof Error?z:Error("Invalid package.json")}let Y=D?D.split(",")[0].trim():void 0,X=!Y?M$(j0()):N4.resolve(Y).replace(F6,"");if(!J)throw n.error("Missing dependencies section in package.json"),Error("Missing dependencies section in package.json");for(let[z,q]of Object.entries(J))if(typeof q!=="string")throw n.error(`Invalid dependency ${z}: ${q}, expected string, got ${typeof q}`),Error(`Invalid dependency ${z}: expected string version`);let Q=U.length===0?C9D(j0()):U;if(!Q.some((z)=>GD(z))){let z=i2(X,"npm"),q=v7(z);throw n.error(`Missing node_modules folder at ${Q.join(", ")}, please run ${z} ${q}`),Error("Missing node_modules folder")}let W=!1,K=await D9D(M$(j0()),D),Z=await Promise.all(Array.from(J.entries()).map(async([z,q])=>{let G=!1,V=!1,I=q,H=K.get(z)??q,w;for(let N of Q){let A=OD(N,z);if(GD(A)){G=!0,w=A;try{let v=OD(A,F6);if(GD(v)){let k=JSON.parse(K0(v,"utf-8"));if(k.version)I=k.version}}catch{}if(!X9D(A))continue;try{if(Pu(A).some((k)=>Ru.test(k))){V=!0;break}}catch(v){throw n.error(`Error reading node_modules files for ${z} package in ${N}`),n.error(C0(v)),v instanceof Error?v:Error(`Error reading node_modules files for ${z}`)}}}if(!G){W=!0;let N=i2(X,"npm"),A=v7(N);return n.error(`Missing dependency ${z}, please run ${N} ${A}`),{name:z,version:I,requested_version:H}}let j,B;if(V&&w){let N=await b9D(w);j=N.ios_checksum,B=N.android_checksum}return{name:z,version:I,requested_version:H,native:V,ios_checksum:j,android_checksum:B}}));if(W||Z.some((z)=>z.native===void 0))throw n.error("Missing dependencies or invalid dependencies"),n.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 Z}async function MRD(D,$,U){let{data:J,error:Y}=await D.from("channels").select("version:app_versions!channels_version_fkey(checksum)").eq("name",U).eq("app_id",$).single(),X=J;if(Y||X===null||!X.version||!X.version.checksum)return null;return X.version.checksum}function qu(D){if(!D)throw n.error("Error parsing native packages, perhaps the metadata does not exist in Capgo?"),Error("Error parsing native packages");for(let U of D){let J=UH(Nk,U);if(!J.success){let Y=J.error.issues.map((X)=>`${(X.path??[]).join(".")}: ${X.message}`).join(", ");throw n.error(`Invalid remote native package data: ${Y}`),Error(`Invalid remote native package data: ${Y}`)}}return new Map(D.map((U)=>[U.name,U]))}async function bu(D,$,U){let{data:J,error:Y}=await D.from("channels").select(`version:app_versions!channels_version_fkey(
native_packages
)`).eq("name",U).eq("app_id",$).maybeSingle();if(Y){let Q=Y.code==="PGRST116"||Y.message?.includes("Cannot coerce")?`Multiple channels matched for app "${$}" and channel "${U}". Contact support if this persists.`:Y.message;throw n.error(`Error fetching native packages: ${Q}`),Error(`Error fetching native packages: ${Q}`)}if(!J)return qu([]);return qu(J.version?.native_packages??[])}function OA(D,$){return D||$?.plugins?.CapacitorUpdater?.appId||$?.appId}function u9D(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 U=!1;try{let z=c7(D.localVersion),q=c7(D.remoteVersion);U=vw(z,q)}catch{U=!1}if(!U)$.push("version_mismatch");if(D.localRequestedVersion&&D.remoteRequestedVersion&&D.localRequestedVersion.trim()!==D.remoteRequestedVersion.trim())$.push("requested_version_changed");let J=(z)=>typeof z==="string"&&z.trim().length>0,Y=J(D.localIosChecksum)&&J(D.remoteIosChecksum)&&D.localIosChecksum!==D.remoteIosChecksum,X=J(D.localAndroidChecksum)&&J(D.remoteAndroidChecksum)&&D.localAndroidChecksum!==D.remoteAndroidChecksum;if(Y&&X)$.push("both_platforms_changed");else if(Y)$.push("ios_code_changed");else if(X)$.push("android_code_changed");let Q=J(D.localIosChecksum)!==J(D.remoteIosChecksum),F=J(D.localAndroidChecksum)!==J(D.remoteAndroidChecksum);if(Q||F)$.push("platform_checksum_metadata_changed");let W=[],K=(z)=>z!=="requested_version_changed";for(let z of $)switch(z){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 ARD(D){return u9D(D).compatible}async function vRD(D,$,U,J,Y){let X=await k9D(J,Y),Q=await bu(D,$,U),F=X.filter((K)=>!!K.native).map((K)=>{let Z=Q.get(K.name);if(Z)return{name:K.name,localVersion:K.version,localRequestedVersion:K.requested_version,remoteVersion:Z.version,remoteRequestedVersion:Z.requested_version,localIosChecksum:K.ios_checksum,remoteIosChecksum:Z.ios_checksum,localAndroidChecksum:K.android_checksum,remoteAndroidChecksum:Z.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=[...Q].filter(([K])=>!X.some((Z)=>Z.name===K)).map(([K,Z])=>({name:K,localVersion:void 0,remoteVersion:Z.version,remoteRequestedVersion:Z.requested_version,remoteIosChecksum:Z.ios_checksum,remoteAndroidChecksum:Z.android_checksum}));return F.push(...W),{finalCompatibility:F,localDependencies:X}}async function ERD(D,$,U,J){let Y=await bu(D,$,U),X=J.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}}),Q=[...Y].filter(([F])=>!J.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 X.push(...Q),{finalCompatibility:X,localDependencies:J}}function Cu(D){if(!GD(D))return null;try{return JSON.parse(K0(D,"utf-8"))}catch{return null}}function HY(D){if(!D)return!1;return/@capgo\/capacitor-updater|CapgoCapacitorUpdater|CapacitorUpdaterPlugin/.test(D)}function _9D(D){let $=Cu(D);if(!$)return!1;let U=$.packageClassList;return Array.isArray(U)&&U.includes("CapacitorUpdaterPlugin")}function x9D(D,$){if(!$)return OD(D,F6);return N4.isAbsolute($)?$:oD(D,$)}function g9D(D=j0(),$){let U=x9D(D,$),J=N4.basename(U)===F6?R$(U):U,Y=[OD(J,"ios","App"),OD(D,"ios","App")].find((v)=>GD(v));if(!Y)return{shouldCheck:!1,valid:!0,details:[]};let X=Cu(U),Q={...X?.dependencies,...X?.devDependencies,...X?.optionalDependencies},F=Object.hasOwn(Q,"@capgo/capacitor-updater"),W=[J,D].some((v)=>GD(OD(v,"node_modules","@capgo","capacitor-updater"))),K=OD(Y,"Podfile"),Z=OD(Y,"CapApp-SPM","Package.swift"),z=GD(K)?K0(K,"utf-8"):void 0,q=GD(Z)?K0(Z,"utf-8"):void 0,G=HY(z)||HY(q),V=OD(Y,"Podfile.lock"),I=OD(Y,"App","capacitor.plugins.json"),H=OD(Y,"App","capacitor.config.json"),w=GD(V)?K0(V,"utf-8"):void 0,j=GD(I)?K0(I,"utf-8"):void 0,B=HY(w)||HY(j)||_9D(H);if(!(F||W||G||B))return{shouldCheck:!1,valid:!0,details:[]};let A=[];if(!G)A.push(`Missing @capgo/capacitor-updater in iOS dependency files (${K} or ${Z})`);if(!B)A.push(`Missing @capgo/capacitor-updater in iOS native project outputs (${V}, ${I}, or ${H})`);return{shouldCheck:!0,valid:G&&B,details:A}}function f9D(D,$,U){if(!D.shouldCheck||D.valid)return;let J=P9D($,"ios");U?.(),n.error("Capgo iOS dependency sync verification failed.");for(let Y of D.details)n.error(Y);throw n.error("Stop here to avoid testing on a broken native iOS project."),n.warn(J.summary),n.info(J.command),new uD(iW)}async function TRD(D,$,U,J){let Y=await m4({message:"Would you like to sync your project with Capacitor now? This is recommended to ensure encrypted updates work properly."});if(A1(Y)){if(D&&$&&U)await v8("onboarding-v2",$,U,"canceled");throw n.warn("Canceled Capacitor sync"),new uD("Capacitor sync cancelled")}if(Y){let X=TH(),Q=l4();Q.start("Running the command...");let F;try{await new Promise((W,K)=>{let Z=l2D(X.runner,["cap","sync"],{stdio:"pipe"});Z.on("close",(z)=>{if(z===0)W();else K(Error(`Command failed with exit code ${z}`))}),Z.on("error",(z)=>{K(z)})})}catch(W){F=W,n.error(`Failed to run Capacitor sync: ${W}`),n.warn(`Please run "${X.runner} cap sync" manually to ensure encrypted updates work properly`)}if(J?.validateIosUpdater)f9D(g9D(j0(),J.packageJsonPath),X.runner,()=>Q.stop("iOS sync check failed ❌"));if(F){Q.stop("Error");return}Q.stop("Capacitor sync completed ✅")}else{let X=TH();n.warn("⚠️ Important: If you upload encrypted bundles without syncing, updates will fail!"),n.info(`Remember to run "${X.runner} cap sync" before uploading encrypted bundles`)}}var PH,SH,Ou,jY,n,d2D=".capgo_key",i2D=".capgo_key_v2",_LD,xLD,Fu="https://capgo.app",Wu="https://files.capgo.app",BY="https://api.capgo.app",wY="https://console.capgo.app",gLD=120000,p2D=20971520,n2D=1073741824,r2D=103809024,o2D,a2D=1e4,yLD="BundleUploadTimeoutError",F6="package.json",Ku="Cannot connect to server please try again later",mLD,Ru,MH=null,VY=null,ZRD="5.10.0",zRD="6.25.0",qRD="7.0.30",EH=!1,O4="npm",N2="install",IY="npx";var SF=_(()=>{CB();g$();eX();Dj();A7();rM();$A();JA();IA();LA();kW();sP();FS();pW();VS();Lk();Mk();M1();JH();Sk();kk();PH=K6(kj(),1),SH=K6(IQ(),1),Ou=K6(HN(),1),jY=K6(lM(),1);n={error:(D)=>GY("error",D),info:(D)=>GY("info",D),success:(D)=>GY("success",D),warn:(D)=>GY("warn",D)},_LD=`${d2D}.pub`,xLD=`${i2D}.pub`;o2D=[0,1000,3000,5000,1e4];mLD=/^(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;Ru=/([A-Za-z0-9]+)\.(java|swift|kt|scala)$/});var fH=S((ru)=>{Object.defineProperty(ru,"__esModule",{value:!0});function B6(D){let $=Object.create(null);for(let U of D.split(","))$[U]=1;return(U)=>(U in $)}var y9D=Object.freeze({}),h9D=Object.freeze([]),m9D=()=>{},l9D=()=>!1,c9D=(D)=>D.charCodeAt(0)===111&&D.charCodeAt(1)===110&&(D.charCodeAt(2)>122||D.charCodeAt(2)<97),d9D=(D)=>D.startsWith("onUpdate:"),i9D=Object.assign,p9D=(D,$)=>{let U=D.indexOf($);if(U>-1)D.splice(U,1)},n9D=Object.prototype.hasOwnProperty,r9D=(D,$)=>n9D.call(D,$),L4=Array.isArray,xu=(D)=>R4(D)==="[object Map]",gu=(D)=>R4(D)==="[object Set]",uH=(D)=>R4(D)==="[object Date]",o9D=(D)=>R4(D)==="[object RegExp]",o5=(D)=>typeof D==="function",F$=(D)=>typeof D==="string",a5=(D)=>typeof D==="symbol",G1=(D)=>D!==null&&typeof D==="object",a9D=(D)=>{return(G1(D)||o5(D))&&o5(D.then)&&o5(D.catch)},_H=Object.prototype.toString,R4=(D)=>_H.call(D),t9D=(D)=>{return R4(D).slice(8,-1)},fu=(D)=>R4(D)==="[object Object]",s9D=(D)=>F$(D)&&D!=="NaN"&&D[0]!=="-"&&""+parseInt(D,10)===D,e9D=B6(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),D5D=B6("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),RY=(D)=>{let $=Object.create(null);return(U)=>{return $[U]||($[U]=D(U))}},$5D=/-\w/g,U5D=RY((D)=>{return D.replace($5D,($)=>$.slice(1).toUpperCase())}),J5D=/\B([A-Z])/g,yu=RY((D)=>D.replace(J5D,"-$1").toLowerCase()),hu=RY((D)=>{return D.charAt(0).toUpperCase()+D.slice(1)}),Y5D=RY((D)=>{return D?`on${hu(D)}`:""}),X5D=(D,$)=>!Object.is(D,$),Q5D=(D,...$)=>{for(let U=0;U<D.length;U++)D[U](...$)},F5D=(D,$,U,J=!1)=>{Object.defineProperty(D,$,{configurable:!0,enumerable:!1,writable:J,value:U})},W5D=(D)=>{let $=parseFloat(D);return isNaN($)?D:$},K5D=(D)=>{let $=F$(D)?Number(D):NaN;return isNaN($)?D:$},uu,Z5D=()=>{return uu||(uu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{})},z5D=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function q5D(D){return z5D.test(D)?`__props.${D}`:`__props[${JSON.stringify(D)}]`}function G5D(D,$){return D+JSON.stringify($,(U,J)=>typeof J==="function"?J.toString():J)}var V5D={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"},H5D={[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"},I5D={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"},B5D={STABLE:1,"1":"STABLE",DYNAMIC:2,"2":"DYNAMIC",FORWARDED:3,"3":"FORWARDED"},w5D={[1]:"STABLE",[2]:"DYNAMIC",[3]:"FORWARDED"},O5D="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",mu=B6(O5D),j5D=mu,_u=2;function N5D(D,$=0,U=D.length){if($=Math.max(0,Math.min($,D.length)),U=Math.max(0,Math.min(U,D.length)),$>U)return"";let J=D.split(/(\r?\n)/),Y=J.filter((F,W)=>W%2===1);J=J.filter((F,W)=>W%2===0);let X=0,Q=[];for(let F=0;F<J.length;F++)if(X+=J[F].length+(Y[F]&&Y[F].length||0),X>=$){for(let W=F-_u;W<=F+_u||U>X;W++){if(W<0||W>=J.length)continue;let K=W+1;Q.push(`${K}${" ".repeat(Math.max(3-String(K).length,0))}| ${J[W]}`);let Z=J[W].length,z=Y[W]&&Y[W].length||0;if(W===F){let q=$-(X-(Z+z)),G=Math.max(1,U>X?Z-q:U-$);Q.push(" | "+" ".repeat(q)+"^".repeat(G))}else if(W>F){if(U>X){let q=Math.max(Math.min(U-X,Z),1);Q.push(" | "+"^".repeat(q))}X+=Z+z}}break}return Q.join(`
`)}function xH(D){if(L4(D)){let $={};for(let U=0;U<D.length;U++){let J=D[U],Y=F$(J)?lu(J):xH(J);if(Y)for(let X in Y)$[X]=Y[X]}return $}else if(F$(D)||G1(D))return D}var L5D=/;(?![^(]*\))/g,R5D=/:([^]+)/,M5D=/\/\*[^]*?\*\//g;function lu(D){let $={};return D.replace(M5D,"").split(L5D).forEach((U)=>{if(U){let J=U.split(R5D);J.length>1&&($[J[0].trim()]=J[1].trim())}}),$}function A5D(D){if(!D)return"";if(F$(D))return D;let $="";for(let U in D){let J=D[U];if(F$(J)||typeof J==="number"){let Y=U.startsWith("--")?U:yu(U);$+=`${Y}:${J};`}}return $}function gH(D){let $="";if(F$(D))$=D;else if(L4(D))for(let U=0;U<D.length;U++){let J=gH(D[U]);if(J)$+=J+" "}else if(G1(D)){for(let U in D)if(D[U])$+=U+" "}return $.trim()}function v5D(D){if(!D)return null;let{class:$,style:U}=D;if($&&!F$($))D.class=gH($);if(U)D.style=xH(U);return D}var E5D="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",T5D="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",P5D="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",S5D="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",b5D=B6(E5D),C5D=B6(T5D),k5D=B6(P5D),u5D=B6(S5D),cu="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",_5D=B6(cu),x5D=B6(cu+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function g5D(D){return!!D||D===""}var f5D=/[>/="'\u0009\u000a\u000c\u0020]/,CH={};function y5D(D){if(CH.hasOwnProperty(D))return CH[D];let $=f5D.test(D);if($)console.error(`unsafe attribute name: ${D}`);return CH[D]=!$}var h5D={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},m5D=B6("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"),l5D=B6("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"),c5D=B6("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 d5D(D){if(D==null)return!1;let $=typeof D;return $==="string"||$==="number"||$==="boolean"}var i5D=/["'&<>]/;function p5D(D){let $=""+D,U=i5D.exec($);if(!U)return $;let J="",Y,X,Q=0;for(X=U.index;X<$.length;X++){switch($.charCodeAt(X)){case 34:Y=""";break;case 38:Y="&";break;case 39:Y="'";break;case 60:Y="<";break;case 62:Y=">";break;default:continue}if(Q!==X)J+=$.slice(Q,X);Q=X+1,J+=Y}return Q!==X?J+$.slice(Q,X):J}var n5D=/^(?:-?>)+|<!--|-->|--!>|<!-$/g;function r5D(D){let $;do $=D,D=D.replace(n5D,"");while(D!==$);return D}var du=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function o5D(D,$){return D.replace(du,(U)=>$?U==='"'?"\\\\\\\"":`\\\\${U}`:`\\${U}`)}function a5D(D,$){if(D.length!==$.length)return!1;let U=!0;for(let J=0;U&&J<D.length;J++)U=MY(D[J],$[J]);return U}function MY(D,$){if(D===$)return!0;let U=uH(D),J=uH($);if(U||J)return U&&J?D.getTime()===$.getTime():!1;if(U=a5(D),J=a5($),U||J)return D===$;if(U=L4(D),J=L4($),U||J)return U&&J?a5D(D,$):!1;if(U=G1(D),J=G1($),U||J){if(!U||!J)return!1;let Y=Object.keys(D).length,X=Object.keys($).length;if(Y!==X)return!1;for(let Q in D){let F=D.hasOwnProperty(Q),W=$.hasOwnProperty(Q);if(F&&!W||!F&&W||!MY(D[Q],$[Q]))return!1}}return String(D)===String($)}function t5D(D,$){return D.findIndex((U)=>MY(U,$))}var iu=(D)=>{return!!(D&&D.__v_isRef===!0)},pu=(D)=>{return F$(D)?D:D==null?"":L4(D)||G1(D)&&(D.toString===_H||!o5(D.toString))?iu(D)?pu(D.value):JSON.stringify(D,nu,2):String(D)},nu=(D,$)=>{if(iu($))return nu(D,$.value);else if(xu($))return{[`Map(${$.size})`]:[...$.entries()].reduce((U,[J,Y],X)=>{return U[kH(J,X)+" =>"]=Y,U},{})};else if(gu($))return{[`Set(${$.size})`]:[...$.values()].map((U)=>kH(U))};else if(a5($))return kH($);else if(G1($)&&!L4($)&&!fu($))return String($);return $},kH=(D,$="")=>{var U;return a5(D)?`Symbol(${(U=D.description)!=null?U:$})`:D};function s5D(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)}ru.EMPTY_ARR=h9D;ru.EMPTY_OBJ=y9D;ru.NO=l9D;ru.NOOP=m9D;ru.PatchFlagNames=H5D;ru.PatchFlags=V5D;ru.ShapeFlags=I5D;ru.SlotFlags=B5D;ru.camelize=U5D;ru.capitalize=hu;ru.cssVarNameEscapeSymbolsRE=du;ru.def=F5D;ru.escapeHtml=p5D;ru.escapeHtmlComment=r5D;ru.extend=i9D;ru.genCacheKey=G5D;ru.genPropsAccessExp=q5D;ru.generateCodeFrame=N5D;ru.getEscapedCssVarName=o5D;ru.getGlobalThis=Z5D;ru.hasChanged=X5D;ru.hasOwn=r9D;ru.hyphenate=yu;ru.includeBooleanAttr=g5D;ru.invokeArrayFns=Q5D;ru.isArray=L4;ru.isBooleanAttr=x5D;ru.isBuiltInDirective=D5D;ru.isDate=uH;ru.isFunction=o5;ru.isGloballyAllowed=mu;ru.isGloballyWhitelisted=j5D;ru.isHTMLTag=b5D;ru.isIntegerKey=s9D;ru.isKnownHtmlAttr=m5D;ru.isKnownMathMLAttr=c5D;ru.isKnownSvgAttr=l5D;ru.isMap=xu;ru.isMathMLTag=k5D;ru.isModelListener=d9D;ru.isObject=G1;ru.isOn=c9D;ru.isPlainObject=fu;ru.isPromise=a9D;ru.isRegExp=o9D;ru.isRenderableAttrValue=d5D;ru.isReservedProp=e9D;ru.isSSRSafeAttrName=y5D;ru.isSVGTag=C5D;ru.isSet=gu;ru.isSpecialBooleanAttr=_5D;ru.isString=F$;ru.isSymbol=a5;ru.isVoidTag=u5D;ru.looseEqual=MY;ru.looseIndexOf=t5D;ru.looseToNumber=W5D;ru.makeMap=B6;ru.normalizeClass=gH;ru.normalizeCssVarValue=s5D;ru.normalizeProps=v5D;ru.normalizeStyle=xH;ru.objectToString=_H;ru.parseStringStyle=lu;ru.propsToAttrMap=h5D;ru.remove=p9D;ru.slotFlagsText=w5D;ru.stringifyStyle=A5D;ru.toDisplayString=pu;ru.toHandlerKey=Y5D;ru.toNumber=K5D;ru.toRawType=t9D;ru.toTypeString=R4});var mH=S((au)=>{var yH;Object.defineProperty(au,"__esModule",{value:!0});au.fromCodePoint=void 0;au.replaceCodePoint=ou;au.decodeCodePoint=O3D;var w3D=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]]);au.fromCodePoint=(yH=String.fromCodePoint)!==null&&yH!==void 0?yH:(D)=>{let $="";if(D>65535)D-=65536,$+=String.fromCharCode(D>>>10&1023|55296),D=56320|D&1023;return $+=String.fromCharCode(D),$};function ou(D){var $;if(D>=55296&&D<=57343||D>1114111)return 65533;return($=w3D.get(D))!==null&&$!==void 0?$:D}function O3D(D){return au.fromCodePoint(ou(D))}});var lH=S((tu)=>{Object.defineProperty(tu,"__esModule",{value:!0});tu.decodeBase64=L3D;function L3D(D){let $=typeof atob==="function"?atob(D):typeof Buffer.from==="function"?Buffer.from(D,"base64").toString("binary"):new Buffer(D,"base64").toString("binary"),U=$.length&-2,J=new Uint16Array(U/2);for(let Y=0,X=0;Y<U;Y+=2){let Q=$.charCodeAt(Y),F=$.charCodeAt(Y+1);J[X++]=Q|F<<8}return J}});var cH=S((su)=>{Object.defineProperty(su,"__esModule",{value:!0});su.htmlDecodeTree=void 0;var M3D=lH();su.htmlDecodeTree=(0,M3D.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 dH=S((D_)=>{Object.defineProperty(D_,"__esModule",{value:!0});D_.xmlDecodeTree=void 0;var A3D=lH();D_.xmlDecodeTree=(0,A3D.decodeBase64)("AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg")});var X_=S((J_)=>{Object.defineProperty(J_,"__esModule",{value:!0});J_.BinTrieFlags=void 0;var U_;(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"})(U_||(J_.BinTrieFlags=U_={}))});var Z_=S((M4)=>{Object.defineProperty(M4,"__esModule",{value:!0});M4.xmlDecodeTree=M4.htmlDecodeTree=M4.replaceCodePoint=M4.fromCodePoint=M4.decodeCodePoint=M4.EntityDecoder=M4.DecodingMode=void 0;M4.determineBranch=K_;M4.decodeHTML=C3D;M4.decodeHTMLAttribute=k3D;M4.decodeHTMLStrict=u3D;M4.decodeXML=_3D;var F_=mH(),v3D=cH(),E3D=dH(),w6=X_(),U0;(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"})(U0||(U0={}));var Q_=32;function iH(D){return D>=U0.ZERO&&D<=U0.NINE}function T3D(D){return D>=U0.UPPER_A&&D<=U0.UPPER_F||D>=U0.LOWER_A&&D<=U0.LOWER_F}function P3D(D){return D>=U0.UPPER_A&&D<=U0.UPPER_Z||D>=U0.LOWER_A&&D<=U0.LOWER_Z||iH(D)}function S3D(D){return D===U0.EQUALS||P3D(D)}var N0;(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"})(N0||(N0={}));var l6;(function(D){D[D.Legacy=0]="Legacy",D[D.Strict=1]="Strict",D[D.Attribute=2]="Attribute"})(l6||(M4.DecodingMode=l6={}));class pH{constructor(D,$,U){this.decodeTree=D,this.emitCodePoint=$,this.errors=U,this.state=N0.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=l6.Strict,this.runConsumed=0}startEntity(D){this.decodeMode=D,this.state=N0.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(D,$){switch(this.state){case N0.EntityStart:{if(D.charCodeAt($)===U0.NUM)return this.state=N0.NumericStart,this.consumed+=1,this.stateNumericStart(D,$+1);return this.state=N0.NamedEntity,this.stateNamedEntity(D,$)}case N0.NumericStart:return this.stateNumericStart(D,$);case N0.NumericDecimal:return this.stateNumericDecimal(D,$);case N0.NumericHex:return this.stateNumericHex(D,$);case N0.NamedEntity:return this.stateNamedEntity(D,$)}}stateNumericStart(D,$){if($>=D.length)return-1;if((D.charCodeAt($)|Q_)===U0.LOWER_X)return this.state=N0.NumericHex,this.consumed+=1,this.stateNumericHex(D,$+1);return this.state=N0.NumericDecimal,this.stateNumericDecimal(D,$)}stateNumericHex(D,$){while($<D.length){let U=D.charCodeAt($);if(iH(U)||T3D(U)){let J=U<=U0.NINE?U-U0.ZERO:(U|Q_)-U0.LOWER_A+10;this.result=this.result*16+J,this.consumed++,$++}else return this.emitNumericEntity(U,3)}return-1}stateNumericDecimal(D,$){while($<D.length){let U=D.charCodeAt($);if(iH(U))this.result=this.result*10+(U-U0.ZERO),this.consumed++,$++;else return this.emitNumericEntity(U,2)}return-1}emitNumericEntity(D,$){var U;if(this.consumed<=$)return(U=this.errors)===null||U===void 0||U.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(D===U0.SEMI)this.consumed+=1;else if(this.decodeMode===l6.Strict)return 0;if(this.emitCodePoint((0,F_.replaceCodePoint)(this.result),this.consumed),this.errors){if(D!==U0.SEMI)this.errors.missingSemicolonAfterCharacterReference();this.errors.validateNumericCharacterReference(this.result)}return this.consumed}stateNamedEntity(D,$){let{decodeTree:U}=this,J=U[this.treeIndex],Y=(J&w6.BinTrieFlags.VALUE_LENGTH)>>14;while($<D.length){if(Y===0&&(J&w6.BinTrieFlags.FLAG13)!==0){let Q=(J&w6.BinTrieFlags.BRANCH_LENGTH)>>7;if(this.runConsumed===0){let F=J&w6.BinTrieFlags.JUMP_TABLE;if(D.charCodeAt($)!==F)return this.result===0?0:this.emitNotTerminatedNamedEntity();$++,this.excess++,this.runConsumed++}while(this.runConsumed<Q){if($>=D.length)return-1;let F=this.runConsumed-1,W=U[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+(Q>>1),J=U[this.treeIndex],Y=(J&w6.BinTrieFlags.VALUE_LENGTH)>>14}if($>=D.length)break;let X=D.charCodeAt($);if(X===U0.SEMI&&Y!==0&&(J&w6.BinTrieFlags.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,Y,this.consumed+this.excess);if(this.treeIndex=K_(U,J,this.treeIndex+Math.max(1,Y),X),this.treeIndex<0)return this.result===0||this.decodeMode===l6.Attribute&&(Y===0||S3D(X))?0:this.emitNotTerminatedNamedEntity();if(J=U[this.treeIndex],Y=(J&w6.BinTrieFlags.VALUE_LENGTH)>>14,Y!==0){if(X===U0.SEMI)return this.emitNamedEntityData(this.treeIndex,Y,this.consumed+this.excess);if(this.decodeMode!==l6.Strict&&(J&w6.BinTrieFlags.FLAG13)===0)this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0}$++,this.excess++}return-1}emitNotTerminatedNamedEntity(){var D;let{result:$,decodeTree:U}=this,J=(U[$]&w6.BinTrieFlags.VALUE_LENGTH)>>14;return this.emitNamedEntityData($,J,this.consumed),(D=this.errors)===null||D===void 0||D.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(D,$,U){let{decodeTree:J}=this;if(this.emitCodePoint($===1?J[D]&~(w6.BinTrieFlags.VALUE_LENGTH|w6.BinTrieFlags.FLAG13):J[D+1],U),$===3)this.emitCodePoint(J[D+2],U);return U}end(){var D;switch(this.state){case N0.NamedEntity:return this.result!==0&&(this.decodeMode!==l6.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case N0.NumericDecimal:return this.emitNumericEntity(0,2);case N0.NumericHex:return this.emitNumericEntity(0,3);case N0.NumericStart:return(D=this.errors)===null||D===void 0||D.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case N0.EntityStart:return 0}}}M4.EntityDecoder=pH;function W_(D){let $="",U=new pH(D,(J)=>$+=(0,F_.fromCodePoint)(J));return function(Y,X){let Q=0,F=0;while((F=Y.indexOf("&",F))>=0){$+=Y.slice(Q,F),U.startEntity(X);let K=U.write(Y,F+1);if(K<0){Q=F+U.end();break}Q=F+K,F=K===0?Q+1:Q}let W=$+Y.slice(Q);return $="",W}}function K_(D,$,U,J){let Y=($&w6.BinTrieFlags.BRANCH_LENGTH)>>7,X=$&w6.BinTrieFlags.JUMP_TABLE;if(Y===0)return X!==0&&J===X?U:-1;if(X){let K=J-X;return K<0||K>=Y?-1:D[U+K]-1}let Q=Y+1>>1,F=0,W=Y-1;while(F<=W){let K=F+W>>>1,Z=K>>1,q=D[U+Z]>>(K&1)*8&255;if(q<J)F=K+1;else if(q>J)W=K-1;else return D[U+Q+K]}return-1}var nH=W_(v3D.htmlDecodeTree),b3D=W_(E3D.xmlDecodeTree);function C3D(D,$=l6.Legacy){return nH(D,$)}function k3D(D){return nH(D,l6.Attribute)}function u3D(D){return nH(D,l6.Strict)}function _3D(D){return b3D(D,l6.Strict)}var rH=mH();Object.defineProperty(M4,"decodeCodePoint",{enumerable:!0,get:function(){return rH.decodeCodePoint}});Object.defineProperty(M4,"fromCodePoint",{enumerable:!0,get:function(){return rH.fromCodePoint}});Object.defineProperty(M4,"replaceCodePoint",{enumerable:!0,get:function(){return rH.replaceCodePoint}});var x3D=cH();Object.defineProperty(M4,"htmlDecodeTree",{enumerable:!0,get:function(){return x3D.htmlDecodeTree}});var g3D=dH();Object.defineProperty(M4,"xmlDecodeTree",{enumerable:!0,get:function(){return g3D.xmlDecodeTree}})});var Jx=S((Ux)=>{Object.defineProperty(Ux,"__esModule",{value:!0});function p3D(D,$){if(D==null)return{};var U={};for(var J in D)if({}.hasOwnProperty.call(D,J)){if($.indexOf(J)!==-1)continue;U[J]=D[J]}return U}class E${constructor(D,$,U){this.line=void 0,this.column=void 0,this.index=void 0,this.line=D,this.column=$,this.index=U}}class Y7{constructor(D,$){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=D,this.end=$}}function a0(D,$){let{line:U,column:J,index:Y}=D;return new E$(U,J+$,Y+$)}var z_="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",n3D={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:z_},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:z_}},q_={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"},EY=(D)=>D.type==="UpdateExpression"?q_.UpdateExpression[`${D.prefix}`]:q_[D.type],r3D={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 ${EY(D)}.`,InvalidLhsBinding:({ancestor:D})=>`Binding invalid left-hand side in ${EY(D)}.`,InvalidLhsOptionalChaining:({ancestor:D})=>`Invalid optional chaining in the left-hand side of ${EY(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."},o3D={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."},a3D={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)}\`.`},t3D=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),s3D=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 ${EY({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.'}),e3D=["message"];function G_(D,$,U){Object.defineProperty(D,$,{enumerable:!1,configurable:!0,value:U})}function DUD({toMessage:D,code:$,reasonCode:U,syntaxPlugin:J}){let Y=U==="MissingPlugin"||U==="MissingOneOfPlugins",X={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};if(X[U])U=X[U];return function Q(F,W){let K=SyntaxError();if(K.code=$,K.reasonCode=U,K.loc=F,K.pos=F.index,K.syntaxPlugin=J,Y)K.missingPlugin=W.missingPlugin;return G_(K,"clone",function(z={}){var q;let{line:G,column:V,index:I}=(q=z.loc)!=null?q:F;return Q(new E$(G,V,I),Object.assign({},W,z.details))}),G_(K,"details",W),Object.defineProperty(K,"message",{configurable:!0,get(){let Z=`${D(W)} (${F.line}:${F.column})`;return this.message=Z,Z},set(Z){Object.defineProperty(this,"message",{value:Z,writable:!0})}}),K}}function W$(D,$){if(Array.isArray(D))return(J)=>W$(J,D[0]);let U={};for(let J of Object.keys(D)){let Y=D[J],X=typeof Y==="string"?{message:()=>Y}:typeof Y==="function"?{message:Y}:Y,{message:Q}=X,F=p3D(X,e3D),W=typeof Q==="string"?()=>Q:Q;U[J]=DUD(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:J,toMessage:W},$?{syntaxPlugin:$}:{},F))}return U}var M=Object.assign({},W$(n3D),W$(r3D),W$(o3D),W$(a3D),W$`pipelineOperator`(s3D));function $UD(){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 UUD(D){let $=$UD();if(D==null)return $;if(D.annexB!=null&&D.annexB!==!1)throw Error("The `annexB` option can only be set to `false`.");for(let U of Object.keys($))if(D[U]!=null)$[U]=D[U];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:JUD}=Object,V_=(D,$)=>{if(D)JUD(D,$,{enumerable:!1,value:D[$]})};function t5(D){return V_(D.loc.start,"index"),V_(D.loc.end,"index"),D}var YUD=(D)=>class extends D{parse(){let U=t5(super.parse());if(this.optionFlags&256)U.tokens=U.tokens.map(t5);return U}parseRegExpLiteral({pattern:U,flags:J}){let Y=null;try{Y=new RegExp(U,J)}catch(Q){}let X=this.estreeParseLiteral(Y);return X.regex={pattern:U,flags:J},X}parseBigIntLiteral(U){let J;try{J=BigInt(U)}catch(X){J=null}let Y=this.estreeParseLiteral(J);return Y.bigint=String(Y.value||U),Y}parseDecimalLiteral(U){let Y=this.estreeParseLiteral(null);return Y.decimal=String(Y.value||U),Y}estreeParseLiteral(U){return this.parseLiteral(U,"Literal")}parseStringLiteral(U){return this.estreeParseLiteral(U)}parseNumericLiteral(U){return this.estreeParseLiteral(U)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(U){return this.estreeParseLiteral(U)}estreeParseChainExpression(U,J){let Y=this.startNodeAtNode(U);return Y.expression=U,this.finishNodeAt(Y,"ChainExpression",J)}directiveToStmt(U){let J=U.value;delete U.value,this.castNodeTo(J,"Literal"),J.raw=J.extra.raw,J.value=J.extra.expressionValue;let Y=this.castNodeTo(U,"ExpressionStatement");return Y.expression=J,Y.directive=J.extra.rawValue,delete J.extra,Y}fillOptionalPropertiesForTSESLint(U){}cloneEstreeStringLiteral(U){let{start:J,end:Y,loc:X,range:Q,raw:F,value:W}=U,K=Object.create(U.constructor.prototype);return K.type="Literal",K.start=J,K.end=Y,K.loc=X,K.range=Q,K.raw=F,K.value=W,K}initFunction(U,J){super.initFunction(U,J),U.expression=!1}checkDeclaration(U){if(U!=null&&this.isObjectProperty(U))this.checkDeclaration(U.value);else super.checkDeclaration(U)}getObjectOrClassMethodParams(U){return U.value.params}isValidDirective(U){var J;return U.type==="ExpressionStatement"&&U.expression.type==="Literal"&&typeof U.expression.value==="string"&&!((J=U.expression.extra)!=null&&J.parenthesized)}parseBlockBody(U,J,Y,X,Q){super.parseBlockBody(U,J,Y,X,Q);let F=U.directives.map((W)=>this.directiveToStmt(W));U.body=F.concat(U.body),delete U.directives}parsePrivateName(){let U=super.parsePrivateName();if(!this.getPluginOption("estree","classFeatures"))return U;return this.convertPrivateNameToPrivateIdentifier(U)}convertPrivateNameToPrivateIdentifier(U){let J=super.getPrivateNameSV(U);return delete U.id,U.name=J,this.castNodeTo(U,"PrivateIdentifier")}isPrivateName(U){if(!this.getPluginOption("estree","classFeatures"))return super.isPrivateName(U);return U.type==="PrivateIdentifier"}getPrivateNameSV(U){if(!this.getPluginOption("estree","classFeatures"))return super.getPrivateNameSV(U);return U.name}parseLiteral(U,J){let Y=super.parseLiteral(U,J);return Y.raw=Y.extra.raw,delete Y.extra,Y}parseFunctionBody(U,J,Y=!1){super.parseFunctionBody(U,J,Y),U.expression=U.body.type!=="BlockStatement"}parseMethod(U,J,Y,X,Q,F,W=!1){let K=this.startNode();K.kind=U.kind,K=super.parseMethod(K,J,Y,X,Q,F,W),delete K.kind;let{typeParameters:Z}=U;if(Z)delete U.typeParameters,K.typeParameters=Z,this.resetStartLocationFromNode(K,Z);let z=this.castNodeTo(K,"FunctionExpression");if(U.value=z,F==="ClassPrivateMethod")U.computed=!1;if(F==="ObjectMethod"){if(U.kind==="method")U.kind="init";return U.shorthand=!1,this.finishNode(U,"Property")}else return this.finishNode(U,"MethodDefinition")}nameIsConstructor(U){if(U.type==="Literal")return U.value==="constructor";return super.nameIsConstructor(U)}parseClassProperty(...U){let J=super.parseClassProperty(...U);if(!this.getPluginOption("estree","classFeatures"))return J;return this.castNodeTo(J,"PropertyDefinition"),J}parseClassPrivateProperty(...U){let J=super.parseClassPrivateProperty(...U);if(!this.getPluginOption("estree","classFeatures"))return J;return this.castNodeTo(J,"PropertyDefinition"),J.computed=!1,J}parseClassAccessorProperty(U){let J=super.parseClassAccessorProperty(U);if(!this.getPluginOption("estree","classFeatures"))return J;if(J.abstract&&this.hasPlugin("typescript"))delete J.abstract,this.castNodeTo(J,"TSAbstractAccessorProperty");else this.castNodeTo(J,"AccessorProperty");return J}parseObjectProperty(U,J,Y,X){let Q=super.parseObjectProperty(U,J,Y,X);if(Q)Q.kind="init",this.castNodeTo(Q,"Property");return Q}finishObjectProperty(U){return U.kind="init",this.finishNode(U,"Property")}isValidLVal(U,J,Y,X){return U==="Property"?"value":super.isValidLVal(U,J,Y,X)}isAssignable(U,J){if(U!=null&&this.isObjectProperty(U))return this.isAssignable(U.value,J);return super.isAssignable(U,J)}toAssignable(U,J=!1){if(U!=null&&this.isObjectProperty(U)){let{key:Y,value:X}=U;if(this.isPrivateName(Y))this.classScope.usePrivateName(this.getPrivateNameSV(Y),Y.loc.start);this.toAssignable(X,J)}else super.toAssignable(U,J)}toAssignableObjectExpressionProp(U,J,Y){if(U.type==="Property"&&(U.kind==="get"||U.kind==="set"))this.raise(M.PatternHasAccessor,U.key);else if(U.type==="Property"&&U.method)this.raise(M.PatternHasMethod,U.key);else super.toAssignableObjectExpressionProp(U,J,Y)}finishCallExpression(U,J){let Y=super.finishCallExpression(U,J);if(Y.callee.type==="Import"){var X,Q;this.castNodeTo(Y,"ImportExpression"),Y.source=Y.arguments[0],Y.options=(X=Y.arguments[1])!=null?X:null,Y.attributes=(Q=Y.arguments[1])!=null?Q:null,delete Y.arguments,delete Y.callee}else if(Y.type==="OptionalCallExpression")this.castNodeTo(Y,"CallExpression");else Y.optional=!1;return Y}toReferencedArguments(U){if(U.type==="ImportExpression")return;super.toReferencedArguments(U)}parseExport(U,J){let Y=this.state.lastTokStartLoc,X=super.parseExport(U,J);switch(X.type){case"ExportAllDeclaration":X.exported=null;break;case"ExportNamedDeclaration":if(X.specifiers.length===1&&X.specifiers[0].type==="ExportNamespaceSpecifier")this.castNodeTo(X,"ExportAllDeclaration"),X.exported=X.specifiers[0].exported,delete X.specifiers;case"ExportDefaultDeclaration":{var Q;let{declaration:F}=X;if((F==null?void 0:F.type)==="ClassDeclaration"&&((Q=F.decorators)==null?void 0:Q.length)>0&&F.start===X.start)this.resetStartLocation(X,Y)}break}return X}stopParseSubscript(U,J){let Y=super.stopParseSubscript(U,J);if(J.optionalChainMember)return this.estreeParseChainExpression(Y,U.loc.end);return Y}parseMember(U,J,Y,X,Q){let F=super.parseMember(U,J,Y,X,Q);if(F.type==="OptionalMemberExpression")this.castNodeTo(F,"MemberExpression");else F.optional=!1;return F}isOptionalMemberExpression(U){if(U.type==="ChainExpression")return U.expression.type==="MemberExpression";return super.isOptionalMemberExpression(U)}hasPropertyAsPrivateName(U){if(U.type==="ChainExpression")U=U.expression;return super.hasPropertyAsPrivateName(U)}isObjectProperty(U){return U.type==="Property"&&U.kind==="init"&&!U.method}isObjectMethod(U){return U.type==="Property"&&(U.method||U.kind==="get"||U.kind==="set")}castNodeTo(U,J){let Y=super.castNodeTo(U,J);return this.fillOptionalPropertiesForTSESLint(Y),Y}cloneIdentifier(U){let J=super.cloneIdentifier(U);return this.fillOptionalPropertiesForTSESLint(J),J}cloneStringLiteral(U){if(U.type==="Literal")return this.cloneEstreeStringLiteral(U);return super.cloneStringLiteral(U)}finishNodeAt(U,J,Y){return t5(super.finishNodeAt(U,J,Y))}finishNode(U,J){let Y=super.finishNode(U,J);return this.fillOptionalPropertiesForTSESLint(Y),Y}resetStartLocation(U,J){super.resetStartLocation(U,J),t5(U)}resetEndLocation(U,J=this.state.lastTokEndLoc){super.resetEndLocation(U,J),t5(U)}};class M2{constructor(D,$){this.token=void 0,this.preserveSpace=void 0,this.token=D,this.preserveSpace=!!$}}var CD={brace:new M2("{"),j_oTag:new M2("<tag"),j_cTag:new M2("</tag"),j_expr:new M2("<tag>...</tag>",!0)};CD.template=new M2("`",!0);var jD=!0,e=!0,oH=!0,s5=!0,V1=!0,XUD=!0;class XI{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 QI=new Map;function ED(D,$={}){$.keyword=D;let U=WD(D,$);return QI.set(D,U),U}function o0(D,$){return WD(D,{beforeExpr:jD,binop:$})}var U7=-1,T$=[],FI=[],WI=[],KI=[],ZI=[],zI=[];function WD(D,$={}){var U,J,Y,X;return++U7,FI.push(D),WI.push((U=$.binop)!=null?U:-1),KI.push((J=$.beforeExpr)!=null?J:!1),ZI.push((Y=$.startsExpr)!=null?Y:!1),zI.push((X=$.prefix)!=null?X:!1),T$.push(new XI(D,$)),U7}function LD(D,$={}){var U,J,Y,X;return++U7,QI.set(D,U7),FI.push(D),WI.push((U=$.binop)!=null?U:-1),KI.push((J=$.beforeExpr)!=null?J:!1),ZI.push((Y=$.startsExpr)!=null?Y:!1),zI.push((X=$.prefix)!=null?X:!1),T$.push(new XI("name",$)),U7}var QUD={bracketL:WD("[",{beforeExpr:jD,startsExpr:e}),bracketHashL:WD("#[",{beforeExpr:jD,startsExpr:e}),bracketBarL:WD("[|",{beforeExpr:jD,startsExpr:e}),bracketR:WD("]"),bracketBarR:WD("|]"),braceL:WD("{",{beforeExpr:jD,startsExpr:e}),braceBarL:WD("{|",{beforeExpr:jD,startsExpr:e}),braceHashL:WD("#{",{beforeExpr:jD,startsExpr:e}),braceR:WD("}"),braceBarR:WD("|}"),parenL:WD("(",{beforeExpr:jD,startsExpr:e}),parenR:WD(")"),comma:WD(",",{beforeExpr:jD}),semi:WD(";",{beforeExpr:jD}),colon:WD(":",{beforeExpr:jD}),doubleColon:WD("::",{beforeExpr:jD}),dot:WD("."),question:WD("?",{beforeExpr:jD}),questionDot:WD("?."),arrow:WD("=>",{beforeExpr:jD}),template:WD("template"),ellipsis:WD("...",{beforeExpr:jD}),backQuote:WD("`",{startsExpr:e}),dollarBraceL:WD("${",{beforeExpr:jD,startsExpr:e}),templateTail:WD("...`",{startsExpr:e}),templateNonTail:WD("...${",{beforeExpr:jD,startsExpr:e}),at:WD("@"),hash:WD("#",{startsExpr:e}),interpreterDirective:WD("#!..."),eq:WD("=",{beforeExpr:jD,isAssign:s5}),assign:WD("_=",{beforeExpr:jD,isAssign:s5}),slashAssign:WD("_=",{beforeExpr:jD,isAssign:s5}),xorAssign:WD("_=",{beforeExpr:jD,isAssign:s5}),moduloAssign:WD("_=",{beforeExpr:jD,isAssign:s5}),incDec:WD("++/--",{prefix:V1,postfix:XUD,startsExpr:e}),bang:WD("!",{beforeExpr:jD,prefix:V1,startsExpr:e}),tilde:WD("~",{beforeExpr:jD,prefix:V1,startsExpr:e}),doubleCaret:WD("^^",{startsExpr:e}),doubleAt:WD("@@",{startsExpr:e}),pipeline:o0("|>",0),nullishCoalescing:o0("??",1),logicalOR:o0("||",1),logicalAND:o0("&&",2),bitwiseOR:o0("|",3),bitwiseXOR:o0("^",4),bitwiseAND:o0("&",5),equality:o0("==/!=/===/!==",6),lt:o0("</>/<=/>=",7),gt:o0("</>/<=/>=",7),relational:o0("</>/<=/>=",7),bitShift:o0("<</>>/>>>",8),bitShiftL:o0("<</>>/>>>",8),bitShiftR:o0("<</>>/>>>",8),plusMin:WD("+/-",{beforeExpr:jD,binop:9,prefix:V1,startsExpr:e}),modulo:WD("%",{binop:10,startsExpr:e}),star:WD("*",{binop:10}),slash:o0("/",10),exponent:WD("**",{beforeExpr:jD,binop:11,rightAssociative:!0}),_in:ED("in",{beforeExpr:jD,binop:7}),_instanceof:ED("instanceof",{beforeExpr:jD,binop:7}),_break:ED("break"),_case:ED("case",{beforeExpr:jD}),_catch:ED("catch"),_continue:ED("continue"),_debugger:ED("debugger"),_default:ED("default",{beforeExpr:jD}),_else:ED("else",{beforeExpr:jD}),_finally:ED("finally"),_function:ED("function",{startsExpr:e}),_if:ED("if"),_return:ED("return",{beforeExpr:jD}),_switch:ED("switch"),_throw:ED("throw",{beforeExpr:jD,prefix:V1,startsExpr:e}),_try:ED("try"),_var:ED("var"),_const:ED("const"),_with:ED("with"),_new:ED("new",{beforeExpr:jD,startsExpr:e}),_this:ED("this",{startsExpr:e}),_super:ED("super",{startsExpr:e}),_class:ED("class",{startsExpr:e}),_extends:ED("extends",{beforeExpr:jD}),_export:ED("export"),_import:ED("import",{startsExpr:e}),_null:ED("null",{startsExpr:e}),_true:ED("true",{startsExpr:e}),_false:ED("false",{startsExpr:e}),_typeof:ED("typeof",{beforeExpr:jD,prefix:V1,startsExpr:e}),_void:ED("void",{beforeExpr:jD,prefix:V1,startsExpr:e}),_delete:ED("delete",{beforeExpr:jD,prefix:V1,startsExpr:e}),_do:ED("do",{isLoop:oH,beforeExpr:jD}),_for:ED("for",{isLoop:oH}),_while:ED("while",{isLoop:oH}),_as:LD("as",{startsExpr:e}),_assert:LD("assert",{startsExpr:e}),_async:LD("async",{startsExpr:e}),_await:LD("await",{startsExpr:e}),_defer:LD("defer",{startsExpr:e}),_from:LD("from",{startsExpr:e}),_get:LD("get",{startsExpr:e}),_let:LD("let",{startsExpr:e}),_meta:LD("meta",{startsExpr:e}),_of:LD("of",{startsExpr:e}),_sent:LD("sent",{startsExpr:e}),_set:LD("set",{startsExpr:e}),_source:LD("source",{startsExpr:e}),_static:LD("static",{startsExpr:e}),_using:LD("using",{startsExpr:e}),_yield:LD("yield",{startsExpr:e}),_asserts:LD("asserts",{startsExpr:e}),_checks:LD("checks",{startsExpr:e}),_exports:LD("exports",{startsExpr:e}),_global:LD("global",{startsExpr:e}),_implements:LD("implements",{startsExpr:e}),_intrinsic:LD("intrinsic",{startsExpr:e}),_infer:LD("infer",{startsExpr:e}),_is:LD("is",{startsExpr:e}),_mixins:LD("mixins",{startsExpr:e}),_proto:LD("proto",{startsExpr:e}),_require:LD("require",{startsExpr:e}),_satisfies:LD("satisfies",{startsExpr:e}),_keyof:LD("keyof",{startsExpr:e}),_readonly:LD("readonly",{startsExpr:e}),_unique:LD("unique",{startsExpr:e}),_abstract:LD("abstract",{startsExpr:e}),_declare:LD("declare",{startsExpr:e}),_enum:LD("enum",{startsExpr:e}),_module:LD("module",{startsExpr:e}),_namespace:LD("namespace",{startsExpr:e}),_interface:LD("interface",{startsExpr:e}),_type:LD("type",{startsExpr:e}),_opaque:LD("opaque",{startsExpr:e}),name:WD("name",{startsExpr:e}),placeholder:WD("%%",{startsExpr:e}),string:WD("string",{startsExpr:e}),num:WD("num",{startsExpr:e}),bigint:WD("bigint",{startsExpr:e}),decimal:WD("decimal",{startsExpr:e}),regexp:WD("regexp",{startsExpr:e}),privateName:WD("#name",{startsExpr:e}),eof:WD("eof"),jsxName:WD("jsxName"),jsxText:WD("jsxText",{beforeExpr:jD}),jsxTagStart:WD("jsxTagStart",{startsExpr:e}),jsxTagEnd:WD("jsxTagEnd")};function kD(D){return D>=93&&D<=133}function FUD(D){return D<=92}function d6(D){return D>=58&&D<=133}function v_(D){return D>=58&&D<=137}function WUD(D){return KI[D]}function D7(D){return ZI[D]}function KUD(D){return D>=29&&D<=33}function H_(D){return D>=129&&D<=131}function ZUD(D){return D>=90&&D<=92}function qI(D){return D>=58&&D<=92}function zUD(D){return D>=39&&D<=59}function qUD(D){return D===34}function GUD(D){return zI[D]}function VUD(D){return D>=121&&D<=123}function HUD(D){return D>=124&&D<=130}function I1(D){return FI[D]}function TY(D){return WI[D]}function IUD(D){return D===57}function SY(D){return D>=24&&D<=25}function A$(D){return T$[D]}T$[8].updateContext=(D)=>{D.pop()};T$[5].updateContext=T$[7].updateContext=T$[23].updateContext=(D)=>{D.push(CD.brace)};T$[22].updateContext=(D)=>{if(D[D.length-1]===CD.template)D.pop();else D.push(CD.template)};T$[143].updateContext=(D)=>{D.push(CD.j_expr,CD.j_oTag)};var GI="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",E_="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",BUD=new RegExp("["+GI+"]"),wUD=new RegExp("["+GI+E_+"]");GI=E_=null;var T_=[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],OUD=[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 $I(D,$){let U=65536;for(let J=0,Y=$.length;J<Y;J+=2){if(U+=$[J],U>D)return!1;if(U+=$[J+1],U>=D)return!0}return!1}function K$(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&&BUD.test(String.fromCharCode(D));return $I(D,T_)}function v4(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&&wUD.test(String.fromCharCode(D));return $I(D,T_)||$I(D,OUD)}var VI={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"]},jUD=new Set(VI.keyword),NUD=new Set(VI.strict),LUD=new Set(VI.strictBind);function P_(D,$){return $&&D==="await"||D==="enum"}function S_(D,$){return P_(D,$)||NUD.has(D)}function b_(D){return LUD.has(D)}function C_(D,$){return S_(D,$)||b_(D)}function RUD(D){return jUD.has(D)}function MUD(D,$,U){return D===64&&$===64&&K$(U)}var AUD=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 vUD(D){return AUD.has(D)}class bY{constructor(D){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=D}}class CY{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 bY(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,$,U){let J=this.currentScope();if($&8||$&16){this.checkRedeclarationInScope(J,D,$,U);let Y=J.names.get(D)||0;if($&16)Y=Y|4;else{if(!J.firstLexicalName)J.firstLexicalName=D;Y=Y|2}if(J.names.set(D,Y),$&8)this.maybeExportDefined(J,D)}else if($&4){for(let Y=this.scopeStack.length-1;Y>=0;--Y)if(J=this.scopeStack[Y],this.checkRedeclarationInScope(J,D,$,U),J.names.set(D,(J.names.get(D)||0)|1),this.maybeExportDefined(J,D),J.flags&1667)break}if(this.parser.inModule&&J.flags&1)this.undefinedExports.delete(D)}maybeExportDefined(D,$){if(this.parser.inModule&&D.flags&1)this.undefinedExports.delete($)}checkRedeclarationInScope(D,$,U,J){if(this.isRedeclaredInScope(D,$,U))this.parser.raise(M.VarRedeclaration,J,{identifierName:$})}isRedeclaredInScope(D,$,U){if(!(U&1))return!1;if(U&8)return D.names.has($);let J=D.names.get($)||0;if(U&16)return(J&2)>0||!this.treatFunctionsAsVarInScope(D)&&(J&1)>0;return(J&2)>0&&!(D.flags&8&&D.firstLexicalName===$)||!this.treatFunctionsAsVarInScope(D)&&(J&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 k_ extends bY{constructor(...D){super(...D);this.declareFunctions=new Set}}class u_ extends CY{createScope(D){return new k_(D)}declareName(D,$,U){let J=this.currentScope();if($&2048){this.checkRedeclarationInScope(J,D,$,U),this.maybeExportDefined(J,D),J.declareFunctions.add(D);return}super.declareName(D,$,U)}isRedeclaredInScope(D,$,U){if(super.isRedeclaredInScope(D,$,U))return!0;if(U&2048&&!D.declareFunctions.has($)){let J=D.names.get($);return(J&4)>0||(J&2)>0}return!1}checkLocalExport(D){if(!this.scopeStack[0].declareFunctions.has(D.name))super.checkLocalExport(D)}}var EUD=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),KD=W$`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:U})=>`Enum \`${D}\` has type \`${U}\`, so the initializer of \`${$}\` needs to be a ${U} 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:U})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${$}\`, consider using \`${U}\`, 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 TUD(D){return D.type==="DeclareExportAllDeclaration"||D.type==="DeclareExportDeclaration"&&(!D.declaration||D.declaration.type!=="TypeAlias"&&D.declaration.type!=="InterfaceDeclaration")}function I_(D){return D.importKind==="type"||D.importKind==="typeof"}var PUD={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function SUD(D,$){let U=[],J=[];for(let Y=0;Y<D.length;Y++)($(D[Y],Y,D)?U:J).push(D[Y]);return[U,J]}var bUD=/\*?\s*@((?:no)?flow)\b/,CUD=(D)=>class extends D{constructor(...U){super(...U);this.flowPragma=void 0}getScopeHandler(){return u_}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(U,J){if(U!==134&&U!==13&&U!==28){if(this.flowPragma===void 0)this.flowPragma=null}super.finishToken(U,J)}addComment(U){if(this.flowPragma===void 0){let J=bUD.exec(U.value);if(!J);else if(J[1]==="flow")this.flowPragma="flow";else if(J[1]==="noflow")this.flowPragma="noflow";else throw Error("Unexpected flow pragma")}super.addComment(U)}flowParseTypeInitialiser(U){let J=this.state.inType;this.state.inType=!0,this.expect(U||14);let Y=this.flowParseType();return this.state.inType=J,Y}flowParsePredicate(){let U=this.startNode(),J=this.state.startLoc;if(this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>J.index+1)this.raise(KD.UnexpectedSpaceBetweenModuloChecks,J);if(this.eat(10))return U.value=super.parseExpression(),this.expect(11),this.finishNode(U,"DeclaredPredicate");else return this.finishNode(U,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let U=this.state.inType;this.state.inType=!0,this.expect(14);let J=null,Y=null;if(this.match(54))this.state.inType=U,Y=this.flowParsePredicate();else if(J=this.flowParseType(),this.state.inType=U,this.match(54))Y=this.flowParsePredicate();return[J,Y]}flowParseDeclareClass(U){return this.next(),this.flowParseInterfaceish(U,!0),this.finishNode(U,"DeclareClass")}flowParseDeclareFunction(U){this.next();let J=U.id=this.parseIdentifier(),Y=this.startNode(),X=this.startNode();if(this.match(47))Y.typeParameters=this.flowParseTypeParameterDeclaration();else Y.typeParameters=null;this.expect(10);let Q=this.flowParseFunctionTypeParams();return Y.params=Q.params,Y.rest=Q.rest,Y.this=Q._this,this.expect(11),[Y.returnType,U.predicate]=this.flowParseTypeAndPredicateInitialiser(),X.typeAnnotation=this.finishNode(Y,"FunctionTypeAnnotation"),J.typeAnnotation=this.finishNode(X,"TypeAnnotation"),this.resetEndLocation(J),this.semicolon(),this.scope.declareName(U.id.name,2048,U.id.loc.start),this.finishNode(U,"DeclareFunction")}flowParseDeclare(U,J){if(this.match(80))return this.flowParseDeclareClass(U);else if(this.match(68))return this.flowParseDeclareFunction(U);else if(this.match(74))return this.flowParseDeclareVariable(U);else if(this.eatContextual(127))if(this.match(16))return this.flowParseDeclareModuleExports(U);else{if(J)this.raise(KD.NestedDeclareModule,this.state.lastTokStartLoc);return this.flowParseDeclareModule(U)}else if(this.isContextual(130))return this.flowParseDeclareTypeAlias(U);else if(this.isContextual(131))return this.flowParseDeclareOpaqueType(U);else if(this.isContextual(129))return this.flowParseDeclareInterface(U);else if(this.match(82))return this.flowParseDeclareExportDeclaration(U,J);throw this.unexpected()}flowParseDeclareVariable(U){return this.next(),U.id=this.flowParseTypeAnnotatableIdentifier(),this.scope.declareName(U.id.name,5,U.id.loc.start),this.semicolon(),this.finishNode(U,"DeclareVariable")}flowParseDeclareModule(U){if(this.scope.enter(0),this.match(134))U.id=super.parseExprAtom();else U.id=this.parseIdentifier();let J=U.body=this.startNode(),Y=J.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(KD.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc);Y.push(super.parseImport(F))}else this.expectContextual(125,KD.UnsupportedStatementInDeclareModule),Y.push(this.flowParseDeclare(F,!0))}this.scope.exit(),this.expect(8),this.finishNode(J,"BlockStatement");let X=null,Q=!1;return Y.forEach((F)=>{if(TUD(F)){if(X==="CommonJS")this.raise(KD.AmbiguousDeclareModuleKind,F);X="ES"}else if(F.type==="DeclareModuleExports"){if(Q)this.raise(KD.DuplicateDeclareModuleExports,F);if(X==="ES")this.raise(KD.AmbiguousDeclareModuleKind,F);X="CommonJS",Q=!0}}),U.kind=X||"CommonJS",this.finishNode(U,"DeclareModule")}flowParseDeclareExportDeclaration(U,J){if(this.expect(82),this.eat(65)){if(this.match(68)||this.match(80))U.declaration=this.flowParseDeclare(this.startNode());else U.declaration=this.flowParseType(),this.semicolon();return U.default=!0,this.finishNode(U,"DeclareExportDeclaration")}else{if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!J){let Y=this.state.value;throw this.raise(KD.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:Y,suggestion:PUD[Y]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return U.declaration=this.flowParseDeclare(this.startNode()),U.default=!1,this.finishNode(U,"DeclareExportDeclaration");else if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))if(U=this.parseExport(U,null),U.type==="ExportNamedDeclaration")return U.default=!1,delete U.exportKind,this.castNodeTo(U,"DeclareExportDeclaration");else return this.castNodeTo(U,"DeclareExportAllDeclaration")}throw this.unexpected()}flowParseDeclareModuleExports(U){return this.next(),this.expectContextual(111),U.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(U,"DeclareModuleExports")}flowParseDeclareTypeAlias(U){this.next();let J=this.flowParseTypeAlias(U);return this.castNodeTo(J,"DeclareTypeAlias"),J}flowParseDeclareOpaqueType(U){this.next();let J=this.flowParseOpaqueType(U,!0);return this.castNodeTo(J,"DeclareOpaqueType"),J}flowParseDeclareInterface(U){return this.next(),this.flowParseInterfaceish(U,!1),this.finishNode(U,"DeclareInterface")}flowParseInterfaceish(U,J){if(U.id=this.flowParseRestrictedIdentifier(!J,!0),this.scope.declareName(U.id.name,J?17:8201,U.id.loc.start),this.match(47))U.typeParameters=this.flowParseTypeParameterDeclaration();else U.typeParameters=null;if(U.extends=[],this.eat(81))do U.extends.push(this.flowParseInterfaceExtends());while(!J&&this.eat(12));if(J){if(U.implements=[],U.mixins=[],this.eatContextual(117))do U.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do U.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}U.body=this.flowParseObjectType({allowStatic:J,allowExact:!1,allowSpread:!1,allowProto:J,allowInexact:!1})}flowParseInterfaceExtends(){let U=this.startNode();if(U.id=this.flowParseQualifiedTypeIdentifier(),this.match(47))U.typeParameters=this.flowParseTypeParameterInstantiation();else U.typeParameters=null;return this.finishNode(U,"InterfaceExtends")}flowParseInterface(U){return this.flowParseInterfaceish(U,!1),this.finishNode(U,"InterfaceDeclaration")}checkNotUnderscore(U){if(U==="_")this.raise(KD.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(U,J,Y){if(!EUD.has(U))return;this.raise(Y?KD.AssignReservedType:KD.UnexpectedReservedType,J,{reservedType:U})}flowParseRestrictedIdentifierName(U,J){return this.checkReservedType(this.state.value,this.state.startLoc,J),this.parseIdentifierName(U)}flowParseRestrictedIdentifier(U,J){let Y=this.startNode(),X=this.flowParseRestrictedIdentifierName(U,J);return this.createIdentifier(Y,X)}flowParseTypeAlias(U){if(U.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(U.id.name,8201,U.id.loc.start),this.match(47))U.typeParameters=this.flowParseTypeParameterDeclaration();else U.typeParameters=null;return U.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(U,"TypeAlias")}flowParseOpaqueType(U,J){if(this.expectContextual(130),U.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(U.id.name,8201,U.id.loc.start),this.match(47))U.typeParameters=this.flowParseTypeParameterDeclaration();else U.typeParameters=null;if(U.supertype=null,this.match(14))U.supertype=this.flowParseTypeInitialiser(14);if(U.impltype=null,!J)U.impltype=this.flowParseTypeInitialiser(29);return this.semicolon(),this.finishNode(U,"OpaqueType")}flowParseTypeParameterBound(){if(this.match(14)||this.isContextual(81)){let U=this.startNode();return this.next(),U.typeAnnotation=this.flowParseType(),this.finishNode(U,"TypeAnnotation")}}flowParseTypeParameter(U=!1){let J=this.state.startLoc,Y=this.startNode(),X=this.flowParseVariance();if(Y.name=this.flowParseRestrictedIdentifierName(),Y.variance=X,Y.bound=this.flowParseTypeParameterBound(),this.match(29))this.eat(29),Y.default=this.flowParseType();else if(U)this.raise(KD.MissingTypeParamDefault,J);return this.finishNode(Y,"TypeParameter")}flowParseTypeParameterDeclaration(){let U=this.state.inType,J=this.startNode();if(J.params=[],this.state.inType=!0,this.match(47)||this.match(143))this.next();else this.unexpected();let Y=!1;do{let X=this.flowParseTypeParameter(Y);if(J.params.push(X),X.default)Y=!0;if(!this.match(48))this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=U,this.finishNode(J,"TypeParameterDeclaration")}flowInTopLevelContext(U){if(this.curContext()!==CD.brace){let J=this.state.context;this.state.context=[J[0]];try{return U()}finally{this.state.context=J}}else return U()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()!==47)return;return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let U=this.startNode(),J=this.state.inType;if(this.state.inType=!0,U.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let Y=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!1;while(!this.match(48))if(U.params.push(this.flowParseType()),!this.match(48))this.expect(12);this.state.noAnonFunctionType=Y}),this.state.inType=J,!this.state.inType&&this.curContext()===CD.brace)this.reScan_lt_gt();return this.expect(48),this.finishNode(U,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let U=this.startNode(),J=this.state.inType;U.params=[],this.state.inType=!0,this.expect(47);while(!this.match(48))if(U.params.push(this.flowParseTypeOrImplicitInstantiation()),!this.match(48))this.expect(12);return this.expect(48),this.state.inType=J,this.finishNode(U,"TypeParameterInstantiation")}flowParseInterfaceType(){let U=this.startNode();if(this.expectContextual(129),U.extends=[],this.eat(81))do U.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return U.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(U,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(U,J,Y){if(U.static=J,this.lookahead().type===14)U.id=this.flowParseObjectPropertyKey(),U.key=this.flowParseTypeInitialiser();else U.id=null,U.key=this.flowParseType();return this.expect(3),U.value=this.flowParseTypeInitialiser(),U.variance=Y,this.finishNode(U,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(U,J){if(U.static=J,U.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10))U.method=!0,U.optional=!1,U.value=this.flowParseObjectTypeMethodish(this.startNodeAt(U.loc.start));else{if(U.method=!1,this.eat(17))U.optional=!0;U.value=this.flowParseTypeInitialiser()}return this.finishNode(U,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(U){if(U.params=[],U.rest=null,U.typeParameters=null,U.this=null,this.match(47))U.typeParameters=this.flowParseTypeParameterDeclaration();if(this.expect(10),this.match(78)){if(U.this=this.flowParseFunctionTypeParam(!0),U.this.name=null,!this.match(11))this.expect(12)}while(!this.match(11)&&!this.match(21))if(U.params.push(this.flowParseFunctionTypeParam(!1)),!this.match(11))this.expect(12);if(this.eat(21))U.rest=this.flowParseFunctionTypeParam(!1);return this.expect(11),U.returnType=this.flowParseTypeInitialiser(),this.finishNode(U,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(U,J){let Y=this.startNode();return U.static=J,U.value=this.flowParseObjectTypeMethodish(Y),this.finishNode(U,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:U,allowExact:J,allowSpread:Y,allowProto:X,allowInexact:Q}){let F=this.state.inType;this.state.inType=!0;let W=this.startNode();W.callProperties=[],W.properties=[],W.indexers=[],W.internalSlots=[];let K,Z,z=!1;if(J&&this.match(6))this.expect(6),K=9,Z=!0;else this.expect(5),K=8,Z=!1;W.exact=Z;while(!this.match(K)){let G=!1,V=null,I=null,H=this.startNode();if(X&&this.isContextual(118)){let j=this.lookahead();if(j.type!==14&&j.type!==17)this.next(),V=this.state.startLoc,U=!1}if(U&&this.isContextual(106)){let j=this.lookahead();if(j.type!==14&&j.type!==17)this.next(),G=!0}let w=this.flowParseVariance();if(this.eat(0)){if(V!=null)this.unexpected(V);if(this.eat(0)){if(w)this.unexpected(w.loc.start);W.internalSlots.push(this.flowParseObjectTypeInternalSlot(H,G))}else W.indexers.push(this.flowParseObjectTypeIndexer(H,G,w))}else if(this.match(10)||this.match(47)){if(V!=null)this.unexpected(V);if(w)this.unexpected(w.loc.start);W.callProperties.push(this.flowParseObjectTypeCallProperty(H,G))}else{let j="init";if(this.isContextual(99)||this.isContextual(104)){let N=this.lookahead();if(v_(N.type))j=this.state.value,this.next()}let B=this.flowParseObjectTypeProperty(H,G,V,w,j,Y,Q!=null?Q:!Z);if(B===null)z=!0,I=this.state.lastTokStartLoc;else W.properties.push(B)}if(this.flowObjectTypeSemicolon(),I&&!this.match(8)&&!this.match(9))this.raise(KD.UnexpectedExplicitInexactInObject,I)}if(this.expect(K),Y)W.inexact=z;let q=this.finishNode(W,"ObjectTypeAnnotation");return this.state.inType=F,q}flowParseObjectTypeProperty(U,J,Y,X,Q,F,W){if(this.eat(21)){if(this.match(12)||this.match(13)||this.match(8)||this.match(9)){if(!F)this.raise(KD.InexactInsideNonObject,this.state.lastTokStartLoc);else if(!W)this.raise(KD.InexactInsideExact,this.state.lastTokStartLoc);if(X)this.raise(KD.InexactVariance,X);return null}if(!F)this.raise(KD.UnexpectedSpreadType,this.state.lastTokStartLoc);if(Y!=null)this.unexpected(Y);if(X)this.raise(KD.SpreadVariance,X);return U.argument=this.flowParseType(),this.finishNode(U,"ObjectTypeSpreadProperty")}else{U.key=this.flowParseObjectPropertyKey(),U.static=J,U.proto=Y!=null,U.kind=Q;let K=!1;if(this.match(47)||this.match(10)){if(U.method=!0,Y!=null)this.unexpected(Y);if(X)this.unexpected(X.loc.start);if(U.value=this.flowParseObjectTypeMethodish(this.startNodeAt(U.loc.start)),Q==="get"||Q==="set")this.flowCheckGetterSetterParams(U);if(!F&&U.key.name==="constructor"&&U.value.this)this.raise(KD.ThisParamBannedInConstructor,U.value.this)}else{if(Q!=="init")this.unexpected();if(U.method=!1,this.eat(17))K=!0;U.value=this.flowParseTypeInitialiser(),U.variance=X}return U.optional=K,this.finishNode(U,"ObjectTypeProperty")}}flowCheckGetterSetterParams(U){let J=U.kind==="get"?0:1,Y=U.value.params.length+(U.value.rest?1:0);if(U.value.this)this.raise(U.kind==="get"?KD.GetterMayNotHaveThisParam:KD.SetterMayNotHaveThisParam,U.value.this);if(Y!==J)this.raise(U.kind==="get"?M.BadGetterArity:M.BadSetterArity,U);if(U.kind==="set"&&U.value.rest)this.raise(M.BadSetterRestParameter,U)}flowObjectTypeSemicolon(){if(!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9))this.unexpected()}flowParseQualifiedTypeIdentifier(U,J){U!=null||(U=this.state.startLoc);let Y=J||this.flowParseRestrictedIdentifier(!0);while(this.eat(16)){let X=this.startNodeAt(U);X.qualification=Y,X.id=this.flowParseRestrictedIdentifier(!0),Y=this.finishNode(X,"QualifiedTypeIdentifier")}return Y}flowParseGenericType(U,J){let Y=this.startNodeAt(U);if(Y.typeParameters=null,Y.id=this.flowParseQualifiedTypeIdentifier(U,J),this.match(47))Y.typeParameters=this.flowParseTypeParameterInstantiation();return this.finishNode(Y,"GenericTypeAnnotation")}flowParseTypeofType(){let U=this.startNode();return this.expect(87),U.argument=this.flowParsePrimaryType(),this.finishNode(U,"TypeofTypeAnnotation")}flowParseTupleType(){let U=this.startNode();U.types=[],this.expect(0);while(this.state.pos<this.length&&!this.match(3)){if(U.types.push(this.flowParseType()),this.match(3))break;this.expect(12)}return this.expect(3),this.finishNode(U,"TupleTypeAnnotation")}flowParseFunctionTypeParam(U){let J=null,Y=!1,X=null,Q=this.startNode(),F=this.lookahead(),W=this.state.type===78;if(F.type===14||F.type===17){if(W&&!U)this.raise(KD.ThisParamMustBeFirst,Q);if(J=this.parseIdentifier(W),this.eat(17)){if(Y=!0,W)this.raise(KD.ThisParamMayNotBeOptional,Q)}X=this.flowParseTypeInitialiser()}else X=this.flowParseType();return Q.name=J,Q.optional=Y,Q.typeAnnotation=X,this.finishNode(Q,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(U){let J=this.startNodeAt(U.loc.start);return J.name=null,J.optional=!1,J.typeAnnotation=U,this.finishNode(J,"FunctionTypeParam")}flowParseFunctionTypeParams(U=[]){let J=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(U.push(this.flowParseFunctionTypeParam(!1)),!this.match(11))this.expect(12);if(this.eat(21))J=this.flowParseFunctionTypeParam(!1);return{params:U,rest:J,_this:Y}}flowIdentToTypeAnnotation(U,J,Y){switch(Y.name){case"any":return this.finishNode(J,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(J,"BooleanTypeAnnotation");case"mixed":return this.finishNode(J,"MixedTypeAnnotation");case"empty":return this.finishNode(J,"EmptyTypeAnnotation");case"number":return this.finishNode(J,"NumberTypeAnnotation");case"string":return this.finishNode(J,"StringTypeAnnotation");case"symbol":return this.finishNode(J,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(Y.name),this.flowParseGenericType(U,Y)}}flowParsePrimaryType(){let U=this.state.startLoc,J=this.startNode(),Y,X,Q=!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,X=this.flowParseTupleType(),this.state.noAnonFunctionType=F,X;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(kD(this.state.type)||this.match(78)){let K=this.lookahead().type;Q=K!==17&&K!==14}else Q=!0;if(Q)if(this.state.noAnonFunctionType=!1,X=this.flowParseType(),this.state.noAnonFunctionType=F,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),X;else this.eat(12);if(X)Y=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(X)]);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 J.value=this.match(85),this.next(),this.finishNode(J,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",J);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",J);throw this.raise(KD.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(J,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(J,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(J,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(J,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(qI(this.state.type)){let W=I1(this.state.type);return this.next(),super.createIdentifier(J,W)}else if(kD(this.state.type)){if(this.isContextual(129))return this.flowParseInterfaceType();return this.flowIdentToTypeAnnotation(U,J,this.parseIdentifier())}}throw this.unexpected()}flowParsePostfixType(){let U=this.state.startLoc,J=this.flowParsePrimaryType(),Y=!1;while((this.match(0)||this.match(18))&&!this.canInsertSemicolon()){let X=this.startNodeAt(U),Q=this.eat(18);if(Y=Y||Q,this.expect(0),!Q&&this.match(3))X.elementType=J,this.next(),J=this.finishNode(X,"ArrayTypeAnnotation");else if(X.objectType=J,X.indexType=this.flowParseType(),this.expect(3),Y)X.optional=Q,J=this.finishNode(X,"OptionalIndexedAccessType");else J=this.finishNode(X,"IndexedAccessType")}return J}flowParsePrefixType(){let U=this.startNode();if(this.eat(17))return U.typeAnnotation=this.flowParsePrefixType(),this.finishNode(U,"NullableTypeAnnotation");else return this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let U=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let J=this.startNodeAt(U.loc.start);return J.params=[this.reinterpretTypeAsFunctionTypeParam(U)],J.rest=null,J.this=null,J.returnType=this.flowParseType(),J.typeParameters=null,this.finishNode(J,"FunctionTypeAnnotation")}return U}flowParseIntersectionType(){let U=this.startNode();this.eat(45);let J=this.flowParseAnonFunctionWithoutParens();U.types=[J];while(this.eat(45))U.types.push(this.flowParseAnonFunctionWithoutParens());return U.types.length===1?J:this.finishNode(U,"IntersectionTypeAnnotation")}flowParseUnionType(){let U=this.startNode();this.eat(43);let J=this.flowParseIntersectionType();U.types=[J];while(this.eat(43))U.types.push(this.flowParseIntersectionType());return U.types.length===1?J:this.finishNode(U,"UnionTypeAnnotation")}flowParseType(){let U=this.state.inType;this.state.inType=!0;let J=this.flowParseUnionType();return this.state.inType=U,J}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let U=this.state.startLoc,J=this.parseIdentifier();return this.flowParseGenericType(U,J)}else return this.flowParseType()}flowParseTypeAnnotation(){let U=this.startNode();return U.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(U,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(){let U=this.startNode(),J=this.parseIdentifierName();if(this.match(14))U.typeAnnotation=this.flowParseTypeAnnotation();return this.createIdentifier(U,J)}typeCastToParameter(U){return U.expression.typeAnnotation=U.typeAnnotation,this.resetEndLocation(U.expression,U.typeAnnotation.loc.end),U.expression}flowParseVariance(){let U=null;if(this.match(53)){if(U=this.startNode(),this.state.value==="+")U.kind="plus";else U.kind="minus";return this.next(),this.finishNode(U,"Variance")}return U}parseFunctionBody(U,J,Y=!1){if(J){this.forwardNoArrowParamsConversionAt(U,()=>super.parseFunctionBody(U,!0,Y));return}super.parseFunctionBody(U,!1,Y)}parseFunctionBodyAndFinish(U,J,Y=!1){if(this.match(14)){let X=this.startNode();[X.typeAnnotation,U.predicate]=this.flowParseTypeAndPredicateInitialiser(),U.returnType=X.typeAnnotation?this.finishNode(X,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(U,J,Y)}parseStatementLike(U){if(this.state.strict&&this.isContextual(129)){let Y=this.lookahead();if(d6(Y.type)){let X=this.startNode();return this.next(),this.flowParseInterface(X)}}else if(this.isContextual(126)){let Y=this.startNode();return this.next(),this.flowParseEnumDeclaration(Y)}let J=super.parseStatementLike(U);if(this.flowPragma===void 0&&!this.isValidDirective(J))this.flowPragma=null;return J}parseExpressionStatement(U,J,Y){if(J.type==="Identifier"){if(J.name==="declare"){if(this.match(80)||kD(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(U)}else if(kD(this.state.type)){if(J.name==="interface")return this.flowParseInterface(U);else if(J.name==="type")return this.flowParseTypeAlias(U);else if(J.name==="opaque")return this.flowParseOpaqueType(U,!1)}}return super.parseExpressionStatement(U,J,Y)}shouldParseExportDeclaration(){let{type:U}=this.state;if(U===126||H_(U))return!this.state.containsEsc;return super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:U}=this.state;if(U===126||H_(U))return this.state.containsEsc;return super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let U=this.startNode();return this.next(),this.flowParseEnumDeclaration(U)}return super.parseExportDefaultExpression()}parseConditional(U,J,Y){if(!this.match(17))return U;if(this.state.maybeInArrowParameters){let q=this.lookaheadCharCode();if(q===44||q===61||q===58||q===41)return this.setOptionalParametersError(Y),U}this.expect(17);let X=this.state.clone(),Q=this.state.noArrowAt,F=this.startNodeAt(J),{consequent:W,failed:K}=this.tryParseConditionalConsequent(),[Z,z]=this.getArrowLikeExpressions(W);if(K||z.length>0){let q=[...Q];if(z.length>0){this.state=X,this.state.noArrowAt=q;for(let G=0;G<z.length;G++)q.push(z[G].start);({consequent:W,failed:K}=this.tryParseConditionalConsequent()),[Z,z]=this.getArrowLikeExpressions(W)}if(K&&Z.length>1)this.raise(KD.AmbiguousConditionalArrow,X.startLoc);if(K&&Z.length===1)this.state=X,q.push(Z[0].start),this.state.noArrowAt=q,{consequent:W,failed:K}=this.tryParseConditionalConsequent()}return this.getArrowLikeExpressions(W,!0),this.state.noArrowAt=Q,this.expect(14),F.test=U,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 U=this.parseMaybeAssignAllowIn(),J=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:U,failed:J}}getArrowLikeExpressions(U,J){let Y=[U],X=[];while(Y.length!==0){let Q=Y.pop();if(Q.type==="ArrowFunctionExpression"&&Q.body.type!=="BlockStatement"){if(Q.typeParameters||!Q.returnType)this.finishArrowValidation(Q);else X.push(Q);Y.push(Q.body)}else if(Q.type==="ConditionalExpression")Y.push(Q.consequent),Y.push(Q.alternate)}if(J)return X.forEach((Q)=>this.finishArrowValidation(Q)),[X,[]];return SUD(X,(Q)=>Q.params.every((F)=>this.isAssignable(F,!0)))}finishArrowValidation(U){var J;this.toAssignableList(U.params,(J=U.extra)==null?void 0:J.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(U,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(U,J){let Y;if(this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(U.start)))this.state.noArrowParamsConversionAt.push(this.state.start),Y=J(),this.state.noArrowParamsConversionAt.pop();else Y=J();return Y}parseParenItem(U,J){let Y=super.parseParenItem(U,J);if(this.eat(17))Y.optional=!0,this.resetEndLocation(U);if(this.match(14)){let X=this.startNodeAt(J);return X.expression=Y,X.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(X,"TypeCastExpression")}return Y}assertModuleNodeAllowed(U){if(U.type==="ImportDeclaration"&&(U.importKind==="type"||U.importKind==="typeof")||U.type==="ExportNamedDeclaration"&&U.exportKind==="type"||U.type==="ExportAllDeclaration"&&U.exportKind==="type")return;super.assertModuleNodeAllowed(U)}parseExportDeclaration(U){if(this.isContextual(130)){U.exportKind="type";let J=this.startNode();if(this.next(),this.match(5))return U.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(U),null;else return this.flowParseTypeAlias(J)}else if(this.isContextual(131)){U.exportKind="type";let J=this.startNode();return this.next(),this.flowParseOpaqueType(J,!1)}else if(this.isContextual(129)){U.exportKind="type";let J=this.startNode();return this.next(),this.flowParseInterface(J)}else if(this.isContextual(126)){U.exportKind="value";let J=this.startNode();return this.next(),this.flowParseEnumDeclaration(J)}else return super.parseExportDeclaration(U)}eatExportStar(U){if(super.eatExportStar(U))return!0;if(this.isContextual(130)&&this.lookahead().type===55)return U.exportKind="type",this.next(),this.next(),!0;return!1}maybeParseExportNamespaceSpecifier(U){let{startLoc:J}=this.state,Y=super.maybeParseExportNamespaceSpecifier(U);if(Y&&U.exportKind==="type")this.unexpected(J);return Y}parseClassId(U,J,Y){if(super.parseClassId(U,J,Y),this.match(47))U.typeParameters=this.flowParseTypeParameterDeclaration()}parseClassMember(U,J,Y){let{startLoc:X}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(U,J))return;J.declare=!0}if(super.parseClassMember(U,J,Y),J.declare){if(J.type!=="ClassProperty"&&J.type!=="ClassPrivateProperty"&&J.type!=="PropertyDefinition")this.raise(KD.DeclareClassElement,X);else if(J.value)this.raise(KD.DeclareClassFieldInitializer,J.value)}}isIterator(U){return U==="iterator"||U==="asyncIterator"}readIterator(){let U=super.readWord1(),J="@@"+U;if(!this.isIterator(U)||!this.state.inType)this.raise(M.InvalidIdentifier,this.state.curPosition(),{identifierName:J});this.finishToken(132,J)}getTokenFromCode(U){let J=this.input.charCodeAt(this.state.pos+1);if(U===123&&J===124)this.finishOp(6,2);else if(this.state.inType&&(U===62||U===60))this.finishOp(U===62?48:47,1);else if(this.state.inType&&U===63)if(J===46)this.finishOp(18,2);else this.finishOp(17,1);else if(MUD(U,J,this.input.charCodeAt(this.state.pos+2)))this.state.pos+=2,this.readIterator();else super.getTokenFromCode(U)}isAssignable(U,J){if(U.type==="TypeCastExpression")return this.isAssignable(U.expression,J);else return super.isAssignable(U,J)}toAssignable(U,J=!1){if(!J&&U.type==="AssignmentExpression"&&U.left.type==="TypeCastExpression")U.left=this.typeCastToParameter(U.left);super.toAssignable(U,J)}toAssignableList(U,J,Y){for(let X=0;X<U.length;X++){let Q=U[X];if((Q==null?void 0:Q.type)==="TypeCastExpression")U[X]=this.typeCastToParameter(Q)}super.toAssignableList(U,J,Y)}toReferencedList(U,J){for(let X=0;X<U.length;X++){var Y;let Q=U[X];if(Q&&Q.type==="TypeCastExpression"&&!((Y=Q.extra)!=null&&Y.parenthesized)&&(U.length>1||!J))this.raise(KD.TypeCastInPattern,Q.typeAnnotation)}return U}parseArrayLike(U,J,Y){let X=super.parseArrayLike(U,J,Y);if(Y!=null&&!this.state.maybeInArrowParameters)this.toReferencedList(X.elements);return X}isValidLVal(U,J,Y,X){return U==="TypeCastExpression"||super.isValidLVal(U,J,Y,X)}parseClassProperty(U){if(this.match(14))U.typeAnnotation=this.flowParseTypeAnnotation();return super.parseClassProperty(U)}parseClassPrivateProperty(U){if(this.match(14))U.typeAnnotation=this.flowParseTypeAnnotation();return super.parseClassPrivateProperty(U)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(U){return!this.match(14)&&super.isNonstaticConstructor(U)}pushClassMethod(U,J,Y,X,Q,F){if(J.variance)this.unexpected(J.variance.loc.start);if(delete J.variance,this.match(47))J.typeParameters=this.flowParseTypeParameterDeclaration();if(super.pushClassMethod(U,J,Y,X,Q,F),J.params&&Q){let W=J.params;if(W.length>0&&this.isThisParam(W[0]))this.raise(KD.ThisParamBannedInConstructor,J)}else if(J.type==="MethodDefinition"&&Q&&J.value.params){let W=J.value.params;if(W.length>0&&this.isThisParam(W[0]))this.raise(KD.ThisParamBannedInConstructor,J)}}pushClassPrivateMethod(U,J,Y,X){if(J.variance)this.unexpected(J.variance.loc.start);if(delete J.variance,this.match(47))J.typeParameters=this.flowParseTypeParameterDeclaration();super.pushClassPrivateMethod(U,J,Y,X)}parseClassSuper(U){if(super.parseClassSuper(U),U.superClass&&(this.match(47)||this.match(51)))U.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression();if(this.isContextual(113)){this.next();let J=U.implements=[];do{let Y=this.startNode();if(Y.id=this.flowParseRestrictedIdentifier(!0),this.match(47))Y.typeParameters=this.flowParseTypeParameterInstantiation();else Y.typeParameters=null;J.push(this.finishNode(Y,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(U){super.checkGetterSetterParams(U);let J=this.getObjectOrClassMethodParams(U);if(J.length>0){let Y=J[0];if(this.isThisParam(Y)&&U.kind==="get")this.raise(KD.GetterMayNotHaveThisParam,Y);else if(this.isThisParam(Y))this.raise(KD.SetterMayNotHaveThisParam,Y)}}parsePropertyNamePrefixOperator(U){U.variance=this.flowParseVariance()}parseObjPropValue(U,J,Y,X,Q,F,W){if(U.variance)this.unexpected(U.variance.loc.start);delete U.variance;let K;if(this.match(47)&&!F){if(K=this.flowParseTypeParameterDeclaration(),!this.match(10))this.unexpected()}let Z=super.parseObjPropValue(U,J,Y,X,Q,F,W);if(K)(Z.value||Z).typeParameters=K;return Z}parseFunctionParamType(U){if(this.eat(17)){if(U.type!=="Identifier")this.raise(KD.PatternIsOptional,U);if(this.isThisParam(U))this.raise(KD.ThisParamMayNotBeOptional,U);U.optional=!0}if(this.match(14))U.typeAnnotation=this.flowParseTypeAnnotation();else if(this.isThisParam(U))this.raise(KD.ThisParamAnnotationRequired,U);if(this.match(29)&&this.isThisParam(U))this.raise(KD.ThisParamNoDefault,U);return this.resetEndLocation(U),U}parseMaybeDefault(U,J){let Y=super.parseMaybeDefault(U,J);if(Y.type==="AssignmentPattern"&&Y.typeAnnotation&&Y.right.start<Y.typeAnnotation.start)this.raise(KD.TypeBeforeInitializer,Y.typeAnnotation);return Y}checkImportReflection(U){if(super.checkImportReflection(U),U.module&&U.importKind!=="value")this.raise(KD.ImportReflectionHasImportType,U.specifiers[0].loc.start)}parseImportSpecifierLocal(U,J,Y){J.local=I_(U)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),U.specifiers.push(this.finishImportSpecifier(J,Y))}isPotentialImportPhase(U){if(super.isPotentialImportPhase(U))return!0;if(this.isContextual(130)){if(!U)return!0;let J=this.lookaheadCharCode();return J===123||J===42}return!U&&this.isContextual(87)}applyImportPhase(U,J,Y,X){if(super.applyImportPhase(U,J,Y,X),J){if(!Y&&this.match(65))return;U.exportKind=Y==="type"?Y:"value"}else{if(Y==="type"&&this.match(55))this.unexpected();U.importKind=Y==="type"||Y==="typeof"?Y:"value"}}parseImportSpecifier(U,J,Y,X,Q){let F=U.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 z=this.parseIdentifier(!0);if(W!==null&&!d6(this.state.type))U.imported=z,U.importKind=W,U.local=this.cloneIdentifier(z);else U.imported=F,U.importKind=null,U.local=this.parseIdentifier()}else{if(W!==null&&d6(this.state.type))U.imported=this.parseIdentifier(!0),U.importKind=W;else{if(J)throw this.raise(M.ImportBindingIsString,U,{importName:F.value});U.imported=F,U.importKind=null}if(this.eatContextual(93))U.local=this.parseIdentifier();else K=!0,U.local=this.cloneIdentifier(U.imported)}let Z=I_(U);if(Y&&Z)this.raise(KD.ImportTypeShorthandOnlyInPureImport,U);if(Y||Z)this.checkReservedType(U.local.name,U.local.loc.start,!0);if(K&&!Y&&!Z)this.checkReservedWord(U.local.name,U.loc.start,!0,!0);return this.finishImportSpecifier(U,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(U,J){let Y=U.kind;if(Y!=="get"&&Y!=="set"&&this.match(47))U.typeParameters=this.flowParseTypeParameterDeclaration();super.parseFunctionParams(U,J)}parseVarId(U,J){if(super.parseVarId(U,J),this.match(14))U.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(U.id)}parseAsyncArrowFromCallExpression(U,J){if(this.match(14)){let Y=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,U.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=Y}return super.parseAsyncArrowFromCallExpression(U,J)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(U,J){var Y;let X=null,Q;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(X=this.state.clone(),Q=this.tryParse(()=>super.parseMaybeAssign(U,J),X),!Q.error)return Q.node;let{context:K}=this.state,Z=K[K.length-1];if(Z===CD.j_oTag||Z===CD.j_expr)K.pop()}if((Y=Q)!=null&&Y.error||this.match(47)){var F,W;X=X||this.state.clone();let K,Z=this.tryParse((q)=>{var G;K=this.flowParseTypeParameterDeclaration();let V=this.forwardNoArrowParamsConversionAt(K,()=>{let H=super.parseMaybeAssign(U,J);return this.resetStartLocationFromNode(H,K),H});if((G=V.extra)!=null&&G.parenthesized)q();let I=this.maybeUnwrapTypeCastExpression(V);if(I.type!=="ArrowFunctionExpression")q();return I.typeParameters=K,this.resetStartLocationFromNode(I,K),V},X),z=null;if(Z.node&&this.maybeUnwrapTypeCastExpression(Z.node).type==="ArrowFunctionExpression"){if(!Z.error&&!Z.aborted){if(Z.node.async)this.raise(KD.UnexpectedTypeParameterBeforeAsyncArrowFunction,K);return Z.node}z=Z.node}if((F=Q)!=null&&F.node)return this.state=Q.failState,Q.node;if(z)return this.state=Z.failState,z;if((W=Q)!=null&&W.thrown)throw Q.error;if(Z.thrown)throw Z.error;throw this.raise(KD.UnexpectedTokenAfterTypeParameter,K)}return super.parseMaybeAssign(U,J)}parseArrow(U){if(this.match(14)){let J=this.tryParse(()=>{let Y=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let X=this.startNode();if([X.typeAnnotation,U.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=Y,this.canInsertSemicolon())this.unexpected();if(!this.match(19))this.unexpected();return X});if(J.thrown)return null;if(J.error)this.state=J.failState;U.returnType=J.node.typeAnnotation?this.finishNode(J.node,"TypeAnnotation"):null}return super.parseArrow(U)}shouldParseArrow(U){return this.match(14)||super.shouldParseArrow(U)}setArrowFunctionParameters(U,J){if(this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(U.start)))U.params=J;else super.setArrowFunctionParameters(U,J)}checkParams(U,J,Y,X=!0){if(Y&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(U.start)))return;for(let Q=0;Q<U.params.length;Q++)if(this.isThisParam(U.params[Q])&&Q>0)this.raise(KD.ThisParamMustBeFirst,U.params[Q]);super.checkParams(U,J,Y,X)}parseParenAndDistinguishExpression(U){return super.parseParenAndDistinguishExpression(U&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(U,J,Y){if(U.type==="Identifier"&&U.name==="async"&&this.state.noArrowAt.includes(J.index)){this.next();let X=this.startNodeAt(J);X.callee=U,X.arguments=super.parseCallExpressionArguments(),U=this.finishNode(X,"CallExpression")}else if(U.type==="Identifier"&&U.name==="async"&&this.match(47)){let X=this.state.clone(),Q=this.tryParse((W)=>this.parseAsyncArrowWithTypeParameters(J)||W(),X);if(!Q.error&&!Q.aborted)return Q.node;let F=this.tryParse(()=>super.parseSubscripts(U,J,Y),X);if(F.node&&!F.error)return F.node;if(Q.node)return this.state=Q.failState,Q.node;if(F.node)return this.state=F.failState,F.node;throw Q.error||F.error}return super.parseSubscripts(U,J,Y)}parseSubscript(U,J,Y,X){if(this.match(18)&&this.isLookaheadToken_lt()){if(X.optionalChainMember=!0,Y)return X.stop=!0,U;this.next();let Q=this.startNodeAt(J);return Q.callee=U,Q.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),Q.arguments=this.parseCallExpressionArguments(),Q.optional=!0,this.finishCallExpression(Q,!0)}else if(!Y&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let Q=this.startNodeAt(J);Q.callee=U;let F=this.tryParse(()=>{if(Q.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),Q.arguments=super.parseCallExpressionArguments(),X.optionalChainMember)Q.optional=!1;return this.finishCallExpression(Q,X.optionalChainMember)});if(F.node){if(F.error)this.state=F.failState;return F.node}}return super.parseSubscript(U,J,Y,X)}parseNewCallee(U){super.parseNewCallee(U);let J=null;if(this.shouldParseTypes()&&this.match(47))J=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node;U.typeArguments=J}parseAsyncArrowWithTypeParameters(U){let J=this.startNodeAt(U);if(this.parseFunctionParams(J,!1),!this.parseArrow(J))return;return super.parseArrowExpression(J,void 0,!0)}readToken_mult_modulo(U){let J=this.input.charCodeAt(this.state.pos+1);if(U===42&&J===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(U)}readToken_pipe_amp(U){let J=this.input.charCodeAt(this.state.pos+1);if(U===124&&J===125){this.finishOp(9,2);return}super.readToken_pipe_amp(U)}parseTopLevel(U,J){let Y=super.parseTopLevel(U,J);if(this.state.hasFlowComment)this.raise(KD.UnterminatedFlowComment,this.state.curPosition());return Y}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(KD.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let U=this.skipFlowComment();if(U)this.state.pos+=U,this.state.hasFlowComment=!0;return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:U}=this.state,J=2;while([32,9].includes(this.input.charCodeAt(U+J)))J++;let Y=this.input.charCodeAt(J+U),X=this.input.charCodeAt(J+U+1);if(Y===58&&X===58)return J+2;if(this.input.slice(J+U,J+U+12)==="flow-include")return J+12;if(Y===58&&X!==58)return J;return!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(M.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(U,{enumName:J,memberName:Y}){this.raise(KD.EnumBooleanMemberNotInitialized,U,{memberName:Y,enumName:J})}flowEnumErrorInvalidMemberInitializer(U,J){return this.raise(!J.explicitType?KD.EnumInvalidMemberInitializerUnknownType:J.explicitType==="symbol"?KD.EnumInvalidMemberInitializerSymbolType:KD.EnumInvalidMemberInitializerPrimaryType,U,J)}flowEnumErrorNumberMemberNotInitialized(U,J){this.raise(KD.EnumNumberMemberNotInitialized,U,J)}flowEnumErrorStringMemberInconsistentlyInitialized(U,J){this.raise(KD.EnumStringMemberInconsistentlyInitialized,U,J)}flowEnumMemberInit(){let U=this.state.startLoc,J=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let Y=this.parseNumericLiteral(this.state.value);if(J())return{type:"number",loc:Y.loc.start,value:Y};return{type:"invalid",loc:U}}case 134:{let Y=this.parseStringLiteral(this.state.value);if(J())return{type:"string",loc:Y.loc.start,value:Y};return{type:"invalid",loc:U}}case 85:case 86:{let Y=this.parseBooleanLiteral(this.match(85));if(J())return{type:"boolean",loc:Y.loc.start,value:Y};return{type:"invalid",loc:U}}default:return{type:"invalid",loc:U}}}flowEnumMemberRaw(){let U=this.state.startLoc,J=this.parseIdentifier(!0),Y=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:U};return{id:J,init:Y}}flowEnumCheckExplicitTypeMismatch(U,J,Y){let{explicitType:X}=J;if(X===null)return;if(X!==Y)this.flowEnumErrorInvalidMemberInitializer(U,J)}flowEnumMembers({enumName:U,explicitType:J}){let Y=new Set,X={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},Q=!1;while(!this.match(8)){if(this.eat(21)){Q=!0;break}let F=this.startNode(),{id:W,init:K}=this.flowEnumMemberRaw(),Z=W.name;if(Z==="")continue;if(/^[a-z]/.test(Z))this.raise(KD.EnumInvalidMemberName,W,{memberName:Z,suggestion:Z[0].toUpperCase()+Z.slice(1),enumName:U});if(Y.has(Z))this.raise(KD.EnumDuplicateMemberName,W,{memberName:Z,enumName:U});Y.add(Z);let z={enumName:U,explicitType:J,memberName:Z};switch(F.id=W,K.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(K.loc,z,"boolean"),F.init=K.value,X.booleanMembers.push(this.finishNode(F,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(K.loc,z,"number"),F.init=K.value,X.numberMembers.push(this.finishNode(F,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(K.loc,z,"string"),F.init=K.value,X.stringMembers.push(this.finishNode(F,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(K.loc,z);case"none":switch(J){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(K.loc,z);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(K.loc,z);break;default:X.defaultedMembers.push(this.finishNode(F,"EnumDefaultedMember"))}}if(!this.match(8))this.expect(12)}return{members:X,hasUnknownMembers:Q}}flowEnumStringMembers(U,J,{enumName:Y}){if(U.length===0)return J;else if(J.length===0)return U;else if(J.length>U.length){for(let X of U)this.flowEnumErrorStringMemberInconsistentlyInitialized(X,{enumName:Y});return J}else{for(let X of J)this.flowEnumErrorStringMemberInconsistentlyInitialized(X,{enumName:Y});return U}}flowEnumParseExplicitType({enumName:U}){if(!this.eatContextual(102))return null;if(!kD(this.state.type))throw this.raise(KD.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:U});let{value:J}=this.state;if(this.next(),J!=="boolean"&&J!=="number"&&J!=="string"&&J!=="symbol")this.raise(KD.EnumInvalidExplicitType,this.state.startLoc,{enumName:U,invalidEnumType:J});return J}flowEnumBody(U,J){let Y=J.name,X=J.loc.start,Q=this.flowEnumParseExplicitType({enumName:Y});this.expect(5);let{members:F,hasUnknownMembers:W}=this.flowEnumMembers({enumName:Y,explicitType:Q});switch(U.hasUnknownMembers=W,Q){case"boolean":return U.explicitType=!0,U.members=F.booleanMembers,this.expect(8),this.finishNode(U,"EnumBooleanBody");case"number":return U.explicitType=!0,U.members=F.numberMembers,this.expect(8),this.finishNode(U,"EnumNumberBody");case"string":return U.explicitType=!0,U.members=this.flowEnumStringMembers(F.stringMembers,F.defaultedMembers,{enumName:Y}),this.expect(8),this.finishNode(U,"EnumStringBody");case"symbol":return U.members=F.defaultedMembers,this.expect(8),this.finishNode(U,"EnumSymbolBody");default:{let K=()=>{return U.members=[],this.expect(8),this.finishNode(U,"EnumStringBody")};U.explicitType=!1;let Z=F.booleanMembers.length,z=F.numberMembers.length,q=F.stringMembers.length,G=F.defaultedMembers.length;if(!Z&&!z&&!q&&!G)return K();else if(!Z&&!z)return U.members=this.flowEnumStringMembers(F.stringMembers,F.defaultedMembers,{enumName:Y}),this.expect(8),this.finishNode(U,"EnumStringBody");else if(!z&&!q&&Z>=G){for(let V of F.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(V.loc.start,{enumName:Y,memberName:V.id.name});return U.members=F.booleanMembers,this.expect(8),this.finishNode(U,"EnumBooleanBody")}else if(!Z&&!q&&z>=G){for(let V of F.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(V.loc.start,{enumName:Y,memberName:V.id.name});return U.members=F.numberMembers,this.expect(8),this.finishNode(U,"EnumNumberBody")}else return this.raise(KD.EnumInconsistentMemberValues,X,{enumName:Y}),K()}}}flowParseEnumDeclaration(U){let J=this.parseIdentifier();return U.id=J,U.body=this.flowEnumBody(this.startNode(),J),this.finishNode(U,"EnumDeclaration")}jsxParseOpeningElementAfterName(U){if(this.shouldParseTypes()){if(this.match(47)||this.match(51))U.typeArguments=this.flowParseTypeParameterInstantiationInExpression()}return super.jsxParseOpeningElementAfterName(U)}isLookaheadToken_lt(){let U=this.nextTokenStart();if(this.input.charCodeAt(U)===60){let J=this.input.charCodeAt(U+1);return J!==60&&J!==61}return!1}reScan_lt_gt(){let{type:U}=this.state;if(U===47)this.state.pos-=1,this.readToken_lt();else if(U===48)this.state.pos-=1,this.readToken_gt()}reScan_lt(){let{type:U}=this.state;if(U===51)return this.state.pos-=2,this.finishOp(47,1),47;return U}maybeUnwrapTypeCastExpression(U){return U.type==="TypeCastExpression"?U.expression:U}},kUD={__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:"♦"},uUD=/\r\n|[\r\n\u2028\u2029]/,AY=new RegExp(uUD.source,"g");function v2(D){switch(D){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function B_(D,$,U){for(let J=$;J<U;J++)if(v2(D.charCodeAt(J)))return!0;return!1}var aH=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,tH=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function _UD(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 A4=W$`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 H1(D){return D?D.type==="JSXOpeningFragment"||D.type==="JSXClosingFragment":!1}function A2(D){if(D.type==="JSXIdentifier")return D.name;if(D.type==="JSXNamespacedName")return D.namespace.name+":"+D.name.name;if(D.type==="JSXMemberExpression")return A2(D.object)+"."+A2(D.property);throw Error("Node had unexpected type: "+D.type)}var xUD=(D)=>class extends D{jsxReadToken(){let U="",J=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(A4.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}U+=this.input.slice(J,this.state.pos),this.finishToken(142,U);return;case 38:U+=this.input.slice(J,this.state.pos),U+=this.jsxReadEntity(),J=this.state.pos;break;case 62:case 125:default:if(v2(Y))U+=this.input.slice(J,this.state.pos),U+=this.jsxReadNewLine(!0),J=this.state.pos;else++this.state.pos}}}jsxReadNewLine(U){let J=this.input.charCodeAt(this.state.pos),Y;if(++this.state.pos,J===13&&this.input.charCodeAt(this.state.pos)===10)++this.state.pos,Y=U?`
`:`\r
`;else Y=String.fromCharCode(J);return++this.state.curLine,this.state.lineStart=this.state.pos,Y}jsxReadString(U){let J="",Y=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(M.UnterminatedString,this.state.startLoc);let X=this.input.charCodeAt(this.state.pos);if(X===U)break;if(X===38)J+=this.input.slice(Y,this.state.pos),J+=this.jsxReadEntity(),Y=this.state.pos;else if(v2(X))J+=this.input.slice(Y,this.state.pos),J+=this.jsxReadNewLine(!1),Y=this.state.pos;else++this.state.pos}J+=this.input.slice(Y,this.state.pos++),this.finishToken(134,J)}jsxReadEntity(){let U=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let J=10;if(this.codePointAtPos(this.state.pos)===120)J=16,++this.state.pos;let Y=this.readInt(J,void 0,!1,"bail");if(Y!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(Y)}else{let J=0,Y=!1;while(J++<10&&this.state.pos<this.length&&!(Y=this.codePointAtPos(this.state.pos)===59))++this.state.pos;if(Y){let X=this.input.slice(U,this.state.pos),Q=kUD[X];if(++this.state.pos,Q)return Q}}return this.state.pos=U,"&"}jsxReadWord(){let U,J=this.state.pos;do U=this.input.charCodeAt(++this.state.pos);while(v4(U)||U===45);this.finishToken(141,this.input.slice(J,this.state.pos))}jsxParseIdentifier(){let U=this.startNode();if(this.match(141))U.name=this.state.value;else if(qI(this.state.type))U.name=I1(this.state.type);else this.unexpected();return this.next(),this.finishNode(U,"JSXIdentifier")}jsxParseNamespacedName(){let U=this.state.startLoc,J=this.jsxParseIdentifier();if(!this.eat(14))return J;let Y=this.startNodeAt(U);return Y.namespace=J,Y.name=this.jsxParseIdentifier(),this.finishNode(Y,"JSXNamespacedName")}jsxParseElementName(){let U=this.state.startLoc,J=this.jsxParseNamespacedName();if(J.type==="JSXNamespacedName")return J;while(this.eat(16)){let Y=this.startNodeAt(U);Y.object=J,Y.property=this.jsxParseIdentifier(),J=this.finishNode(Y,"JSXMemberExpression")}return J}jsxParseAttributeValue(){let U;switch(this.state.type){case 5:if(U=this.startNode(),this.setContext(CD.brace),this.next(),U=this.jsxParseExpressionContainer(U,CD.j_oTag),U.expression.type==="JSXEmptyExpression")this.raise(A4.AttributeIsEmpty,U);return U;case 143:case 134:return this.parseExprAtom();default:throw this.raise(A4.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let U=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(U,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(U){return this.next(),U.expression=this.parseExpression(),this.setContext(CD.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(U,"JSXSpreadChild")}jsxParseExpressionContainer(U,J){if(this.match(8))U.expression=this.jsxParseEmptyExpression();else{let Y=this.parseExpression();U.expression=Y}return this.setContext(J),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(U,"JSXExpressionContainer")}jsxParseAttribute(){let U=this.startNode();if(this.match(5))return this.setContext(CD.brace),this.next(),this.expect(21),U.argument=this.parseMaybeAssignAllowIn(),this.setContext(CD.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(U,"JSXSpreadAttribute");return U.name=this.jsxParseNamespacedName(),U.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(U,"JSXAttribute")}jsxParseOpeningElementAt(U){let J=this.startNodeAt(U);if(this.eat(144))return this.finishNode(J,"JSXOpeningFragment");return J.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(J)}jsxParseOpeningElementAfterName(U){let J=[];while(!this.match(56)&&!this.match(144))J.push(this.jsxParseAttribute());return U.attributes=J,U.selfClosing=this.eat(56),this.expect(144),this.finishNode(U,"JSXOpeningElement")}jsxParseClosingElementAt(U){let J=this.startNodeAt(U);if(this.eat(144))return this.finishNode(J,"JSXClosingFragment");return J.name=this.jsxParseElementName(),this.expect(144),this.finishNode(J,"JSXClosingElement")}jsxParseElementAt(U){let J=this.startNodeAt(U),Y=[],X=this.jsxParseOpeningElementAt(U),Q=null;if(!X.selfClosing){D:for(;;)switch(this.state.type){case 143:if(U=this.state.startLoc,this.next(),this.eat(56)){Q=this.jsxParseClosingElementAt(U);break D}Y.push(this.jsxParseElementAt(U));break;case 142:Y.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let F=this.startNode();if(this.setContext(CD.brace),this.next(),this.match(21))Y.push(this.jsxParseSpreadChild(F));else Y.push(this.jsxParseExpressionContainer(F,CD.j_expr));break}default:this.unexpected()}if(H1(X)&&!H1(Q)&&Q!==null)this.raise(A4.MissingClosingTagFragment,Q);else if(!H1(X)&&H1(Q))this.raise(A4.MissingClosingTagElement,Q,{openingTagName:A2(X.name)});else if(!H1(X)&&!H1(Q)){if(A2(Q.name)!==A2(X.name))this.raise(A4.MissingClosingTagElement,Q,{openingTagName:A2(X.name)})}}if(H1(X))J.openingFragment=X,J.closingFragment=Q;else J.openingElement=X,J.closingElement=Q;if(J.children=Y,this.match(47))throw this.raise(A4.UnwrappedAdjacentJSXElements,this.state.startLoc);return H1(X)?this.finishNode(J,"JSXFragment"):this.finishNode(J,"JSXElement")}jsxParseElement(){let U=this.state.startLoc;return this.next(),this.jsxParseElementAt(U)}setContext(U){let{context:J}=this.state;J[J.length-1]=U}parseExprAtom(U){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(U)}skipSpace(){if(!this.curContext().preserveSpace)super.skipSpace()}getTokenFromCode(U){let J=this.curContext();if(J===CD.j_expr){this.jsxReadToken();return}if(J===CD.j_oTag||J===CD.j_cTag){if(K$(U)){this.jsxReadWord();return}if(U===62){++this.state.pos,this.finishToken(144);return}if((U===34||U===39)&&J===CD.j_oTag){this.jsxReadString(U);return}}if(U===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(U)}updateContext(U){let{context:J,type:Y}=this.state;if(Y===56&&U===143)J.splice(-2,2,CD.j_cTag),this.state.canStartJSXElement=!1;else if(Y===143)J.push(CD.j_oTag);else if(Y===144){let X=J[J.length-1];if(X===CD.j_oTag&&U===56||X===CD.j_cTag)J.pop(),this.state.canStartJSXElement=J[J.length-1]===CD.j_expr;else this.setContext(CD.j_expr),this.state.canStartJSXElement=!0}else this.state.canStartJSXElement=WUD(Y)}};class __ extends bY{constructor(...D){super(...D);this.tsNames=new Map}}class x_ extends CY{constructor(...D){super(...D);this.importsStack=[]}createScope(D){return this.importsStack.push(new Set),new __(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 U=this.importsStack.length;if(this.importsStack[U-1].has(D))return!0;if(!$&&U>1){for(let J=0;J<U-1;J++)if(this.importsStack[J].has(D))return!0}return!1}declareName(D,$,U){if($&4096){if(this.hasImport(D,!0))this.parser.raise(M.VarRedeclaration,U,{identifierName:D});this.importsStack[this.importsStack.length-1].add(D);return}let J=this.currentScope(),Y=J.tsNames.get(D)||0;if($&1024){this.maybeExportDefined(J,D),J.tsNames.set(D,Y|16);return}if(super.declareName(D,$,U),$&2){if(!($&1))this.checkRedeclarationInScope(J,D,$,U),this.maybeExportDefined(J,D);Y=Y|1}if($&256)Y=Y|2;if($&512)Y=Y|4;if($&128)Y=Y|8;if(Y)J.tsNames.set(D,Y)}isRedeclaredInScope(D,$,U){let J=D.tsNames.get($);if((J&2)>0){if(U&256){let Y=!!(U&512),X=(J&4)>0;return Y!==X}return!0}if(U&128&&(J&8)>0)if(D.names.get($)&2)return!!(U&1);else return!1;if(U&2&&(J&1)>0)return!0;return super.isRedeclaredInScope(D,$,U)}checkLocalExport(D){let{name:$}=D;if(this.hasImport($))return;let U=this.scopeStack.length;for(let J=U-1;J>=0;J--){let X=this.scopeStack[J].tsNames.get($);if((X&1)>0||(X&16)>0)return}super.checkLocalExport(D)}}class g_{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 PY(D,$){return(D?2:0)|($?1:0)}class f_{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[$,U]=D;if(!this.hasPlugin($))return!1;let J=this.plugins.get($);for(let Y of Object.keys(U))if((J==null?void 0:J[Y])!==U[Y])return!1;return!0}}getPluginOption(D,$){var U;return(U=this.plugins.get(D))==null?void 0:U[$]}}function y_(D,$){if(D.trailingComments===void 0)D.trailingComments=$;else D.trailingComments.unshift(...$)}function gUD(D,$){if(D.leadingComments===void 0)D.leadingComments=$;else D.leadingComments.unshift(...$)}function X7(D,$){if(D.innerComments===void 0)D.innerComments=$;else D.innerComments.unshift(...$)}function c6(D,$,U){let J=null,Y=$.length;while(J===null&&Y>0)J=$[--Y];if(J===null||J.start>U.start)X7(D,U.comments);else y_(J,U.comments)}class h_ extends f_{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,U=$.length;if(U===0)return;let J=U-1,Y=$[J];if(Y.start===D.end)Y.leadingNode=D,J--;let{start:X}=D;for(;J>=0;J--){let Q=$[J],F=Q.end;if(F>X)Q.containingNode=D,this.finalizeComment(Q),$.splice(J,1);else{if(F===X)Q.trailingNode=D;break}}}finalizeComment(D){var $;let{comments:U}=D;if(D.leadingNode!==null||D.trailingNode!==null){if(D.leadingNode!==null)y_(D.leadingNode,U);if(D.trailingNode!==null)gUD(D.trailingNode,U)}else{let{containingNode:J,start:Y}=D;if(this.input.charCodeAt(this.offsetToSourcePos(Y)-1)===44)switch(J.type){case"ObjectExpression":case"ObjectPattern":c6(J,J.properties,D);break;case"CallExpression":case"NewExpression":case"OptionalCallExpression":c6(J,J.arguments,D);break;case"ImportExpression":c6(J,[J.source,($=J.options)!=null?$:null],D);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":case"TSTypeParameterDeclaration":c6(J,J.params,D);break;case"ArrayExpression":case"ArrayPattern":c6(J,J.elements,D);break;case"ExportNamedDeclaration":case"ImportDeclaration":c6(J,J.specifiers,D);break;case"TSEnumDeclaration":c6(J,J.members,D);break;case"TSEnumBody":c6(J,J.members,D);break;case"TSInterfaceBody":c6(J,J.body,D);break;default:{if(J.type==="RecordExpression"){c6(J,J.properties,D);break}if(J.type==="TupleExpression"){c6(J,J.elements,D);break}X7(J,U)}}else X7(J,U)}}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:U}=$;if(U===0)return;let J=$[U-1];if(J.leadingNode===D)J.leadingNode=null}takeSurroundingComments(D,$,U){let{commentStack:J}=this.state,Y=J.length;if(Y===0)return;let X=Y-1;for(;X>=0;X--){let Q=J[X],F=Q.end;if(Q.start===U)Q.leadingNode=D;else if(F===$)Q.trailingNode=D;else if(F<$)break}}}class HI{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=[CD.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:U,startLine:J,startColumn:Y}){this.strict=D===!1?!1:D===!0?!0:$==="module",this.startIndex=U,this.curLine=J,this.lineStart=-Y,this.startLoc=this.endLoc=new E$(J,Y,U)}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 E$(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let D=new HI;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 fUD=function($){return $>=48&&$<=57},w_={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},vY={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 O_(D,$,U,J,Y,X){let Q=U,F=J,W=Y,K="",Z=null,z=U,{length:q}=$;for(;;){if(U>=q){X.unterminated(Q,F,W),K+=$.slice(z,U);break}let G=$.charCodeAt(U);if(yUD(D,G,$,U)){K+=$.slice(z,U);break}if(G===92){K+=$.slice(z,U);let V=hUD($,U,J,Y,D==="template",X);if(V.ch===null&&!Z)Z={pos:U,lineStart:J,curLine:Y};else K+=V.ch;({pos:U,lineStart:J,curLine:Y}=V),z=U}else if(G===8232||G===8233)++U,++Y,J=U;else if(G===10||G===13)if(D==="template"){if(K+=$.slice(z,U)+`
`,++U,G===13&&$.charCodeAt(U)===10)++U;++Y,z=J=U}else X.unterminated(Q,F,W);else++U}return{pos:U,str:K,firstInvalidLoc:Z,lineStart:J,curLine:Y,containsInvalid:!!Z}}function yUD(D,$,U,J){if(D==="template")return $===96||$===36&&U.charCodeAt(J+1)===123;return $===(D==="double"?34:39)}function hUD(D,$,U,J,Y,X){let Q=!Y;$++;let F=(K)=>({pos:$,ch:K,lineStart:U,curLine:J}),W=D.charCodeAt($++);switch(W){case 110:return F(`
`);case 114:return F("\r");case 120:{let K;return{code:K,pos:$}=UI(D,$,U,J,2,!1,Q,X),F(K===null?null:String.fromCharCode(K))}case 117:{let K;return{code:K,pos:$}=l_(D,$,U,J,Q,X),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:U=$,++J;case 8232:case 8233:return F("");case 56:case 57:if(Y)return F(null);else X.strictNumericEscape($-1,U,J);default:if(W>=48&&W<=55){let K=$-1,z=/^[0-7]+/.exec(D.slice(K,$+2))[0],q=parseInt(z,8);if(q>255)z=z.slice(0,-1),q=parseInt(z,8);$+=z.length-1;let G=D.charCodeAt($);if(z!=="0"||G===56||G===57)if(Y)return F(null);else X.strictNumericEscape(K,U,J);return F(String.fromCharCode(q))}return F(String.fromCharCode(W))}}function UI(D,$,U,J,Y,X,Q,F){let W=$,K;if({n:K,pos:$}=m_(D,$,U,J,16,Y,X,!1,F,!Q),K===null)if(Q)F.invalidEscapeSequence(W,U,J);else $=W-1;return{code:K,pos:$}}function m_(D,$,U,J,Y,X,Q,F,W,K){let Z=$,z=Y===16?w_.hex:w_.decBinOct,q=Y===16?vY.hex:Y===10?vY.dec:Y===8?vY.oct:vY.bin,G=!1,V=0;for(let I=0,H=X==null?1/0:X;I<H;++I){let w=D.charCodeAt($),j;if(w===95&&F!=="bail"){let B=D.charCodeAt($-1),N=D.charCodeAt($+1);if(!F){if(K)return{n:null,pos:$};W.numericSeparatorInEscapeSequence($,U,J)}else if(Number.isNaN(N)||!q(N)||z.has(B)||z.has(N)){if(K)return{n:null,pos:$};W.unexpectedNumericSeparator($,U,J)}++$;continue}if(w>=97)j=w-97+10;else if(w>=65)j=w-65+10;else if(fUD(w))j=w-48;else j=1/0;if(j>=Y)if(j<=9&&K)return{n:null,pos:$};else if(j<=9&&W.invalidDigit($,U,J,Y))j=0;else if(Q)j=0,G=!0;else break;++$,V=V*Y+j}if($===Z||X!=null&&$-Z!==X||G)return{n:null,pos:$};return{n:V,pos:$}}function l_(D,$,U,J,Y,X){let Q=D.charCodeAt($),F;if(Q===123){if(++$,{code:F,pos:$}=UI(D,$,U,J,D.indexOf("}",$)-$,!0,Y,X),++$,F!==null&&F>1114111)if(Y)X.invalidCodePoint($,U,J);else return{code:null,pos:$}}else({code:F,pos:$}=UI(D,$,U,J,4,!1,Y,X));return{code:F,pos:$}}function e5(D,$,U){return new E$(U,D-$,D)}var mUD=new Set([103,109,115,105,121,117,100,118]);class v${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 Y7(D.startLoc,D.endLoc)}}class c_ extends h_{constructor(D,$){super();this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(U,J,Y,X)=>{if(!(this.optionFlags&2048))return!1;return this.raise(M.InvalidDigit,e5(U,J,Y),{radix:X}),!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:(U,J,Y)=>{this.recordStrictModeErrors(M.StrictNumericEscape,e5(U,J,Y))},unterminated:(U,J,Y)=>{throw this.raise(M.UnterminatedString,e5(U-1,J,Y))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(M.StrictNumericEscape),unterminated:(U,J,Y)=>{throw this.raise(M.UnterminatedTemplate,e5(U,J,Y))}}),this.state=new HI,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 v$(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 aH.lastIndex=D,aH.test(this.input)?aH.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 tH.lastIndex=D,tH.test(this.input)?tH.lastIndex:D}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(D){let $=this.input.charCodeAt(D);if(($&64512)===55296&&++D<this.input.length){let U=this.input.charCodeAt(D);if((U&64512)===56320)$=65536+(($&1023)<<10)+(U&1023)}return $}setStrict(D){if(this.state.strict=D,D)this.state.strictErrors.forEach(([$,U])=>this.raise($,U)),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 U=this.state.pos,J=this.input.indexOf(D,U+2);if(J===-1)throw this.raise(M.UnterminatedComment,this.state.curPosition());this.state.pos=J+D.length,AY.lastIndex=U+2;while(AY.test(this.input)&&AY.lastIndex<=J)++this.state.curLine,this.state.lineStart=AY.lastIndex;if(this.isLookahead)return;let Y={type:"CommentBlock",value:this.input.slice(U+2,J),start:this.sourceToOffsetPos(U),end:this.sourceToOffsetPos(J+D.length),loc:new Y7($,this.state.curPosition())};if(this.optionFlags&256)this.pushToken(Y);return Y}skipLineComment(D){let $=this.state.pos,U;if(!this.isLookahead)U=this.state.curPosition();let J=this.input.charCodeAt(this.state.pos+=D);if(this.state.pos<this.length)while(!v2(J)&&++this.state.pos<this.length)J=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let Y=this.state.pos,Q={type:"CommentLine",value:this.input.slice($+D,Y),start:this.sourceToOffsetPos($),end:this.sourceToOffsetPos(Y),loc:new Y7(U,this.state.curPosition())};if(this.optionFlags&256)this.pushToken(Q);return Q}skipSpace(){let D=this.state.pos,$=this.optionFlags&4096?[]:null;D:while(this.state.pos<this.length){let U=this.input.charCodeAt(this.state.pos);switch(U){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 J=this.skipBlockComment("*/");if(J!==void 0)this.addComment(J),$==null||$.push(J);break}case 47:{let J=this.skipLineComment(2);if(J!==void 0)this.addComment(J),$==null||$.push(J);break}default:break D}break;default:if(_UD(U))++this.state.pos;else if(U===45&&!this.inModule&&this.optionFlags&8192){let J=this.state.pos;if(this.input.charCodeAt(J+1)===45&&this.input.charCodeAt(J+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(U===60&&!this.inModule&&this.optionFlags&8192){let J=this.state.pos;if(this.input.charCodeAt(J+1)===33&&this.input.charCodeAt(J+2)===45&&this.input.charCodeAt(J+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 U=this.state.pos,J={start:this.sourceToOffsetPos(D),end:this.sourceToOffsetPos(U),comments:$,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(J)}}finishToken(D,$){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let U=this.state.type;if(this.state.type=D,this.state.value=$,!this.isLookahead)this.updateContext(U)}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(K$($))++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(!v2(D)&&++this.state.pos<this.length)D=this.input.charCodeAt(this.state.pos);let U=this.input.slice($+2,this.state.pos);return this.finishToken(28,U),!0}readToken_mult_modulo(D){let $=D===42?55:54,U=1,J=this.input.charCodeAt(this.state.pos+1);if(D===42&&J===42)U++,J=this.input.charCodeAt(this.state.pos+2),$=57;if(J===61&&!this.state.inType)U++,$=D===37?33:30;this.finishOp($,U)}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 U=this.input.charCodeAt(D+2)===62?3:2;if(this.input.charCodeAt(D+U)===61){this.finishOp(30,U+1);return}this.finishOp(52,U);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(K$(D)){this.readWord(D);return}}throw this.raise(M.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(D)})}finishOp(D,$){let U=this.input.slice(this.state.pos,this.state.pos+$);this.state.pos+=$,this.finishToken(D,U)}readRegexp(){let D=this.state.startLoc,$=this.state.start+1,U,J,{pos:Y}=this.state;for(;;++Y){if(Y>=this.length)throw this.raise(M.UnterminatedRegExp,a0(D,1));let W=this.input.charCodeAt(Y);if(v2(W))throw this.raise(M.UnterminatedRegExp,a0(D,1));if(U)U=!1;else{if(W===91)J=!0;else if(W===93&&J)J=!1;else if(W===47&&!J)break;U=W===92}}let X=this.input.slice($,Y);++Y;let Q="",F=()=>a0(D,Y+2-$);while(Y<this.length){let W=this.codePointAtPos(Y),K=String.fromCharCode(W);if(mUD.has(W)){if(W===118){if(Q.includes("u"))this.raise(M.IncompatibleRegExpUVFlags,F())}else if(W===117){if(Q.includes("v"))this.raise(M.IncompatibleRegExpUVFlags,F())}if(Q.includes(K))this.raise(M.DuplicateRegExpFlags,F())}else if(v4(W)||W===92)this.raise(M.MalformedRegExpFlags,F());else break;++Y,Q+=K}this.state.pos=Y,this.finishToken(138,{pattern:X,flags:Q})}readInt(D,$,U=!1,J=!0){let{n:Y,pos:X}=m_(this.input,this.state.pos,this.state.lineStart,this.state.curLine,D,$,U,J,this.errorHandlers_readInt,!1);return this.state.pos=X,Y}readRadixNumber(D){let $=this.state.pos,U=this.state.curPosition(),J=!1;this.state.pos+=2;let Y=this.readInt(D);if(Y==null)this.raise(M.InvalidDigit,a0(U,2),{radix:D});let X=this.input.charCodeAt(this.state.pos);if(X===110)++this.state.pos,J=!0;else if(X===109)throw this.raise(M.InvalidDecimal,U);if(K$(this.codePointAtPos(this.state.pos)))throw this.raise(M.NumberIdentifier,this.state.curPosition());if(J){let Q=this.input.slice($,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,Q);return}this.finishToken(135,Y)}readNumber(D){let $=this.state.pos,U=this.state.curPosition(),J=!1,Y=!1,X=!1,Q=!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 q=this.input.slice($,this.state.pos);if(this.recordStrictModeErrors(M.StrictOctalLiteral,U),!this.state.strict){let G=q.indexOf("_");if(G>0)this.raise(M.ZeroDigitNumericSeparator,a0(U,G))}Q=F&&!/[89]/.test(q)}let W=this.input.charCodeAt(this.state.pos);if(W===46&&!Q)++this.state.pos,this.readInt(10),J=!0,W=this.input.charCodeAt(this.state.pos);if((W===69||W===101)&&!Q){if(W=this.input.charCodeAt(++this.state.pos),W===43||W===45)++this.state.pos;if(this.readInt(10)===null)this.raise(M.InvalidOrMissingExponent,U);J=!0,X=!0,W=this.input.charCodeAt(this.state.pos)}if(W===110){if(J||F)this.raise(M.InvalidBigIntLiteral,U);++this.state.pos,Y=!0}if(W===109){if(this.expectPlugin("decimal",this.state.curPosition()),X||F)this.raise(M.InvalidDecimal,U);++this.state.pos;var K=!0}if(K$(this.codePointAtPos(this.state.pos)))throw this.raise(M.NumberIdentifier,this.state.curPosition());let Z=this.input.slice($,this.state.pos).replace(/[_mn]/g,"");if(Y){this.finishToken(136,Z);return}if(K){this.finishToken(137,Z);return}let z=Q?parseInt(Z,8):parseFloat(Z);this.finishToken(135,z)}readCodePoint(D){let{code:$,pos:U}=l_(this.input,this.state.pos,this.state.lineStart,this.state.curLine,D,this.errorHandlers_readCodePoint);return this.state.pos=U,$}readString(D){let{str:$,pos:U,curLine:J,lineStart:Y}=O_(D===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=U+1,this.state.lineStart=Y,this.state.curLine=J,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:U,pos:J,curLine:Y,lineStart:X}=O_("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);if(this.state.pos=J+1,this.state.lineStart=X,this.state.curLine=Y,U)this.state.firstInvalidTemplateEscapePos=new E$(U.curLine,U.pos-U.lineStart,this.sourceToOffsetPos(U.pos));if(this.input.codePointAt(J)===96)this.finishToken(24,U?null:D+$+"`");else this.state.pos++,this.finishToken(25,U?null:D+$+"${")}recordStrictModeErrors(D,$){let U=$.index;if(this.state.strict&&!this.state.strictErrors.has(U))this.raise(D,$);else this.state.strictErrors.set(U,[D,$])}readWord1(D){this.state.containsEsc=!1;let $="",U=this.state.pos,J=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(v4(Y))this.state.pos+=Y<=65535?1:2;else if(Y===92){this.state.containsEsc=!0,$+=this.input.slice(J,this.state.pos);let X=this.state.curPosition(),Q=this.state.pos===U?K$:v4;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(M.MissingUnicodeEscape,this.state.curPosition()),J=this.state.pos-1;continue}++this.state.pos;let F=this.readCodePoint(!0);if(F!==null){if(!Q(F))this.raise(M.EscapedCharNotAnIdentifier,X);$+=String.fromCodePoint(F)}J=this.state.pos}else break}return $+this.input.slice(J,this.state.pos)}readWord(D){let $=this.readWord1(D),U=QI.get($);if(U!==void 0)this.finishToken(U,I1(U));else this.finishToken(132,$)}checkKeywordEscapes(){let{type:D}=this.state;if(qI(D)&&this.state.containsEsc)this.raise(M.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:I1(D)})}raise(D,$,U={}){let J=$ instanceof E$?$:$.loc.start,Y=D(J,U);if(!(this.optionFlags&2048))throw Y;if(!this.isLookahead)this.state.errors.push(Y);return Y}raiseOverwrite(D,$,U={}){let J=$ instanceof E$?$:$.loc.start,Y=J.index,X=this.state.errors;for(let Q=X.length-1;Q>=0;Q--){let F=X[Q];if(F.loc.index===Y)return X[Q]=D(J,U);if(F.loc.index<Y)break}return this.raise(D,$,U)}updateContext(D){}unexpected(D,$){throw this.raise(M.UnexpectedToken,D!=null?D:this.state.startLoc,{expected:$?I1($):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($,U,J)=>{this.raise(D,e5($,U,J))}}}class d_{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class i_{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 d_)}exit(){let D=this.stack.pop(),$=this.current();for(let[U,J]of Array.from(D.undefinedPrivateNames))if($){if(!$.undefinedPrivateNames.has(U))$.undefinedPrivateNames.set(U,J)}else this.parser.raise(M.InvalidPrivateFieldResolution,J,{identifierName:U})}declarePrivateName(D,$,U){let{privateNames:J,loneAccessors:Y,undefinedPrivateNames:X}=this.current(),Q=J.has(D);if($&3){let F=Q&&Y.get(D);if(F){let W=F&4,K=$&4,Z=F&3,z=$&3;if(Q=Z===z||W!==K,!Q)Y.delete(D)}else if(!Q)Y.set(D,$)}if(Q)this.parser.raise(M.PrivateNameRedeclaration,U,{identifierName:D});J.add(D),X.delete(D)}usePrivateName(D,$){let U;for(U of this.stack)if(U.privateNames.has(D))return;if(U)U.undefinedPrivateNames.set(D,$);else this.parser.raise(M.InvalidPrivateFieldResolution,$,{identifierName:D})}}class F7{constructor(D=0){this.type=D}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}}class II extends F7{constructor(D){super(D);this.declarationErrors=new Map}recordDeclarationError(D,$){let U=$.index;this.declarationErrors.set(U,[D,$])}clearDeclarationError(D){this.declarationErrors.delete(D)}iterateErrors(D){this.declarationErrors.forEach(D)}}class p_{constructor(D){this.parser=void 0,this.stack=[new F7],this.parser=D}enter(D){this.stack.push(D)}exit(){this.stack.pop()}recordParameterInitializerError(D,$){let U=$.loc.start,{stack:J}=this,Y=J.length-1,X=J[Y];while(!X.isCertainlyParameterDeclaration()){if(X.canBeArrowParameterDeclaration())X.recordDeclarationError(D,U);else return;X=J[--Y]}this.parser.raise(D,U)}recordArrowParameterBindingError(D,$){let{stack:U}=this,J=U[U.length-1],Y=$.loc.start;if(J.isCertainlyParameterDeclaration())this.parser.raise(D,Y);else if(J.canBeArrowParameterDeclaration())J.recordDeclarationError(D,Y);else return}recordAsyncArrowParametersError(D){let{stack:$}=this,U=$.length-1,J=$[U];while(J.canBeArrowParameterDeclaration()){if(J.type===2)J.recordDeclarationError(M.AwaitBindingIdentifier,D);J=$[--U]}}validateAsPattern(){let{stack:D}=this,$=D[D.length-1];if(!$.canBeArrowParameterDeclaration())return;$.iterateErrors(([U,J])=>{this.parser.raise(U,J);let Y=D.length-2,X=D[Y];while(X.canBeArrowParameterDeclaration())X.clearDeclarationError(J.index),X=D[--Y]})}}function lUD(){return new F7(3)}function cUD(){return new II(1)}function dUD(){return new II(2)}function n_(){return new F7}class r_ extends c_{addExtra(D,$,U,J=!0){if(!D)return;let{extra:Y}=D;if(Y==null)Y={},D.extra=Y;if(J)Y[$]=U;else Object.defineProperty(Y,$,{enumerable:J,value:U})}isContextual(D){return this.state.type===D&&!this.state.containsEsc}isUnparsedContextual(D,$){if(this.input.startsWith($,D)){let U=this.input.charCodeAt(D+$.length);return!(v4(U)||(U&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 B_(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return B_(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 U={node:null};try{let J=D((Y=null)=>{throw U.node=Y,U});if(this.state.errors.length>$.errors.length){let Y=this.state;return this.state=$,this.state.tokensLength=Y.tokensLength,{node:J,error:Y.errors[$.errors.length],thrown:!1,aborted:!1,failState:Y}}return{node:J,error:null,thrown:!1,aborted:!1,failState:null}}catch(J){let Y=this.state;if(this.state=$,J instanceof SyntaxError)return{node:null,error:J,thrown:!0,aborted:!1,failState:Y};if(J===U)return{node:U.node,error:null,thrown:!1,aborted:!0,failState:Y};throw J}}checkExpressionErrors(D,$){if(!D)return!1;let{shorthandAssignLoc:U,doubleProtoLoc:J,privateKeyLoc:Y,optionalParametersLoc:X,voidPatternLoc:Q}=D,F=!!U||!!J||!!X||!!Y||!!Q;if(!$)return F;if(U!=null)this.raise(M.InvalidCoverInitializedName,U);if(J!=null)this.raise(M.DuplicateProto,J);if(Y!=null)this.raise(M.UnexpectedPrivateField,Y);if(X!=null)this.unexpected(X);if(Q!=null)this.raise(M.InvalidCoverDiscardElement,Q)}isLiteralPropertyName(){return v_(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 U=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let J=this.inModule;this.inModule=D;let Y=this.scope,X=this.getScopeHandler();this.scope=new X(this,D);let Q=this.prodParam;this.prodParam=new g_;let F=this.classScope;this.classScope=new i_(this);let W=this.expressionScope;return this.expressionScope=new p_(this),()=>{this.state.labels=$,this.exportedIdentifiers=U,this.inModule=J,this.scope=Y,this.prodParam=Q,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 U=$?514:1;if(this.optionFlags&4)U|=512;this.scope.enter(U)}checkDestructuringPrivate(D){let{privateKeyLoc:$}=D;if($!==null)this.expectPlugin("destructuringPrivate",$)}}class J7{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}}class Q7{constructor(D,$,U){if(this.type="",this.start=$,this.end=0,this.loc=new Y7(U),(D==null?void 0:D.optionFlags)&128)this.range=[$,0];if(D!=null&&D.filename)this.loc.filename=D.filename}}var JI=Q7.prototype;JI.__clone=function(){let D=new Q7(void 0,this.start,this.loc.start),$=Object.keys(this);for(let U=0,J=$.length;U<J;U++){let Y=$[U];if(Y!=="leadingComments"&&Y!=="trailingComments"&&Y!=="innerComments")D[Y]=this[Y]}return D};class o_ extends r_{startNode(){let D=this.state.startLoc;return new Q7(this,D.index,D)}startNodeAt(D){return new Q7(this,D.index,D)}startNodeAtNode(D){return this.startNodeAt(D.loc.start)}finishNode(D,$){return this.finishNodeAt(D,$,this.state.lastTokEndLoc)}finishNodeAt(D,$,U){if(D.type=$,D.end=U.index,D.loc.end=U,this.optionFlags&128)D.range[1]=U.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:U,end:J,loc:Y,range:X,name:Q}=D,F=Object.create(JI);if(F.type=$,F.start=U,F.end=J,F.loc=Y,F.range=X,F.name=Q,D.extra)F.extra=D.extra;return F}cloneStringLiteral(D){let{type:$,start:U,end:J,loc:Y,range:X,extra:Q}=D,F=Object.create(JI);return F.type=$,F.start=U,F.end=J,F.loc=Y,F.range=X,F.extra=Q,F.value=D.value,F}}var YI=(D)=>{return D.type==="ParenthesizedExpression"?YI(D.expression):D};class a_ extends o_{toAssignable(D,$=!1){var U,J;let Y=void 0;if(D.type==="ParenthesizedExpression"||(U=D.extra)!=null&&U.parenthesized)if(Y=YI(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 Q=0,F=D.properties.length,W=F-1;Q<F;Q++){var X;let K=D.properties[Q],Z=Q===W;if(this.toAssignableObjectExpressionProp(K,Z,$),Z&&K.type==="RestElement"&&(X=D.extra)!=null&&X.trailingCommaLoc)this.raise(M.RestTrailingComma,D.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:Q,value:F}=D;if(this.isPrivateName(Q))this.classScope.usePrivateName(this.getPrivateNameSV(Q),Q.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,(J=D.extra)==null?void 0:J.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,$,U){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 J=D.argument;if(this.checkToRestConversion(J,!1),this.toAssignable(J,U),!$)this.raise(M.RestTrailingComma,D)}else this.toAssignable(D,U)}toAssignableList(D,$,U){let J=D.length-1;for(let Y=0;Y<=J;Y++){let X=D[Y];if(!X)continue;if(this.toAssignableListItem(D,Y,U),X.type==="RestElement"){if(Y<J)this.raise(M.RestTrailingComma,X);else if($)this.raise(M.RestTrailingComma,$)}}}toAssignableListItem(D,$,U){let J=D[$];if(J.type==="SpreadElement"){this.castNodeTo(J,"RestElement");let Y=J.argument;this.checkToRestConversion(Y,!0),this.toAssignable(Y,U)}else this.toAssignable(J,U)}isAssignable(D,$){switch(D.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{let U=D.properties.length-1;return D.properties.every((J,Y)=>{return J.type!=="ObjectMethod"&&(Y===U||J.type!=="SpreadElement")&&this.isAssignable(J)})}case"ObjectProperty":return this.isAssignable(D.value);case"SpreadElement":return this.isAssignable(D.argument);case"ArrayExpression":return D.elements.every((U)=>U===null||this.isAssignable(U));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 U of D)if((U==null?void 0:U.type)==="ArrayExpression")this.toReferencedListDeep(U.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,$,U){let J=U&1,Y=[],X=!0;while(!this.eat(D)){if(X)X=!1;else this.expect(12);if(J&&this.match(12))Y.push(null);else if(this.eat(D))break;else if(this.match(21)){let Q=this.parseRestBinding();if(this.hasPlugin("flow")||U&2)Q=this.parseFunctionParamType(Q);if(Y.push(Q),!this.checkCommaAfterRest($)){this.expect(D);break}}else{let Q=[];if(U&2){if(this.match(26)&&this.hasPlugin("decorators"))this.raise(M.UnsupportedParameterDecorator,this.state.startLoc);while(this.match(26))Q.push(this.parseDecorator())}Y.push(this.parseBindingElement(U,Q))}}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 U=this.startNode();if(D===139)this.expectPlugin("destructuringPrivate",$),this.classScope.usePrivateName(this.state.value,$),U.key=this.parsePrivateName();else this.parsePropertyName(U);return U.method=!1,this.parseObjPropValue(U,$,!1,!1,!0,!1)}parseBindingElement(D,$){let U=this.parseMaybeDefault();if(this.hasPlugin("flow")||D&2)this.parseFunctionParamType(U);if($.length)U.decorators=$,this.resetStartLocationFromNode(U,$[0]);return this.parseMaybeDefault(U.loc.start,U)}parseFunctionParamType(D){return D}parseMaybeDefault(D,$){if(D!=null||(D=this.state.startLoc),$=$!=null?$:this.parseBindingAtom(),!this.eat(29))return $;let U=this.startNodeAt(D);if($.type==="VoidPattern")this.raise(M.VoidPatternInitializer,$);return U.left=$,U.right=this.parseMaybeAssignAllowIn(),this.finishNode(U,"AssignmentPattern")}isValidLVal(D,$,U,J){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,$,U=64,J=!1,Y=!1,X=!1,Q=!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(U!==64)this.raise(M.InvalidPropertyBindingPattern,D);return}if(W==="Identifier"){this.checkIdentifier(D,U,Y);let{name:H}=D;if(J)if(J.has(H))this.raise(M.ParamDupe,D);else J.add(H);return}else if(W==="VoidPattern"&&$.type==="CatchClause")this.raise(M.VoidPatternCatchClauseParam,D);let Z=YI(D);Q||(Q=Z.type==="CallExpression"&&(Z.callee.type==="Import"||Z.callee.type==="Super"));let z=this.isValidLVal(W,Q,!(X||(F=D.extra)!=null&&F.parenthesized)&&$.type==="AssignmentExpression",U);if(z===!0)return;if(z===!1){let H=U===64?M.InvalidLhs:M.InvalidLhsBinding;this.raise(H,D,{ancestor:$});return}let q,G;if(typeof z==="string")q=z,G=W==="ParenthesizedExpression";else[q,G]=z;let V=W==="ArrayPattern"||W==="ObjectPattern"?{type:W}:$,I=D[q];if(Array.isArray(I)){for(let H of I)if(H)this.checkLVal(H,V,U,J,Y,G,!0)}else if(I)this.checkLVal(I,V,U,J,Y,G,Q)}checkIdentifier(D,$,U=!1){if(this.state.strict&&(U?C_(D.name,this.inModule):b_(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 sH=/in(?:stanceof)?|as|satisfies/y;function iUD(D){if(D==null)throw Error(`Unexpected ${D} value.`);return D}function j_(D){if(!D)throw Error("Assert fail")}var JD=W$`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 pUD(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 N_(D){return D==="private"||D==="public"||D==="protected"}function nUD(D){return D==="in"||D==="out"}var rUD=(D)=>class extends D{constructor(...U){super(...U);this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:JD.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:JD.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:JD.InvalidModifierOnTypeParameter})}getScopeHandler(){return x_}tsIsIdentifier(){return kD(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(U,J,Y){if(!kD(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let X=this.state.value;if(U.includes(X)){if(Y&&this.match(106))return;if(J&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return X}return}tsParseModifiers({allowedModifiers:U,disallowedModifiers:J,stopOnStartOfClassStaticBlock:Y,errorTemplate:X=JD.InvalidModifierOnTypeMember},Q){let F=(K,Z,z,q)=>{if(Z===z&&Q[q])this.raise(JD.InvalidModifiersOrder,K,{orderedModifiers:[z,q]})},W=(K,Z,z,q)=>{if(Q[z]&&Z===q||Q[q]&&Z===z)this.raise(JD.IncompatibleModifiers,K,{modifiers:[z,q]})};for(;;){let{startLoc:K}=this.state,Z=this.tsParseModifier(U.concat(J!=null?J:[]),Y,Q.static);if(!Z)break;if(N_(Z))if(Q.accessibility)this.raise(JD.DuplicateAccessibilityModifier,K,{modifier:Z});else F(K,Z,Z,"override"),F(K,Z,Z,"static"),F(K,Z,Z,"readonly"),Q.accessibility=Z;else if(nUD(Z)){if(Q[Z])this.raise(JD.DuplicateModifier,K,{modifier:Z});Q[Z]=!0,F(K,Z,"in","out")}else{if(hasOwnProperty.call(Q,Z))this.raise(JD.DuplicateModifier,K,{modifier:Z});else F(K,Z,"static","readonly"),F(K,Z,"static","override"),F(K,Z,"override","readonly"),F(K,Z,"abstract","override"),W(K,Z,"declare","override"),W(K,Z,"static","abstract");Q[Z]=!0}if(J!=null&&J.includes(Z))this.raise(X,K,{modifier:Z})}}tsIsListTerminator(U){switch(U){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(U,J){let Y=[];while(!this.tsIsListTerminator(U))Y.push(J());return Y}tsParseDelimitedList(U,J,Y){return iUD(this.tsParseDelimitedListWorker(U,J,!0,Y))}tsParseDelimitedListWorker(U,J,Y,X){let Q=[],F=-1;for(;;){if(this.tsIsListTerminator(U))break;F=-1;let W=J();if(W==null)return;if(Q.push(W),this.eat(12)){F=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(U))break;if(Y)this.expect(12);return}if(X)X.value=F;return Q}tsParseBracketedList(U,J,Y,X,Q){if(!X)if(Y)this.expect(0);else this.expect(47);let F=this.tsParseDelimitedList(U,J,Q);if(Y)this.expect(3);else this.expect(48);return F}tsParseImportType(){let U=this.startNode();if(this.expect(83),this.expect(10),!this.match(134))this.raise(JD.UnsupportedImportTypeArgument,this.state.startLoc),U.argument=super.parseExprAtom();else U.argument=this.parseStringLiteral(this.state.value);if(this.eat(12))U.options=this.tsParseImportTypeOptions();else U.options=null;if(this.expect(11),this.eat(16))U.qualifier=this.tsParseEntityName(3);if(this.match(47))U.typeParameters=this.tsParseTypeArguments();return this.finishNode(U,"TSImportType")}tsParseImportTypeOptions(){let U=this.startNode();this.expect(5);let J=this.startNode();if(this.isContextual(76))J.method=!1,J.key=this.parseIdentifier(!0),J.computed=!1,J.shorthand=!1;else this.unexpected(null,76);return this.expect(14),J.value=this.tsParseImportTypeWithPropertyValue(),U.properties=[this.finishObjectProperty(J)],this.eat(12),this.expect(8),this.finishNode(U,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let U=this.startNode(),J=[];this.expect(5);while(!this.match(8)){let Y=this.state.type;if(kD(Y)||Y===134)J.push(super.parsePropertyDefinition(null));else this.unexpected();this.eat(12)}return U.properties=J,this.next(),this.finishNode(U,"ObjectExpression")}tsParseEntityName(U){let J;if(U&1&&this.match(78))if(U&2)J=this.parseIdentifier(!0);else{let Y=this.startNode();this.next(),J=this.finishNode(Y,"ThisExpression")}else J=this.parseIdentifier(!!(U&1));while(this.eat(16)){let Y=this.startNodeAtNode(J);Y.left=J,Y.right=this.parseIdentifier(!!(U&1)),J=this.finishNode(Y,"TSQualifiedName")}return J}tsParseTypeReference(){let U=this.startNode();if(U.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47))U.typeParameters=this.tsParseTypeArguments();return this.finishNode(U,"TSTypeReference")}tsParseThisTypePredicate(U){this.next();let J=this.startNodeAtNode(U);return J.parameterName=U,J.typeAnnotation=this.tsParseTypeAnnotation(!1),J.asserts=!1,this.finishNode(J,"TSTypePredicate")}tsParseThisTypeNode(){let U=this.startNode();return this.next(),this.finishNode(U,"TSThisType")}tsParseTypeQuery(){let U=this.startNode();if(this.expect(87),this.match(83))U.exprName=this.tsParseImportType();else U.exprName=this.tsParseEntityName(3);if(!this.hasPrecedingLineBreak()&&this.match(47))U.typeParameters=this.tsParseTypeArguments();return this.finishNode(U,"TSTypeQuery")}tsParseTypeParameter(U){let J=this.startNode();return U(J),J.name=this.tsParseTypeParameterName(),J.constraint=this.tsEatThenParseType(81),J.default=this.tsEatThenParseType(29),this.finishNode(J,"TSTypeParameter")}tsTryParseTypeParameters(U){if(this.match(47))return this.tsParseTypeParameters(U)}tsParseTypeParameters(U){let J=this.startNode();if(this.match(47)||this.match(143))this.next();else this.unexpected();let Y={value:-1};if(J.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,U),!1,!0,Y),J.params.length===0)this.raise(JD.EmptyTypeParameters,J);if(Y.value!==-1)this.addExtra(J,"trailingComma",Y.value);return this.finishNode(J,"TSTypeParameterDeclaration")}tsFillSignature(U,J){let Y=U===19,X="parameters",Q="typeAnnotation";if(J.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),J.parameters=this.tsParseBindingListForSignature(),Y)J.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(U);else if(this.match(U))J.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(U)}tsParseBindingListForSignature(){let U=super.parseBindingList(11,41,2);for(let J of U){let{type:Y}=J;if(Y==="AssignmentPattern"||Y==="TSParameterProperty")this.raise(JD.UnsupportedSignatureParameterKind,J,{type:Y})}return U}tsParseTypeMemberSemicolon(){if(!this.eat(12)&&!this.isLineTerminator())this.expect(13)}tsParseSignatureMember(U,J){return this.tsFillSignature(14,J),this.tsParseTypeMemberSemicolon(),this.finishNode(J,U)}tsIsUnambiguouslyIndexSignature(){if(this.next(),kD(this.state.type))return this.next(),this.match(14);return!1}tsTryParseIndexSignature(U){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let J=this.parseIdentifier();J.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(J),this.expect(3),U.parameters=[J];let Y=this.tsTryParseTypeAnnotation();if(Y)U.typeAnnotation=Y;return this.tsParseTypeMemberSemicolon(),this.finishNode(U,"TSIndexSignature")}tsParsePropertyOrMethodSignature(U,J){if(this.eat(17))U.optional=!0;if(this.match(10)||this.match(47)){if(J)this.raise(JD.ReadonlyForMethodSignature,U);let Y=U;if(Y.kind&&this.match(47))this.raise(JD.AccessorCannotHaveTypeParameters,this.state.curPosition());this.tsFillSignature(14,Y),this.tsParseTypeMemberSemicolon();let X="parameters",Q="typeAnnotation";if(Y.kind==="get"){if(Y[X].length>0){if(this.raise(M.BadGetterArity,this.state.curPosition()),this.isThisParam(Y[X][0]))this.raise(JD.AccessorCannotDeclareThisParameter,this.state.curPosition())}}else if(Y.kind==="set"){if(Y[X].length!==1)this.raise(M.BadSetterArity,this.state.curPosition());else{let F=Y[X][0];if(this.isThisParam(F))this.raise(JD.AccessorCannotDeclareThisParameter,this.state.curPosition());if(F.type==="Identifier"&&F.optional)this.raise(JD.SetAccessorCannotHaveOptionalParameter,this.state.curPosition());if(F.type==="RestElement")this.raise(JD.SetAccessorCannotHaveRestParameter,this.state.curPosition())}if(Y[Q])this.raise(JD.SetAccessorCannotHaveReturnType,Y[Q])}else Y.kind="method";return this.finishNode(Y,"TSMethodSignature")}else{let Y=U;if(J)Y.readonly=!0;let X=this.tsTryParseTypeAnnotation();if(X)Y.typeAnnotation=X;return this.tsParseTypeMemberSemicolon(),this.finishNode(Y,"TSPropertySignature")}}tsParseTypeMember(){let U=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",U);if(this.match(77)){let Y=this.startNode();if(this.next(),this.match(10)||this.match(47))return this.tsParseSignatureMember("TSConstructSignatureDeclaration",U);else return U.key=this.createIdentifier(Y,"new"),this.tsParsePropertyOrMethodSignature(U,!1)}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},U);let J=this.tsTryParseIndexSignature(U);if(J)return J;if(super.parsePropertyName(U),!U.computed&&U.key.type==="Identifier"&&(U.key.name==="get"||U.key.name==="set")&&this.tsTokenCanFollowModifier()){if(U.kind=U.key.name,super.parsePropertyName(U),!this.match(10)&&!this.match(47))this.unexpected(null,10)}return this.tsParsePropertyOrMethodSignature(U,!!U.readonly)}tsParseTypeLiteral(){let U=this.startNode();return U.members=this.tsParseObjectTypeMembers(),this.finishNode(U,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let U=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),U}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 U=this.startNode();if(this.expect(5),this.match(53))U.readonly=this.state.value,this.next(),this.expectContextual(122);else if(this.eatContextual(122))U.readonly=!0;this.expect(0);let J=this.startNode();if(J.name=this.tsParseTypeParameterName(),J.constraint=this.tsExpectThenParseType(58),U.typeParameter=this.finishNode(J,"TSTypeParameter"),U.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53))U.optional=this.state.value,this.next(),this.expect(17);else if(this.eat(17))U.optional=!0;return U.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(U,"TSMappedType")}tsParseTupleType(){let U=this.startNode();U.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let J=!1;return U.elementTypes.forEach((Y)=>{let{type:X}=Y;if(J&&X!=="TSRestType"&&X!=="TSOptionalType"&&!(X==="TSNamedTupleMember"&&Y.optional))this.raise(JD.OptionalTypeBeforeRequired,Y);J||(J=X==="TSNamedTupleMember"&&Y.optional||X==="TSOptionalType")}),this.finishNode(U,"TSTupleType")}tsParseTupleElementType(){let U=this.state.startLoc,J=this.eat(21),{startLoc:Y}=this.state,X,Q,F,W,Z=d6(this.state.type)?this.lookaheadCharCode():null;if(Z===58)X=!0,F=!1,Q=this.parseIdentifier(!0),this.expect(14),W=this.tsParseType();else if(Z===63){F=!0;let z=this.state.value,q=this.tsParseNonArrayType();if(this.lookaheadCharCode()===58)X=!0,Q=this.createIdentifier(this.startNodeAt(Y),z),this.expect(17),this.expect(14),W=this.tsParseType();else X=!1,W=q,this.expect(17)}else W=this.tsParseType(),F=this.eat(17),X=this.eat(14);if(X){let z;if(Q){if(z=this.startNodeAt(Y),z.optional=F,z.label=Q,z.elementType=W,this.eat(17))z.optional=!0,this.raise(JD.TupleOptionalAfterType,this.state.lastTokStartLoc)}else z=this.startNodeAt(Y),z.optional=F,this.raise(JD.InvalidTupleMemberLabel,W),z.label=W,z.elementType=this.tsParseType();W=this.finishNode(z,"TSNamedTupleMember")}else if(F){let z=this.startNodeAt(Y);z.typeAnnotation=W,W=this.finishNode(z,"TSOptionalType")}if(J){let z=this.startNodeAt(U);z.typeAnnotation=W,W=this.finishNode(z,"TSRestType")}return W}tsParseParenthesizedType(){let U=this.startNode();return this.expect(10),U.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(U,"TSParenthesizedType")}tsParseFunctionOrConstructorType(U,J){let Y=this.startNode();if(U==="TSConstructorType"){if(Y.abstract=!!J,J)this.next();this.next()}return this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,Y)),this.finishNode(Y,U)}tsParseLiteralTypeNode(){let U=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:U.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(U,"TSLiteralType")}tsParseTemplateLiteralType(){let U=this.startNode();return U.literal=super.parseTemplate(!1),this.finishNode(U,"TSLiteralType")}parseTemplateSubstitution(){if(this.state.inType)return this.tsParseType();return super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let U=this.tsParseThisTypeNode();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.tsParseThisTypePredicate(U);else return U}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 U=this.startNode(),J=this.lookahead();if(J.type!==135&&J.type!==136)this.unexpected();return U.literal=this.parseMaybeUnary(),this.finishNode(U,"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:U}=this.state;if(kD(U)||U===88||U===84){let J=U===88?"TSVoidKeyword":U===84?"TSNullKeyword":pUD(this.state.value);if(J!==void 0&&this.lookaheadCharCode()!==46){let Y=this.startNode();return this.next(),this.finishNode(Y,J)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:U}=this.state,J=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(0))if(this.match(3)){let Y=this.startNodeAt(U);Y.elementType=J,this.expect(3),J=this.finishNode(Y,"TSArrayType")}else{let Y=this.startNodeAt(U);Y.objectType=J,Y.indexType=this.tsParseType(),this.expect(3),J=this.finishNode(Y,"TSIndexedAccessType")}return J}tsParseTypeOperator(){let U=this.startNode(),J=this.state.value;if(this.next(),U.operator=J,U.typeAnnotation=this.tsParseTypeOperatorOrHigher(),J==="readonly")this.tsCheckTypeAnnotationForReadOnly(U);return this.finishNode(U,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(U){switch(U.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(JD.UnexpectedReadonly,U)}}tsParseInferType(){let U=this.startNode();this.expectContextual(115);let J=this.startNode();return J.name=this.tsParseTypeParameterName(),J.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),U.typeParameter=this.finishNode(J,"TSTypeParameter"),this.finishNode(U,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let U=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return U}}tsParseTypeOperatorOrHigher(){return VUD(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(U,J,Y){let X=this.startNode(),Q=this.eat(Y),F=[];do F.push(J());while(this.eat(Y));if(F.length===1&&!Q)return F[0];return X.types=F,this.finishNode(X,U)}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(kD(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:U}=this.state,J=U.length;try{return this.parseObjectLike(8,!0),U.length===J}catch(Y){return!1}}if(this.match(0)){this.next();let{errors:U}=this.state,J=U.length;try{return super.parseBindingList(3,93,1),U.length===J}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(U){return this.tsInType(()=>{let J=this.startNode();this.expect(U);let Y=this.startNode(),X=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(X&&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 J.typeAnnotation=W,this.finishNode(J,"TSTypeAnnotation")}let Q=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!Q){if(!X)return this.tsParseTypeAnnotation(!1,J);return Y.parameterName=this.parseIdentifier(),Y.asserts=X,Y.typeAnnotation=null,J.typeAnnotation=this.finishNode(Y,"TSTypePredicate"),this.finishNode(J,"TSTypeAnnotation")}let F=this.tsParseTypeAnnotation(!1);return Y.parameterName=Q,Y.typeAnnotation=F,Y.asserts=X,J.typeAnnotation=this.finishNode(Y,"TSTypePredicate"),this.finishNode(J,"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 U=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),U}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let U=this.state.containsEsc;if(this.next(),!kD(this.state.type)&&!this.match(78))return!1;if(U)this.raise(M.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"});return!0}tsParseTypeAnnotation(U=!0,J=this.startNode()){return this.tsInType(()=>{if(U)this.expect(14);J.typeAnnotation=this.tsParseType()}),this.finishNode(J,"TSTypeAnnotation")}tsParseType(){j_(this.state.inType);let U=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return U;let J=this.startNodeAtNode(U);return J.checkType=U,J.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),J.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),J.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(J,"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(JD.ReservedTypeAssertion,this.state.startLoc);let U=this.startNode();return U.typeAnnotation=this.tsInType(()=>{return this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType()}),this.expect(48),U.expression=this.parseMaybeUnary(),this.finishNode(U,"TSTypeAssertion")}tsParseHeritageClause(U){let J=this.state.startLoc,Y=this.tsParseDelimitedList("HeritageClauseElement",()=>{let X=this.startNode();if(X.expression=this.tsParseEntityName(3),this.match(47))X.typeParameters=this.tsParseTypeArguments();return this.finishNode(X,"TSExpressionWithTypeArguments")});if(!Y.length)this.raise(JD.EmptyHeritageClauseType,J,{token:U});return Y}tsParseInterfaceDeclaration(U,J={}){if(this.hasFollowingLineBreak())return null;if(this.expectContextual(129),J.declare)U.declare=!0;if(kD(this.state.type))U.id=this.parseIdentifier(),this.checkIdentifier(U.id,130);else U.id=null,this.raise(JD.MissingInterfaceName,this.state.startLoc);if(U.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81))U.extends=this.tsParseHeritageClause("extends");let Y=this.startNode();return Y.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),U.body=this.finishNode(Y,"TSInterfaceBody"),this.finishNode(U,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(U){return U.id=this.parseIdentifier(),this.checkIdentifier(U.id,2),U.typeAnnotation=this.tsInType(()=>{if(U.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let J=this.startNode();return this.next(),this.finishNode(J,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(U,"TSTypeAliasDeclaration")}tsInTopLevelContext(U){if(this.curContext()!==CD.brace){let J=this.state.context;this.state.context=[J[0]];try{return U()}finally{this.state.context=J}}else return U()}tsInType(U){let J=this.state.inType;this.state.inType=!0;try{return U()}finally{this.state.inType=J}}tsInDisallowConditionalTypesContext(U){let J=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return U()}finally{this.state.inDisallowConditionalTypesContext=J}}tsInAllowConditionalTypesContext(U){let J=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return U()}finally{this.state.inDisallowConditionalTypesContext=J}}tsEatThenParseType(U){if(this.match(U))return this.tsNextThenParseType()}tsExpectThenParseType(U){return this.tsInType(()=>{return this.expect(U),this.tsParseType()})}tsNextThenParseType(){return this.tsInType(()=>{return this.next(),this.tsParseType()})}tsParseEnumMember(){let U=this.startNode();if(U.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29))U.initializer=super.parseMaybeAssignAllowIn();return this.finishNode(U,"TSEnumMember")}tsParseEnumDeclaration(U,J={}){if(J.const)U.const=!0;if(J.declare)U.declare=!0;return this.expectContextual(126),U.id=this.parseIdentifier(),this.checkIdentifier(U.id,U.const?8971:8459),this.expect(5),U.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(U,"TSEnumDeclaration")}tsParseEnumBody(){let U=this.startNode();return this.expect(5),U.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(U,"TSEnumBody")}tsParseModuleBlock(){let U=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(U.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(U,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(U,J=!1){if(U.id=this.parseIdentifier(),!J)this.checkIdentifier(U.id,1024);if(this.eat(16)){let Y=this.startNode();this.tsParseModuleOrNamespaceDeclaration(Y,!0),U.body=Y}else this.scope.enter(1024),this.prodParam.enter(0),U.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(U,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(U){if(this.isContextual(112))U.kind="global",U.global=!0,U.id=this.parseIdentifier();else if(this.match(134))U.kind="module",U.id=super.parseStringLiteral(this.state.value);else this.unexpected();if(this.match(5))this.scope.enter(1024),this.prodParam.enter(0),U.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();else this.semicolon();return this.finishNode(U,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(U,J,Y){U.isExport=Y||!1,U.id=J||this.parseIdentifier(),this.checkIdentifier(U.id,4096),this.expect(29);let X=this.tsParseModuleReference();if(U.importKind==="type"&&X.type!=="TSExternalModuleReference")this.raise(JD.ImportAliasHasImportType,X);return U.moduleReference=X,this.semicolon(),this.finishNode(U,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let U=this.startNode();if(this.expectContextual(119),this.expect(10),!this.match(134))this.unexpected();return U.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(U,"TSExternalModuleReference")}tsLookAhead(U){let J=this.state.clone(),Y=U();return this.state=J,Y}tsTryParseAndCatch(U){let J=this.tryParse((Y)=>U()||Y());if(J.aborted||!J.node)return;if(J.error)this.state=J.failState;return J.node}tsTryParse(U){let J=this.state.clone(),Y=U();if(Y!==void 0&&Y!==!1)return Y;this.state=J}tsTryParseDeclare(U){if(this.isLineTerminator())return;let J=this.state.type;return this.tsInAmbientContext(()=>{switch(J){case 68:return U.declare=!0,super.parseFunctionStatement(U,!1,!1);case 80:return U.declare=!0,this.parseClass(U,!0,!1);case 126:return this.tsParseEnumDeclaration(U,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(U);case 100:if(this.state.containsEsc)return;case 75:case 74:if(!this.match(75)||!this.isLookaheadContextual("enum"))return U.declare=!0,this.parseVarStatement(U,this.state.value,!0);return this.expect(75),this.tsParseEnumDeclaration(U,{const:!0,declare:!0});case 107:if(this.isUsing())return this.raise(JD.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),U.declare=!0,this.parseVarStatement(U,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(JD.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),U.declare=!0,this.next(),this.parseVarStatement(U,"await using",!0);break;case 129:{let Y=this.tsParseInterfaceDeclaration(U,{declare:!0});if(Y)return Y}default:if(kD(J))return this.tsParseDeclaration(U,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(U,J,Y,X){switch(J){case 124:if(this.tsCheckLineTerminator(Y)&&(this.match(80)||kD(this.state.type)))return this.tsParseAbstractDeclaration(U,X);break;case 127:if(this.tsCheckLineTerminator(Y)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(U);else if(kD(this.state.type))return U.kind="module",this.tsParseModuleOrNamespaceDeclaration(U)}break;case 128:if(this.tsCheckLineTerminator(Y)&&kD(this.state.type))return U.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(U);break;case 130:if(this.tsCheckLineTerminator(Y)&&kD(this.state.type))return this.tsParseTypeAliasDeclaration(U);break}}tsCheckLineTerminator(U){if(U){if(this.hasFollowingLineBreak())return!1;return this.next(),!0}return!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(U){if(!this.match(47))return;let J=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let Y=this.tsTryParseAndCatch(()=>{let X=this.startNodeAt(U);return X.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(X),X.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),X});if(this.state.maybeInArrowParameters=J,!Y)return;return super.parseArrowExpression(Y,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==47)return;return this.tsParseTypeArguments()}tsParseTypeArguments(){let U=this.startNode();if(U.params=this.tsInType(()=>this.tsInTopLevelContext(()=>{return this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))})),U.params.length===0)this.raise(JD.EmptyTypeArguments,U);else if(!this.state.inType&&this.curContext()===CD.brace)this.reScan_lt_gt();return this.expect(48),this.finishNode(U,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return HUD(this.state.type)}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return!1;return super.isExportDefaultSpecifier()}parseBindingElement(U,J){let Y=J.length?J[0].loc.start:this.state.startLoc,X={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},X);let{accessibility:Q,override:F,readonly:W}=X;if(!(U&4)&&(Q||W||F))this.raise(JD.UnexpectedParameterModifier,Y);let K=this.parseMaybeDefault();if(U&2)this.parseFunctionParamType(K);let Z=this.parseMaybeDefault(K.loc.start,K);if(Q||W||F){let z=this.startNodeAt(Y);if(J.length)z.decorators=J;if(Q)z.accessibility=Q;if(W)z.readonly=W;if(F)z.override=F;if(Z.type!=="Identifier"&&Z.type!=="AssignmentPattern")this.raise(JD.UnsupportedParameterPropertyKind,z);return z.parameter=Z,this.finishNode(z,"TSParameterProperty")}if(J.length)K.decorators=J;return Z}isSimpleParameter(U){return U.type==="TSParameterProperty"&&super.isSimpleParameter(U.parameter)||super.isSimpleParameter(U)}tsDisallowOptionalPattern(U){for(let J of U.params)if(J.type!=="Identifier"&&J.optional&&!this.state.isAmbientContext)this.raise(JD.PatternIsOptional,J)}setArrowFunctionParameters(U,J,Y){super.setArrowFunctionParameters(U,J,Y),this.tsDisallowOptionalPattern(U)}parseFunctionBodyAndFinish(U,J,Y=!1){if(this.match(14))U.returnType=this.tsParseTypeOrTypePredicateAnnotation(14);let X=J==="FunctionDeclaration"?"TSDeclareFunction":J==="ClassMethod"||J==="ClassPrivateMethod"?"TSDeclareMethod":void 0;if(X&&!this.match(5)&&this.isLineTerminator())return this.finishNode(U,X);if(X==="TSDeclareFunction"&&this.state.isAmbientContext){if(this.raise(JD.DeclareFunctionHasImplementation,U),U.declare)return super.parseFunctionBodyAndFinish(U,X,Y)}return this.tsDisallowOptionalPattern(U),super.parseFunctionBodyAndFinish(U,J,Y)}registerFunctionStatementId(U){if(!U.body&&U.id)this.checkIdentifier(U.id,1024);else super.registerFunctionStatementId(U)}tsCheckForInvalidTypeCasts(U){U.forEach((J)=>{if((J==null?void 0:J.type)==="TSTypeCastExpression")this.raise(JD.UnexpectedTypeAnnotation,J.typeAnnotation)})}toReferencedList(U,J){return this.tsCheckForInvalidTypeCasts(U),U}parseArrayLike(U,J,Y){let X=super.parseArrayLike(U,J,Y);if(X.type==="ArrayExpression")this.tsCheckForInvalidTypeCasts(X.elements);return X}parseSubscript(U,J,Y,X){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let F=this.startNodeAt(J);return F.expression=U,this.finishNode(F,"TSNonNullExpression")}let Q=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(Y)return X.stop=!0,U;X.optionalChainMember=Q=!0,this.next()}if(this.match(47)||this.match(51)){let F,W=this.tsTryParseAndCatch(()=>{if(!Y&&this.atPossibleAsyncArrow(U)){let q=this.tsTryParseGenericAsyncArrowFunction(J);if(q)return X.stop=!0,q}let K=this.tsParseTypeArgumentsInExpression();if(!K)return;if(Q&&!this.match(10)){F=this.state.curPosition();return}if(SY(this.state.type)){let q=super.parseTaggedTemplateExpression(U,J,X);return q.typeParameters=K,q}if(!Y&&this.eat(10)){let q=this.startNodeAt(J);if(q.callee=U,q.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(q.arguments),q.typeParameters=K,X.optionalChainMember)q.optional=Q;return this.finishCallExpression(q,X.optionalChainMember)}let Z=this.state.type;if(Z===48||Z===52||Z!==10&&Z!==93&&Z!==120&&D7(Z)&&!this.hasPrecedingLineBreak())return;let z=this.startNodeAt(J);return z.expression=U,z.typeParameters=K,this.finishNode(z,"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(JD.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc);if(!this.match(16)&&!this.match(18))W.expression=super.stopParseSubscript(U,X)}return W}}return super.parseSubscript(U,J,Y,X)}parseNewCallee(U){var J;super.parseNewCallee(U);let{callee:Y}=U;if(Y.type==="TSInstantiationExpression"&&!((J=Y.extra)!=null&&J.parenthesized))U.typeParameters=Y.typeParameters,U.callee=Y.expression}parseExprOp(U,J,Y){let X;if(TY(58)>Y&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(X=this.isContextual(120)))){let Q=this.startNodeAt(J);return Q.expression=U,Q.typeAnnotation=this.tsInType(()=>{if(this.next(),this.match(75)){if(X)this.raise(M.UnexpectedKeyword,this.state.startLoc,{keyword:"const"});return this.tsParseTypeReference()}return this.tsParseType()}),this.finishNode(Q,X?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(Q,J,Y)}return super.parseExprOp(U,J,Y)}checkReservedWord(U,J,Y,X){if(!this.state.isAmbientContext)super.checkReservedWord(U,J,Y,X)}checkImportReflection(U){if(super.checkImportReflection(U),U.module&&U.importKind!=="value")this.raise(JD.ImportReflectionHasImportType,U.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(U){if(super.isPotentialImportPhase(U))return!0;if(this.isContextual(130)){let J=this.lookaheadCharCode();return U?J===123||J===42:J!==61}return!U&&this.isContextual(87)}applyImportPhase(U,J,Y,X){if(super.applyImportPhase(U,J,Y,X),J)U.exportKind=Y==="type"?"type":"value";else U.importKind=Y==="type"||Y==="typeof"?Y:"value"}parseImport(U){if(this.match(134))return U.importKind="value",super.parseImport(U);let J;if(kD(this.state.type)&&this.lookaheadCharCode()===61)return U.importKind="value",this.tsParseImportEqualsDeclaration(U);else if(this.isContextual(130)){let Y=this.parseMaybeImportPhase(U,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(U,Y);else J=super.parseImportSpecifiersAndAfter(U,Y)}else J=super.parseImport(U);if(J.importKind==="type"&&J.specifiers.length>1&&J.specifiers[0].type==="ImportDefaultSpecifier")this.raise(JD.TypeImportCannotSpecifyDefaultAndNamed,J);return J}parseExport(U,J){if(this.match(83)){let Y=U;this.next();let X=null;if(this.isContextual(130)&&this.isPotentialImportPhase(!1))X=this.parseMaybeImportPhase(Y,!1);else Y.importKind="value";return this.tsParseImportEqualsDeclaration(Y,X,!0)}else if(this.eat(29)){let Y=U;return Y.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(Y,"TSExportAssignment")}else if(this.eatContextual(93)){let Y=U;return this.expectContextual(128),Y.id=this.parseIdentifier(),this.semicolon(),this.finishNode(Y,"TSNamespaceExportDeclaration")}else return super.parseExport(U,J)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let U=this.startNode();return this.next(),U.abstract=!0,this.parseClass(U,!0,!0)}if(this.match(129)){let U=this.tsParseInterfaceDeclaration(this.startNode());if(U)return U}return super.parseExportDefaultExpression()}parseVarStatement(U,J,Y=!1){let{isAmbientContext:X}=this.state,Q=super.parseVarStatement(U,J,Y||X);if(!X)return Q;if(!U.declare&&(J==="using"||J==="await using"))return this.raiseOverwrite(JD.UsingDeclarationInAmbientContext,U,J),Q;for(let{id:F,init:W}of Q.declarations){if(!W)continue;if(J==="var"||J==="let"||!!F.typeAnnotation)this.raise(JD.InitializerNotAllowedInAmbientContext,W);else if(!aUD(W,this.hasPlugin("estree")))this.raise(JD.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,W)}return Q}parseStatementContent(U,J){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,X=this.startNode();this.next();let Q=Y===125?this.tsTryParseDeclare(X):this.tsParseAbstractDeclaration(X,J);if(Q){if(Y===125)Q.declare=!0;return Q}else return X.expression=this.createIdentifier(this.startNodeAt(X.loc.start),Y===125?"declare":"abstract"),this.semicolon(!1),this.finishNode(X,"ExpressionStatement")}break}case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:{if(this.lookaheadCharCode()===123){let X=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(X)}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,J)}break}case 128:{if(this.nextTokenIsIdentifierOnSameLine()){let Y=this.startNode();return this.next(),this.tsParseDeclaration(Y,128,!1,J)}break}case 130:{if(this.nextTokenIsIdentifierOnSameLine()){let Y=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(Y)}break}}return super.parseStatementContent(U,J)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(U,J){return J.some((Y)=>{if(N_(Y))return U.accessibility===Y;return!!U[Y]})}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(U,J,Y){let X=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:X,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:JD.InvalidModifierOnTypeParameterPositions},J);let Q=()=>{if(this.tsIsStartOfStaticBlocks()){if(this.next(),this.next(),this.tsHasSomeModifiers(J,X))this.raise(JD.StaticBlockCannotHaveModifier,this.state.curPosition());super.parseClassStaticBlock(U,J)}else this.parseClassMemberWithIsStatic(U,J,Y,!!J.static)};if(J.declare)this.tsInAmbientContext(Q);else Q()}parseClassMemberWithIsStatic(U,J,Y,X){let Q=this.tsTryParseIndexSignature(J);if(Q){if(U.body.push(Q),J.abstract)this.raise(JD.IndexSignatureHasAbstract,J);if(J.accessibility)this.raise(JD.IndexSignatureHasAccessibility,J,{modifier:J.accessibility});if(J.declare)this.raise(JD.IndexSignatureHasDeclare,J);if(J.override)this.raise(JD.IndexSignatureHasOverride,J);return}if(!this.state.inAbstractClass&&J.abstract)this.raise(JD.NonAbstractClassHasAbstractMethod,J);if(J.override){if(!Y.hadSuperClass)this.raise(JD.OverrideNotInSubClass,J)}super.parseClassMemberWithIsStatic(U,J,Y,X)}parsePostMemberNameModifiers(U){if(this.eat(17))U.optional=!0;if(U.readonly&&this.match(10))this.raise(JD.ClassMethodHasReadonly,U);if(U.declare&&this.match(10))this.raise(JD.ClassMethodHasDeclare,U)}shouldParseExportDeclaration(){if(this.tsIsDeclarationStart())return!0;return super.shouldParseExportDeclaration()}parseConditional(U,J,Y){if(!this.match(17))return U;if(this.state.maybeInArrowParameters){let X=this.lookaheadCharCode();if(X===44||X===61||X===58||X===41)return this.setOptionalParametersError(Y),U}return super.parseConditional(U,J,Y)}parseParenItem(U,J){let Y=super.parseParenItem(U,J);if(this.eat(17))Y.optional=!0,this.resetEndLocation(U);if(this.match(14)){let X=this.startNodeAt(J);return X.expression=U,X.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(X,"TSTypeCastExpression")}return U}parseExportDeclaration(U){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(U));let J=this.state.startLoc,Y=this.eatContextual(125);if(Y&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(JD.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let Q=kD(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(U);if(!Q)return null;if(Q.type==="TSInterfaceDeclaration"||Q.type==="TSTypeAliasDeclaration"||Y)U.exportKind="type";if(Y&&Q.type!=="TSImportEqualsDeclaration")this.resetStartLocation(Q,J),Q.declare=!0;return Q}parseClassId(U,J,Y,X){if((!J||Y)&&this.isContextual(113))return;super.parseClassId(U,J,Y,U.declare?1024:8331);let Q=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);if(Q)U.typeParameters=Q}parseClassPropertyAnnotation(U){if(!U.optional){if(this.eat(35))U.definite=!0;else if(this.eat(17))U.optional=!0}let J=this.tsTryParseTypeAnnotation();if(J)U.typeAnnotation=J}parseClassProperty(U){if(this.parseClassPropertyAnnotation(U),this.state.isAmbientContext&&!(U.readonly&&!U.typeAnnotation)&&this.match(29))this.raise(JD.DeclareClassFieldHasInitializer,this.state.startLoc);if(U.abstract&&this.match(29)){let{key:J}=U;this.raise(JD.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:J.type==="Identifier"&&!U.computed?J.name:`[${this.input.slice(this.offsetToSourcePos(J.start),this.offsetToSourcePos(J.end))}]`})}return super.parseClassProperty(U)}parseClassPrivateProperty(U){if(U.abstract)this.raise(JD.PrivateElementHasAbstract,U);if(U.accessibility)this.raise(JD.PrivateElementHasAccessibility,U,{modifier:U.accessibility});return this.parseClassPropertyAnnotation(U),super.parseClassPrivateProperty(U)}parseClassAccessorProperty(U){if(this.parseClassPropertyAnnotation(U),U.optional)this.raise(JD.AccessorCannotBeOptional,U);return super.parseClassAccessorProperty(U)}pushClassMethod(U,J,Y,X,Q,F){let W=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(W&&Q)this.raise(JD.ConstructorHasTypeParameters,W);let{declare:K=!1,kind:Z}=J;if(K&&(Z==="get"||Z==="set"))this.raise(JD.DeclareAccessor,J,{kind:Z});if(W)J.typeParameters=W;super.pushClassMethod(U,J,Y,X,Q,F)}pushClassPrivateMethod(U,J,Y,X){let Q=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(Q)J.typeParameters=Q;super.pushClassPrivateMethod(U,J,Y,X)}declareClassPrivateMethodInScope(U,J){if(U.type==="TSDeclareMethod")return;if(U.type==="MethodDefinition"&&U.value.body==null)return;super.declareClassPrivateMethodInScope(U,J)}parseClassSuper(U){if(super.parseClassSuper(U),U.superClass){if(U.superClass.type==="TSInstantiationExpression"){let J=U.superClass,Y=J.expression;this.takeSurroundingComments(Y,Y.start,Y.end);let X=J.typeParameters;this.takeSurroundingComments(X,X.start,X.end),U.superClass=Y,U.superTypeParameters=X}else if(this.match(47)||this.match(51))U.superTypeParameters=this.tsParseTypeArgumentsInExpression()}if(this.eatContextual(113))U.implements=this.tsParseHeritageClause("implements")}parseObjPropValue(U,J,Y,X,Q,F,W){let K=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(K)U.typeParameters=K;return super.parseObjPropValue(U,J,Y,X,Q,F,W)}parseFunctionParams(U,J){let Y=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(Y)U.typeParameters=Y;super.parseFunctionParams(U,J)}parseVarId(U,J){if(super.parseVarId(U,J),U.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35))U.definite=!0;let Y=this.tsTryParseTypeAnnotation();if(Y)U.id.typeAnnotation=Y,this.resetEndLocation(U.id)}parseAsyncArrowFromCallExpression(U,J){if(this.match(14))U.returnType=this.tsParseTypeAnnotation();return super.parseAsyncArrowFromCallExpression(U,J)}parseMaybeAssign(U,J){var Y,X,Q,F,W;let K,Z,z;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(K=this.state.clone(),Z=this.tryParse(()=>super.parseMaybeAssign(U,J),K),!Z.error)return Z.node;let{context:V}=this.state,I=V[V.length-1];if(I===CD.j_oTag||I===CD.j_expr)V.pop()}if(!((Y=Z)!=null&&Y.error)&&!this.match(47))return super.parseMaybeAssign(U,J);if(!K||K===this.state)K=this.state.clone();let q,G=this.tryParse((V)=>{var I,H;q=this.tsParseTypeParameters(this.tsParseConstModifier);let w=super.parseMaybeAssign(U,J);if(w.type!=="ArrowFunctionExpression"||(I=w.extra)!=null&&I.parenthesized)V();if(((H=q)==null?void 0:H.params.length)!==0)this.resetStartLocationFromNode(w,q);return w.typeParameters=q,w},K);if(!G.error&&!G.aborted){if(q)this.reportReservedArrowTypeParam(q);return G.node}if(!Z){if(j_(!this.hasPlugin("jsx")),z=this.tryParse(()=>super.parseMaybeAssign(U,J),K),!z.error)return z.node}if((X=Z)!=null&&X.node)return this.state=Z.failState,Z.node;if(G.node){if(this.state=G.failState,q)this.reportReservedArrowTypeParam(q);return G.node}if((Q=z)!=null&&Q.node)return this.state=z.failState,z.node;throw((F=Z)==null?void 0:F.error)||G.error||((W=z)==null?void 0:W.error)}reportReservedArrowTypeParam(U){var J;if(U.params.length===1&&!U.params[0].constraint&&!((J=U.extra)!=null&&J.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike"))this.raise(JD.ReservedArrowTypeParam,U)}parseMaybeUnary(U,J){if(!this.hasPlugin("jsx")&&this.match(47))return this.tsParseTypeAssertion();return super.parseMaybeUnary(U,J)}parseArrow(U){if(this.match(14)){let J=this.tryParse((Y)=>{let X=this.tsParseTypeOrTypePredicateAnnotation(14);if(this.canInsertSemicolon()||!this.match(19))Y();return X});if(J.aborted)return;if(!J.thrown){if(J.error)this.state=J.failState;U.returnType=J.node}}return super.parseArrow(U)}parseFunctionParamType(U){if(this.eat(17))U.optional=!0;let J=this.tsTryParseTypeAnnotation();if(J)U.typeAnnotation=J;return this.resetEndLocation(U),U}isAssignable(U,J){switch(U.type){case"TSTypeCastExpression":return this.isAssignable(U.expression,J);case"TSParameterProperty":return!0;default:return super.isAssignable(U,J)}}toAssignable(U,J=!1){switch(U.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(U,J);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(J)this.expressionScope.recordArrowParameterBindingError(JD.UnexpectedTypeCastInParameter,U);else this.raise(JD.UnexpectedTypeCastInParameter,U);this.toAssignable(U.expression,J);break;case"AssignmentExpression":if(!J&&U.left.type==="TSTypeCastExpression")U.left=this.typeCastToParameter(U.left);default:super.toAssignable(U,J)}}toAssignableParenthesizedExpression(U,J){switch(U.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(U.expression,J);break;default:super.toAssignable(U,J)}}checkToRestConversion(U,J){switch(U.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(U.expression,!1);break;default:super.checkToRestConversion(U,J)}}isValidLVal(U,J,Y,X){switch(U){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(X!==64||!Y)&&["expression",!0];default:return super.isValidLVal(U,J,Y,X)}}parseBindingAtom(){if(this.state.type===78)return this.parseIdentifier(!0);return super.parseBindingAtom()}parseMaybeDecoratorArguments(U,J){if(this.match(47)||this.match(51)){let Y=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let X=super.parseMaybeDecoratorArguments(U,J);return X.typeParameters=Y,X}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(U,J)}checkCommaAfterRest(U){if(this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===U)return this.next(),!1;return super.checkCommaAfterRest(U)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(U,J){let Y=super.parseMaybeDefault(U,J);if(Y.type==="AssignmentPattern"&&Y.typeAnnotation&&Y.right.start<Y.typeAnnotation.start)this.raise(JD.TypeAnnotationAfterAssign,Y.typeAnnotation);return Y}getTokenFromCode(U){if(this.state.inType){if(U===62){this.finishOp(48,1);return}if(U===60){this.finishOp(47,1);return}}super.getTokenFromCode(U)}reScan_lt_gt(){let{type:U}=this.state;if(U===47)this.state.pos-=1,this.readToken_lt();else if(U===48)this.state.pos-=1,this.readToken_gt()}reScan_lt(){let{type:U}=this.state;if(U===51)return this.state.pos-=2,this.finishOp(47,1),47;return U}toAssignableListItem(U,J,Y){let X=U[J];if(X.type==="TSTypeCastExpression")U[J]=this.typeCastToParameter(X);super.toAssignableListItem(U,J,Y)}typeCastToParameter(U){return U.expression.typeAnnotation=U.typeAnnotation,this.resetEndLocation(U.expression,U.typeAnnotation.loc.end),U.expression}shouldParseArrow(U){if(this.match(14))return U.every((J)=>this.isAssignable(J,!0));return super.shouldParseArrow(U)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(U){if(this.match(47)||this.match(51)){let J=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());if(J)U.typeParameters=J}return super.jsxParseOpeningElementAfterName(U)}getGetterSetterExpectedParamCount(U){let J=super.getGetterSetterExpectedParamCount(U),X=this.getObjectOrClassMethodParams(U)[0];return X&&this.isThisParam(X)?J+1:J}parseCatchClauseParam(){let U=super.parseCatchClauseParam(),J=this.tsTryParseTypeAnnotation();if(J)U.typeAnnotation=J,this.resetEndLocation(U);return U}tsInAmbientContext(U){let{isAmbientContext:J,strict:Y}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return U()}finally{this.state.isAmbientContext=J,this.state.strict=Y}}parseClass(U,J,Y){let X=this.state.inAbstractClass;this.state.inAbstractClass=!!U.abstract;try{return super.parseClass(U,J,Y)}finally{this.state.inAbstractClass=X}}tsParseAbstractDeclaration(U,J){if(this.match(80))return U.abstract=!0,this.maybeTakeDecorators(J,this.parseClass(U,!0,!1));else if(this.isContextual(129))if(!this.hasFollowingLineBreak())return U.abstract=!0,this.raise(JD.NonClassMethodPropertyHasAbstractModifier,U),this.tsParseInterfaceDeclaration(U);else return null;throw this.unexpected(null,80)}parseMethod(U,J,Y,X,Q,F,W){let K=super.parseMethod(U,J,Y,X,Q,F,W);if(K.abstract||K.type==="TSAbstractMethodDefinition"){if((this.hasPlugin("estree")?K.value:K).body){let{key:q}=K;this.raise(JD.AbstractMethodHasImplementation,K,{methodName:q.type==="Identifier"&&!K.computed?q.name:`[${this.input.slice(this.offsetToSourcePos(q.start),this.offsetToSourcePos(q.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(U,J,Y,X){if(!J&&X)return this.parseTypeOnlyImportExportSpecifier(U,!1,Y),this.finishNode(U,"ExportSpecifier");return U.exportKind="value",super.parseExportSpecifier(U,J,Y,X)}parseImportSpecifier(U,J,Y,X,Q){if(!J&&X)return this.parseTypeOnlyImportExportSpecifier(U,!0,Y),this.finishNode(U,"ImportSpecifier");return U.importKind="value",super.parseImportSpecifier(U,J,Y,X,Y?4098:4096)}parseTypeOnlyImportExportSpecifier(U,J,Y){let X=J?"imported":"local",Q=J?"local":"exported",F=U[X],W,K=!1,Z=!0,z=F.loc.start;if(this.isContextual(93)){let G=this.parseIdentifier();if(this.isContextual(93)){let V=this.parseIdentifier();if(d6(this.state.type))K=!0,F=G,W=J?this.parseIdentifier():this.parseModuleExportName(),Z=!1;else W=V,Z=!1}else if(d6(this.state.type))Z=!1,W=J?this.parseIdentifier():this.parseModuleExportName();else K=!0,F=G}else if(d6(this.state.type))if(K=!0,J){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(J?JD.TypeModifierIsUsedInTypeImports:JD.TypeModifierIsUsedInTypeExports,z);U[X]=F,U[Q]=W;let q=J?"importKind":"exportKind";if(U[q]=K?"type":"value",Z&&this.eatContextual(93))U[Q]=J?this.parseIdentifier():this.parseModuleExportName();if(!U[Q])U[Q]=this.cloneIdentifier(U[X]);if(J)this.checkIdentifier(U[Q],K?4098:4096)}fillOptionalPropertiesForTSESLint(U){var J,Y,X,Q,F,W,K,Z,z,q,G,V,I,H,w,j,B,N,A,v,k,C,b,y,T,h,c,p,a,R,O,L,E,f,x,s,u,m,qD,ID,vD,M6,g4,R1,jB,NB,LB,RB;switch(U.type){case"ExpressionStatement":(J=U.directive)!=null||(U.directive=void 0);return;case"RestElement":U.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":(Y=U.decorators)!=null||(U.decorators=[]),(X=U.optional)!=null||(U.optional=!1),(Q=U.typeAnnotation)!=null||(U.typeAnnotation=void 0);return;case"TSParameterProperty":(F=U.accessibility)!=null||(U.accessibility=void 0),(W=U.decorators)!=null||(U.decorators=[]),(K=U.override)!=null||(U.override=!1),(Z=U.readonly)!=null||(U.readonly=!1),(z=U.static)!=null||(U.static=!1);return;case"TSEmptyBodyFunctionExpression":U.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":(q=U.declare)!=null||(U.declare=!1),(G=U.returnType)!=null||(U.returnType=void 0),(V=U.typeParameters)!=null||(U.typeParameters=void 0);return;case"Property":(I=U.optional)!=null||(U.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":(H=U.optional)!=null||(U.optional=!1);case"TSIndexSignature":(w=U.accessibility)!=null||(U.accessibility=void 0),(j=U.readonly)!=null||(U.readonly=!1),(B=U.static)!=null||(U.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":(N=U.declare)!=null||(U.declare=!1),(A=U.definite)!=null||(U.definite=!1),(v=U.readonly)!=null||(U.readonly=!1),(k=U.typeAnnotation)!=null||(U.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":(C=U.accessibility)!=null||(U.accessibility=void 0),(b=U.decorators)!=null||(U.decorators=[]),(y=U.override)!=null||(U.override=!1),(T=U.optional)!=null||(U.optional=!1);return;case"ClassExpression":(h=U.id)!=null||(U.id=null);case"ClassDeclaration":(c=U.abstract)!=null||(U.abstract=!1),(p=U.declare)!=null||(U.declare=!1),(a=U.decorators)!=null||(U.decorators=[]),(R=U.implements)!=null||(U.implements=[]),(O=U.superTypeArguments)!=null||(U.superTypeArguments=void 0),(L=U.typeParameters)!=null||(U.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":(E=U.declare)!=null||(U.declare=!1);return;case"VariableDeclarator":(f=U.definite)!=null||(U.definite=!1);return;case"TSEnumDeclaration":(x=U.const)!=null||(U.const=!1),(s=U.declare)!=null||(U.declare=!1);return;case"TSEnumMember":(u=U.computed)!=null||(U.computed=!1);return;case"TSImportType":(m=U.qualifier)!=null||(U.qualifier=null),(qD=U.options)!=null||(U.options=null);return;case"TSInterfaceDeclaration":(ID=U.declare)!=null||(U.declare=!1),(vD=U.extends)!=null||(U.extends=[]);return;case"TSMappedType":(M6=U.optional)!=null||(U.optional=!1),(g4=U.readonly)!=null||(U.readonly=void 0);return;case"TSModuleDeclaration":(R1=U.declare)!=null||(U.declare=!1),(jB=U.global)!=null||(U.global=U.kind==="global");return;case"TSTypeParameter":(NB=U.const)!=null||(U.const=!1),(LB=U.in)!=null||(U.in=!1),(RB=U.out)!=null||(U.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(U,J){if(K$(U)){if(sH.lastIndex=J,sH.test(this.input)){let Y=this.codePointAtPos(sH.lastIndex);if(!v4(Y)&&Y!==92)return!1}return!0}else if(U===92)return!0;else return!1}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let U=this.nextTokenInLineStart(),J=this.codePointAtPos(U);return this.chStartsBindingIdentifierAndNotRelationalOperator(J,U)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let U=this.nextTokenInLineStart(),J=this.codePointAtPos(U);return this.chStartsBindingIdentifier(J,U)||J===34||J===39}};function oUD(D){if(D.type!=="MemberExpression")return!1;let{computed:$,property:U}=D;if($&&U.type!=="StringLiteral"&&(U.type!=="TemplateLiteral"||U.expressions.length>0))return!1;return s_(D.object)}function aUD(D,$){var U;let{type:J}=D;if((U=D.extra)!=null&&U.parenthesized)return!1;if($){if(J==="Literal"){let{value:Y}=D;if(typeof Y==="string"||typeof Y==="boolean")return!0}}else if(J==="StringLiteral"||J==="BooleanLiteral")return!0;if(t_(D,$)||tUD(D,$))return!0;if(J==="TemplateLiteral"&&D.expressions.length===0)return!0;if(oUD(D))return!0;return!1}function t_(D,$){if($)return D.type==="Literal"&&(typeof D.value==="number"||("bigint"in D));return D.type==="NumericLiteral"||D.type==="BigIntLiteral"}function tUD(D,$){if(D.type==="UnaryExpression"){let{operator:U,argument:J}=D;if(U==="-"&&t_(J,$))return!0}return!1}function s_(D){if(D.type==="Identifier")return!0;if(D.type!=="MemberExpression"||D.computed)return!1;return s_(D.object)}var L_=W$`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),sUD=(D)=>class extends D{parsePlaceholder(U){if(this.match(133)){let J=this.startNode();return this.next(),this.assertNoSpace(),J.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(J,U)}}finishPlaceholder(U,J){let Y=U;if(!Y.expectedNode||!Y.type)Y=this.finishNode(Y,"Placeholder");return Y.expectedNode=J,Y}getTokenFromCode(U){if(U===37&&this.input.charCodeAt(this.state.pos+1)===37)this.finishOp(133,2);else super.getTokenFromCode(U)}parseExprAtom(U){return this.parsePlaceholder("Expression")||super.parseExprAtom(U)}parseIdentifier(U){return this.parsePlaceholder("Identifier")||super.parseIdentifier(U)}checkReservedWord(U,J,Y,X){if(U!==void 0)super.checkReservedWord(U,J,Y,X)}cloneIdentifier(U){let J=super.cloneIdentifier(U);if(J.type==="Placeholder")J.expectedNode=U.expectedNode;return J}cloneStringLiteral(U){if(U.type==="Placeholder")return this.cloneIdentifier(U);return super.cloneStringLiteral(U)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(U,J,Y,X){return U==="Placeholder"||super.isValidLVal(U,J,Y,X)}toAssignable(U,J){if(U&&U.type==="Placeholder"&&U.expectedNode==="Expression")U.expectedNode="Pattern";else super.toAssignable(U,J)}chStartsBindingIdentifier(U,J){if(super.chStartsBindingIdentifier(U,J))return!0;let Y=this.nextTokenStart();if(this.input.charCodeAt(Y)===37&&this.input.charCodeAt(Y+1)===37)return!0;return!1}verifyBreakContinue(U,J){var Y;if(((Y=U.label)==null?void 0:Y.type)==="Placeholder")return;super.verifyBreakContinue(U,J)}parseExpressionStatement(U,J){var Y;if(J.type!=="Placeholder"||(Y=J.extra)!=null&&Y.parenthesized)return super.parseExpressionStatement(U,J);if(this.match(14)){let Q=U;return Q.label=this.finishPlaceholder(J,"Identifier"),this.next(),Q.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(Q,"LabeledStatement")}this.semicolon();let X=U;return X.name=J.name,this.finishPlaceholder(X,"Statement")}parseBlock(U,J,Y){return this.parsePlaceholder("BlockStatement")||super.parseBlock(U,J,Y)}parseFunctionId(U){return this.parsePlaceholder("Identifier")||super.parseFunctionId(U)}parseClass(U,J,Y){let X=J?"ClassDeclaration":"ClassExpression";this.next();let Q=this.state.strict,F=this.parsePlaceholder("Identifier");if(F)if(this.match(81)||this.match(133)||this.match(5))U.id=F;else if(Y||!J)return U.id=null,U.body=this.finishPlaceholder(F,"ClassBody"),this.finishNode(U,X);else throw this.raise(L_.ClassNameIsRequired,this.state.startLoc);else this.parseClassId(U,J,Y);return super.parseClassSuper(U),U.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!U.superClass,Q),this.finishNode(U,X)}parseExport(U,J){let Y=this.parsePlaceholder("Identifier");if(!Y)return super.parseExport(U,J);let X=U;if(!this.isContextual(98)&&!this.match(12))return X.specifiers=[],X.source=null,X.declaration=this.finishPlaceholder(Y,"Declaration"),this.finishNode(X,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let Q=this.startNode();return Q.exported=Y,X.specifiers=[this.finishNode(Q,"ExportDefaultSpecifier")],super.parseExport(X,J)}isExportDefaultSpecifier(){if(this.match(65)){let U=this.nextTokenStart();if(this.isUnparsedContextual(U,"from")){if(this.input.startsWith(I1(133),this.nextTokenStartSince(U+4)))return!0}}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(U,J){var Y;if((Y=U.specifiers)!=null&&Y.length)return!0;return super.maybeParseExportDefaultSpecifier(U,J)}checkExport(U){let{specifiers:J}=U;if(J!=null&&J.length)U.specifiers=J.filter((Y)=>Y.exported.type==="Placeholder");super.checkExport(U),U.specifiers=J}parseImport(U){let J=this.parsePlaceholder("Identifier");if(!J)return super.parseImport(U);if(U.specifiers=[],!this.isContextual(98)&&!this.match(12))return U.source=this.finishPlaceholder(J,"StringLiteral"),this.semicolon(),this.finishNode(U,"ImportDeclaration");let Y=this.startNodeAtNode(J);if(Y.local=J,U.specifiers.push(this.finishNode(Y,"ImportDefaultSpecifier")),this.eat(12)){if(!this.maybeParseStarImportSpecifier(U))this.parseNamedImportSpecifiers(U)}return this.expectContextual(98),U.source=this.parseImportSource(),this.semicolon(),this.finishNode(U,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){if(this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index))this.raise(L_.UnexpectedSpace,this.state.lastTokEndLoc)}},eUD=(D)=>class extends D{parseV8Intrinsic(){if(this.match(54)){let U=this.state.startLoc,J=this.startNode();if(this.next(),kD(this.state.type)){let Y=this.parseIdentifierName(),X=this.createIdentifier(J,Y);if(this.castNodeTo(X,"V8IntrinsicIdentifier"),this.match(10))return X}this.unexpected(U)}}parseExprAtom(U){return this.parseV8Intrinsic()||super.parseExprAtom(U)}},R_=["minimal","fsharp","hack","smart"],M_=["^^","@@","^","%","#"];function DJD(D){if(D.has("decorators")){if(D.has("decorators-legacy"))throw Error("Cannot use the decorators and decorators-legacy plugin together");let J=D.get("decorators").decoratorsBeforeExport;if(J!=null&&typeof J!=="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 J=D.get("pipelineOperator").proposal;if(!R_.includes(J)){let Y=R_.map((X)=>`"${X}"`).join(", ");throw Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${Y}.`)}if(J==="hack"){var U;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(!M_.includes(Y)){let X=M_.map((Q)=>`"${Q}"`).join(", ");throw Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${X}.`)}if(Y==="#"&&((U=D.get("recordAndTuple"))==null?void 0:U.syntaxType)==="hash")throw Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",D.get("recordAndTuple")])}\`.`)}else if(J==="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 J=D.get("recordAndTuple").syntaxType;if(J!=null){let Y=["hash","bar"];if(!Y.includes(J))throw Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+Y.map((X)=>`'${X}'`).join(", "))}}if(D.has("asyncDoExpressions")&&!D.has("doExpressions")){let J=Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw J.missingPlugins="doExpressions",J}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 e_={estree:YUD,jsx:xUD,flow:CUD,typescript:rUD,v8intrinsic:eUD,placeholders:sUD},$JD=Object.keys(e_);class Dx extends a_{checkProto(D,$,U,J){if(D.type==="SpreadElement"||this.isObjectMethod(D)||D.computed||D.shorthand)return U;let Y=D.key;if((Y.type==="Identifier"?Y.name:Y.value)==="__proto__"){if($)return this.raise(M.RecordNoProto,Y),!0;if(U)if(J){if(J.doubleProtoLoc===null)J.doubleProtoLoc=Y.loc.start}else this.raise(M.DuplicateProto,Y);return!0}return U}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,U=this.parseMaybeAssign(D);if(this.match(12)){let J=this.startNodeAt($);J.expressions=[U];while(this.eat(12))J.expressions.push(this.parseMaybeAssign(D));return this.toReferencedList(J.expressions),this.finishNode(J,"SequenceExpression")}return U}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 U=this.state.startLoc,J=this.isContextual(108);if(J){if(this.prodParam.hasYield){this.next();let F=this.parseYield(U);if($)F=$.call(this,F,U);return F}}let Y;if(D)Y=!1;else D=new J7,Y=!0;let{type:X}=this.state;if(X===10||kD(X))this.state.potentialArrowAt=this.state.start;let Q=this.parseMaybeConditional(D);if($)Q=$.call(this,Q,U);if(KUD(this.state.type)){let F=this.startNodeAt(U),W=this.state.value;if(F.operator=W,this.match(29)){this.toAssignable(Q,!0),F.left=Q;let K=U.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=Q;return this.next(),F.right=this.parseMaybeAssign(),this.checkLVal(Q,this.finishNode(F,"AssignmentExpression"),void 0,void 0,void 0,void 0,W==="||="||W==="&&="||W==="??="),F}else if(Y)this.checkExpressionErrors(D,!0);if(J){let{type:F}=this.state;if((this.hasPlugin("v8intrinsic")?D7(F):D7(F)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(M.YieldNotInGeneratorFunction,U),this.parseYield(U)}return Q}parseMaybeConditional(D){let $=this.state.startLoc,U=this.state.potentialArrowAt,J=this.parseExprOps(D);if(this.shouldExitDescending(J,U))return J;return this.parseConditional(J,$,D)}parseConditional(D,$,U){if(this.eat(17)){let J=this.startNodeAt($);return J.test=D,J.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),J.alternate=this.parseMaybeAssign(),this.finishNode(J,"ConditionalExpression")}return D}parseMaybeUnaryOrPrivate(D){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(D)}parseExprOps(D){let $=this.state.startLoc,U=this.state.potentialArrowAt,J=this.parseMaybeUnaryOrPrivate(D);if(this.shouldExitDescending(J,U))return J;return this.parseExprOp(J,$,-1)}parseExprOp(D,$,U){if(this.isPrivateName(D)){let Y=this.getPrivateNameSV(D);if(U>=TY(58)||!this.prodParam.hasIn||!this.match(58))this.raise(M.PrivateInExpectedIn,D,{identifierName:Y});this.classScope.usePrivateName(Y,D.loc.start)}let J=this.state.type;if(zUD(J)&&(this.prodParam.hasIn||!this.match(58))){let Y=TY(J);if(Y>U){if(J===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return D;this.checkPipelineAtInfixOperator(D,$)}let X=this.startNodeAt($);X.left=D,X.operator=this.state.value;let Q=J===41||J===42,F=J===40;if(F)Y=TY(42);if(this.next(),J===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])){if(this.state.type===96&&this.prodParam.hasAwait)throw this.raise(M.UnexpectedAwaitAfterPipelineBody,this.state.startLoc)}X.right=this.parseExprOpRightExpr(J,Y);let W=this.finishNode(X,Q||F?"LogicalExpression":"BinaryExpression"),K=this.state.type;if(F&&(K===41||K===42)||Q&&K===40)throw this.raise(M.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(W,$,U)}}return D}parseExprOpRightExpr(D,$){let U=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,$),U)});default:return this.parseExprOpBaseRightExpr(D,$)}}parseExprOpBaseRightExpr(D,$){let U=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),U,IUD(D)?$-1:$)}parseHackPipeBody(){var D;let{startLoc:$}=this.state,U=this.parseMaybeAssign();if(t3D.has(U.type)&&!((D=U.extra)!=null&&D.parenthesized))this.raise(M.PipeUnparenthesizedBody,$,{type:U.type});if(!this.topicReferenceWasUsedInCurrentContext())this.raise(M.PipeTopicUnused,$);return U}checkExponentialAfterUnary(D){if(this.match(57))this.raise(M.UnexpectedTokenUnaryExponentiation,D.argument)}parseMaybeUnary(D,$){let U=this.state.startLoc,J=this.isContextual(96);if(J&&this.recordAwaitIfAllowed()){this.next();let F=this.parseAwait(U);if(!$)this.checkExponentialAfterUnary(F);return F}let Y=this.match(34),X=this.startNode();if(GUD(this.state.type)){if(X.operator=this.state.value,X.prefix=!0,this.match(72))this.expectPlugin("throwExpressions");let F=this.match(89);if(this.next(),X.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(D,!0),this.state.strict&&F){let W=X.argument;if(W.type==="Identifier")this.raise(M.StrictDelete,X);else if(this.hasPropertyAsPrivateName(W))this.raise(M.DeletePrivateField,X)}if(!Y){if(!$)this.checkExponentialAfterUnary(X);return this.finishNode(X,"UnaryExpression")}}let Q=this.parseUpdate(X,Y,D);if(J){let{type:F}=this.state;if((this.hasPlugin("v8intrinsic")?D7(F):D7(F)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(M.AwaitNotInAsyncContext,U),this.parseAwait(U)}return Q}parseUpdate(D,$,U){if($){let X=D;return this.checkLVal(X.argument,this.finishNode(X,"UpdateExpression")),D}let J=this.state.startLoc,Y=this.parseExprSubscripts(U);if(this.checkExpressionErrors(U,!1))return Y;while(qUD(this.state.type)&&!this.canInsertSemicolon()){let X=this.startNodeAt(J);X.operator=this.state.value,X.prefix=!1,X.argument=Y,this.next(),this.checkLVal(Y,Y=this.finishNode(X,"UpdateExpression"))}return Y}parseExprSubscripts(D){let $=this.state.startLoc,U=this.state.potentialArrowAt,J=this.parseExprAtom(D);if(this.shouldExitDescending(J,U))return J;return this.parseSubscripts(J,$)}parseSubscripts(D,$,U){let J={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(D),stop:!1};do D=this.parseSubscript(D,$,U,J),J.maybeAsyncArrow=!1;while(!J.stop);return D}parseSubscript(D,$,U,J){let{type:Y}=this.state;if(!U&&Y===15)return this.parseBind(D,$,U,J);else if(SY(Y))return this.parseTaggedTemplateExpression(D,$,J);let X=!1;if(Y===18){if(U){if(this.raise(M.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40)return this.stopParseSubscript(D,J)}J.optionalChainMember=X=!0,this.next()}if(!U&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(D,$,J,X);else{let Q=this.eat(0);if(Q||X||this.eat(16))return this.parseMember(D,$,J,Q,X);else return this.stopParseSubscript(D,J)}}stopParseSubscript(D,$){return $.stop=!0,D}parseMember(D,$,U,J,Y){let X=this.startNodeAt($);if(X.object=D,X.computed=J,J)X.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),X.property=this.parsePrivateName()}else X.property=this.parseIdentifier(!0);if(U.optionalChainMember)return X.optional=Y,this.finishNode(X,"OptionalMemberExpression");else return this.finishNode(X,"MemberExpression")}parseBind(D,$,U,J){let Y=this.startNodeAt($);return Y.object=D,this.next(),Y.callee=this.parseNoCallExpr(),J.stop=!0,this.parseSubscripts(this.finishNode(Y,"BindExpression"),$,U)}parseCoverCallAndAsyncArrowHead(D,$,U,J){let Y=this.state.maybeInArrowParameters,X=null;this.state.maybeInArrowParameters=!0,this.next();let Q=this.startNodeAt($);Q.callee=D;let{maybeAsyncArrow:F,optionalChainMember:W}=U;if(F)this.expressionScope.enter(dUD()),X=new J7;if(W)Q.optional=J;if(J)Q.arguments=this.parseCallExpressionArguments();else Q.arguments=this.parseCallExpressionArguments(D.type!=="Super",Q,X);let K=this.finishCallExpression(Q,W);if(F&&this.shouldParseAsyncArrow()&&!J)U.stop=!0,this.checkDestructuringPrivate(X),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),K=this.parseAsyncArrowFromCallExpression(this.startNodeAt($),K);else{if(F)this.checkExpressionErrors(X,!0),this.expressionScope.exit();this.toReferencedArguments(K)}return this.state.maybeInArrowParameters=Y,K}toReferencedArguments(D,$){this.toReferencedListDeep(D.arguments,$)}parseTaggedTemplateExpression(D,$,U){let J=this.startNodeAt($);if(J.tag=D,J.quasi=this.parseTemplate(!0),U.optionalChainMember)this.raise(M.OptionalChainingNoTemplate,$);return this.finishNode(J,"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 U of D.arguments)if(U.type==="SpreadElement")this.raise(M.ImportCallSpreadArgument,U)}return this.finishNode(D,$?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(D,$,U){let J=[],Y=!0,X=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}J.push(this.parseExprListItem(11,!1,U,D))}return this.state.inFSharpPipelineDirectBody=X,J}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(D,$){var U;if(this.resetPreviousNodeTrailingComments($),this.expect(19),this.parseArrowExpression(D,$.arguments,!0,(U=$.extra)==null?void 0:U.trailingCommaLoc),$.innerComments)X7(D,$.innerComments);if($.callee.trailingComments)X7(D,$.callee.trailingComments);return D}parseNoCallExpr(){let D=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),D,!0)}parseExprAtom(D){let $,U=null,{type:J}=this.state;switch(J){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:U=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(U,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(K$(Y)||Y===62)throw this.expectOnePlugin(["jsx","flow","typescript"]);throw this.unexpected()}default:if(J===137)return this.parseDecimalLiteral(this.state.value);else if(J===2||J===1)return this.parseArrayLike(this.state.type===2?4:3,!0);else if(J===6||J===7)return this.parseObjectLike(this.state.type===6?9:8,!1,!0);if(kD(J)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let Y=this.state.potentialArrowAt===this.state.start,X=this.state.containsEsc,Q=this.parseIdentifier();if(!X&&Q.name==="async"&&!this.canInsertSemicolon()){let{type:F}=this.state;if(F===68)return this.resetPreviousNodeTrailingComments(Q),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(Q));else if(kD(F))if(Y&&this.lookaheadCharCode()===61)return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(Q));else return Q;else if(F===90)return this.resetPreviousNodeTrailingComments(Q),this.parseDo(this.startNodeAtNode(Q),!0)}if(Y&&this.match(19)&&!this.canInsertSemicolon())return this.next(),this.parseArrowExpression(this.startNodeAtNode(Q),[Q],!1);return Q}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(D,$){let U=this.getPluginOption("pipelineOperator","proposal");if(U)return this.state.type=D,this.state.value=$,this.state.pos--,this.state.end--,this.state.endLoc=a0(this.state.endLoc,-1),this.parseTopicReference(U);throw this.unexpected()}parseTopicReference(D){let $=this.startNode(),U=this.state.startLoc,J=this.state.type;return this.next(),this.finishTopicReference($,U,D,J)}finishTopicReference(D,$,U,J){if(this.testTopicReferenceConfiguration(U,$,J))if(U==="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:I1(J)})}testTopicReferenceConfiguration(D,$,U){switch(D){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:I1(U)}]);case"smart":return U===27;default:throw this.raise(M.PipeTopicRequiresHackPipes,$)}}parseAsyncArrowUnaryFunction(D){this.prodParam.enter(PY(!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 U=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=U,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(a0(this.state.startLoc,1)),U=this.state.value;return this.next(),D.id=this.createIdentifier($,U),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,$,U){D.meta=$;let J=this.state.containsEsc;if(D.property=this.parseIdentifier(!0),D.property.name!==U||J)this.raise(M.UnsupportedMetaProperty,D.property,{target:$.name,onlyValidPropertyName:U});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,$,U){return this.addExtra(U,"rawValue",D),this.addExtra(U,"raw",this.input.slice(this.offsetToSourcePos(U.start),this.state.end)),U.value=D,this.next(),this.finishNode(U,$)}parseLiteral(D,$){let U=this.startNode();return this.parseLiteralAtNode(D,$,U)}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,U;this.next(),this.expressionScope.enter(cUD());let J=this.state.maybeInArrowParameters,Y=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let X=this.state.startLoc,Q=[],F=new J7,W=!0,K,Z;while(!this.match(11)){if(W)W=!1;else if(this.expect(12,F.optionalParametersLoc===null?null:F.optionalParametersLoc),this.match(11)){Z=this.state.startLoc;break}if(this.match(21)){let G=this.state.startLoc;if(K=this.state.startLoc,Q.push(this.parseParenItem(this.parseRestBinding(),G)),!this.checkCommaAfterRest(41))break}else Q.push(this.parseMaybeAssignAllowInOrVoidPattern(11,F,this.parseParenItem))}let z=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=J,this.state.inFSharpPipelineDirectBody=Y;let q=this.startNodeAt($);if(D&&this.shouldParseArrow(Q)&&(q=this.parseArrow(q)))return this.checkDestructuringPrivate(F),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(q,Q,!1),q;if(this.expressionScope.exit(),!Q.length)this.unexpected(this.state.lastTokStartLoc);if(Z)this.unexpected(Z);if(K)this.unexpected(K);if(this.checkExpressionErrors(F,!0),this.toReferencedListDeep(Q,!0),Q.length>1)U=this.startNodeAt(X),U.expressions=Q,this.finishNode(U,"SequenceExpression"),this.resetEndLocation(U,z);else U=Q[0];return this.wrapParenthesis($,U)}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 U=this.startNodeAt(D);return U.expression=$,this.finishNode(U,"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 U=this.parseMetaProperty(D,$,"target");if(!this.scope.allowNewTarget)this.raise(M.UnexpectedNewTarget,U);return U}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),U=this.parseNoCallExpr();if(D.callee=U,$&&(U.type==="Import"||U.type==="ImportExpression"))this.raise(M.ImportCallNotNewExpression,U)}parseTemplateElement(D){let{start:$,startLoc:U,end:J,value:Y}=this.state,X=$+1,Q=this.startNodeAt(a0(U,1));if(Y===null){if(!D)this.raise(M.InvalidEscapeSequenceTemplate,a0(this.state.firstInvalidTemplateEscapePos,1))}let F=this.match(24),W=F?-1:-2,K=J+W;Q.value={raw:this.input.slice(X,K).replace(/\r\n?/g,`
`),cooked:Y===null?null:Y.slice(1,W)},Q.tail=F,this.next();let Z=this.finishNode(Q,"TemplateElement");return this.resetEndLocation(Z,a0(this.state.lastTokEndLoc,W)),Z}parseTemplate(D){let $=this.startNode(),U=this.parseTemplateElement(D),J=[U],Y=[];while(!U.tail)Y.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),J.push(U=this.parseTemplateElement(D));return $.expressions=Y,$.quasis=J,this.finishNode($,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(D,$,U,J){if(U)this.expectPlugin("recordAndTuple");let Y=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let X=!1,Q=!0,F=this.startNode();F.properties=[],this.next();while(!this.match(D)){if(Q)Q=!1;else if(this.expect(12),this.match(D)){this.addTrailingCommaExtraToNode(F);break}let K;if($)K=this.parseBindingProperty();else K=this.parsePropertyDefinition(J),X=this.checkProto(K,U,X,J);if(U&&!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(U)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 U=this.startNode(),J=!1,Y=!1,X;if(this.match(21)){if($.length)this.unexpected();return this.parseSpread()}if($.length)U.decorators=$,$=[];if(U.method=!1,D)X=this.state.startLoc;let Q=this.eat(55);this.parsePropertyNamePrefixOperator(U);let F=this.state.containsEsc;if(this.parsePropertyName(U,D),!Q&&!F&&this.maybeAsyncOrAccessorProp(U)){let{key:W}=U,K=W.name;if(K==="async"&&!this.hasPrecedingLineBreak())J=!0,this.resetPreviousNodeTrailingComments(W),Q=this.eat(55),this.parsePropertyName(U);if(K==="get"||K==="set"){if(Y=!0,this.resetPreviousNodeTrailingComments(W),U.kind=K,this.match(55))Q=!0,this.raise(M.AccessorIsGenerator,this.state.curPosition(),{kind:K}),this.next();this.parsePropertyName(U)}}return this.parseObjPropValue(U,X,Q,J,!1,Y,D)}getGetterSetterExpectedParamCount(D){return D.kind==="get"?0:1}getObjectOrClassMethodParams(D){return D.params}checkGetterSetterParams(D){var $;let U=this.getGetterSetterExpectedParamCount(D),J=this.getObjectOrClassMethodParams(D);if(J.length!==U)this.raise(D.kind==="get"?M.BadGetterArity:M.BadSetterArity,D);if(D.kind==="set"&&(($=J[J.length-1])==null?void 0:$.type)==="RestElement")this.raise(M.BadSetterRestParameter,D)}parseObjectMethod(D,$,U,J,Y){if(Y){let X=this.parseMethod(D,$,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(X),X}if(U||$||this.match(10)){if(J)this.unexpected();return D.kind="method",D.method=!0,this.parseMethod(D,$,U,!1,!1,"ObjectMethod")}}parseObjectProperty(D,$,U,J){if(D.shorthand=!1,this.eat(14))return D.value=U?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,J),this.finishObjectProperty(D);if(!D.computed&&D.key.type==="Identifier"){if(this.checkReservedWord(D.key.name,D.key.loc.start,!0,!1),U)D.value=this.parseMaybeDefault($,this.cloneIdentifier(D.key));else if(this.match(29)){let Y=this.state.startLoc;if(J!=null){if(J.shorthandAssignLoc===null)J.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,$,U,J,Y,X,Q){let F=this.parseObjectMethod(D,U,J,Y,X)||this.parseObjectProperty(D,$,Y,Q);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:U,value:J}=this.state,Y;if(d6(U))Y=this.parseIdentifier(!0);else switch(U){case 135:Y=this.parseNumericLiteral(J);break;case 134:Y=this.parseStringLiteral(J);break;case 136:Y=this.parseBigIntLiteral(J);break;case 139:{let X=this.state.startLoc;if($!=null){if($.privateKeyLoc===null)$.privateKeyLoc=X}else this.raise(M.UnexpectedPrivateField,X);Y=this.parsePrivateName();break}default:if(U===137){Y=this.parseDecimalLiteral(J);break}this.unexpected()}if(D.key=Y,U!==139)D.computed=!1}}initFunction(D,$){D.id=null,D.generator=!1,D.async=$}parseMethod(D,$,U,J,Y,X,Q=!1){this.initFunction(D,U),D.generator=$,this.scope.enter(530|(Q?576:0)|(Y?32:0)),this.prodParam.enter(PY(U,D.generator)),this.parseFunctionParams(D,J);let F=this.parseFunctionBodyAndFinish(D,X,!0);return this.prodParam.exit(),this.scope.exit(),F}parseArrayLike(D,$,U){if($)this.expectPlugin("recordAndTuple");let J=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let Y=this.startNode();return this.next(),Y.elements=this.parseExprList(D,!$,U,Y),this.state.inFSharpPipelineDirectBody=J,this.finishNode(Y,$?"TupleExpression":"ArrayExpression")}parseArrowExpression(D,$,U,J){this.scope.enter(518);let Y=PY(U,!1);if(!this.match(5)&&this.prodParam.hasIn)Y|=8;this.prodParam.enter(Y),this.initFunction(D,U);let X=this.state.maybeInArrowParameters;if($)this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(D,$,J);return this.state.maybeInArrowParameters=!1,this.parseFunctionBody(D,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=X,this.finishNode(D,"ArrowFunctionExpression")}setArrowFunctionParameters(D,$,U){this.toAssignableList($,U,!1),D.params=$}parseFunctionBodyAndFinish(D,$,U=!1){return this.parseFunctionBody(D,!1,U),this.finishNode(D,$)}parseFunctionBody(D,$,U=!1){let J=$&&!this.match(5);if(this.expressionScope.enter(n_()),J)D.body=this.parseMaybeAssign(),this.checkParams(D,!1,$,!1);else{let Y=this.state.strict,X=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),D.body=this.parseBlock(!0,!1,(Q)=>{let F=!this.isSimpleParamList(D.params);if(Q&&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&&!$&&!U&&!F,$,W),this.state.strict&&D.id)this.checkIdentifier(D.id,65,W)}),this.prodParam.exit(),this.state.labels=X}this.expressionScope.exit()}isSimpleParameter(D){return D.type==="Identifier"}isSimpleParamList(D){for(let $=0,U=D.length;$<U;$++)if(!this.isSimpleParameter(D[$]))return!1;return!0}checkParams(D,$,U,J=!0){let Y=!$&&new Set,X={type:"FormalParameters"};for(let Q of D.params)this.checkLVal(Q,X,5,Y,J)}parseExprList(D,$,U,J){let Y=[],X=!0;while(!this.eat(D)){if(X)X=!1;else if(this.expect(12),this.match(D)){if(J)this.addTrailingCommaExtraToNode(J);this.next();break}Y.push(this.parseExprListItem(D,$,U))}return Y}parseExprListItem(D,$,U,J){let Y;if(this.match(12)){if(!$)this.raise(M.UnexpectedToken,this.state.curPosition(),{unexpected:","});Y=null}else if(this.match(21)){let X=this.state.startLoc;Y=this.parseParenItem(this.parseSpread(U),X)}else if(this.match(17)){if(this.expectPlugin("partialApplication"),!J)this.raise(M.UnexpectedArgumentPlaceholder,this.state.startLoc);let X=this.startNode();this.next(),Y=this.finishNode(X,"ArgumentPlaceholder")}else Y=this.parseMaybeAssignAllowInOrVoidPattern(D,U,this.parseParenItem);return Y}parseIdentifier(D){let $=this.startNode(),U=this.parseIdentifierName(D);return this.createIdentifier($,U)}createIdentifier(D,$){return D.name=$,D.loc.identifierName=$,this.finishNode(D,"Identifier")}createIdentifierAt(D,$,U){return D.name=$,D.loc.identifierName=$,this.finishNodeAt(D,"Identifier",U)}parseIdentifierName(D){let $,{startLoc:U,type:J}=this.state;if(d6(J))$=this.state.value;else this.unexpected();let Y=FUD(J);if(D){if(Y)this.replaceToken(132)}else this.checkReservedWord($,U,Y,!1);return this.next(),$}checkReservedWord(D,$,U,J){if(D.length>10)return;if(!vUD(D))return;if(U&&RUD(D)){this.raise(M.UnexpectedKeyword,$,{keyword:D});return}if((!this.state.strict?P_:J?C_:S_)(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||SY(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 U=!1,J=null;if(!this.hasPrecedingLineBreak())switch(U=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!U)break;default:J=this.parseMaybeAssign()}return $.delegate=U,$.argument=J,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 U=this.startNodeAt($);return U.callee=D,this.finishNode(U,"PipelineBareFunction")}else{let U=this.startNodeAt($);return this.checkSmartPipeTopicBodyEarlyErrors($),U.expression=D,this.finishNode(U,"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 U=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let J=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),$,D);return this.state.inFSharpPipelineDirectBody=U,J}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 U=this.initializeScopes(!0);this.enterInitialScopes();try{D.body=this.parseProgram($,8,"module")}finally{U()}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,$,U){if($!=null&&this.match(88)){let J=this.lookaheadCharCode();if(J===44||J===(D===3?93:D===8?125:41)||J===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern($))}return this.parseMaybeAssignAllowIn($,U)}parsePropertyNamePrefixOperator(D){}}var eH={kind:1},UJD={kind:2},JJD=/[\uD800-\uDFFF]/u,DI=/in(?:stanceof)?/y;function YJD(D,$,U){for(let J=0;J<D.length;J++){let Y=D[J],{type:X}=Y;if(typeof X==="number"){if(X===139){let{loc:Q,start:F,value:W,end:K}=Y,Z=F+1,z=a0(Q.start,1);D.splice(J,1,new v$({type:A$(27),value:"#",start:F,end:Z,startLoc:Q.start,endLoc:z}),new v$({type:A$(132),value:W,start:Z,end:K,startLoc:z,endLoc:Q.end})),J++;continue}if(SY(X)){let{loc:Q,start:F,value:W,end:K}=Y,Z=F+1,z=a0(Q.start,1),q;if($.charCodeAt(F-U)===96)q=new v$({type:A$(22),value:"`",start:F,end:Z,startLoc:Q.start,endLoc:z});else q=new v$({type:A$(8),value:"}",start:F,end:Z,startLoc:Q.start,endLoc:z});let G,V,I,H;if(X===24)V=K-1,I=a0(Q.end,-1),G=W===null?null:W.slice(1,-1),H=new v$({type:A$(22),value:"`",start:V,end:K,startLoc:I,endLoc:Q.end});else V=K-2,I=a0(Q.end,-2),G=W===null?null:W.slice(1,-2),H=new v$({type:A$(23),value:"${",start:V,end:K,startLoc:I,endLoc:Q.end});D.splice(J,1,q,new v$({type:A$(20),value:G,start:Z,end:V,startLoc:z,endLoc:I}),H),J+=2;continue}Y.type=A$(X)}}return D}class $x extends Dx{parseTopLevel(D,$){if(D.program=this.parseProgram($,140,this.options.sourceType==="module"?"module":"script"),D.comments=this.comments,this.optionFlags&256)D.tokens=YJD(this.tokens,this.input,this.startIndex);return this.finishNode(D,"File")}parseProgram(D,$,U){if(D.sourceType=U,D.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(D,!0,!0,$),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(let[Y,X]of Array.from(this.scope.undefinedExports))this.raise(M.ModuleExportUndefined,X,{localName:Y});this.addExtra(D,"topLevelAwait",this.state.hasTopLevelAwait)}let J;if($===140)J=this.finishNode(D,"Program");else J=this.finishNodeAt(D,"Program",a0(this.state.startLoc,-1));return J}stmtToDirective(D){let $=this.castNodeTo(D,"Directive"),U=this.castNodeTo(D.expression,"DirectiveLiteral"),J=U.value,Y=this.input.slice(this.offsetToSourcePos(U.start),this.offsetToSourcePos(U.end)),X=U.value=Y.slice(1,-1);return this.addExtra(U,"raw",Y),this.addExtra(U,"rawValue",X),this.addExtra(U,"expressionValue",J),$.value=U,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 U=this.lookaheadCharCodeSince(D+2);if(U!==61&&U!==58&&U!==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(K$(D)){if(DI.lastIndex=$,DI.test(this.input)){let U=this.codePointAtPos(DI.lastIndex);if(!v4(U)&&U!==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 U=this.state.type,J=this.startNode(),Y=!!(D&2),X=!!(D&4),Q=D&1;switch(U){case 60:return this.parseBreakContinueStatement(J,!0);case 63:return this.parseBreakContinueStatement(J,!1);case 64:return this.parseDebuggerStatement(J);case 90:return this.parseDoWhileStatement(J);case 91:return this.parseForStatement(J);case 68:if(this.lookaheadCharCode()===46)break;if(!X)this.raise(this.state.strict?M.StrictFunction:this.options.annexB?M.SloppyFunctionAnnexB:M.SloppyFunction,this.state.startLoc);return this.parseFunctionStatement(J,!1,!Y&&X);case 80:if(!Y)this.unexpected();return this.parseClass(this.maybeTakeDecorators($,J),!0);case 69:return this.parseIfStatement(J);case 70:return this.parseReturnStatement(J);case 71:return this.parseSwitchStatement(J);case 72:return this.parseThrowStatement(J);case 73:return this.parseTryStatement(J);case 96:if(this.isAwaitUsing()){if(!this.allowsUsing())this.raise(M.UnexpectedUsingDeclaration,J);else if(!Y)this.raise(M.UnexpectedLexicalDeclaration,J);else if(!this.recordAwaitIfAllowed())this.raise(M.AwaitUsingNotInAsyncContext,J);return this.next(),this.parseVarStatement(J,"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(J,"using");case 100:{if(this.state.containsEsc)break;let K=this.nextTokenStart(),Z=this.codePointAtPos(K);if(Z!==91){if(!Y&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(Z,K)&&Z!==123)break}}case 75:if(!Y)this.raise(M.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let K=this.state.value;return this.parseVarStatement(J,K)}case 92:return this.parseWhileStatement(J);case 76:return this.parseWithStatement(J);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(J);case 83:{let K=this.lookaheadCharCode();if(K===40||K===46)break}case 82:{if(!(this.optionFlags&8)&&!Q)this.raise(M.UnexpectedImportExport,this.state.startLoc);this.next();let K;if(U===83)K=this.parseImport(J);else K=this.parseExport(J,$);return this.assertModuleNodeAllowed(K),K}default:if(this.isAsyncFunction()){if(!Y)this.raise(M.AsyncFunctionInSingleStatementContext,this.state.startLoc);return this.next(),this.parseFunctionStatement(J,!0,!Y&&X)}}let F=this.state.value,W=this.parseExpression();if(kD(U)&&W.type==="Identifier"&&this.eat(14))return this.parseLabeledStatement(J,F,W,D);else return this.parseExpressionStatement(J,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,$,U){if(D){var J;if((J=$.decorators)!=null&&J.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]),U)this.resetStartLocationFromNode(U,$)}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,U;if(this.match(10)){let J=this.state.startLoc;this.next(),U=this.parseExpression(),this.expect(11),U=this.wrapParenthesis(J,U);let Y=this.state.startLoc;if(D.expression=this.parseMaybeDecoratorArguments(U,J),this.getPluginOption("decorators","allowCallParenthesized")===!1&&D.expression!==U)this.raise(M.DecoratorArgumentsOutsideParentheses,Y)}else{U=this.parseIdentifier(!1);while(this.eat(16)){let J=this.startNodeAt($);if(J.object=U,this.match(139))this.classScope.usePrivateName(this.state.value,this.state.startLoc),J.property=this.parsePrivateName();else J.property=this.parseIdentifier(!0);J.computed=!1,U=this.finishNode(J,"MemberExpression")}D.expression=this.parseMaybeDecoratorArguments(U,$)}}else D.expression=this.parseExprSubscripts();return this.finishNode(D,"Decorator")}parseMaybeDecoratorArguments(D,$){if(this.eat(10)){let U=this.startNodeAt($);return U.callee=D,U.arguments=this.parseCallExpressionArguments(),this.toReferencedList(U.arguments),this.finishNode(U,"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 U;for(U=0;U<this.state.labels.length;++U){let J=this.state.labels[U];if(D.label==null||J.name===D.label.name){if(J.kind!=null&&($||J.kind===1))break;if(D.label&&$)break}}if(U===this.state.labels.length){let J=$?"BreakStatement":"ContinueStatement";this.raise(M.IllegalBreakContinue,D,{type:J})}}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(eH),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(eH);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 U=this.isContextual(100);{let F=this.isAwaitUsing(),W=F||this.isForUsing(),K=U&&this.hasFollowingBindingAtom()||W;if(this.match(74)||this.match(75)||K){let Z=this.startNode(),z;if(F){if(z="await using",!this.recordAwaitIfAllowed())this.raise(M.AwaitUsingNotInAsyncContext,this.state.startLoc);this.next()}else z=this.state.value;this.next(),this.parseVar(Z,!0,z);let q=this.finishNode(Z,"VariableDeclaration"),G=this.match(58);if(G&&W)this.raise(M.ForInUsing,q);if((G||this.isContextual(102))&&q.declarations.length===1)return this.parseForIn(D,q,$);if($!==null)this.unexpected($);return this.parseFor(D,q)}}let J=this.isContextual(95),Y=new J7,X=this.parseExpression(!0,Y),Q=this.isContextual(102);if(Q){if(U)this.raise(M.ForOfLet,X);if($===null&&J&&X.type==="Identifier")this.raise(M.ForOfAsync,X)}if(Q||this.match(58)){this.checkDestructuringPrivate(Y),this.toAssignable(X,!0);let F=Q?"ForOfStatement":"ForInStatement";return this.checkLVal(X,{type:F}),this.parseForIn(D,X,$)}else this.checkExpressionErrors(Y,!0);if($!==null)this.unexpected($);return this.parseFor(D,X)}parseFunctionStatement(D,$,U){return this.next(),this.parseFunction(D,1|(U?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(UJD),this.scope.enter(256);let U;for(let J;!this.match(8);)if(this.match(61)||this.match(65)){let Y=this.match(61);if(U)this.finishNode(U,"SwitchCase");if($.push(U=this.startNode()),U.consequent=[],this.next(),Y)U.test=this.parseExpression();else{if(J)this.raise(M.MultipleDefaultsInSwitch,this.state.lastTokStartLoc);J=!0,U.test=null}this.expect(14)}else if(U)U.consequent.push(this.parseStatementListItem());else this.unexpected();if(this.scope.exit(),U)this.finishNode(U,"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,$,U=!1){return this.next(),this.parseVar(D,!1,$,U),this.semicolon(),this.finishNode(D,"VariableDeclaration")}parseWhileStatement(D){return this.next(),D.test=this.parseHeaderExpression(),this.state.labels.push(eH),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,$,U,J){for(let X of this.state.labels)if(X.name===$)this.raise(M.LabelRedeclaration,U,{labelName:$});let Y=ZUD(this.state.type)?1:this.match(71)?2:null;for(let X=this.state.labels.length-1;X>=0;X--){let Q=this.state.labels[X];if(Q.statementStart===D.start)Q.statementStart=this.sourceToOffsetPos(this.state.start),Q.kind=Y;else break}return this.state.labels.push({name:$,kind:Y,statementStart:this.sourceToOffsetPos(this.state.start)}),D.body=J&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),D.label=U,this.finishNode(D,"LabeledStatement")}parseExpressionStatement(D,$,U){return D.expression=$,this.semicolon(),this.finishNode(D,"ExpressionStatement")}parseBlock(D=!1,$=!0,U){let J=this.startNode();if(D)this.state.strictErrors.clear();if(this.expect(5),$)this.scope.enter(0);if(this.parseBlockBody(J,D,!1,8,U),$)this.scope.exit();return this.finishNode(J,"BlockStatement")}isValidDirective(D){return D.type==="ExpressionStatement"&&D.expression.type==="StringLiteral"&&!D.expression.extra.parenthesized}parseBlockBody(D,$,U,J,Y){let X=D.body=[],Q=D.directives=[];this.parseBlockOrModuleBlockBody(X,$?Q:void 0,U,J,Y)}parseBlockOrModuleBlockBody(D,$,U,J,Y){let X=this.state.strict,Q=!1,F=!1;while(!this.match(J)){let W=U?this.parseModuleItem():this.parseStatementListItem();if($&&!F){if(this.isValidDirective(W)){let K=this.stmtToDirective(W);if($.push(K),!Q&&K.value.value==="use strict")Q=!0,this.setStrict(!0);continue}F=!0,this.state.strictErrors.clear()}D.push(W)}if(Y==null||Y.call(this,Q),!X)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,$,U){let J=this.match(58);if(this.next(),J){if(U!==null)this.unexpected(U)}else D.await=U!==null;if($.type==="VariableDeclaration"&&$.declarations[0].init!=null&&(!J||!this.options.annexB||this.state.strict||$.kind!=="var"||$.declarations[0].id.type!=="Identifier"))this.raise(M.ForInOfLoopInitializer,$,{type:J?"ForInStatement":"ForOfStatement"});if($.type==="AssignmentPattern")this.raise(M.InvalidLhs,$,{ancestor:{type:"ForStatement"}});return D.left=$,D.right=J?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),D.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(D,J?"ForInStatement":"ForOfStatement")}parseVar(D,$,U,J=!1){let Y=D.declarations=[];D.kind=U;for(;;){let X=this.startNode();if(this.parseVarId(X,U),X.init=!this.eat(29)?null:$?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn(),X.init===null&&!J){if(X.id.type!=="Identifier"&&!($&&(this.match(58)||this.isContextual(102))))this.raise(M.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"});else if((U==="const"||U==="using"||U==="await using")&&!(this.match(58)||this.isContextual(102)))this.raise(M.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:U})}if(Y.push(this.finishNode(X,"VariableDeclarator")),!this.eat(12))break}return D}parseVarId(D,$){let U=this.parseBindingAtom();if($==="using"||$==="await using"){if(U.type==="ArrayPattern"||U.type==="ObjectPattern")this.raise(M.UsingDeclarationHasBindingPattern,U.loc.start)}else if(U.type==="VoidPattern")this.raise(M.UnexpectedVoidPattern,U.loc.start);this.checkLVal(U,{type:"VariableDeclarator"},$==="var"?5:8201),D.id=U}parseAsyncFunctionExpression(D){return this.parseFunction(D,8)}parseFunction(D,$=0){let U=$&2,J=!!($&1),Y=J&&!($&4),X=!!($&8);if(this.initFunction(D,X),this.match(55)){if(U)this.raise(M.GeneratorInSingleStatementContext,this.state.startLoc);this.next(),D.generator=!0}if(J)D.id=this.parseFunctionId(Y);let Q=this.state.maybeInArrowParameters;if(this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(PY(X,D.generator)),!J)D.id=this.parseFunctionId();if(this.parseFunctionParams(D,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(D,J?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),J&&!U)this.registerFunctionStatementId(D);return this.state.maybeInArrowParameters=Q,D}parseFunctionId(D){return D||kD(this.state.type)?this.parseIdentifier():null}parseFunctionParams(D,$){this.expect(10),this.expressionScope.enter(lUD()),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,$,U){this.next();let J=this.state.strict;return this.state.strict=!0,this.parseClassId(D,$,U),this.parseClassSuper(D),D.body=this.parseClassBody(!!D.superClass,J),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 U={hadConstructor:!1,hadSuperClass:D},J=[],Y=this.startNode();if(Y.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{while(!this.match(8)){if(this.eat(13)){if(J.length>0)throw this.raise(M.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){J.push(this.parseDecorator());continue}let X=this.startNode();if(J.length)X.decorators=J,this.resetStartLocationFromNode(X,J[0]),J=[];if(this.parseClassMember(Y,X,U),X.kind==="constructor"&&X.decorators&&X.decorators.length>0)this.raise(M.DecoratorConstructor,X)}}),this.state.strict=$,this.next(),J.length)throw this.raise(M.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(Y,"ClassBody")}parseClassMemberFromModifier(D,$){let U=this.parseIdentifier(!0);if(this.isClassMethod()){let J=$;return J.kind="method",J.computed=!1,J.key=U,J.static=!1,this.pushClassMethod(D,J,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let J=$;return J.computed=!1,J.key=U,J.static=!1,D.body.push(this.parseClassProperty(J)),!0}return this.resetPreviousNodeTrailingComments(U),!1}parseClassMember(D,$,U){let J=this.isContextual(106);if(J){if(this.parseClassMemberFromModifier(D,$))return;if(this.eat(5)){this.parseClassStaticBlock(D,$);return}}this.parseClassMemberWithIsStatic(D,$,U,J)}parseClassMemberWithIsStatic(D,$,U,J){let Y=$,X=$,Q=$,F=$,W=$,K=Y,Z=Y;if($.static=J,this.parsePropertyNamePrefixOperator($),this.eat(55)){K.kind="method";let H=this.match(139);if(this.parseClassElementName(K),this.parsePostMemberNameModifiers(K),H){this.pushClassPrivateMethod(D,X,!0,!1);return}if(this.isNonstaticConstructor(Y))this.raise(M.ConstructorIsGenerator,Y.key);this.pushClassMethod(D,Y,!0,!1,!1,!1);return}let z=!this.state.containsEsc&&kD(this.state.type),q=this.parseClassElementName($),G=z?q.name:null,V=this.isPrivateName(q),I=this.state.startLoc;if(this.parsePostMemberNameModifiers(Z),this.isClassMethod()){if(K.kind="method",V){this.pushClassPrivateMethod(D,X,!1,!1);return}let H=this.isNonstaticConstructor(Y),w=!1;if(H){if(Y.kind="constructor",U.hadConstructor&&!this.hasPlugin("typescript"))this.raise(M.DuplicateConstructor,q);if(H&&this.hasPlugin("typescript")&&$.override)this.raise(M.OverrideOnConstructor,q);U.hadConstructor=!0,w=U.hadSuperClass}this.pushClassMethod(D,Y,!1,!1,H,w)}else if(this.isClassProperty())if(V)this.pushClassPrivateProperty(D,F);else this.pushClassProperty(D,Q);else if(G==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(q);let H=this.eat(55);if(Z.optional)this.unexpected(I);K.kind="method";let w=this.match(139);if(this.parseClassElementName(K),this.parsePostMemberNameModifiers(Z),w)this.pushClassPrivateMethod(D,X,H,!0);else{if(this.isNonstaticConstructor(Y))this.raise(M.ConstructorIsAsync,Y.key);this.pushClassMethod(D,Y,H,!0,!1,!1)}}else if((G==="get"||G==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(q),K.kind=G;let H=this.match(139);if(this.parseClassElementName(Y),H)this.pushClassPrivateMethod(D,X,!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(G==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(q);let H=this.match(139);this.parseClassElementName(Q),this.pushClassAccessorProperty(D,W,H)}else if(this.isLineTerminator())if(V)this.pushClassPrivateProperty(D,F);else this.pushClassProperty(D,Q);else this.unexpected()}parseClassElementName(D){let{type:$,value:U}=this.state;if(($===132||$===134)&&D.static&&U==="prototype")this.raise(M.StaticPrototype,this.state.startLoc);if($===139){if(U==="constructor")this.raise(M.ConstructorClassPrivateField,this.state.startLoc);let J=this.parsePrivateName();return D.key=J,J}return this.parsePropertyName(D),D.key}parseClassStaticBlock(D,$){var U;this.scope.enter(720);let J=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=J,D.body.push(this.finishNode($,"StaticBlock")),(U=$.decorators)!=null&&U.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 U=this.parseClassPrivateProperty($);D.body.push(U),this.classScope.declarePrivateName(this.getPrivateNameSV(U.key),0,U.key.loc.start)}pushClassAccessorProperty(D,$,U){if(!U&&!$.computed&&this.nameIsConstructor($.key))this.raise(M.ConstructorClassField,$.key);let J=this.parseClassAccessorProperty($);if(D.body.push(J),U)this.classScope.declarePrivateName(this.getPrivateNameSV(J.key),0,J.key.loc.start)}pushClassMethod(D,$,U,J,Y,X){D.body.push(this.parseMethod($,U,J,Y,X,"ClassMethod",!0))}pushClassPrivateMethod(D,$,U,J){let Y=this.parseMethod($,U,J,!1,!1,"ClassPrivateMethod",!0);D.body.push(Y);let X=Y.kind==="get"?Y.static?6:2:Y.kind==="set"?Y.static?5:1:0;this.declareClassPrivateMethodInScope(Y,X)}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(n_()),this.prodParam.enter(0),D.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(D,$,U,J=8331){if(kD(this.state.type)){if(D.id=this.parseIdentifier(),$)this.declareNameFromIdentifier(D.id,J)}else if(U||!$)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 U=this.parseMaybeImportPhase(D,!0),J=this.maybeParseExportDefaultSpecifier(D,U),Y=!J||this.eat(12),X=Y&&this.eatExportStar(D),Q=X&&this.maybeParseExportNamespaceSpecifier(D),F=Y&&(!Q||this.eat(12)),W=J||X;if(X&&!Q){if(J)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(J&&Y&&!X&&!K)this.unexpected(null,5);if(Q&&F)this.unexpected(null,98);let Z;if(W||K){if(Z=!1,$)throw this.raise(M.UnsupportedDecoratorExport,D);this.parseExportFrom(D,W)}else Z=this.maybeParseExportDeclaration(D);if(W||K||Z){var z;let q=D;if(this.checkExport(q,!0,!1,!!q.source),((z=q.declaration)==null?void 0:z.type)==="ClassDeclaration")this.maybeTakeDecorators($,q.declaration,q);else if($)throw this.raise(M.UnsupportedDecoratorExport,D);return this.sawUnambiguousESM=!0,this.finishNode(q,"ExportNamedDeclaration")}if(this.eat(65)){let q=D,G=this.parseExportDefaultExpression();if(q.declaration=G,G.type==="ClassDeclaration")this.maybeTakeDecorators($,G,q);else if($)throw this.raise(M.UnsupportedDecoratorExport,D);return this.checkExport(q,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(q,"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 U=$||this.parseIdentifier(!0),J=this.startNodeAtNode(U);return J.exported=U,D.specifiers=[this.finishNode(J,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(D){if(this.isContextual(93)){var $,U;(U=($=D).specifiers)!=null||($.specifiers=[]);let J=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),J.exported=this.parseModuleExportName(),D.specifiers.push(this.finishNode(J,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(D){if(this.match(5)){let $=D;if(!$.specifiers)$.specifiers=[];let U=$.exportKind==="type";if($.specifiers.push(...this.parseExportSpecifiers(U)),$.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(kD(D)){if(D===95&&!this.state.containsEsc||D===100)return!1;if((D===130||D===129)&&!this.state.containsEsc){let J=this.nextTokenStart(),Y=this.input.charCodeAt(J);if(Y===123||this.chStartsBindingIdentifier(Y,J)&&!this.input.startsWith("from",J))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let $=this.nextTokenStart(),U=this.isUnparsedContextual($,"from");if(this.input.charCodeAt($)===44||kD(this.state.type)&&U)return!0;if(this.match(65)&&U){let J=this.input.charCodeAt(this.nextTokenStartSince($+4));return J===34||J===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,$,U,J){if($){var Y;if(U){if(this.checkDuplicateExports(D,"default"),this.hasPlugin("exportDefaultFrom")){var X;let Q=D.declaration;if(Q.type==="Identifier"&&Q.name==="from"&&Q.end-Q.start===4&&!((X=Q.extra)!=null&&X.parenthesized))this.raise(M.ExportDefaultFromAsIdentifier,Q)}}else if((Y=D.specifiers)!=null&&Y.length)for(let Q of D.specifiers){let{exported:F}=Q,W=F.type==="Identifier"?F.name:F.value;if(this.checkDuplicateExports(Q,W),!J&&Q.local){let{local:K}=Q;if(K.type!=="Identifier")this.raise(M.ExportBindingIsString,Q,{localName:K.value,exportName:W});else this.checkReservedWord(K.name,K.loc.start,!0,!1),this.scope.checkLocalExport(K)}}else if(D.declaration){let Q=D.declaration;if(Q.type==="FunctionDeclaration"||Q.type==="ClassDeclaration"){let{id:F}=Q;if(!F)throw Error("Assertion failure");this.checkDuplicateExports(D,F.name)}else if(Q.type==="VariableDeclaration")for(let F of Q.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 $=[],U=!0;this.expect(5);while(!this.eat(8)){if(U)U=!1;else if(this.expect(12),this.eat(8))break;let J=this.isContextual(130),Y=this.match(134),X=this.startNode();X.local=this.parseModuleExportName(),$.push(this.parseExportSpecifier(X,Y,D,J))}return $}parseExportSpecifier(D,$,U,J){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),$=JJD.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:U})=>{return U.value==="json"&&($.type==="Identifier"?$.name==="type":$.value==="type")});return!1}checkImportReflection(D){let{specifiers:$}=D,U=$.length===1?$[0].type:null;if(D.phase==="source"){if(U!=="ImportDefaultSpecifier")this.raise(M.SourcePhaseImportRequiresDefault,$[0].loc.start)}else if(D.phase==="defer"){if(U!=="ImportNamespaceSpecifier")this.raise(M.DeferImportRequiresNamespace,$[0].loc.start)}else if(D.module){var J;if(U!=="ImportDefaultSpecifier")this.raise(M.ImportReflectionNotBinding,$[0].loc.start);if(((J=D.assertions)==null?void 0:J.length)>0)this.raise(M.ImportReflectionHasAssertion,$[0].loc.start)}}checkJSONModuleImport(D){if(this.isJSONModuleImport(D)&&D.type!=="ExportAllDeclaration"){let{specifiers:$}=D;if($!=null){let U=$.find((J)=>{let Y;if(J.type==="ExportSpecifier")Y=J.local;else if(J.type==="ImportSpecifier")Y=J.imported;if(Y!==void 0)return Y.type==="Identifier"?Y.name!=="default":Y.value!=="default"});if(U!==void 0)this.raise(M.ImportJSONBindingNotDefault,U.loc.start)}}}isPotentialImportPhase(D){if(D)return!1;return this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(D,$,U,J){if($)return;if(U==="module")this.expectPlugin("importReflection",J),D.module=!0;else if(this.hasPlugin("importReflection"))D.module=!1;if(U==="source")this.expectPlugin("sourcePhaseImports",J),D.phase="source";else if(U==="defer")this.expectPlugin("deferredImportEvaluation",J),D.phase="defer";else if(this.hasPlugin("sourcePhaseImports"))D.phase=null}parseMaybeImportPhase(D,$){if(!this.isPotentialImportPhase($))return this.applyImportPhase(D,$,null),null;let U=this.startNode(),J=this.parseIdentifierName(!0),{type:Y}=this.state;if(d6(Y)?Y!==98||this.lookaheadCharCode()===102:Y!==12)return this.applyImportPhase(D,$,J,U.loc.start),null;else return this.applyImportPhase(D,$,null),this.createIdentifier(U,J)}isPrecedingIdImportPhase(D){let{type:$}=this.state;return kD($)?$!==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 J=!this.maybeParseDefaultImportSpecifier(D,$)||this.eat(12),Y=J&&this.maybeParseStarImportSpecifier(D);if(J&&!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,$,U){$.local=this.parseIdentifier(),D.specifiers.push(this.finishImportSpecifier($,U))}finishImportSpecifier(D,$,U=8201){return this.checkLVal(D.local,{type:$},U),this.finishNode(D,$)}parseImportAttributes(){this.expect(5);let D=[],$=new Set;do{if(this.match(8))break;let U=this.startNode(),J=this.state.value;if($.has(J))this.raise(M.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:J});if($.add(J),this.match(134))U.key=this.parseStringLiteral(J);else U.key=this.parseIdentifier(!0);if(this.expect(14),!this.match(134))throw this.raise(M.ModuleAttributeInvalidValue,this.state.startLoc);U.value=this.parseStringLiteral(this.state.value),D.push(this.finishNode(U,"ImportAttribute"))}while(this.eat(12));return this.expect(8),D}parseModuleAttributes(){let D=[],$=new Set;do{let U=this.startNode();if(U.key=this.parseIdentifier(!0),U.key.name!=="type")this.raise(M.ModuleAttributeDifferentFromType,U.key);if($.has(U.key.name))this.raise(M.ModuleAttributesWithDuplicateKeys,U.key,{key:U.key.name});if($.add(U.key.name),this.expect(14),!this.match(134))throw this.raise(M.ModuleAttributeInvalidValue,this.state.startLoc);U.value=this.parseStringLiteral(this.state.value),D.push(this.finishNode(U,"ImportAttribute"))}while(this.eat(12));return D}maybeParseImportAttributes(D){let $;var U=!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();U=!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(!U&&this.hasPlugin("importAssertions"))D.assertions=$;else D.attributes=$}maybeParseDefaultImportSpecifier(D,$){if($){let U=this.startNodeAtNode($);return U.local=$,D.specifiers.push(this.finishImportSpecifier(U,"ImportDefaultSpecifier")),!0}else if(d6(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 U=this.startNode(),J=this.match(134),Y=this.isContextual(130);U.imported=this.parseModuleExportName();let X=this.parseImportSpecifier(U,J,D.importKind==="type"||D.importKind==="typeof",Y,void 0);D.specifiers.push(X)}}parseImportSpecifier(D,$,U,J,Y){if(this.eatContextual(93))D.local=this.parseIdentifier();else{let{imported:X}=D;if($)throw this.raise(M.ImportBindingIsString,D,{importName:X.value});if(this.checkReservedWord(X.name,D.loc.start,!0,!0),!D.local)D.local=this.cloneIdentifier(X)}return this.finishImportSpecifier(D,"ImportSpecifier",Y)}isThisParam(D){return D.type==="Identifier"&&D.name==="this"}}class BI extends $x{constructor(D,$,U){let J=UUD(D);super(J,$);this.options=J,this.initializeScopes(),this.plugins=U,this.filename=J.sourceFilename,this.startIndex=J.startIndex;let Y=0;if(J.allowAwaitOutsideFunction)Y|=1;if(J.allowReturnOutsideFunction)Y|=2;if(J.allowImportExportEverywhere)Y|=8;if(J.allowSuperOutsideMethod)Y|=16;if(J.allowUndeclaredExports)Y|=64;if(J.allowNewTargetOutsideFunction)Y|=4;if(J.allowYieldOutsideFunction)Y|=32;if(J.ranges)Y|=128;if(J.tokens)Y|=256;if(J.createImportExpressions)Y|=512;if(J.createParenthesizedExpressions)Y|=1024;if(J.errorRecovery)Y|=2048;if(J.attachComment)Y|=4096;if(J.annexB)Y|=8192;this.optionFlags=Y}getScopeHandler(){return CY}parse(){this.enterInitialScopes();let D=this.startNode(),$=this.startNode();this.nextToken(),D.errors=null;let U=this.parseTopLevel(D,$);return U.errors=this.state.errors,U.comments.length=this.state.commentsLen,U}}function XJD(D,$){var U;if(((U=$)==null?void 0:U.sourceType)==="unambiguous"){$=Object.assign({},$);try{$.sourceType="module";let J=$7($,D),Y=J.parse();if(J.sawUnambiguousESM)return Y;if(J.ambiguousScriptDifferentAst)try{return $.sourceType="script",$7($,D).parse()}catch(X){}else Y.program.sourceType="script";return Y}catch(J){try{return $.sourceType="script",$7($,D).parse()}catch(Y){}throw J}}else return $7($,D).parse()}function QJD(D,$){let U=$7($,D);if(U.options.strictMode)U.state.strict=!0;return U.getExpression()}function FJD(D){let $={};for(let U of Object.keys(D))$[U]=A$(D[U]);return $}var WJD=FJD(QUD);function $7(D,$){let U=BI,J=new Map;if(D!=null&&D.plugins){for(let Y of D.plugins){let X,Q;if(typeof Y==="string")X=Y;else[X,Q]=Y;if(!J.has(X))J.set(X,Q||{})}DJD(J),U=KJD(J)}return new U(D,$,J)}var A_=new Map;function KJD(D){let $=[];for(let Y of $JD)if(D.has(Y))$.push(Y);let U=$.join("|"),J=A_.get(U);if(!J){J=BI;for(let Y of $)J=e_[Y](J);A_.set(U,J)}return J}Ux.parse=XJD;Ux.parseExpression=QJD;Ux.tokTypes=WJD});var Xx=S((kY,Yx)=>{(function(D,$){typeof kY==="object"&&typeof Yx<"u"?$(kY):typeof define==="function"&&define.amd?define(["exports"],$):(D=D||self,$(D.estreeWalker={}))})(kY,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:(Q)=>this.replacement=Q}}replace(Q,F,W,K){if(Q)if(W!==null)Q[F][W]=K;else Q[F]=K}remove(Q,F,W){if(Q)if(W!==null)Q[F].splice(W,1);else delete Q[F]}}class U extends ${constructor(Q,F){super();this.enter=Q,this.leave=F}visit(Q,F,W,K){if(Q){if(this.enter){let Z=this.should_skip,z=this.should_remove,q=this.replacement;if(this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,Q,F,W,K),this.replacement)Q=this.replacement,this.replace(F,W,K,Q);if(this.should_remove)this.remove(F,W,K);let G=this.should_skip,V=this.should_remove;if(this.should_skip=Z,this.should_remove=z,this.replacement=q,G)return Q;if(V)return null}for(let Z in Q){let z=Q[Z];if(typeof z!=="object")continue;else if(Array.isArray(z)){for(let q=0;q<z.length;q+=1)if(z[q]!==null&&typeof z[q].type==="string"){if(!this.visit(z[q],Q,Z,q))q--}}else if(z!==null&&typeof z.type==="string")this.visit(z,Q,Z,null)}if(this.leave){let Z=this.replacement,z=this.should_remove;if(this.replacement=null,this.should_remove=!1,this.leave.call(this.context,Q,F,W,K),this.replacement)Q=this.replacement,this.replace(F,W,K,Q);if(this.should_remove)this.remove(F,W,K);let q=this.should_remove;if(this.replacement=Z,this.should_remove=z,q)return null}}return Q}}class J extends ${constructor(Q,F){super();this.enter=Q,this.leave=F}async visit(Q,F,W,K){if(Q){if(this.enter){let Z=this.should_skip,z=this.should_remove,q=this.replacement;if(this.should_skip=!1,this.should_remove=!1,this.replacement=null,await this.enter.call(this.context,Q,F,W,K),this.replacement)Q=this.replacement,this.replace(F,W,K,Q);if(this.should_remove)this.remove(F,W,K);let G=this.should_skip,V=this.should_remove;if(this.should_skip=Z,this.should_remove=z,this.replacement=q,G)return Q;if(V)return null}for(let Z in Q){let z=Q[Z];if(typeof z!=="object")continue;else if(Array.isArray(z)){for(let q=0;q<z.length;q+=1)if(z[q]!==null&&typeof z[q].type==="string"){if(!await this.visit(z[q],Q,Z,q))q--}}else if(z!==null&&typeof z.type==="string")await this.visit(z,Q,Z,null)}if(this.leave){let Z=this.replacement,z=this.should_remove;if(this.replacement=null,this.should_remove=!1,await this.leave.call(this.context,Q,F,W,K),this.replacement)Q=this.replacement,this.replace(F,W,K,Q);if(this.should_remove)this.remove(F,W,K);let q=this.should_remove;if(this.replacement=Z,this.should_remove=z,q)return null}}return Q}}function Y(Q,{enter:F,leave:W}){return new U(F,W).visit(Q,null)}async function X(Q,{enter:F,leave:W}){return await new J(F,W).visit(Q,null)}D.asyncWalk=X,D.walk=Y,Object.defineProperty(D,"__esModule",{value:!0})})});var Fx=S((GJD)=>{var Qx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");GJD.encode=function(D){if(0<=D&&D<Qx.length)return Qx[D];throw TypeError("Must be between 0 and 63: "+D)};GJD.decode=function(D){var $=65,U=90,J=97,Y=122,X=48,Q=57,F=43,W=47,K=26,Z=52;if($<=D&&D<=U)return D-$;if(J<=D&&D<=Y)return D-J+K;if(X<=D&&D<=Q)return D-X+Z;if(D==F)return 62;if(D==W)return 63;return-1}});var OI=S((wJD)=>{var Wx=Fx(),wI=5,Kx=1<<wI,Zx=Kx-1,zx=Kx;function IJD(D){return D<0?(-D<<1)+1:(D<<1)+0}function BJD(D){var $=(D&1)===1,U=D>>1;return $?-U:U}wJD.encode=function($){var U="",J,Y=IJD($);do{if(J=Y&Zx,Y>>>=wI,Y>0)J|=zx;U+=Wx.encode(J)}while(Y>0);return U};wJD.decode=function($,U,J){var Y=$.length,X=0,Q=0,F,W;do{if(U>=Y)throw Error("Expected more digits in base 64 VLQ value.");if(W=Wx.decode($.charCodeAt(U++)),W===-1)throw Error("Invalid base64 digit: "+$.charAt(U-1));F=!!(W&zx),W&=Zx,X=X+(W<<Q),Q+=wI}while(F);J.value=BJD(X),J.rest=U}});var T2=S((_JD)=>{function NJD(D,$,U){if($ in D)return D[$];else if(arguments.length===3)return U;else throw Error('"'+$+'" is a required argument.')}_JD.getArg=NJD;var qx=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,LJD=/^data:.+\,.+$/;function W7(D){var $=D.match(qx);if(!$)return null;return{scheme:$[1],auth:$[2],host:$[3],port:$[4],path:$[5]}}_JD.urlParse=W7;function E2(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 $}_JD.urlGenerate=E2;var RJD=32;function MJD(D){var $=[];return function(U){for(var J=0;J<$.length;J++)if($[J].input===U){var Y=$[0];return $[0]=$[J],$[J]=Y,$[0].result}var X=D(U);if($.unshift({input:U,result:X}),$.length>RJD)$.pop();return X}}var jI=MJD(function($){var U=$,J=W7($);if(J){if(!J.path)return $;U=J.path}var Y=_JD.isAbsolute(U),X=[],Q=0,F=0;while(!0)if(Q=F,F=U.indexOf("/",Q),F===-1){X.push(U.slice(Q));break}else{X.push(U.slice(Q,F));while(F<U.length&&U[F]==="/")F++}for(var W,K=0,F=X.length-1;F>=0;F--)if(W=X[F],W===".")X.splice(F,1);else if(W==="..")K++;else if(K>0)if(W==="")X.splice(F+1,K),K=0;else X.splice(F,2),K--;if(U=X.join("/"),U==="")U=Y?"/":".";if(J)return J.path=U,E2(J);return U});_JD.normalize=jI;function Gx(D,$){if(D==="")D=".";if($==="")$=".";var U=W7($),J=W7(D);if(J)D=J.path||"/";if(U&&!U.scheme){if(J)U.scheme=J.scheme;return E2(U)}if(U||$.match(LJD))return $;if(J&&!J.host&&!J.path)return J.host=$,E2(J);var Y=$.charAt(0)==="/"?$:jI(D.replace(/\/+$/,"")+"/"+$);if(J)return J.path=Y,E2(J);return Y}_JD.join=Gx;_JD.isAbsolute=function(D){return D.charAt(0)==="/"||qx.test(D)};function AJD(D,$){if(D==="")D=".";D=D.replace(/\/$/,"");var U=0;while($.indexOf(D+"/")!==0){var J=D.lastIndexOf("/");if(J<0)return $;if(D=D.slice(0,J),D.match(/^([^\/]+:\/)?\/*$/))return $;++U}return Array(U+1).join("../")+$.substr(D.length+1)}_JD.relative=AJD;var Vx=function(){var D=Object.create(null);return!("__proto__"in D)}();function Hx(D){return D}function vJD(D){if(Ix(D))return"$"+D;return D}_JD.toSetString=Vx?Hx:vJD;function EJD(D){if(Ix(D))return D.slice(1);return D}_JD.fromSetString=Vx?Hx:EJD;function Ix(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 U=$-10;U>=0;U--)if(D.charCodeAt(U)!==36)return!1;return!0}function TJD(D,$,U){var J=P$(D.source,$.source);if(J!==0)return J;if(J=D.originalLine-$.originalLine,J!==0)return J;if(J=D.originalColumn-$.originalColumn,J!==0||U)return J;if(J=D.generatedColumn-$.generatedColumn,J!==0)return J;if(J=D.generatedLine-$.generatedLine,J!==0)return J;return P$(D.name,$.name)}_JD.compareByOriginalPositions=TJD;function PJD(D,$,U){var J=D.originalLine-$.originalLine;if(J!==0)return J;if(J=D.originalColumn-$.originalColumn,J!==0||U)return J;if(J=D.generatedColumn-$.generatedColumn,J!==0)return J;if(J=D.generatedLine-$.generatedLine,J!==0)return J;return P$(D.name,$.name)}_JD.compareByOriginalPositionsNoSource=PJD;function SJD(D,$,U){var J=D.generatedLine-$.generatedLine;if(J!==0)return J;if(J=D.generatedColumn-$.generatedColumn,J!==0||U)return J;if(J=P$(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 P$(D.name,$.name)}_JD.compareByGeneratedPositionsDeflated=SJD;function bJD(D,$,U){var J=D.generatedColumn-$.generatedColumn;if(J!==0||U)return J;if(J=P$(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 P$(D.name,$.name)}_JD.compareByGeneratedPositionsDeflatedNoLine=bJD;function P$(D,$){if(D===$)return 0;if(D===null)return 1;if($===null)return-1;if(D>$)return 1;return-1}function CJD(D,$){var U=D.generatedLine-$.generatedLine;if(U!==0)return U;if(U=D.generatedColumn-$.generatedColumn,U!==0)return U;if(U=P$(D.source,$.source),U!==0)return U;if(U=D.originalLine-$.originalLine,U!==0)return U;if(U=D.originalColumn-$.originalColumn,U!==0)return U;return P$(D.name,$.name)}_JD.compareByGeneratedPositionsInflated=CJD;function kJD(D){return JSON.parse(D.replace(/^\)]}'[^\n]*\n/,""))}_JD.parseSourceMapInput=kJD;function uJD(D,$,U){if($=$||"",D){if(D[D.length-1]!=="/"&&$[0]!=="/")D+="/";$=D+$}if(U){var J=W7(U);if(!J)throw Error("sourceMapURL could not be parsed");if(J.path){var Y=J.path.lastIndexOf("/");if(Y>=0)J.path=J.path.substring(0,Y+1)}$=Gx(E2(J),$)}return jI($)}_JD.computeSourceURL=uJD});var RI=S((sJD)=>{var NI=T2(),LI=Object.prototype.hasOwnProperty,E4=typeof Map<"u";function S$(){this._array=[],this._set=E4?new Map:Object.create(null)}S$.fromArray=function($,U){var J=new S$;for(var Y=0,X=$.length;Y<X;Y++)J.add($[Y],U);return J};S$.prototype.size=function(){return E4?this._set.size:Object.getOwnPropertyNames(this._set).length};S$.prototype.add=function($,U){var J=E4?$:NI.toSetString($),Y=E4?this.has($):LI.call(this._set,J),X=this._array.length;if(!Y||U)this._array.push($);if(!Y)if(E4)this._set.set($,X);else this._set[J]=X};S$.prototype.has=function($){if(E4)return this._set.has($);else{var U=NI.toSetString($);return LI.call(this._set,U)}};S$.prototype.indexOf=function($){if(E4){var U=this._set.get($);if(U>=0)return U}else{var J=NI.toSetString($);if(LI.call(this._set,J))return this._set[J]}throw Error('"'+$+'" is not in the set.')};S$.prototype.at=function($){if($>=0&&$<this._array.length)return this._array[$];throw Error("No element indexed by "+$)};S$.prototype.toArray=function(){return this._array.slice()};sJD.ArraySet=S$});var wx=S(($YD)=>{var Bx=T2();function DYD(D,$){var U=D.generatedLine,J=$.generatedLine,Y=D.generatedColumn,X=$.generatedColumn;return J>U||J==U&&X>=Y||Bx.compareByGeneratedPositionsInflated(D,$)<=0}function uY(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}uY.prototype.unsortedForEach=function($,U){this._array.forEach($,U)};uY.prototype.add=function($){if(DYD(this._last,$))this._last=$,this._array.push($);else this._sorted=!1,this._array.push($)};uY.prototype.toArray=function(){if(!this._sorted)this._array.sort(Bx.compareByGeneratedPositionsInflated),this._sorted=!0;return this._array};$YD.MappingList=uY});var MI=S((YYD)=>{var K7=OI(),Z0=T2(),_Y=RI().ArraySet,JYD=wx().MappingList;function b6(D){if(!D)D={};this._file=Z0.getArg(D,"file",null),this._sourceRoot=Z0.getArg(D,"sourceRoot",null),this._skipValidation=Z0.getArg(D,"skipValidation",!1),this._ignoreInvalidMapping=Z0.getArg(D,"ignoreInvalidMapping",!1),this._sources=new _Y,this._names=new _Y,this._mappings=new JYD,this._sourcesContents=null}b6.prototype._version=3;b6.fromSourceMap=function($,U){var J=$.sourceRoot,Y=new b6(Object.assign(U||{},{file:$.file,sourceRoot:J}));return $.eachMapping(function(X){var Q={generated:{line:X.generatedLine,column:X.generatedColumn}};if(X.source!=null){if(Q.source=X.source,J!=null)Q.source=Z0.relative(J,Q.source);if(Q.original={line:X.originalLine,column:X.originalColumn},X.name!=null)Q.name=X.name}Y.addMapping(Q)}),$.sources.forEach(function(X){var Q=X;if(J!==null)Q=Z0.relative(J,X);if(!Y._sources.has(Q))Y._sources.add(Q);var F=$.sourceContentFor(X);if(F!=null)Y.setSourceContent(X,F)}),Y};b6.prototype.addMapping=function($){var U=Z0.getArg($,"generated"),J=Z0.getArg($,"original",null),Y=Z0.getArg($,"source",null),X=Z0.getArg($,"name",null);if(!this._skipValidation){if(this._validateMapping(U,J,Y,X)===!1)return}if(Y!=null){if(Y=String(Y),!this._sources.has(Y))this._sources.add(Y)}if(X!=null){if(X=String(X),!this._names.has(X))this._names.add(X)}this._mappings.add({generatedLine:U.line,generatedColumn:U.column,originalLine:J!=null&&J.line,originalColumn:J!=null&&J.column,source:Y,name:X})};b6.prototype.setSourceContent=function($,U){var J=$;if(this._sourceRoot!=null)J=Z0.relative(this._sourceRoot,J);if(U!=null){if(!this._sourcesContents)this._sourcesContents=Object.create(null);this._sourcesContents[Z0.toSetString(J)]=U}else if(this._sourcesContents){if(delete this._sourcesContents[Z0.toSetString(J)],Object.keys(this._sourcesContents).length===0)this._sourcesContents=null}};b6.prototype.applySourceMap=function($,U,J){var Y=U;if(U==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 X=this._sourceRoot;if(X!=null)Y=Z0.relative(X,Y);var Q=new _Y,F=new _Y;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,J!=null)W.source=Z0.join(J,W.source);if(X!=null)W.source=Z0.relative(X,W.source);if(W.originalLine=K.line,W.originalColumn=K.column,K.name!=null)W.name=K.name}}var Z=W.source;if(Z!=null&&!Q.has(Z))Q.add(Z);var z=W.name;if(z!=null&&!F.has(z))F.add(z)},this),this._sources=Q,this._names=F,$.sources.forEach(function(W){var K=$.sourceContentFor(W);if(K!=null){if(J!=null)W=Z0.join(J,W);if(X!=null)W=Z0.relative(X,W);this.setSourceContent(W,K)}},this)};b6.prototype._validateMapping=function($,U,J,Y){if(U&&typeof U.line!=="number"&&typeof U.column!=="number"){var X="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(X);return!1}else throw Error(X)}if($&&"line"in $&&"column"in $&&$.line>0&&$.column>=0&&!U&&!J&&!Y)return;else if($&&"line"in $&&"column"in $&&U&&"line"in U&&"column"in U&&$.line>0&&$.column>=0&&U.line>0&&U.column>=0&&J)return;else{var X="Invalid mapping: "+JSON.stringify({generated:$,source:J,original:U,name:Y});if(this._ignoreInvalidMapping){if(typeof console<"u"&&console.warn)console.warn(X);return!1}else throw Error(X)}};b6.prototype._serializeMappings=function(){var $=0,U=1,J=0,Y=0,X=0,Q=0,F="",W,K,Z,z,q=this._mappings.toArray();for(var G=0,V=q.length;G<V;G++){if(K=q[G],W="",K.generatedLine!==U){$=0;while(K.generatedLine!==U)W+=";",U++}else if(G>0){if(!Z0.compareByGeneratedPositionsInflated(K,q[G-1]))continue;W+=","}if(W+=K7.encode(K.generatedColumn-$),$=K.generatedColumn,K.source!=null){if(z=this._sources.indexOf(K.source),W+=K7.encode(z-Q),Q=z,W+=K7.encode(K.originalLine-1-Y),Y=K.originalLine-1,W+=K7.encode(K.originalColumn-J),J=K.originalColumn,K.name!=null)Z=this._names.indexOf(K.name),W+=K7.encode(Z-X),X=Z}F+=W}return F};b6.prototype._generateSourcesContent=function($,U){return $.map(function(J){if(!this._sourcesContents)return null;if(U!=null)J=Z0.relative(U,J);var Y=Z0.toSetString(J);return Object.prototype.hasOwnProperty.call(this._sourcesContents,Y)?this._sourcesContents[Y]:null},this)};b6.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 $};b6.prototype.toString=function(){return JSON.stringify(this.toJSON())};YYD.SourceMapGenerator=b6});var jx=S((QYD)=>{QYD.GREATEST_LOWER_BOUND=1;QYD.LEAST_UPPER_BOUND=2;function AI(D,$,U,J,Y,X){var Q=Math.floor(($-D)/2)+D,F=Y(U,J[Q],!0);if(F===0)return Q;else if(F>0){if($-Q>1)return AI(Q,$,U,J,Y,X);if(X==QYD.LEAST_UPPER_BOUND)return $<J.length?$:-1;else return Q}else{if(Q-D>1)return AI(D,Q,U,J,Y,X);if(X==QYD.LEAST_UPPER_BOUND)return Q;else return D<0?-1:D}}QYD.search=function($,U,J,Y){if(U.length===0)return-1;var X=AI(-1,U.length,$,U,J,Y||QYD.GREATEST_LOWER_BOUND);if(X<0)return-1;while(X-1>=0){if(J(U[X],U[X-1],!0)!==0)break;--X}return X}});var Lx=S((ZYD)=>{function WYD(D){function $(Y,X,Q){var F=Y[X];Y[X]=Y[Q],Y[Q]=F}function U(Y,X){return Math.round(Y+Math.random()*(X-Y))}function J(Y,X,Q,F){if(Q<F){var W=U(Q,F),K=Q-1;$(Y,W,F);var Z=Y[F];for(var z=Q;z<F;z++)if(X(Y[z],Z,!1)<=0)K+=1,$(Y,K,z);$(Y,K+1,z);var q=K+1;J(Y,X,Q,q-1),J(Y,X,q+1,F)}}return J}function KYD(D){let $=WYD.toString();return Function(`return ${$}`)()(D)}var Nx=new WeakMap;ZYD.quickSort=function(D,$,U=0){let J=Nx.get($);if(J===void 0)J=KYD($),Nx.set($,J);J(D,$,U,D.length-1)}});var Ax=S((GYD)=>{var YD=T2(),TI=jx(),P2=RI().ArraySet,qYD=OI(),Z7=Lx().quickSort;function aD(D,$){var U=D;if(typeof D==="string")U=YD.parseSourceMapInput(D);return U.sections!=null?new i6(U,$):new v0(U,$)}aD.fromSourceMap=function(D,$){return v0.fromSourceMap(D,$)};aD.prototype._version=3;aD.prototype.__generatedMappings=null;Object.defineProperty(aD.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){if(!this.__generatedMappings)this._parseMappings(this._mappings,this.sourceRoot);return this.__generatedMappings}});aD.prototype.__originalMappings=null;Object.defineProperty(aD.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){if(!this.__originalMappings)this._parseMappings(this._mappings,this.sourceRoot);return this.__originalMappings}});aD.prototype._charIsMappingSeparator=function($,U){var J=$.charAt(U);return J===";"||J===","};aD.prototype._parseMappings=function($,U){throw Error("Subclasses must implement _parseMappings")};aD.GENERATED_ORDER=1;aD.ORIGINAL_ORDER=2;aD.GREATEST_LOWER_BOUND=1;aD.LEAST_UPPER_BOUND=2;aD.prototype.eachMapping=function($,U,J){var Y=U||null,X=J||aD.GENERATED_ORDER,Q;switch(X){case aD.GENERATED_ORDER:Q=this._generatedMappings;break;case aD.ORIGINAL_ORDER:Q=this._originalMappings;break;default:throw Error("Unknown order of iteration.")}var F=this.sourceRoot,W=$.bind(Y),K=this._names,Z=this._sources,z=this._sourceMapURL;for(var q=0,G=Q.length;q<G;q++){var V=Q[q],I=V.source===null?null:Z.at(V.source);if(I!==null)I=YD.computeSourceURL(F,I,z);W({source:I,generatedLine:V.generatedLine,generatedColumn:V.generatedColumn,originalLine:V.originalLine,originalColumn:V.originalColumn,name:V.name===null?null:K.at(V.name)})}};aD.prototype.allGeneratedPositionsFor=function($){var U=YD.getArg($,"line"),J={source:YD.getArg($,"source"),originalLine:U,originalColumn:YD.getArg($,"column",0)};if(J.source=this._findSourceIndex(J.source),J.source<0)return[];var Y=[],X=this._findMapping(J,this._originalMappings,"originalLine","originalColumn",YD.compareByOriginalPositions,TI.LEAST_UPPER_BOUND);if(X>=0){var Q=this._originalMappings[X];if($.column===void 0){var F=Q.originalLine;while(Q&&Q.originalLine===F)Y.push({line:YD.getArg(Q,"generatedLine",null),column:YD.getArg(Q,"generatedColumn",null),lastColumn:YD.getArg(Q,"lastGeneratedColumn",null)}),Q=this._originalMappings[++X]}else{var W=Q.originalColumn;while(Q&&Q.originalLine===U&&Q.originalColumn==W)Y.push({line:YD.getArg(Q,"generatedLine",null),column:YD.getArg(Q,"generatedColumn",null),lastColumn:YD.getArg(Q,"lastGeneratedColumn",null)}),Q=this._originalMappings[++X]}}return Y};GYD.SourceMapConsumer=aD;function v0(D,$){var U=D;if(typeof D==="string")U=YD.parseSourceMapInput(D);var J=YD.getArg(U,"version"),Y=YD.getArg(U,"sources"),X=YD.getArg(U,"names",[]),Q=YD.getArg(U,"sourceRoot",null),F=YD.getArg(U,"sourcesContent",null),W=YD.getArg(U,"mappings"),K=YD.getArg(U,"file",null);if(J!=this._version)throw Error("Unsupported version: "+J);if(Q)Q=YD.normalize(Q);Y=Y.map(String).map(YD.normalize).map(function(Z){return Q&&YD.isAbsolute(Q)&&YD.isAbsolute(Z)?YD.relative(Q,Z):Z}),this._names=P2.fromArray(X.map(String),!0),this._sources=P2.fromArray(Y,!0),this._absoluteSources=this._sources.toArray().map(function(Z){return YD.computeSourceURL(Q,Z,$)}),this.sourceRoot=Q,this.sourcesContent=F,this._mappings=W,this._sourceMapURL=$,this.file=K}v0.prototype=Object.create(aD.prototype);v0.prototype.consumer=aD;v0.prototype._findSourceIndex=function(D){var $=D;if(this.sourceRoot!=null)$=YD.relative(this.sourceRoot,$);if(this._sources.has($))return this._sources.indexOf($);var U;for(U=0;U<this._absoluteSources.length;++U)if(this._absoluteSources[U]==D)return U;return-1};v0.fromSourceMap=function($,U){var J=Object.create(v0.prototype),Y=J._names=P2.fromArray($._names.toArray(),!0),X=J._sources=P2.fromArray($._sources.toArray(),!0);J.sourceRoot=$._sourceRoot,J.sourcesContent=$._generateSourcesContent(J._sources.toArray(),J.sourceRoot),J.file=$._file,J._sourceMapURL=U,J._absoluteSources=J._sources.toArray().map(function(G){return YD.computeSourceURL(J.sourceRoot,G,U)});var Q=$._mappings.toArray().slice(),F=J.__generatedMappings=[],W=J.__originalMappings=[];for(var K=0,Z=Q.length;K<Z;K++){var z=Q[K],q=new Mx;if(q.generatedLine=z.generatedLine,q.generatedColumn=z.generatedColumn,z.source){if(q.source=X.indexOf(z.source),q.originalLine=z.originalLine,q.originalColumn=z.originalColumn,z.name)q.name=Y.indexOf(z.name);W.push(q)}F.push(q)}return Z7(J.__originalMappings,YD.compareByOriginalPositions),J};v0.prototype._version=3;Object.defineProperty(v0.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function Mx(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var EI=YD.compareByGeneratedPositionsDeflatedNoLine;function Rx(D,$){let U=D.length,J=D.length-$;if(J<=1)return;else if(J==2){let Y=D[$],X=D[$+1];if(EI(Y,X)>0)D[$]=X,D[$+1]=Y}else if(J<20)for(let Y=$;Y<U;Y++)for(let X=Y;X>$;X--){let Q=D[X-1],F=D[X];if(EI(Q,F)<=0)break;D[X-1]=F,D[X]=Q}else Z7(D,EI,$)}v0.prototype._parseMappings=function($,U){var J=1,Y=0,X=0,Q=0,F=0,W=0,K=$.length,Z=0,z={},q={},G=[],V=[],I,H,w,j,B;let N=0;while(Z<K)if($.charAt(Z)===";")J++,Z++,Y=0,Rx(V,N),N=V.length;else if($.charAt(Z)===",")Z++;else{I=new Mx,I.generatedLine=J;for(j=Z;j<K;j++)if(this._charIsMappingSeparator($,j))break;H=$.slice(Z,j),w=[];while(Z<j)qYD.decode($,Z,q),B=q.value,Z=q.rest,w.push(B);if(w.length===2)throw Error("Found a source, but no line and column");if(w.length===3)throw Error("Found a source and line, but no column");if(I.generatedColumn=Y+w[0],Y=I.generatedColumn,w.length>1){if(I.source=F+w[1],F+=w[1],I.originalLine=X+w[2],X=I.originalLine,I.originalLine+=1,I.originalColumn=Q+w[3],Q=I.originalColumn,w.length>4)I.name=W+w[4],W+=w[4]}if(V.push(I),typeof I.originalLine==="number"){let v=I.source;while(G.length<=v)G.push(null);if(G[v]===null)G[v]=[];G[v].push(I)}}Rx(V,N),this.__generatedMappings=V;for(var A=0;A<G.length;A++)if(G[A]!=null)Z7(G[A],YD.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...G)};v0.prototype._findMapping=function($,U,J,Y,X,Q){if($[J]<=0)throw TypeError("Line must be greater than or equal to 1, got "+$[J]);if($[Y]<0)throw TypeError("Column must be greater than or equal to 0, got "+$[Y]);return TI.search($,U,X,Q)};v0.prototype.computeColumnSpans=function(){for(var $=0;$<this._generatedMappings.length;++$){var U=this._generatedMappings[$];if($+1<this._generatedMappings.length){var J=this._generatedMappings[$+1];if(U.generatedLine===J.generatedLine){U.lastGeneratedColumn=J.generatedColumn-1;continue}}U.lastGeneratedColumn=1/0}};v0.prototype.originalPositionFor=function($){var U={generatedLine:YD.getArg($,"line"),generatedColumn:YD.getArg($,"column")},J=this._findMapping(U,this._generatedMappings,"generatedLine","generatedColumn",YD.compareByGeneratedPositionsDeflated,YD.getArg($,"bias",aD.GREATEST_LOWER_BOUND));if(J>=0){var Y=this._generatedMappings[J];if(Y.generatedLine===U.generatedLine){var X=YD.getArg(Y,"source",null);if(X!==null)X=this._sources.at(X),X=YD.computeSourceURL(this.sourceRoot,X,this._sourceMapURL);var Q=YD.getArg(Y,"name",null);if(Q!==null)Q=this._names.at(Q);return{source:X,line:YD.getArg(Y,"originalLine",null),column:YD.getArg(Y,"originalColumn",null),name:Q}}}return{source:null,line:null,column:null,name:null}};v0.prototype.hasContentsOfAllSources=function(){if(!this.sourcesContent)return!1;return this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function($){return $==null})};v0.prototype.sourceContentFor=function($,U){if(!this.sourcesContent)return null;var J=this._findSourceIndex($);if(J>=0)return this.sourcesContent[J];var Y=$;if(this.sourceRoot!=null)Y=YD.relative(this.sourceRoot,Y);var X;if(this.sourceRoot!=null&&(X=YD.urlParse(this.sourceRoot))){var Q=Y.replace(/^file:\/\//,"");if(X.scheme=="file"&&this._sources.has(Q))return this.sourcesContent[this._sources.indexOf(Q)];if((!X.path||X.path=="/")&&this._sources.has("/"+Y))return this.sourcesContent[this._sources.indexOf("/"+Y)]}if(U)return null;else throw Error('"'+Y+'" is not in the SourceMap.')};v0.prototype.generatedPositionFor=function($){var U=YD.getArg($,"source");if(U=this._findSourceIndex(U),U<0)return{line:null,column:null,lastColumn:null};var J={source:U,originalLine:YD.getArg($,"line"),originalColumn:YD.getArg($,"column")},Y=this._findMapping(J,this._originalMappings,"originalLine","originalColumn",YD.compareByOriginalPositions,YD.getArg($,"bias",aD.GREATEST_LOWER_BOUND));if(Y>=0){var X=this._originalMappings[Y];if(X.source===J.source)return{line:YD.getArg(X,"generatedLine",null),column:YD.getArg(X,"generatedColumn",null),lastColumn:YD.getArg(X,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};GYD.BasicSourceMapConsumer=v0;function i6(D,$){var U=D;if(typeof D==="string")U=YD.parseSourceMapInput(D);var J=YD.getArg(U,"version"),Y=YD.getArg(U,"sections");if(J!=this._version)throw Error("Unsupported version: "+J);this._sources=new P2,this._names=new P2;var X={line:-1,column:0};this._sections=Y.map(function(Q){if(Q.url)throw Error("Support for url field in sections not implemented.");var F=YD.getArg(Q,"offset"),W=YD.getArg(F,"line"),K=YD.getArg(F,"column");if(W<X.line||W===X.line&&K<X.column)throw Error("Section offsets must be ordered and non-overlapping.");return X=F,{generatedOffset:{generatedLine:W+1,generatedColumn:K+1},consumer:new aD(YD.getArg(Q,"map"),$)}})}i6.prototype=Object.create(aD.prototype);i6.prototype.constructor=aD;i6.prototype._version=3;Object.defineProperty(i6.prototype,"sources",{get:function(){var D=[];for(var $=0;$<this._sections.length;$++)for(var U=0;U<this._sections[$].consumer.sources.length;U++)D.push(this._sections[$].consumer.sources[U]);return D}});i6.prototype.originalPositionFor=function($){var U={generatedLine:YD.getArg($,"line"),generatedColumn:YD.getArg($,"column")},J=TI.search(U,this._sections,function(X,Q){var F=X.generatedLine-Q.generatedOffset.generatedLine;if(F)return F;return X.generatedColumn-Q.generatedOffset.generatedColumn}),Y=this._sections[J];if(!Y)return{source:null,line:null,column:null,name:null};return Y.consumer.originalPositionFor({line:U.generatedLine-(Y.generatedOffset.generatedLine-1),column:U.generatedColumn-(Y.generatedOffset.generatedLine===U.generatedLine?Y.generatedOffset.generatedColumn-1:0),bias:$.bias})};i6.prototype.hasContentsOfAllSources=function(){return this._sections.every(function($){return $.consumer.hasContentsOfAllSources()})};i6.prototype.sourceContentFor=function($,U){for(var J=0;J<this._sections.length;J++){var Y=this._sections[J],X=Y.consumer.sourceContentFor($,!0);if(X||X==="")return X}if(U)return null;else throw Error('"'+$+'" is not in the SourceMap.')};i6.prototype.generatedPositionFor=function($){for(var U=0;U<this._sections.length;U++){var J=this._sections[U];if(J.consumer._findSourceIndex(YD.getArg($,"source"))===-1)continue;var Y=J.consumer.generatedPositionFor($);if(Y){var X={line:Y.line+(J.generatedOffset.generatedLine-1),column:Y.column+(J.generatedOffset.generatedLine===Y.line?J.generatedOffset.generatedColumn-1:0)};return X}}return{line:null,column:null}};i6.prototype._parseMappings=function($,U){this.__generatedMappings=[],this.__originalMappings=[];for(var J=0;J<this._sections.length;J++){var Y=this._sections[J],X=Y.consumer._generatedMappings;for(var Q=0;Q<X.length;Q++){var F=X[Q],W=Y.consumer._sources.at(F.source);if(W!==null)W=YD.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 Z={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(Z),typeof Z.originalLine==="number")this.__originalMappings.push(Z)}}Z7(this.__generatedMappings,YD.compareByGeneratedPositionsDeflated),Z7(this.__originalMappings,YD.compareByOriginalPositions)};GYD.IndexedSourceMapConsumer=i6});var vx=S((jYD)=>{var BYD=MI().SourceMapGenerator,xY=T2(),wYD=/(\r?\n)/,OYD=10,S2="$$$isSourceNode$$$";function O6(D,$,U,J,Y){if(this.children=[],this.sourceContents={},this.line=D==null?null:D,this.column=$==null?null:$,this.source=U==null?null:U,this.name=Y==null?null:Y,this[S2]=!0,J!=null)this.add(J)}O6.fromStringWithSourceMap=function($,U,J){var Y=new O6,X=$.split(wYD),Q=0,F=function(){var q=V(),G=V()||"";return q+G;function V(){return Q<X.length?X[Q++]:void 0}},W=1,K=0,Z=null;if(U.eachMapping(function(q){if(Z!==null)if(W<q.generatedLine)z(Z,F()),W++,K=0;else{var G=X[Q]||"",V=G.substr(0,q.generatedColumn-K);X[Q]=G.substr(q.generatedColumn-K),K=q.generatedColumn,z(Z,V),Z=q;return}while(W<q.generatedLine)Y.add(F()),W++;if(K<q.generatedColumn){var G=X[Q]||"";Y.add(G.substr(0,q.generatedColumn)),X[Q]=G.substr(q.generatedColumn),K=q.generatedColumn}Z=q},this),Q<X.length){if(Z)z(Z,F());Y.add(X.splice(Q).join(""))}return U.sources.forEach(function(q){var G=U.sourceContentFor(q);if(G!=null){if(J!=null)q=xY.join(J,q);Y.setSourceContent(q,G)}}),Y;function z(q,G){if(q===null||q.source===void 0)Y.add(G);else{var V=J?xY.join(J,q.source):q.source;Y.add(new O6(q.originalLine,q.originalColumn,V,G,q.name))}}};O6.prototype.add=function($){if(Array.isArray($))$.forEach(function(U){this.add(U)},this);else if($[S2]||typeof $==="string"){if($)this.children.push($)}else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+$);return this};O6.prototype.prepend=function($){if(Array.isArray($))for(var U=$.length-1;U>=0;U--)this.prepend($[U]);else if($[S2]||typeof $==="string")this.children.unshift($);else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+$);return this};O6.prototype.walk=function($){var U;for(var J=0,Y=this.children.length;J<Y;J++)if(U=this.children[J],U[S2])U.walk($);else if(U!=="")$(U,{source:this.source,line:this.line,column:this.column,name:this.name})};O6.prototype.join=function($){var U,J,Y=this.children.length;if(Y>0){U=[];for(J=0;J<Y-1;J++)U.push(this.children[J]),U.push($);U.push(this.children[J]),this.children=U}return this};O6.prototype.replaceRight=function($,U){var J=this.children[this.children.length-1];if(J[S2])J.replaceRight($,U);else if(typeof J==="string")this.children[this.children.length-1]=J.replace($,U);else this.children.push("".replace($,U));return this};O6.prototype.setSourceContent=function($,U){this.sourceContents[xY.toSetString($)]=U};O6.prototype.walkSourceContents=function($){for(var U=0,J=this.children.length;U<J;U++)if(this.children[U][S2])this.children[U].walkSourceContents($);var Y=Object.keys(this.sourceContents);for(var U=0,J=Y.length;U<J;U++)$(xY.fromSetString(Y[U]),this.sourceContents[Y[U]])};O6.prototype.toString=function(){var $="";return this.walk(function(U){$+=U}),$};O6.prototype.toStringWithSourceMap=function($){var U={code:"",line:1,column:0},J=new BYD($),Y=!1,X=null,Q=null,F=null,W=null;return this.walk(function(K,Z){if(U.code+=K,Z.source!==null&&Z.line!==null&&Z.column!==null){if(X!==Z.source||Q!==Z.line||F!==Z.column||W!==Z.name)J.addMapping({source:Z.source,original:{line:Z.line,column:Z.column},generated:{line:U.line,column:U.column},name:Z.name});X=Z.source,Q=Z.line,F=Z.column,W=Z.name,Y=!0}else if(Y)J.addMapping({generated:{line:U.line,column:U.column}}),X=null,Y=!1;for(var z=0,q=K.length;z<q;z++)if(K.charCodeAt(z)===OYD){if(U.line++,U.column=0,z+1===q)X=null,Y=!1;else if(Y)J.addMapping({source:Z.source,original:{line:Z.line,column:Z.column},generated:{line:U.line,column:U.column},name:Z.name})}else U.column++}),this.walkSourceContents(function(K,Z){J.setSourceContent(K,Z)}),{code:U.code,map:J}};jYD.SourceNode=O6});var Ex=S((LYD)=>{LYD.SourceMapGenerator=MI().SourceMapGenerator;LYD.SourceMapConsumer=Ax().SourceMapConsumer;LYD.SourceNode=vx().SourceNode});var ng=S((pg)=>{Object.defineProperty(pg,"__esModule",{value:!0});var t=fH(),T4=Z_(),k2=Jx(),vYD=Xx(),EYD=Ex(),_2=Symbol("Fragment"),u2=Symbol("Teleport"),sY=Symbol("Suspense"),q7=Symbol("KeepAlive"),yI=Symbol("BaseTransition"),L1=Symbol("openBlock"),hI=Symbol("createBlock"),mI=Symbol("createElementBlock"),eY=Symbol("createVNode"),DX=Symbol("createElementVNode"),h2=Symbol("createCommentVNode"),$X=Symbol("createTextVNode"),lI=Symbol("createStaticVNode"),G7=Symbol("resolveComponent"),UX=Symbol("resolveDynamicComponent"),JX=Symbol("resolveDirective"),YX=Symbol("resolveFilter"),XX=Symbol("withDirectives"),QX=Symbol("renderList"),cI=Symbol("renderSlot"),dI=Symbol("createSlots"),FX=Symbol("toDisplayString"),V7=Symbol("mergeProps"),WX=Symbol("normalizeClass"),KX=Symbol("normalizeStyle"),x2=Symbol("normalizeProps"),m2=Symbol("guardReactiveProps"),ZX=Symbol("toHandlers"),iY=Symbol("camelize"),ix=Symbol("capitalize"),pY=Symbol("toHandlerKey"),H7=Symbol("setBlockTracking"),px=Symbol("pushScopeId"),nx=Symbol("popScopeId"),zX=Symbol("withCtx"),I7=Symbol("unref"),B7=Symbol("isRef"),qX=Symbol("withMemo"),iI=Symbol("isMemoSame"),W6={[_2]:"Fragment",[u2]:"Teleport",[sY]:"Suspense",[q7]:"KeepAlive",[yI]:"BaseTransition",[L1]:"openBlock",[hI]:"createBlock",[mI]:"createElementBlock",[eY]:"createVNode",[DX]:"createElementVNode",[h2]:"createCommentVNode",[$X]:"createTextVNode",[lI]:"createStaticVNode",[G7]:"resolveComponent",[UX]:"resolveDynamicComponent",[JX]:"resolveDirective",[YX]:"resolveFilter",[XX]:"withDirectives",[QX]:"renderList",[cI]:"renderSlot",[dI]:"createSlots",[FX]:"toDisplayString",[V7]:"mergeProps",[WX]:"normalizeClass",[KX]:"normalizeStyle",[x2]:"normalizeProps",[m2]:"guardReactiveProps",[ZX]:"toHandlers",[iY]:"camelize",[ix]:"capitalize",[pY]:"toHandlerKey",[H7]:"setBlockTracking",[px]:"pushScopeId",[nx]:"popScopeId",[zX]:"withCtx",[I7]:"unref",[B7]:"isRef",[qX]:"withMemo",[iI]:"isMemoSame"};function TYD(D){Object.getOwnPropertySymbols(D).forEach(($)=>{W6[$]=D[$]})}var PYD={HTML:0,"0":"HTML",SVG:1,"1":"SVG",MATH_ML:2,"2":"MATH_ML"},SYD={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"},bYD={ELEMENT:0,"0":"ELEMENT",COMPONENT:1,"1":"COMPONENT",SLOT:2,"2":"SLOT",TEMPLATE:3,"3":"TEMPLATE"},CYD={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"},V0={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function rx(D,$=""){return{type:0,source:$,children:D,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:V0}}function g2(D,$,U,J,Y,X,Q,F=!1,W=!1,K=!1,Z=V0){if(D){if(F)D.helper(L1),D.helper(k4(D.inSSR,K));else D.helper(C4(D.inSSR,K));if(Q)D.helper(XX)}return{type:13,tag:$,props:U,children:J,patchFlag:Y,dynamicProps:X,directives:Q,isBlock:F,disableTracking:W,isComponent:K,loc:Z}}function j1(D,$=V0){return{type:17,loc:$,elements:D}}function L6(D,$=V0){return{type:15,loc:$,properties:D}}function G0(D,$){return{type:16,loc:V0,key:t.isString(D)?HD(D,!0):D,value:$}}function HD(D,$=!1,U=V0,J=0){return{type:4,loc:U,content:D,isStatic:$,constType:$?3:J}}function kYD(D,$){return{type:5,loc:$,content:t.isString(D)?HD(D,!1,$):D}}function N6(D,$=V0){return{type:8,loc:$,children:D}}function P0(D,$=[],U=V0){return{type:14,loc:U,callee:D,arguments:$}}function b4(D,$=void 0,U=!1,J=!1,Y=V0){return{type:18,params:D,returns:$,newline:U,isSlot:J,loc:Y}}function nY(D,$,U,J=!0){return{type:19,test:D,consequent:$,alternate:U,newline:J,loc:V0}}function ox(D,$,U=!1,J=!1){return{type:20,index:D,value:$,needPauseTracking:U,inVOnce:J,needArraySpread:!1,loc:V0}}function ax(D){return{type:21,body:D,loc:V0}}function uYD(D){return{type:22,elements:D,loc:V0}}function _YD(D,$,U){return{type:23,test:D,consequent:$,alternate:U,loc:V0}}function xYD(D,$){return{type:24,left:D,right:$,loc:V0}}function gYD(D){return{type:25,expressions:D,loc:V0}}function fYD(D){return{type:26,returns:D,loc:V0}}function C4(D,$){return D||$?eY:DX}function k4(D,$){return D||$?hI:mI}function GX(D,{helper:$,removeHelper:U,inSSR:J}){if(!D.isBlock)D.isBlock=!0,U(C4(J,D.isComponent)),$(L1),$(k4(J,D.isComponent))}var Tx=new Uint8Array([123,123]),Px=new Uint8Array([125,125]);function Sx(D){return D>=97&&D<=122||D>=65&&D<=90}function j6(D){return D===32||D===10||D===9||D===12||D===13}function B1(D){return D===47||D===62||j6(D)}function rY(D){let $=new Uint8Array(D.length);for(let U=0;U<D.length;U++)$[U]=D.charCodeAt(U);return $}var E0={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 tx{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=Tx,this.delimiterClose=Px,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0,this.entityDecoder=new T4.EntityDecoder(T4.htmlDecodeTree,(U,J)=>this.emitCodePoint(U,J))}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=Tx,this.delimiterClose=Px}getPos(D){let $=1,U=D+1,J=this.newlines.length,Y=-1;if(J>100){let X=-1,Q=J;while(X+1<Q){let F=X+Q>>>1;this.newlines[F]<D?X=F:Q=F}Y=X}else for(let X=J-1;X>=0;X--)if(D>this.newlines[X]){Y=X;break}if(Y>=0)$=Y+2,U=D-this.newlines[Y];return{column:U,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(!($?B1(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||j6(D)){let $=this.index-this.currentSequence.length;if(this.sectionStart<$){let U=this.index;this.index=$,this.cbs.ontext(this.sectionStart,$),this.index=U}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===E0.TitleEnd||this.currentSequence===E0.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===E0.Cdata[this.sequenceIndex]){if(++this.sequenceIndex===E0.Cdata.length)this.state=28,this.currentSequence=E0.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===E0.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(Sx(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(B1(D))this.handleTagName(D)}stateInSFCRootTagName(D){if(B1(D)){let $=this.buffer.slice(this.sectionStart,this.index);if($!=="template")this.enterRCDATA(rY("</"+$),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(j6(D));else if(D===62)this.cbs.onerr(14,this.index),this.state=1,this.sectionStart=this.index+1;else this.state=Sx(D)?9:27,this.sectionStart=this.index}stateInClosingTagName(D){if(D===62||j6(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(!j6(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(!j6(D))this.state=11,this.stateBeforeAttrName(D)}stateInAttrName(D){if(D===61||B1(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||B1(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||B1(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||B1(D))this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(D),this.cbs.onerr(27,this.index)}stateInDirModifier(D){if(D===61||B1(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(!j6(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(!j6(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(j6(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=E0.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===E0.ScriptEnd[3])this.startSpecial(E0.ScriptEnd,4);else if(D===E0.StyleEnd[3])this.startSpecial(E0.StyleEnd,4);else this.state=6,this.stateInTagName(D)}stateBeforeSpecialT(D){if(D===E0.TitleEnd[3])this.startSpecial(E0.TitleEnd,4);else if(D===E0.TextareaEnd[3])this.startSpecial(E0.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?T4.DecodingMode.Legacy:T4.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===E0.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(T4.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(T4.fromCodePoint(D),this.entityStart,this.sectionStart)}}}var yYD={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"},hYD={["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 SI(D,{compatConfig:$}){let U=$&&$[D];if(D==="MODE")return U||3;else return U}function N1(D,$){let U=SI("MODE",$),J=SI(D,$);return U===3?J===!0:J!==!1}function f2(D,$,U,...J){let Y=N1(D,$);if(Y)w7(D,$,U,...J);return Y}function w7(D,$,U,...J){if(SI(D,$)==="suppress-warning")return;let{message:X,link:Q}=hYD[D],F=`(deprecation ${D}) ${typeof X==="function"?X(...J):X}${Q?`
Details: ${Q}`:""}`,W=SyntaxError(F);if(W.code=D,U)W.loc=U;$.onWarn(W)}function pI(D){throw D}function sx(D){console.warn(`[Vue warn] ${D.message}`)}function xD(D,$,U,J){let Y=(U||ex)[D]+(J||""),X=SyntaxError(String(Y));return X.code=D,X.loc=$,X}var mYD={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__"},ex={[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 Dg(D,$,U=!1,J=[],Y=Object.create(null)){let X=D.type==="Program"?D.body[0].type==="ExpressionStatement"&&D.body[0].expression:D;vYD.walk(D,{enter(Q,F){if(F&&J.push(F),F&&F.type.startsWith("TS")&&!oI.includes(F.type))return this.skip();if(Q.type==="Identifier"){let W=!!Y[Q.name],K=$g(Q,F,J);if(U||K&&!W)$(Q,F,J,K,W)}else if(Q.type==="ObjectProperty"&&(F==null?void 0:F.type)==="ObjectPattern")Q.inPattern=!0;else if(Fg(Q))if(Q.scopeIds)Q.scopeIds.forEach((W)=>C2(W,Y));else Jg(Q,(W)=>z7(Q,W,Y));else if(Q.type==="BlockStatement")if(Q.scopeIds)Q.scopeIds.forEach((W)=>C2(W,Y));else nI(Q,(W)=>z7(Q,W,Y));else if(Q.type==="SwitchStatement")if(Q.scopeIds)Q.scopeIds.forEach((W)=>C2(W,Y));else Qg(Q,!1,(W)=>z7(Q,W,Y));else if(Q.type==="CatchClause"&&Q.param)if(Q.scopeIds)Q.scopeIds.forEach((W)=>C2(W,Y));else for(let W of p6(Q.param))z7(Q,W,Y);else if(Yg(Q))if(Q.scopeIds)Q.scopeIds.forEach((W)=>C2(W,Y));else Xg(Q,!1,(W)=>z7(Q,W,Y))},leave(Q,F){if(F&&J.pop(),Q!==X&&Q.scopeIds){for(let W of Q.scopeIds)if(Y[W]--,Y[W]===0)delete Y[W]}}})}function $g(D,$,U){if(!$)return!0;if(D.name==="arguments")return!1;if(lYD(D,$,U[U.length-2]))return!0;switch($.type){case"AssignmentExpression":case"AssignmentPattern":return!0;case"ObjectProperty":return $.key!==D&&oY($,U);case"ArrayPattern":return oY($,U)}return!1}function oY(D,$){if(D&&(D.type==="ObjectProperty"||D.type==="ArrayPattern")){let U=$.length;while(U--){let J=$[U];if(J.type==="AssignmentExpression")return!0;else if(J.type!=="ObjectProperty"&&!J.type.endsWith("Pattern"))break}}return!1}function Ug(D){let $=D.length;while($--){let U=D[$];if(U.type==="NewExpression")return!0;else if(U.type!=="MemberExpression")break}return!1}function Jg(D,$){for(let U of D.params)for(let J of p6(U))$(J)}function nI(D,$){let U=D.type==="SwitchCase"?D.consequent:D.body;for(let J of U)if(J.type==="VariableDeclaration"){if(J.declare)continue;for(let Y of J.declarations)for(let X of p6(Y.id))$(X)}else if(J.type==="FunctionDeclaration"||J.type==="ClassDeclaration"){if(J.declare||!J.id)continue;$(J.id)}else if(Yg(J))Xg(J,!0,$);else if(J.type==="SwitchStatement")Qg(J,!0,$)}function Yg(D){return D.type==="ForOfStatement"||D.type==="ForInStatement"||D.type==="ForStatement"}function Xg(D,$,U){let J=D.type==="ForStatement"?D.init:D.left;if(J&&J.type==="VariableDeclaration"&&(J.kind==="var"?$:!$))for(let Y of J.declarations)for(let X of p6(Y.id))U(X)}function Qg(D,$,U){for(let J of D.cases){for(let Y of J.consequent)if(Y.type==="VariableDeclaration"&&(Y.kind==="var"?$:!$))for(let X of Y.declarations)for(let Q of p6(X.id))U(Q);nI(J,U)}}function p6(D,$=[]){switch(D.type){case"Identifier":$.push(D);break;case"MemberExpression":let U=D;while(U.type==="MemberExpression")U=U.object;$.push(U);break;case"ObjectPattern":for(let J of D.properties)if(J.type==="RestElement")p6(J.argument,$);else p6(J.value,$);break;case"ArrayPattern":D.elements.forEach((J)=>{if(J)p6(J,$)});break;case"RestElement":p6(D.argument,$);break;case"AssignmentPattern":p6(D.left,$);break}return $}function C2(D,$){if(D in $)$[D]++;else $[D]=1}function z7(D,$,U){let{name:J}=$;if(D.scopeIds&&D.scopeIds.has(J))return;C2(J,U),(D.scopeIds||(D.scopeIds=new Set)).add(J)}var Fg=(D)=>{return/Function(?:Expression|Declaration)$|Method$/.test(D.type)},rI=(D)=>D&&(D.type==="ObjectProperty"||D.type==="ObjectMethod")&&!D.computed,Wg=(D,$)=>rI($)&&$.key===D;function lYD(D,$,U){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!U||U.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(U==null?void 0:U.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 oI=["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"];function VX(D){if(oI.includes(D.type))return VX(D.expression);else return D}var n6=(D)=>D.type===4&&D.isStatic;function aI(D){switch(D){case"Teleport":case"teleport":return u2;case"Suspense":case"suspense":return sY;case"KeepAlive":case"keep-alive":return q7;case"BaseTransition":case"base-transition":return yI}}var cYD=/^$|^\d|[^\$\w\xA0-\uFFFF]/,k$=(D)=>!cYD.test(D),tI=/[A-Za-z_$\xA0-\uFFFF]/,dYD=/[\.\?\w$\xA0-\uFFFF]/,iYD=/\s+[.[]\s*|\s*[.[]\s+/g,HX=(D)=>D.type===4?D.content:D.loc.source,pYD=(D)=>{let $=HX(D).trim().replace(iYD,(F)=>F.trim()),U=0,J=[],Y=0,X=0,Q=null;for(let F=0;F<$.length;F++){let W=$.charAt(F);switch(U){case 0:if(W==="[")J.push(U),U=1,Y++;else if(W==="(")J.push(U),U=2,X++;else if(!(F===0?tI:dYD).test(W))return!1;break;case 1:if(W==="'"||W==='"'||W==="`")J.push(U),U=3,Q=W;else if(W==="[")Y++;else if(W==="]"){if(!--Y)U=J.pop()}break;case 2:if(W==="'"||W==='"'||W==="`")J.push(U),U=3,Q=W;else if(W==="(")X++;else if(W===")"){if(F===$.length-1)return!1;if(!--X)U=J.pop()}break;case 3:if(W===Q)U=J.pop(),Q=null;break}}return!Y&&!X},Kg=(D,$)=>{try{let U=D.ast||k2.parseExpression(HX(D),{plugins:$.expressionPlugins?[...$.expressionPlugins,"typescript"]:["typescript"]});return U=VX(U),U.type==="MemberExpression"||U.type==="OptionalMemberExpression"||U.type==="Identifier"&&U.name!=="undefined"}catch(U){return!1}},sI=Kg,nYD=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,rYD=(D)=>nYD.test(HX(D)),Zg=(D,$)=>{try{let U=D.ast||k2.parseExpression(HX(D),{plugins:$.expressionPlugins?[...$.expressionPlugins,"typescript"]:["typescript"]});if(U.type==="Program"){if(U=U.body[0],U.type==="ExpressionStatement")U=U.expression}return U=VX(U),U.type==="FunctionExpression"||U.type==="ArrowFunctionExpression"}catch(U){return!1}},zg=Zg;function bI(D,$,U=$.length){return eI({offset:D.offset,line:D.line,column:D.column},$,U)}function eI(D,$,U=$.length){let J=0,Y=-1;for(let X=0;X<U;X++)if($.charCodeAt(X)===10)J++,Y=X;return D.offset+=U,D.line+=J,D.column=Y===-1?D.column+U:U-Y,D}function CI(D,$){if(!D)throw Error($||"unexpected compiler condition")}function s0(D,$,U=!1){for(let J=0;J<D.props.length;J++){let Y=D.props[J];if(Y.type===7&&(U||Y.exp)&&(t.isString($)?Y.name===$:$.test(Y.name)))return Y}}function O7(D,$,U=!1,J=!1){for(let Y=0;Y<D.props.length;Y++){let X=D.props[Y];if(X.type===6){if(U)continue;if(X.name===$&&(X.value||J))return X}else if(X.name==="bind"&&(X.exp||J)&&O1(X.arg,$))return X}}function O1(D,$){return!!(D&&n6(D)&&D.content===$)}function oYD(D){return D.props.some(($)=>$.type===7&&$.name==="bind"&&(!$.arg||$.arg.type!==4||!$.arg.isStatic))}function yY(D){return D.type===5||D.type===2}function kI(D){return D.type===7&&D.name==="pre"}function IX(D){return D.type===7&&D.name==="slot"}function y2(D){return D.type===1&&D.tagType===3}function j7(D){return D.type===1&&D.tagType===2}var aYD=new Set([x2,m2]);function DB(D,$=[]){if(D&&!t.isString(D)&&D.type===14){let U=D.callee;if(!t.isString(U)&&aYD.has(U))return DB(D.arguments[0],$.concat(D))}return[D,$]}function N7(D,$,U){if(D.type!==13&&tYD(D,$))return;let J,Y=D.type===13?D.props:D.arguments[2],X=[],Q;if(Y&&!t.isString(Y)&&Y.type===14){let F=DB(Y);Y=F[0],X=F[1],Q=X[X.length-1]}if(Y==null||t.isString(Y))J=L6([$]);else if(Y.type===14){let F=Y.arguments[0];if(!t.isString(F)&&F.type===15){if(!uI($,F))F.properties.unshift($)}else if(Y.callee===ZX)J=P0(U.helper(V7),[L6([$]),Y]);else Y.arguments.unshift(L6([$]));!J&&(J=Y)}else if(Y.type===15){if(!uI($,Y))Y.properties.unshift($);J=Y}else if(J=P0(U.helper(V7),[L6([$]),Y]),Q&&Q.callee===m2)Q=X[X.length-2];if(D.type===13)if(Q)Q.arguments[0]=J;else D.props=J;else if(Q)Q.arguments[0]=J;else D.arguments[2]=J}function tYD(D,$){var U,J,Y;if($.key.type!==4||$.key.content!=="key")return!1;let X=D.arguments[2];if(X&&!t.isString(X)){let[Q]=DB(X);if(Q&&!t.isString(Q)&&Q.type===15&&uI($,Q))return!0}return(U=D.arguments)[2]||(U[2]="{}"),(J=D.arguments)[3]||(J[3]="undefined"),(Y=D.arguments)[4]||(Y[4]="undefined"),D.arguments[5]=$.value,!0}function uI(D,$){let U=!1;if(D.key.type===4){let J=D.key.content;U=$.properties.some((Y)=>Y.key.type===4&&Y.key.content===J)}return U}function u4(D,$){return`_${$}_${D.replace(/[^\w]/g,(U,J)=>{return U==="-"?"_":D.charCodeAt(J).toString()})}`}function x0(D,$){if(!D||Object.keys($).length===0)return!1;switch(D.type){case 1:for(let U=0;U<D.props.length;U++){let J=D.props[U];if(J.type===7&&(x0(J.arg,$)||x0(J.exp,$)))return!0}return D.children.some((U)=>x0(U,$));case 11:if(x0(D.source,$))return!0;return D.children.some((U)=>x0(U,$));case 9:return D.branches.some((U)=>x0(U,$));case 10:if(x0(D.condition,$))return!0;return D.children.some((U)=>x0(U,$));case 4:return!D.isStatic&&k$(D.content)&&!!$[D.content];case 8:return D.children.some((U)=>t.isObject(U)&&x0(U,$));case 5:case 12:return x0(D.content,$);case 2:case 3:case 20:return!1;default:return!1}}function qg(D){if(D.type===14&&D.callee===qX)return D.arguments[1].returns;else return D}var Gg=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function $B(D){for(let $=0;$<D.length;$++)if(!j6(D.charCodeAt($)))return!1;return!0}function BX(D){return D.type===2&&$B(D.content)||D.type===12&&BX(D.content)}function UB(D){return D.type===3||BX(D)}var Vg={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:t.NO,isPreTag:t.NO,isIgnoreNewlineTag:t.NO,isCustomElement:t.NO,onError:pI,onWarn:sx,comments:!0,prefixIdentifiers:!1},TD=Vg,L7=null,C$="",g0=null,RD=null,C6="",b$=-1,P4=-1,JB=0,w1=!1,_I=null,J0=[],nD=new tx(J0,{onerr:t0,ontext(D,$){gY(T0(D,$),D,$)},ontextentity(D,$,U){gY(D,$,U)},oninterpolation(D,$){if(w1)return gY(T0(D,$),D,$);let U=D+nD.delimiterOpen.length,J=$-nD.delimiterClose.length;while(j6(C$.charCodeAt(U)))U++;while(j6(C$.charCodeAt(J-1)))J--;let Y=T0(U,J);if(Y.includes("&"))Y=T4.decodeHTML(Y);xI({type:5,content:mY(Y,!1,z0(U,J)),loc:z0(D,$)})},onopentagname(D,$){let U=T0(D,$);g0={type:1,tag:U,ns:TD.getNamespace(U,J0[0],TD.ns),tagType:0,props:[],children:[],loc:z0(D-1,$),codegenNode:void 0}},onopentagend(D){Cx(D)},onclosetag(D,$){let U=T0(D,$);if(!TD.isVoidTag(U)){let J=!1;for(let Y=0;Y<J0.length;Y++)if(J0[Y].tag.toLowerCase()===U.toLowerCase()){if(J=!0,Y>0)t0(24,J0[0].loc.start.offset);for(let Q=0;Q<=Y;Q++){let F=J0.shift();hY(F,$,Q<Y)}break}if(!J)t0(23,Hg(D,60))}},onselfclosingtag(D){let $=g0.tag;if(g0.isSelfClosing=!0,Cx(D),J0[0]&&J0[0].tag===$)hY(J0.shift(),D)},onattribname(D,$){RD={type:6,name:T0(D,$),nameLoc:z0(D,$),value:void 0,loc:z0(D)}},ondirname(D,$){let U=T0(D,$),J=U==="."||U===":"?"bind":U==="@"?"on":U==="#"?"slot":U.slice(2);if(!w1&&J==="")t0(26,D);if(w1||J==="")RD={type:6,name:U,nameLoc:z0(D,$),value:void 0,loc:z0(D)};else if(RD={type:7,name:J,rawName:U,exp:void 0,arg:void 0,modifiers:U==="."?[HD("prop")]:[],loc:z0(D)},J==="pre"){w1=nD.inVPre=!0,_I=g0;let Y=g0.props;for(let X=0;X<Y.length;X++)if(Y[X].type===7)Y[X]=FXD(Y[X])}},ondirarg(D,$){if(D===$)return;let U=T0(D,$);if(w1&&!kI(RD))RD.name+=U,S4(RD.nameLoc,$);else{let J=U[0]!=="[";RD.arg=mY(J?U:U.slice(1,-1),J,z0(D,$),J?3:0)}},ondirmodifier(D,$){let U=T0(D,$);if(w1&&!kI(RD))RD.name+="."+U,S4(RD.nameLoc,$);else if(RD.name==="slot"){let J=RD.arg;if(J)J.content+="."+U,S4(J.loc,$)}else{let J=HD(U,!0,z0(D,$));RD.modifiers.push(J)}},onattribdata(D,$){if(C6+=T0(D,$),b$<0)b$=D;P4=$},onattribentity(D,$,U){if(C6+=D,b$<0)b$=$;P4=U},onattribnameend(D){let $=RD.loc.start.offset,U=T0($,D);if(RD.type===7)RD.rawName=U;if(g0.props.some((J)=>(J.type===7?J.rawName:J.name)===U))t0(2,$)},onattribend(D,$){if(g0&&RD){if(S4(RD.loc,$),D!==0)if(RD.type===6){if(RD.name==="class")C6=Bg(C6).trim();if(D===1&&!C6)t0(13,$);if(RD.value={type:2,content:C6,loc:D===1?z0(b$,P4):z0(b$-1,P4+1)},nD.inSFCRoot&&g0.tag==="template"&&RD.name==="lang"&&C6&&C6!=="html")nD.enterRCDATA(rY("</template"),0)}else{let U=0;if(RD.name==="for")U=3;else if(RD.name==="slot")U=1;else if(RD.name==="on"&&C6.includes(";"))U=2;if(RD.exp=mY(C6,!1,z0(b$,P4),0,U),RD.name==="for")RD.forParseResult=eYD(RD.exp);let J=-1;if(RD.name==="bind"&&(J=RD.modifiers.findIndex((Y)=>Y.content==="sync"))>-1&&f2("COMPILER_V_BIND_SYNC",TD,RD.loc,RD.arg.loc.source))RD.name="model",RD.modifiers.splice(J,1)}if(RD.type!==7||RD.name!=="pre")g0.props.push(RD)}C6="",b$=P4=-1},oncomment(D,$){if(TD.comments)xI({type:3,content:T0(D,$),loc:z0(D-4,$+3)})},onend(){let D=C$.length;if(nD.state!==1)switch(nD.state){case 5:case 8:t0(5,D);break;case 3:case 4:t0(25,nD.sectionStart);break;case 28:if(nD.currentSequence===E0.CdataEnd)t0(6,D);else t0(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:t0(9,D);break}for(let $=0;$<J0.length;$++)hY(J0[$],D-1),t0(24,J0[$].loc.start.offset)},oncdata(D,$){if((J0[0]?J0[0].ns:TD.ns)!==0)gY(T0(D,$),D,$);else t0(1,D-9)},onprocessinginstruction(D){if((J0[0]?J0[0].ns:TD.ns)===0)t0(21,D-1)}}),bx=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,sYD=/^\(|\)$/g;function eYD(D){let{loc:$,content:U}=D,J=U.match(Gg);if(!J)return;let[,Y,X]=J,Q=(z,q,G=!1)=>{let V=$.start.offset+q,I=V+z.length;return mY(z,!1,z0(V,I),0,G?1:0)},F={source:Q(X.trim(),U.indexOf(X,Y.length)),value:void 0,key:void 0,index:void 0,finalized:!1},W=Y.trim().replace(sYD,"").trim(),K=Y.indexOf(W),Z=W.match(bx);if(Z){W=W.replace(bx,"").trim();let z=Z[1].trim(),q;if(z)q=U.indexOf(z,K+W.length),F.key=Q(z,q,!0);if(Z[2]){let G=Z[2].trim();if(G)F.index=Q(G,U.indexOf(G,F.key?q+z.length:K+W.length),!0)}}if(W)F.value=Q(W,K,!0);return F}function T0(D,$){return C$.slice(D,$)}function Cx(D){if(nD.inSFCRoot)g0.innerLoc=z0(D+1,D+1);xI(g0);let{tag:$,ns:U}=g0;if(U===0&&TD.isPreTag($))JB++;if(TD.isVoidTag($))hY(g0,D);else if(J0.unshift(g0),U===1||U===2)nD.inXML=!0;g0=null}function gY(D,$,U){let J=J0[0]||L7,Y=J.children[J.children.length-1];if(Y&&Y.type===2)Y.content+=D,S4(Y.loc,U);else J.children.push({type:2,content:D,loc:z0($,U)})}function hY(D,$,U=!1){if(U)S4(D.loc,Hg($,60));else S4(D.loc,DXD($,62)+1);if(nD.inSFCRoot){if(D.children.length)D.innerLoc.end=t.extend({},D.children[D.children.length-1].loc.end);else D.innerLoc.end=t.extend({},D.innerLoc.start);D.innerLoc.source=T0(D.innerLoc.start.offset,D.innerLoc.end.offset)}let{tag:J,ns:Y,children:X}=D;if(!w1){if(J==="slot")D.tagType=2;else if(kx(D))D.tagType=3;else if(UXD(D))D.tagType=1}if(!nD.inRCDATA)D.children=Ig(X);if(Y===0&&TD.isIgnoreNewlineTag(J)){let Q=X[0];if(Q&&Q.type===2)Q.content=Q.content.replace(/^\r?\n/,"")}if(Y===0&&TD.isPreTag(J))JB--;if(_I===D)w1=nD.inVPre=!1,_I=null;if(nD.inXML&&(J0[0]?J0[0].ns:TD.ns)===0)nD.inXML=!1;{let Q=D.props;if(N1("COMPILER_V_IF_V_FOR_PRECEDENCE",TD)){let W=!1,K=!1;for(let Z=0;Z<Q.length;Z++){let z=Q[Z];if(z.type===7){if(z.name==="if")W=!0;else if(z.name==="for")K=!0}if(W&&K){w7("COMPILER_V_IF_V_FOR_PRECEDENCE",TD,D.loc);break}}}if(!nD.inSFCRoot&&N1("COMPILER_NATIVE_TEMPLATE",TD)&&D.tag==="template"&&!kx(D)){w7("COMPILER_NATIVE_TEMPLATE",TD,D.loc);let W=J0[0]||L7,K=W.children.indexOf(D);W.children.splice(K,1,...D.children)}let F=Q.find((W)=>W.type===6&&W.name==="inline-template");if(F&&f2("COMPILER_INLINE_TEMPLATE",TD,F.loc)&&D.children.length)F.value={type:2,content:T0(D.children[0].loc.start.offset,D.children[D.children.length-1].loc.end.offset),loc:F.loc}}}function DXD(D,$){let U=D;while(C$.charCodeAt(U)!==$&&U<C$.length-1)U++;return U}function Hg(D,$){let U=D;while(C$.charCodeAt(U)!==$&&U>=0)U--;return U}var $XD=new Set(["if","else","else-if","for","slot"]);function kx({tag:D,props:$}){if(D==="template"){for(let U=0;U<$.length;U++)if($[U].type===7&&$XD.has($[U].name))return!0}return!1}function UXD({tag:D,props:$}){if(TD.isCustomElement(D))return!1;if(D==="component"||JXD(D.charCodeAt(0))||aI(D)||TD.isBuiltInComponent&&TD.isBuiltInComponent(D)||TD.isNativeTag&&!TD.isNativeTag(D))return!0;for(let U=0;U<$.length;U++){let J=$[U];if(J.type===6){if(J.name==="is"&&J.value){if(J.value.content.startsWith("vue:"))return!0;else if(f2("COMPILER_IS_ON_ELEMENT",TD,J.loc))return!0}}else if(J.name==="bind"&&O1(J.arg,"is")&&f2("COMPILER_IS_ON_ELEMENT",TD,J.loc))return!0}return!1}function JXD(D){return D>64&&D<91}var YXD=/\r\n/g;function Ig(D){let $=TD.whitespace!=="preserve",U=!1;for(let J=0;J<D.length;J++){let Y=D[J];if(Y.type===2)if(!JB){if($B(Y.content)){let X=D[J-1]&&D[J-1].type,Q=D[J+1]&&D[J+1].type;if(!X||!Q||$&&(X===3&&(Q===3||Q===1)||X===1&&(Q===3||Q===1&&XXD(Y.content))))U=!0,D[J]=null;else Y.content=" "}else if($)Y.content=Bg(Y.content)}else Y.content=Y.content.replace(YXD,`
`)}return U?D.filter(Boolean):D}function XXD(D){for(let $=0;$<D.length;$++){let U=D.charCodeAt($);if(U===10||U===13)return!0}return!1}function Bg(D){let $="",U=!1;for(let J=0;J<D.length;J++)if(j6(D.charCodeAt(J))){if(!U)$+=" ",U=!0}else $+=D[J],U=!1;return $}function xI(D){(J0[0]||L7).children.push(D)}function z0(D,$){return{start:nD.getPos(D),end:$==null?$:nD.getPos($),source:$==null?$:T0(D,$)}}function QXD(D){return z0(D.start.offset,D.end.offset)}function S4(D,$){D.end=nD.getPos($),D.source=T0(D.start.offset,$)}function FXD(D){let $={type:6,name:D.rawName,nameLoc:z0(D.loc.start.offset,D.loc.start.offset+D.rawName.length),value:void 0,loc:D.loc};if(D.exp){let U=D.exp.loc;if(U.end.offset<D.loc.end.offset)U.start.offset--,U.start.column--,U.end.offset++,U.end.column++;$.value={type:2,content:D.exp.content,loc:U}}return $}function mY(D,$=!1,U,J=0,Y=0){let X=HD(D,$,U,J);if(!$&&TD.prefixIdentifiers&&Y!==3&&D.trim()){if(k$(D))return X.ast=null,X;try{let Q=TD.expressionPlugins,F={plugins:Q?[...Q,"typescript"]:["typescript"]};if(Y===2)X.ast=k2.parse(` ${D} `,F).program;else if(Y===1)X.ast=k2.parseExpression(`(${D})=>{}`,F);else X.ast=k2.parseExpression(`(${D})`,F)}catch(Q){X.ast=!1,t0(46,U.start.offset,Q.message)}}return X}function t0(D,$,U){TD.onError(xD(D,z0($,$),void 0,U))}function WXD(){nD.reset(),g0=null,RD=null,C6="",b$=-1,P4=-1,J0.length=0}function wg(D,$){if(WXD(),C$=D,TD=t.extend({},Vg),$){let Y;for(Y in $)if($[Y]!=null)TD[Y]=$[Y]}if(TD.decodeEntities)console.warn("[@vue/compiler-core] decodeEntities option is passed but will be ignored in non-browser builds.");nD.mode=TD.parseMode==="html"?1:TD.parseMode==="sfc"?2:0,nD.inXML=TD.ns===1||TD.ns===2;let U=$&&$.delimiters;if(U)nD.delimiterOpen=rY(U[0]),nD.delimiterClose=rY(U[1]);let J=L7=rx([],D);return nD.parse(C$),J.loc=z0(0,D.length),J.children=Ig(J.children),L7=null,J}function KXD(D,$){lY(D,void 0,$,!!Og(D))}function Og(D){let $=D.children.filter((U)=>U.type!==3);return $.length===1&&$[0].type===1&&!j7($[0])?$[0]:null}function lY(D,$,U,J=!1,Y=!1){let{children:X}=D,Q=[];for(let Z=0;Z<X.length;Z++){let z=X[Z];if(z.type===1&&z.tagType===0){let q=J?0:R6(z,U);if(q>0){if(q>=2){z.codegenNode.patchFlag=-1,Q.push(z);continue}}else{let G=z.codegenNode;if(G.type===13){let V=G.patchFlag;if((V===void 0||V===512||V===1)&&Ng(z,U)>=2){let I=Lg(z);if(I)G.props=U.hoist(I)}if(G.dynamicProps)G.dynamicProps=U.hoist(G.dynamicProps)}}}else if(z.type===12){if((J?0:R6(z,U))>=2){if(z.codegenNode.type===14&&z.codegenNode.arguments.length>0)z.codegenNode.arguments.push(`-1 /* ${t.PatchFlagNames[-1]} */`);Q.push(z);continue}}if(z.type===1){let q=z.tagType===1;if(q)U.scopes.vSlot++;if(lY(z,D,U,!1,Y),q)U.scopes.vSlot--}else if(z.type===11)lY(z,D,U,z.children.length===1,!0);else if(z.type===9)for(let q=0;q<z.branches.length;q++)lY(z.branches[q],D,U,z.branches[q].children.length===1,Y)}let F=!1;if(Q.length===X.length&&D.type===1){if(D.tagType===0&&D.codegenNode&&D.codegenNode.type===13&&t.isArray(D.codegenNode.children))D.codegenNode.children=W(j1(D.codegenNode.children)),F=!0;else if(D.tagType===1&&D.codegenNode&&D.codegenNode.type===13&&D.codegenNode.children&&!t.isArray(D.codegenNode.children)&&D.codegenNode.children.type===15){let Z=K(D.codegenNode,"default");if(Z)Z.returns=W(j1(Z.returns)),F=!0}else if(D.tagType===3&&$&&$.type===1&&$.tagType===1&&$.codegenNode&&$.codegenNode.type===13&&$.codegenNode.children&&!t.isArray($.codegenNode.children)&&$.codegenNode.children.type===15){let Z=s0(D,"slot",!0),z=Z&&Z.arg&&K($.codegenNode,Z.arg);if(z)z.returns=W(j1(z.returns)),F=!0}}if(!F)for(let Z of Q)Z.codegenNode=U.cache(Z.codegenNode);function W(Z){let z=U.cache(Z);return z.needArraySpread=!0,z}function K(Z,z){if(Z.children&&!t.isArray(Z.children)&&Z.children.type===15){let q=Z.children.properties.find((G)=>G.key===z||G.key.content===z);return q&&q.value}}if(Q.length&&U.transformHoist)U.transformHoist(X,U,D)}function R6(D,$){let{constantCache:U}=$;switch(D.type){case 1:if(D.tagType!==0)return 0;let J=U.get(D);if(J!==void 0)return J;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 Q=3,F=Ng(D,$);if(F===0)return U.set(D,0),0;if(F<Q)Q=F;for(let W=0;W<D.children.length;W++){let K=R6(D.children[W],$);if(K===0)return U.set(D,0),0;if(K<Q)Q=K}if(Q>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 Z=R6(K.exp,$);if(Z===0)return U.set(D,0),0;if(Z<Q)Q=Z}}if(Y.isBlock){for(let W=0;W<D.props.length;W++)if(D.props[W].type===7)return U.set(D,0),0;$.removeHelper(L1),$.removeHelper(k4($.inSSR,Y.isComponent)),Y.isBlock=!1,$.helper(C4($.inSSR,Y.isComponent))}return U.set(D,Q),Q}else return U.set(D,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return R6(D.content,$);case 4:return D.constType;case 8:let X=3;for(let Q=0;Q<D.children.length;Q++){let F=D.children[Q];if(t.isString(F)||t.isSymbol(F))continue;let W=R6(F,$);if(W===0)return 0;else if(W<X)X=W}return X;case 20:return 2;default:return 0}}var ZXD=new Set([WX,KX,x2,m2]);function jg(D,$){if(D.type===14&&!t.isString(D.callee)&&ZXD.has(D.callee)){let U=D.arguments[0];if(U.type===4)return R6(U,$);else if(U.type===14)return jg(U,$)}return 0}function Ng(D,$){let U=3,J=Lg(D);if(J&&J.type===15){let{properties:Y}=J;for(let X=0;X<Y.length;X++){let{key:Q,value:F}=Y[X],W=R6(Q,$);if(W===0)return W;if(W<U)U=W;let K;if(F.type===4)K=R6(F,$);else if(F.type===14)K=jg(F,$);else K=0;if(K===0)return K;if(K<U)U=K}}return U}function Lg(D){let $=D.codegenNode;if($.type===13)return $.props}function Rg(D,{filename:$="",prefixIdentifiers:U=!1,hoistStatic:J=!1,hmr:Y=!1,cacheHandlers:X=!1,nodeTransforms:Q=[],directiveTransforms:F={},transformHoist:W=null,isBuiltInComponent:K=t.NOOP,isCustomElement:Z=t.NOOP,expressionPlugins:z=[],scopeId:q=null,slotted:G=!0,ssr:V=!1,inSSR:I=!1,ssrCssVars:H="",bindingMetadata:w=t.EMPTY_OBJ,inline:j=!1,isTS:B=!1,onError:N=pI,onWarn:A=sx,compatConfig:v}){let k=$.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),C={filename:$,selfName:k&&t.capitalize(t.camelize(k[1])),prefixIdentifiers:U,hoistStatic:J,hmr:Y,cacheHandlers:X,nodeTransforms:Q,directiveTransforms:F,transformHoist:W,isBuiltInComponent:K,isCustomElement:Z,expressionPlugins:z,scopeId:q,slotted:G,ssr:V,inSSR:I,ssrCssVars:H,bindingMetadata:w,inline:j,isTS:B,onError:N,onWarn:A,compatConfig:v,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(T){let h=C.helpers.get(T)||0;return C.helpers.set(T,h+1),T},removeHelper(T){let h=C.helpers.get(T);if(h){let c=h-1;if(!c)C.helpers.delete(T);else C.helpers.set(T,c)}},helperString(T){return`_${W6[C.helper(T)]}`},replaceNode(T){{if(!C.currentNode)throw Error("Node being replaced is already removed.");if(!C.parent)throw Error("Cannot replace root node.")}C.parent.children[C.childIndex]=C.currentNode=T},removeNode(T){if(!C.parent)throw Error("Cannot remove root node.");let h=C.parent.children,c=T?h.indexOf(T):C.currentNode?C.childIndex:-1;if(c<0)throw Error("node being removed is not a child of current parent");if(!T||T===C.currentNode)C.currentNode=null,C.onNodeRemoved();else if(C.childIndex>c)C.childIndex--,C.onNodeRemoved();C.parent.children.splice(c,1)},onNodeRemoved:t.NOOP,addIdentifiers(T){if(t.isString(T))b(T);else if(T.identifiers)T.identifiers.forEach(b);else if(T.type===4)b(T.content)},removeIdentifiers(T){if(t.isString(T))y(T);else if(T.identifiers)T.identifiers.forEach(y);else if(T.type===4)y(T.content)},hoist(T){if(t.isString(T))T=HD(T);C.hoists.push(T);let h=HD(`_hoisted_${C.hoists.length}`,!1,T.loc,2);return h.hoisted=T,h},cache(T,h=!1,c=!1){let p=ox(C.cached.length,T,h,c);return C.cached.push(p),p}};C.filters=new Set;function b(T){let{identifiers:h}=C;if(h[T]===void 0)h[T]=0;h[T]++}function y(T){C.identifiers[T]--}return C}function Mg(D,$){let U=Rg(D,$);if(R7(D,U),$.hoistStatic)KXD(D,U);if(!$.ssr)zXD(D,U);D.helpers=new Set([...U.helpers.keys()]),D.components=[...U.components],D.directives=[...U.directives],D.imports=U.imports,D.hoists=U.hoists,D.temps=U.temps,D.cached=U.cached,D.transformed=!0,D.filters=[...U.filters]}function zXD(D,$){let{helper:U}=$,{children:J}=D;if(J.length===1){let Y=Og(D);if(Y&&Y.codegenNode){let X=Y.codegenNode;if(X.type===13)GX(X,$);D.codegenNode=X}else D.codegenNode=J[0]}else if(J.length>1){let Y=64;if(J.filter((X)=>X.type!==3).length===1)Y|=2048;D.codegenNode=g2($,U(_2),void 0,D.children,Y,void 0,void 0,!0,void 0,!1)}}function qXD(D,$){let U=0,J=()=>{U--};for(;U<D.children.length;U++){let Y=D.children[U];if(t.isString(Y))continue;$.grandParent=$.parent,$.parent=D,$.childIndex=U,$.onNodeRemoved=J,R7(Y,$)}}function R7(D,$){$.currentNode=D;let{nodeTransforms:U}=$,J=[];for(let X=0;X<U.length;X++){let Q=U[X](D,$);if(Q)if(t.isArray(Q))J.push(...Q);else J.push(Q);if(!$.currentNode)return;else D=$.currentNode}switch(D.type){case 3:if(!$.ssr)$.helper(h2);break;case 5:if(!$.ssr)$.helper(FX);break;case 9:for(let X=0;X<D.branches.length;X++)R7(D.branches[X],$);break;case 10:case 11:case 1:case 0:qXD(D,$);break}$.currentNode=D;let Y=J.length;while(Y--)J[Y]()}function YB(D,$){let U=t.isString(D)?(J)=>J===D:(J)=>D.test(J);return(J,Y)=>{if(J.type===1){let{props:X}=J;if(J.tagType===3&&X.some(IX))return;let Q=[];for(let F=0;F<X.length;F++){let W=X[F];if(W.type===7&&U(W.name)){X.splice(F,1),F--;let K=$(J,W,Y);if(K)Q.push(K)}}return Q}}}var wX="/*@__PURE__*/",cY=(D)=>`${W6[D]}: _${W6[D]}`;function ux(D,{mode:$="function",prefixIdentifiers:U=$==="module",sourceMap:J=!1,filename:Y="template.vue.html",scopeId:X=null,optimizeImports:Q=!1,runtimeGlobalName:F="Vue",runtimeModuleName:W="vue",ssrRuntimeModuleName:K="vue/server-renderer",ssr:Z=!1,isTS:z=!1,inSSR:q=!1}){let G={mode:$,prefixIdentifiers:U,sourceMap:J,filename:Y,scopeId:X,optimizeImports:Q,runtimeGlobalName:F,runtimeModuleName:W,ssrRuntimeModuleName:K,ssr:Z,isTS:z,inSSR:q,source:D.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(H){return`_${W6[H]}`},push(H,w=-2,j){if(G.code+=H,G.map){if(j){let B;if(j.type===4&&!j.isStatic){let N=j.content.replace(/^_ctx\./,"");if(N!==j.content&&k$(N))B=N}if(j.loc.source)I(j.loc.start,B)}if(w===-3)eI(G,H);else if(G.offset+=H.length,w===-2)G.column+=H.length;else{if(w===-1)w=H.length-1;G.line++,G.column=H.length-w}if(j&&j.loc!==V0&&j.loc.source)I(j.loc.end)}},indent(){V(++G.indentLevel)},deindent(H=!1){if(H)--G.indentLevel;else V(--G.indentLevel)},newline(){V(G.indentLevel)}};function V(H){G.push(`
`+" ".repeat(H),0)}function I(H,w=null){let{_names:j,_mappings:B}=G.map;if(w!==null&&!j.has(w))j.add(w);B.add({originalLine:H.line,originalColumn:H.column-1,generatedLine:G.line,generatedColumn:G.column-1,source:Y,name:w})}if(J)G.map=new EYD.SourceMapGenerator,G.map.setSourceContent(Y,G.source),G.map._sources.add(Y);return G}function Ag(D,$={}){let U=ux(D,$);if($.onContextCreated)$.onContextCreated(U);let{mode:J,push:Y,prefixIdentifiers:X,indent:Q,deindent:F,newline:W,scopeId:K,ssr:Z}=U,z=Array.from(D.helpers),q=z.length>0,G=!X&&J!=="module",V=K!=null&&J==="module",I=!!$.inline,H=I?ux(D,$):U;if(J==="module")VXD(D,H,V,I);else GXD(D,H);let w=Z?"ssrRender":"render",j=Z?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"];if($.bindingMetadata&&!$.inline)j.push("$props","$setup","$data","$options");let B=$.isTS?j.map((N)=>`${N}: any`).join(","):j.join(", ");if(I)Y(`(${B}) => {`);else Y(`function ${w}(${B}) {`);if(Q(),G){if(Y("with (_ctx) {"),Q(),q)Y(`const { ${z.map(cY).join(", ")} } = _Vue
`,-1),W()}if(D.components.length){if(PI(D.components,"component",U),D.directives.length||D.temps>0)W()}if(D.directives.length){if(PI(D.directives,"directive",U),D.temps>0)W()}if(D.filters&&D.filters.length)W(),PI(D.filters,"filter",U),W();if(D.temps>0){Y("let ");for(let N=0;N<D.temps;N++)Y(`${N>0?", ":""}_temp${N}`)}if(D.components.length||D.directives.length||D.temps)Y(`
`,0),W();if(!Z)Y("return ");if(D.codegenNode)sD(D.codegenNode,U);else Y("null");if(G)F(),Y("}");return F(),Y("}"),{ast:D,code:U.code,preamble:I?H.code:"",map:U.map?U.map.toJSON():void 0}}function GXD(D,$){let{ssr:U,prefixIdentifiers:J,push:Y,newline:X,runtimeModuleName:Q,runtimeGlobalName:F,ssrRuntimeModuleName:W}=$,K=U?`require(${JSON.stringify(Q)})`:F,Z=Array.from(D.helpers);if(Z.length>0){if(J)Y(`const { ${Z.map(cY).join(", ")} } = ${K}
`,-1);else if(Y(`const _Vue = ${K}
`,-1),D.hoists.length){let z=[eY,DX,h2,$X,lI].filter((q)=>Z.includes(q)).map(cY).join(", ");Y(`const { ${z} } = _Vue
`,-1)}}if(D.ssrHelpers&&D.ssrHelpers.length)Y(`const { ${D.ssrHelpers.map(cY).join(", ")} } = require("${W}")
`,-1);vg(D.hoists,$),X(),Y("return ")}function VXD(D,$,U,J){let{push:Y,newline:X,optimizeImports:Q,runtimeModuleName:F,ssrRuntimeModuleName:W}=$;if(D.helpers.size){let K=Array.from(D.helpers);if(Q)Y(`import { ${K.map((Z)=>W6[Z]).join(", ")} } from ${JSON.stringify(F)}
`,-1),Y(`
// Binding optimization for webpack code-split
const ${K.map((Z)=>`_${W6[Z]} = ${W6[Z]}`).join(", ")}
`,-1);else Y(`import { ${K.map((Z)=>`${W6[Z]} as _${W6[Z]}`).join(", ")} } from ${JSON.stringify(F)}
`,-1)}if(D.ssrHelpers&&D.ssrHelpers.length)Y(`import { ${D.ssrHelpers.map((K)=>`${W6[K]} as _${W6[K]}`).join(", ")} } from "${W}"
`,-1);if(D.imports.length)HXD(D.imports,$),X();if(vg(D.hoists,$),X(),!J)Y("export ")}function PI(D,$,{helper:U,push:J,newline:Y,isTS:X}){let Q=U($==="filter"?YX:$==="component"?G7:JX);for(let F=0;F<D.length;F++){let W=D[F],K=W.endsWith("__self");if(K)W=W.slice(0,-6);if(J(`const ${u4(W,$)} = ${Q}(${JSON.stringify(W)}${K?", true":""})${X?"!":""}`),F<D.length-1)Y()}}function vg(D,$){if(!D.length)return;$.pure=!0;let{push:U,newline:J}=$;J();for(let Y=0;Y<D.length;Y++){let X=D[Y];if(X)U(`const _hoisted_${Y+1} = `),sD(X,$),J()}$.pure=!1}function HXD(D,$){if(!D.length)return;D.forEach((U)=>{$.push("import "),sD(U.exp,$),$.push(` from '${U.path}'`),$.newline()})}function IXD(D){return t.isString(D)||D.type===4||D.type===2||D.type===5||D.type===8}function OX(D,$){let U=D.length>3||D.some((J)=>t.isArray(J)||!IXD(J));$.push("["),U&&$.indent(),l2(D,$,U),U&&$.deindent(),$.push("]")}function l2(D,$,U=!1,J=!0){let{push:Y,newline:X}=$;for(let Q=0;Q<D.length;Q++){let F=D[Q];if(t.isString(F))Y(F,-3);else if(t.isArray(F))OX(F,$);else sD(F,$);if(Q<D.length-1)if(U)J&&Y(","),X();else J&&Y(", ")}}function sD(D,$){if(t.isString(D)){$.push(D,-3);return}if(t.isSymbol(D)){$.push($.helper(D));return}switch(D.type){case 1:case 9:case 11:CI(D.codegenNode!=null,"Codegen node is missing for element/if/for node. Apply appropriate transforms first."),sD(D.codegenNode,$);break;case 2:BXD(D,$);break;case 4:Eg(D,$);break;case 5:wXD(D,$);break;case 12:sD(D.codegenNode,$);break;case 8:Tg(D,$);break;case 3:jXD(D,$);break;case 13:NXD(D,$);break;case 14:RXD(D,$);break;case 15:MXD(D,$);break;case 17:AXD(D,$);break;case 18:vXD(D,$);break;case 19:EXD(D,$);break;case 20:TXD(D,$);break;case 21:l2(D.body,$,!0,!1);break;case 22:PXD(D,$);break;case 23:Pg(D,$);break;case 24:SXD(D,$);break;case 25:bXD(D,$);break;case 26:CXD(D,$);break;case 10:break;default:return CI(!1,`unhandled codegen node type: ${D.type}`),D}}function BXD(D,$){$.push(JSON.stringify(D.content),-3,D)}function Eg(D,$){let{content:U,isStatic:J}=D;$.push(J?JSON.stringify(U):U,-3,D)}function wXD(D,$){let{push:U,helper:J,pure:Y}=$;if(Y)U(wX);U(`${J(FX)}(`),sD(D.content,$),U(")")}function Tg(D,$){for(let U=0;U<D.children.length;U++){let J=D.children[U];if(t.isString(J))$.push(J,-3);else sD(J,$)}}function OXD(D,$){let{push:U}=$;if(D.type===8)U("["),Tg(D,$),U("]");else if(D.isStatic){let J=k$(D.content)?D.content:JSON.stringify(D.content);U(J,-2,D)}else U(`[${D.content}]`,-3,D)}function jXD(D,$){let{push:U,helper:J,pure:Y}=$;if(Y)U(wX);U(`${J(h2)}(${JSON.stringify(D.content)})`,-3,D)}function NXD(D,$){let{push:U,helper:J,pure:Y}=$,{tag:X,props:Q,children:F,patchFlag:W,dynamicProps:K,directives:Z,isBlock:z,disableTracking:q,isComponent:G}=D,V;if(W)if(W<0)V=W+` /* ${t.PatchFlagNames[W]} */`;else{let H=Object.keys(t.PatchFlagNames).map(Number).filter((w)=>w>0&&W&w).map((w)=>t.PatchFlagNames[w]).join(", ");V=W+` /* ${H} */`}if(Z)U(J(XX)+"(");if(z)U(`(${J(L1)}(${q?"true":""}), `);if(Y)U(wX);let I=z?k4($.inSSR,G):C4($.inSSR,G);if(U(J(I)+"(",-2,D),l2(LXD([X,Q,F,V,K]),$),U(")"),z)U(")");if(Z)U(", "),sD(Z,$),U(")")}function LXD(D){let $=D.length;while($--)if(D[$]!=null)break;return D.slice(0,$+1).map((U)=>U||"null")}function RXD(D,$){let{push:U,helper:J,pure:Y}=$,X=t.isString(D.callee)?D.callee:J(D.callee);if(Y)U(wX);U(X+"(",-2,D),l2(D.arguments,$),U(")")}function MXD(D,$){let{push:U,indent:J,deindent:Y,newline:X}=$,{properties:Q}=D;if(!Q.length){U("{}",-2,D);return}let F=Q.length>1||Q.some((W)=>W.value.type!==4);U(F?"{":"{ "),F&&J();for(let W=0;W<Q.length;W++){let{key:K,value:Z}=Q[W];if(OXD(K,$),U(": "),sD(Z,$),W<Q.length-1)U(","),X()}F&&Y(),U(F?"}":" }")}function AXD(D,$){OX(D.elements,$)}function vXD(D,$){let{push:U,indent:J,deindent:Y}=$,{params:X,returns:Q,body:F,newline:W,isSlot:K}=D;if(K)U(`_${W6[zX]}(`);if(U("(",-2,D),t.isArray(X))l2(X,$);else if(X)sD(X,$);if(U(") => "),W||F)U("{"),J();if(Q){if(W)U("return ");if(t.isArray(Q))OX(Q,$);else sD(Q,$)}else if(F)sD(F,$);if(W||F)Y(),U("}");if(K){if(D.isNonScopedSlot)U(", undefined, true");U(")")}}function EXD(D,$){let{test:U,consequent:J,alternate:Y,newline:X}=D,{push:Q,indent:F,deindent:W,newline:K}=$;if(U.type===4){let z=!k$(U.content);z&&Q("("),Eg(U,$),z&&Q(")")}else Q("("),sD(U,$),Q(")");X&&F(),$.indentLevel++,X||Q(" "),Q("? "),sD(J,$),$.indentLevel--,X&&K(),X||Q(" "),Q(": ");let Z=Y.type===19;if(!Z)$.indentLevel++;if(sD(Y,$),!Z)$.indentLevel--;X&&W(!0)}function TXD(D,$){let{push:U,helper:J,indent:Y,deindent:X,newline:Q}=$,{needPauseTracking:F,needArraySpread:W}=D;if(W)U("[...(");if(U(`_cache[${D.index}] || (`),F){if(Y(),U(`${J(H7)}(-1`),D.inVOnce)U(", true");U("),"),Q(),U("(")}if(U(`_cache[${D.index}] = `),sD(D.value,$),F)U(`).cacheIndex = ${D.index},`),Q(),U(`${J(H7)}(1),`),Q(),U(`_cache[${D.index}]`),X();if(U(")"),W)U(")]")}function PXD(D,$){let{push:U,indent:J,deindent:Y}=$;U("`");let X=D.elements.length,Q=X>3;for(let F=0;F<X;F++){let W=D.elements[F];if(t.isString(W))U(W.replace(/(`|\$|\\)/g,"\\$1"),-3);else{if(U("${"),Q)J();if(sD(W,$),Q)Y();U("}")}}U("`")}function Pg(D,$){let{push:U,indent:J,deindent:Y}=$,{test:X,consequent:Q,alternate:F}=D;if(U("if ("),sD(X,$),U(") {"),J(),sD(Q,$),Y(),U("}"),F)if(U(" else "),F.type===23)Pg(F,$);else U("{"),J(),sD(F,$),Y(),U("}")}function SXD(D,$){sD(D.left,$),$.push(" = "),sD(D.right,$)}function bXD(D,$){$.push("("),l2(D.expressions,$),$.push(")")}function CXD({returns:D},$){if($.push("return "),t.isArray(D))OX(D,$);else sD(D,$)}var kXD=t.makeMap("true,false,null,this"),Sg=(D,$)=>{if(D.type===5)D.content=e0(D.content,$);else if(D.type===1){let U=s0(D,"memo");for(let J=0;J<D.props.length;J++){let Y=D.props[J];if(Y.type===7&&Y.name!=="for"){let{exp:X,arg:Q}=Y;if(X&&X.type===4&&!(Y.name==="on"&&Q)&&!(U&&$.vForMemoKeyedNodes.has(D)&&Q&&Q.type===4&&Q.content==="key"))Y.exp=e0(X,$,Y.name==="slot");if(Q&&Q.type===4&&!Q.isStatic)Y.arg=e0(Q,$)}}}};function e0(D,$,U=!1,J=!1,Y=Object.create($.identifiers)){if(!$.prefixIdentifiers||!D.content.trim())return D;let{inline:X,bindingMetadata:Q}=$,F=(I,H,w)=>{let j=t.hasOwn(Q,I)&&Q[I];if(X){let B=H&&H.type==="AssignmentExpression"&&H.left===w,N=H&&H.type==="UpdateExpression"&&H.argument===w,A=H&&oY(H,z),v=H&&Ug(z),k=(C)=>{let b=`${$.helperString(I7)}(${C})`;return v?`(${b})`:b};if(_x(j)||j==="setup-reactive-const"||Y[I])return I;else if(j==="setup-ref")return`${I}.value`;else if(j==="setup-maybe-ref")return B||N||A?`${I}.value`:k(I);else if(j==="setup-let")if(B){let{right:C,operator:b}=H,y=W.slice(C.start-1,C.end-1),T=XB(e0(HD(y,!1),$,!1,!1,q));return`${$.helperString(B7)}(${I})${$.isTS?` //@ts-ignore
`:""} ? ${I}.value ${b} ${T} : ${I}`}else if(N){w.start=H.start,w.end=H.end;let{prefix:C,operator:b}=H,y=C?b:"",T=C?"":b;return`${$.helperString(B7)}(${I})${$.isTS?` //@ts-ignore
`:""} ? ${y}${I}.value${T} : ${y}${I}${T}`}else if(A)return I;else return k(I);else if(j==="props")return t.genPropsAccessExp(I);else if(j==="props-aliased")return t.genPropsAccessExp(Q.__propsAliases[I])}else if(j&&j.startsWith("setup")||j==="literal-const")return`$setup.${I}`;else if(j==="props-aliased")return`$props['${Q.__propsAliases[I]}']`;else if(j)return`$${j}.${I}`;return`_ctx.${I}`},W=D.content,K=D.ast;if(K===!1)return D;if(K===null||!K&&k$(W)){let I=$.identifiers[W],H=t.isGloballyAllowed(W),w=kXD(W);if(!U&&!I&&!w&&(!H||Q[W])){if(_x(Q[W]))D.constType=1;D.content=F(W)}else if(!I)if(w)D.constType=3;else D.constType=2;return D}if(!K){let I=J?` ${W} `:`(${W})${U?"=>{}":""}`;try{K=k2.parseExpression(I,{sourceType:"module",plugins:$.expressionPlugins})}catch(H){return $.onError(xD(46,D.loc,void 0,H.message)),D}}let Z=[],z=[],q=Object.create($.identifiers);Dg(K,(I,H,w,j,B)=>{if(Wg(I,H))return;if(I.name.startsWith("_filter_"))return;let N=j&&uXD(I);if(N&&!B){if(rI(H)&&H.shorthand)I.prefix=`${I.name}: `;I.name=F(I.name,H,I),Z.push(I)}else{if(!(N&&B)&&(!H||H.type!=="CallExpression"&&H.type!=="NewExpression"&&H.type!=="MemberExpression"))I.isConstant=!0;Z.push(I)}},!0,z,q);let G=[];Z.sort((I,H)=>I.start-H.start),Z.forEach((I,H)=>{let w=I.start-1,j=I.end-1,B=Z[H-1],N=W.slice(B?B.end-1:0,w);if(N.length||I.prefix)G.push(N+(I.prefix||""));let A=W.slice(w,j);if(G.push(HD(I.name,!1,{start:bI(D.loc.start,A,w),end:bI(D.loc.start,A,j),source:A},I.isConstant?3:0)),H===Z.length-1&&j<W.length)G.push(W.slice(j))});let V;if(G.length)V=N6(G,D.loc),V.ast=K;else V=D,V.constType=3;return V.identifiers=Object.keys(q),V}function uXD(D){if(t.isGloballyAllowed(D.name))return!1;if(D.name==="require")return!1;return!0}function XB(D){if(t.isString(D))return D;else if(D.type===4)return D.content;else return D.children.map(XB).join("")}function _x(D){return D==="setup-const"||D==="literal-const"}var _XD=YB(/^(?:if|else|else-if)$/,(D,$,U)=>{return bg(D,$,U,(J,Y,X)=>{let Q=U.parent.children,F=Q.indexOf(J),W=0;while(F-->=0){let K=Q[F];if(K&&K.type===9)W+=K.branches.length}return()=>{if(X)J.codegenNode=gx(Y,W,U);else{let K=gXD(J.codegenNode);K.alternate=gx(Y,W+J.branches.length-1,U)}}})});function bg(D,$,U,J){if($.name!=="else"&&(!$.exp||!$.exp.content.trim())){let Y=$.exp?$.exp.loc:D.loc;U.onError(xD(28,$.loc)),$.exp=HD("true",!1,Y)}if(U.prefixIdentifiers&&$.exp)$.exp=e0($.exp,U);if($.name==="if"){let Y=xx(D,$),X={type:9,loc:QXD(D.loc),branches:[Y]};if(U.replaceNode(X),J)return J(X,Y,!0)}else{let Y=U.parent.children,X=[],Q=Y.indexOf(D);while(Q-->=-1){let F=Y[Q];if(F&&UB(F)){if(U.removeNode(F),F.type===3)X.unshift(F);continue}if(F&&F.type===9){if(($.name==="else-if"||$.name==="else")&&F.branches[F.branches.length-1].condition===void 0)U.onError(xD(30,D.loc));U.removeNode();let W=xx(D,$);if(X.length&&!(U.parent&&U.parent.type===1&&(U.parent.tag==="transition"||U.parent.tag==="Transition")))W.children=[...X,...W.children];{let Z=W.userKey;if(Z)F.branches.forEach(({userKey:z})=>{if(xXD(z,Z))U.onError(xD(29,W.userKey.loc))})}F.branches.push(W);let K=J&&J(F,W,!1);if(R7(W,U),K)K();U.currentNode=null}else U.onError(xD(30,D.loc));break}}}function xx(D,$){let U=D.tagType===3;return{type:10,loc:D.loc,condition:$.name==="else"?void 0:$.exp,children:U&&!s0(D,"for")?D.children:[D],userKey:O7(D,"key"),isTemplateIf:U}}function gx(D,$,U){if(D.condition)return nY(D.condition,fx(D,$,U),P0(U.helper(h2),['"v-if"',"true"]));else return fx(D,$,U)}function fx(D,$,U){let{helper:J}=U,Y=G0("key",HD(`${$}`,!1,V0,2)),{children:X}=D,Q=X[0];if(X.length!==1||Q.type!==1)if(X.length===1&&Q.type===11){let W=Q.codegenNode;return N7(W,Y,U),W}else{let W=64;if(!D.isTemplateIf&&X.filter((K)=>K.type!==3).length===1)W|=2048;return g2(U,J(_2),L6([Y]),X,W,void 0,void 0,!0,!1,!1,D.loc)}else{let W=Q.codegenNode,K=qg(W);if(K.type===13)GX(K,U);return N7(K,Y,U),W}}function xXD(D,$){if(!D||D.type!==$.type)return!1;if(D.type===6){if(D.value.content!==$.value.content)return!1}else{let U=D.exp,J=$.exp;if(U.type!==J.type)return!1;if(U.type!==4||U.isStatic!==J.isStatic||U.content!==J.content)return!1}return!0}function gXD(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 fXD=YB("for",(D,$,U)=>{let{helper:J,removeHelper:Y}=U;return Cg(D,$,U,(X)=>{let Q=P0(J(QX),[X.source]),F=y2(D),W=s0(D,"memo"),K=O7(D,"key",!1,!0),Z=K&&K.type===7,z=K&&(K.type===6?K.value?HD(K.value.content,!0):void 0:K.exp),q=z?G0("key",z):null;{if(F&&W)W.exp=e0(W.exp,U);if((F||W)&&q&&Z){if(z=K.exp=q.value=e0(q.value,U),W)U.vForMemoKeyedNodes.add(D)}}let G=X.source.type===4&&X.source.constType>0,V=G?64:K?128:256;return X.codegenNode=g2(U,J(_2),void 0,Q,V,void 0,void 0,!0,!G,!1,D.loc),()=>{let I,{children:H}=X;if(F)D.children.some((B)=>{if(B.type===1){let N=O7(B,"key");if(N)return U.onError(xD(33,N.loc)),!0}});let w=H.length!==1||H[0].type!==1,j=j7(D)?D:F&&D.children.length===1&&j7(D.children[0])?D.children[0]:null;if(j){if(I=j.codegenNode,F&&q)N7(I,q,U)}else if(w)I=g2(U,J(_2),q?L6([q]):void 0,D.children,64,void 0,void 0,!0,void 0,!1);else{if(I=H[0].codegenNode,F&&q)N7(I,q,U);if(I.isBlock!==!G)if(I.isBlock)Y(L1),Y(k4(U.inSSR,I.isComponent));else Y(C4(U.inSSR,I.isComponent));if(I.isBlock=!G,I.isBlock)J(L1),J(k4(U.inSSR,I.isComponent));else J(C4(U.inSSR,I.isComponent))}if(W){let B=b4(aY(X.parseResult,[HD("_cached")]));B.body=ax([N6(["const _memo = (",W.exp,")"]),N6(["if (_cached && _cached.el",...z?[" && _cached.key === ",z]:[],` && ${U.helperString(iI)}(_cached, _memo)) return _cached`]),N6(["const _item = ",I]),HD("_item.memo = _memo"),HD("return _item")]),Q.arguments.push(B,HD("_cache"),HD(String(U.cached.length))),U.cached.push(null)}else Q.arguments.push(b4(aY(X.parseResult),I,!0))}})});function Cg(D,$,U,J){if(!$.exp){U.onError(xD(31,$.loc));return}let Y=$.forParseResult;if(!Y){U.onError(xD(32,$.loc));return}QB(Y,U);let{addIdentifiers:X,removeIdentifiers:Q,scopes:F}=U,{source:W,value:K,key:Z,index:z}=Y,q={type:11,loc:$.loc,source:W,valueAlias:K,keyAlias:Z,objectIndexAlias:z,parseResult:Y,children:y2(D)?D.children:[D]};if(U.replaceNode(q),F.vFor++,U.prefixIdentifiers)K&&X(K),Z&&X(Z),z&&X(z);let G=J&&J(q);return()=>{if(F.vFor--,U.prefixIdentifiers)K&&Q(K),Z&&Q(Z),z&&Q(z);if(G)G()}}function QB(D,$){if(D.finalized)return;if($.prefixIdentifiers){if(D.source=e0(D.source,$),D.key)D.key=e0(D.key,$,!0);if(D.index)D.index=e0(D.index,$,!0);if(D.value)D.value=e0(D.value,$,!0)}D.finalized=!0}function aY({value:D,key:$,index:U},J=[]){return yXD([D,$,U,...J])}function yXD(D){let $=D.length;while($--)if(D[$])break;return D.slice(0,$+1).map((U,J)=>U||HD("_".repeat(J+1),!1))}var yx=HD("undefined",!1),kg=(D,$)=>{if(D.type===1&&(D.tagType===1||D.tagType===3)){let U=s0(D,"slot");if(U){let J=U.exp;if($.prefixIdentifiers)J&&$.addIdentifiers(J);return $.scopes.vSlot++,()=>{if($.prefixIdentifiers)J&&$.removeIdentifiers(J);$.scopes.vSlot--}}}},ug=(D,$)=>{let U;if(y2(D)&&D.props.some(IX)&&(U=s0(D,"for"))){let J=U.forParseResult;if(J){QB(J,$);let{value:Y,key:X,index:Q}=J,{addIdentifiers:F,removeIdentifiers:W}=$;return Y&&F(Y),X&&F(X),Q&&F(Q),()=>{Y&&W(Y),X&&W(X),Q&&W(Q)}}}},hXD=(D,$,U,J)=>b4(D,U,!1,!0,U.length?U[0].loc:J);function _g(D,$,U=hXD){$.helper(zX);let{children:J,loc:Y}=D,X=[],Q=[],F=$.scopes.vSlot>0||$.scopes.vFor>0;if(!$.ssr&&$.prefixIdentifiers)F=D.props.some((H)=>IX(H)&&(x0(H.arg,$.identifiers)||x0(H.exp,$.identifiers)))||J.some((H)=>x0(H,$.identifiers));let W=s0(D,"slot",!0);if(W){let{arg:H,exp:w}=W;if(H&&!n6(H))F=!0;X.push(G0(H||HD("default",!0),U(w,void 0,J,Y)))}let K=!1,Z=!1,z=[],q=new Set,G=0;for(let H=0;H<J.length;H++){let w=J[H],j;if(!y2(w)||!(j=s0(w,"slot",!0))){if(w.type!==3)z.push(w);continue}if(W){$.onError(xD(37,j.loc));break}K=!0;let{children:B,loc:N}=w,{arg:A=HD("default",!0),exp:v,loc:k}=j,C;if(n6(A))C=A?A.content:"default";else F=!0;let b=s0(w,"for"),y=U(v,b,B,N),T,h;if(T=s0(w,"if"))F=!0,Q.push(nY(T.exp,fY(A,y,G++),yx));else if(h=s0(w,/^else(?:-if)?$/,!0)){let c=H,p;while(c--)if(p=J[c],!UB(p))break;if(p&&y2(p)&&s0(p,/^(?:else-)?if$/)){let a=Q[Q.length-1];while(a.alternate.type===19)a=a.alternate;a.alternate=h.exp?nY(h.exp,fY(A,y,G++),yx):fY(A,y,G++)}else $.onError(xD(30,h.loc))}else if(b){F=!0;let c=b.forParseResult;if(c)QB(c,$),Q.push(P0($.helper(QX),[c.source,b4(aY(c),fY(A,y),!0)]));else $.onError(xD(32,b.loc))}else{if(C){if(q.has(C)){$.onError(xD(38,k));continue}if(q.add(C),C==="default")Z=!0}X.push(G0(A,y))}}if(!W){let H=(w,j)=>{let B=U(w,void 0,j,Y);if($.compatConfig)B.isNonScopedSlot=!0;return G0("default",B)};if(!K)X.push(H(void 0,J));else if(z.length&&!z.every(BX))if(Z)$.onError(xD(39,z[0].loc));else X.push(H(void 0,z))}let V=F?2:dY(D.children)?3:1,I=L6(X.concat(G0("_",HD(V+` /* ${t.slotFlagsText[V]} */`,!1))),Y);if(Q.length)I=P0($.helper(dI),[I,j1(Q)]);return{slots:I,hasDynamicSlots:F}}function fY(D,$,U){let J=[G0("name",D),G0("fn",$)];if(U!=null)J.push(G0("key",HD(String(U),!0)));return L6(J)}function dY(D){for(let $=0;$<D.length;$++){let U=D[$];switch(U.type){case 1:if(U.tagType===2||dY(U.children))return!0;break;case 9:if(dY(U.branches))return!0;break;case 10:case 11:if(dY(U.children))return!0;break}}return!1}var xg=new WeakMap,gg=(D,$)=>{return function(){if(D=$.currentNode,!(D.type===1&&(D.tagType===0||D.tagType===1)))return;let{tag:J,props:Y}=D,X=D.tagType===1,Q=X?fg(D,$):`"${J}"`,F=t.isObject(Q)&&Q.callee===UX,W,K,Z=0,z,q,G,V=F||Q===u2||Q===sY||!X&&(J==="svg"||J==="foreignObject"||J==="math");if(Y.length>0){let I=FB(D,$,void 0,X,F);W=I.props,Z=I.patchFlag,q=I.dynamicPropNames;let H=I.directives;if(G=H&&H.length?j1(H.map((w)=>yg(w,$))):void 0,I.shouldUseBlock)V=!0}if(D.children.length>0){if(Q===q7){if(V=!0,Z|=1024,D.children.length>1)$.onError(xD(47,{start:D.children[0].loc.start,end:D.children[D.children.length-1].loc.end,source:""}))}if(X&&Q!==u2&&Q!==q7){let{slots:H,hasDynamicSlots:w}=_g(D,$);if(K=H,w)Z|=1024}else if(D.children.length===1&&Q!==u2){let H=D.children[0],w=H.type,j=w===5||w===8;if(j&&R6(H,$)===0)Z|=1;if(j||w===2)K=H;else K=D.children}else K=D.children}if(q&&q.length)z=lXD(q);D.codegenNode=g2($,Q,W,K,Z===0?void 0:Z,z,G,!!V,!1,X,D.loc)}};function fg(D,$,U=!1){let{tag:J}=D,Y=fI(J),X=O7(D,"is",!1,!0);if(X){if(Y||N1("COMPILER_IS_ON_ELEMENT",$)){let F;if(X.type===6)F=X.value&&HD(X.value.content,!0);else if(F=X.exp,!F)F=HD("is",!1,X.arg.loc),F=X.exp=e0(F,$);if(F)return P0($.helper(UX),[F])}else if(X.type===6&&X.value.content.startsWith("vue:"))J=X.value.content.slice(4)}let Q=aI(J)||$.isBuiltInComponent(J);if(Q){if(!U)$.helper(Q);return Q}{let F=gI(J,$);if(F)return F;let W=J.indexOf(".");if(W>0){let K=gI(J.slice(0,W),$);if(K)return K+J.slice(W)}}if($.selfName&&t.capitalize(t.camelize(J))===$.selfName)return $.helper(G7),$.components.add(J+"__self"),u4(J,"component");return $.helper(G7),$.components.add(J),u4(J,"component")}function gI(D,$){let U=$.bindingMetadata;if(!U||U.__isScriptSetup===!1)return;let J=t.camelize(D),Y=t.capitalize(J),X=(K)=>{if(U[D]===K)return D;if(U[J]===K)return J;if(U[Y]===K)return Y},Q=X("setup-const")||X("setup-reactive-const")||X("literal-const");if(Q)return $.inline?Q:`$setup[${JSON.stringify(Q)}]`;let F=X("setup-let")||X("setup-ref")||X("setup-maybe-ref");if(F)return $.inline?`${$.helperString(I7)}(${F})`:`$setup[${JSON.stringify(F)}]`;let W=X("props");if(W)return`${$.helperString(I7)}(${$.inline?"__props":"$props"}[${JSON.stringify(W)}])`}function FB(D,$,U=D.props,J,Y,X=!1){let{tag:Q,loc:F,children:W}=D,K=[],Z=[],z=[],q=W.length>0,G=!1,V=0,I=!1,H=!1,w=!1,j=!1,B=!1,N=!1,A=[],v=(y)=>{if(K.length)Z.push(L6(hx(K),F)),K=[];if(y)Z.push(y)},k=()=>{if($.scopes.vFor>0)K.push(G0(HD("ref_for",!0),HD("true")))},C=({key:y,value:T})=>{if(n6(y)){let h=y.content,c=t.isOn(h);if(c&&(!J||Y)&&h.toLowerCase()!=="onclick"&&h!=="onUpdate:modelValue"&&!t.isReservedProp(h))j=!0;if(c&&t.isReservedProp(h))N=!0;if(c&&T.type===14)T=T.arguments[0];if(T.type===20||(T.type===4||T.type===8)&&R6(T,$)>0)return;if(h==="ref")I=!0;else if(h==="class")H=!0;else if(h==="style")w=!0;else if(h!=="key"&&!A.includes(h))A.push(h);if(J&&(h==="class"||h==="style")&&!A.includes(h))A.push(h)}else B=!0};for(let y=0;y<U.length;y++){let T=U[y];if(T.type===6){let{loc:h,name:c,nameLoc:p,value:a}=T,R=!0;if(c==="ref"){if(I=!0,k(),a&&$.inline){let O=$.bindingMetadata[a.content];if(O==="setup-let"||O==="setup-ref"||O==="setup-maybe-ref")R=!1,K.push(G0(HD("ref_key",!0),HD(a.content,!0,a.loc)))}}if(c==="is"&&(fI(Q)||a&&a.content.startsWith("vue:")||N1("COMPILER_IS_ON_ELEMENT",$)))continue;K.push(G0(HD(c,!0,p),HD(a?a.content:"",R,a?a.loc:h)))}else{let{name:h,arg:c,exp:p,loc:a,modifiers:R}=T,O=h==="bind",L=h==="on";if(h==="slot"){if(!J)$.onError(xD(40,a));continue}if(h==="once"||h==="memo")continue;if(h==="is"||O&&O1(c,"is")&&(fI(Q)||N1("COMPILER_IS_ON_ELEMENT",$)))continue;if(L&&X)continue;if(O&&O1(c,"key")||L&&q&&O1(c,"vue:before-update"))G=!0;if(O&&O1(c,"ref"))k();if(!c&&(O||L)){if(B=!0,p)if(O){{if(v(),Z.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"&&!t.isOn(s.content)});else return!0}))f2("COMPILER_V_BIND_OBJECT_ORDER",$,a);if(N1("COMPILER_V_BIND_OBJECT_ORDER",$)){Z.unshift(p);continue}}k(),v(),Z.push(p)}else v({type:14,loc:a,callee:$.helper(ZX),arguments:J?[p]:[p,"true"]});else $.onError(xD(O?34:35,a));continue}if(O&&R.some((f)=>f.content==="prop"))V|=32;let E=$.directiveTransforms[h];if(E){let{props:f,needRuntime:x}=E(T,D,$);if(!X&&f.forEach(C),L&&c&&!n6(c))v(L6(f,F));else K.push(...f);if(x){if(z.push(T),t.isSymbol(x))xg.set(T,x)}}else if(!t.isBuiltInDirective(h)){if(z.push(T),q)G=!0}}}let b=void 0;if(Z.length)if(v(),Z.length>1)b=P0($.helper(V7),Z,F);else b=Z[0];else if(K.length)b=L6(hx(K),F);if(B)V|=16;else{if(H&&!J)V|=2;if(w&&!J)V|=4;if(A.length)V|=8;if(j)V|=32}if(!G&&(V===0||V===32)&&(I||N||z.length>0))V|=512;if(!$.inSSR&&b)switch(b.type){case 15:let y=-1,T=-1,h=!1;for(let a=0;a<b.properties.length;a++){let R=b.properties[a].key;if(n6(R)){if(R.content==="class")y=a;else if(R.content==="style")T=a}else if(!R.isHandlerKey)h=!0}let c=b.properties[y],p=b.properties[T];if(!h){if(c&&!n6(c.value))c.value=P0($.helper(WX),[c.value]);if(p&&(w||p.value.type===4&&p.value.content.trim()[0]==="["||p.value.type===17))p.value=P0($.helper(KX),[p.value])}else b=P0($.helper(x2),[b]);break;case 14:break;default:b=P0($.helper(x2),[P0($.helper(m2),[b])]);break}return{props:b,directives:z,patchFlag:V,dynamicPropNames:A,shouldUseBlock:G}}function hx(D){let $=new Map,U=[];for(let J=0;J<D.length;J++){let Y=D[J];if(Y.key.type===8||!Y.key.isStatic){U.push(Y);continue}let X=Y.key.content,Q=$.get(X);if(Q){if(X==="style"||X==="class"||t.isOn(X))mXD(Q,Y)}else $.set(X,Y),U.push(Y)}return U}function mXD(D,$){if(D.value.type===17)D.value.elements.push($.value);else D.value=j1([D.value,$.value],D.loc)}function yg(D,$){let U=[],J=xg.get(D);if(J)U.push($.helperString(J));else{let X=gI("v-"+D.name,$);if(X)U.push(X);else $.helper(JX),$.directives.add(D.name),U.push(u4(D.name,"directive"))}let{loc:Y}=D;if(D.exp)U.push(D.exp);if(D.arg){if(!D.exp)U.push("void 0");U.push(D.arg)}if(Object.keys(D.modifiers).length){if(!D.arg){if(!D.exp)U.push("void 0");U.push("void 0")}let X=HD("true",!1,Y);U.push(L6(D.modifiers.map((Q)=>G0(Q,X)),Y))}return j1(U,D.loc)}function lXD(D){let $="[";for(let U=0,J=D.length;U<J;U++)if($+=JSON.stringify(D[U]),U<J-1)$+=", ";return $+"]"}function fI(D){return D==="component"||D==="Component"}var cXD=(D,$)=>{if(j7(D)){let{children:U,loc:J}=D,{slotName:Y,slotProps:X}=hg(D,$),Q=[$.prefixIdentifiers?"_ctx.$slots":"$slots",Y,"{}","undefined","true"],F=2;if(X)Q[2]=X,F=3;if(U.length)Q[3]=b4([],U,!1,!1,J),F=4;if($.scopeId&&!$.slotted)F=5;Q.splice(F),D.codegenNode=P0($.helper(cI),Q,J)}};function hg(D,$){let U='"default"',J=void 0,Y=[];for(let X=0;X<D.props.length;X++){let Q=D.props[X];if(Q.type===6){if(Q.value)if(Q.name==="name")U=JSON.stringify(Q.value.content);else Q.name=t.camelize(Q.name),Y.push(Q)}else if(Q.name==="bind"&&O1(Q.arg,"name")){if(Q.exp)U=Q.exp;else if(Q.arg&&Q.arg.type===4){let F=t.camelize(Q.arg.content);U=Q.exp=HD(F,!1,Q.arg.loc),U=Q.exp=e0(Q.exp,$)}}else{if(Q.name==="bind"&&Q.arg&&n6(Q.arg))Q.arg.content=t.camelize(Q.arg.content);Y.push(Q)}}if(Y.length>0){let{props:X,directives:Q}=FB(D,$,Y,!1,!1);if(J=X,Q.length)$.onError(xD(36,Q[0].loc))}return{slotName:U,slotProps:J}}var mg=(D,$,U,J)=>{let{loc:Y,modifiers:X,arg:Q}=D;if(!D.exp&&!X.length)U.onError(xD(35,Y));let F;if(Q.type===4)if(Q.isStatic){let z=Q.content;if(z.startsWith("vnode"))U.onError(xD(52,Q.loc));if(z.startsWith("vue:"))z=`vnode-${z.slice(4)}`;let q=$.tagType!==0||z.startsWith("vnode")||!/[A-Z]/.test(z)?t.toHandlerKey(t.camelize(z)):`on:${z}`;F=HD(q,!0,Q.loc)}else F=N6([`${U.helperString(pY)}(`,Q,")"]);else F=Q,F.children.unshift(`${U.helperString(pY)}(`),F.children.push(")");let W=D.exp;if(W&&!W.content.trim())W=void 0;let K=U.cacheHandlers&&!W&&!U.inVOnce;if(W){let z=sI(W,U),q=!(z||zg(W,U)),G=W.content.includes(";");if(U.prefixIdentifiers){if(q&&U.addIdentifiers("$event"),W=D.exp=e0(W,U,!1,G),q&&U.removeIdentifiers("$event"),K=U.cacheHandlers&&!U.inVOnce&&!(W.type===4&&W.constType>0)&&!(z&&$.tagType===1)&&!x0(W,U.identifiers),K&&z)if(W.type===4)W.content=`${W.content} && ${W.content}(...args)`;else W.children=[...W.children," && ",...W.children,"(...args)"]}if(q||K&&z)W=N6([`${q?U.isTS?"($event: any)":"$event":`${U.isTS?`
//@ts-ignore
`:""}(...args)`} => ${G?"{":"("}`,W,G?"}":")"])}let Z={props:[G0(F,W||HD("() => {}",!1,Y))]};if(J)Z=J(Z);if(K)Z.props[0].value=U.cache(Z.props[0].value);return Z.props.forEach((z)=>z.key.isHandlerKey=!0),Z},lg=(D,$,U)=>{let{modifiers:J,loc:Y}=D,X=D.arg,{exp:Q}=D;if(Q&&Q.type===4&&!Q.content.trim())return U.onError(xD(34,Y)),{props:[G0(X,HD("",!0,Y))]};if(X.type!==4)X.children.unshift("("),X.children.push(') || ""');else if(!X.isStatic)X.content=X.content?`${X.content} || ""`:'""';if(J.some((F)=>F.content==="camel"))if(X.type===4)if(X.isStatic)X.content=t.camelize(X.content);else X.content=`${U.helperString(iY)}(${X.content})`;else X.children.unshift(`${U.helperString(iY)}(`),X.children.push(")");if(!U.inSSR){if(J.some((F)=>F.content==="prop"))mx(X,".");if(J.some((F)=>F.content==="attr"))mx(X,"^")}return{props:[G0(X,Q)]}},mx=(D,$)=>{if(D.type===4)if(D.isStatic)D.content=$+D.content;else D.content=`\`${$}\${${D.content}}\``;else D.children.unshift(`'${$}' + (`),D.children.push(")")},dXD=(D,$)=>{if(D.type===0||D.type===1||D.type===11||D.type===10)return()=>{let U=D.children,J=void 0,Y=!1;for(let X=0;X<U.length;X++){let Q=U[X];if(yY(Q)){Y=!0;for(let F=X+1;F<U.length;F++){let W=U[F];if(yY(W)){if(!J)J=U[X]=N6([Q],Q.loc);J.children.push(" + ",W),U.splice(F,1),F--}else{J=void 0;break}}}}if(!Y||U.length===1&&(D.type===0||D.type===1&&D.tagType===0&&!D.props.find((X)=>X.type===7&&!$.directiveTransforms[X.name])&&D.tag!=="template"))return;for(let X=0;X<U.length;X++){let Q=U[X];if(yY(Q)||Q.type===8){let F=[];if(Q.type!==2||Q.content!==" ")F.push(Q);if(!$.ssr&&R6(Q,$)===0)F.push(`1 /* ${t.PatchFlagNames[1]} */`);U[X]={type:12,content:Q,loc:Q.loc,codegenNode:P0($.helper($X),F)}}}}},lx=new WeakSet,iXD=(D,$)=>{if(D.type===1&&s0(D,"once",!0)){if(lx.has(D)||$.inVOnce||$.inSSR)return;return lx.add(D),$.inVOnce=!0,$.helper(H7),()=>{$.inVOnce=!1;let U=$.currentNode;if(U.codegenNode)U.codegenNode=$.cache(U.codegenNode,!0,!0)}}},cg=(D,$,U)=>{let{exp:J,arg:Y}=D;if(!J)return U.onError(xD(41,D.loc)),b2();let X=J.loc.source.trim(),Q=J.type===4?J.content:X,F=U.bindingMetadata[X];if(F==="props"||F==="props-aliased")return U.onError(xD(44,J.loc)),b2();if(F==="literal-const"||F==="setup-const")return U.onError(xD(45,J.loc)),b2();let W=U.inline&&(F==="setup-let"||F==="setup-ref"||F==="setup-maybe-ref");if(!Q.trim()||!sI(J,U)&&!W)return U.onError(xD(42,J.loc)),b2();if(U.prefixIdentifiers&&k$(Q)&&U.identifiers[Q])return U.onError(xD(43,J.loc)),b2();let K=Y?Y:HD("modelValue",!0),Z=Y?n6(Y)?`onUpdate:${t.camelize(Y.content)}`:N6(['"onUpdate:" + ',Y]):"onUpdate:modelValue",z,q=U.isTS?"($event: any)":"$event";if(W)if(F==="setup-ref")z=N6([`${q} => ((`,HD(X,!1,J.loc),").value = $event)"]);else{let V=F==="setup-let"?`${X} = $event`:"null";z=N6([`${q} => (${U.helperString(B7)}(${X}) ? (`,HD(X,!1,J.loc),`).value = $event : ${V})`])}else z=N6([`${q} => ((`,J,") = $event)"]);let G=[G0(K,D.exp),G0(Z,z)];if(U.prefixIdentifiers&&!U.inVOnce&&U.cacheHandlers&&!x0(J,U.identifiers))G[1].value=U.cache(G[1].value);if(D.modifiers.length&&$.tagType===1){let V=D.modifiers.map((H)=>H.content).map((H)=>(k$(H)?H:JSON.stringify(H))+": true").join(", "),I=Y?n6(Y)?`${Y.content}Modifiers`:N6([Y,' + "Modifiers"']):"modelModifiers";G.push(G0(I,HD(`{ ${V} }`,!1,D.loc,2)))}return b2(G)};function b2(D=[]){return{props:D}}var pXD=/[\w).+\-_$\]]/,nXD=(D,$)=>{if(!N1("COMPILER_FILTERS",$))return;if(D.type===5)tY(D.content,$);else if(D.type===1)D.props.forEach((U)=>{if(U.type===7&&U.name!=="for"&&U.exp)tY(U.exp,$)})};function tY(D,$){if(D.type===4)cx(D,$);else for(let U=0;U<D.children.length;U++){let J=D.children[U];if(typeof J!=="object")continue;if(J.type===4)cx(J,$);else if(J.type===8)tY(J,$);else if(J.type===5)tY(J.content,$)}}function cx(D,$){let U=D.content,J=!1,Y=!1,X=!1,Q=!1,F=0,W=0,K=0,Z=0,z,q,G,V,I=[];for(G=0;G<U.length;G++)if(q=z,z=U.charCodeAt(G),J){if(z===39&&q!==92)J=!1}else if(Y){if(z===34&&q!==92)Y=!1}else if(X){if(z===96&&q!==92)X=!1}else if(Q){if(z===47&&q!==92)Q=!1}else if(z===124&&U.charCodeAt(G+1)!==124&&U.charCodeAt(G-1)!==124&&!F&&!W&&!K)if(V===void 0)Z=G+1,V=U.slice(0,G).trim();else H();else{switch(z){case 34:Y=!0;break;case 39:J=!0;break;case 96:X=!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(z===47){let w=G-1,j;for(;w>=0;w--)if(j=U.charAt(w),j!==" ")break;if(!j||!pXD.test(j))Q=!0}}if(V===void 0)V=U.slice(0,G).trim();else if(Z!==0)H();function H(){I.push(U.slice(Z,G).trim()),Z=G+1}if(I.length){w7("COMPILER_FILTERS",$,D.loc);for(G=0;G<I.length;G++)V=rXD(V,I[G],$);D.content=V,D.ast=void 0}}function rXD(D,$,U){U.helper(YX);let J=$.indexOf("(");if(J<0)return U.filters.add($),`${u4($,"filter")}(${D})`;else{let Y=$.slice(0,J),X=$.slice(J+1);return U.filters.add(Y),`${u4(Y,"filter")}(${D}${X!==")"?","+X:X}`}}var dx=new WeakSet,oXD=(D,$)=>{if(D.type===1){let U=s0(D,"memo");if(!U||dx.has(D)||$.inSSR)return;return dx.add(D),()=>{let J=D.codegenNode||$.currentNode.codegenNode;if(J&&J.type===13){if(D.tagType!==1)GX(J,$);D.codegenNode=P0($.helper(qX),[U.exp,b4(void 0,J),"_cache",String($.cached.length)]),$.cached.push(null)}}}},dg=(D,$)=>{if(D.type===1){for(let U of D.props)if(U.type===7&&U.name==="bind"&&(!U.exp||!1)&&U.arg){let J=U.arg;if(J.type!==4||!J.isStatic)$.onError(xD(53,J.loc)),U.exp=HD("",!0,J.loc);else{let Y=t.camelize(J.content);if(tI.test(Y[0])||Y[0]==="-")U.exp=HD(Y,!1,J.loc)}}}};function ig(D){return[[dg,iXD,_XD,oXD,fXD,nXD,...D?[ug,Sg]:[],cXD,gg,kg,dXD],{on:mg,bind:lg,model:cg}]}function aXD(D,$={}){let U=$.onError||pI,J=$.mode==="module",Y=$.prefixIdentifiers===!0||J;if(!Y&&$.cacheHandlers)U(xD(50));if($.scopeId&&!J)U(xD(51));let X=t.extend({},$,{prefixIdentifiers:Y}),Q=t.isString(D)?wg(D,X):D,[F,W]=ig(Y);if($.isTS){let{expressionPlugins:K}=$;if(!K||!K.includes("typescript"))$.expressionPlugins=[...K||[],"typescript"]}return Mg(Q,t.extend({},X,{nodeTransforms:[...F,...$.nodeTransforms||[]],directiveTransforms:t.extend({},W,$.directiveTransforms||{})})),Ag(Q,X)}var tXD={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"},sXD=()=>({props:[]});pg.generateCodeFrame=t.generateCodeFrame;pg.BASE_TRANSITION=yI;pg.BindingTypes=tXD;pg.CAMELIZE=iY;pg.CAPITALIZE=ix;pg.CREATE_BLOCK=hI;pg.CREATE_COMMENT=h2;pg.CREATE_ELEMENT_BLOCK=mI;pg.CREATE_ELEMENT_VNODE=DX;pg.CREATE_SLOTS=dI;pg.CREATE_STATIC=lI;pg.CREATE_TEXT=$X;pg.CREATE_VNODE=eY;pg.CompilerDeprecationTypes=yYD;pg.ConstantTypes=CYD;pg.ElementTypes=bYD;pg.ErrorCodes=mYD;pg.FRAGMENT=_2;pg.GUARD_REACTIVE_PROPS=m2;pg.IS_MEMO_SAME=iI;pg.IS_REF=B7;pg.KEEP_ALIVE=q7;pg.MERGE_PROPS=V7;pg.NORMALIZE_CLASS=WX;pg.NORMALIZE_PROPS=x2;pg.NORMALIZE_STYLE=KX;pg.Namespaces=PYD;pg.NodeTypes=SYD;pg.OPEN_BLOCK=L1;pg.POP_SCOPE_ID=nx;pg.PUSH_SCOPE_ID=px;pg.RENDER_LIST=QX;pg.RENDER_SLOT=cI;pg.RESOLVE_COMPONENT=G7;pg.RESOLVE_DIRECTIVE=JX;pg.RESOLVE_DYNAMIC_COMPONENT=UX;pg.RESOLVE_FILTER=YX;pg.SET_BLOCK_TRACKING=H7;pg.SUSPENSE=sY;pg.TELEPORT=u2;pg.TO_DISPLAY_STRING=FX;pg.TO_HANDLERS=ZX;pg.TO_HANDLER_KEY=pY;pg.TS_NODE_TYPES=oI;pg.UNREF=I7;pg.WITH_CTX=zX;pg.WITH_DIRECTIVES=XX;pg.WITH_MEMO=qX;pg.advancePositionWithClone=bI;pg.advancePositionWithMutation=eI;pg.assert=CI;pg.baseCompile=aXD;pg.baseParse=wg;pg.buildDirectiveArgs=yg;pg.buildProps=FB;pg.buildSlots=_g;pg.checkCompatEnabled=f2;pg.convertToBlock=GX;pg.createArrayExpression=j1;pg.createAssignmentExpression=xYD;pg.createBlockStatement=ax;pg.createCacheExpression=ox;pg.createCallExpression=P0;pg.createCompilerError=xD;pg.createCompoundExpression=N6;pg.createConditionalExpression=nY;pg.createForLoopParams=aY;pg.createFunctionExpression=b4;pg.createIfStatement=_YD;pg.createInterpolation=kYD;pg.createObjectExpression=L6;pg.createObjectProperty=G0;pg.createReturnStatement=fYD;pg.createRoot=rx;pg.createSequenceExpression=gYD;pg.createSimpleExpression=HD;pg.createStructuralDirectiveTransform=YB;pg.createTemplateLiteral=uYD;pg.createTransformContext=Rg;pg.createVNodeCall=g2;pg.errorMessages=ex;pg.extractIdentifiers=p6;pg.findDir=s0;pg.findProp=O7;pg.forAliasRE=Gg;pg.generate=Ag;pg.getBaseTransformPreset=ig;pg.getConstantType=R6;pg.getMemoedVNodeCall=qg;pg.getVNodeBlockHelper=k4;pg.getVNodeHelper=C4;pg.hasDynamicKeyVBind=oYD;pg.hasScopeRef=x0;pg.helperNameMap=W6;pg.injectProp=N7;pg.isAllWhitespace=$B;pg.isCommentOrWhitespace=UB;pg.isCoreComponent=aI;pg.isFnExpression=zg;pg.isFnExpressionBrowser=rYD;pg.isFnExpressionNode=Zg;pg.isFunctionType=Fg;pg.isInDestructureAssignment=oY;pg.isInNewExpression=Ug;pg.isMemberExpression=sI;pg.isMemberExpressionBrowser=pYD;pg.isMemberExpressionNode=Kg;pg.isReferencedIdentifier=$g;pg.isSimpleIdentifier=k$;pg.isSlotOutlet=j7;pg.isStaticArgOf=O1;pg.isStaticExp=n6;pg.isStaticProperty=rI;pg.isStaticPropertyKey=Wg;pg.isTemplateNode=y2;pg.isText=yY;pg.isVPre=kI;pg.isVSlot=IX;pg.isWhitespaceText=BX;pg.locStub=V0;pg.noopDirectiveTransform=sXD;pg.processExpression=e0;pg.processFor=Cg;pg.processIf=bg;pg.processSlotOutlet=hg;pg.registerRuntimeHelpers=TYD;pg.resolveComponentType=fg;pg.stringifyExpression=XB;pg.toValidAssetId=u4;pg.trackSlotScopes=kg;pg.trackVForSlotScopes=ug;pg.transform=Mg;pg.transformBind=lg;pg.transformElement=gg;pg.transformExpression=Sg;pg.transformModel=cg;pg.transformOn=mg;pg.transformVBindShorthand=dg;pg.traverseNode=R7;pg.unwrapTSNode=VX;pg.validFirstIdentCharRE=tI;pg.walkBlockDeclarations=nI;pg.walkFunctionParams=Jg;pg.walkIdentifiers=Dg;pg.warnDeprecation=w7});var Qf=S((NX)=>{Object.defineProperty(NX,"__esModule",{value:!0});var wD=ng(),AD=fH(),WB=Symbol("vModelRadio"),KB=Symbol("vModelCheckbox"),ZB=Symbol("vModelText"),zB=Symbol("vModelSelect"),jX=Symbol("vModelDynamic"),qB=Symbol("vOnModifiersGuard"),GB=Symbol("vOnKeysGuard"),VB=Symbol("vShow"),LX=Symbol("Transition"),HB=Symbol("TransitionGroup");wD.registerRuntimeHelpers({[WB]:"vModelRadio",[KB]:"vModelCheckbox",[ZB]:"vModelText",[zB]:"vModelSelect",[jX]:"vModelDynamic",[qB]:"withModifiers",[GB]:"withKeys",[VB]:"vShow",[LX]:"Transition",[HB]:"TransitionGroup"});var IB={parseMode:"html",isVoidTag:AD.isVoidTag,isNativeTag:(D)=>AD.isHTMLTag(D)||AD.isSVGTag(D)||AD.isMathMLTag(D),isPreTag:(D)=>D==="pre",isIgnoreNewlineTag:(D)=>D==="pre"||D==="textarea",decodeEntities:void 0,isBuiltInComponent:(D)=>{if(D==="Transition"||D==="transition")return LX;else if(D==="TransitionGroup"||D==="transition-group")return HB},getNamespace(D,$,U){let J=$?$.ns:U;if($&&J===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")))J=0}else if(/^m(?:[ions]|text)$/.test($.tag)&&D!=="mglyph"&&D!=="malignmark")J=0}else if($&&J===1){if($.tag==="foreignObject"||$.tag==="desc"||$.tag==="title")J=0}if(J===0){if(D==="svg")return 1;if(D==="math")return 2}return J}},Df=(D)=>{if(D.type===1)D.props.forEach(($,U)=>{if($.type===6&&$.name==="style"&&$.value)D.props[U]={type:7,name:"bind",arg:wD.createSimpleExpression("style",!0,$.loc),exp:xWD($.value.content,$.loc),modifiers:[],loc:$.loc}})},xWD=(D,$)=>{let U=AD.parseStringStyle(D);return wD.createSimpleExpression(JSON.stringify(U),!1,$,3)};function k6(D,$){return wD.createCompilerError(D,$,$f)}var gWD={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__"},$f={[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."},fWD=(D,$,U)=>{let{exp:J,loc:Y}=D;if(!J)U.onError(k6(54,Y));if($.children.length)U.onError(k6(55,Y)),$.children.length=0;return{props:[wD.createObjectProperty(wD.createSimpleExpression("innerHTML",!0,Y),J||wD.createSimpleExpression("",!0))]}},yWD=(D,$,U)=>{let{exp:J,loc:Y}=D;if(!J)U.onError(k6(56,Y));if($.children.length)U.onError(k6(57,Y)),$.children.length=0;return{props:[wD.createObjectProperty(wD.createSimpleExpression("textContent",!0),J?wD.getConstantType(J,U)>0?J:wD.createCallExpression(U.helperString(wD.TO_DISPLAY_STRING),[J],Y):wD.createSimpleExpression("",!0))]}},hWD=(D,$,U)=>{let J=wD.transformModel(D,$,U);if(!J.props.length||$.tagType===1)return J;if(D.arg)U.onError(k6(59,D.arg.loc));function Y(){let F=wD.findDir($,"bind");if(F&&wD.isStaticArgOf(F.arg,"value"))U.onError(k6(61,F.loc))}let{tag:X}=$,Q=U.isCustomElement(X);if(X==="input"||X==="textarea"||X==="select"||Q){let F=ZB,W=!1;if(X==="input"||Q){let K=wD.findProp($,"type");if(K){if(K.type===7)F=jX;else if(K.value)switch(K.value.content){case"radio":F=WB;break;case"checkbox":F=KB;break;case"file":W=!0,U.onError(k6(60,D.loc));break;default:Y();break}}else if(wD.hasDynamicKeyVBind($))F=jX;else Y()}else if(X==="select")F=zB;else Y();if(!W)J.needRuntime=U.helper(F)}else U.onError(k6(58,D.loc));return J.props=J.props.filter((F)=>!(F.key.type===4&&F.key.content==="modelValue")),J},mWD=AD.makeMap("passive,once,capture"),lWD=AD.makeMap("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),cWD=AD.makeMap("left,right"),Uf=AD.makeMap("onkeyup,onkeydown,onkeypress"),dWD=(D,$,U,J)=>{let Y=[],X=[],Q=[];for(let F=0;F<$.length;F++){let W=$[F].content;if(W==="native"&&wD.checkCompatEnabled("COMPILER_V_ON_NATIVE",U,J))Q.push(W);else if(mWD(W))Q.push(W);else if(cWD(W))if(wD.isStaticExp(D))if(Uf(D.content.toLowerCase()))Y.push(W);else X.push(W);else Y.push(W),X.push(W);else if(lWD(W))X.push(W);else Y.push(W)}return{keyModifiers:Y,nonKeyModifiers:X,eventOptionModifiers:Q}},rg=(D,$)=>{return wD.isStaticExp(D)&&D.content.toLowerCase()==="onclick"?wD.createSimpleExpression($,!0):D.type!==4?wD.createCompoundExpression(["(",D,`) === "onClick" ? "${$}" : (`,D,")"]):D},iWD=(D,$,U)=>{return wD.transformOn(D,$,U,(J)=>{let{modifiers:Y}=D;if(!Y.length)return J;let{key:X,value:Q}=J.props[0],{keyModifiers:F,nonKeyModifiers:W,eventOptionModifiers:K}=dWD(X,Y,U,D.loc);if(W.includes("right"))X=rg(X,"onContextmenu");if(W.includes("middle"))X=rg(X,"onMouseup");if(W.length)Q=wD.createCallExpression(U.helper(qB),[Q,JSON.stringify(W)]);if(F.length&&(!wD.isStaticExp(X)||Uf(X.content.toLowerCase())))Q=wD.createCallExpression(U.helper(GB),[Q,JSON.stringify(F)]);if(K.length){let Z=K.map(AD.capitalize).join("");X=wD.isStaticExp(X)?wD.createSimpleExpression(`${X.content}${Z}`,!0):wD.createCompoundExpression(["(",X,`) + "${Z}"`])}return{props:[wD.createObjectProperty(X,Q)]}})},pWD=(D,$,U)=>{let{exp:J,loc:Y}=D;if(!J)U.onError(k6(62,Y));return{props:[],needRuntime:U.helper(VB)}},nWD=(D,$)=>{if(D.type===1&&D.tagType===1){if($.isBuiltInComponent(D.tag)===LX)return()=>{if(!D.children.length)return;if(Jf(D))$.onError(k6(63,{start:D.children[0].loc.start,end:D.children[D.children.length-1].loc.end,source:""}));let J=D.children[0];if(J.type===1){for(let Y of J.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 Jf(D){let $=D.children=D.children.filter((J)=>!wD.isCommentOrWhitespace(J)),U=$[0];return $.length!==1||U.type===11||U.type===9&&U.branches.some(Jf)}var rWD=/__VUE_EXP_START__(.*?)__VUE_EXP_END__/g,oWD=(D,$,U)=>{if($.scopes.vSlot>0)return;let J=U.type===1&&U.codegenNode&&U.codegenNode.type===13&&U.codegenNode.children&&!AD.isArray(U.codegenNode.children)&&U.codegenNode.children.type===20,Y=0,X=0,Q=[],F=(K)=>{if(Y>=20||X>=5){let Z=wD.createCallExpression($.helper(wD.CREATE_STATIC),[JSON.stringify(Q.map((q)=>BB(q,$)).join("")).replace(rWD,'" + $1 + "'),String(Q.length)]),z=Q.length-1;if(J)D.splice(K-Q.length,Q.length,Z);else if(Q[0].codegenNode.value=Z,Q.length>1){D.splice(K-Q.length+1,z);let q=$.cached.indexOf(Q[Q.length-1].codegenNode);if(q>-1){for(let G=q;G<$.cached.length;G++){let V=$.cached[G];if(V)V.index-=z}$.cached.splice(q-z+1,z)}}return z}return 0},W=0;for(;W<D.length;W++){let K=D[W];if(J||aWD(K)){let z=eWD(K);if(z){Y+=z[0],X+=z[1],Q.push(K);continue}}W-=F(W),Y=0,X=0,Q.length=0}F(W)},aWD=(D)=>{if((D.type===1&&D.tagType===0||D.type===12)&&D.codegenNode&&D.codegenNode.type===20)return D.codegenNode},tWD=/^(?:data|aria)-/,og=(D,$)=>{return($===0?AD.isKnownHtmlAttr(D):$===1?AD.isKnownSvgAttr(D):$===2?AD.isKnownMathMLAttr(D):!1)||tWD.test(D)},sWD=AD.makeMap("caption,thead,tr,th,tbody,td,tfoot,colgroup,col");function eWD(D){if(D.type===1&&sWD(D.tag))return!1;if(D.type===1&&wD.findDir(D,"once",!0))return!1;if(D.type===12)return[1,0];let $=1,U=D.props.length>0?1:0,J=!1,Y=()=>{return J=!0,!1};function X(Q){let F=Q.tag==="option"&&Q.ns===0;for(let W=0;W<Q.props.length;W++){let K=Q.props[W];if(K.type===6&&!og(K.name,Q.ns))return Y();if(K.type===7&&K.name==="bind"){if(K.arg&&(K.arg.type===8||K.arg.isStatic&&!og(K.arg.content,Q.ns)))return Y();if(K.exp&&(K.exp.type===8||K.exp.constType<3))return Y();if(F&&wD.isStaticArgOf(K.arg,"value")&&K.exp&&!K.exp.isStatic)return Y()}}for(let W=0;W<Q.children.length;W++){$++;let K=Q.children[W];if(K.type===1){if(K.props.length>0)U++;if(X(K),J)return!1}}return!0}return X(D)?[$,U]:!1}function BB(D,$){if(AD.isString(D))return D;if(AD.isSymbol(D))return"";switch(D.type){case 1:return DKD(D,$);case 2:return AD.escapeHtml(D.content);case 3:return`<!--${AD.escapeHtml(D.content)}-->`;case 5:return AD.escapeHtml(AD.toDisplayString(x4(D.content)));case 8:return AD.escapeHtml(x4(D));case 12:return BB(D.content,$);default:return""}}function DKD(D,$){let U=`<${D.tag}`,J="";for(let Y=0;Y<D.props.length;Y++){let X=D.props[Y];if(X.type===6){if(U+=` ${X.name}`,X.value)U+=`="${AD.escapeHtml(X.value.content)}"`}else if(X.type===7){if(X.name==="bind"){let Q=X.exp;if(Q.content[0]==="_"){U+=` ${X.arg.content}="__VUE_EXP_START__${Q.content}__VUE_EXP_END__"`;continue}if(AD.isBooleanAttr(X.arg.content)&&Q.content==="false")continue;let F=x4(Q);if(F!=null){let W=X.arg&&X.arg.content;if(W==="class")F=AD.normalizeClass(F);else if(W==="style")F=AD.stringifyStyle(AD.normalizeStyle(F));U+=` ${X.arg.content}="${AD.escapeHtml(F)}"`}}else if(X.name==="html")J=x4(X.exp);else if(X.name==="text")J=AD.escapeHtml(AD.toDisplayString(x4(X.exp)))}}if($.scopeId)U+=` ${$.scopeId}`;if(U+=">",J)U+=J;else for(let Y=0;Y<D.children.length;Y++)U+=BB(D.children[Y],$);if(!AD.isVoidTag(D.tag))U+=`</${D.tag}>`;return U}function x4(D){if(D.type===4)return Function(`return (${D.content})`)();else{let $="";return D.children.forEach((U)=>{if(AD.isString(U)||AD.isSymbol(U))return;if(U.type===2)$+=U.content;else if(U.type===5)$+=AD.toDisplayString(x4(U.content));else $+=x4(U)}),$}}var $KD=(D,$)=>{if(D.type===1&&D.tagType===0&&(D.tag==="script"||D.tag==="style"))$.onError(k6(64,D.loc)),$.removeNode()};function UKD(D,$){if(D==="template")return!0;if(D in ag)return ag[D].has($);if($ in tg)return tg[$].has(D);if(D in sg){if(sg[D].has($))return!1}if($ in eg){if(eg[$].has(D))return!1}return!0}var c2=new Set(["h1","h2","h3","h4","h5","h6"]),_4=new Set([]),ag={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:_4,iframe:_4,option:_4,textarea:_4,style:_4,title:_4},tg={html:_4,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"])},sg={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"])},eg={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:c2,h2:c2,h3:c2,h4:c2,h5:c2,h6:c2},JKD=(D,$)=>{if(D.type===1&&D.tagType===0&&$.parent&&$.parent.type===1&&$.parent.tagType===0&&!UKD($.parent.tag,D.tag)){let U=SyntaxError(`<${D.tag}> cannot be child of <${$.parent.tag}>, according to HTML specifications. This can cause hydration errors or potentially disrupt future functionality.`);U.loc=D.loc,$.onWarn(U)}},Yf=[Df,nWD,JKD],Xf={cloak:wD.noopDirectiveTransform,html:fWD,text:yWD,model:hWD,on:iWD,show:pWD};function YKD(D,$={}){return wD.baseCompile(D,AD.extend({},IB,$,{nodeTransforms:[$KD,...Yf,...$.nodeTransforms||[]],directiveTransforms:AD.extend({},Xf,$.directiveTransforms||{}),transformHoist:oWD}))}function XKD(D,$={}){return wD.baseParse(D,AD.extend({},IB,$))}NX.DOMDirectiveTransforms=Xf;NX.DOMErrorCodes=gWD;NX.DOMErrorMessages=$f;NX.DOMNodeTransforms=Yf;NX.TRANSITION=LX;NX.TRANSITION_GROUP=HB;NX.V_MODEL_CHECKBOX=KB;NX.V_MODEL_DYNAMIC=jX;NX.V_MODEL_RADIO=WB;NX.V_MODEL_SELECT=zB;NX.V_MODEL_TEXT=ZB;NX.V_ON_WITH_KEYS=GB;NX.V_ON_WITH_MODIFIERS=qB;NX.V_SHOW=VB;NX.compile=YKD;NX.createDOMCompilerError=k6;NX.parse=XKD;NX.parserOptions=IB;NX.transformStyle=Df;Object.keys(wD).forEach(function(D){if(D!=="default"&&!Object.prototype.hasOwnProperty.call(NX,D))NX[D]=wD[D]})});import{exit as gKD}from"node:process";import{workerData as fKD}from"node:worker_threads";A7();SF();async function ku(D,$){let{project:U,apiHost:J,anonKey:Y,apikey:X,command:Q,attemptId:F}=D;SB(Q);let W=async(V,I,H={})=>{try{await E8(X,{channel:$.channel,event:V,tracking_version:2,timestamp:new Date(I),tags:{app_id:U.appId},nonPersonTags:{attempt_id:F,command_path:Q,...H}},!1,AbortSignal.timeout(500),J,"error")}catch{}};await W("scan_started",Date.now());let K=Date.now(),Z=K,z="error",q="not_attempted",G;try{if(z=$.scan(U),Z=Date.now(),z!=="found")return;q="failed";let V=await fetch(`${$1(J)}/app/${encodeURIComponent(U.appId)}`,{method:"PUT",headers:r6({"Content-Type":"application/json",Authorization:J.includes("/functions/v1")&&Y?`Bearer ${Y}`:X,capgkey:X}),body:JSON.stringify({onboarding:{steps:{[$.step]:{status:"done"}}}}),redirect:"error"});G=V.status,q=V.ok?"success":"rejected",await V.body?.cancel()}finally{if(z==="error")Z=Date.now();await W("scan_ended",Z,{result:z,duration_ms:Z-K,todo_report_status:q,...G===void 0?{}:{todo_report_http_status:G}})}}var M7=K6(Qf(),1);import{existsSync as Ff,readdirSync as AKD,readFileSync as vKD,realpathSync as EKD,statSync as TKD}from"node:fs";import{basename as PKD,dirname as Hf,extname as Wf,isAbsolute as SKD,join as Kf,relative as If,resolve as bKD,sep as wB}from"node:path";import SD from"typescript";var OB="@capgo/capacitor-updater",Zf=/\.(?:[cm]?[jt]sx?|vue)$/,zf=/^(?:\..*|node_modules|dist|build|www|coverage|android|ios|test|tests|__tests__|__mocks__|fixtures|__fixtures__|e2e|cypress|playwright|scripts)$/,CKD=/\.(?:test|spec|d)\.[cm]?[jt]sx?$|^capacitor\.config\./;function qf(D,$){let U=If(D,$);return!SKD(U)&&U!==".."&&!U.startsWith(`..${wB}`)}function kKD(D){let $=SD.findConfigFile(D,SD.sys.fileExists);if(!$)return{};let U=SD.readConfigFile($,SD.sys.readFile);if(U.error)return{};return SD.parseJsonConfigFileContent({...U.config,files:[],include:[]},SD.sys,Hf($)).options}function uKD(D){return M7.parse(D,{parseMode:"sfc",onError:(U)=>{throw U}}).children.flatMap((U)=>{if(U.type!==M7.NodeTypes.ELEMENT||U.tag!=="script")return[];return U.children.flatMap((J)=>J.type===M7.NodeTypes.TEXT?[J.content]:[])}).join(`
`)}function _KD(D){for(let $=D.parent;$;$=$.parent)if(SD.isImportDeclaration($))return $;return}function Gf(D){let $=_KD(D);return!!$&&SD.isStringLiteral($.moduleSpecifier)&&$.moduleSpecifier.text===OB&&!$.importClause?.isTypeOnly}function Vf(D,$){if(SD.isIdentifier(D))return!!$.getSymbolAtLocation(D)?.declarations?.some((U)=>{if(SD.isImportSpecifier(U))return!U.isTypeOnly&&(U.propertyName??U.name).text==="CapacitorUpdater"&&Gf(U);if(!SD.isBindingElement(U)||!SD.isObjectBindingPattern(U.parent))return!1;let J=U.parent.parent,Y=U.propertyName??U.name;if(!SD.isIdentifier(Y)||Y.text!=="CapacitorUpdater"||!SD.isVariableDeclaration(J))return!1;let X=J.initializer;return!!X&&SD.isCallExpression(X)&&SD.isIdentifier(X.expression)&&X.expression.text==="require"&&!$.getSymbolAtLocation(X.expression)&&X.arguments.length===1&&SD.isStringLiteral(X.arguments[0])&&X.arguments[0].text===OB&&SD.isVariableDeclarationList(J.parent)&&!!(J.parent.flags&SD.NodeFlags.Const)});if(SD.isPropertyAccessExpression(D)&&D.name.text==="CapacitorUpdater"&&SD.isIdentifier(D.expression))return!!$.getSymbolAtLocation(D.expression)?.declarations?.some((U)=>SD.isNamespaceImport(U)&&Gf(U));return!1}function xKD(D,$){function U(J){if(SD.isCallExpression(J)){let Y=J.expression;if(SD.isPropertyAccessExpression(Y)&&Y.name.text==="notifyAppReady"&&Vf(Y.expression,$))return!0;if(SD.isElementAccessExpression(Y)&&SD.isStringLiteral(Y.argumentExpression)&&Y.argumentExpression.text==="notifyAppReady"&&Vf(Y.expression,$))return!0}return SD.forEachChild(J,U)??!1}return U(D)}function Bf(D){try{let W=function(I){if(F(),!Zf.test(I)||CKD.test(PKD(I)))return;let H=EKD(I);if(Y.has(H)||!qf(D.workspaceRoot,H)||If(D.workspaceRoot,H).split(wB).some((v)=>zf.test(v))||D.webDir&&D.webDir!==D.dir&&qf(D.webDir,H))return;Y.add(H);let w=TKD(H).size;if(w>1048576)throw Error("Source file too large");Q+=w,F();let j=vKD(H,"utf8"),B=H.split(wB).join("/"),N=Wf(H)===".vue"?`${B}.tsx`:B,A=Wf(H)===".vue"?uKD(j):j;U.set(N,A),J.set(N,H)},K=function(I){F();for(let H of AKD(I,{withFileTypes:!0})){let w=Kf(I,H.name);if(H.isDirectory()){if(!zf.test(H.name)&&!Ff(Kf(w,"package.json")))K(w)}else if(H.isFile())W(w)}},$=Date.now()+5000,U=new Map,J=new Map,Y=new Set,X=kKD(D.dir),Q=0,F=()=>{if(Date.now()>$||Y.size>1e4||Q>20971520)throw Error("Source scan budget exceeded")};K(D.dir);for(let[I,H]of U){F();let w=J.get(I);for(let j of SD.preProcessFile(H,!0,!0).importedFiles){let B=j.fileName;if(B===OB)continue;let N=SD.resolveModuleName(B,w,X,SD.sys).resolvedModule?.resolvedFileName??(B.startsWith(".")&&Zf.test(B)?bKD(Hf(w),B):void 0);if(N&&Ff(N))W(N)}}let Z={allowJs:!0,noLib:!0,noResolve:!0,types:[],jsx:SD.JsxEmit.Preserve},z=SD.createCompilerHost(Z);z.getSourceFile=(I,H)=>{let w=U.get(I);return w===void 0?void 0:SD.createSourceFile(I,w,H,!0)};let q=SD.createProgram([...U.keys()],Z,z),G=q.getTypeChecker(),V=!1;for(let I of q.getSourceFiles()){if(F(),q.getSyntacticDiagnostics(I).length){V=!0;continue}if(xKD(I,G))return"found"}return V?"unknown":"not_found"}catch{return"unknown"}}ku(fKD,{channel:"notify-app-ready",step:"add_code",scan:Bf}).catch(()=>{}).finally(()=>gKD(0));