@capgo/cli 8.53.0 → 8.53.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import{createRequire as _g}from"node:module";var Tg=Object.create;var{getPrototypeOf:Pg,defineProperty:Z2,getOwnPropertyNames:cK,getOwnPropertyDescriptor:Cg}=Object,nK=Object.prototype.hasOwnProperty;function iK(D){return this[D]}var vg,bg,j0=(D,$,U)=>{var X=D!=null&&typeof D==="object";if(X){var F=$?vg??=new WeakMap:bg??=new WeakMap,Q=F.get(D);if(Q)return Q}U=D!=null?Tg(Pg(D)):{};let Y=$||!D||!D.__esModule?Z2(U,"default",{value:D,enumerable:!0}):U;for(let J of cK(D))if(!nK.call(Y,J))Z2(Y,J,{get:iK.bind(D,J),enumerable:!0});if(X)F.set(D,Y);return Y},s$=(D)=>{var $=(lK??=new WeakMap).get(D),U;if($)return $;if($=Z2({},"__esModule",{value:!0}),D&&typeof D==="object"||typeof D==="function"){for(var X of cK(D))if(!nK.call($,X))Z2($,X,{get:iK.bind(D,X),enumerable:!(U=Cg(D,X))||U.enumerable})}return lK.set(D,$),$},lK,S=(D,$)=>()=>($||D(($={exports:{}}).exports,$),$.exports);var ug=(D)=>D;function xg(D,$){this[D]=ug.bind(null,$)}var I0=(D,$)=>{for(var U in $)Z2(D,U,{get:$[U],enumerable:!0,configurable:!0,set:xg.bind($,U)})};var g=(D,$)=>()=>(D&&($=D(D=0)),$);var e=_g(import.meta.url);var D$;var D4=g(()=>{D$={name:"@capgo/cli",type:"module",version:"8.53.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: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-list-output-text":"bun test/test-app-list-output-text.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-list-output-text && 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 ND;var c6=g(()=>{ND=class ND extends Error{context;constructor(D,$){super(D);this.name="CliUserError",this.context=$}}});import{platform as gg}from"node:os";import{version as fg}from"node:process";function aK(D){rK=D}function mg(D){for(let $=0;$<D.length;$++)if(D.charCodeAt($)>255)return!1;return!0}function pK(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 hg(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 sX(D,$){if($===void 0||$===null){if(tX.has(D.toLowerCase()))throw new ND(pK(D));throw new ND(`HTTP header "${D}" is missing or invalid.`)}if(typeof $!=="string"){if(tX.has(D.toLowerCase()))throw new ND(pK(D));throw new ND(`HTTP header "${D}" is missing or invalid.`)}if(!mg($)){if(tX.has(D.toLowerCase()))throw new ND(hg(D));throw new ND(`HTTP header "${D}" contains invalid characters (only ASCII is allowed).`)}return $}function V$(D){let $={capgo_api:yg,"x-cli-version":D$.version,"x-cli-command":rK,"x-cli-node":fg,"x-cli-os":gg()};if(D)for(let[U,X]of Object.entries(D))$[U]=sX(U,X);return $}var yg="2025-10-01",rK="",tX;var U5=g(()=>{D4();c6();tX=new Set(["authorization","capgkey","x-capgo-log-token"])});var V2=S((OzD,qw)=>{var Jw={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:"\\.{1,2}(?:\\/|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|\\/)\\.{1,2}(?:\\/|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:\\/|$))",QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)",SEP:"/"},hf={...Jw,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"},df={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};qw.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:df,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(D){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${D.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(D){return D===!0?hf:Jw}}});var B2=S((rf)=>{var{REGEX_BACKSLASH:lf,REGEX_REMOVE_BACKSLASH:cf,REGEX_SPECIAL_CHARS:nf,REGEX_SPECIAL_CHARS_GLOBAL:pf}=V2();rf.isObject=(D)=>D!==null&&typeof D==="object"&&!Array.isArray(D);rf.hasRegexChars=(D)=>nf.test(D);rf.isRegexChar=(D)=>D.length===1&&rf.hasRegexChars(D);rf.escapeRegex=(D)=>D.replace(pf,"\\$1");rf.toPosixSlashes=(D)=>D.replace(lf,"/");rf.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){let D=navigator.platform.toLowerCase();return D==="win32"||D==="windows"}if(typeof process<"u"&&process.platform)return process.platform==="win32";return!1};rf.removeBackslashes=(D)=>{return D.replace(cf,($)=>{return $==="\\"?"":$})};rf.escapeLast=(D,$,U)=>{let X=D.lastIndexOf($,U);if(X===-1)return D;if(D[X-1]==="\\")return rf.escapeLast(D,$,X-1);return`${D.slice(0,X)}\\${D.slice(X)}`};rf.removePrefix=(D,$={})=>{let U=D;if(U.startsWith("./"))U=U.slice(2),$.prefix="./";return U};rf.wrapOutput=(D,$={},U={})=>{let X=U.contains?"":"^",F=U.contains?"":"$",Q=`${X}(?:${D})${F}`;if($.negated===!0)Q=`(?:^(?!${Q}).*$)`;return Q};rf.basename=(D,{windows:$}={})=>{let U=D.split($?/[\\/]/:"/"),X=U[U.length-1];if(X==="")return U[U.length-2];return X}});var Hw=S((MzD,ww)=>{var Ww=B2(),{CHAR_ASTERISK:$Q,CHAR_AT:Xy,CHAR_BACKWARD_SLASH:K2,CHAR_COMMA:Qy,CHAR_DOT:UQ,CHAR_EXCLAMATION_MARK:FQ,CHAR_FORWARD_SLASH:Kw,CHAR_LEFT_CURLY_BRACE:XQ,CHAR_LEFT_PARENTHESES:QQ,CHAR_LEFT_SQUARE_BRACKET:Yy,CHAR_PLUS:Jy,CHAR_QUESTION_MARK:Gw,CHAR_RIGHT_CURLY_BRACE:qy,CHAR_RIGHT_PARENTHESES:Zw,CHAR_RIGHT_SQUARE_BRACKET:Iy}=V2(),Vw=(D)=>{return D===Kw||D===K2},Bw=(D)=>{if(D.isPrefix!==!0)D.depth=D.isGlobstar?1/0:1},zy=(D,$)=>{let U=$||{},X=D.length-1,F=U.parts===!0||U.scanToEnd===!0,Q=[],Y=[],J=[],q=D,I=-1,z=0,W=0,G=!1,V=!1,Z=!1,K=!1,B=!1,L=!1,O=!1,w=!1,N=!1,R=!1,j=0,C,T,u={value:"",depth:0,isGlob:!1},E=()=>I>=X,P=()=>q.charCodeAt(I+1),h=()=>{return C=T,q.charCodeAt(++I)};while(I<X){T=h();let H;if(T===K2){if(O=u.backslashes=!0,T=h(),T===XQ)L=!0;continue}if(L===!0||T===XQ){j++;while(E()!==!0&&(T=h())){if(T===K2){O=u.backslashes=!0,h();continue}if(T===XQ){j++;continue}if(L!==!0&&T===UQ&&(T=h())===UQ){if(G=u.isBrace=!0,Z=u.isGlob=!0,R=!0,F===!0)continue;break}if(L!==!0&&T===Qy){if(G=u.isBrace=!0,Z=u.isGlob=!0,R=!0,F===!0)continue;break}if(T===qy){if(j--,j===0){L=!1,G=u.isBrace=!0,R=!0;break}}}if(F===!0)continue;break}if(T===Kw){if(Q.push(I),Y.push(u),u={value:"",depth:0,isGlob:!1},R===!0)continue;if(C===UQ&&I===z+1){z+=2;continue}W=I+1;continue}if(U.noext!==!0){if((T===Jy||T===Xy||T===$Q||T===Gw||T===FQ)===!0&&P()===QQ){if(Z=u.isGlob=!0,K=u.isExtglob=!0,R=!0,T===FQ&&I===z)N=!0;if(F===!0){while(E()!==!0&&(T=h())){if(T===K2){O=u.backslashes=!0,T=h();continue}if(T===Zw){Z=u.isGlob=!0,R=!0;break}}continue}break}}if(T===$Q){if(C===$Q)B=u.isGlobstar=!0;if(Z=u.isGlob=!0,R=!0,F===!0)continue;break}if(T===Gw){if(Z=u.isGlob=!0,R=!0,F===!0)continue;break}if(T===Yy){while(E()!==!0&&(H=h())){if(H===K2){O=u.backslashes=!0,h();continue}if(H===Iy){V=u.isBracket=!0,Z=u.isGlob=!0,R=!0;break}}if(F===!0)continue;break}if(U.nonegate!==!0&&T===FQ&&I===z){w=u.negated=!0,z++;continue}if(U.noparen!==!0&&T===QQ){if(Z=u.isGlob=!0,F===!0){while(E()!==!0&&(T=h())){if(T===QQ){O=u.backslashes=!0,T=h();continue}if(T===Zw){R=!0;break}}continue}break}if(Z===!0){if(R=!0,F===!0)continue;break}}if(U.noext===!0)K=!1,Z=!1;let d=q,v="",x="";if(z>0)v=q.slice(0,z),q=q.slice(z),W-=z;if(d&&Z===!0&&W>0)d=q.slice(0,W),x=q.slice(W);else if(Z===!0)d="",x=q;else d=q;if(d&&d!==""&&d!=="/"&&d!==q){if(Vw(d.charCodeAt(d.length-1)))d=d.slice(0,-1)}if(U.unescape===!0){if(x)x=Ww.removeBackslashes(x);if(d&&O===!0)d=Ww.removeBackslashes(d)}let A={prefix:v,input:D,start:z,base:d,glob:x,isBrace:G,isBracket:V,isGlob:Z,isExtglob:K,isGlobstar:B,negated:w,negatedExtglob:N};if(U.tokens===!0){if(A.maxDepth=0,!Vw(T))Y.push(u);A.tokens=Y}if(U.parts===!0||U.tokens===!0){let H;for(let M=0;M<Q.length;M++){let b=H?H+1:z,m=Q[M],f=D.slice(b,m);if(U.tokens){if(M===0&&z!==0)Y[M].isPrefix=!0,Y[M].value=v;else Y[M].value=f;Bw(Y[M]),A.maxDepth+=Y[M].depth}if(M!==0||f!=="")J.push(f);H=m}if(H&&H+1<D.length){let M=D.slice(H+1);if(J.push(M),U.tokens)Y[Y.length-1].value=M,Bw(Y[Y.length-1]),A.maxDepth+=Y[Y.length-1].depth}A.slashes=Q,A.parts=J}return A};ww.exports=zy});var Ew=S((EzD,Mw)=>{var w2=V2(),k0=B2(),{MAX_LENGTH:X5,POSIX_REGEX_SOURCE:Wy,REGEX_NON_SPECIAL_CHARS:Gy,REGEX_SPECIAL_CHARS_BACKREF:Zy,REPLACEMENTS:Lw}=w2,Vy=(D,$)=>{if(typeof $.expandRange==="function")return $.expandRange(...D,$);D.sort();let U=`[${D.join("-")}]`;try{new RegExp(U)}catch(X){return D.map((F)=>k0.escapeRegex(F)).join("..")}return U},$4=(D,$)=>{return`Missing ${D}: "${$}" - use "\\\\${$}" to match literal characters`},Ow=(D)=>{let $=[],U=0,X=0,F=0,Q="",Y=!1;for(let J of D){if(Y===!0){Q+=J,Y=!1;continue}if(J==="\\"){Q+=J,Y=!0;continue}if(J==='"'){F=F===1?0:1,Q+=J;continue}if(F===0){if(J==="[")U++;else if(J==="]"&&U>0)U--;else if(U===0){if(J==="(")X++;else if(J===")"&&X>0)X--;else if(J==="|"&&X===0){$.push(Q),Q="";continue}}}Q+=J}return $.push(Q),$},By=(D)=>{let $=!1;for(let U of D){if($===!0){$=!1;continue}if(U==="\\"){$=!0;continue}if(/[?*+@!()[\]{}]/.test(U))return!1}return!0},Nw=(D)=>{let $=D.trim(),U=!0;while(U===!0)if(U=!1,/^@\([^\\()[\]{}|]+\)$/.test($))$=$.slice(2,-1),U=!0;if(!By($))return;return $.replace(/\\(.)/g,"$1")},Ky=(D)=>{let $=D.map(Nw).filter(Boolean);for(let U=0;U<$.length;U++)for(let X=U+1;X<$.length;X++){let F=$[U],Q=$[X],Y=F[0];if(!Y||F!==Y.repeat(F.length)||Q!==Y.repeat(Q.length))continue;if(F===Q||F.startsWith(Q)||Q.startsWith(F))return!0}return!1},YQ=(D,$=!0)=>{if(D[0]!=="+"&&D[0]!=="*"||D[1]!=="(")return;let U=0,X=0,F=0,Q=!1;for(let Y=1;Y<D.length;Y++){let J=D[Y];if(Q===!0){Q=!1;continue}if(J==="\\"){Q=!0;continue}if(J==='"'){F=F===1?0:1;continue}if(F===1)continue;if(J==="["){U++;continue}if(J==="]"&&U>0){U--;continue}if(U>0)continue;if(J==="("){X++;continue}if(J===")"){if(X--,X===0){if($===!0&&Y!==D.length-1)return;return{type:D[0],body:D.slice(2,Y),end:Y}}}}},wy=(D)=>{let $=0,U=[];while($<D.length){let F=YQ(D.slice($),!1);if(!F||F.type!=="*")return;let Q=Ow(F.body).map((J)=>J.trim());if(Q.length!==1)return;let Y=Nw(Q[0]);if(!Y||Y.length!==1)return;U.push(Y),$+=F.end+1}if(U.length<1)return;return`${U.length===1?k0.escapeRegex(U[0]):`[${U.map((F)=>k0.escapeRegex(F)).join("")}]`}*`},Hy=(D)=>{let $=0,U=D.trim(),X=YQ(U);while(X)$++,U=X.body.trim(),X=YQ(U);return $},Ly=(D,$)=>{if($.maxExtglobRecursion===!1)return{risky:!1};let U=typeof $.maxExtglobRecursion==="number"?$.maxExtglobRecursion:w2.DEFAULT_MAX_EXTGLOB_RECURSION,X=Ow(D).map((F)=>F.trim());if(X.length>1){if(X.some((F)=>F==="")||X.some((F)=>/^[*?]+$/.test(F))||Ky(X))return{risky:!0}}for(let F of X){let Q=wy(F);if(Q)return{risky:!0,safeOutput:Q};if(Hy(F)>U)return{risky:!0}}return{risky:!1}},JQ=(D,$)=>{if(typeof D!=="string")throw TypeError("Expected a string");D=Lw[D]||D;let U={...$},X=typeof U.maxLength==="number"?Math.min(X5,U.maxLength):X5,F=D.length;if(F>X)throw SyntaxError(`Input length: ${F}, exceeds maximum allowed length: ${X}`);let Q={type:"bos",value:"",output:U.prepend||""},Y=[Q],J=U.capture?"":"?:",q=w2.globChars(U.windows),I=w2.extglobChars(q),{DOT_LITERAL:z,PLUS_LITERAL:W,SLASH_LITERAL:G,ONE_CHAR:V,DOTS_SLASH:Z,NO_DOT:K,NO_DOT_SLASH:B,NO_DOTS_SLASH:L,QMARK:O,QMARK_NO_DOT:w,STAR:N,START_ANCHOR:R}=q,j=(o)=>{return`(${J}(?:(?!${R}${o.dot?Z:z}).)*?)`},C=U.dot?"":K,T=U.dot?O:w,u=U.bash===!0?j(U):N;if(U.capture)u=`(${u})`;if(typeof U.noext==="boolean")U.noextglob=U.noext;let E={input:D,index:-1,start:0,dot:U.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:Y};D=k0.removePrefix(D,E),F=D.length;let P=[],h=[],d=[],v=Q,x,A=()=>E.index===F-1,H=E.peek=(o=1)=>D[E.index+o],M=E.advance=()=>D[++E.index]||"",b=()=>D.slice(E.index+1),m=(o="",jD=0)=>{E.consumed+=o,E.index+=jD},f=(o)=>{E.output+=o.output!=null?o.output:o.value,m(o.value)},UD=()=>{let o=1;while(H()==="!"&&(H(2)!=="("||H(3)==="?"))M(),E.start++,o++;if(o%2===0)return!1;return E.negated=!0,E.start++,!0},k=(o)=>{E[o]++,d.push(o)},l=(o)=>{E[o]--,d.pop()},s=(o)=>{if(v.type==="globstar"){let jD=E.braces>0&&(o.type==="comma"||o.type==="brace"),t=o.extglob===!0||P.length&&(o.type==="pipe"||o.type==="paren");if(o.type!=="slash"&&o.type!=="paren"&&!jD&&!t)E.output=E.output.slice(0,-v.output.length),v.type="star",v.value="*",v.output=u,E.output+=v.output}if(P.length&&o.type!=="paren")P[P.length-1].inner+=o.value;if(o.value||o.output)f(o);if(v&&v.type==="text"&&o.type==="text"){v.output=(v.output||v.value)+o.value,v.value+=o.value;return}o.prev=v,Y.push(o),v=o},qD=(o,jD)=>{let t={...I[jD],conditions:1,inner:""};t.prev=v,t.parens=E.parens,t.output=E.output,t.startIndex=E.index,t.tokensIndex=Y.length;let VD=(U.capture?"(":"")+t.open;k("parens"),s({type:o,value:jD,output:E.output?"":V}),s({type:"paren",extglob:!0,value:M(),output:VD}),P.push(t)},KD=(o)=>{let jD=D.slice(o.startIndex,E.index+1),t=D.slice(o.startIndex+2,E.index),VD=Ly(t,U);if((o.type==="plus"||o.type==="star")&&VD.risky){let vD=VD.safeOutput?(o.output?"":V)+(U.capture?`(${VD.safeOutput})`:VD.safeOutput):void 0,G$=Y[o.tokensIndex];G$.type="text",G$.value=jD,G$.output=vD||k0.escapeRegex(jD);for(let Z$=o.tokensIndex+1;Z$<Y.length;Z$++)Y[Z$].value="",Y[Z$].output="",delete Y[Z$].suffix;E.output=o.output+G$.output,E.backtrack=!0,s({type:"paren",extglob:!0,value:x,output:""}),l("parens");return}let _D=o.close+(U.capture?")":""),tD;if(o.type==="negate"){let vD=u;if(o.inner&&o.inner.length>1&&o.inner.includes("/"))vD=j(U);if(vD!==u||A()||/^\)+$/.test(b()))_D=o.close=`)$))${vD}`;if(o.inner.includes("*")&&(tD=b())&&/^\.[^\\/.]+$/.test(tD)){let G$=JQ(tD,{...$,fastpaths:!1}).output;_D=o.close=`)${G$})${vD})`}if(o.prev.type==="bos")E.negatedExtglob=!0}s({type:"paren",extglob:!0,value:x,output:_D}),l("parens")};if(U.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(D)){let o=!1,jD=D.replace(Zy,(t,VD,_D,tD,vD,G$)=>{if(tD==="\\")return o=!0,t;if(tD==="?"){if(VD)return VD+tD+(vD?O.repeat(vD.length):"");if(G$===0)return T+(vD?O.repeat(vD.length):"");return O.repeat(_D.length)}if(tD===".")return z.repeat(_D.length);if(tD==="*"){if(VD)return VD+tD+(vD?u:"");return u}return VD?t:`\\${t}`});if(o===!0)if(U.unescape===!0)jD=jD.replace(/\\/g,"");else jD=jD.replace(/\\+/g,(t)=>{return t.length%2===0?"\\\\":t?"\\":""});if(jD===D&&U.contains===!0)return E.output=D,E;return E.output=k0.wrapOutput(jD,E,$),E}while(!A()){if(x=M(),x==="\x00")continue;if(x==="\\"){let t=H();if(t==="/"&&U.bash!==!0)continue;if(t==="."||t===";")continue;if(!t){x+="\\",s({type:"text",value:x});continue}let VD=/^\\+/.exec(b()),_D=0;if(VD&&VD[0].length>2){if(_D=VD[0].length,E.index+=_D,_D%2!==0)x+="\\"}if(U.unescape===!0)x=M();else x+=M();if(E.brackets===0){s({type:"text",value:x});continue}}if(E.brackets>0&&(x!=="]"||v.value==="["||v.value==="[^")){if(U.posix!==!1&&x===":"){let t=v.value.slice(1);if(t.includes("[")){if(v.posix=!0,t.includes(":")){let VD=v.value.lastIndexOf("["),_D=v.value.slice(0,VD),tD=v.value.slice(VD+2),vD=Wy[tD];if(vD){if(v.value=_D+vD,E.backtrack=!0,M(),!Q.output&&Y.indexOf(v)===1)Q.output=V;continue}}}}if(x==="["&&H()!==":"||x==="-"&&H()==="]")x=`\\${x}`;if(x==="]"&&(v.value==="["||v.value==="[^"))x=`\\${x}`;if(U.posix===!0&&x==="!"&&v.value==="[")x="^";v.value+=x,f({value:x});continue}if(E.quotes===1&&x!=='"'){x=k0.escapeRegex(x),v.value+=x,f({value:x});continue}if(x==='"'){if(E.quotes=E.quotes===1?0:1,U.keepQuotes===!0)s({type:"text",value:x});continue}if(x==="("){k("parens"),s({type:"paren",value:x});continue}if(x===")"){if(E.parens===0&&U.strictBrackets===!0)throw SyntaxError($4("opening","("));let t=P[P.length-1];if(t&&E.parens===t.parens+1){KD(P.pop());continue}s({type:"paren",value:x,output:E.parens?")":"\\)"}),l("parens");continue}if(x==="["){if(U.nobracket===!0||!b().includes("]")){if(U.nobracket!==!0&&U.strictBrackets===!0)throw SyntaxError($4("closing","]"));x=`\\${x}`}else k("brackets");s({type:"bracket",value:x});continue}if(x==="]"){if(U.nobracket===!0||v&&v.type==="bracket"&&v.value.length===1){s({type:"text",value:x,output:`\\${x}`});continue}if(E.brackets===0){if(U.strictBrackets===!0)throw SyntaxError($4("opening","["));s({type:"text",value:x,output:`\\${x}`});continue}l("brackets");let t=v.value.slice(1);if(v.posix!==!0&&t[0]==="^"&&!t.includes("/"))x=`/${x}`;if(v.value+=x,f({value:x}),U.literalBrackets===!1||k0.hasRegexChars(t))continue;let VD=k0.escapeRegex(v.value);if(E.output=E.output.slice(0,-v.value.length),U.literalBrackets===!0){E.output+=VD,v.value=VD;continue}v.value=`(${J}${VD}|${v.value})`,E.output+=v.value;continue}if(x==="{"&&U.nobrace!==!0){k("braces");let t={type:"brace",value:x,output:"(",outputIndex:E.output.length,tokensIndex:E.tokens.length};h.push(t),s(t);continue}if(x==="}"){let t=h[h.length-1];if(U.nobrace===!0||!t){s({type:"text",value:x,output:x});continue}let VD=")";if(t.dots===!0){let _D=Y.slice(),tD=[];for(let vD=_D.length-1;vD>=0;vD--){if(Y.pop(),_D[vD].type==="brace")break;if(_D[vD].type!=="dots")tD.unshift(_D[vD].value)}VD=Vy(tD,U),E.backtrack=!0}if(t.comma!==!0&&t.dots!==!0){let _D=E.output.slice(0,t.outputIndex),tD=E.tokens.slice(t.tokensIndex);t.value=t.output="\\{",x=VD="\\}",E.output=_D;for(let vD of tD)E.output+=vD.output||vD.value}s({type:"brace",value:x,output:VD}),l("braces"),h.pop();continue}if(x==="|"){if(P.length>0)P[P.length-1].conditions++;s({type:"text",value:x});continue}if(x===","){let t=x,VD=h[h.length-1];if(VD&&d[d.length-1]==="braces")VD.comma=!0,t="|";s({type:"comma",value:x,output:t});continue}if(x==="/"){if(v.type==="dot"&&E.index===E.start+1){E.start=E.index+1,E.consumed="",E.output="",Y.pop(),v=Q;continue}s({type:"slash",value:x,output:G});continue}if(x==="."){if(E.braces>0&&v.type==="dot"){if(v.value===".")v.output=z;let t=h[h.length-1];v.type="dots",v.output+=x,v.value+=x,t.dots=!0;continue}if(E.braces+E.parens===0&&v.type!=="bos"&&v.type!=="slash"){s({type:"text",value:x,output:z});continue}s({type:"dot",value:x,output:z});continue}if(x==="?"){if(!(v&&v.value==="(")&&U.noextglob!==!0&&H()==="("&&H(2)!=="?"){qD("qmark",x);continue}if(v&&v.type==="paren"){let VD=H(),_D=x;if(v.value==="("&&!/[!=<:]/.test(VD)||VD==="<"&&!/<([!=]|\w+>)/.test(b()))_D=`\\${x}`;s({type:"text",value:x,output:_D});continue}if(U.dot!==!0&&(v.type==="slash"||v.type==="bos")){s({type:"qmark",value:x,output:w});continue}s({type:"qmark",value:x,output:O});continue}if(x==="!"){if(U.noextglob!==!0&&H()==="("){if(H(2)!=="?"||!/[!=<:]/.test(H(3))){qD("negate",x);continue}}if(U.nonegate!==!0&&E.index===0){UD();continue}}if(x==="+"){if(U.noextglob!==!0&&H()==="("&&H(2)!=="?"){qD("plus",x);continue}if(v&&v.value==="("||U.regex===!1){s({type:"plus",value:x,output:W});continue}if(v&&(v.type==="bracket"||v.type==="paren"||v.type==="brace")||E.parens>0){s({type:"plus",value:x});continue}s({type:"plus",value:W});continue}if(x==="@"){if(U.noextglob!==!0&&H()==="("&&H(2)!=="?"){s({type:"at",extglob:!0,value:x,output:""});continue}s({type:"text",value:x});continue}if(x!=="*"){if(x==="$"||x==="^")x=`\\${x}`;let t=Gy.exec(b());if(t)x+=t[0],E.index+=t[0].length;s({type:"text",value:x});continue}if(v&&(v.type==="globstar"||v.star===!0)){v.type="star",v.star=!0,v.value+=x,v.output=u,E.backtrack=!0,E.globstar=!0,m(x);continue}let o=b();if(U.noextglob!==!0&&/^\([^?]/.test(o)){qD("star",x);continue}if(v.type==="star"){if(U.noglobstar===!0){m(x);continue}let t=v.prev,VD=t.prev,_D=t.type==="slash"||t.type==="bos",tD=VD&&(VD.type==="star"||VD.type==="globstar");if(U.bash===!0&&(!_D||o[0]&&o[0]!=="/")){s({type:"star",value:x,output:""});continue}let vD=E.braces>0&&(t.type==="comma"||t.type==="brace"),G$=P.length&&(t.type==="pipe"||t.type==="paren");if(!_D&&t.type!=="paren"&&!vD&&!G$){s({type:"star",value:x,output:""});continue}while(o.slice(0,3)==="/**"){let Z$=D[E.index+4];if(Z$&&Z$!=="/")break;o=o.slice(3),m("/**",3)}if(t.type==="bos"&&A()){v.type="globstar",v.value+=x,v.output=j(U),E.output=v.output,E.globstar=!0,m(x);continue}if(t.type==="slash"&&t.prev.type!=="bos"&&!tD&&A()){E.output=E.output.slice(0,-(t.output+v.output).length),t.output=`(?:${t.output}`,v.type="globstar",v.output=j(U)+(U.strictSlashes?")":"|$)"),v.value+=x,E.globstar=!0,E.output+=t.output+v.output,m(x);continue}if(t.type==="slash"&&t.prev.type!=="bos"&&o[0]==="/"){let Z$=o[1]!==void 0?"|$":"";E.output=E.output.slice(0,-(t.output+v.output).length),t.output=`(?:${t.output}`,v.type="globstar",v.output=`${j(U)}${G}|${G}${Z$})`,v.value+=x,E.output+=t.output+v.output,E.globstar=!0,m(x+M()),s({type:"slash",value:"/",output:""});continue}if(t.type==="bos"&&o[0]==="/"){v.type="globstar",v.value+=x,v.output=`(?:^|${G}|${j(U)}${G})`,E.output=v.output,E.globstar=!0,m(x+M()),s({type:"slash",value:"/",output:""});continue}E.output=E.output.slice(0,-v.output.length),v.type="globstar",v.output=j(U),v.value+=x,E.output+=v.output,E.globstar=!0,m(x);continue}let jD={type:"star",value:x,output:u};if(U.bash===!0){if(jD.output=".*?",v.type==="bos"||v.type==="slash")jD.output=C+jD.output;s(jD);continue}if(v&&(v.type==="bracket"||v.type==="paren")&&U.regex===!0){jD.output=x,s(jD);continue}if(E.index===E.start||v.type==="slash"||v.type==="dot"){if(v.type==="dot")E.output+=B,v.output+=B;else if(U.dot===!0)E.output+=L,v.output+=L;else E.output+=C,v.output+=C;if(H()!=="*")E.output+=V,v.output+=V}s(jD)}while(E.brackets>0){if(U.strictBrackets===!0)throw SyntaxError($4("closing","]"));E.output=k0.escapeLast(E.output,"["),l("brackets")}while(E.parens>0){if(U.strictBrackets===!0)throw SyntaxError($4("closing",")"));E.output=k0.escapeLast(E.output,"("),l("parens")}while(E.braces>0){if(U.strictBrackets===!0)throw SyntaxError($4("closing","}"));E.output=k0.escapeLast(E.output,"{"),l("braces")}if(U.strictSlashes!==!0&&(v.type==="star"||v.type==="bracket"))s({type:"maybe_slash",value:"",output:`${G}?`});if(E.backtrack===!0){E.output="";for(let o of E.tokens)if(E.output+=o.output!=null?o.output:o.value,o.suffix)E.output+=o.suffix}return E};JQ.fastpaths=(D,$)=>{let U={...$},X=typeof U.maxLength==="number"?Math.min(X5,U.maxLength):X5,F=D.length;if(F>X)throw SyntaxError(`Input length: ${F}, exceeds maximum allowed length: ${X}`);D=Lw[D]||D;let{DOT_LITERAL:Q,SLASH_LITERAL:Y,ONE_CHAR:J,DOTS_SLASH:q,NO_DOT:I,NO_DOTS:z,NO_DOTS_SLASH:W,STAR:G,START_ANCHOR:V}=w2.globChars(U.windows),Z=U.dot?z:I,K=U.dot?W:I,B=U.capture?"":"?:",L={negated:!1,prefix:""},O=U.bash===!0?".*?":G;if(U.capture)O=`(${O})`;let w=(C)=>{if(C.noglobstar===!0)return O;return`(${B}(?:(?!${V}${C.dot?q:Q}).)*?)`},N=(C)=>{switch(C){case"*":return`${Z}${J}${O}`;case".*":return`${Q}${J}${O}`;case"*.*":return`${Z}${O}${Q}${J}${O}`;case"*/*":return`${Z}${O}${Y}${J}${K}${O}`;case"**":return Z+w(U);case"**/*":return`(?:${Z}${w(U)}${Y})?${K}${J}${O}`;case"**/*.*":return`(?:${Z}${w(U)}${Y})?${K}${O}${Q}${J}${O}`;case"**/.*":return`(?:${Z}${w(U)}${Y})?${Q}${J}${O}`;default:{let T=/^(.*?)\.(\w+)$/.exec(C);if(!T)return;let u=N(T[1]);if(!u)return;return u+Q+T[2]}}},R=k0.removePrefix(D,L),j=N(R);if(j&&U.strictSlashes!==!0)j+=`${Y}?`;return j};Mw.exports=JQ});var jw=S((AzD,Rw)=>{var Oy=Hw(),qQ=Ew(),Aw=B2(),Ny=V2(),My=(D)=>D&&typeof D==="object"&&!Array.isArray(D),iD=(D,$,U=!1)=>{if(Array.isArray(D)){let z=D.map((G)=>iD(G,$,U));return(G)=>{for(let V of z){let Z=V(G);if(Z)return Z}return!1}}let X=My(D)&&D.tokens&&D.input;if(D===""||typeof D!=="string"&&!X)throw TypeError("Expected pattern to be a non-empty string");let F=$||{},Q=F.windows,Y=X?iD.compileRe(D,$):iD.makeRe(D,$,!1,!0),J=Y.state;delete Y.state;let q=()=>!1;if(F.ignore){let z={...$,ignore:null,onMatch:null,onResult:null};q=iD(F.ignore,z,U)}let I=(z,W=!1)=>{let{isMatch:G,match:V,output:Z}=iD.test(z,Y,$,{glob:D,posix:Q}),K={glob:D,state:J,regex:Y,posix:Q,input:z,output:Z,match:V,isMatch:G};if(typeof F.onResult==="function")F.onResult(K);if(G===!1)return K.isMatch=!1,W?K:!1;if(q(z)){if(typeof F.onIgnore==="function")F.onIgnore(K);return K.isMatch=!1,W?K:!1}if(typeof F.onMatch==="function")F.onMatch(K);return W?K:!0};if(U)I.state=J;return I};iD.test=(D,$,U,{glob:X,posix:F}={})=>{if(typeof D!=="string")throw TypeError("Expected input to be a string");if(D==="")return{isMatch:!1,output:""};let Q=U||{},Y=Q.format||(F?Aw.toPosixSlashes:null),J=D===X,q=J&&Y?Y(D):D;if(J===!1)q=Y?Y(D):D,J=q===X;if(J===!1||Q.capture===!0)if(Q.matchBase===!0||Q.basename===!0)J=iD.matchBase(D,$,U,F);else J=$.exec(q);return{isMatch:Boolean(J),match:J,output:q}};iD.matchBase=(D,$,U)=>{return($ instanceof RegExp?$:iD.makeRe($,U)).test(Aw.basename(D))};iD.isMatch=(D,$,U)=>iD($,U)(D);iD.parse=(D,$)=>{if(Array.isArray(D))return D.map((U)=>iD.parse(U,$));return qQ(D,{...$,fastpaths:!1})};iD.scan=(D,$)=>Oy(D,$);iD.compileRe=(D,$,U=!1,X=!1)=>{if(U===!0)return D.output;let F=$||{},Q=F.contains?"":"^",Y=F.contains?"":"$",J=`${Q}(?:${D.output})${Y}`;if(D&&D.negated===!0)J=`^(?!${J}).*$`;let q=iD.toRegex(J,$);if(X===!0)q.state=D;return q};iD.makeRe=(D,$={},U=!1,X=!1)=>{if(!D||typeof D!=="string")throw TypeError("Expected a non-empty string");let F={negated:!1,fastpaths:!0};if($.fastpaths!==!1&&(D[0]==="."||D[0]==="*"))F.output=qQ.fastpaths(D,$);if(!F.output)F=qQ(D,$);return iD.compileRe(F,$,U,X)};iD.toRegex=(D,$)=>{try{let U=$||{};return new RegExp(D,U.flags||(U.nocase?"i":""))}catch(U){if($&&$.debug===!0)throw U;return/$^/}};iD.constants=Ny;Rw.exports=iD});var Cw=S((RzD,Pw)=>{var Sw=jw(),Ey=B2();function Tw(D,$,U=!1){if($&&($.windows===null||$.windows===void 0))$={...$,windows:Ey.isWindows()};return Sw(D,$,U)}Object.assign(Tw,Sw);Pw.exports=Tw});var HD=S((Qm)=>{var zQ=Symbol.for("yaml.alias"),dw=Symbol.for("yaml.document"),Q5=Symbol.for("yaml.map"),lw=Symbol.for("yaml.pair"),WQ=Symbol.for("yaml.scalar"),Y5=Symbol.for("yaml.seq"),b$=Symbol.for("yaml.node.type"),sy=(D)=>!!D&&typeof D==="object"&&D[b$]===zQ,ey=(D)=>!!D&&typeof D==="object"&&D[b$]===dw,Dm=(D)=>!!D&&typeof D==="object"&&D[b$]===Q5,$m=(D)=>!!D&&typeof D==="object"&&D[b$]===lw,cw=(D)=>!!D&&typeof D==="object"&&D[b$]===WQ,Um=(D)=>!!D&&typeof D==="object"&&D[b$]===Y5;function nw(D){if(D&&typeof D==="object")switch(D[b$]){case Q5:case Y5:return!0}return!1}function Fm(D){if(D&&typeof D==="object")switch(D[b$]){case zQ:case Q5:case WQ:case Y5:return!0}return!1}var Xm=(D)=>(cw(D)||nw(D))&&!!D.anchor;Qm.ALIAS=zQ;Qm.DOC=dw;Qm.MAP=Q5;Qm.NODE_TYPE=b$;Qm.PAIR=lw;Qm.SCALAR=WQ;Qm.SEQ=Y5;Qm.hasAnchor=Xm;Qm.isAlias=sy;Qm.isCollection=nw;Qm.isDocument=ey;Qm.isMap=Dm;Qm.isNode=Fm;Qm.isPair=$m;Qm.isScalar=cw;Qm.isSeq=Um});var L2=S((Mm)=>{var sD=HD(),S0=Symbol("break visit"),iw=Symbol("skip children"),B$=Symbol("remove node");function J5(D,$){let U=pw($);if(sD.isDocument(D)){if(F4(null,D.contents,U,Object.freeze([D]))===B$)D.contents=null}else F4(null,D,U,Object.freeze([]))}J5.BREAK=S0;J5.SKIP=iw;J5.REMOVE=B$;function F4(D,$,U,X){let F=rw(D,$,U,X);if(sD.isNode(F)||sD.isPair(F))return aw(D,X,F),F4(D,F,U,X);if(typeof F!=="symbol"){if(sD.isCollection($)){X=Object.freeze(X.concat($));for(let Q=0;Q<$.items.length;++Q){let Y=F4(Q,$.items[Q],U,X);if(typeof Y==="number")Q=Y-1;else if(Y===S0)return S0;else if(Y===B$)$.items.splice(Q,1),Q-=1}}else if(sD.isPair($)){X=Object.freeze(X.concat($));let Q=F4("key",$.key,U,X);if(Q===S0)return S0;else if(Q===B$)$.key=null;let Y=F4("value",$.value,U,X);if(Y===S0)return S0;else if(Y===B$)$.value=null}}return F}async function q5(D,$){let U=pw($);if(sD.isDocument(D)){if(await X4(null,D.contents,U,Object.freeze([D]))===B$)D.contents=null}else await X4(null,D,U,Object.freeze([]))}q5.BREAK=S0;q5.SKIP=iw;q5.REMOVE=B$;async function X4(D,$,U,X){let F=await rw(D,$,U,X);if(sD.isNode(F)||sD.isPair(F))return aw(D,X,F),X4(D,F,U,X);if(typeof F!=="symbol"){if(sD.isCollection($)){X=Object.freeze(X.concat($));for(let Q=0;Q<$.items.length;++Q){let Y=await X4(Q,$.items[Q],U,X);if(typeof Y==="number")Q=Y-1;else if(Y===S0)return S0;else if(Y===B$)$.items.splice(Q,1),Q-=1}}else if(sD.isPair($)){X=Object.freeze(X.concat($));let Q=await X4("key",$.key,U,X);if(Q===S0)return S0;else if(Q===B$)$.key=null;let Y=await X4("value",$.value,U,X);if(Y===S0)return S0;else if(Y===B$)$.value=null}}return F}function pw(D){if(typeof D==="object"&&(D.Collection||D.Node||D.Value))return Object.assign({Alias:D.Node,Map:D.Node,Scalar:D.Node,Seq:D.Node},D.Value&&{Map:D.Value,Scalar:D.Value,Seq:D.Value},D.Collection&&{Map:D.Collection,Seq:D.Collection},D);return D}function rw(D,$,U,X){if(typeof U==="function")return U(D,$,X);if(sD.isMap($))return U.Map?.(D,$,X);if(sD.isSeq($))return U.Seq?.(D,$,X);if(sD.isPair($))return U.Pair?.(D,$,X);if(sD.isScalar($))return U.Scalar?.(D,$,X);if(sD.isAlias($))return U.Alias?.(D,$,X);return}function aw(D,$,U){let X=$[$.length-1];if(sD.isCollection(X))X.items[D]=U;else if(sD.isPair(X))if(D==="key")X.key=U;else X.value=U;else if(sD.isDocument(X))X.contents=U;else{let F=sD.isAlias(X)?"alias":"scalar";throw Error(`Cannot replace node with ${F} parent`)}}Mm.visit=J5;Mm.visitAsync=q5});var GQ=S((Tm)=>{var ow=HD(),Rm=L2(),jm={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Sm=(D)=>D.replace(/[!,[\]{}]/g,($)=>jm[$]);class n0{constructor(D,$){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},n0.defaultYaml,D),this.tags=Object.assign({},n0.defaultTags,$)}clone(){let D=new n0(this.yaml,this.tags);return D.docStart=this.docStart,D}atDocument(){let D=new n0(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:n0.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},n0.defaultTags);break}return D}add(D,$){if(this.atNextDocument)this.yaml={explicit:n0.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},n0.defaultTags),this.atNextDocument=!1;let U=D.trim().split(/[ \t]+/),X=U.shift();switch(X){case"%TAG":{if(U.length!==2){if($(0,"%TAG directive should contain exactly two parts"),U.length<2)return!1}let[F,Q]=U;return this.tags[F]=Q,!0}case"%YAML":{if(this.yaml.explicit=!0,U.length!==1)return $(0,"%YAML directive should contain exactly one part"),!1;let[F]=U;if(F==="1.1"||F==="1.2")return this.yaml.version=F,!0;else{let Q=/^\d+\.\d+$/.test(F);return $(6,`Unsupported YAML version ${F}`,Q),!1}}default:return $(0,`Unknown directive ${X}`,!0),!1}}tagName(D,$){if(D==="!")return"!";if(D[0]!=="!")return $(`Not a valid tag: ${D}`),null;if(D[1]==="<"){let Q=D.slice(2,-1);if(Q==="!"||Q==="!!")return $(`Verbatim tags aren't resolved, so ${D} is invalid.`),null;if(D[D.length-1]!==">")$("Verbatim tags must end with a >");return Q}let[,U,X]=D.match(/^(.*!)([^!]*)$/s);if(!X)$(`The ${D} tag has no suffix`);let F=this.tags[U];if(F)try{return F+decodeURIComponent(X)}catch(Q){return $(String(Q)),null}if(U==="!")return D;return $(`Could not resolve tag: ${D}`),null}tagString(D){for(let[$,U]of Object.entries(this.tags))if(D.startsWith(U))return $+Sm(D.substring(U.length));return D[0]==="!"?D:`!<${D}>`}toString(D){let $=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],U=Object.entries(this.tags),X;if(D&&U.length>0&&ow.isNode(D.contents)){let F={};Rm.visit(D.contents,(Q,Y)=>{if(ow.isNode(Y)&&Y.tag)F[Y.tag]=!0}),X=Object.keys(F)}else X=[];for(let[F,Q]of U){if(F==="!!"&&Q==="tag:yaml.org,2002:")continue;if(!D||X.some((Y)=>Y.startsWith(Q)))$.push(`%TAG ${F} ${Q}`)}return $.join(`
1
+ import{createRequire as _g}from"node:module";var Tg=Object.create;var{getPrototypeOf:Pg,defineProperty:Z2,getOwnPropertyNames:cK,getOwnPropertyDescriptor:Cg}=Object,nK=Object.prototype.hasOwnProperty;function iK(D){return this[D]}var vg,bg,j0=(D,$,U)=>{var X=D!=null&&typeof D==="object";if(X){var F=$?vg??=new WeakMap:bg??=new WeakMap,Q=F.get(D);if(Q)return Q}U=D!=null?Tg(Pg(D)):{};let Y=$||!D||!D.__esModule?Z2(U,"default",{value:D,enumerable:!0}):U;for(let J of cK(D))if(!nK.call(Y,J))Z2(Y,J,{get:iK.bind(D,J),enumerable:!0});if(X)F.set(D,Y);return Y},s$=(D)=>{var $=(lK??=new WeakMap).get(D),U;if($)return $;if($=Z2({},"__esModule",{value:!0}),D&&typeof D==="object"||typeof D==="function"){for(var X of cK(D))if(!nK.call($,X))Z2($,X,{get:iK.bind(D,X),enumerable:!(U=Cg(D,X))||U.enumerable})}return lK.set(D,$),$},lK,S=(D,$)=>()=>($||D(($={exports:{}}).exports,$),$.exports);var ug=(D)=>D;function xg(D,$){this[D]=ug.bind(null,$)}var I0=(D,$)=>{for(var U in $)Z2(D,U,{get:$[U],enumerable:!0,configurable:!0,set:xg.bind($,U)})};var g=(D,$)=>()=>(D&&($=D(D=0)),$);var e=_g(import.meta.url);var D$;var D4=g(()=>{D$={name:"@capgo/cli",type:"module",version:"8.53.1",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: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-list-output-text":"bun test/test-app-list-output-text.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-list-output-text && 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 ND;var c6=g(()=>{ND=class ND extends Error{context;constructor(D,$){super(D);this.name="CliUserError",this.context=$}}});import{platform as gg}from"node:os";import{version as fg}from"node:process";function aK(D){rK=D}function mg(D){for(let $=0;$<D.length;$++)if(D.charCodeAt($)>255)return!1;return!0}function pK(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 hg(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 sX(D,$){if($===void 0||$===null){if(tX.has(D.toLowerCase()))throw new ND(pK(D));throw new ND(`HTTP header "${D}" is missing or invalid.`)}if(typeof $!=="string"){if(tX.has(D.toLowerCase()))throw new ND(pK(D));throw new ND(`HTTP header "${D}" is missing or invalid.`)}if(!mg($)){if(tX.has(D.toLowerCase()))throw new ND(hg(D));throw new ND(`HTTP header "${D}" contains invalid characters (only ASCII is allowed).`)}return $}function V$(D){let $={capgo_api:yg,"x-cli-version":D$.version,"x-cli-command":rK,"x-cli-node":fg,"x-cli-os":gg()};if(D)for(let[U,X]of Object.entries(D))$[U]=sX(U,X);return $}var yg="2025-10-01",rK="",tX;var U5=g(()=>{D4();c6();tX=new Set(["authorization","capgkey","x-capgo-log-token"])});var V2=S((OzD,qw)=>{var Jw={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:"\\.{1,2}(?:\\/|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|\\/)\\.{1,2}(?:\\/|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:\\/|$))",QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)",SEP:"/"},hf={...Jw,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"},df={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};qw.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:df,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(D){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${D.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(D){return D===!0?hf:Jw}}});var B2=S((rf)=>{var{REGEX_BACKSLASH:lf,REGEX_REMOVE_BACKSLASH:cf,REGEX_SPECIAL_CHARS:nf,REGEX_SPECIAL_CHARS_GLOBAL:pf}=V2();rf.isObject=(D)=>D!==null&&typeof D==="object"&&!Array.isArray(D);rf.hasRegexChars=(D)=>nf.test(D);rf.isRegexChar=(D)=>D.length===1&&rf.hasRegexChars(D);rf.escapeRegex=(D)=>D.replace(pf,"\\$1");rf.toPosixSlashes=(D)=>D.replace(lf,"/");rf.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){let D=navigator.platform.toLowerCase();return D==="win32"||D==="windows"}if(typeof process<"u"&&process.platform)return process.platform==="win32";return!1};rf.removeBackslashes=(D)=>{return D.replace(cf,($)=>{return $==="\\"?"":$})};rf.escapeLast=(D,$,U)=>{let X=D.lastIndexOf($,U);if(X===-1)return D;if(D[X-1]==="\\")return rf.escapeLast(D,$,X-1);return`${D.slice(0,X)}\\${D.slice(X)}`};rf.removePrefix=(D,$={})=>{let U=D;if(U.startsWith("./"))U=U.slice(2),$.prefix="./";return U};rf.wrapOutput=(D,$={},U={})=>{let X=U.contains?"":"^",F=U.contains?"":"$",Q=`${X}(?:${D})${F}`;if($.negated===!0)Q=`(?:^(?!${Q}).*$)`;return Q};rf.basename=(D,{windows:$}={})=>{let U=D.split($?/[\\/]/:"/"),X=U[U.length-1];if(X==="")return U[U.length-2];return X}});var Hw=S((MzD,ww)=>{var Ww=B2(),{CHAR_ASTERISK:$Q,CHAR_AT:Xy,CHAR_BACKWARD_SLASH:K2,CHAR_COMMA:Qy,CHAR_DOT:UQ,CHAR_EXCLAMATION_MARK:FQ,CHAR_FORWARD_SLASH:Kw,CHAR_LEFT_CURLY_BRACE:XQ,CHAR_LEFT_PARENTHESES:QQ,CHAR_LEFT_SQUARE_BRACKET:Yy,CHAR_PLUS:Jy,CHAR_QUESTION_MARK:Gw,CHAR_RIGHT_CURLY_BRACE:qy,CHAR_RIGHT_PARENTHESES:Zw,CHAR_RIGHT_SQUARE_BRACKET:Iy}=V2(),Vw=(D)=>{return D===Kw||D===K2},Bw=(D)=>{if(D.isPrefix!==!0)D.depth=D.isGlobstar?1/0:1},zy=(D,$)=>{let U=$||{},X=D.length-1,F=U.parts===!0||U.scanToEnd===!0,Q=[],Y=[],J=[],q=D,I=-1,z=0,W=0,G=!1,V=!1,Z=!1,K=!1,B=!1,L=!1,O=!1,w=!1,N=!1,R=!1,j=0,C,T,u={value:"",depth:0,isGlob:!1},E=()=>I>=X,P=()=>q.charCodeAt(I+1),h=()=>{return C=T,q.charCodeAt(++I)};while(I<X){T=h();let H;if(T===K2){if(O=u.backslashes=!0,T=h(),T===XQ)L=!0;continue}if(L===!0||T===XQ){j++;while(E()!==!0&&(T=h())){if(T===K2){O=u.backslashes=!0,h();continue}if(T===XQ){j++;continue}if(L!==!0&&T===UQ&&(T=h())===UQ){if(G=u.isBrace=!0,Z=u.isGlob=!0,R=!0,F===!0)continue;break}if(L!==!0&&T===Qy){if(G=u.isBrace=!0,Z=u.isGlob=!0,R=!0,F===!0)continue;break}if(T===qy){if(j--,j===0){L=!1,G=u.isBrace=!0,R=!0;break}}}if(F===!0)continue;break}if(T===Kw){if(Q.push(I),Y.push(u),u={value:"",depth:0,isGlob:!1},R===!0)continue;if(C===UQ&&I===z+1){z+=2;continue}W=I+1;continue}if(U.noext!==!0){if((T===Jy||T===Xy||T===$Q||T===Gw||T===FQ)===!0&&P()===QQ){if(Z=u.isGlob=!0,K=u.isExtglob=!0,R=!0,T===FQ&&I===z)N=!0;if(F===!0){while(E()!==!0&&(T=h())){if(T===K2){O=u.backslashes=!0,T=h();continue}if(T===Zw){Z=u.isGlob=!0,R=!0;break}}continue}break}}if(T===$Q){if(C===$Q)B=u.isGlobstar=!0;if(Z=u.isGlob=!0,R=!0,F===!0)continue;break}if(T===Gw){if(Z=u.isGlob=!0,R=!0,F===!0)continue;break}if(T===Yy){while(E()!==!0&&(H=h())){if(H===K2){O=u.backslashes=!0,h();continue}if(H===Iy){V=u.isBracket=!0,Z=u.isGlob=!0,R=!0;break}}if(F===!0)continue;break}if(U.nonegate!==!0&&T===FQ&&I===z){w=u.negated=!0,z++;continue}if(U.noparen!==!0&&T===QQ){if(Z=u.isGlob=!0,F===!0){while(E()!==!0&&(T=h())){if(T===QQ){O=u.backslashes=!0,T=h();continue}if(T===Zw){R=!0;break}}continue}break}if(Z===!0){if(R=!0,F===!0)continue;break}}if(U.noext===!0)K=!1,Z=!1;let d=q,v="",x="";if(z>0)v=q.slice(0,z),q=q.slice(z),W-=z;if(d&&Z===!0&&W>0)d=q.slice(0,W),x=q.slice(W);else if(Z===!0)d="",x=q;else d=q;if(d&&d!==""&&d!=="/"&&d!==q){if(Vw(d.charCodeAt(d.length-1)))d=d.slice(0,-1)}if(U.unescape===!0){if(x)x=Ww.removeBackslashes(x);if(d&&O===!0)d=Ww.removeBackslashes(d)}let A={prefix:v,input:D,start:z,base:d,glob:x,isBrace:G,isBracket:V,isGlob:Z,isExtglob:K,isGlobstar:B,negated:w,negatedExtglob:N};if(U.tokens===!0){if(A.maxDepth=0,!Vw(T))Y.push(u);A.tokens=Y}if(U.parts===!0||U.tokens===!0){let H;for(let M=0;M<Q.length;M++){let b=H?H+1:z,m=Q[M],f=D.slice(b,m);if(U.tokens){if(M===0&&z!==0)Y[M].isPrefix=!0,Y[M].value=v;else Y[M].value=f;Bw(Y[M]),A.maxDepth+=Y[M].depth}if(M!==0||f!=="")J.push(f);H=m}if(H&&H+1<D.length){let M=D.slice(H+1);if(J.push(M),U.tokens)Y[Y.length-1].value=M,Bw(Y[Y.length-1]),A.maxDepth+=Y[Y.length-1].depth}A.slashes=Q,A.parts=J}return A};ww.exports=zy});var Ew=S((EzD,Mw)=>{var w2=V2(),k0=B2(),{MAX_LENGTH:X5,POSIX_REGEX_SOURCE:Wy,REGEX_NON_SPECIAL_CHARS:Gy,REGEX_SPECIAL_CHARS_BACKREF:Zy,REPLACEMENTS:Lw}=w2,Vy=(D,$)=>{if(typeof $.expandRange==="function")return $.expandRange(...D,$);D.sort();let U=`[${D.join("-")}]`;try{new RegExp(U)}catch(X){return D.map((F)=>k0.escapeRegex(F)).join("..")}return U},$4=(D,$)=>{return`Missing ${D}: "${$}" - use "\\\\${$}" to match literal characters`},Ow=(D)=>{let $=[],U=0,X=0,F=0,Q="",Y=!1;for(let J of D){if(Y===!0){Q+=J,Y=!1;continue}if(J==="\\"){Q+=J,Y=!0;continue}if(J==='"'){F=F===1?0:1,Q+=J;continue}if(F===0){if(J==="[")U++;else if(J==="]"&&U>0)U--;else if(U===0){if(J==="(")X++;else if(J===")"&&X>0)X--;else if(J==="|"&&X===0){$.push(Q),Q="";continue}}}Q+=J}return $.push(Q),$},By=(D)=>{let $=!1;for(let U of D){if($===!0){$=!1;continue}if(U==="\\"){$=!0;continue}if(/[?*+@!()[\]{}]/.test(U))return!1}return!0},Nw=(D)=>{let $=D.trim(),U=!0;while(U===!0)if(U=!1,/^@\([^\\()[\]{}|]+\)$/.test($))$=$.slice(2,-1),U=!0;if(!By($))return;return $.replace(/\\(.)/g,"$1")},Ky=(D)=>{let $=D.map(Nw).filter(Boolean);for(let U=0;U<$.length;U++)for(let X=U+1;X<$.length;X++){let F=$[U],Q=$[X],Y=F[0];if(!Y||F!==Y.repeat(F.length)||Q!==Y.repeat(Q.length))continue;if(F===Q||F.startsWith(Q)||Q.startsWith(F))return!0}return!1},YQ=(D,$=!0)=>{if(D[0]!=="+"&&D[0]!=="*"||D[1]!=="(")return;let U=0,X=0,F=0,Q=!1;for(let Y=1;Y<D.length;Y++){let J=D[Y];if(Q===!0){Q=!1;continue}if(J==="\\"){Q=!0;continue}if(J==='"'){F=F===1?0:1;continue}if(F===1)continue;if(J==="["){U++;continue}if(J==="]"&&U>0){U--;continue}if(U>0)continue;if(J==="("){X++;continue}if(J===")"){if(X--,X===0){if($===!0&&Y!==D.length-1)return;return{type:D[0],body:D.slice(2,Y),end:Y}}}}},wy=(D)=>{let $=0,U=[];while($<D.length){let F=YQ(D.slice($),!1);if(!F||F.type!=="*")return;let Q=Ow(F.body).map((J)=>J.trim());if(Q.length!==1)return;let Y=Nw(Q[0]);if(!Y||Y.length!==1)return;U.push(Y),$+=F.end+1}if(U.length<1)return;return`${U.length===1?k0.escapeRegex(U[0]):`[${U.map((F)=>k0.escapeRegex(F)).join("")}]`}*`},Hy=(D)=>{let $=0,U=D.trim(),X=YQ(U);while(X)$++,U=X.body.trim(),X=YQ(U);return $},Ly=(D,$)=>{if($.maxExtglobRecursion===!1)return{risky:!1};let U=typeof $.maxExtglobRecursion==="number"?$.maxExtglobRecursion:w2.DEFAULT_MAX_EXTGLOB_RECURSION,X=Ow(D).map((F)=>F.trim());if(X.length>1){if(X.some((F)=>F==="")||X.some((F)=>/^[*?]+$/.test(F))||Ky(X))return{risky:!0}}for(let F of X){let Q=wy(F);if(Q)return{risky:!0,safeOutput:Q};if(Hy(F)>U)return{risky:!0}}return{risky:!1}},JQ=(D,$)=>{if(typeof D!=="string")throw TypeError("Expected a string");D=Lw[D]||D;let U={...$},X=typeof U.maxLength==="number"?Math.min(X5,U.maxLength):X5,F=D.length;if(F>X)throw SyntaxError(`Input length: ${F}, exceeds maximum allowed length: ${X}`);let Q={type:"bos",value:"",output:U.prepend||""},Y=[Q],J=U.capture?"":"?:",q=w2.globChars(U.windows),I=w2.extglobChars(q),{DOT_LITERAL:z,PLUS_LITERAL:W,SLASH_LITERAL:G,ONE_CHAR:V,DOTS_SLASH:Z,NO_DOT:K,NO_DOT_SLASH:B,NO_DOTS_SLASH:L,QMARK:O,QMARK_NO_DOT:w,STAR:N,START_ANCHOR:R}=q,j=(o)=>{return`(${J}(?:(?!${R}${o.dot?Z:z}).)*?)`},C=U.dot?"":K,T=U.dot?O:w,u=U.bash===!0?j(U):N;if(U.capture)u=`(${u})`;if(typeof U.noext==="boolean")U.noextglob=U.noext;let E={input:D,index:-1,start:0,dot:U.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:Y};D=k0.removePrefix(D,E),F=D.length;let P=[],h=[],d=[],v=Q,x,A=()=>E.index===F-1,H=E.peek=(o=1)=>D[E.index+o],M=E.advance=()=>D[++E.index]||"",b=()=>D.slice(E.index+1),m=(o="",jD=0)=>{E.consumed+=o,E.index+=jD},f=(o)=>{E.output+=o.output!=null?o.output:o.value,m(o.value)},UD=()=>{let o=1;while(H()==="!"&&(H(2)!=="("||H(3)==="?"))M(),E.start++,o++;if(o%2===0)return!1;return E.negated=!0,E.start++,!0},k=(o)=>{E[o]++,d.push(o)},l=(o)=>{E[o]--,d.pop()},s=(o)=>{if(v.type==="globstar"){let jD=E.braces>0&&(o.type==="comma"||o.type==="brace"),t=o.extglob===!0||P.length&&(o.type==="pipe"||o.type==="paren");if(o.type!=="slash"&&o.type!=="paren"&&!jD&&!t)E.output=E.output.slice(0,-v.output.length),v.type="star",v.value="*",v.output=u,E.output+=v.output}if(P.length&&o.type!=="paren")P[P.length-1].inner+=o.value;if(o.value||o.output)f(o);if(v&&v.type==="text"&&o.type==="text"){v.output=(v.output||v.value)+o.value,v.value+=o.value;return}o.prev=v,Y.push(o),v=o},qD=(o,jD)=>{let t={...I[jD],conditions:1,inner:""};t.prev=v,t.parens=E.parens,t.output=E.output,t.startIndex=E.index,t.tokensIndex=Y.length;let VD=(U.capture?"(":"")+t.open;k("parens"),s({type:o,value:jD,output:E.output?"":V}),s({type:"paren",extglob:!0,value:M(),output:VD}),P.push(t)},KD=(o)=>{let jD=D.slice(o.startIndex,E.index+1),t=D.slice(o.startIndex+2,E.index),VD=Ly(t,U);if((o.type==="plus"||o.type==="star")&&VD.risky){let vD=VD.safeOutput?(o.output?"":V)+(U.capture?`(${VD.safeOutput})`:VD.safeOutput):void 0,G$=Y[o.tokensIndex];G$.type="text",G$.value=jD,G$.output=vD||k0.escapeRegex(jD);for(let Z$=o.tokensIndex+1;Z$<Y.length;Z$++)Y[Z$].value="",Y[Z$].output="",delete Y[Z$].suffix;E.output=o.output+G$.output,E.backtrack=!0,s({type:"paren",extglob:!0,value:x,output:""}),l("parens");return}let _D=o.close+(U.capture?")":""),tD;if(o.type==="negate"){let vD=u;if(o.inner&&o.inner.length>1&&o.inner.includes("/"))vD=j(U);if(vD!==u||A()||/^\)+$/.test(b()))_D=o.close=`)$))${vD}`;if(o.inner.includes("*")&&(tD=b())&&/^\.[^\\/.]+$/.test(tD)){let G$=JQ(tD,{...$,fastpaths:!1}).output;_D=o.close=`)${G$})${vD})`}if(o.prev.type==="bos")E.negatedExtglob=!0}s({type:"paren",extglob:!0,value:x,output:_D}),l("parens")};if(U.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(D)){let o=!1,jD=D.replace(Zy,(t,VD,_D,tD,vD,G$)=>{if(tD==="\\")return o=!0,t;if(tD==="?"){if(VD)return VD+tD+(vD?O.repeat(vD.length):"");if(G$===0)return T+(vD?O.repeat(vD.length):"");return O.repeat(_D.length)}if(tD===".")return z.repeat(_D.length);if(tD==="*"){if(VD)return VD+tD+(vD?u:"");return u}return VD?t:`\\${t}`});if(o===!0)if(U.unescape===!0)jD=jD.replace(/\\/g,"");else jD=jD.replace(/\\+/g,(t)=>{return t.length%2===0?"\\\\":t?"\\":""});if(jD===D&&U.contains===!0)return E.output=D,E;return E.output=k0.wrapOutput(jD,E,$),E}while(!A()){if(x=M(),x==="\x00")continue;if(x==="\\"){let t=H();if(t==="/"&&U.bash!==!0)continue;if(t==="."||t===";")continue;if(!t){x+="\\",s({type:"text",value:x});continue}let VD=/^\\+/.exec(b()),_D=0;if(VD&&VD[0].length>2){if(_D=VD[0].length,E.index+=_D,_D%2!==0)x+="\\"}if(U.unescape===!0)x=M();else x+=M();if(E.brackets===0){s({type:"text",value:x});continue}}if(E.brackets>0&&(x!=="]"||v.value==="["||v.value==="[^")){if(U.posix!==!1&&x===":"){let t=v.value.slice(1);if(t.includes("[")){if(v.posix=!0,t.includes(":")){let VD=v.value.lastIndexOf("["),_D=v.value.slice(0,VD),tD=v.value.slice(VD+2),vD=Wy[tD];if(vD){if(v.value=_D+vD,E.backtrack=!0,M(),!Q.output&&Y.indexOf(v)===1)Q.output=V;continue}}}}if(x==="["&&H()!==":"||x==="-"&&H()==="]")x=`\\${x}`;if(x==="]"&&(v.value==="["||v.value==="[^"))x=`\\${x}`;if(U.posix===!0&&x==="!"&&v.value==="[")x="^";v.value+=x,f({value:x});continue}if(E.quotes===1&&x!=='"'){x=k0.escapeRegex(x),v.value+=x,f({value:x});continue}if(x==='"'){if(E.quotes=E.quotes===1?0:1,U.keepQuotes===!0)s({type:"text",value:x});continue}if(x==="("){k("parens"),s({type:"paren",value:x});continue}if(x===")"){if(E.parens===0&&U.strictBrackets===!0)throw SyntaxError($4("opening","("));let t=P[P.length-1];if(t&&E.parens===t.parens+1){KD(P.pop());continue}s({type:"paren",value:x,output:E.parens?")":"\\)"}),l("parens");continue}if(x==="["){if(U.nobracket===!0||!b().includes("]")){if(U.nobracket!==!0&&U.strictBrackets===!0)throw SyntaxError($4("closing","]"));x=`\\${x}`}else k("brackets");s({type:"bracket",value:x});continue}if(x==="]"){if(U.nobracket===!0||v&&v.type==="bracket"&&v.value.length===1){s({type:"text",value:x,output:`\\${x}`});continue}if(E.brackets===0){if(U.strictBrackets===!0)throw SyntaxError($4("opening","["));s({type:"text",value:x,output:`\\${x}`});continue}l("brackets");let t=v.value.slice(1);if(v.posix!==!0&&t[0]==="^"&&!t.includes("/"))x=`/${x}`;if(v.value+=x,f({value:x}),U.literalBrackets===!1||k0.hasRegexChars(t))continue;let VD=k0.escapeRegex(v.value);if(E.output=E.output.slice(0,-v.value.length),U.literalBrackets===!0){E.output+=VD,v.value=VD;continue}v.value=`(${J}${VD}|${v.value})`,E.output+=v.value;continue}if(x==="{"&&U.nobrace!==!0){k("braces");let t={type:"brace",value:x,output:"(",outputIndex:E.output.length,tokensIndex:E.tokens.length};h.push(t),s(t);continue}if(x==="}"){let t=h[h.length-1];if(U.nobrace===!0||!t){s({type:"text",value:x,output:x});continue}let VD=")";if(t.dots===!0){let _D=Y.slice(),tD=[];for(let vD=_D.length-1;vD>=0;vD--){if(Y.pop(),_D[vD].type==="brace")break;if(_D[vD].type!=="dots")tD.unshift(_D[vD].value)}VD=Vy(tD,U),E.backtrack=!0}if(t.comma!==!0&&t.dots!==!0){let _D=E.output.slice(0,t.outputIndex),tD=E.tokens.slice(t.tokensIndex);t.value=t.output="\\{",x=VD="\\}",E.output=_D;for(let vD of tD)E.output+=vD.output||vD.value}s({type:"brace",value:x,output:VD}),l("braces"),h.pop();continue}if(x==="|"){if(P.length>0)P[P.length-1].conditions++;s({type:"text",value:x});continue}if(x===","){let t=x,VD=h[h.length-1];if(VD&&d[d.length-1]==="braces")VD.comma=!0,t="|";s({type:"comma",value:x,output:t});continue}if(x==="/"){if(v.type==="dot"&&E.index===E.start+1){E.start=E.index+1,E.consumed="",E.output="",Y.pop(),v=Q;continue}s({type:"slash",value:x,output:G});continue}if(x==="."){if(E.braces>0&&v.type==="dot"){if(v.value===".")v.output=z;let t=h[h.length-1];v.type="dots",v.output+=x,v.value+=x,t.dots=!0;continue}if(E.braces+E.parens===0&&v.type!=="bos"&&v.type!=="slash"){s({type:"text",value:x,output:z});continue}s({type:"dot",value:x,output:z});continue}if(x==="?"){if(!(v&&v.value==="(")&&U.noextglob!==!0&&H()==="("&&H(2)!=="?"){qD("qmark",x);continue}if(v&&v.type==="paren"){let VD=H(),_D=x;if(v.value==="("&&!/[!=<:]/.test(VD)||VD==="<"&&!/<([!=]|\w+>)/.test(b()))_D=`\\${x}`;s({type:"text",value:x,output:_D});continue}if(U.dot!==!0&&(v.type==="slash"||v.type==="bos")){s({type:"qmark",value:x,output:w});continue}s({type:"qmark",value:x,output:O});continue}if(x==="!"){if(U.noextglob!==!0&&H()==="("){if(H(2)!=="?"||!/[!=<:]/.test(H(3))){qD("negate",x);continue}}if(U.nonegate!==!0&&E.index===0){UD();continue}}if(x==="+"){if(U.noextglob!==!0&&H()==="("&&H(2)!=="?"){qD("plus",x);continue}if(v&&v.value==="("||U.regex===!1){s({type:"plus",value:x,output:W});continue}if(v&&(v.type==="bracket"||v.type==="paren"||v.type==="brace")||E.parens>0){s({type:"plus",value:x});continue}s({type:"plus",value:W});continue}if(x==="@"){if(U.noextglob!==!0&&H()==="("&&H(2)!=="?"){s({type:"at",extglob:!0,value:x,output:""});continue}s({type:"text",value:x});continue}if(x!=="*"){if(x==="$"||x==="^")x=`\\${x}`;let t=Gy.exec(b());if(t)x+=t[0],E.index+=t[0].length;s({type:"text",value:x});continue}if(v&&(v.type==="globstar"||v.star===!0)){v.type="star",v.star=!0,v.value+=x,v.output=u,E.backtrack=!0,E.globstar=!0,m(x);continue}let o=b();if(U.noextglob!==!0&&/^\([^?]/.test(o)){qD("star",x);continue}if(v.type==="star"){if(U.noglobstar===!0){m(x);continue}let t=v.prev,VD=t.prev,_D=t.type==="slash"||t.type==="bos",tD=VD&&(VD.type==="star"||VD.type==="globstar");if(U.bash===!0&&(!_D||o[0]&&o[0]!=="/")){s({type:"star",value:x,output:""});continue}let vD=E.braces>0&&(t.type==="comma"||t.type==="brace"),G$=P.length&&(t.type==="pipe"||t.type==="paren");if(!_D&&t.type!=="paren"&&!vD&&!G$){s({type:"star",value:x,output:""});continue}while(o.slice(0,3)==="/**"){let Z$=D[E.index+4];if(Z$&&Z$!=="/")break;o=o.slice(3),m("/**",3)}if(t.type==="bos"&&A()){v.type="globstar",v.value+=x,v.output=j(U),E.output=v.output,E.globstar=!0,m(x);continue}if(t.type==="slash"&&t.prev.type!=="bos"&&!tD&&A()){E.output=E.output.slice(0,-(t.output+v.output).length),t.output=`(?:${t.output}`,v.type="globstar",v.output=j(U)+(U.strictSlashes?")":"|$)"),v.value+=x,E.globstar=!0,E.output+=t.output+v.output,m(x);continue}if(t.type==="slash"&&t.prev.type!=="bos"&&o[0]==="/"){let Z$=o[1]!==void 0?"|$":"";E.output=E.output.slice(0,-(t.output+v.output).length),t.output=`(?:${t.output}`,v.type="globstar",v.output=`${j(U)}${G}|${G}${Z$})`,v.value+=x,E.output+=t.output+v.output,E.globstar=!0,m(x+M()),s({type:"slash",value:"/",output:""});continue}if(t.type==="bos"&&o[0]==="/"){v.type="globstar",v.value+=x,v.output=`(?:^|${G}|${j(U)}${G})`,E.output=v.output,E.globstar=!0,m(x+M()),s({type:"slash",value:"/",output:""});continue}E.output=E.output.slice(0,-v.output.length),v.type="globstar",v.output=j(U),v.value+=x,E.output+=v.output,E.globstar=!0,m(x);continue}let jD={type:"star",value:x,output:u};if(U.bash===!0){if(jD.output=".*?",v.type==="bos"||v.type==="slash")jD.output=C+jD.output;s(jD);continue}if(v&&(v.type==="bracket"||v.type==="paren")&&U.regex===!0){jD.output=x,s(jD);continue}if(E.index===E.start||v.type==="slash"||v.type==="dot"){if(v.type==="dot")E.output+=B,v.output+=B;else if(U.dot===!0)E.output+=L,v.output+=L;else E.output+=C,v.output+=C;if(H()!=="*")E.output+=V,v.output+=V}s(jD)}while(E.brackets>0){if(U.strictBrackets===!0)throw SyntaxError($4("closing","]"));E.output=k0.escapeLast(E.output,"["),l("brackets")}while(E.parens>0){if(U.strictBrackets===!0)throw SyntaxError($4("closing",")"));E.output=k0.escapeLast(E.output,"("),l("parens")}while(E.braces>0){if(U.strictBrackets===!0)throw SyntaxError($4("closing","}"));E.output=k0.escapeLast(E.output,"{"),l("braces")}if(U.strictSlashes!==!0&&(v.type==="star"||v.type==="bracket"))s({type:"maybe_slash",value:"",output:`${G}?`});if(E.backtrack===!0){E.output="";for(let o of E.tokens)if(E.output+=o.output!=null?o.output:o.value,o.suffix)E.output+=o.suffix}return E};JQ.fastpaths=(D,$)=>{let U={...$},X=typeof U.maxLength==="number"?Math.min(X5,U.maxLength):X5,F=D.length;if(F>X)throw SyntaxError(`Input length: ${F}, exceeds maximum allowed length: ${X}`);D=Lw[D]||D;let{DOT_LITERAL:Q,SLASH_LITERAL:Y,ONE_CHAR:J,DOTS_SLASH:q,NO_DOT:I,NO_DOTS:z,NO_DOTS_SLASH:W,STAR:G,START_ANCHOR:V}=w2.globChars(U.windows),Z=U.dot?z:I,K=U.dot?W:I,B=U.capture?"":"?:",L={negated:!1,prefix:""},O=U.bash===!0?".*?":G;if(U.capture)O=`(${O})`;let w=(C)=>{if(C.noglobstar===!0)return O;return`(${B}(?:(?!${V}${C.dot?q:Q}).)*?)`},N=(C)=>{switch(C){case"*":return`${Z}${J}${O}`;case".*":return`${Q}${J}${O}`;case"*.*":return`${Z}${O}${Q}${J}${O}`;case"*/*":return`${Z}${O}${Y}${J}${K}${O}`;case"**":return Z+w(U);case"**/*":return`(?:${Z}${w(U)}${Y})?${K}${J}${O}`;case"**/*.*":return`(?:${Z}${w(U)}${Y})?${K}${O}${Q}${J}${O}`;case"**/.*":return`(?:${Z}${w(U)}${Y})?${Q}${J}${O}`;default:{let T=/^(.*?)\.(\w+)$/.exec(C);if(!T)return;let u=N(T[1]);if(!u)return;return u+Q+T[2]}}},R=k0.removePrefix(D,L),j=N(R);if(j&&U.strictSlashes!==!0)j+=`${Y}?`;return j};Mw.exports=JQ});var jw=S((AzD,Rw)=>{var Oy=Hw(),qQ=Ew(),Aw=B2(),Ny=V2(),My=(D)=>D&&typeof D==="object"&&!Array.isArray(D),iD=(D,$,U=!1)=>{if(Array.isArray(D)){let z=D.map((G)=>iD(G,$,U));return(G)=>{for(let V of z){let Z=V(G);if(Z)return Z}return!1}}let X=My(D)&&D.tokens&&D.input;if(D===""||typeof D!=="string"&&!X)throw TypeError("Expected pattern to be a non-empty string");let F=$||{},Q=F.windows,Y=X?iD.compileRe(D,$):iD.makeRe(D,$,!1,!0),J=Y.state;delete Y.state;let q=()=>!1;if(F.ignore){let z={...$,ignore:null,onMatch:null,onResult:null};q=iD(F.ignore,z,U)}let I=(z,W=!1)=>{let{isMatch:G,match:V,output:Z}=iD.test(z,Y,$,{glob:D,posix:Q}),K={glob:D,state:J,regex:Y,posix:Q,input:z,output:Z,match:V,isMatch:G};if(typeof F.onResult==="function")F.onResult(K);if(G===!1)return K.isMatch=!1,W?K:!1;if(q(z)){if(typeof F.onIgnore==="function")F.onIgnore(K);return K.isMatch=!1,W?K:!1}if(typeof F.onMatch==="function")F.onMatch(K);return W?K:!0};if(U)I.state=J;return I};iD.test=(D,$,U,{glob:X,posix:F}={})=>{if(typeof D!=="string")throw TypeError("Expected input to be a string");if(D==="")return{isMatch:!1,output:""};let Q=U||{},Y=Q.format||(F?Aw.toPosixSlashes:null),J=D===X,q=J&&Y?Y(D):D;if(J===!1)q=Y?Y(D):D,J=q===X;if(J===!1||Q.capture===!0)if(Q.matchBase===!0||Q.basename===!0)J=iD.matchBase(D,$,U,F);else J=$.exec(q);return{isMatch:Boolean(J),match:J,output:q}};iD.matchBase=(D,$,U)=>{return($ instanceof RegExp?$:iD.makeRe($,U)).test(Aw.basename(D))};iD.isMatch=(D,$,U)=>iD($,U)(D);iD.parse=(D,$)=>{if(Array.isArray(D))return D.map((U)=>iD.parse(U,$));return qQ(D,{...$,fastpaths:!1})};iD.scan=(D,$)=>Oy(D,$);iD.compileRe=(D,$,U=!1,X=!1)=>{if(U===!0)return D.output;let F=$||{},Q=F.contains?"":"^",Y=F.contains?"":"$",J=`${Q}(?:${D.output})${Y}`;if(D&&D.negated===!0)J=`^(?!${J}).*$`;let q=iD.toRegex(J,$);if(X===!0)q.state=D;return q};iD.makeRe=(D,$={},U=!1,X=!1)=>{if(!D||typeof D!=="string")throw TypeError("Expected a non-empty string");let F={negated:!1,fastpaths:!0};if($.fastpaths!==!1&&(D[0]==="."||D[0]==="*"))F.output=qQ.fastpaths(D,$);if(!F.output)F=qQ(D,$);return iD.compileRe(F,$,U,X)};iD.toRegex=(D,$)=>{try{let U=$||{};return new RegExp(D,U.flags||(U.nocase?"i":""))}catch(U){if($&&$.debug===!0)throw U;return/$^/}};iD.constants=Ny;Rw.exports=iD});var Cw=S((RzD,Pw)=>{var Sw=jw(),Ey=B2();function Tw(D,$,U=!1){if($&&($.windows===null||$.windows===void 0))$={...$,windows:Ey.isWindows()};return Sw(D,$,U)}Object.assign(Tw,Sw);Pw.exports=Tw});var HD=S((Qm)=>{var zQ=Symbol.for("yaml.alias"),dw=Symbol.for("yaml.document"),Q5=Symbol.for("yaml.map"),lw=Symbol.for("yaml.pair"),WQ=Symbol.for("yaml.scalar"),Y5=Symbol.for("yaml.seq"),b$=Symbol.for("yaml.node.type"),sy=(D)=>!!D&&typeof D==="object"&&D[b$]===zQ,ey=(D)=>!!D&&typeof D==="object"&&D[b$]===dw,Dm=(D)=>!!D&&typeof D==="object"&&D[b$]===Q5,$m=(D)=>!!D&&typeof D==="object"&&D[b$]===lw,cw=(D)=>!!D&&typeof D==="object"&&D[b$]===WQ,Um=(D)=>!!D&&typeof D==="object"&&D[b$]===Y5;function nw(D){if(D&&typeof D==="object")switch(D[b$]){case Q5:case Y5:return!0}return!1}function Fm(D){if(D&&typeof D==="object")switch(D[b$]){case zQ:case Q5:case WQ:case Y5:return!0}return!1}var Xm=(D)=>(cw(D)||nw(D))&&!!D.anchor;Qm.ALIAS=zQ;Qm.DOC=dw;Qm.MAP=Q5;Qm.NODE_TYPE=b$;Qm.PAIR=lw;Qm.SCALAR=WQ;Qm.SEQ=Y5;Qm.hasAnchor=Xm;Qm.isAlias=sy;Qm.isCollection=nw;Qm.isDocument=ey;Qm.isMap=Dm;Qm.isNode=Fm;Qm.isPair=$m;Qm.isScalar=cw;Qm.isSeq=Um});var L2=S((Mm)=>{var sD=HD(),S0=Symbol("break visit"),iw=Symbol("skip children"),B$=Symbol("remove node");function J5(D,$){let U=pw($);if(sD.isDocument(D)){if(F4(null,D.contents,U,Object.freeze([D]))===B$)D.contents=null}else F4(null,D,U,Object.freeze([]))}J5.BREAK=S0;J5.SKIP=iw;J5.REMOVE=B$;function F4(D,$,U,X){let F=rw(D,$,U,X);if(sD.isNode(F)||sD.isPair(F))return aw(D,X,F),F4(D,F,U,X);if(typeof F!=="symbol"){if(sD.isCollection($)){X=Object.freeze(X.concat($));for(let Q=0;Q<$.items.length;++Q){let Y=F4(Q,$.items[Q],U,X);if(typeof Y==="number")Q=Y-1;else if(Y===S0)return S0;else if(Y===B$)$.items.splice(Q,1),Q-=1}}else if(sD.isPair($)){X=Object.freeze(X.concat($));let Q=F4("key",$.key,U,X);if(Q===S0)return S0;else if(Q===B$)$.key=null;let Y=F4("value",$.value,U,X);if(Y===S0)return S0;else if(Y===B$)$.value=null}}return F}async function q5(D,$){let U=pw($);if(sD.isDocument(D)){if(await X4(null,D.contents,U,Object.freeze([D]))===B$)D.contents=null}else await X4(null,D,U,Object.freeze([]))}q5.BREAK=S0;q5.SKIP=iw;q5.REMOVE=B$;async function X4(D,$,U,X){let F=await rw(D,$,U,X);if(sD.isNode(F)||sD.isPair(F))return aw(D,X,F),X4(D,F,U,X);if(typeof F!=="symbol"){if(sD.isCollection($)){X=Object.freeze(X.concat($));for(let Q=0;Q<$.items.length;++Q){let Y=await X4(Q,$.items[Q],U,X);if(typeof Y==="number")Q=Y-1;else if(Y===S0)return S0;else if(Y===B$)$.items.splice(Q,1),Q-=1}}else if(sD.isPair($)){X=Object.freeze(X.concat($));let Q=await X4("key",$.key,U,X);if(Q===S0)return S0;else if(Q===B$)$.key=null;let Y=await X4("value",$.value,U,X);if(Y===S0)return S0;else if(Y===B$)$.value=null}}return F}function pw(D){if(typeof D==="object"&&(D.Collection||D.Node||D.Value))return Object.assign({Alias:D.Node,Map:D.Node,Scalar:D.Node,Seq:D.Node},D.Value&&{Map:D.Value,Scalar:D.Value,Seq:D.Value},D.Collection&&{Map:D.Collection,Seq:D.Collection},D);return D}function rw(D,$,U,X){if(typeof U==="function")return U(D,$,X);if(sD.isMap($))return U.Map?.(D,$,X);if(sD.isSeq($))return U.Seq?.(D,$,X);if(sD.isPair($))return U.Pair?.(D,$,X);if(sD.isScalar($))return U.Scalar?.(D,$,X);if(sD.isAlias($))return U.Alias?.(D,$,X);return}function aw(D,$,U){let X=$[$.length-1];if(sD.isCollection(X))X.items[D]=U;else if(sD.isPair(X))if(D==="key")X.key=U;else X.value=U;else if(sD.isDocument(X))X.contents=U;else{let F=sD.isAlias(X)?"alias":"scalar";throw Error(`Cannot replace node with ${F} parent`)}}Mm.visit=J5;Mm.visitAsync=q5});var GQ=S((Tm)=>{var ow=HD(),Rm=L2(),jm={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Sm=(D)=>D.replace(/[!,[\]{}]/g,($)=>jm[$]);class n0{constructor(D,$){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},n0.defaultYaml,D),this.tags=Object.assign({},n0.defaultTags,$)}clone(){let D=new n0(this.yaml,this.tags);return D.docStart=this.docStart,D}atDocument(){let D=new n0(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:n0.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},n0.defaultTags);break}return D}add(D,$){if(this.atNextDocument)this.yaml={explicit:n0.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},n0.defaultTags),this.atNextDocument=!1;let U=D.trim().split(/[ \t]+/),X=U.shift();switch(X){case"%TAG":{if(U.length!==2){if($(0,"%TAG directive should contain exactly two parts"),U.length<2)return!1}let[F,Q]=U;return this.tags[F]=Q,!0}case"%YAML":{if(this.yaml.explicit=!0,U.length!==1)return $(0,"%YAML directive should contain exactly one part"),!1;let[F]=U;if(F==="1.1"||F==="1.2")return this.yaml.version=F,!0;else{let Q=/^\d+\.\d+$/.test(F);return $(6,`Unsupported YAML version ${F}`,Q),!1}}default:return $(0,`Unknown directive ${X}`,!0),!1}}tagName(D,$){if(D==="!")return"!";if(D[0]!=="!")return $(`Not a valid tag: ${D}`),null;if(D[1]==="<"){let Q=D.slice(2,-1);if(Q==="!"||Q==="!!")return $(`Verbatim tags aren't resolved, so ${D} is invalid.`),null;if(D[D.length-1]!==">")$("Verbatim tags must end with a >");return Q}let[,U,X]=D.match(/^(.*!)([^!]*)$/s);if(!X)$(`The ${D} tag has no suffix`);let F=this.tags[U];if(F)try{return F+decodeURIComponent(X)}catch(Q){return $(String(Q)),null}if(U==="!")return D;return $(`Could not resolve tag: ${D}`),null}tagString(D){for(let[$,U]of Object.entries(this.tags))if(D.startsWith(U))return $+Sm(D.substring(U.length));return D[0]==="!"?D:`!<${D}>`}toString(D){let $=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],U=Object.entries(this.tags),X;if(D&&U.length>0&&ow.isNode(D.contents)){let F={};Rm.visit(D.contents,(Q,Y)=>{if(ow.isNode(Y)&&Y.tag)F[Y.tag]=!0}),X=Object.keys(F)}else X=[];for(let[F,Q]of U){if(F==="!!"&&Q==="tag:yaml.org,2002:")continue;if(!D||X.some((Y)=>Y.startsWith(Q)))$.push(`%TAG ${F} ${Q}`)}return $.join(`
2
2
  `)}}n0.defaultYaml={explicit:!1,version:"1.2"};n0.defaultTags={"!!":"tag:yaml.org,2002:"};Tm.Directives=n0});var I5=S((um)=>{var tw=HD(),Cm=L2();function vm(D){if(/[\x00-\x19\s,[\]{}]/.test(D)){let U=`Anchor must not contain whitespace or control characters: ${JSON.stringify(D)}`;throw Error(U)}return!0}function sw(D){let $=new Set;return Cm.visit(D,{Value(U,X){if(X.anchor)$.add(X.anchor)}}),$}function ew(D,$){for(let U=1;;++U){let X=`${D}${U}`;if(!$.has(X))return X}}function bm(D,$){let U=[],X=new Map,F=null;return{onAnchor:(Q)=>{U.push(Q),F??(F=sw(D));let Y=ew($,F);return F.add(Y),Y},setAnchors:()=>{for(let Q of U){let Y=X.get(Q);if(typeof Y==="object"&&Y.anchor&&(tw.isScalar(Y.node)||tw.isCollection(Y.node)))Y.node.anchor=Y.anchor;else{let J=Error("Failed to resolve repeated object (this should not happen)");throw J.source=Q,J}}},sourceObjects:X}}um.anchorIsValid=vm;um.anchorNames=sw;um.createNodeAnchors=bm;um.findNewAnchor=ew});var ZQ=S((fm)=>{function O2(D,$,U,X){if(X&&typeof X==="object")if(Array.isArray(X))for(let F=0,Q=X.length;F<Q;++F){let Y=X[F],J=O2(D,X,String(F),Y);if(J===void 0)delete X[F];else if(J!==Y)X[F]=J}else if(X instanceof Map)for(let F of Array.from(X.keys())){let Q=X.get(F),Y=O2(D,X,F,Q);if(Y===void 0)X.delete(F);else if(Y!==Q)X.set(F,Y)}else if(X instanceof Set)for(let F of Array.from(X)){let Q=O2(D,X,F,F);if(Q===void 0)X.delete(F);else if(Q!==F)X.delete(F),X.add(Q)}else for(let[F,Q]of Object.entries(X)){let Y=O2(D,X,F,Q);if(Y===void 0)delete X[F];else if(Y!==Q)X[F]=Y}return D.call($,U,X)}fm.applyReviver=O2});var e$=S((hm)=>{var mm=HD();function DH(D,$,U){if(Array.isArray(D))return D.map((X,F)=>DH(X,String(F),U));if(D&&typeof D.toJSON==="function"){if(!U||!mm.hasAnchor(D))return D.toJSON($,U);let X={aliasCount:0,count:1,res:void 0};U.anchors.set(D,X),U.onCreate=(Q)=>{X.res=Q,delete U.onCreate};let F=D.toJSON($,U);if(U.onCreate)U.onCreate(F);return F}if(typeof D==="bigint"&&!U?.keep)return Number(D);return D}hm.toJS=DH});var z5=S((nm)=>{var lm=ZQ(),$H=HD(),cm=e$();class UH{constructor(D){Object.defineProperty(this,$H.NODE_TYPE,{value:D})}clone(){let D=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)D.range=this.range.slice();return D}toJS(D,{mapAsMap:$,maxAliasCount:U,onAnchor:X,reviver:F}={}){if(!$H.isDocument(D))throw TypeError("A document argument is required");let Q={anchors:new Map,doc:D,keep:!0,mapAsMap:$===!0,mapKeyWarned:!1,maxAliasCount:typeof U==="number"?U:100},Y=cm.toJS(this,"",Q);if(typeof X==="function")for(let{count:J,res:q}of Q.anchors.values())X(q,J);return typeof F==="function"?lm.applyReviver(F,{"":Y},"",Y):Y}}nm.NodeBase=UH});var N2=S((tm)=>{var pm=I5(),rm=L2(),Q4=HD(),am=z5(),om=e$();class FH extends am.NodeBase{constructor(D){super(Q4.ALIAS);this.source=D,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(D,$){if($?.maxAliasCount===0)throw ReferenceError("Alias resolution is disabled");let U;if($?.aliasResolveCache)U=$.aliasResolveCache;else if(U=[],rm.visit(D,{Node:(F,Q)=>{if(Q4.isAlias(Q)||Q4.hasAnchor(Q))U.push(Q)}}),$)$.aliasResolveCache=U;let X=void 0;for(let F of U){if(F===this)break;if(F.anchor===this.source)X=F}return X}toJSON(D,$){if(!$)return{source:this.source};let{anchors:U,doc:X,maxAliasCount:F}=$,Q=this.resolve(X,$);if(!Q){let J=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(J)}let Y=U.get(Q);if(!Y)om.toJS(Q,null,$),Y=U.get(Q);if(Y?.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(F>=0){if(Y.count+=1,Y.aliasCount===0)Y.aliasCount=W5(X,Q,U);if(Y.count*Y.aliasCount>F)throw ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return Y.res}toString(D,$,U){let X=`*${this.source}`;if(D){if(pm.anchorIsValid(this.source),D.options.verifyAliasOrder&&!D.anchors.has(this.source)){let F=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(F)}if(D.implicitKey)return`${X} `}return X}}function W5(D,$,U){if(Q4.isAlias($)){let X=$.resolve(D),F=U&&X&&U.get(X);return F?F.count*F.aliasCount:0}else if(Q4.isCollection($)){let X=0;for(let F of $.items){let Q=W5(D,F,U);if(Q>X)X=Q}return X}else if(Q4.isPair($)){let X=W5(D,$.key,U),F=W5(D,$.value,U);return Math.max(X,F)}return 1}tm.Alias=FH});var aD=S((Fh)=>{var em=HD(),Dh=z5(),$h=e$(),Uh=(D)=>!D||typeof D!=="function"&&typeof D!=="object";class i6 extends Dh.NodeBase{constructor(D){super(em.SCALAR);this.value=D}toJSON(D,$){return $?.keep?this.value:$h.toJS(this.value,D,$)}toString(){return String(this.value)}}i6.BLOCK_FOLDED="BLOCK_FOLDED";i6.BLOCK_LITERAL="BLOCK_LITERAL";i6.PLAIN="PLAIN";i6.QUOTE_DOUBLE="QUOTE_DOUBLE";i6.QUOTE_SINGLE="QUOTE_SINGLE";Fh.Scalar=i6;Fh.isScalarValue=Uh});var M2=S((zh)=>{var Yh=N2(),p6=HD(),XH=aD(),Jh="tag:yaml.org,2002:";function qh(D,$,U){if($){let X=U.filter((Q)=>Q.tag===$),F=X.find((Q)=>!Q.format)??X[0];if(!F)throw Error(`Tag ${$} not found`);return F}return U.find((X)=>X.identify?.(D)&&!X.format)}function Ih(D,$,U){if(p6.isDocument(D))D=D.contents;if(p6.isNode(D))return D;if(p6.isPair(D)){let W=U.schema[p6.MAP].createNode?.(U.schema,null,U);return W.items.push(D),W}if(D instanceof String||D instanceof Number||D instanceof Boolean||typeof BigInt<"u"&&D instanceof BigInt)D=D.valueOf();let{aliasDuplicateObjects:X,onAnchor:F,onTagObj:Q,schema:Y,sourceObjects:J}=U,q=void 0;if(X&&D&&typeof D==="object")if(q=J.get(D),q)return q.anchor??(q.anchor=F(D)),new Yh.Alias(q.anchor);else q={anchor:null,node:null},J.set(D,q);if($?.startsWith("!!"))$=Jh+$.slice(2);let I=qh(D,$,Y.tags);if(!I){if(D&&typeof D.toJSON==="function")D=D.toJSON();if(!D||typeof D!=="object"){let W=new XH.Scalar(D);if(q)q.node=W;return W}I=D instanceof Map?Y[p6.MAP]:(Symbol.iterator in Object(D))?Y[p6.SEQ]:Y[p6.MAP]}if(Q)Q(I),delete U.onTagObj;let z=I?.createNode?I.createNode(U.schema,D,U):typeof I?.nodeClass?.from==="function"?I.nodeClass.from(U.schema,D,U):new XH.Scalar(D);if($)z.tag=$;else if(!I.default)z.tag=I.tag;if(q)q.node=z;return z}zh.createNode=Ih});var G5=S((Vh)=>{var Gh=M2(),K$=HD(),Zh=z5();function VQ(D,$,U){let X=U;for(let F=$.length-1;F>=0;--F){let Q=$[F];if(typeof Q==="number"&&Number.isInteger(Q)&&Q>=0){let Y=[];Y[Q]=X,X=Y}else X=new Map([[Q,X]])}return Gh.createNode(X,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:D,sourceObjects:new Map})}var QH=(D)=>D==null||typeof D==="object"&&!!D[Symbol.iterator]().next().done;class YH extends Zh.NodeBase{constructor(D,$){super(D);Object.defineProperty(this,"schema",{value:$,configurable:!0,enumerable:!1,writable:!0})}clone(D){let $=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(D)$.schema=D;if($.items=$.items.map((U)=>K$.isNode(U)||K$.isPair(U)?U.clone(D):U),this.range)$.range=this.range.slice();return $}addIn(D,$){if(QH(D))this.add($);else{let[U,...X]=D,F=this.get(U,!0);if(K$.isCollection(F))F.addIn(X,$);else if(F===void 0&&this.schema)this.set(U,VQ(this.schema,X,$));else throw Error(`Expected YAML collection at ${U}. Remaining path: ${X}`)}}deleteIn(D){let[$,...U]=D;if(U.length===0)return this.delete($);let X=this.get($,!0);if(K$.isCollection(X))return X.deleteIn(U);else throw Error(`Expected YAML collection at ${$}. Remaining path: ${U}`)}getIn(D,$){let[U,...X]=D,F=this.get(U,!0);if(X.length===0)return!$&&K$.isScalar(F)?F.value:F;else return K$.isCollection(F)?F.getIn(X,$):void 0}hasAllNullValues(D){return this.items.every(($)=>{if(!K$.isPair($))return!1;let U=$.value;return U==null||D&&K$.isScalar(U)&&U.value==null&&!U.commentBefore&&!U.comment&&!U.tag})}hasIn(D){let[$,...U]=D;if(U.length===0)return this.has($);let X=this.get($,!0);return K$.isCollection(X)?X.hasIn(U):!1}setIn(D,$){let[U,...X]=D;if(X.length===0)this.set(U,$);else{let F=this.get(U,!0);if(K$.isCollection(F))F.setIn(X,$);else if(F===void 0&&this.schema)this.set(U,VQ(this.schema,X,$));else throw Error(`Expected YAML collection at ${U}. Remaining path: ${X}`)}}}Vh.Collection=YH;Vh.collectionFromPath=VQ;Vh.isEmptyPath=QH});var E2=S((Oh)=>{var Hh=(D)=>D.replace(/^(?!$)(?: $)?/gm,"#");function BQ(D,$){if(/^\n+$/.test(D))return D.substring(1);return $?D.replace(/^(?! *$)/gm,$):D}var Lh=(D,$,U)=>D.endsWith(`
3
3
  `)?BQ(U,$):U.includes(`
4
4
  `)?`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capgo/cli",
3
3
  "type": "module",
4
- "version": "8.53.0",
4
+ "version": "8.53.1",
5
5
  "description": "A CLI to upload to capgo servers",
6
6
  "author": "Martin martin@capgo.app",
7
7
  "license": "Apache 2.0",