// Force strict mode and setup for ESM
"use strict";
const __papertOriginalEmitWarning = process.emitWarning.bind(process);
process.emitWarning = function patchedEmitWarning(warning, ...args) {
  if (!process.env.PAPERT_SHOW_NODE_DEPRECATIONS) {
    const warningCode =
      (warning && typeof warning === 'object' && 'code' in warning && warning.code) ||
      (args.length > 1 && typeof args[1] === 'string' && args[1]) ||
      (args.length > 0 &&
        args[0] &&
        typeof args[0] === 'object' &&
        'code' in args[0] &&
        args[0].code);
    if (warningCode === 'DEP0040' || warningCode === 'DEP0169') {
      return;
    }
  }
  return __papertOriginalEmitWarning(warning, ...args);
};
import {
  __esm,
  __export,
  init_esbuild_shims
} from "./chunk-NCFEMX7E.js";

// packages/cli/src/patches/node-fetch.ts
var node_fetch_exports = {};
__export(node_fetch_exports, {
  default: () => node_fetch_default
});
var fetchImpl, node_fetch_default;
var init_node_fetch = __esm({
  "packages/cli/src/patches/node-fetch.ts"() {
    init_esbuild_shims();
    fetchImpl = globalThis.fetch;
    if (!fetchImpl) {
      throw new Error("Global fetch is unavailable in this Node runtime.");
    }
    node_fetch_default = fetchImpl;
  }
});

export {
  node_fetch_default,
  node_fetch_exports,
  init_node_fetch
};
/**
 * @license
 * * Copyright 2026 Papert-code
 * SPDX-License-Identifier: Apache-2.0
 */
