import { ao as a } from "./StoreProvider-CBB99upB.js";
try {
  let t = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, e = new t.Error().stack;
  e && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[e] = "bb605b84-b3ff-4ae9-8f5d-7c167f3ff720", t._sentryDebugIdIdentifier = "sentry-dbid-bb605b84-b3ff-4ae9-8f5d-7c167f3ff720");
} catch {
}
class l {
  validationResults;
  constructor(e) {
    this.validationResults = e;
  }
  /** Checks if all validation rules have passed */
  get isValid() {
    return this.validationResults.reduce((e, s) => e && s.isValid, !0);
  }
  /** Checks if any validation rule returned an error */
  hasError() {
    return !!this.getError();
  }
  /** Returns the first validation result that returned an error */
  getError() {
    return this.validationResults.find((e) => e.hasError);
  }
  /** Used to add async validation results to the static validation result*/
  addError(e) {
    return this.validationResults.push(e), this.validationResults;
  }
}
const u = (t, e) => Object.keys(t).filter((s) => !e.includes(s)).reduce((s, r) => (s[r] = t[r], s), {}), f = (t, e, s, r, n) => e.reduce(
  (d, i) => ({
    ...d,
    [i]: d[i] ?? n?.[i] ?? r?.[i] ?? s
  }),
  t
);
function b(t, e) {
  return a(t).reduce((s, [r, n]) => e.includes(r) ? { ...s, [r]: n } : s, {});
}
export {
  l as V,
  f as a,
  b as g,
  u as o
};
