"use strict";
/* Socket Lib - Built with esbuild */
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var error_exports = {};
__export(error_exports, {
  AggregateErrorCtor: () => AggregateErrorCtor,
  ErrorCaptureStackTrace: () => ErrorCaptureStackTrace,
  ErrorCtor: () => ErrorCtor,
  ErrorIsError: () => ErrorIsError,
  ErrorPrepareStackTrace: () => ErrorPrepareStackTrace,
  ErrorStackTraceLimit: () => ErrorStackTraceLimit,
  EvalErrorCtor: () => EvalErrorCtor,
  RangeErrorCtor: () => RangeErrorCtor,
  ReferenceErrorCtor: () => ReferenceErrorCtor,
  SyntaxErrorCtor: () => SyntaxErrorCtor,
  TypeErrorCtor: () => TypeErrorCtor,
  URIErrorCtor: () => URIErrorCtor
});
module.exports = __toCommonJS(error_exports);
const ErrorCtor = Error;
const AggregateErrorCtor = AggregateError;
const EvalErrorCtor = EvalError;
const RangeErrorCtor = RangeError;
const ReferenceErrorCtor = ReferenceError;
const SyntaxErrorCtor = SyntaxError;
const TypeErrorCtor = TypeError;
const URIErrorCtor = URIError;
const ErrorIsError = Error.isError;
const ErrorCaptureStackTrace = Error.captureStackTrace;
const ErrorPrepareStackTrace = Error.prepareStackTrace;
const _stackTraceLimitGetter = (() => {
  const getter = Error.__lookupGetter__?.("stackTraceLimit");
  if (typeof getter === "function") {
    return () => getter.call(Error);
  }
  return void 0;
})();
function ErrorStackTraceLimit() {
  if (_stackTraceLimitGetter) {
    return _stackTraceLimitGetter();
  }
  return Error.stackTraceLimit;
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  AggregateErrorCtor,
  ErrorCaptureStackTrace,
  ErrorCtor,
  ErrorIsError,
  ErrorPrepareStackTrace,
  ErrorStackTraceLimit,
  EvalErrorCtor,
  RangeErrorCtor,
  ReferenceErrorCtor,
  SyntaxErrorCtor,
  TypeErrorCtor,
  URIErrorCtor
});
