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,EAE9B5C,KAAMyF,GAAkB,SAAUpF,GAMhC,OAAOoF,EAAezF,KAAKK,EAAA,EAE7BJ,OAAQwF,GAAkB,SAAUpF,EAAMtC,GAMxC,OAAO0H,EAAexF,OAAOI,EAAMtC,EAAA,EAErCoC,MAAOsF,GAAkB,SAAUpF,GAMjC,OAAOoF,EAAetF,MAAME,EAAA,EAE9BsJ,MAAM,OAAS,CAAC,EAAGlE,EAAgB,CACjC6J,MAAO,SAAemB,GAChBvH,EAAiBuH,GAEnBhL,EAAe6J,QAEf7J,EAAe6J,MAAMmB,EAAA,IAI3BxB,WAAYxJ,GAAkB,SAAU3F,GAMtC,OAAO2F,EAAewJ,WAAWnP,EAAA,EAEnCoK,SAAUzE,GAAkBnH,OAAOC,KAAKkH,EAAeyE,UAAUtE,QAAO,SAAU/G,EAAQ3C,GAYxF,OAXA2C,EAAO3C,GAAO,WACZ,IAAI4U,GAEHA,EAAwBrL,EAAeyE,UAAUhO,GAAKkH,MAAM0N,EAAuB9N,UAIpE,EAIXnE,CAAA,GACN,CAAC,GACJyQ,MAAO7J,GAAkB,SAAU3F,GAMjC,OAAO2F,EAAe6J,MAAMxP,EAAA,GAGhC,OAAOkH,EAAW,KAAO5C,GAAgB,OAAS,CAAC,EAAGK,EAAMa,KAAK7I,MAAQ6I,KAAK7I,MAAMA,MAAQ,CAAC,EAAGuM,GAAc,EAGzG,EA1JT,CA2JE,EAAAtD,W","sources":["webpack:///../../../node_modules/.pnpm/final-form@4.12.0/node_modules/final-form/dist/final-form.es.js","webpack:///../../../node_modules/.pnpm/react-final-form@4.1.0_final-form@4.12.0_react@18.2.0/node_modules/react-final-form/dist/react-final-form.es.js"],"sourcesContent":["import _extends from '@babel/runtime/helpers/esm/extends';\nimport _objectWithoutPropertiesLoose from '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';\n\n// \nvar toPath = function toPath(key) {\n if (key === null || key === undefined || !key.length) {\n return [];\n }\n\n if (typeof key !== 'string') {\n throw new Error('toPath() expects a string');\n }\n\n return key.split(/[.[\\]]+/).filter(Boolean);\n};\n\n// \n\nvar getIn = function getIn(state, complexKey) {\n // Intentionally using iteration rather than recursion\n var path = toPath(complexKey);\n var current = state;\n\n for (var i = 0; i < path.length; i++) {\n var key = path[i];\n\n if (current === undefined || current === null || typeof current !== 'object' || Array.isArray(current) && isNaN(key)) {\n return undefined;\n }\n\n current = current[key];\n }\n\n return current;\n};\n\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n\nvar setInRecursor = function setInRecursor(current, index, path, value, destroyArrays) {\n if (index >= path.length) {\n // end of recursion\n return value;\n }\n\n var key = path[index]; // determine type of key\n\n if (isNaN(key)) {\n var _extends2;\n\n // object set\n if (current === undefined || current === null) {\n var _ref;\n\n // recurse\n var _result2 = setInRecursor(undefined, index + 1, path, value, destroyArrays); // delete or create an object\n\n\n return _result2 === undefined ? undefined : (_ref = {}, _ref[key] = _result2, _ref);\n }\n\n if (Array.isArray(current)) {\n throw new Error('Cannot set a non-numeric property on an array');\n } // current exists, so make a copy of all its values, and add/update the new one\n\n\n var _result = setInRecursor(current[key], index + 1, path, value, destroyArrays);\n\n var numKeys = Object.keys(current).length;\n\n if (_result === undefined) {\n if (current[key] === undefined && numKeys === 0) {\n // object was already empty\n return undefined;\n }\n\n if (current[key] !== undefined && numKeys <= 1) {\n // only key we had was the one we are deleting\n if (!isNaN(path[index - 1]) && !destroyArrays) {\n // we are in an array, so return an empty object\n return {};\n } else {\n return undefined;\n }\n }\n\n var _removed = current[key],\n final = _objectWithoutPropertiesLoose(current, [key].map(_toPropertyKey));\n\n return final;\n } // set result in key\n\n\n return _extends({}, current, (_extends2 = {}, _extends2[key] = _result, _extends2));\n } // array set\n\n\n var numericKey = Number(key);\n\n if (current === undefined || current === null) {\n // recurse\n var _result3 = setInRecursor(undefined, index + 1, path, value, destroyArrays); // if nothing returned, delete it\n\n\n if (_result3 === undefined) {\n return undefined;\n } // create an array\n\n\n var _array = [];\n _array[numericKey] = _result3;\n return _array;\n }\n\n if (!Array.isArray(current)) {\n throw new Error('Cannot set a numeric property on an object');\n } // recurse\n\n\n var existingValue = current[numericKey];\n var result = setInRecursor(existingValue, index + 1, path, value, destroyArrays); // current exists, so make a copy of all its values, and add/update the new one\n\n var array = [].concat(current);\n\n if (destroyArrays && result === undefined) {\n array.splice(numericKey, 1);\n\n if (array.length === 0) {\n return undefined;\n }\n } else {\n array[numericKey] = result;\n }\n\n return array;\n};\n\nvar setIn = function setIn(state, key, value, destroyArrays) {\n if (destroyArrays === void 0) {\n destroyArrays = false;\n }\n\n if (state === undefined || state === null) {\n throw new Error(\"Cannot call setIn() with \" + String(state) + \" state\");\n }\n\n if (key === undefined || key === null) {\n throw new Error(\"Cannot call setIn() with \" + String(key) + \" key\");\n } // Recursive function needs to accept and return State, but public API should\n // only deal with Objects\n\n\n return setInRecursor(state, 0, toPath(key), value, destroyArrays);\n};\n\nvar FORM_ERROR = 'FINAL_FORM/form-error';\nvar ARRAY_ERROR = 'FINAL_FORM/array-error';\n\n// \n/**\n * Converts internal field state to published field state\n */\n\nvar publishFieldState = function publishFieldState(formState, field) {\n var errors = formState.errors,\n initialValues = formState.initialValues,\n lastSubmittedValues = formState.lastSubmittedValues,\n submitErrors = formState.submitErrors,\n submitFailed = formState.submitFailed,\n submitSucceeded = formState.submitSucceeded,\n submitting = formState.submitting,\n values = formState.values;\n var active = field.active,\n blur = field.blur,\n change = field.change,\n data = field.data,\n focus = field.focus,\n modified = field.modified,\n name = field.name,\n touched = field.touched,\n visited = field.visited;\n var value = getIn(values, name);\n var error = getIn(errors, name);\n\n if (error && error[ARRAY_ERROR]) {\n error = error[ARRAY_ERROR];\n }\n\n var submitError = submitErrors && getIn(submitErrors, name);\n var initial = initialValues && getIn(initialValues, name);\n var pristine = field.isEqual(initial, value);\n var dirtySinceLastSubmit = !!(lastSubmittedValues && !field.isEqual(getIn(lastSubmittedValues, name), value));\n var valid = !error && !submitError;\n return {\n active: active,\n blur: blur,\n change: change,\n data: data,\n dirty: !pristine,\n dirtySinceLastSubmit: dirtySinceLastSubmit,\n error: error,\n focus: focus,\n initial: initial,\n invalid: !valid,\n length: Array.isArray(value) ? value.length : undefined,\n modified: modified,\n name: name,\n pristine: pristine,\n submitError: submitError,\n submitFailed: submitFailed,\n submitSucceeded: submitSucceeded,\n submitting: submitting,\n touched: touched,\n valid: valid,\n value: value,\n visited: visited\n };\n};\n\n// \nvar fieldSubscriptionItems = ['active', 'data', 'dirty', 'dirtySinceLastSubmit', 'error', 'initial', 'invalid', 'length', 'modified', 'pristine', 'submitError', 'submitFailed', 'submitSucceeded', 'submitting', 'touched', 'valid', 'value', 'visited'];\n\n// \nvar shallowEqual = function shallowEqual(a, b) {\n if (a === b) {\n return true;\n }\n\n if (typeof a !== 'object' || !a || typeof b !== 'object' || !b) {\n return false;\n }\n\n var keysA = Object.keys(a);\n var keysB = Object.keys(b);\n\n if (keysA.length !== keysB.length) {\n return false;\n }\n\n var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(b);\n\n for (var idx = 0; idx < keysA.length; idx++) {\n var key = keysA[idx];\n\n if (!bHasOwnProperty(key) || a[key] !== b[key]) {\n return false;\n }\n }\n\n return true;\n};\n\n// \nfunction subscriptionFilter (dest, src, previous, subscription, keys, shallowEqualKeys) {\n var different = false;\n keys.forEach(function (key) {\n if (subscription[key]) {\n dest[key] = src[key];\n\n if (!previous || (~shallowEqualKeys.indexOf(key) ? !shallowEqual(src[key], previous[key]) : src[key] !== previous[key])) {\n different = true;\n }\n }\n });\n return different;\n}\n\n// \nvar shallowEqualKeys = ['data'];\n/**\n * Filters items in a FieldState based on a FieldSubscription\n */\n\nvar filterFieldState = function filterFieldState(state, previousState, subscription, force) {\n var result = {\n blur: state.blur,\n change: state.change,\n focus: state.focus,\n name: state.name\n };\n var different = subscriptionFilter(result, state, previousState, subscription, fieldSubscriptionItems, shallowEqualKeys) || !previousState;\n return different || force ? result : undefined;\n};\n\n// \nvar formSubscriptionItems = ['active', 'dirty', 'dirtyFields', 'dirtySinceLastSubmit', 'error', 'errors', 'hasSubmitErrors', 'hasValidationErrors', 'initialValues', 'invalid', 'modified', 'pristine', 'submitting', 'submitError', 'submitErrors', 'submitFailed', 'submitSucceeded', 'touched', 'valid', 'validating', 'values', 'visited'];\n\n// \nvar shallowEqualKeys$1 = ['touched', 'visited'];\n/**\n * Filters items in a FormState based on a FormSubscription\n */\n\nvar filterFormState = function filterFormState(state, previousState, subscription, force) {\n var result = {};\n var different = subscriptionFilter(result, state, previousState, subscription, formSubscriptionItems, shallowEqualKeys$1) || !previousState;\n return different || force ? result : undefined;\n};\n\n// \n\nvar memoize = function memoize(fn) {\n var lastArgs;\n var lastResult;\n return function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n if (!lastArgs || args.length !== lastArgs.length || args.some(function (arg, index) {\n return !shallowEqual(lastArgs[index], arg);\n })) {\n lastArgs = args;\n lastResult = fn.apply(void 0, args);\n }\n\n return lastResult;\n };\n};\n\nvar isPromise = (function (obj) {\n return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';\n});\n\nvar configOptions = ['debug', 'initialValues', 'keepDirtyOnReinitialize', 'mutators', 'onSubmit', 'validate', 'validateOnBlur'];\nvar version = '4.8.1';\n\nvar tripleEquals = function tripleEquals(a, b) {\n return a === b;\n};\n\nvar hasAnyError = function hasAnyError(errors) {\n return Object.keys(errors).some(function (key) {\n var value = errors[key];\n\n if (value && typeof value === 'object') {\n return hasAnyError(value);\n }\n\n return typeof value !== 'undefined';\n });\n};\n\nvar convertToExternalFormState = function convertToExternalFormState(_ref) {\n var active = _ref.active,\n dirtySinceLastSubmit = _ref.dirtySinceLastSubmit,\n error = _ref.error,\n errors = _ref.errors,\n initialValues = _ref.initialValues,\n pristine = _ref.pristine,\n submitting = _ref.submitting,\n submitFailed = _ref.submitFailed,\n submitSucceeded = _ref.submitSucceeded,\n submitError = _ref.submitError,\n submitErrors = _ref.submitErrors,\n valid = _ref.valid,\n validating = _ref.validating,\n values = _ref.values;\n return {\n active: active,\n dirty: !pristine,\n dirtySinceLastSubmit: dirtySinceLastSubmit,\n error: error,\n errors: errors,\n hasSubmitErrors: !!(submitError || submitErrors && hasAnyError(submitErrors)),\n hasValidationErrors: !!(error || hasAnyError(errors)),\n invalid: !valid,\n initialValues: initialValues,\n pristine: pristine,\n submitting: submitting,\n submitFailed: submitFailed,\n submitSucceeded: submitSucceeded,\n submitError: submitError,\n submitErrors: submitErrors,\n valid: valid,\n validating: validating > 0,\n values: values\n };\n};\n\nfunction notifySubscriber(subscriber, subscription, state, lastState, filter, force) {\n if (force === void 0) {\n force = false;\n }\n\n var notification = filter(state, lastState, subscription, force);\n\n if (notification) {\n subscriber(notification);\n }\n}\n\nfunction notify(_ref2, state, lastState, filter) {\n var entries = _ref2.entries;\n Object.keys(entries).forEach(function (key) {\n var _entries$Number = entries[Number(key)],\n subscription = _entries$Number.subscription,\n subscriber = _entries$Number.subscriber;\n notifySubscriber(subscriber, subscription, state, lastState, filter);\n });\n}\n\nvar createForm = function createForm(config) {\n if (!config) {\n throw new Error('No config specified');\n }\n\n var debug = config.debug,\n destroyOnUnregister = config.destroyOnUnregister,\n keepDirtyOnReinitialize = config.keepDirtyOnReinitialize,\n initialValues = config.initialValues,\n mutators = config.mutators,\n onSubmit = config.onSubmit,\n validate = config.validate,\n validateOnBlur = config.validateOnBlur;\n\n if (!onSubmit) {\n throw new Error('No onSubmit function specified');\n }\n\n var state = {\n subscribers: {\n index: 0,\n entries: {}\n },\n fieldSubscribers: {},\n fields: {},\n formState: {\n dirtySinceLastSubmit: false,\n errors: {},\n initialValues: initialValues && _extends({}, initialValues),\n invalid: false,\n pristine: true,\n submitting: false,\n submitFailed: false,\n submitSucceeded: false,\n valid: true,\n validating: 0,\n values: initialValues ? _extends({}, initialValues) : {}\n },\n lastFormState: undefined\n };\n var inBatch = false;\n var validationPaused = false;\n var validationBlocked = false;\n var nextAsyncValidationKey = 0;\n var asyncValidationPromises = {};\n\n var clearAsyncValidationPromise = function clearAsyncValidationPromise(key) {\n return function (result) {\n delete asyncValidationPromises[key];\n return result;\n };\n };\n\n var changeValue = function changeValue(state, name, mutate) {\n var before = getIn(state.formState.values, name);\n var after = mutate(before);\n state.formState.values = setIn(state.formState.values, name, after) || {};\n };\n\n var renameField = function renameField(state, from, to) {\n if (state.fields[from]) {\n var _extends2, _extends3;\n\n state.fields = _extends({}, state.fields, (_extends2 = {}, _extends2[to] = _extends({}, state.fields[from], {\n name: to,\n lastFieldState: undefined\n }), _extends2));\n delete state.fields[from];\n state.fieldSubscribers = _extends({}, state.fieldSubscribers, (_extends3 = {}, _extends3[to] = state.fieldSubscribers[from], _extends3));\n delete state.fieldSubscribers[from];\n var value = getIn(state.formState.values, from);\n state.formState.values = setIn(state.formState.values, from, undefined) || {};\n state.formState.values = setIn(state.formState.values, to, value);\n delete state.lastFormState;\n }\n }; // bind state to mutators\n\n\n var getMutatorApi = function getMutatorApi(key) {\n return function () {\n // istanbul ignore next\n if (mutators) {\n // ^^ causes branch coverage warning, but needed to appease the Flow gods\n var mutatableState = {\n formState: state.formState,\n fields: state.fields,\n fieldSubscribers: state.fieldSubscribers,\n lastFormState: state.lastFormState\n };\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var returnValue = mutators[key](args, mutatableState, {\n changeValue: changeValue,\n getIn: getIn,\n renameField: renameField,\n setIn: setIn,\n shallowEqual: shallowEqual\n });\n state.formState = mutatableState.formState;\n state.fields = mutatableState.fields;\n state.fieldSubscribers = mutatableState.fieldSubscribers;\n state.lastFormState = mutatableState.lastFormState;\n runValidation(undefined, function () {\n notifyFieldListeners();\n notifyFormListeners();\n });\n return returnValue;\n }\n };\n };\n\n var mutatorsApi = mutators ? Object.keys(mutators).reduce(function (result, key) {\n result[key] = getMutatorApi(key);\n return result;\n }, {}) : {};\n\n var runRecordLevelValidation = function runRecordLevelValidation(setErrors) {\n var promises = [];\n\n if (validate) {\n var errorsOrPromise = validate(_extends({}, state.formState.values)); // clone to avoid writing\n\n if (isPromise(errorsOrPromise)) {\n var asyncValidationPromiseKey = nextAsyncValidationKey++;\n var promise = errorsOrPromise.then(setErrors).then(clearAsyncValidationPromise(asyncValidationPromiseKey));\n promises.push(promise);\n asyncValidationPromises[asyncValidationPromiseKey] = promise;\n } else {\n setErrors(errorsOrPromise);\n }\n }\n\n return promises;\n };\n\n var getValidators = function getValidators(field) {\n return Object.keys(field.validators).reduce(function (result, index) {\n var validator = field.validators[Number(index)]();\n\n if (validator) {\n result.push(validator);\n }\n\n return result;\n }, []);\n };\n\n var runFieldLevelValidation = function runFieldLevelValidation(field, setError) {\n var promises = [];\n var validators = getValidators(field);\n\n if (validators.length) {\n var error;\n validators.forEach(function (validator) {\n var errorOrPromise = validator(getIn(state.formState.values, field.name), state.formState.values, validator.length === 3 ? publishFieldState(state.formState, state.fields[field.name]) : undefined);\n\n if (errorOrPromise && isPromise(errorOrPromise)) {\n var asyncValidationPromiseKey = nextAsyncValidationKey++;\n var promise = errorOrPromise.then(setError) // errors must be resolved, not rejected\n .then(clearAsyncValidationPromise(asyncValidationPromiseKey));\n promises.push(promise);\n asyncValidationPromises[asyncValidationPromiseKey] = promise;\n } else if (!error) {\n // first registered validator wins\n error = errorOrPromise;\n }\n });\n setError(error);\n }\n\n return promises;\n };\n\n var runValidation = function runValidation(fieldChanged, callback) {\n if (validationPaused) {\n validationBlocked = true;\n /* istanbul ignore next */\n\n if (callback) {\n callback();\n }\n\n return;\n }\n\n var fields = state.fields,\n formState = state.formState;\n var fieldKeys = Object.keys(fields);\n\n if (!validate && !fieldKeys.some(function (key) {\n return getValidators(fields[key]).length;\n })) {\n if (callback) {\n callback();\n }\n\n return; // no validation rules\n } // pare down field keys to actually validate\n\n\n var limitedFieldLevelValidation = false;\n\n if (fieldChanged) {\n var changedField = fields[fieldChanged];\n\n if (changedField) {\n var validateFields = changedField.validateFields;\n\n if (validateFields) {\n limitedFieldLevelValidation = true;\n fieldKeys = validateFields.length ? validateFields.concat(fieldChanged) : [fieldChanged];\n }\n }\n }\n\n var recordLevelErrors = {};\n var fieldLevelErrors = {};\n var promises = [].concat(runRecordLevelValidation(function (errors) {\n recordLevelErrors = errors || {};\n }), fieldKeys.reduce(function (result, name) {\n return result.concat(runFieldLevelValidation(fields[name], function (error) {\n fieldLevelErrors[name] = error;\n }));\n }, []));\n\n var processErrors = function processErrors() {\n var merged = _extends({}, limitedFieldLevelValidation ? formState.errors : {}, recordLevelErrors);\n\n var forEachError = function forEachError(fn) {\n fieldKeys.forEach(function (name) {\n if (fields[name]) {\n // make sure field is still registered\n // field-level errors take precedent over record-level errors\n var recordLevelError = getIn(recordLevelErrors, name);\n var errorFromParent = getIn(merged, name);\n var hasFieldLevelValidation = getValidators(fields[name]).length;\n var fieldLevelError = fieldLevelErrors[name];\n fn(name, hasFieldLevelValidation && fieldLevelError || validate && recordLevelError || (!recordLevelError && !limitedFieldLevelValidation ? errorFromParent : undefined));\n }\n });\n };\n\n forEachError(function (name, error) {\n merged = setIn(merged, name, error) || {};\n });\n forEachError(function (name, error) {\n if (error && error[ARRAY_ERROR]) {\n var existing = getIn(merged, name);\n var copy = [].concat(existing);\n copy[ARRAY_ERROR] = error[ARRAY_ERROR];\n merged = setIn(merged, name, copy);\n }\n });\n\n if (!shallowEqual(formState.errors, merged)) {\n formState.errors = merged;\n }\n\n formState.error = recordLevelErrors[FORM_ERROR];\n }; // process sync errors\n\n\n processErrors();\n\n if (promises.length) {\n // sync errors have been set. notify listeners while we wait for others\n state.formState.validating++;\n\n if (callback) {\n callback();\n }\n\n var afterPromises = function afterPromises() {\n state.formState.validating--;\n processErrors();\n\n if (callback) {\n callback();\n }\n };\n\n Promise.all(promises).then(afterPromises, afterPromises);\n } else if (callback) {\n callback();\n }\n };\n\n var notifyFieldListeners = function notifyFieldListeners(force) {\n if (inBatch || validationPaused) {\n return;\n }\n\n var fields = state.fields,\n fieldSubscribers = state.fieldSubscribers,\n formState = state.formState;\n Object.keys(fields).forEach(function (name) {\n var field = fields[name];\n var fieldState = publishFieldState(formState, field);\n var lastFieldState = field.lastFieldState;\n\n if (!shallowEqual(fieldState, lastFieldState)) {\n // **************************************************************\n // Curious about why a field is getting notified? Uncomment this.\n // **************************************************************\n // const diffKeys = Object.keys(fieldState).filter(\n // key => fieldState[key] !== (lastFieldState && lastFieldState[key])\n // )\n // console.debug(\n // 'notifying',\n // name,\n // '\\nField State\\n',\n // diffKeys.reduce(\n // (result, key) => ({ ...result, [key]: fieldState[key] }),\n // {}\n // ),\n // '\\nLast Field State\\n',\n // diffKeys.reduce(\n // (result, key) => ({\n // ...result,\n // [key]: lastFieldState && lastFieldState[key]\n // }),\n // {}\n // )\n // )\n field.lastFieldState = fieldState;\n notify(fieldSubscribers[name], fieldState, lastFieldState, filterFieldState);\n }\n });\n };\n\n var markAllFieldsTouched = function markAllFieldsTouched() {\n Object.keys(state.fields).forEach(function (key) {\n state.fields[key].touched = true;\n });\n };\n\n var hasSyncErrors = function hasSyncErrors() {\n return !!(state.formState.error || hasAnyError(state.formState.errors));\n };\n\n var calculateNextFormState = function calculateNextFormState() {\n var fields = state.fields,\n formState = state.formState,\n lastFormState = state.lastFormState;\n var fieldKeys = Object.keys(fields); // calculate dirty/pristine\n\n var foundDirty = false;\n var dirtyFields = fieldKeys.reduce(function (result, key) {\n var dirty = !fields[key].isEqual(getIn(formState.values, key), getIn(formState.initialValues || {}, key));\n\n if (dirty) {\n foundDirty = true;\n result[key] = true;\n }\n\n return result;\n }, {});\n formState.pristine = !foundDirty;\n formState.dirtySinceLastSubmit = !!(formState.lastSubmittedValues && !fieldKeys.every(function (key) {\n // istanbul ignore next\n var nonNullLastSubmittedValues = formState.lastSubmittedValues || {}; // || {} is for flow, but causes branch coverage complaint\n\n return fields[key].isEqual(getIn(formState.values, key), getIn(nonNullLastSubmittedValues, key));\n }));\n formState.valid = !formState.error && !formState.submitError && !hasAnyError(formState.errors) && !(formState.submitErrors && hasAnyError(formState.submitErrors));\n var nextFormState = convertToExternalFormState(formState);\n\n var _fieldKeys$reduce = fieldKeys.reduce(function (result, key) {\n result.modified[key] = fields[key].modified;\n result.touched[key] = fields[key].touched;\n result.visited[key] = fields[key].visited;\n return result;\n }, {\n modified: {},\n touched: {},\n visited: {}\n }),\n modified = _fieldKeys$reduce.modified,\n touched = _fieldKeys$reduce.touched,\n visited = _fieldKeys$reduce.visited;\n\n nextFormState.dirtyFields = lastFormState && shallowEqual(lastFormState.dirtyFields, dirtyFields) ? lastFormState.dirtyFields : dirtyFields;\n nextFormState.modified = lastFormState && shallowEqual(lastFormState.modified, modified) ? lastFormState.modified : modified;\n nextFormState.touched = lastFormState && shallowEqual(lastFormState.touched, touched) ? lastFormState.touched : touched;\n nextFormState.visited = lastFormState && shallowEqual(lastFormState.visited, visited) ? lastFormState.visited : visited;\n return lastFormState && shallowEqual(lastFormState, nextFormState) ? lastFormState : nextFormState;\n };\n\n var callDebug = function callDebug() {\n return debug && \"development\" !== 'production' && debug(calculateNextFormState(), Object.keys(state.fields).reduce(function (result, key) {\n result[key] = state.fields[key];\n return result;\n }, {}));\n };\n\n var notifying = false;\n var scheduleNotification = false;\n\n var notifyFormListeners = function notifyFormListeners() {\n if (notifying) {\n scheduleNotification = true;\n } else {\n notifying = true;\n callDebug();\n\n if (!inBatch && !validationPaused) {\n var lastFormState = state.lastFormState;\n var nextFormState = calculateNextFormState();\n\n if (nextFormState !== lastFormState) {\n state.lastFormState = nextFormState;\n notify(state.subscribers, nextFormState, lastFormState, filterFormState);\n }\n }\n\n notifying = false;\n\n if (scheduleNotification) {\n scheduleNotification = false;\n notifyFormListeners();\n }\n }\n }; // generate initial errors\n\n\n runValidation();\n var api = {\n batch: function batch(fn) {\n inBatch = true;\n fn();\n inBatch = false;\n notifyFieldListeners();\n notifyFormListeners();\n },\n blur: function blur(name) {\n var fields = state.fields,\n formState = state.formState;\n var previous = fields[name];\n\n if (previous) {\n // can only blur registered fields\n delete formState.active;\n fields[name] = _extends({}, previous, {\n active: false,\n touched: true\n });\n\n if (validateOnBlur) {\n runValidation(name, function () {\n notifyFieldListeners();\n notifyFormListeners();\n });\n } else {\n notifyFieldListeners();\n notifyFormListeners();\n }\n }\n },\n change: function change(name, value) {\n var fields = state.fields,\n formState = state.formState;\n\n if (getIn(formState.values, name) !== value) {\n changeValue(state, name, function () {\n return value;\n });\n var previous = fields[name];\n\n if (previous) {\n // only track modified for registered fields\n fields[name] = _extends({}, previous, {\n modified: true\n });\n }\n\n if (validateOnBlur) {\n notifyFieldListeners();\n notifyFormListeners();\n } else {\n runValidation(name, function () {\n notifyFieldListeners();\n notifyFormListeners();\n });\n }\n }\n },\n focus: function focus(name) {\n var field = state.fields[name];\n\n if (field && !field.active) {\n state.formState.active = name;\n field.active = true;\n field.visited = true;\n notifyFieldListeners();\n notifyFormListeners();\n }\n },\n mutators: mutatorsApi,\n getFieldState: function getFieldState(name) {\n var field = state.fields[name];\n return field && field.lastFieldState;\n },\n getRegisteredFields: function getRegisteredFields() {\n return Object.keys(state.fields);\n },\n getState: function getState() {\n return calculateNextFormState();\n },\n initialize: function initialize(data) {\n var fields = state.fields,\n formState = state.formState;\n var values = typeof data === 'function' ? data(formState.values) : data;\n\n if (!keepDirtyOnReinitialize) {\n formState.values = values;\n }\n\n Object.keys(fields).forEach(function (key) {\n var field = fields[key];\n field.modified = false;\n field.touched = false;\n field.visited = false;\n\n if (keepDirtyOnReinitialize) {\n var pristine = fields[key].isEqual(getIn(formState.values, key), getIn(formState.initialValues || {}, key));\n\n if (pristine) {\n // only update pristine values\n formState.values = setIn(formState.values, key, getIn(values, key));\n }\n }\n });\n formState.initialValues = values;\n runValidation(undefined, function () {\n notifyFieldListeners();\n notifyFormListeners();\n });\n },\n isValidationPaused: function isValidationPaused() {\n return validationPaused;\n },\n pauseValidation: function pauseValidation() {\n validationPaused = true;\n },\n registerField: function registerField(name, subscriber, subscription, fieldConfig) {\n if (subscription === void 0) {\n subscription = {};\n }\n\n if (!state.fieldSubscribers[name]) {\n state.fieldSubscribers[name] = {\n index: 0,\n entries: {}\n };\n }\n\n var index = state.fieldSubscribers[name].index++; // save field subscriber callback\n\n state.fieldSubscribers[name].entries[index] = {\n subscriber: memoize(subscriber),\n subscription: subscription\n };\n\n if (!state.fields[name]) {\n // create initial field state\n state.fields[name] = {\n active: false,\n blur: function blur() {\n return api.blur(name);\n },\n change: function change(value) {\n return api.change(name, value);\n },\n data: {},\n focus: function focus() {\n return api.focus(name);\n },\n isEqual: fieldConfig && fieldConfig.isEqual || tripleEquals,\n lastFieldState: undefined,\n modified: false,\n name: name,\n touched: false,\n valid: true,\n validateFields: fieldConfig && fieldConfig.validateFields,\n validators: {},\n visited: false\n };\n }\n\n if (fieldConfig) {\n if (fieldConfig.getValidator) {\n state.fields[name].validators[index] = fieldConfig.getValidator;\n }\n\n if (fieldConfig.initialValue !== undefined) {\n state.formState.initialValues = setIn(state.formState.initialValues || {}, name, fieldConfig.initialValue);\n state.formState.values = setIn(state.formState.values, name, fieldConfig.initialValue);\n }\n\n if (fieldConfig.defaultValue !== undefined) {\n state.formState.values = setIn(state.formState.values, name, fieldConfig.defaultValue);\n }\n }\n\n var sentFirstNotification = false;\n\n var firstNotification = function firstNotification() {\n var fieldState = publishFieldState(state.formState, state.fields[name]);\n notifySubscriber(subscriber, subscription, fieldState, undefined, filterFieldState, true);\n state.fields[name].lastFieldState = fieldState;\n sentFirstNotification = true;\n };\n\n runValidation(undefined, function () {\n notifyFormListeners();\n\n if (!sentFirstNotification) {\n firstNotification();\n }\n\n notifyFieldListeners();\n });\n return function () {\n delete state.fields[name].validators[index];\n delete state.fieldSubscribers[name].entries[index];\n\n if (!Object.keys(state.fieldSubscribers[name].entries).length) {\n delete state.fieldSubscribers[name];\n delete state.fields[name];\n state.formState.errors = setIn(state.formState.errors, name, undefined) || {};\n\n if (destroyOnUnregister) {\n state.formState.values = setIn(state.formState.values, name, undefined, true) || {};\n }\n }\n\n runValidation(undefined, function () {\n notifyFieldListeners();\n notifyFormListeners();\n });\n };\n },\n reset: function reset(initialValues) {\n if (initialValues === void 0) {\n initialValues = state.formState.initialValues;\n }\n\n state.formState.submitFailed = false;\n state.formState.submitSucceeded = false;\n delete state.formState.submitError;\n delete state.formState.submitErrors;\n delete state.formState.lastSubmittedValues;\n api.initialize(initialValues || {});\n },\n resumeValidation: function resumeValidation() {\n validationPaused = false;\n\n if (validationBlocked) {\n // validation was attempted while it was paused, so run it now\n runValidation(undefined, function () {\n notifyFieldListeners();\n notifyFormListeners();\n });\n }\n\n validationBlocked = false;\n },\n setConfig: function setConfig(name, value) {\n switch (name) {\n case 'debug':\n debug = value;\n break;\n\n case 'destroyOnUnregister':\n destroyOnUnregister = value;\n break;\n\n case 'initialValues':\n api.initialize(value);\n break;\n\n case 'keepDirtyOnReinitialize':\n keepDirtyOnReinitialize = value;\n break;\n\n case 'mutators':\n mutators = value;\n\n if (value) {\n Object.keys(mutatorsApi).forEach(function (key) {\n if (!(key in value)) {\n delete mutatorsApi[key];\n }\n });\n Object.keys(value).forEach(function (key) {\n mutatorsApi[key] = getMutatorApi(key);\n });\n } else {\n Object.keys(mutatorsApi).forEach(function (key) {\n delete mutatorsApi[key];\n });\n }\n\n break;\n\n case 'onSubmit':\n onSubmit = value;\n break;\n\n case 'validate':\n validate = value;\n runValidation(undefined, function () {\n notifyFieldListeners();\n notifyFormListeners();\n });\n break;\n\n case 'validateOnBlur':\n validateOnBlur = value;\n break;\n\n default:\n throw new Error('Unrecognised option ' + name);\n }\n },\n submit: function submit() {\n var formState = state.formState;\n\n if (hasSyncErrors()) {\n markAllFieldsTouched();\n state.formState.submitFailed = true;\n notifyFormListeners();\n notifyFieldListeners();\n return; // no submit for you!!\n }\n\n var asyncValidationPromisesKeys = Object.keys(asyncValidationPromises);\n\n if (asyncValidationPromisesKeys.length) {\n // still waiting on async validation to complete...\n Promise.all(asyncValidationPromisesKeys.reduce(function (result, key) {\n result.push(asyncValidationPromises[Number(key)]);\n return result;\n }, [])).then(api.submit, api.submit);\n return;\n }\n\n var resolvePromise;\n var completeCalled = false;\n\n var complete = function complete(errors) {\n formState.submitting = false;\n\n if (errors && hasAnyError(errors)) {\n formState.submitFailed = true;\n formState.submitSucceeded = false;\n formState.submitErrors = errors;\n formState.submitError = errors[FORM_ERROR];\n markAllFieldsTouched();\n } else {\n delete formState.submitErrors;\n delete formState.submitError;\n formState.submitFailed = false;\n formState.submitSucceeded = true;\n }\n\n notifyFormListeners();\n notifyFieldListeners();\n completeCalled = true;\n\n if (resolvePromise) {\n resolvePromise(errors);\n }\n\n return errors;\n };\n\n formState.submitting = true;\n formState.submitFailed = false;\n formState.submitSucceeded = false;\n formState.lastSubmittedValues = _extends({}, formState.values); // onSubmit is either sync, callback or async with a Promise\n\n var result = onSubmit(formState.values, api, complete);\n\n if (!completeCalled) {\n if (result && isPromise(result)) {\n // onSubmit is async with a Promise\n notifyFormListeners(); // let everyone know we are submitting\n\n notifyFieldListeners(); // notify fields also\n\n return result.then(complete, function (error) {\n complete();\n throw error;\n });\n } else if (onSubmit.length >= 3) {\n // must be async, so we should return a Promise\n notifyFormListeners(); // let everyone know we are submitting\n\n notifyFieldListeners(); // notify fields also\n\n return new Promise(function (resolve) {\n resolvePromise = resolve;\n });\n } else {\n // onSubmit is sync\n complete(result);\n }\n }\n },\n subscribe: function subscribe(subscriber, subscription) {\n if (!subscriber) {\n throw new Error('No callback given.');\n }\n\n if (!subscription) {\n throw new Error('No subscription provided. What values do you want to listen to?');\n }\n\n var memoized = memoize(subscriber);\n var subscribers = state.subscribers,\n lastFormState = state.lastFormState;\n var index = subscribers.index++;\n subscribers.entries[index] = {\n subscriber: memoized,\n subscription: subscription\n };\n var nextFormState = calculateNextFormState();\n\n if (nextFormState !== lastFormState) {\n state.lastFormState = nextFormState;\n }\n\n notifySubscriber(memoized, subscription, nextFormState, nextFormState, filterFormState, true);\n return function () {\n delete subscribers.entries[index];\n };\n }\n };\n return api;\n};\n\n//\n\nexport { createForm, configOptions, version, ARRAY_ERROR, FORM_ERROR, formSubscriptionItems, fieldSubscriptionItems, getIn, setIn };\n","import _extends from '@babel/runtime/helpers/esm/extends';\nimport _objectWithoutPropertiesLoose from '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';\nimport _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';\nimport { createElement, createContext, Component } from 'react';\nimport { fieldSubscriptionItems, formSubscriptionItems, createForm, configOptions, version as version$1 } from 'final-form';\n\n// \nfunction diffSubscription (a, b, keys) {\n if (a) {\n if (b) {\n // $FlowFixMe\n return keys.some(function (key) {\n return a[key] !== b[key];\n });\n } else {\n return true;\n }\n } else {\n return !!b;\n }\n}\n\n// children render function, or component prop\n\nfunction renderComponent(props, name) {\n var render = props.render,\n children = props.children,\n component = props.component,\n rest = _objectWithoutPropertiesLoose(props, [\"render\", \"children\", \"component\"]);\n\n if (component) {\n return createElement(component, _extends({}, rest, {\n children: children,\n render: render\n }));\n }\n\n if (render) {\n return render(_extends({}, rest, {\n children: children\n })); // inject children back in\n }\n\n if (typeof children !== 'function') {\n // istanbul ignore next\n if (process.env.NODE_ENV !== 'production') {\n console.error(\"Warning: Must specify either a render prop, a render function as children, or a component prop to \" + name);\n }\n\n return null; // warning will alert developer to their mistake\n }\n\n return children(rest);\n}\n\n// \nvar isReactNative = typeof window !== 'undefined' && window.navigator && window.navigator.product && window.navigator.product === 'ReactNative';\n\n// \nvar getSelectedValues = function getSelectedValues(options) {\n var result = [];\n\n if (options) {\n for (var index = 0; index < options.length; index++) {\n var option = options[index];\n\n if (option.selected) {\n result.push(option.value);\n }\n }\n }\n\n return result;\n};\n\nvar getValue = function getValue(event, currentValue, valueProp, isReactNative) {\n if (!isReactNative && event.nativeEvent && event.nativeEvent.text !== undefined) {\n return event.nativeEvent.text;\n }\n\n if (isReactNative && event.nativeEvent) {\n return event.nativeEvent.text;\n }\n\n var detypedEvent = event;\n var _detypedEvent$target = detypedEvent.target,\n type = _detypedEvent$target.type,\n value = _detypedEvent$target.value,\n checked = _detypedEvent$target.checked;\n\n switch (type) {\n case 'checkbox':\n if (valueProp !== undefined) {\n // we are maintaining an array, not just a boolean\n if (checked) {\n // add value to current array value\n return Array.isArray(currentValue) ? currentValue.concat(valueProp) : [valueProp];\n } else {\n // remove value from current array value\n if (!Array.isArray(currentValue)) {\n return currentValue;\n }\n\n var index = currentValue.indexOf(valueProp);\n\n if (index < 0) {\n return currentValue;\n } else {\n return currentValue.slice(0, index).concat(currentValue.slice(index + 1));\n }\n }\n } else {\n // it's just a boolean\n return !!checked;\n }\n\n case 'select-multiple':\n return getSelectedValues(event.target.options);\n\n default:\n return value;\n }\n};\n\nvar ReactFinalFormContext = createContext(null);\nvar getDisplayName = function getDisplayName(Component) {\n var displayName = Component.displayName || Component.name || 'Component';\n return \"ReactFinalForm(\" + displayName + \")\";\n};\nvar withReactFinalForm = function withReactFinalForm(Component$1) {\n var _class, _temp;\n\n return _temp = _class =\n /*#__PURE__*/\n function (_React$Component) {\n _inheritsLoose(_class, _React$Component);\n\n function _class() {\n return _React$Component.apply(this, arguments) || this;\n }\n\n var _proto = _class.prototype;\n\n _proto.render = function render() {\n var _this = this;\n\n return createElement(ReactFinalFormContext.Consumer, {\n children: function children(reactFinalForm) {\n return createElement(Component$1, _extends({\n reactFinalForm: reactFinalForm\n }, _this.props));\n }\n });\n };\n\n return _class;\n }(Component), _class.displayName = getDisplayName(Component$1), _temp;\n};\n\nvar all = fieldSubscriptionItems.reduce(function (result, key) {\n result[key] = true;\n return result;\n}, {});\n\nvar Field =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inheritsLoose(Field, _React$Component);\n\n function Field(_props) {\n var _this;\n\n _this = _React$Component.call(this, _props) || this;\n\n _this.subscribe = function (_ref, listener) {\n var defaultValue = _ref.defaultValue,\n initialValue = _ref.initialValue,\n isEqual = _ref.isEqual,\n name = _ref.name,\n subscription = _ref.subscription,\n validateFields = _ref.validateFields;\n _this.unsubscribe = _this.props.reactFinalForm.registerField(name, listener, subscription || all, {\n defaultValue: defaultValue,\n getValidator: function getValidator() {\n return _this.props.validate;\n },\n initialValue: initialValue,\n isEqual: isEqual,\n validateFields: validateFields\n });\n };\n\n _this.notify = function (state) {\n return _this.setState({\n state: state\n });\n };\n\n _this.handlers = {\n onBlur: function onBlur(event) {\n var state = _this.state.state; // this is to appease the Flow gods\n // istanbul ignore next\n\n if (state) {\n var _this$props = _this.props,\n format = _this$props.format,\n formatOnBlur = _this$props.formatOnBlur;\n state.blur();\n\n if (format && formatOnBlur) {\n state.change(format(state.value, state.name));\n }\n }\n },\n onChange: function onChange(event) {\n var _this$props2 = _this.props,\n parse = _this$props2.parse,\n _value = _this$props2.value; // istanbul ignore next\n\n if (process.env.NODE_ENV !== 'production' && event && event.target) {\n var targetType = event.target.type;\n var props = _this.props;\n var unknown = ~['checkbox', 'radio', 'select-multiple'].indexOf(targetType) && !props.type;\n var type = targetType === 'select-multiple' ? 'select' : targetType;\n\n var _ref2 = targetType === 'select-multiple' ? _this.state.state || {} : props,\n _value2 = _ref2.value;\n\n if (unknown) {\n console.error(\"Warning: You must pass `type=\\\"\" + type + \"\\\"` prop to your Field(\" + props.name + \") component.\\n\" + (\"Without it we don't know how to unpack your `value` prop - \" + (Array.isArray(_value2) ? \"[\" + _value2 + \"]\" : \"\\\"\" + _value2 + \"\\\"\") + \".\"));\n }\n }\n\n var value = event && event.target ? getValue(event, _this.state.state && _this.state.state.value, _value, isReactNative) : event;\n _this.state.state && _this.state.state.change(parse ? parse(value, _this.props.name) : value);\n },\n onFocus: function onFocus(event) {\n _this.state.state && _this.state.state.focus();\n }\n };\n var initialState; // istanbul ignore next\n\n if (process.env.NODE_ENV !== 'production' && !_this.props.reactFinalForm) {\n console.error('Warning: Field must be used inside of a ReactFinalForm component');\n }\n\n if (_this.props.reactFinalForm) {\n // avoid error, warning will alert developer to their mistake\n _this.subscribe(_props, function (state) {\n if (initialState) {\n _this.notify(state);\n } else {\n initialState = state;\n }\n });\n }\n\n _this.state = {\n state: initialState\n };\n return _this;\n }\n\n var _proto = Field.prototype;\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var _this$props3 = this.props,\n name = _this$props3.name,\n subscription = _this$props3.subscription;\n\n if (prevProps.name !== name || diffSubscription(prevProps.subscription, subscription, fieldSubscriptionItems)) {\n if (this.props.reactFinalForm) {\n // avoid error, warning will alert developer to their mistake\n this.unsubscribe();\n this.subscribe(this.props, this.notify);\n }\n }\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.unsubscribe();\n };\n\n _proto.render = function render() {\n var _this$props4 = this.props,\n allowNull = _this$props4.allowNull,\n component = _this$props4.component,\n children = _this$props4.children,\n format = _this$props4.format,\n formatOnBlur = _this$props4.formatOnBlur,\n parse = _this$props4.parse,\n isEqual = _this$props4.isEqual,\n name = _this$props4.name,\n subscription = _this$props4.subscription,\n validate = _this$props4.validate,\n validateFields = _this$props4.validateFields,\n reactFinalForm = _this$props4.reactFinalForm,\n _value = _this$props4.value,\n rest = _objectWithoutPropertiesLoose(_this$props4, [\"allowNull\", \"component\", \"children\", \"format\", \"formatOnBlur\", \"parse\", \"isEqual\", \"name\", \"subscription\", \"validate\", \"validateFields\", \"reactFinalForm\", \"value\"]);\n\n var _ref3 = this.state.state || {},\n blur = _ref3.blur,\n change = _ref3.change,\n focus = _ref3.focus,\n value = _ref3.value,\n ignoreName = _ref3.name,\n otherState = _objectWithoutPropertiesLoose(_ref3, [\"blur\", \"change\", \"focus\", \"value\", \"name\"]);\n\n var meta = {\n // this is to appease the Flow gods\n active: otherState.active,\n data: otherState.data,\n dirty: otherState.dirty,\n dirtySinceLastSubmit: otherState.dirtySinceLastSubmit,\n error: otherState.error,\n initial: otherState.initial,\n invalid: otherState.invalid,\n modified: otherState.modified,\n pristine: otherState.pristine,\n submitError: otherState.submitError,\n submitFailed: otherState.submitFailed,\n submitSucceeded: otherState.submitSucceeded,\n submitting: otherState.submitting,\n touched: otherState.touched,\n valid: otherState.valid,\n visited: otherState.visited\n };\n\n if (formatOnBlur) {\n value = Field.defaultProps.format(value, name);\n } else if (format) {\n value = format(value, name);\n }\n\n if (value === null && !allowNull) {\n value = '';\n }\n\n var input = _extends({\n name: name,\n value: value\n }, this.handlers);\n\n if (rest.type === 'checkbox') {\n if (_value === undefined) {\n input.checked = !!value;\n } else {\n input.checked = !!(Array.isArray(value) && ~value.indexOf(_value));\n input.value = _value;\n }\n } else if (rest.type === 'radio') {\n input.checked = value === _value;\n input.value = _value;\n } else if (component === 'select' && rest.multiple) {\n input.value = input.value || [];\n }\n\n if (typeof children === 'function') {\n return children(_extends({\n input: input,\n meta: meta\n }, rest));\n }\n\n if (typeof component === 'string') {\n // ignore meta, combine input with any other props\n return createElement(component, _extends({}, input, {\n children: children\n }, rest));\n }\n\n var renderProps = {\n input: input,\n meta: meta // assign to force Flow check\n\n };\n return renderComponent(_extends({}, renderProps, {\n children: children,\n component: component\n }, rest), \"Field(\" + name + \")\");\n };\n\n return Field;\n}(Component);\n\nField.defaultProps = {\n format: function format(value, name) {\n return value === undefined ? '' : value;\n },\n parse: function parse(value, name) {\n return value === '' ? undefined : value;\n }\n};\nvar Field$1 = withReactFinalForm(Field);\n\n// \nvar shallowEqual = function shallowEqual(a, b) {\n if (a === b) {\n return true;\n }\n\n if (typeof a !== 'object' || !a || typeof b !== 'object' || !b) {\n return false;\n }\n\n var keysA = Object.keys(a);\n var keysB = Object.keys(b);\n\n if (keysA.length !== keysB.length) {\n return false;\n }\n\n var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(b);\n\n for (var idx = 0; idx < keysA.length; idx++) {\n var key = keysA[idx];\n\n if (!bHasOwnProperty(key) || a[key] !== b[key]) {\n return false;\n }\n }\n\n return true;\n};\n\n// \nvar isSyntheticEvent = function isSyntheticEvent(candidate) {\n return !!(candidate && typeof candidate.stopPropagation === 'function');\n};\n\nvar version = '4.1.0';\nvar versions = {\n 'final-form': version$1,\n 'react-final-form': version\n};\nvar all$1 = formSubscriptionItems.reduce(function (result, key) {\n result[key] = true;\n return result;\n}, {});\n\nvar ReactFinalForm =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inheritsLoose(ReactFinalForm, _React$Component);\n\n function ReactFinalForm(props) {\n var _this;\n\n _this = _React$Component.call(this, props) || this;\n\n _this.notify = function (state) {\n if (_this.mounted) {\n _this.setState({\n state: state\n });\n }\n\n _this.mounted = true;\n };\n\n _this.handleSubmit = function (event) {\n if (event) {\n // sometimes not true, e.g. React Native\n if (typeof event.preventDefault === 'function') {\n event.preventDefault();\n }\n\n if (typeof event.stopPropagation === 'function') {\n // prevent any outer forms from receiving the event too\n event.stopPropagation();\n }\n }\n\n return _this.form.submit();\n };\n\n var children = props.children,\n component = props.component,\n render = props.render,\n subscription = props.subscription,\n decorators = props.decorators,\n rest = _objectWithoutPropertiesLoose(props, [\"children\", \"component\", \"render\", \"subscription\", \"decorators\"]);\n\n var config = rest;\n _this.mounted = false;\n\n try {\n _this.form = createForm(config);\n } catch (e) {\n // istanbul ignore next\n if (process.env.NODE_ENV !== 'production') {\n console.error(\"Warning: \" + e.message);\n }\n }\n\n _this.unsubscriptions = [];\n\n if (_this.form) {\n // set initial state\n var initialState = {};\n\n _this.form.subscribe(function (state) {\n initialState = state;\n }, subscription || all$1)();\n\n _this.state = {\n state: initialState\n };\n }\n\n if (decorators) {\n decorators.forEach(function (decorator) {\n _this.unsubscriptions.push(decorator(_this.form));\n });\n }\n\n return _this;\n }\n\n var _proto = ReactFinalForm.prototype;\n\n _proto.componentWillMount = function componentWillMount() {\n if (this.form) {\n this.form.pauseValidation();\n }\n };\n\n _proto.componentDidMount = function componentDidMount() {\n if (this.form) {\n this.unsubscriptions.push(this.form.subscribe(this.notify, this.props.subscription || all$1));\n this.form.resumeValidation();\n }\n };\n\n _proto.componentWillUpdate = function componentWillUpdate() {\n // istanbul ignore next\n if (this.form) {\n this.resumeValidation = this.resumeValidation || !this.form.isValidationPaused();\n this.form.pauseValidation();\n }\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var _this2 = this;\n\n // istanbul ignore next\n if (this.form && this.resumeValidation) {\n this.form.resumeValidation();\n }\n\n if (this.props.initialValues && !(this.props.initialValuesEqual || shallowEqual)(prevProps.initialValues, this.props.initialValues)) {\n this.form.initialize(this.props.initialValues);\n }\n\n configOptions.forEach(function (key) {\n if (key === 'initialValues' || prevProps[key] === _this2.props[key]) {\n return;\n }\n\n _this2.form.setConfig(key, _this2.props[key]);\n }); // istanbul ignore next\n\n if (process.env.NODE_ENV !== 'production') {\n if (!shallowEqual(prevProps.decorators, this.props.decorators)) {\n console.error('Warning: Form decorators should not change from one render to the next as new values will be ignored');\n }\n\n if (!shallowEqual(prevProps.subscription, this.props.subscription)) {\n console.error('Warning: Form subscription should not change from one render to the next as new values will be ignored');\n }\n }\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.unsubscriptions.forEach(function (unsubscribe) {\n return unsubscribe();\n });\n };\n\n _proto.render = function render() {\n var _this3 = this;\n\n // remove config props\n var _this$props = this.props,\n debug = _this$props.debug,\n initialValues = _this$props.initialValues,\n mutators = _this$props.mutators,\n onSubmit = _this$props.onSubmit,\n subscription = _this$props.subscription,\n validate = _this$props.validate,\n validateOnBlur = _this$props.validateOnBlur,\n props = _objectWithoutPropertiesLoose(_this$props, [\"debug\", \"initialValues\", \"mutators\", \"onSubmit\", \"subscription\", \"validate\", \"validateOnBlur\"]);\n\n var renderProps = _extends({}, this.state ? this.state.state : {}, {\n batch: this.form && function (fn) {\n // istanbul ignore next\n if (process.env.NODE_ENV !== 'production') {\n console.error(\"Warning: As of React Final Form v3.3.0, props.batch() is deprecated and will be removed in the next major version of React Final Form. Use: props.form.batch() instead. Check your ReactFinalForm render prop.\");\n }\n\n return _this3.form.batch(fn);\n },\n blur: this.form && function (name) {\n // istanbul ignore next\n if (process.env.NODE_ENV !== 'production') {\n console.error(\"Warning: As of React Final Form v3.3.0, props.blur() is deprecated and will be removed in the next major version of React Final Form. Use: props.form.blur() instead. Check your ReactFinalForm render prop.\");\n }\n\n return _this3.form.blur(name);\n },\n change: this.form && function (name, value) {\n // istanbul ignore next\n if (process.env.NODE_ENV !== 'production') {\n console.error(\"Warning: As of React Final Form v3.3.0, props.change() is deprecated and will be removed in the next major version of React Final Form. Use: props.form.change() instead. Check your ReactFinalForm render prop.\");\n }\n\n return _this3.form.change(name, value);\n },\n focus: this.form && function (name) {\n // istanbul ignore next\n if (process.env.NODE_ENV !== 'production') {\n console.error(\"Warning: As of React Final Form v3.3.0, props.focus() is deprecated and will be removed in the next major version of React Final Form. Use: props.form.focus() instead. Check your ReactFinalForm render prop.\");\n }\n\n return _this3.form.focus(name);\n },\n form: _extends({}, this.form, {\n reset: function reset(eventOrValues) {\n if (isSyntheticEvent(eventOrValues)) {\n // it's a React SyntheticEvent, call reset with no arguments\n _this3.form.reset();\n } else {\n _this3.form.reset(eventOrValues);\n }\n }\n }),\n handleSubmit: this.handleSubmit,\n initialize: this.form && function (values) {\n // istanbul ignore next\n if (process.env.NODE_ENV !== 'production') {\n console.error(\"Warning: As of React Final Form v3.3.0, props.initialize() is deprecated and will be removed in the next major version of React Final Form. Use: props.form.initialize() instead. Check your ReactFinalForm render prop.\");\n }\n\n return _this3.form.initialize(values);\n },\n mutators: this.form && Object.keys(this.form.mutators).reduce(function (result, key) {\n result[key] = function () {\n var _this3$form$mutators;\n\n (_this3$form$mutators = _this3.form.mutators)[key].apply(_this3$form$mutators, arguments); // istanbul ignore next\n\n\n if (process.env.NODE_ENV !== 'production') {\n console.error(\"Warning: As of React Final Form v3.3.0, props.mutators is deprecated and will be removed in the next major version of React Final Form. Use: props.form.mutators instead. Check your ReactFinalForm render prop.\");\n }\n };\n\n return result;\n }, {}),\n reset: this.form && function (values) {\n // istanbul ignore next\n if (process.env.NODE_ENV !== 'production') {\n console.error(\"Warning: As of React Final Form v3.3.0, props.reset() is deprecated and will be removed in the next major version of React Final Form. Use: props.form.reset() instead. Check your ReactFinalForm render prop.\");\n }\n\n return _this3.form.reset(values);\n }\n });\n\n return createElement(ReactFinalFormContext.Provider, {\n value: this.form\n }, renderComponent(_extends({}, props, renderProps, {\n __versions: versions\n }), 'ReactFinalForm'));\n };\n\n return ReactFinalForm;\n}(Component);\n\nvar FormSpy =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inheritsLoose(FormSpy, _React$Component);\n\n function FormSpy(props) {\n var _this;\n\n _this = _React$Component.call(this, props) || this;\n\n _this.subscribe = function (_ref, listener) {\n var subscription = _ref.subscription;\n _this.unsubscribe = _this.props.reactFinalForm.subscribe(listener, subscription || all$1);\n };\n\n _this.notify = function (state) {\n _this.setState({\n state: state\n });\n\n if (_this.props.onChange) {\n _this.props.onChange(state);\n }\n };\n\n var initialState; // istanbul ignore next\n\n if (process.env.NODE_ENV !== 'production' && !_this.props.reactFinalForm) {\n console.error('Warning: FormSpy must be used inside of a ReactFinalForm component');\n }\n\n if (_this.props.reactFinalForm) {\n // avoid error, warning will alert developer to their mistake\n _this.subscribe(props, function (state) {\n if (initialState) {\n _this.notify(state);\n } else {\n initialState = state;\n\n if (props.onChange) {\n props.onChange(state);\n }\n }\n });\n }\n\n if (initialState) {\n _this.state = {\n state: initialState\n };\n }\n\n return _this;\n }\n\n var _proto = FormSpy.prototype;\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var subscription = this.props.subscription;\n\n if (diffSubscription(prevProps.subscription, subscription, formSubscriptionItems)) {\n if (this.props.reactFinalForm) {\n // avoid error, warning will alert developer to their mistake\n this.unsubscribe();\n this.subscribe(this.props, this.notify);\n }\n }\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.unsubscribe();\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n onChange = _this$props.onChange,\n reactFinalForm = _this$props.reactFinalForm,\n rest = _objectWithoutPropertiesLoose(_this$props, [\"onChange\", \"reactFinalForm\"]);\n\n var renderProps = {\n batch: reactFinalForm && function (fn) {\n // istanbul ignore next\n if (process.env.NODE_ENV !== 'production') {\n console.error(\"Warning: As of React Final Form v3.3.0, props.batch() is deprecated and will be removed in the next major version of React Final Form. Use: props.form.batch() instead. Check your FormSpy render prop.\");\n }\n\n return reactFinalForm.batch(fn);\n },\n blur: reactFinalForm && function (name) {\n // istanbul ignore next\n if (process.env.NODE_ENV !== 'production') {\n console.error(\"Warning: As of React Final Form v3.3.0, props.blur() is deprecated and will be removed in the next major version of React Final Form. Use: props.form.blur() instead. Check your FormSpy render prop.\");\n }\n\n return reactFinalForm.blur(name);\n },\n change: reactFinalForm && function (name, value) {\n // istanbul ignore next\n if (process.env.NODE_ENV !== 'production') {\n console.error(\"Warning: As of React Final Form v3.3.0, props.change() is deprecated and will be removed in the next major version of React Final Form. Use: props.form.change() instead. Check your FormSpy render prop.\");\n }\n\n return reactFinalForm.change(name, value);\n },\n focus: reactFinalForm && function (name) {\n // istanbul ignore next\n if (process.env.NODE_ENV !== 'production') {\n console.error(\"Warning: As of React Final Form v3.3.0, props.focus() is deprecated and will be removed in the next major version of React Final Form. Use: props.form.focus() instead. Check your FormSpy render prop.\");\n }\n\n return reactFinalForm.focus(name);\n },\n form: _extends({}, reactFinalForm, {\n reset: function reset(eventOrValues) {\n if (isSyntheticEvent(eventOrValues)) {\n // it's a React SyntheticEvent, call reset with no arguments\n reactFinalForm.reset();\n } else {\n reactFinalForm.reset(eventOrValues);\n }\n }\n }),\n initialize: reactFinalForm && function (values) {\n // istanbul ignore next\n if (process.env.NODE_ENV !== 'production') {\n console.error(\"Warning: As of React Final Form v3.3.0, props.initialize() is deprecated and will be removed in the next major version of React Final Form. Use: props.form.initialize() instead. Check your FormSpy render prop.\");\n }\n\n return reactFinalForm.initialize(values);\n },\n mutators: reactFinalForm && Object.keys(reactFinalForm.mutators).reduce(function (result, key) {\n result[key] = function () {\n var _reactFinalForm$mutat;\n\n (_reactFinalForm$mutat = reactFinalForm.mutators)[key].apply(_reactFinalForm$mutat, arguments); // istanbul ignore next\n\n\n if (process.env.NODE_ENV !== 'production') {\n console.error(\"Warning: As of React Final Form v3.3.0, props.mutators is deprecated and will be removed in the next major version of React Final Form. Use: props.form.mutators instead. Check your FormSpy render prop.\");\n }\n };\n\n return result;\n }, {}),\n reset: reactFinalForm && function (values) {\n // istanbul ignore next\n if (process.env.NODE_ENV !== 'production') {\n console.error(\"Warning: As of React Final Form v3.3.0, props.reset() is deprecated and will be removed in the next major version of React Final Form. Use: props.form.reset() instead. Check your FormSpy render prop.\");\n }\n\n return reactFinalForm.reset(values);\n }\n };\n return onChange ? null : renderComponent(_extends({}, rest, this.state ? this.state.state : {}, renderProps), 'FormSpy');\n };\n\n return FormSpy;\n}(Component);\n\nvar FormSpy$1 = withReactFinalForm(FormSpy);\n\n//\n\nexport { Field$1 as Field, ReactFinalForm as Form, version, FormSpy$1 as FormSpy, withReactFinalForm, ReactFinalFormContext };\n"],"names":["toPath","key","length","Error","split","filter","Boolean","getIn","state","complexKey","path","current","i","Array","isArray","isNaN","_toPropertyKey","arg","input","prim","Symbol","toPrimitive","res","call","hint","TypeError","String","_toPrimitive","setInRecursor","index","value","destroyArrays","_extends2","_ref","_result2","_result","numKeys","Object","keys","map","numericKey","Number","_result3","_array","result","array","concat","splice","setIn","FORM_ERROR","ARRAY_ERROR","publishFieldState","formState","field","errors","initialValues","lastSubmittedValues","submitErrors","submitFailed","submitSucceeded","submitting","values","active","blur","change","data","focus","modified","name","touched","visited","error","submitError","initial","pristine","isEqual","valid","dirty","dirtySinceLastSubmit","invalid","fieldSubscriptionItems","shallowEqual","a","b","keysA","keysB","bHasOwnProperty","prototype","hasOwnProperty","bind","idx","subscriptionFilter","dest","src","previous","subscription","different","forEach","indexOf","shallowEqualKeys","filterFieldState","previousState","force","formSubscriptionItems","shallowEqualKeys$1","filterFormState","memoize","fn","lastArgs","lastResult","_len","arguments","args","_key","some","apply","isPromise","obj","then","configOptions","tripleEquals","hasAnyError","notifySubscriber","subscriber","lastState","notification","notify","_ref2","entries","_entries$Number","diffSubscription","renderComponent","props","render","children","component","rest","createElement","isReactNative","window","navigator","product","ReactFinalFormContext","createContext","withReactFinalForm","Component$1","_class","_temp","_React$Component","this","_this","Consumer","reactFinalForm","Component","displayName","reduce","Field","_props","initialState","subscribe","listener","defaultValue","initialValue","validateFields","unsubscribe","registerField","getValidator","validate","setState","handlers","onBlur","event","_this$props","format","formatOnBlur","onChange","_this$props2","parse","_value","target","currentValue","valueProp","nativeEvent","text","_detypedEvent$target","type","checked","slice","options","option","selected","push","getSelectedValues","getValue","onFocus","_proto","componentDidUpdate","prevProps","_this$props3","componentWillUnmount","_this$props4","allowNull","_ref3","otherState","meta","defaultProps","multiple","renderProps","Field$1","isSyntheticEvent","candidate","stopPropagation","versions","all$1","ReactFinalForm","mounted","handleSubmit","preventDefault","form","submit","decorators","config","debug","destroyOnUnregister","keepDirtyOnReinitialize","mutators","onSubmit","validateOnBlur","subscribers","fieldSubscribers","fields","validating","lastFormState","inBatch","validationPaused","validationBlocked","nextAsyncValidationKey","asyncValidationPromises","clearAsyncValidationPromise","changeValue","mutate","after","renameField","from","to","_extends3","lastFieldState","getMutatorApi","mutatableState","returnValue","runValidation","notifyFieldListeners","notifyFormListeners","mutatorsApi","getValidators","validators","validator","fieldChanged","callback","fieldKeys","limitedFieldLevelValidation","changedField","recordLevelErrors","fieldLevelErrors","promises","setErrors","errorsOrPromise","asyncValidationPromiseKey","promise","runRecordLevelValidation","setError","errorOrPromise","runFieldLevelValidation","processErrors","merged","forEachError","recordLevelError","errorFromParent","hasFieldLevelValidation","fieldLevelError","existing","copy","afterPromises","Promise","all","fieldState","markAllFieldsTouched","calculateNextFormState","foundDirty","dirtyFields","every","nonNullLastSubmittedValues","nextFormState","hasSubmitErrors","hasValidationErrors","convertToExternalFormState","_fieldKeys$reduce","notifying","scheduleNotification","api","batch","getFieldState","getRegisteredFields","getState","initialize","isValidationPaused","pauseValidation","fieldConfig","sentFirstNotification","reset","resumeValidation","setConfig","asyncValidationPromisesKeys","resolvePromise","completeCalled","complete","resolve","memoized","createForm","e","unsubscriptions","decorator","componentWillMount","componentDidMount","componentWillUpdate","_this2","initialValuesEqual","_this3","eventOrValues","_this3$form$mutators","Provider","__versions","FormSpy$1","_reactFinalForm$mutat"],"sourceRoot":""}