import u from "../../../../@babel/runtime/helpers/esm/classCallCheck.mjs";
import h from "../../../../@babel/runtime/helpers/esm/createClass.mjs";
import t from "../../../../@babel/runtime/helpers/esm/defineProperty.mjs";
import { warning as s } from "../../../../rc-util/es/warning.mjs";
var r = 0, v = /* @__PURE__ */ function() {
  function i(e) {
    u(this, i), t(this, "derivatives", void 0), t(this, "id", void 0), this.derivatives = Array.isArray(e) ? e : [e], this.id = r, e.length === 0 && s(e.length > 0, "[Ant Design CSS-in-JS] Theme should have at least one derivative function."), r += 1;
  }
  return h(i, [{
    key: "getDerivativeToken",
    value: function(n) {
      return this.derivatives.reduce(function(o, a) {
        return a(n, o);
      }, void 0);
    }
  }]), i;
}();
export {
  v as default
};
