'use strict';

var fs = require('node:fs');
var require$$5 = require('node:module');
var os = require('node:os');
var path = require('node:path');
var require$$0 = require('node:url');
var registryConstants = require('../external/@socketsecurity/registry/lib/constants');

var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
const require$1 = require$$5.createRequire(require('node:url').pathToFileURL(__filename).href);
const __filename$1 = require$$0.fileURLToPath(require('node:url').pathToFileURL(__filename).href);
// Using `path.dirname(__filename)` to resolve `__dirname` works for both 'dist'
// AND 'src' directories because constants.js and constants.mts respectively are
// in the root of each.
const __dirname$1 = path.dirname(__filename$1);
const {
  kInternalsSymbol,
  [kInternalsSymbol]: {
    attributes: registryConstantsAttribs,
    createConstantsObject,
    getIpc
  }
} = registryConstants;
const ALERT_TYPE_CRITICAL_CVE = 'criticalCVE';
const ALERT_TYPE_CVE = 'cve';
const ALERT_TYPE_MEDIUM_CVE = 'mediumCVE';
const ALERT_TYPE_MILD_CVE = 'mildCVE';
const API_V0_URL = 'https://api.socket.dev/v0/';
const BINARY_LOCK_EXT = '.lockb';
const BUN = 'bun';
const DOT_SOCKET_DOT_FACTS_JSON = '.socket.facts.json';
const DRY_RUN_LABEL = '[DryRun]';
const DRY_RUN_BAILING_NOW = `${DRY_RUN_LABEL}: Bailing now`;
const DRY_RUN_NOT_SAVING = `${DRY_RUN_LABEL}: Not saving`;
const LOCALAPPDATA = 'LOCALAPPDATA';
const LOCK_EXT = '.lock';
const NPM_BUGGY_OVERRIDES_PATCHED_VERSION = '11.2.0';
const NPM_REGISTRY_URL = 'https://registry.npmjs.org';
const PNPM = 'pnpm';
const REDACTED = '<redacted>';
const SOCKET_CLI_ACCEPT_RISKS = 'SOCKET_CLI_ACCEPT_RISKS';
const SOCKET_CLI_BIN_NAME = 'socket';
const SOCKET_CLI_FIX = 'SOCKET_CLI_FIX';
const SOCKET_CLI_ISSUES_URL = 'https://github.com/SocketDev/socket-cli/issues';
const SOCKET_CLI_OPTIMIZE = 'SOCKET_CLI_OPTIMIZE';
const SOCKET_CLI_SAFE_BIN = 'SOCKET_CLI_SAFE_BIN';
const SOCKET_CLI_SAFE_PROGRESS = 'SOCKET_CLI_SAFE_PROGRESS';
const SOCKET_CLI_VIEW_ALL_RISKS = 'SOCKET_CLI_VIEW_ALL_RISKS';
const SOCKET_DEFAULT_BRANCH = 'socket-default-branch';
const SOCKET_DEFAULT_REPOSITORY = 'socket-default-repository';
const SOCKET_WEBSITE_URL = 'https://socket.dev';
const VLT = 'vlt';
const YARN = 'yarn';
const YARN_BERRY = 'yarn/berry';
const YARN_CLASSIC = 'yarn/classic';
const YARN_LOCK = 'yarn.lock';
let _Sentry;
let _npmStdioPipeOptions;
function getNpmStdioPipeOptions() {
  if (_npmStdioPipeOptions === undefined) {
    _npmStdioPipeOptions = {
      cwd: process.cwd(),
      // Lazily access constants.WIN32.
      shell: constants.WIN32
    };
  }
  return _npmStdioPipeOptions;
}
const LAZY_ENV = () => {
  const {
    env: processEnv
  } = process;
  const envHelpers = /*@__PURE__*/require$1('../external/@socketsecurity/registry/lib/env');
  const utils = /*@__PURE__*/require$1(
  // Lazily access constants.rootPath.
  path.join(constants.rootPath, 'dist/utils.js'));
  const envAsBoolean = envHelpers.envAsBoolean;
  const envAsNumber = envHelpers.envAsNumber;
  const envAsString = envHelpers.envAsString;
  const getConfigValueOrUndef = utils.getConfigValueOrUndef;
  const readOrDefaultSocketJson = utils.readOrDefaultSocketJson;
  const GITHUB_TOKEN = envAsString(processEnv['GITHUB_TOKEN']);
  // We inline some environment values so that they CANNOT be influenced by user
  // provided environment variables.
  return Object.freeze({
    __proto__: null,
    // Lazily access registryConstants.ENV.
    ...registryConstants.ENV,
    // Disable using GitHub's workflow actions/cache.
    // https://github.com/actions/cache
    DISABLE_GITHUB_CACHE: envAsBoolean(processEnv['DISABLE_GITHUB_CACHE']),
    // The API URL. For example, https://api.github.com.
    // https://docs.github.com/en/codespaces/developing-in-a-codespace/default-environment-variables-for-your-codespace#list-of-default-environment-variables
    GITHUB_API_URL: envAsString(processEnv['GITHUB_API_URL']) || 'https://api.github.com',
    // The name of the base ref or target branch of the pull request in a workflow
    // run. This is only set when the event that triggers a workflow run is either
    // pull_request or pull_request_target. For example, main.
    // https://docs.github.com/en/codespaces/developing-in-a-codespace/default-environment-variables-for-your-codespace#list-of-default-environment-variables
    GITHUB_BASE_REF: envAsString(processEnv['GITHUB_BASE_REF']),
    // The short ref name of the branch or tag that triggered the GitHub workflow
    // run. This value matches the branch or tag name shown on GitHub. For example,
    // feature-branch-1. For pull requests, the format is <pr_number>/merge.
    // https://docs.github.com/en/codespaces/developing-in-a-codespace/default-environment-variables-for-your-codespace#list-of-default-environment-variables
    GITHUB_REF_NAME: envAsString(processEnv['GITHUB_REF_NAME']),
    // The type of ref that triggered the workflow run. Valid values are branch or tag.
    // https://docs.github.com/en/codespaces/developing-in-a-codespace/default-environment-variables-for-your-codespace#list-of-default-environment-variables
    GITHUB_REF_TYPE: envAsString(processEnv['GITHUB_REF_TYPE']),
    // The owner and repository name. For example, octocat/Hello-World.
    // https://docs.github.com/en/codespaces/developing-in-a-codespace/default-environment-variables-for-your-codespace#list-of-default-environment-variables
    GITHUB_REPOSITORY: envAsString(processEnv['GITHUB_REPOSITORY']),
    // The URL of the GitHub server. For example, https://github.com.
    // https://docs.github.com/en/codespaces/developing-in-a-codespace/default-environment-variables-for-your-codespace#list-of-default-environment-variables
    GITHUB_SERVER_URL: envAsString(processEnv['GITHUB_SERVER_URL']) || 'https://github.com',
    // The GITHUB_TOKEN secret is a GitHub App installation access token.
    // The token's permissions are limited to the repository that contains the
    // workflow.
    // https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#about-the-github_token-secret
    GITHUB_TOKEN,
    // Comp-time inlined @cyclonedx/cdxgen package version.
    // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_CYCLONEDX_CDXGEN_VERSION']".
    INLINED_SOCKET_CLI_CYCLONEDX_CDXGEN_VERSION: envAsString("11.6.0"),
    // Comp-time inlined Socket package homepage.
    // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_HOMEPAGE']".
    INLINED_SOCKET_CLI_HOMEPAGE: envAsString("https://github.com/SocketDev/socket-cli"),
    // Comp-time inlined flag to determine if this is the Legacy build.
    // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_LEGACY_BUILD']".
    INLINED_SOCKET_CLI_LEGACY_BUILD: envAsBoolean(false),
    // Comp-time inlined Socket package name.
    // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_NAME']".
    INLINED_SOCKET_CLI_NAME: envAsString("socket"),
    // Comp-time inlined flag to determine if this is a published build.
    // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_PUBLISHED_BUILD']".
    INLINED_SOCKET_CLI_PUBLISHED_BUILD: envAsBoolean(true),
    // Comp-time inlined flag to determine if this is the Sentry build.
    // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_SENTRY_BUILD']".
    INLINED_SOCKET_CLI_SENTRY_BUILD: envAsBoolean(false),
    // Comp-time inlined synp package version.
    // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_SYNP_VERSION']".
    INLINED_SOCKET_CLI_SYNP_VERSION: envAsString("1.9.14"),
    // Comp-time inlined Socket package version.
    // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
    INLINED_SOCKET_CLI_VERSION: envAsString("1.0.95"),
    // Comp-time inlined Socket package version hash.
    // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION_HASH']".
    INLINED_SOCKET_CLI_VERSION_HASH: envAsString("1.0.95:3a1dced:9ca0d7d3:pub"),
    // The absolute location of the %localappdata% folder on Windows used to store
    // user-specific, non-roaming application data, like temporary files, cached
    // data, and program settings, that are specific to the current machine and user.
    LOCALAPPDATA: envAsString(processEnv[LOCALAPPDATA]),
    // Enable the module compile cache for the Node.js instance.
    // https://nodejs.org/api/cli.html#node_compile_cachedir
    NODE_COMPILE_CACHE:
    // Lazily access constants.SUPPORTS_NODE_COMPILE_CACHE_ENV_VAR.
    constants.SUPPORTS_NODE_COMPILE_CACHE_ENV_VAR ?
    // Lazily access constants.socketCachePath.
    constants.socketCachePath : '',
    // Well known "root" CAs (like VeriSign) will be extended with the extra
    // certificates in file. The file should consist of one or more trusted
    // certificates in PEM format.
    // https://nodejs.org/api/cli.html#node_extra_ca_certsfile
    NODE_EXTRA_CA_CERTS: envAsString(processEnv['NODE_EXTRA_CA_CERTS']) ||
    // Commonly used environment variable to specify the path to a single
    // PEM-encoded certificate file.
    envAsString(processEnv['SSL_CERT_FILE']),
    // PATH is an environment variable that lists directories where executable
    // programs are located. When a command is run, the system searches these
    // directories to find the executable.
    PATH: envAsString(processEnv['PATH']),
    // Accept risks of a Socket wrapped npm/npx run.
    SOCKET_CLI_ACCEPT_RISKS: envAsBoolean(processEnv[SOCKET_CLI_ACCEPT_RISKS]),
    // Change the base URL for Socket API calls.
    // https://github.com/SocketDev/socket-cli?tab=readme-ov-file#environment-variables-for-development
    SOCKET_CLI_API_BASE_URL: envAsString(processEnv['SOCKET_CLI_API_BASE_URL']) ||
    // TODO: Remove legacy environment variable name.
    envAsString(processEnv['SOCKET_SECURITY_API_BASE_URL']) || getConfigValueOrUndef('apiBaseUrl') || 'https://api.socket.dev/v0/',
    // Set the proxy that all requests are routed through.
    // https://github.com/SocketDev/socket-cli?tab=readme-ov-file#environment-variables-for-development
    SOCKET_CLI_API_PROXY: envAsString(processEnv['SOCKET_CLI_API_PROXY']) ||
    // TODO: Remove legacy environment variable name.
    envAsString(processEnv['SOCKET_SECURITY_API_PROXY']) ||
    // Commonly used environment variables to specify routing requests through
    // a proxy server.
    envAsString(processEnv['HTTPS_PROXY']) || envAsString(processEnv['https_proxy']) || envAsString(processEnv['HTTP_PROXY']) || envAsString(processEnv['http_proxy']),
    // Set the timeout in milliseconds for Socket API requests.
    // https://nodejs.org/api/http.html#httprequesturl-options-callback
    SOCKET_CLI_API_TIMEOUT: envAsNumber(processEnv['SOCKET_CLI_API_TOKEN']),
    // Set the Socket API token.
    // https://github.com/SocketDev/socket-cli?tab=readme-ov-file#environment-variables
    SOCKET_CLI_API_TOKEN: envAsString(processEnv['SOCKET_CLI_API_TOKEN']) ||
    // TODO: Remove legacy environment variable names.
    envAsString(processEnv['SOCKET_CLI_API_KEY']) || envAsString(processEnv['SOCKET_SECURITY_API_TOKEN']) || envAsString(processEnv['SOCKET_SECURITY_API_KEY']),
    // A JSON stringified Socket configuration object.
    SOCKET_CLI_CONFIG: envAsString(processEnv['SOCKET_CLI_CONFIG']),
    // The git config user.email used by Socket CLI.
    SOCKET_CLI_GIT_USER_EMAIL: envAsString(processEnv['SOCKET_CLI_GIT_USER_EMAIL']) || 'github-actions[bot]@users.noreply.github.com',
    // The git config user.name used by Socket CLI.
    SOCKET_CLI_GIT_USER_NAME: envAsString(processEnv['SOCKET_CLI_GIT_USER_NAME']) || envAsString(processEnv['SOCKET_CLI_GIT_USERNAME']) || 'github-actions[bot]',
    // Change the base URL for GitHub REST API calls.
    // https://docs.github.com/en/rest
    SOCKET_CLI_GITHUB_API_URL: envAsString(processEnv['SOCKET_CLI_GITHUB_API_URL']) || readOrDefaultSocketJson(process.cwd())?.defaults?.scan?.github?.githubApiUrl || 'https://api.github.com',
    // A classic GitHub personal access token with the "repo" scope or a
    // fine-grained access token with at least read/write permissions set for
    // "Contents" and "Pull Request".
    // https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens
    SOCKET_CLI_GITHUB_TOKEN: envAsString(processEnv['SOCKET_CLI_GITHUB_TOKEN']) ||
    // TODO: Remove undocumented legacy environment variable name.
    envAsString(processEnv['SOCKET_SECURITY_GITHUB_PAT']) || GITHUB_TOKEN,
    // Make the default API token `undefined`.
    SOCKET_CLI_NO_API_TOKEN: envAsBoolean(processEnv['SOCKET_CLI_NO_API_TOKEN']),
    // The absolute location of the npm directory.
    SOCKET_CLI_NPM_PATH: envAsString(processEnv['SOCKET_CLI_NPM_PATH']),
    // Specify the Socket organization slug.
    SOCKET_CLI_ORG_SLUG: envAsString(processEnv['SOCKET_CLI_ORG_SLUG']) ||
    // Coana CLI accepts the SOCKET_ORG_SLUG environment variable.
    envAsString(processEnv['SOCKET_ORG_SLUG']),
    // View all risks of a Socket wrapped npm/npx run.
    SOCKET_CLI_VIEW_ALL_RISKS: envAsBoolean(processEnv[SOCKET_CLI_VIEW_ALL_RISKS]),
    // Specifies the type of terminal or terminal emulator being used by the process.
    TERM: envAsString(processEnv['TERM']),
    // The location of the base directory on Linux and MacOS used to store
    // user-specific data files, defaulting to $HOME/.local/share if not set or empty.
    XDG_DATA_HOME: envAsString(processEnv['XDG_DATA_HOME'])
  });
};
const lazyBashRcPath = () =>
// Lazily access constants.homePath.
path.join(constants.homePath, '.bashrc');
const lazyBinPath = () =>
// Lazily access constants.rootPath.
path.join(constants.rootPath, 'bin');
const lazyBinCliPath = () =>
// Lazily access constants.binPath.
path.join(constants.binPath, 'cli.js');
const lazyBlessedContribPath = () =>
// Lazily access constants.externalPath.
path.join(constants.externalPath, 'blessed-contrib');
const lazyBlessedOptions = () => Object.freeze({
  smartCSR: true,
  // Lazily access constants.WIN32.
  term: constants.WIN32 ? 'windows-ansi' : 'xterm',
  useBCE: true
});
const lazyBlessedPath = () =>
// Lazily access constants.externalPath.
path.join(constants.externalPath, 'blessed');
const lazyCoanaBinPath = () =>
// Lazily access constants.coanaPath.
path.join(constants.coanaPath, 'cli-wrapper.mjs');
const lazyCoanaPath = () =>
// Lazily access constants.externalPath.
path.join(constants.externalPath, '@coana-tech/cli');
const lazyDistCliPath = () =>
// Lazily access constants.distPath.
path.join(constants.distPath, 'cli.js');
const lazyDistPath = () =>
// Lazily access constants.rootPath.
path.join(constants.rootPath, 'dist');
const lazyExternalPath = () =>
// Lazily access constants.rootPath.
path.join(constants.rootPath, 'external');
const lazyGithubCachePath = () =>
// Lazily access constants.socketCachePath.
path.join(constants.socketCachePath, 'github');
const lazyHomePath = () => os.homedir();
const lazyInstrumentWithSentryPath = () =>
// Lazily access constants.distPath.
path.join(constants.distPath, 'instrument-with-sentry.js');
const lazyMinimumVersionByAgent = () => new Map([
// Bun >=1.1.39 supports the text-based lockfile.
// https://bun.sh/blog/bun-lock-text-lockfile
[BUN, '1.1.39'],
// The npm version bundled with Node 18.
// https://nodejs.org/en/about/previous-releases#looking-for-the-latest-release-of-a-version-branch
['npm', '10.8.2'],
// 8.x is the earliest version to support Node 18.
// https://pnpm.io/installation#compatibility
// https://www.npmjs.com/package/pnpm?activeTab=versions
[PNPM, '8.15.7'],
// 4.x supports >= Node 18.12.0
// https://github.com/yarnpkg/berry/blob/%40yarnpkg/core/4.1.0/CHANGELOG.md#400
[YARN_BERRY, '4.0.0'],
// Latest 1.x.
// https://www.npmjs.com/package/yarn?activeTab=versions
[YARN_CLASSIC, '1.22.22'],
// vlt does not support overrides so we don't gate on it.
[VLT, '*']]);
const lazyNmBinPath = () =>
// Lazily access constants.rootPath.
path.join(constants.rootPath, 'node_modules/.bin');

// Redefine registryConstants.nodeHardenFlags to account for the
// INLINED_SOCKET_CLI_SENTRY_BUILD environment variable.
const lazyNodeHardenFlags = () => Object.freeze(
// Lazily access constants.ENV.INLINED_SOCKET_CLI_SENTRY_BUILD.
constants.ENV.INLINED_SOCKET_CLI_SENTRY_BUILD ||
// Lazily access constants.WIN32.
constants.WIN32 ? [] :
// Harden Node security.
// https://nodejs.org/en/learn/getting-started/security-best-practices
['--disable-proto', 'throw',
// We have contributed the following patches to our dependencies to make
// Node's --frozen-intrinsics workable.
// √ https://github.com/SBoudrias/Inquirer.js/pull/1683
// √ https://github.com/pnpm/components/pull/23
'--frozen-intrinsics', '--no-deprecation']);
const lazyNodeMemoryFlags = () => {
  const flags = /*@__PURE__*/require$1(
  // Lazily access constants.rootPath.
  path.join(constants.rootPath, 'dist/flags.js'));
  const getMaxOldSpaceSizeFlag = flags.getMaxOldSpaceSizeFlag;
  const getMaxSemiSpaceSizeFlag = flags.getMaxSemiSpaceSizeFlag;
  return Object.freeze([`--max-old-space-size=${getMaxOldSpaceSizeFlag()}`, `--max-semi-space-size=${getMaxSemiSpaceSizeFlag()}`]);
};
const lazyNpmCachePath = () => {
  const spawnHelpers = /*@__PURE__*/require$1('../external/@socketsecurity/registry/lib/spawn');
  const spawnSync = spawnHelpers.spawnSync;
  return spawnSync(
  // Lazily access constants.npmExecPath.
  constants.npmExecPath, ['config', 'get', 'cache'], getNpmStdioPipeOptions()).stdout;
};
const lazyNpmGlobalPrefix = () => {
  const spawnHelpers = /*@__PURE__*/require$1('../external/@socketsecurity/registry/lib/spawn');
  const spawnSync = spawnHelpers.spawnSync;
  return spawnSync(
  // Lazily access constants.npmExecPath.
  constants.npmExecPath, ['prefix', '-g'], getNpmStdioPipeOptions()).stdout;
};
const lazyNpmNmNodeGypPath = () => path.join(
// Lazily access constants.npmRealExecPath.
constants.npmRealExecPath, '../../node_modules/node-gyp/bin/node-gyp.js');
const lazyProcessEnv = () =>
// Lazily access constants.ENV.
Object.setPrototypeOf(Object.fromEntries(Object.entries(constants.ENV).reduce((entries, entry) => {
  const {
    0: key,
    1: value
  } = entry;
  if (key.startsWith('INLINED_SOCKET_CLI_')) {
    return entries;
  }
  if (typeof value === 'string') {
    if (value) {
      entries.push(entry);
    }
  } else if (typeof value === 'boolean' && value) {
    entries.push([key, '1']);
  }
  return entries;
}, [])), null);
const lazyRootPath = () => path.join(fs.realpathSync.native(__dirname$1), '..');
const lazyShadowBinPath = () =>
// Lazily access constants.rootPath.
path.join(constants.rootPath, 'shadow-npm-bin');
const lazyShadowNpmBinPath = () =>
// Lazily access constants.distPath.
path.join(constants.distPath, 'shadow-npm-bin.js');
const lazyShadowNpmInjectPath = () =>
// Lazily access constants.distPath.
path.join(constants.distPath, 'shadow-npm-inject.js');
const lazySocketAppDataPath = () => {
  // Get the OS app data directory:
  // - Win: %LOCALAPPDATA% or fail?
  // - Mac: %XDG_DATA_HOME% or fallback to "~/Library/Application Support/"
  // - Linux: %XDG_DATA_HOME% or fallback to "~/.local/share/"
  // Note: LOCALAPPDATA is typically: C:\Users\USERNAME\AppData
  // Note: XDG stands for "X Desktop Group", nowadays "freedesktop.org"
  //       On most systems that path is: $HOME/.local/share
  // Then append `socket/settings`, so:
  // - Win: %LOCALAPPDATA%\socket\settings or return undefined
  // - Mac: %XDG_DATA_HOME%/socket/settings or "~/Library/Application Support/socket/settings"
  // - Linux: %XDG_DATA_HOME%/socket/settings or "~/.local/share/socket/settings"

  // Lazily access constants.WIN32.
  const {
    WIN32
  } = constants;
  let dataHome = WIN32 ?
  // Lazily access constants.ENV.LOCALAPPDATA
  constants.ENV.LOCALAPPDATA :
  // Lazily access constants.ENV.XDG_DATA_HOME
  constants.ENV.XDG_DATA_HOME;
  if (!dataHome) {
    if (WIN32) {
      const logger = /*@__PURE__*/require$1('../external/@socketsecurity/registry/lib/logger');
      logger.warn(`Missing %${LOCALAPPDATA}%`);
    } else {
      dataHome = path.join(
      // Lazily access constants.homePath.
      constants.homePath,
      // Lazily access constants.DARWIN.
      constants.DARWIN ? 'Library/Application Support' : '.local/share');
    }
  }
  return dataHome ? path.join(dataHome, 'socket/settings') : undefined;
};
const lazySocketCachePath = () =>
// Lazily access constants.rootPath.
path.join(constants.rootPath, '.cache');
const lazySocketRegistryPath = () =>
// Lazily access constants.externalPath.
path.join(constants.externalPath, '@socketsecurity/registry');
const lazyZshRcPath = () =>
// Lazily access constants.homePath.
path.join(constants.homePath, '.zshrc');
const constants = createConstantsObject({
  ...registryConstantsAttribs.props,
  ALERT_TYPE_CRITICAL_CVE,
  ALERT_TYPE_CVE,
  ALERT_TYPE_MEDIUM_CVE,
  ALERT_TYPE_MILD_CVE,
  API_V0_URL,
  BINARY_LOCK_EXT,
  BUN,
  DOT_SOCKET_DOT_FACTS_JSON,
  DRY_RUN_LABEL,
  DRY_RUN_BAILING_NOW,
  DRY_RUN_NOT_SAVING,
  ENV: undefined,
  LOCK_EXT,
  NPM_BUGGY_OVERRIDES_PATCHED_VERSION,
  NPM_REGISTRY_URL,
  PNPM,
  REDACTED,
  SOCKET_CLI_ACCEPT_RISKS,
  SOCKET_CLI_BIN_NAME,
  SOCKET_CLI_FIX,
  SOCKET_CLI_ISSUES_URL,
  SOCKET_CLI_OPTIMIZE,
  SOCKET_CLI_SAFE_BIN,
  SOCKET_CLI_SAFE_PROGRESS,
  SOCKET_CLI_VIEW_ALL_RISKS,
  SOCKET_DEFAULT_BRANCH,
  SOCKET_DEFAULT_REPOSITORY,
  SOCKET_WEBSITE_URL,
  VLT,
  YARN,
  YARN_BERRY,
  YARN_CLASSIC,
  YARN_LOCK,
  bashRcPath: undefined,
  binPath: undefined,
  binCliPath: undefined,
  blessedContribPath: undefined,
  blessedOptions: undefined,
  blessedPath: undefined,
  coanaBinPath: undefined,
  coanaPath: undefined,
  distCliPath: undefined,
  distPath: undefined,
  externalPath: undefined,
  githubCachePath: undefined,
  homePath: undefined,
  instrumentWithSentryPath: undefined,
  minimumVersionByAgent: undefined,
  nmBinPath: undefined,
  nodeHardenFlags: undefined,
  nodeMemoryFlags: undefined,
  npmCachePath: undefined,
  npmGlobalPrefix: undefined,
  npmNmNodeGypPath: undefined,
  processEnv: undefined,
  rootPath: undefined,
  shadowBinPath: undefined,
  shadowNpmInjectPath: undefined,
  shadowNpmBinPath: undefined,
  socketAppDataPath: undefined,
  socketCachePath: undefined,
  socketRegistryPath: undefined,
  zshRcPath: undefined
}, {
  getters: {
    ...registryConstantsAttribs.getters,
    ENV: LAZY_ENV,
    bashRcPath: lazyBashRcPath,
    binCliPath: lazyBinCliPath,
    binPath: lazyBinPath,
    blessedContribPath: lazyBlessedContribPath,
    blessedOptions: lazyBlessedOptions,
    blessedPath: lazyBlessedPath,
    coanaBinPath: lazyCoanaBinPath,
    coanaPath: lazyCoanaPath,
    distCliPath: lazyDistCliPath,
    distPath: lazyDistPath,
    externalPath: lazyExternalPath,
    githubCachePath: lazyGithubCachePath,
    homePath: lazyHomePath,
    instrumentWithSentryPath: lazyInstrumentWithSentryPath,
    minimumVersionByAgent: lazyMinimumVersionByAgent,
    nmBinPath: lazyNmBinPath,
    nodeHardenFlags: lazyNodeHardenFlags,
    nodeMemoryFlags: lazyNodeMemoryFlags,
    npmCachePath: lazyNpmCachePath,
    npmGlobalPrefix: lazyNpmGlobalPrefix,
    npmNmNodeGypPath: lazyNpmNmNodeGypPath,
    processEnv: lazyProcessEnv,
    rootPath: lazyRootPath,
    shadowBinPath: lazyShadowBinPath,
    shadowNpmBinPath: lazyShadowNpmBinPath,
    shadowNpmInjectPath: lazyShadowNpmInjectPath,
    socketAppDataPath: lazySocketAppDataPath,
    socketCachePath: lazySocketCachePath,
    socketRegistryPath: lazySocketRegistryPath,
    zshRcPath: lazyZshRcPath
  },
  internals: {
    ...registryConstantsAttribs.internals,
    getIpc,
    getSentry() {
      return _Sentry;
    },
    setSentry(Sentry) {
      if (_Sentry === undefined) {
        _Sentry = Sentry;
        return true;
      }
      return false;
    }
  }
});

module.exports = constants;
//# debugId=f765c73c-c572-4e79-8f5c-a63084891046
//# sourceMappingURL=constants.js.map
