"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const ModelUtil = require("./ModelUtil.js");
function e(r, t) {
  return ModelUtil.is(r, "bpmn:CallActivity") ? false : ModelUtil.is(r, "bpmn:SubProcess") ? (t = t || ModelUtil.getDi(r), t && ModelUtil.is(t, "bpmndi:BPMNPlane") ? true : t && !!t.isExpanded) : ModelUtil.is(r, "bpmn:Participant") ? !!ModelUtil.getBusinessObject(r).processRef : true;
}
function p(r) {
  return r && !!ModelUtil.getBusinessObject(r).triggeredByEvent;
}
exports.isEventSubProcess = p;
exports.isExpanded = e;
