try {
  let s = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, d = new s.Error().stack;
  d && (s._sentryDebugIds = s._sentryDebugIds || {}, s._sentryDebugIds[d] = "4cbec216-b3f0-409b-a947-cc3812fccc98", s._sentryDebugIdIdentifier = "sentry-dbid-4cbec216-b3f0-409b-a947-cc3812fccc98");
} catch {
}
function i(s, d) {
  if (d) {
    const a = {
      labels: {},
      masks: {},
      data: {},
      allFields: [],
      requiredFields: [],
      obscuredFields: [],
      optionalFields: [],
      readOnlyFields: [],
      verifyFields: [],
      trustedFields: [],
      fieldValidationErrors: {},
      errors: {},
      valid: {}
    };
    return d.forEach((e) => {
      a.labels[e] = s.labels?.[e], a.masks[e] = s.masks?.[e], a.data[e] = s.data?.[e], s.allFields?.includes(e) && a.allFields.push(e), s.readOnlyFields?.includes(e) && a.readOnlyFields.push(e), s.requiredFields?.includes(e) && a.requiredFields.push(e), s.optionalFields?.includes(e) && a.optionalFields.push(e), s.verifyFields?.includes(e) && a.verifyFields.push(e), s.fieldValidationErrors?.[e] && (a.fieldValidationErrors[e] = s.fieldValidationErrors[e]), s.obscuredFields?.includes(e) && a.obscuredFields.push(e), s.trustedFields?.includes(e) && a.trustedFields.push(e), s.validators?.[e] && (a?.validators || (a.validators = {}), a.validators[e] = s.validators?.[e]), s.errors?.[e] && (a.errors[e] = s.errors?.[e]), s.valid?.[e] && (a.valid[e] = s.valid?.[e]);
    }), a.shouldValidate = s.shouldValidate, a.handleFieldChange = s.handleFieldChange, a;
  }
  return null;
}
export {
  i as g
};
