"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 array_exports = {};
__export(array_exports, {
  ArrayBufferCtor: () => ArrayBufferCtor,
  ArrayBufferIsView: () => ArrayBufferIsView,
  ArrayCtor: () => ArrayCtor,
  ArrayFrom: () => ArrayFrom,
  ArrayFromAsync: () => ArrayFromAsync,
  ArrayIsArray: () => ArrayIsArray,
  ArrayOf: () => ArrayOf,
  ArrayPrototypeAt: () => ArrayPrototypeAt,
  ArrayPrototypeConcat: () => ArrayPrototypeConcat,
  ArrayPrototypeCopyWithin: () => ArrayPrototypeCopyWithin,
  ArrayPrototypeEntries: () => ArrayPrototypeEntries,
  ArrayPrototypeEvery: () => ArrayPrototypeEvery,
  ArrayPrototypeFill: () => ArrayPrototypeFill,
  ArrayPrototypeFilter: () => ArrayPrototypeFilter,
  ArrayPrototypeFind: () => ArrayPrototypeFind,
  ArrayPrototypeFindIndex: () => ArrayPrototypeFindIndex,
  ArrayPrototypeFindLast: () => ArrayPrototypeFindLast,
  ArrayPrototypeFindLastIndex: () => ArrayPrototypeFindLastIndex,
  ArrayPrototypeFlat: () => ArrayPrototypeFlat,
  ArrayPrototypeFlatMap: () => ArrayPrototypeFlatMap,
  ArrayPrototypeForEach: () => ArrayPrototypeForEach,
  ArrayPrototypeIncludes: () => ArrayPrototypeIncludes,
  ArrayPrototypeIndexOf: () => ArrayPrototypeIndexOf,
  ArrayPrototypeJoin: () => ArrayPrototypeJoin,
  ArrayPrototypeKeys: () => ArrayPrototypeKeys,
  ArrayPrototypeLastIndexOf: () => ArrayPrototypeLastIndexOf,
  ArrayPrototypeMap: () => ArrayPrototypeMap,
  ArrayPrototypePop: () => ArrayPrototypePop,
  ArrayPrototypePush: () => ArrayPrototypePush,
  ArrayPrototypeReduce: () => ArrayPrototypeReduce,
  ArrayPrototypeReduceRight: () => ArrayPrototypeReduceRight,
  ArrayPrototypeReverse: () => ArrayPrototypeReverse,
  ArrayPrototypeShift: () => ArrayPrototypeShift,
  ArrayPrototypeSlice: () => ArrayPrototypeSlice,
  ArrayPrototypeSome: () => ArrayPrototypeSome,
  ArrayPrototypeSort: () => ArrayPrototypeSort,
  ArrayPrototypeSplice: () => ArrayPrototypeSplice,
  ArrayPrototypeToLocaleString: () => ArrayPrototypeToLocaleString,
  ArrayPrototypeToReversed: () => ArrayPrototypeToReversed,
  ArrayPrototypeToSorted: () => ArrayPrototypeToSorted,
  ArrayPrototypeToSpliced: () => ArrayPrototypeToSpliced,
  ArrayPrototypeToString: () => ArrayPrototypeToString,
  ArrayPrototypeUnshift: () => ArrayPrototypeUnshift,
  ArrayPrototypeValues: () => ArrayPrototypeValues,
  ArrayPrototypeWith: () => ArrayPrototypeWith,
  AtomicsWait: () => AtomicsWait,
  DataViewCtor: () => DataViewCtor,
  Float32ArrayCtor: () => Float32ArrayCtor,
  Float64ArrayCtor: () => Float64ArrayCtor,
  Int16ArrayCtor: () => Int16ArrayCtor,
  Int32ArrayCtor: () => Int32ArrayCtor,
  Int8ArrayCtor: () => Int8ArrayCtor,
  IteratorPrototypeNext: () => IteratorPrototypeNext,
  IteratorPrototypeReturn: () => IteratorPrototypeReturn,
  Uint16ArrayCtor: () => Uint16ArrayCtor,
  Uint32ArrayCtor: () => Uint32ArrayCtor,
  Uint8ArrayCtor: () => Uint8ArrayCtor,
  Uint8ClampedArrayCtor: () => Uint8ClampedArrayCtor
});
module.exports = __toCommonJS(array_exports);
var import_primordial = require("../smol/primordial");
var import_uncurry = require("./uncurry");
const _smolPrimordial = (0, import_primordial.getSmolPrimordial)();
const ArrayCtor = Array;
const ArrayBufferCtor = ArrayBuffer;
const DataViewCtor = DataView;
const Float32ArrayCtor = Float32Array;
const Float64ArrayCtor = Float64Array;
const Int8ArrayCtor = Int8Array;
const Int16ArrayCtor = Int16Array;
const Int32ArrayCtor = Int32Array;
const Uint8ArrayCtor = Uint8Array;
const Uint8ClampedArrayCtor = Uint8ClampedArray;
const Uint16ArrayCtor = Uint16Array;
const Uint32ArrayCtor = Uint32Array;
const ArrayFrom = Array.from;
const ArrayFromAsync = Array.fromAsync;
const ArrayIsArray = _smolPrimordial?.arrayIsArray ?? Array.isArray;
const ArrayOf = Array.of;
const ArrayBufferIsView = ArrayBuffer.isView;
const AtomicsWait = Atomics.wait;
const ArrayPrototypeAt = (0, import_uncurry.uncurryThis)(Array.prototype.at);
const ArrayPrototypeConcat = (0, import_uncurry.uncurryThis)(Array.prototype.concat);
const ArrayPrototypeCopyWithin = (0, import_uncurry.uncurryThis)(Array.prototype.copyWithin);
const ArrayPrototypeEntries = (0, import_uncurry.uncurryThis)(Array.prototype.entries);
const ArrayPrototypeEvery = (0, import_uncurry.uncurryThis)(Array.prototype.every);
const ArrayPrototypeFill = (0, import_uncurry.uncurryThis)(Array.prototype.fill);
const ArrayPrototypeFilter = (0, import_uncurry.uncurryThis)(Array.prototype.filter);
const ArrayPrototypeFind = (0, import_uncurry.uncurryThis)(Array.prototype.find);
const ArrayPrototypeFindIndex = (0, import_uncurry.uncurryThis)(Array.prototype.findIndex);
const ArrayPrototypeFindLast = (0, import_uncurry.uncurryThis)(Array.prototype.findLast);
const ArrayPrototypeFindLastIndex = (0, import_uncurry.uncurryThis)(
  Array.prototype.findLastIndex
);
const ArrayPrototypeFlat = (0, import_uncurry.uncurryThis)(Array.prototype.flat);
const ArrayPrototypeFlatMap = (0, import_uncurry.uncurryThis)(Array.prototype.flatMap);
const ArrayPrototypeForEach = (0, import_uncurry.uncurryThis)(Array.prototype.forEach);
const ArrayPrototypeIncludes = (0, import_uncurry.uncurryThis)(Array.prototype.includes);
const ArrayPrototypeIndexOf = (0, import_uncurry.uncurryThis)(Array.prototype.indexOf);
const ArrayPrototypeJoin = (0, import_uncurry.uncurryThis)(Array.prototype.join);
const ArrayPrototypeKeys = (0, import_uncurry.uncurryThis)(Array.prototype.keys);
const ArrayPrototypeLastIndexOf = (0, import_uncurry.uncurryThis)(
  Array.prototype.lastIndexOf
);
const ArrayPrototypeMap = (0, import_uncurry.uncurryThis)(Array.prototype.map);
const ArrayPrototypePop = (0, import_uncurry.uncurryThis)(Array.prototype.pop);
const ArrayPrototypePush = (0, import_uncurry.uncurryThis)(Array.prototype.push);
const ArrayPrototypeReduce = (0, import_uncurry.uncurryThis)(Array.prototype.reduce);
const ArrayPrototypeReduceRight = (0, import_uncurry.uncurryThis)(
  Array.prototype.reduceRight
);
const ArrayPrototypeReverse = (0, import_uncurry.uncurryThis)(Array.prototype.reverse);
const ArrayPrototypeShift = (0, import_uncurry.uncurryThis)(Array.prototype.shift);
const ArrayPrototypeSlice = (0, import_uncurry.uncurryThis)(Array.prototype.slice);
const ArrayPrototypeSome = (0, import_uncurry.uncurryThis)(Array.prototype.some);
const ArrayPrototypeSort = (0, import_uncurry.uncurryThis)(Array.prototype.sort);
const ArrayPrototypeSplice = (0, import_uncurry.uncurryThis)(Array.prototype.splice);
const ArrayPrototypeToLocaleString = (0, import_uncurry.uncurryThis)(
  Array.prototype.toLocaleString
);
const ArrayPrototypeToReversed = (0, import_uncurry.uncurryThis)(Array.prototype.toReversed);
const ArrayPrototypeToSorted = (0, import_uncurry.uncurryThis)(Array.prototype.toSorted);
const ArrayPrototypeToSpliced = (0, import_uncurry.uncurryThis)(
  Array.prototype.toSpliced
);
const ArrayPrototypeToString = (0, import_uncurry.uncurryThis)(Array.prototype.toString);
const ArrayPrototypeUnshift = (0, import_uncurry.uncurryThis)(Array.prototype.unshift);
const ArrayPrototypeValues = (0, import_uncurry.uncurryThis)(Array.prototype.values);
const ArrayPrototypeWith = (0, import_uncurry.uncurryThis)(Array.prototype.with);
const _anyIterator = (/* @__PURE__ */ new Map()).keys();
let _iteratorLookup = Object.getPrototypeOf(_anyIterator);
while (_iteratorLookup && typeof _iteratorLookup.next !== "function") {
  _iteratorLookup = Object.getPrototypeOf(_iteratorLookup);
}
const _iteratorProto = _iteratorLookup;
const IteratorPrototypeNext = (0, import_uncurry.uncurryThis)(_iteratorProto.next);
const IteratorPrototypeReturn = typeof _iteratorProto.return === "function" ? (0, import_uncurry.uncurryThis)(_iteratorProto.return) : void 0;
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  ArrayBufferCtor,
  ArrayBufferIsView,
  ArrayCtor,
  ArrayFrom,
  ArrayFromAsync,
  ArrayIsArray,
  ArrayOf,
  ArrayPrototypeAt,
  ArrayPrototypeConcat,
  ArrayPrototypeCopyWithin,
  ArrayPrototypeEntries,
  ArrayPrototypeEvery,
  ArrayPrototypeFill,
  ArrayPrototypeFilter,
  ArrayPrototypeFind,
  ArrayPrototypeFindIndex,
  ArrayPrototypeFindLast,
  ArrayPrototypeFindLastIndex,
  ArrayPrototypeFlat,
  ArrayPrototypeFlatMap,
  ArrayPrototypeForEach,
  ArrayPrototypeIncludes,
  ArrayPrototypeIndexOf,
  ArrayPrototypeJoin,
  ArrayPrototypeKeys,
  ArrayPrototypeLastIndexOf,
  ArrayPrototypeMap,
  ArrayPrototypePop,
  ArrayPrototypePush,
  ArrayPrototypeReduce,
  ArrayPrototypeReduceRight,
  ArrayPrototypeReverse,
  ArrayPrototypeShift,
  ArrayPrototypeSlice,
  ArrayPrototypeSome,
  ArrayPrototypeSort,
  ArrayPrototypeSplice,
  ArrayPrototypeToLocaleString,
  ArrayPrototypeToReversed,
  ArrayPrototypeToSorted,
  ArrayPrototypeToSpliced,
  ArrayPrototypeToString,
  ArrayPrototypeUnshift,
  ArrayPrototypeValues,
  ArrayPrototypeWith,
  AtomicsWait,
  DataViewCtor,
  Float32ArrayCtor,
  Float64ArrayCtor,
  Int16ArrayCtor,
  Int32ArrayCtor,
  Int8ArrayCtor,
  IteratorPrototypeNext,
  IteratorPrototypeReturn,
  Uint16ArrayCtor,
  Uint32ArrayCtor,
  Uint8ArrayCtor,
  Uint8ClampedArrayCtor
});
