{"version":3,"sources":["jsdelivr-header.js","/npm/@babel/plugin-transform-property-mutators@7.28.6/src/index.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,2FCNA,IAAA,mBAAA,QAAA,8BACA,WAAA,QAAA,mBACA,MAAA,QAAA,eAAyC,SAAA,QAAA,SAE1B,EAAA,6BAAQ,IACrB,EAAI,cAA+B,GAE5B,CACL,KAAM,8BAEN,QAAS,CACP,iBAAiB,GACf,MAAM,KAAE,GAAS,EACjB,IAAI,EACJ,MAAM,EAAgB,EAAK,WAAW,QAAO,SAAU,GACrD,QACE,YAAE,eAAe,KAChB,EAAK,WACS,QAAd,EAAK,MAAgC,QAAd,EAAK,UAE7B,EAAA,yBACa,MAAV,MAAe,CAAC,EACjB,IAEK,EAGX,SAEmB,IAAf,IAIJ,EAAK,WAAa,EAElB,EAAK,YACH,YAAE,eACA,YAAE,iBACA,YAAE,WAAW,UACb,YAAE,WAAW,qBAEf,CAAC,GAAM,EAAA,2BAAe,MAG5B","file":"/npm/@babel/plugin-transform-property-mutators@7.28.6/lib/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@babel/plugin-transform-property-mutators@7.28.6/lib/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","import { declare } from \"@babel/helper-plugin-utils\";\nimport { type MutatorMap, pushAccessor, toDefineObject } from \"./define-map.ts\";\nimport { types as t } from \"@babel/core\";\n\nexport default declare(api => {\n  api.assertVersion(REQUIRED_VERSION(7));\n\n  return {\n    name: \"transform-property-mutators\",\n\n    visitor: {\n      ObjectExpression(path) {\n        const { node } = path;\n        let mutatorMap: MutatorMap | undefined;\n        const newProperties = node.properties.filter(function (prop) {\n          if (\n            t.isObjectMethod(prop) &&\n            !prop.computed &&\n            (prop.kind === \"get\" || prop.kind === \"set\")\n          ) {\n            pushAccessor(\n              (mutatorMap ??= {}),\n              prop as t.ObjectMethod & { kind: \"get\" | \"set\"; computed: false },\n            );\n            return false;\n          }\n          return true;\n        });\n\n        if (mutatorMap === undefined) {\n          return;\n        }\n\n        node.properties = newProperties;\n\n        path.replaceWith(\n          t.callExpression(\n            t.memberExpression(\n              t.identifier(\"Object\"),\n              t.identifier(\"defineProperties\"),\n            ),\n            [node, toDefineObject(mutatorMap)],\n          ),\n        );\n      },\n    },\n  };\n});\n"]}