import { __exports as r } from "../../../../../../../_virtual/disposables.js";
import { __exports as f } from "../../../../../../../_virtual/disposables.js";
Object.defineProperty(r, "__esModule", {
  value: !0
});
r.disposables = i;
r.shared = void 0;
function i() {
  let e = [];
  return {
    add(s) {
      return e.push(s), () => {
        let d = e.indexOf(s);
        d !== -1 && e.splice(d, 1);
      };
    },
    dispose() {
      e.splice(0).forEach((s) => s());
    }
  };
}
let o = i();
r.shared = o;
export {
  f as default
};
//# sourceMappingURL=disposables.js.map
