import {
  IN_frame,
  OUT_frame
} from "./chunk-4UWS5Y3N.js";

// src/spliceevent.exonskip.getdefault.js
function spliceevent_exonskip_getdefault_default(events) {
  let evt2showidx = 0;
  for (let i = 1; i < events.length; i++) {
    const e = events[i];
    const e2show = events[evt2showidx];
    if (e.isskipexon && e2show.isaltexon) {
      evt2showidx = i;
      continue;
    }
    if (e.frame == OUT_frame && e2show.framenocheck) {
      evt2showidx = i;
      continue;
    }
    if (e.frame == IN_frame && e2show.frame != IN_frame) {
      evt2showidx = i;
      continue;
    }
  }
  return evt2showidx;
}

export {
  spliceevent_exonskip_getdefault_default
};
//# sourceMappingURL=chunk-O3JB4PIX.js.map
