{
  "version": 3,
  "sources": ["../../src/utils/object-operation.mts"],
  "sourcesContent": ["import type { AnyConstructor } from \"../types/concepts.mjs\";\nimport type { OmitKey } from \"../types/object.mjs\";\nimport { invalidOperation } from \"./internal/exceptions.mjs\";\n\nexport type PropertyConfig = OmitKey<\n  PropertyDescriptor,\n  \"get\" | \"set\" | \"value\"\n>;\n\nexport const overwriteDescriptorConfig = (\n  overwrite: PropertyConfig | undefined,\n  descriptor: PropertyDescriptor\n): PropertyDescriptor => ({\n  ...descriptor,\n  configurable:\n    typeof overwrite?.configurable === \"boolean\"\n      ? overwrite.configurable\n      : descriptor.configurable,\n  enumerable:\n    typeof overwrite?.enumerable === \"boolean\"\n      ? overwrite.enumerable\n      : descriptor.enumerable,\n  writable:\n    typeof overwrite?.writable === \"boolean\"\n      ? overwrite.writable\n      : descriptor.writable,\n});\n\nexport const sealedConstruct = (\n  target: AnyConstructor,\n  newTarget: AnyConstructor | Function\n) => {\n  if (target !== newTarget) {\n    invalidOperation(\"Cannot instantiate a subclass of a sealed class.\");\n  }\n};\n"],
  "mappings": "AAEA;AAOO,MAAM,4BAA4B,CACvC,WACA,eACwB;AAAA,KACrB;AAAA,EACH,cACE,OAAO,WAAW,iBAAiB,YAC/B,UAAU,eACV,WAAW;AAAA,EACjB,YACE,OAAO,WAAW,eAAe,YAC7B,UAAU,aACV,WAAW;AAAA,EACjB,UACE,OAAO,WAAW,aAAa,YAC3B,UAAU,WACV,WAAW;AAAA;AAGZ,MAAM,kBAAkB,CAC7B,QACA,cACG;AACH,MAAI,WAAW,WAAW;AACxB,qBAAiB;AAAA;AAAA;",
  "names": []
}
