var d = Object.defineProperty;
var c = (o, s, t) => s in o ? d(o, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[s] = t;
var i = (o, s, t) => (c(o, typeof s != "symbol" ? s + "" : s, t), t);
const l = class l {
  constructor(s, t) {
    i(this, "modules", {});
    this.quill = s, this.options = t;
  }
  init() {
    Object.keys(this.options.modules).forEach((s) => {
      this.modules[s] == null && this.addModule(s);
    });
  }
  addModule(s) {
    const t = this.quill.constructor.import(`modules/${s}`);
    return this.modules[s] = new t(this.quill, this.options.modules[s] || {}), this.modules[s];
  }
};
i(l, "DEFAULTS", {
  modules: {}
}), i(l, "themes", {
  default: l
});
let u = l;
export {
  u as default
};
