import { isAny } from "./chunk-L5SG54UC.js"; import { isString } from "./chunk-4AK4GF4H.js"; // node_modules/.pnpm/bpmn-js@16.3.2/node_modules/bpmn-js/lib/features/modeling/util/ModelingUtil.js function getParent(element, anyType) { if (isString(anyType)) { anyType = [anyType]; } while (element = element.parent) { if (isAny(element, anyType)) { return element; } } return null; } export { getParent }; //# sourceMappingURL=chunk-NRHG7SAN.js.map