-
Notifications
You must be signed in to change notification settings - Fork 0
/
bundle.js.map
1 lines (1 loc) · 849 KB
/
bundle.js.map
1
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./client/App.js","webpack:///./client/components/LoginForm.js","webpack:///./client/containers/Login/LoginContainer.js","webpack:///./node_modules/es6-error/es6/index.js","webpack:///./node_modules/fbjs/lib/emptyFunction.js","webpack:///./node_modules/fbjs/lib/emptyObject.js","webpack:///./node_modules/fbjs/lib/invariant.js","webpack:///./node_modules/fbjs/lib/warning.js","webpack:///./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","webpack:///./node_modules/invariant/browser.js","webpack:///./node_modules/is-promise/index.js","webpack:///./node_modules/lodash-es/_DataView.js","webpack:///./node_modules/lodash-es/_Hash.js","webpack:///./node_modules/lodash-es/_ListCache.js","webpack:///./node_modules/lodash-es/_Map.js","webpack:///./node_modules/lodash-es/_MapCache.js","webpack:///./node_modules/lodash-es/_Promise.js","webpack:///./node_modules/lodash-es/_Set.js","webpack:///./node_modules/lodash-es/_SetCache.js","webpack:///./node_modules/lodash-es/_Stack.js","webpack:///./node_modules/lodash-es/_Symbol.js","webpack:///./node_modules/lodash-es/_Uint8Array.js","webpack:///./node_modules/lodash-es/_WeakMap.js","webpack:///./node_modules/lodash-es/_apply.js","webpack:///./node_modules/lodash-es/_arrayFilter.js","webpack:///./node_modules/lodash-es/_arrayLikeKeys.js","webpack:///./node_modules/lodash-es/_arrayMap.js","webpack:///./node_modules/lodash-es/_arrayPush.js","webpack:///./node_modules/lodash-es/_arraySome.js","webpack:///./node_modules/lodash-es/_assignMergeValue.js","webpack:///./node_modules/lodash-es/_assignValue.js","webpack:///./node_modules/lodash-es/_assocIndexOf.js","webpack:///./node_modules/lodash-es/_baseAssignValue.js","webpack:///./node_modules/lodash-es/_baseCreate.js","webpack:///./node_modules/lodash-es/_baseFor.js","webpack:///./node_modules/lodash-es/_baseForOwn.js","webpack:///./node_modules/lodash-es/_baseGet.js","webpack:///./node_modules/lodash-es/_baseGetAllKeys.js","webpack:///./node_modules/lodash-es/_baseGetTag.js","webpack:///./node_modules/lodash-es/_baseHasIn.js","webpack:///./node_modules/lodash-es/_baseIsArguments.js","webpack:///./node_modules/lodash-es/_baseIsEqual.js","webpack:///./node_modules/lodash-es/_baseIsEqualDeep.js","webpack:///./node_modules/lodash-es/_baseIsMatch.js","webpack:///./node_modules/lodash-es/_baseIsNative.js","webpack:///./node_modules/lodash-es/_baseIsTypedArray.js","webpack:///./node_modules/lodash-es/_baseIteratee.js","webpack:///./node_modules/lodash-es/_baseKeys.js","webpack:///./node_modules/lodash-es/_baseKeysIn.js","webpack:///./node_modules/lodash-es/_baseMatches.js","webpack:///./node_modules/lodash-es/_baseMatchesProperty.js","webpack:///./node_modules/lodash-es/_baseMerge.js","webpack:///./node_modules/lodash-es/_baseMergeDeep.js","webpack:///./node_modules/lodash-es/_baseProperty.js","webpack:///./node_modules/lodash-es/_basePropertyDeep.js","webpack:///./node_modules/lodash-es/_baseRest.js","webpack:///./node_modules/lodash-es/_baseSetToString.js","webpack:///./node_modules/lodash-es/_baseTimes.js","webpack:///./node_modules/lodash-es/_baseToString.js","webpack:///./node_modules/lodash-es/_baseUnary.js","webpack:///./node_modules/lodash-es/_cacheHas.js","webpack:///./node_modules/lodash-es/_castPath.js","webpack:///./node_modules/lodash-es/_cloneArrayBuffer.js","webpack:///./node_modules/lodash-es/_cloneBuffer.js","webpack:///./node_modules/lodash-es/_cloneTypedArray.js","webpack:///./node_modules/lodash-es/_copyArray.js","webpack:///./node_modules/lodash-es/_copyObject.js","webpack:///./node_modules/lodash-es/_coreJsData.js","webpack:///./node_modules/lodash-es/_createAssigner.js","webpack:///./node_modules/lodash-es/_createBaseFor.js","webpack:///./node_modules/lodash-es/_defineProperty.js","webpack:///./node_modules/lodash-es/_equalArrays.js","webpack:///./node_modules/lodash-es/_equalByTag.js","webpack:///./node_modules/lodash-es/_equalObjects.js","webpack:///./node_modules/lodash-es/_freeGlobal.js","webpack:///./node_modules/lodash-es/_getAllKeys.js","webpack:///./node_modules/lodash-es/_getMapData.js","webpack:///./node_modules/lodash-es/_getMatchData.js","webpack:///./node_modules/lodash-es/_getNative.js","webpack:///./node_modules/lodash-es/_getPrototype.js","webpack:///./node_modules/lodash-es/_getRawTag.js","webpack:///./node_modules/lodash-es/_getSymbols.js","webpack:///./node_modules/lodash-es/_getTag.js","webpack:///./node_modules/lodash-es/_getValue.js","webpack:///./node_modules/lodash-es/_hasPath.js","webpack:///./node_modules/lodash-es/_hashClear.js","webpack:///./node_modules/lodash-es/_hashDelete.js","webpack:///./node_modules/lodash-es/_hashGet.js","webpack:///./node_modules/lodash-es/_hashHas.js","webpack:///./node_modules/lodash-es/_hashSet.js","webpack:///./node_modules/lodash-es/_initCloneObject.js","webpack:///./node_modules/lodash-es/_isIndex.js","webpack:///./node_modules/lodash-es/_isIterateeCall.js","webpack:///./node_modules/lodash-es/_isKey.js","webpack:///./node_modules/lodash-es/_isKeyable.js","webpack:///./node_modules/lodash-es/_isMasked.js","webpack:///./node_modules/lodash-es/_isPrototype.js","webpack:///./node_modules/lodash-es/_isStrictComparable.js","webpack:///./node_modules/lodash-es/_listCacheClear.js","webpack:///./node_modules/lodash-es/_listCacheDelete.js","webpack:///./node_modules/lodash-es/_listCacheGet.js","webpack:///./node_modules/lodash-es/_listCacheHas.js","webpack:///./node_modules/lodash-es/_listCacheSet.js","webpack:///./node_modules/lodash-es/_mapCacheClear.js","webpack:///./node_modules/lodash-es/_mapCacheDelete.js","webpack:///./node_modules/lodash-es/_mapCacheGet.js","webpack:///./node_modules/lodash-es/_mapCacheHas.js","webpack:///./node_modules/lodash-es/_mapCacheSet.js","webpack:///./node_modules/lodash-es/_mapToArray.js","webpack:///./node_modules/lodash-es/_matchesStrictComparable.js","webpack:///./node_modules/lodash-es/_memoizeCapped.js","webpack:///./node_modules/lodash-es/_nativeCreate.js","webpack:///./node_modules/lodash-es/_nativeKeys.js","webpack:///./node_modules/lodash-es/_nativeKeysIn.js","webpack:///./node_modules/lodash-es/_nodeUtil.js","webpack:///./node_modules/lodash-es/_objectToString.js","webpack:///./node_modules/lodash-es/_overArg.js","webpack:///./node_modules/lodash-es/_overRest.js","webpack:///./node_modules/lodash-es/_root.js","webpack:///./node_modules/lodash-es/_safeGet.js","webpack:///./node_modules/lodash-es/_setCacheAdd.js","webpack:///./node_modules/lodash-es/_setCacheHas.js","webpack:///./node_modules/lodash-es/_setToArray.js","webpack:///./node_modules/lodash-es/_setToString.js","webpack:///./node_modules/lodash-es/_shortOut.js","webpack:///./node_modules/lodash-es/_stackClear.js","webpack:///./node_modules/lodash-es/_stackDelete.js","webpack:///./node_modules/lodash-es/_stackGet.js","webpack:///./node_modules/lodash-es/_stackHas.js","webpack:///./node_modules/lodash-es/_stackSet.js","webpack:///./node_modules/lodash-es/_stringToPath.js","webpack:///./node_modules/lodash-es/_toKey.js","webpack:///./node_modules/lodash-es/_toSource.js","webpack:///./node_modules/lodash-es/constant.js","webpack:///./node_modules/lodash-es/eq.js","webpack:///./node_modules/lodash-es/get.js","webpack:///./node_modules/lodash-es/hasIn.js","webpack:///./node_modules/lodash-es/identity.js","webpack:///./node_modules/lodash-es/isArguments.js","webpack:///./node_modules/lodash-es/isArray.js","webpack:///./node_modules/lodash-es/isArrayLike.js","webpack:///./node_modules/lodash-es/isArrayLikeObject.js","webpack:///./node_modules/lodash-es/isBuffer.js","webpack:///./node_modules/lodash-es/isEmpty.js","webpack:///./node_modules/lodash-es/isEqual.js","webpack:///./node_modules/lodash-es/isEqualWith.js","webpack:///./node_modules/lodash-es/isFunction.js","webpack:///./node_modules/lodash-es/isLength.js","webpack:///./node_modules/lodash-es/isObject.js","webpack:///./node_modules/lodash-es/isObjectLike.js","webpack:///./node_modules/lodash-es/isPlainObject.js","webpack:///./node_modules/lodash-es/isSymbol.js","webpack:///./node_modules/lodash-es/isTypedArray.js","webpack:///./node_modules/lodash-es/keys.js","webpack:///./node_modules/lodash-es/keysIn.js","webpack:///./node_modules/lodash-es/mapValues.js","webpack:///./node_modules/lodash-es/memoize.js","webpack:///./node_modules/lodash-es/merge.js","webpack:///./node_modules/lodash-es/property.js","webpack:///./node_modules/lodash-es/stubArray.js","webpack:///./node_modules/lodash-es/stubFalse.js","webpack:///./node_modules/lodash-es/toPath.js","webpack:///./node_modules/lodash-es/toPlainObject.js","webpack:///./node_modules/lodash-es/toString.js","webpack:///./node_modules/object-assign/index.js","webpack:///./node_modules/prop-types/checkPropTypes.js","webpack:///./node_modules/prop-types/factoryWithTypeCheckers.js","webpack:///./node_modules/prop-types/index.js","webpack:///./node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack:///./node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js","webpack:///./node_modules/react-redux/es/components/Provider.js","webpack:///./node_modules/react-redux/es/components/connectAdvanced.js","webpack:///./node_modules/react-redux/es/connect/connect.js","webpack:///./node_modules/react-redux/es/connect/mapDispatchToProps.js","webpack:///./node_modules/react-redux/es/connect/mapStateToProps.js","webpack:///./node_modules/react-redux/es/connect/mergeProps.js","webpack:///./node_modules/react-redux/es/connect/selectorFactory.js","webpack:///./node_modules/react-redux/es/connect/verifySubselectors.js","webpack:///./node_modules/react-redux/es/connect/wrapMapToProps.js","webpack:///./node_modules/react-redux/es/index.js","webpack:///./node_modules/react-redux/es/utils/PropTypes.js","webpack:///./node_modules/react-redux/es/utils/Subscription.js","webpack:///./node_modules/react-redux/es/utils/shallowEqual.js","webpack:///./node_modules/react-redux/es/utils/verifyPlainObject.js","webpack:///./node_modules/react-redux/es/utils/warning.js","webpack:///./node_modules/react/cjs/react.development.js","webpack:///./node_modules/react/index.js","webpack:///./node_modules/redux-form/es/ConnectedField.js","webpack:///./node_modules/redux-form/es/ConnectedFieldArray.js","webpack:///./node_modules/redux-form/es/ConnectedFields.js","webpack:///./node_modules/redux-form/es/Field.js","webpack:///./node_modules/redux-form/es/FieldArray.js","webpack:///./node_modules/redux-form/es/Fields.js","webpack:///./node_modules/redux-form/es/Form.js","webpack:///./node_modules/redux-form/es/FormName.js","webpack:///./node_modules/redux-form/es/FormSection.js","webpack:///./node_modules/redux-form/es/SubmissionError.js","webpack:///./node_modules/redux-form/es/actionTypes.js","webpack:///./node_modules/redux-form/es/actions.js","webpack:///./node_modules/redux-form/es/asyncValidation.js","webpack:///./node_modules/redux-form/es/createField.js","webpack:///./node_modules/redux-form/es/createFieldArray.js","webpack:///./node_modules/redux-form/es/createFieldArrayProps.js","webpack:///./node_modules/redux-form/es/createFieldProps.js","webpack:///./node_modules/redux-form/es/createFields.js","webpack:///./node_modules/redux-form/es/createFormValueSelector.js","webpack:///./node_modules/redux-form/es/createFormValues.js","webpack:///./node_modules/redux-form/es/createReducer.js","webpack:///./node_modules/redux-form/es/createReduxForm.js","webpack:///./node_modules/redux-form/es/createValues.js","webpack:///./node_modules/redux-form/es/defaultShouldAsyncValidate.js","webpack:///./node_modules/redux-form/es/defaultShouldError.js","webpack:///./node_modules/redux-form/es/defaultShouldValidate.js","webpack:///./node_modules/redux-form/es/defaultShouldWarn.js","webpack:///./node_modules/redux-form/es/deleteInWithCleanUp.js","webpack:///./node_modules/redux-form/es/events/getValue.js","webpack:///./node_modules/redux-form/es/events/isEvent.js","webpack:///./node_modules/redux-form/es/events/onChangeValue.js","webpack:///./node_modules/redux-form/es/events/silenceEvent.js","webpack:///./node_modules/redux-form/es/events/silenceEvents.js","webpack:///./node_modules/redux-form/es/formValueSelector.js","webpack:///./node_modules/redux-form/es/formValues.js","webpack:///./node_modules/redux-form/es/generateValidator.js","webpack:///./node_modules/redux-form/es/getFormAsyncErrors.js","webpack:///./node_modules/redux-form/es/getFormError.js","webpack:///./node_modules/redux-form/es/getFormInitialValues.js","webpack:///./node_modules/redux-form/es/getFormMeta.js","webpack:///./node_modules/redux-form/es/getFormNames.js","webpack:///./node_modules/redux-form/es/getFormSubmitErrors.js","webpack:///./node_modules/redux-form/es/getFormSyncErrors.js","webpack:///./node_modules/redux-form/es/getFormSyncWarnings.js","webpack:///./node_modules/redux-form/es/getFormValues.js","webpack:///./node_modules/redux-form/es/handleSubmit.js","webpack:///./node_modules/redux-form/es/hasError.js","webpack:///./node_modules/redux-form/es/hasSubmitFailed.js","webpack:///./node_modules/redux-form/es/hasSubmitSucceeded.js","webpack:///./node_modules/redux-form/es/index.js","webpack:///./node_modules/redux-form/es/isAsyncValidating.js","webpack:///./node_modules/redux-form/es/isDirty.js","webpack:///./node_modules/redux-form/es/isInvalid.js","webpack:///./node_modules/redux-form/es/isPristine.js","webpack:///./node_modules/redux-form/es/isReactNative.js","webpack:///./node_modules/redux-form/es/isSubmitting.js","webpack:///./node_modules/redux-form/es/isValid.js","webpack:///./node_modules/redux-form/es/propTypes.js","webpack:///./node_modules/redux-form/es/reducer.js","webpack:///./node_modules/redux-form/es/reduxForm.js","webpack:///./node_modules/redux-form/es/selectors/getFormAsyncErrors.js","webpack:///./node_modules/redux-form/es/selectors/getFormError.js","webpack:///./node_modules/redux-form/es/selectors/getFormInitialValues.js","webpack:///./node_modules/redux-form/es/selectors/getFormMeta.js","webpack:///./node_modules/redux-form/es/selectors/getFormNames.js","webpack:///./node_modules/redux-form/es/selectors/getFormSubmitErrors.js","webpack:///./node_modules/redux-form/es/selectors/getFormSyncErrors.js","webpack:///./node_modules/redux-form/es/selectors/getFormSyncWarnings.js","webpack:///./node_modules/redux-form/es/selectors/getFormValues.js","webpack:///./node_modules/redux-form/es/selectors/hasSubmitFailed.js","webpack:///./node_modules/redux-form/es/selectors/hasSubmitSucceeded.js","webpack:///./node_modules/redux-form/es/selectors/isAsyncValidating.js","webpack:///./node_modules/redux-form/es/selectors/isDirty.js","webpack:///./node_modules/redux-form/es/selectors/isInvalid.js","webpack:///./node_modules/redux-form/es/selectors/isPristine.js","webpack:///./node_modules/redux-form/es/selectors/isSubmitting.js","webpack:///./node_modules/redux-form/es/selectors/isValid.js","webpack:///./node_modules/redux-form/es/structure/plain/deepEqual.js","webpack:///./node_modules/redux-form/es/structure/plain/deleteIn.js","webpack:///./node_modules/redux-form/es/structure/plain/getIn.js","webpack:///./node_modules/redux-form/es/structure/plain/index.js","webpack:///./node_modules/redux-form/es/structure/plain/keys.js","webpack:///./node_modules/redux-form/es/structure/plain/setIn.js","webpack:///./node_modules/redux-form/es/structure/plain/splice.js","webpack:///./node_modules/redux-form/es/util/eventConsts.js","webpack:///./node_modules/redux-form/es/util/getDisplayName.js","webpack:///./node_modules/redux-form/es/util/isHotReloading.js","webpack:///./node_modules/redux-form/es/util/prefixName.js","webpack:///./node_modules/redux-form/es/util/shallowCompare.js","webpack:///./node_modules/redux-form/es/values.js","webpack:///./node_modules/redux/es/redux.js","webpack:///./node_modules/symbol-observable/es/index.js","webpack:///./node_modules/symbol-observable/es/ponyfill.js","webpack:///(webpack)/buildin/global.js","webpack:///(webpack)/buildin/module.js"],"names":["App","LoginForm","handleSubmit","props","form","loginStyle","width","margin","position","top","modalStyle","marginTop","titleStyle","paddingBottom","containerStyle","textAlign","maxWidth","padding","boxShadow","zIndex","Login","submit","console","log","values","state","email","password","Component","_classCallCheck","instance","Constructor","TypeError","_possibleConstructorReturn","self","call","ReferenceError","_inherits","subClass","superClass","prototype","Object","create","constructor","value","enumerable","writable","configurable","setPrototypeOf","__proto__","_extendableBuiltin","cls","ExtendableBuiltin","apply","arguments","ExtendableError","_extendableBuiltin2","message","length","undefined","_this","getPrototypeOf","defineProperty","name","Error","hasOwnProperty","captureStackTrace","stack","makeEmptyFunction","arg","emptyFunction","thatReturns","thatReturnsFalse","thatReturnsTrue","thatReturnsNull","thatReturnsThis","thatReturnsArgument","module","exports","emptyObject","freeze","validateFormat","format","invariant","condition","a","b","c","d","e","f","error","args","argIndex","replace","framesToPop","require","warning","printWarning","_len","Array","_key","x","indexOf","_len2","_key2","concat","REACT_STATICS","childContextTypes","contextTypes","defaultProps","displayName","getDefaultProps","getDerivedStateFromProps","mixins","propTypes","type","KNOWN_STATICS","caller","callee","arity","getOwnPropertyNames","getOwnPropertySymbols","getOwnPropertyDescriptor","objectPrototype","hoistNonReactStatics","targetComponent","sourceComponent","blacklist","inheritedComponent","keys","i","key","descriptor","isPromise","obj","then","DataView","root","Hash","entries","index","clear","entry","set","hashClear","hashDelete","get","hashGet","has","hashHas","hashSet","ListCache","listCacheClear","listCacheDelete","listCacheGet","listCacheHas","listCacheSet","Map","MapCache","mapCacheClear","mapCacheDelete","mapCacheGet","mapCacheHas","mapCacheSet","Promise","Set","SetCache","__data__","add","push","setCacheAdd","setCacheHas","Stack","data","size","stackClear","stackDelete","stackGet","stackHas","stackSet","Symbol","Uint8Array","WeakMap","func","thisArg","arrayFilter","array","predicate","resIndex","result","objectProto","arrayLikeKeys","inherited","isArr","isArg","isBuff","isType","skipIndexes","String","arrayMap","iteratee","arrayPush","offset","arraySome","assignMergeValue","object","assignValue","objValue","assocIndexOf","baseAssignValue","objectCreate","baseCreate","proto","baseFor","baseForOwn","baseGet","path","baseGetAllKeys","keysFunc","symbolsFunc","nullTag","undefinedTag","symToStringTag","toStringTag","baseGetTag","baseHasIn","argsTag","baseIsArguments","baseIsEqual","other","bitmask","customizer","COMPARE_PARTIAL_FLAG","arrayTag","objectTag","baseIsEqualDeep","equalFunc","objIsArr","othIsArr","objTag","othTag","objIsObj","othIsObj","isSameTag","objIsWrapped","othIsWrapped","objUnwrapped","othUnwrapped","COMPARE_UNORDERED_FLAG","baseIsMatch","source","matchData","noCustomizer","srcValue","reRegExpChar","reIsHostCtor","funcProto","Function","funcToString","toString","reIsNative","RegExp","baseIsNative","pattern","test","boolTag","dateTag","errorTag","funcTag","mapTag","numberTag","regexpTag","setTag","stringTag","weakMapTag","arrayBufferTag","dataViewTag","float32Tag","float64Tag","int8Tag","int16Tag","int32Tag","uint8Tag","uint8ClampedTag","uint16Tag","uint32Tag","typedArrayTags","baseIsTypedArray","baseIteratee","identity","baseKeys","baseKeysIn","isProto","baseMatches","baseMatchesProperty","baseMerge","srcIndex","newValue","keysIn","baseMergeDeep","mergeFunc","stacked","isCommon","isTyped","baseProperty","basePropertyDeep","baseRest","start","baseSetToString","string","baseTimes","n","INFINITY","symbolProto","symbolToString","baseToString","baseUnary","cacheHas","cache","castPath","cloneArrayBuffer","arrayBuffer","byteLength","freeExports","nodeType","freeModule","moduleExports","Buffer","allocUnsafe","cloneBuffer","buffer","isDeep","slice","copy","cloneTypedArray","typedArray","byteOffset","copyArray","copyObject","isNew","coreJsData","createAssigner","assigner","sources","guard","createBaseFor","fromRight","iterable","equalArrays","isPartial","arrLength","othLength","seen","arrValue","othValue","compared","othIndex","symbolTag","symbolValueOf","valueOf","equalByTag","tag","convert","mapToArray","setToArray","equalObjects","objProps","objLength","othProps","skipCtor","objCtor","othCtor","freeGlobal","global","getAllKeys","getSymbols","getMapData","map","getMatchData","getNative","getPrototype","nativeObjectToString","getRawTag","isOwn","unmasked","propertyIsEnumerable","nativeGetSymbols","stubArray","symbol","promiseTag","dataViewCtorString","mapCtorString","promiseCtorString","setCtorString","weakMapCtorString","getTag","ArrayBuffer","resolve","Ctor","ctorString","getValue","hasPath","hasFunc","nativeCreate","HASH_UNDEFINED","initCloneObject","MAX_SAFE_INTEGER","reIsUint","isIndex","isIterateeCall","reIsDeepProp","reIsPlainProp","isKey","isKeyable","maskSrcKey","uid","exec","IE_PROTO","isMasked","isPrototype","isStrictComparable","arrayProto","splice","lastIndex","pop","forEach","matchesStrictComparable","MAX_MEMOIZE_SIZE","memoizeCapped","nativeKeys","nativeKeysIn","freeProcess","process","nodeUtil","types","binding","objectToString","overArg","transform","nativeMax","Math","max","overRest","otherArgs","freeSelf","safeGet","setToString","HOT_COUNT","HOT_SPAN","nativeNow","Date","now","shortOut","count","lastCalled","stamp","remaining","LARGE_ARRAY_SIZE","pairs","rePropName","reEscapeChar","stringToPath","charCodeAt","match","number","quote","subString","toKey","toSource","constant","eq","defaultValue","hasIn","isArguments","isArray","isArrayLike","isArrayLikeObject","nativeIsBuffer","isBuffer","stubFalse","isEmpty","isEqual","isEqualWith","asyncTag","genTag","proxyTag","isFunction","isLength","isObject","isObjectLike","objectCtorString","isPlainObject","isSymbol","nodeIsTypedArray","isTypedArray","mapValues","FUNC_ERROR_TEXT","memoize","resolver","memoized","Cache","merge","property","toPath","toPlainObject","propIsEnumerable","toObject","val","shouldUseNative","assign","test1","test2","fromCharCode","order2","join","test3","split","letter","err","target","from","to","symbols","s","ReactPropTypesSecret","loggedTypeFailures","text","checkPropTypes","typeSpecs","location","componentName","getStack","typeSpecName","ex","emptyFunctionThatReturnsNull","isValidElement","throwOnDirectAccess","ITERATOR_SYMBOL","iterator","FAUX_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","iteratorFn","ANONYMOUS","ReactPropTypes","createPrimitiveTypeChecker","bool","any","createAnyTypeChecker","arrayOf","createArrayOfTypeChecker","element","createElementTypeChecker","instanceOf","createInstanceTypeChecker","node","createNodeChecker","objectOf","createObjectOfTypeChecker","oneOf","createEnumTypeChecker","oneOfType","createUnionTypeChecker","shape","createShapeTypeChecker","exact","createStrictShapeTypeChecker","is","y","PropTypeError","createChainableTypeChecker","validate","manualPropTypeCallCache","manualPropTypeWarningCount","checkType","isRequired","propName","propFullName","secret","cacheKey","chainedCheckType","bind","expectedType","propValue","propType","getPropType","preciseType","getPreciseType","typeChecker","expectedClass","expectedClassName","actualClassName","getClassName","expectedValues","valuesString","JSON","stringify","arrayOfTypeCheckers","checker","getPostfixForTypeWarning","isNode","shapeTypes","allKeys","every","step","next","done","PropTypes","REACT_ELEMENT_TYPE","for","$$typeof","componentWillMount","setState","componentWillReceiveProps","nextProps","updater","prevState","componentWillUpdate","nextState","prevProps","__reactInternalSnapshotFlag","__reactInternalSnapshot","getSnapshotBeforeUpdate","__suppressDeprecationWarning","polyfill","isReactComponent","foundWillMountName","foundWillReceivePropsName","foundWillUpdateName","UNSAFE_componentWillMount","UNSAFE_componentWillReceiveProps","UNSAFE_componentWillUpdate","newApiName","componentDidUpdate","componentDidUpdatePolyfill","maybeSnapshot","snapshot","createProvider","didWarnAboutReceivingStore","warnAboutReceivingStore","_Provider$childContex","storeKey","subKey","subscriptionKey","Provider","_Component","getChildContext","_ref","context","store","render","Children","only","children","storeShape","subscriptionShape","connectAdvanced","_extends","_objectWithoutProperties","hotReloadingVersion","dummyState","noop","makeSelectorStateful","sourceSelector","selector","run","runComponentSelector","getState","shouldComponentUpdate","selectorFactory","_contextTypes","_childContextTypes","_ref$getDisplayName","getDisplayName","_ref$methodName","methodName","_ref$renderCountProp","renderCountProp","_ref$shouldHandleStat","shouldHandleStateChanges","_ref$storeKey","_ref$withRef","withRef","connectOptions","version","wrapWithConnect","WrappedComponent","wrappedComponentName","selectorFactoryOptions","Connect","renderCount","propsMode","Boolean","setWrappedInstance","initSelector","initSubscription","_ref2","subscription","componentDidMount","trySubscribe","forceUpdate","componentWillUnmount","tryUnsubscribe","notifyNestedSubs","getWrappedInstance","wrappedInstance","ref","dispatch","parentSub","Subscription","onStateChange","notifyNestedSubsOnComponentDidUpdate","isSubscribed","addExtraProps","withExtras","_this2","oldListeners","listeners","listener","subscribe","createConnect","factories","options","strictEqual","_ref$connectHOC","connectHOC","_ref$mapStateToPropsF","mapStateToPropsFactories","defaultMapStateToPropsFactories","_ref$mapDispatchToPro","mapDispatchToPropsFactories","defaultMapDispatchToPropsFactories","_ref$mergePropsFactor","mergePropsFactories","defaultMergePropsFactories","_ref$selectorFactory","defaultSelectorFactory","connect","mapStateToProps","mapDispatchToProps","mergeProps","_ref2$pure","pure","_ref2$areStatesEqual","areStatesEqual","_ref2$areOwnPropsEqua","areOwnPropsEqual","shallowEqual","_ref2$areStatePropsEq","areStatePropsEqual","_ref2$areMergedPropsE","areMergedPropsEqual","extraOptions","initMapStateToProps","initMapDispatchToProps","initMergeProps","whenMapDispatchToPropsIsFunction","whenMapDispatchToPropsIsMissing","whenMapDispatchToPropsIsObject","whenMapStateToPropsIsFunction","whenMapStateToPropsIsMissing","defaultMergeProps","wrapMergePropsFunc","whenMergePropsIsFunction","whenMergePropsIsOmitted","stateProps","dispatchProps","ownProps","initMergePropsProxy","hasRunOnce","mergedProps","mergePropsProxy","nextMergedProps","impureFinalPropsSelectorFactory","pureFinalPropsSelectorFactory","finalPropsSelectorFactory","impureFinalPropsSelector","hasRunAtLeastOnce","handleFirstCall","firstState","firstOwnProps","handleNewPropsAndNewState","dependsOnOwnProps","handleNewProps","handleNewState","nextStateProps","statePropsChanged","handleSubsequentCalls","nextOwnProps","propsChanged","stateChanged","pureFinalPropsSelector","verifySubselectors","verify","wrapMapToPropsConstant","getDependsOnOwnProps","wrapMapToPropsFunc","getConstant","initConstantSelector","constantSelector","mapToProps","initProxySelector","proxy","mapToPropsProxy","stateOrDispatch","detectFactoryAndVerify","CLEARED","nullListeners","notify","createListenerCollection","current","unsubscribe","addNestedSub","default","hasOwn","objA","objB","keysA","keysB","verifyPlainObject","_assign","ReactVersion","hasSymbol","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_ASYNC_MODE_TYPE","REACT_FORWARD_REF_TYPE","REACT_TIMEOUT_TYPE","MAYBE_ITERATOR_SYMBOL","maybeIterator","enableSuspense","lowPriorityWarning","warn","lowPriorityWarning$1","didWarnStateUpdateForUnmountedComponent","warnNoop","publicInstance","callerName","_constructor","warningKey","ReactNoopUpdateQueue","isMounted","enqueueForceUpdate","callback","enqueueReplaceState","completeState","enqueueSetState","partialState","refs","deprecatedAPIs","replaceState","defineDeprecationWarning","info","fnName","ComponentDummy","PureComponent","pureComponentPrototype","isPureReactComponent","createRef","refObject","seal","ReactCurrentOwner","RESERVED_PROPS","__self","__source","specialPropKeyWarningShown","specialPropRefWarningShown","hasValidRef","config","getter","isReactWarning","hasValidKey","defineKeyPropWarningGetter","warnAboutAccessingKey","defineRefPropWarningGetter","warnAboutAccessingRef","ReactElement","owner","_owner","_store","createElement","childrenLength","childArray","cloneAndReplaceKey","oldElement","newKey","newElement","_self","_source","cloneElement","ReactDebugCurrentFrame","getCurrentStack","getStackAddendum","impl","SEPARATOR","SUBSEPARATOR","escape","escapeRegex","escaperLookup","escapedString","didWarnAboutMaps","userProvidedKeyEscapeRegex","escapeUserProvidedKey","POOL_SIZE","traverseContextPool","getPooledTraverseContext","mapResult","keyPrefix","mapFunction","mapContext","traverseContext","releaseTraverseContext","traverseAllChildrenImpl","nameSoFar","invokeCallback","getComponentKey","child","nextName","subtreeCount","nextNamePrefix","ii","addendum","childrenString","traverseAllChildren","component","forEachSingleChild","bookKeeping","forEachChildren","forEachFunc","forEachContext","mapSingleChildIntoContext","childKey","mappedChild","mapIntoWithKeyPrefixInternal","prefix","escapedPrefix","mapChildren","countChildren","toArray","onlyChild","createContext","calculateChangedBits","_calculateChangedBits","_defaultValue","_currentValue","_currentValue2","_changedBits","_changedBits2","Consumer","_context","_currentRenderer","_currentRenderer2","forwardRef","describeComponentFrame","ownerName","fileName","lineNumber","isValidElementType","getComponentName","fiber","pendingProps","id","functionName","currentlyValidatingElement","propTypesMisspellWarningShown","getDeclarationErrorAddendum","getSourceInfoErrorAddendum","elementProps","ownerHasKeyUseWarning","getCurrentComponentErrorInfo","parentType","parentName","validateExplicitKey","validated","currentComponentErrorInfo","childOwner","validateChildKeys","validatePropTypes","isReactClassApproved","validateFragmentProps","fragment","createElementWithValidation","validType","sourceInfo","typeString","createFactoryWithValidation","validatedFactory","cloneElementWithValidation","React","Fragment","StrictMode","unstable_AsyncMode","unstable_Profiler","createFactory","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","Timeout","ReactComponentTreeHook","React$2","React$3","react","_createClass","defineProperties","protoProps","staticProps","_typeof","propsToNotUpdateFor","entity","eventPreventDefault","event","preventDefault","eventDataTransferGetData","dataTransfer","getData","eventDataTransferSetData","setData","createConnectedField","structure","deepEqual","getIn","getSyncError","syncErrors","plain","_error","getSyncWarning","syncWarnings","_warning","ConnectedField","_temp","_ret","saveRef","isPristine","pristine","handleChange","_this$props","parse","normalize","onChange","_reduxForm","previousValue","defaultPrevented","isReactNative","change","asyncValidate","handleFocus","_this$props2","onFocus","focus","handleBlur","_this$props3","onBlur","_value","blur","handleDragStart","_this$props4","onDragStart","dataKey","handleDrop","_this$props5","onDrop","nextPropsKeys","thisPropsKeys","some","prop","immutableProps","getRenderedComponent","_props","rest","_createFieldProps","custom","input","meta","connector","_ownProps$_reduxForm","initialValues","getFormState","formState","initialState","initial","submitting","syncError","syncWarning","asyncError","asyncValidating","dirty","submitError","submitFailed","createConnectedFieldArray","ConnectedFieldArray","_React$Component","thisValue","nextValue","nextValueItemsSame","nextValueItemsOrderChanged","rerenderOnEveryChange","sectionPrefix","arrayInsert","arrayMove","arrayPop","arrayRemove","arrayRemoveAll","arrayShift","arraySplice","arraySwap","arrayUnshift","actionCreator","createConnectedFields","ConnectedFields","onChangeFns","onFocusFns","onBlurFns","prepareEventHandlers","names","_fields","_this3","isDirty","getValues","reduce","accumulator","setIn","_this4","_Object$keys$reduce","connectedProps","fieldProps","fieldName","Form","registerInnerOnSubmit","onSubmit","FormName","FormSection","SubmissionError","_ExtendableError","errors","ARRAY_INSERT","ARRAY_MOVE","ARRAY_POP","ARRAY_PUSH","ARRAY_REMOVE","ARRAY_REMOVE_ALL","ARRAY_SHIFT","ARRAY_SPLICE","ARRAY_UNSHIFT","ARRAY_SWAP","AUTOFILL","BLUR","CHANGE","CLEAR_FIELDS","CLEAR_SUBMIT","CLEAR_SUBMIT_ERRORS","CLEAR_ASYNC_ERROR","DESTROY","FOCUS","INITIALIZE","REGISTER_FIELD","RESET","RESET_SECTION","SET_SUBMIT_FAILED","SET_SUBMIT_SUCCEEDED","START_ASYNC_VALIDATION","START_SUBMIT","STOP_ASYNC_VALIDATION","STOP_SUBMIT","SUBMIT","TOUCH","UNREGISTER_FIELD","UNTOUCH","UPDATE_SYNC_ERRORS","UPDATE_SYNC_WARNINGS","field","payload","removeNum","action","indexA","indexB","autofill","touch","persistentSubmitErrors","clearSubmit","clearSubmitErrors","clearAsyncError","clearFields","keepTouched","fields","destroy","initialize","keepDirty","otherMeta","registerField","reset","resetSection","_len3","sections","_key3","startAsyncValidation","startSubmit","stopAsyncValidation","stopSubmit","setSubmitFailed","_len4","_key4","setSubmitSucceeded","_len5","_key5","_len6","_key6","unregisterField","destroyOnUnmount","untouch","_len7","_key7","updateSyncErrors","updateSyncWarnings","actions","asyncValidation","fn","stop","promise","handleErrors","rejected","createField","Field","previousValues","nextValues","register","nextContext","oldName","newName","unregister","_defineProperty","wrapError","validators","createFieldArray","FieldArray","createFieldArrayProps","finalProps","_isFieldArray","item","getAll","insert","move","remove","removeAll","shift","swap","unshift","invalid","valid","processProps","checked","createFieldProps","toJS","formatFieldValue","defaultFormattedValue","formattedFieldValue","active","autofilled","touched","visited","validateNameProp","createFields","Fields","_context$_reduxForm","connected","createFormValueSelector","nonNullGetFormState","createValues","firstArg","FormValues","updateComponent","valuesMap","resolvedFirstArg","k","_valuesMap","setComponent","formValuesSelector","_","_ref3","otherProps","shouldDelete","initialValuesPath","startsWith","initialValueComparison","isReduxFormAction","substring","createReducer","_behaviors","empty","deleteIn","fromJS","deleteInWithCleanUp","plainDeleteInWithCleanUp","doSplice","force","existing","doPlainSplice","rootKeys","nonValuesValue","behaviors","_ref2$meta","_ref3$meta","_ref4","_ref5","_ref6","_ref6$meta","_ref7","_ref8","_ref9","_ref9$meta","_ref10","_ref10$meta","valueA","valueB","_ref11","_ref12","_ref13","_ref13$meta","_ref14","_ref14$meta","_ref15","_ref16","_ref16$meta","anyTouched","_ref17","previouslyActive","_ref18","_ref18$meta","keepSubmitSucceeded","updateUnregisteredFields","keepValues","mapData","registeredFields","previousInitialValues","newInitialValues","newValues","overwritePristineValue","previousInitialValue","newInitialValue","_ref19","_ref19$payload","_ref20","section","_ref21","_ref22","fieldErrors","_ref23","_ref24","_ref25","_ref26","_ref26$payload","_ref27","_ref28","_ref28$payload","_ref29","_ref29$payload","reducer","behavior","byForm","decorate","plugin","reducers","callPlugin","processed","previousState","_toConsumableArray","arr","arr2","isClassComponent","importedActions","formActions","arrayActions","checkSubmit","createReduxForm","isValid","initialConfig","touchOnBlur","touchOnChange","shouldAsyncValidate","defaultShouldAsyncValidate","shouldValidate","defaultShouldValidate","shouldError","defaultShouldError","shouldWarn","defaultShouldWarn","enableReinitialize","keepDirtyOnReinitialize","forceUnregisterOnUnmount","destroyed","fieldCounts","fieldValidators","lastFieldValidatorKeys","fieldWarners","lastFieldWarnerKeys","innerOnSubmit","submitPromise","getValidator","getWarner","lastCount","nextCount","_destroyOnUnmount","_forceUnregisterOnUnmount","_unregisterField","filter","getFieldList","list","keySeq","excludeFieldArray","acc","getValidators","validator","generateValidator","getWarners","warners","warner","generateWarner","trigger","asyncBlurFields","asyncChangeFields","asyncErrors","initialized","fieldNeedsValidation","fieldNeedsValidationForBlur","fieldNeedsValidationForChange","asyncValidateByDefault","valuesToValidate","syncValidationPasses","blurredField","submitCompleted","listenToSubmit","submitOrEvent","validExceptSubmit","wrapped","initIfNeeded","_keepDirty","lastInitialValues","updateSyncErrorsIfNeeded","nextSyncErrors","nextError","lastSyncErrors","noErrors","nextNoErrors","clearSubmitPromiseIfNeeded","submitIfNeeded","_props2","triggerSubmit","shouldErrorFunction","_props3","shouldValidateOverridden","shouldErrorOverridden","validateIfNeeded","_props4","fieldLevelValidate","initialRender","fieldValidatorKeys","validateParams","propsToValidate","_merge2","updateSyncWarningsIfNeeded","nextSyncWarnings","nextWarning","lastSyncWarnings","_props5","noWarnings","nextNoWarnings","shouldWarnFunction","_props6","shouldWarnOverridden","warnIfNeeded","_props7","fieldLevelWarn","fieldWarnerKeys","propsToWarn","_merge3","_config$immutableProp","_props8","_props9","propNamespace","submitSucceeded","reduxFormProps","propsToPass","onSubmitFail","onSubmitSuccess","stateInitial","shouldUpdateInitialValues","shouldResetValues","initialProps","bindForm","boundFormACs","boundArrayACs","boundBlur","boundChange","boundFocus","connectedFormACs","connectedArrayACs","computedActions","ConnectedForm","ReduxForm","_Component2","_this5","_props10","_prop$getFormState$co","createDeleteInWithCleanUp","shouldDeleteDefault","pathTokens","parent","dotIndex","lastIndexOf","parentPath","_parent","getSelectedValues","option","selected","nativeEvent","detypedEvent","_detypedEvent$target","files","isEvent","candidate","stopPropagation","onChangeValue","silenceEvent","silenceEvents","getError","doSubmit","submitResult","asyncValidateResult","catch","reject","getErrorKeys","createHasError","hasError","submitErrors","fieldInputPropTypes","fieldMetaPropTypes","fieldPropTypes","fieldArrayFieldsPropTypes","fieldArrayMetaPropTypes","fieldArrayPropTypes","formPropTypes","_actionTypes","actionTypes","window","navigator","product","createGetFormAsyncErrors","createGetFormError","createGetFormInitialValues","createGetFormMeta","createGetFormNames","createGetFormSubmitErrors","createGetFormSyncErrors","createGetFormSyncWarnings","createGetFormValues","createHasSubmitFailed","createHasSubmitSucceeded","createIsAsyncValidating","createIsDirty","createIsInvalid","createIsPristine","fieldInitial","fieldValue","createIsSubmitting","createIsValid","ignoreSubmitErrors","objIsEmpty","otherIsEmpty","deleteInWithPath","first","isNaN","firstIndex","Number","_result","_firstIndex","_copy","_copy2","allowsArrayErrors","emptyList","items","setInWithPath","pathIndex","parseInt","_copy3","Comp","isHotReloading","hot","status","formatName","objectValue","otherValue","indexOrkey","shallowCompare","propsEqual","stateEqual","ActionTypes","INIT","random","REPLACE","createStore","preloadedState","enhancer","currentReducer","currentState","currentListeners","nextListeners","isDispatching","ensureCanMutateNextListeners","replaceReducer","nextReducer","observable","outerSubscribe","observer","observeState","$$observable","getUndefinedStateErrorMessage","actionType","actionDescription","getUnexpectedStateShapeWarningMessage","inputState","unexpectedKeyCache","reducerKeys","argumentName","unexpectedKeys","assertReducerShape","combineReducers","finalReducers","finalReducerKeys","shapeAssertionError","combination","warningMessage","hasChanged","_i","previousStateForKey","nextStateForKey","errorMessage","bindActionCreator","bindActionCreators","actionCreators","boundActionCreators","compose","funcs","applyMiddleware","middlewares","_dispatch","middlewareAPI","chain","middleware","isCrushed","__DO_NOT_USE__ActionTypes","symbolObservablePonyfill","g","eval","webpackPolyfill","deprecate","paths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AD2B;AAEvCsG,QAAK,eAAW;AACf,WAAOtE,OAAO6iD,CAAd;AACA;AAJsC,GAAxC;AAMAjlD,SAAOqB,cAAP,CAAsBe,MAAtB,EAA8B,IAA9B,EAAoC;AACnChC,eAAY,IADuB;AAEnCsG,QAAK,eAAW;AACf,WAAOtE,OAAOsD,CAAd;AACA;AAJkC,GAApC;AAMAtD,SAAO0iD,eAAP,GAAyB,CAAzB;AACA;AACD,QAAO1iD,MAAP;AACA,CArBD,C","file":"bundle.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n","import React, { Component } from 'react';\nimport Login from \"./containers/Login/LoginContainer\";\n\nexport const App = () => (\n <div>\n <Login />\n </div>\n);","import React, { Component } from 'react';\nimport { Field, reduxForm } from 'redux-form'\n\n\nlet LoginForm = props => {\n const { handleSubmit } = props\n return (\n <form onSubmit={handleSubmit}>\n <Field\n name=\"username\"\n component=\"input\"\n type=\"text\"\n placeholder=\"Username\"\n />\n <Field\n name=\"password\"\n component=\"input\"\n type=\"password\"\n placeholder=\"Password\"\n />\n <button type=\"submit\" label=\"submit\">Submit</button>\n </form>\n )\n }\n \n LoginForm = reduxForm({\n form: 'login'\n })(LoginForm)\n \n export default LoginForm\n","import React, { Component } from 'react';\nimport LoginForm from './../../components/LoginForm'\n\n\nconst loginStyle = { width: '100%', margin: 'auto', position: 'fixed', top: '20%'};\nconst modalStyle = { marginTop: '100px' };\nconst titleStyle = { paddingBottom: '20px' };\nconst containerStyle = { textAlign:'center', position: 'relative', margin: '0 auto 100px', maxWidth:'400px',\npadding: '10px 35px 35px', boxShadow: '0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24)', zIndex: '1' };\n\n\nclass Login extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n email: '',\n password: '',\n };\n }\n\n \n submit = values => {\n console.log(values)\n //this.setState\n }\n \n \n render() {\n return <LoginForm onSubmit={this.submit} />\n }\n }\n\n export default Login;","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nfunction _extendableBuiltin(cls) {\n function ExtendableBuiltin() {\n cls.apply(this, arguments);\n }\n\n ExtendableBuiltin.prototype = Object.create(cls.prototype, {\n constructor: {\n value: cls,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(ExtendableBuiltin, cls);\n } else {\n ExtendableBuiltin.__proto__ = cls;\n }\n\n return ExtendableBuiltin;\n}\n\nvar ExtendableError = function (_extendableBuiltin2) {\n _inherits(ExtendableError, _extendableBuiltin2);\n\n function ExtendableError() {\n var message = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n\n _classCallCheck(this, ExtendableError);\n\n // extending Error is weird and does not propagate `message`\n var _this = _possibleConstructorReturn(this, (ExtendableError.__proto__ || Object.getPrototypeOf(ExtendableError)).call(this, message));\n\n Object.defineProperty(_this, 'message', {\n configurable: true,\n enumerable: false,\n value: message,\n writable: true\n });\n\n Object.defineProperty(_this, 'name', {\n configurable: true,\n enumerable: false,\n value: _this.constructor.name,\n writable: true\n });\n\n if (Error.hasOwnProperty('captureStackTrace')) {\n Error.captureStackTrace(_this, _this.constructor);\n return _possibleConstructorReturn(_this);\n }\n\n Object.defineProperty(_this, 'stack', {\n configurable: true,\n enumerable: false,\n value: new Error(message).stack,\n writable: true\n });\n return _this;\n }\n\n return ExtendableError;\n}(_extendableBuiltin(Error));\n\nexport default ExtendableError;\n","\"use strict\";\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\nfunction makeEmptyFunction(arg) {\n return function () {\n return arg;\n };\n}\n\n/**\n * This function accepts and discards inputs; it has no side effects. This is\n * primarily useful idiomatically for overridable function endpoints which\n * always need to be callable, since JS lacks a null-call idiom ala Cocoa.\n */\nvar emptyFunction = function emptyFunction() {};\n\nemptyFunction.thatReturns = makeEmptyFunction;\nemptyFunction.thatReturnsFalse = makeEmptyFunction(false);\nemptyFunction.thatReturnsTrue = makeEmptyFunction(true);\nemptyFunction.thatReturnsNull = makeEmptyFunction(null);\nemptyFunction.thatReturnsThis = function () {\n return this;\n};\nemptyFunction.thatReturnsArgument = function (arg) {\n return arg;\n};\n\nmodule.exports = emptyFunction;","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n'use strict';\n\nvar emptyObject = {};\n\nif (process.env.NODE_ENV !== 'production') {\n Object.freeze(emptyObject);\n}\n\nmodule.exports = emptyObject;","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n'use strict';\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar validateFormat = function validateFormat(format) {};\n\nif (process.env.NODE_ENV !== 'production') {\n validateFormat = function validateFormat(format) {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n };\n}\n\nfunction invariant(condition, format, a, b, c, d, e, f) {\n validateFormat(format);\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(format.replace(/%s/g, function () {\n return args[argIndex++];\n }));\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n}\n\nmodule.exports = invariant;","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n'use strict';\n\nvar emptyFunction = require('./emptyFunction');\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar warning = emptyFunction;\n\nif (process.env.NODE_ENV !== 'production') {\n var printWarning = function printWarning(format) {\n for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n var argIndex = 0;\n var message = 'Warning: ' + format.replace(/%s/g, function () {\n return args[argIndex++];\n });\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n\n warning = function warning(condition, format) {\n if (format === undefined) {\n throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');\n }\n\n if (format.indexOf('Failed Composite propType: ') === 0) {\n return; // Ignore CompositeComponent proptype check.\n }\n\n if (!condition) {\n for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {\n args[_key2 - 2] = arguments[_key2];\n }\n\n printWarning.apply(undefined, [format].concat(args));\n }\n };\n}\n\nmodule.exports = warning;","'use strict';\n\n/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\nvar REACT_STATICS = {\n childContextTypes: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDefaultProps: true,\n getDerivedStateFromProps: true,\n mixins: true,\n propTypes: true,\n type: true\n};\n\nvar KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n callee: true,\n arguments: true,\n arity: true\n};\n\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = getPrototypeOf && getPrototypeOf(Object);\n\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n if (typeof sourceComponent !== 'string') { // don't hoist over string (html) components\n\n if (objectPrototype) {\n var inheritedComponent = getPrototypeOf(sourceComponent);\n if (inheritedComponent && inheritedComponent !== objectPrototype) {\n hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n }\n }\n\n var keys = getOwnPropertyNames(sourceComponent);\n\n if (getOwnPropertySymbols) {\n keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n }\n\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n if (!REACT_STATICS[key] && !KNOWN_STATICS[key] && (!blacklist || !blacklist[key])) {\n var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n try { // Avoid failures from read-only properties\n defineProperty(targetComponent, key, descriptor);\n } catch (e) {}\n }\n }\n\n return targetComponent;\n }\n\n return targetComponent;\n}\n\nmodule.exports = hoistNonReactStatics;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar invariant = function(condition, format, a, b, c, d, e, f) {\n if (process.env.NODE_ENV !== 'production') {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n }\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error(\n 'Minified exception occurred; use the non-minified dev environment ' +\n 'for the full error message and additional helpful warnings.'\n );\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(\n format.replace(/%s/g, function() { return args[argIndex++]; })\n );\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n};\n\nmodule.exports = invariant;\n","module.exports = isPromise;\n\nfunction isPromise(obj) {\n return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';\n}\n","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView');\n\nexport default DataView;\n","import hashClear from './_hashClear.js';\nimport hashDelete from './_hashDelete.js';\nimport hashGet from './_hashGet.js';\nimport hashHas from './_hashHas.js';\nimport hashSet from './_hashSet.js';\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\nexport default Hash;\n","import listCacheClear from './_listCacheClear.js';\nimport listCacheDelete from './_listCacheDelete.js';\nimport listCacheGet from './_listCacheGet.js';\nimport listCacheHas from './_listCacheHas.js';\nimport listCacheSet from './_listCacheSet.js';\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nexport default ListCache;\n","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\n\nexport default Map;\n","import mapCacheClear from './_mapCacheClear.js';\nimport mapCacheDelete from './_mapCacheDelete.js';\nimport mapCacheGet from './_mapCacheGet.js';\nimport mapCacheHas from './_mapCacheHas.js';\nimport mapCacheSet from './_mapCacheSet.js';\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nexport default MapCache;\n","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar Promise = getNative(root, 'Promise');\n\nexport default Promise;\n","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar Set = getNative(root, 'Set');\n\nexport default Set;\n","import MapCache from './_MapCache.js';\nimport setCacheAdd from './_setCacheAdd.js';\nimport setCacheHas from './_setCacheHas.js';\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\nexport default SetCache;\n","import ListCache from './_ListCache.js';\nimport stackClear from './_stackClear.js';\nimport stackDelete from './_stackDelete.js';\nimport stackGet from './_stackGet.js';\nimport stackHas from './_stackHas.js';\nimport stackSet from './_stackSet.js';\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\nexport default Stack;\n","import root from './_root.js';\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nexport default Symbol;\n","import root from './_root.js';\n\n/** Built-in value references. */\nvar Uint8Array = root.Uint8Array;\n\nexport default Uint8Array;\n","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar WeakMap = getNative(root, 'WeakMap');\n\nexport default WeakMap;\n","/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\nexport default apply;\n","/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\nexport default arrayFilter;\n","import baseTimes from './_baseTimes.js';\nimport isArguments from './isArguments.js';\nimport isArray from './isArray.js';\nimport isBuffer from './isBuffer.js';\nimport isIndex from './_isIndex.js';\nimport isTypedArray from './isTypedArray.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\nexport default arrayLikeKeys;\n","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nexport default arrayMap;\n","/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n}\n\nexport default arrayPush;\n","/**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\nfunction arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n}\n\nexport default arraySome;\n","import baseAssignValue from './_baseAssignValue.js';\nimport eq from './eq.js';\n\n/**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nexport default assignMergeValue;\n","import baseAssignValue from './_baseAssignValue.js';\nimport eq from './eq.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nexport default assignValue;\n","import eq from './eq.js';\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\nexport default assocIndexOf;\n","import defineProperty from './_defineProperty.js';\n\n/**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n}\n\nexport default baseAssignValue;\n","import isObject from './isObject.js';\n\n/** Built-in value references. */\nvar objectCreate = Object.create;\n\n/**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\nvar baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n}());\n\nexport default baseCreate;\n","import createBaseFor from './_createBaseFor.js';\n\n/**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\nexport default baseFor;\n","import baseFor from './_baseFor.js';\nimport keys from './keys.js';\n\n/**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\nfunction baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n}\n\nexport default baseForOwn;\n","import castPath from './_castPath.js';\nimport toKey from './_toKey.js';\n\n/**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\nfunction baseGet(object, path) {\n path = castPath(path, object);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined;\n}\n\nexport default baseGet;\n","import arrayPush from './_arrayPush.js';\nimport isArray from './isArray.js';\n\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n\nexport default baseGetAllKeys;\n","import Symbol from './_Symbol.js';\nimport getRawTag from './_getRawTag.js';\nimport objectToString from './_objectToString.js';\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nexport default baseGetTag;\n","/**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHasIn(object, key) {\n return object != null && key in Object(object);\n}\n\nexport default baseHasIn;\n","import baseGetTag from './_baseGetTag.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nexport default baseIsArguments;\n","import baseIsEqualDeep from './_baseIsEqualDeep.js';\nimport isObjectLike from './isObjectLike.js';\n\n/**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n}\n\nexport default baseIsEqual;\n","import Stack from './_Stack.js';\nimport equalArrays from './_equalArrays.js';\nimport equalByTag from './_equalByTag.js';\nimport equalObjects from './_equalObjects.js';\nimport getTag from './_getTag.js';\nimport isArray from './isArray.js';\nimport isBuffer from './isBuffer.js';\nimport isTypedArray from './isTypedArray.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n}\n\nexport default baseIsEqualDeep;\n","import Stack from './_Stack.js';\nimport baseIsEqual from './_baseIsEqual.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\nfunction baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n}\n\nexport default baseIsMatch;\n","import isFunction from './isFunction.js';\nimport isMasked from './_isMasked.js';\nimport isObject from './isObject.js';\nimport toSource from './_toSource.js';\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nexport default baseIsNative;\n","import baseGetTag from './_baseGetTag.js';\nimport isLength from './isLength.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nexport default baseIsTypedArray;\n","import baseMatches from './_baseMatches.js';\nimport baseMatchesProperty from './_baseMatchesProperty.js';\nimport identity from './identity.js';\nimport isArray from './isArray.js';\nimport property from './property.js';\n\n/**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\nfunction baseIteratee(value) {\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n if (typeof value == 'function') {\n return value;\n }\n if (value == null) {\n return identity;\n }\n if (typeof value == 'object') {\n return isArray(value)\n ? baseMatchesProperty(value[0], value[1])\n : baseMatches(value);\n }\n return property(value);\n}\n\nexport default baseIteratee;\n","import isPrototype from './_isPrototype.js';\nimport nativeKeys from './_nativeKeys.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\nexport default baseKeys;\n","import isObject from './isObject.js';\nimport isPrototype from './_isPrototype.js';\nimport nativeKeysIn from './_nativeKeysIn.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n}\n\nexport default baseKeysIn;\n","import baseIsMatch from './_baseIsMatch.js';\nimport getMatchData from './_getMatchData.js';\nimport matchesStrictComparable from './_matchesStrictComparable.js';\n\n/**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n }\n return function(object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n}\n\nexport default baseMatches;\n","import baseIsEqual from './_baseIsEqual.js';\nimport get from './get.js';\nimport hasIn from './hasIn.js';\nimport isKey from './_isKey.js';\nimport isStrictComparable from './_isStrictComparable.js';\nimport matchesStrictComparable from './_matchesStrictComparable.js';\nimport toKey from './_toKey.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n}\n\nexport default baseMatchesProperty;\n","import Stack from './_Stack.js';\nimport assignMergeValue from './_assignMergeValue.js';\nimport baseFor from './_baseFor.js';\nimport baseMergeDeep from './_baseMergeDeep.js';\nimport isObject from './isObject.js';\nimport keysIn from './keysIn.js';\nimport safeGet from './_safeGet.js';\n\n/**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n if (isObject(srcValue)) {\n stack || (stack = new Stack);\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n}\n\nexport default baseMerge;\n","import assignMergeValue from './_assignMergeValue.js';\nimport cloneBuffer from './_cloneBuffer.js';\nimport cloneTypedArray from './_cloneTypedArray.js';\nimport copyArray from './_copyArray.js';\nimport initCloneObject from './_initCloneObject.js';\nimport isArguments from './isArguments.js';\nimport isArray from './isArray.js';\nimport isArrayLikeObject from './isArrayLikeObject.js';\nimport isBuffer from './isBuffer.js';\nimport isFunction from './isFunction.js';\nimport isObject from './isObject.js';\nimport isPlainObject from './isPlainObject.js';\nimport isTypedArray from './isTypedArray.js';\nimport safeGet from './_safeGet.js';\nimport toPlainObject from './toPlainObject.js';\n\n/**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || (srcIndex && isFunction(objValue))) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n}\n\nexport default baseMergeDeep;\n","/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\nexport default baseProperty;\n","import baseGet from './_baseGet.js';\n\n/**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction basePropertyDeep(path) {\n return function(object) {\n return baseGet(object, path);\n };\n}\n\nexport default basePropertyDeep;\n","import identity from './identity.js';\nimport overRest from './_overRest.js';\nimport setToString from './_setToString.js';\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\nexport default baseRest;\n","import constant from './constant.js';\nimport defineProperty from './_defineProperty.js';\nimport identity from './identity.js';\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\n\nexport default baseSetToString;\n","/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\nexport default baseTimes;\n","import Symbol from './_Symbol.js';\nimport arrayMap from './_arrayMap.js';\nimport isArray from './isArray.js';\nimport isSymbol from './isSymbol.js';\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nexport default baseToString;\n","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\nexport default baseUnary;\n","/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n return cache.has(key);\n}\n\nexport default cacheHas;\n","import isArray from './isArray.js';\nimport isKey from './_isKey.js';\nimport stringToPath from './_stringToPath.js';\nimport toString from './toString.js';\n\n/**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\nfunction castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n}\n\nexport default castPath;\n","import Uint8Array from './_Uint8Array.js';\n\n/**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\nfunction cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n}\n\nexport default cloneArrayBuffer;\n","import root from './_root.js';\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;\n\n/**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\nfunction cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n}\n\nexport default cloneBuffer;\n","import cloneArrayBuffer from './_cloneArrayBuffer.js';\n\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\nfunction cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\n\nexport default cloneTypedArray;\n","/**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\nfunction copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n}\n\nexport default copyArray;\n","import assignValue from './_assignValue.js';\nimport baseAssignValue from './_baseAssignValue.js';\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n}\n\nexport default copyObject;\n","import root from './_root.js';\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nexport default coreJsData;\n","import baseRest from './_baseRest.js';\nimport isIterateeCall from './_isIterateeCall.js';\n\n/**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\nfunction createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n}\n\nexport default createAssigner;\n","/**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n}\n\nexport default createBaseFor;\n","import getNative from './_getNative.js';\n\nvar defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}());\n\nexport default defineProperty;\n","import SetCache from './_SetCache.js';\nimport arraySome from './_arraySome.js';\nimport cacheHas from './_cacheHas.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\nfunction equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(array);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n}\n\nexport default equalArrays;\n","import Symbol from './_Symbol.js';\nimport Uint8Array from './_Uint8Array.js';\nimport eq from './eq.js';\nimport equalArrays from './_equalArrays.js';\nimport mapToArray from './_mapToArray.js';\nimport setToArray from './_setToArray.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]';\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n}\n\nexport default equalByTag;\n","import getAllKeys from './_getAllKeys.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n}\n\nexport default equalObjects;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nexport default freeGlobal;\n","import baseGetAllKeys from './_baseGetAllKeys.js';\nimport getSymbols from './_getSymbols.js';\nimport keys from './keys.js';\n\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n}\n\nexport default getAllKeys;\n","import isKeyable from './_isKeyable.js';\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\nexport default getMapData;\n","import isStrictComparable from './_isStrictComparable.js';\nimport keys from './keys.js';\n\n/**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\nfunction getMatchData(object) {\n var result = keys(object),\n length = result.length;\n\n while (length--) {\n var key = result[length],\n value = object[key];\n\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n}\n\nexport default getMatchData;\n","import baseIsNative from './_baseIsNative.js';\nimport getValue from './_getValue.js';\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nexport default getNative;\n","import overArg from './_overArg.js';\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\nexport default getPrototype;\n","import Symbol from './_Symbol.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nexport default getRawTag;\n","import arrayFilter from './_arrayFilter.js';\nimport stubArray from './stubArray.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n};\n\nexport default getSymbols;\n","import DataView from './_DataView.js';\nimport Map from './_Map.js';\nimport Promise from './_Promise.js';\nimport Set from './_Set.js';\nimport WeakMap from './_WeakMap.js';\nimport baseGetTag from './_baseGetTag.js';\nimport toSource from './_toSource.js';\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n setTag = '[object Set]',\n weakMapTag = '[object WeakMap]';\n\nvar dataViewTag = '[object DataView]';\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n}\n\nexport default getTag;\n","/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nexport default getValue;\n","import castPath from './_castPath.js';\nimport isArguments from './isArguments.js';\nimport isArray from './isArray.js';\nimport isIndex from './_isIndex.js';\nimport isLength from './isLength.js';\nimport toKey from './_toKey.js';\n\n/**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\nfunction hasPath(object, path, hasFunc) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n result = false;\n\n while (++index < length) {\n var key = toKey(path[index]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result || ++index != length) {\n return result;\n }\n length = object == null ? 0 : object.length;\n return !!length && isLength(length) && isIndex(key, length) &&\n (isArray(object) || isArguments(object));\n}\n\nexport default hasPath;\n","import nativeCreate from './_nativeCreate.js';\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\nexport default hashClear;\n","/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nexport default hashDelete;\n","import nativeCreate from './_nativeCreate.js';\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nexport default hashGet;\n","import nativeCreate from './_nativeCreate.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nexport default hashHas;\n","import nativeCreate from './_nativeCreate.js';\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\nexport default hashSet;\n","import baseCreate from './_baseCreate.js';\nimport getPrototype from './_getPrototype.js';\nimport isPrototype from './_isPrototype.js';\n\n/**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n}\n\nexport default initCloneObject;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\nexport default isIndex;\n","import eq from './eq.js';\nimport isArrayLike from './isArrayLike.js';\nimport isIndex from './_isIndex.js';\nimport isObject from './isObject.js';\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\nexport default isIterateeCall;\n","import isArray from './isArray.js';\nimport isSymbol from './isSymbol.js';\n\n/** Used to match property names within property paths. */\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/;\n\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\nfunction isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n}\n\nexport default isKey;\n","/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\nexport default isKeyable;\n","import coreJsData from './_coreJsData.js';\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\nexport default isMasked;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\nexport default isPrototype;\n","import isObject from './isObject.js';\n\n/**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\nfunction isStrictComparable(value) {\n return value === value && !isObject(value);\n}\n\nexport default isStrictComparable;\n","/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\nexport default listCacheClear;\n","import assocIndexOf from './_assocIndexOf.js';\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\nexport default listCacheDelete;\n","import assocIndexOf from './_assocIndexOf.js';\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\nexport default listCacheGet;\n","import assocIndexOf from './_assocIndexOf.js';\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\nexport default listCacheHas;\n","import assocIndexOf from './_assocIndexOf.js';\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\nexport default listCacheSet;\n","import Hash from './_Hash.js';\nimport ListCache from './_ListCache.js';\nimport Map from './_Map.js';\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\nexport default mapCacheClear;\n","import getMapData from './_getMapData.js';\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\nexport default mapCacheDelete;\n","import getMapData from './_getMapData.js';\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nexport default mapCacheGet;\n","import getMapData from './_getMapData.js';\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\nexport default mapCacheHas;\n","import getMapData from './_getMapData.js';\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\nexport default mapCacheSet;\n","/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n}\n\nexport default mapToArray;\n","/**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined || (key in Object(object)));\n };\n}\n\nexport default matchesStrictComparable;\n","import memoize from './memoize.js';\n\n/** Used as the maximum memoize cache size. */\nvar MAX_MEMOIZE_SIZE = 500;\n\n/**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\nfunction memoizeCapped(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n\n var cache = result.cache;\n return result;\n}\n\nexport default memoizeCapped;\n","import getNative from './_getNative.js';\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nexport default nativeCreate;\n","import overArg from './_overArg.js';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\n\nexport default nativeKeys;\n","/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n}\n\nexport default nativeKeysIn;\n","import freeGlobal from './_freeGlobal.js';\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\nexport default nodeUtil;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nexport default objectToString;\n","/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\nexport default overArg;\n","import apply from './_apply.js';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\nexport default overRest;\n","import freeGlobal from './_freeGlobal.js';\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nexport default root;\n","/**\n * Gets the value at `key`, unless `key` is \"__proto__\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction safeGet(object, key) {\n return key == '__proto__'\n ? undefined\n : object[key];\n}\n\nexport default safeGet;\n","/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n}\n\nexport default setCacheAdd;\n","/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n return this.__data__.has(value);\n}\n\nexport default setCacheHas;\n","/**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\nfunction setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n}\n\nexport default setToArray;\n","import baseSetToString from './_baseSetToString.js';\nimport shortOut from './_shortOut.js';\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\n\nexport default setToString;\n","/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeNow = Date.now;\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\n\nexport default shortOut;\n","import ListCache from './_ListCache.js';\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\nexport default stackClear;\n","/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n}\n\nexport default stackDelete;\n","/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\nexport default stackGet;\n","/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\nexport default stackHas;\n","import ListCache from './_ListCache.js';\nimport Map from './_Map.js';\nimport MapCache from './_MapCache.js';\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\nexport default stackSet;\n","import memoizeCapped from './_memoizeCapped.js';\n\n/** Used to match property names within property paths. */\nvar rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n/** Used to match backslashes in property paths. */\nvar reEscapeChar = /\\\\(\\\\)?/g;\n\n/**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\nvar stringToPath = memoizeCapped(function(string) {\n var result = [];\n if (string.charCodeAt(0) === 46 /* . */) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n});\n\nexport default stringToPath;\n","import isSymbol from './isSymbol.js';\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nexport default toKey;\n","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\nexport default toSource;\n","/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\nexport default constant;\n","/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\nexport default eq;\n","import baseGet from './_baseGet.js';\n\n/**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\nfunction get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n}\n\nexport default get;\n","import baseHasIn from './_baseHasIn.js';\nimport hasPath from './_hasPath.js';\n\n/**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\nfunction hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n}\n\nexport default hasIn;\n","/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nexport default identity;\n","import baseIsArguments from './_baseIsArguments.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\nexport default isArguments;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nexport default isArray;\n","import isFunction from './isFunction.js';\nimport isLength from './isLength.js';\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nexport default isArrayLike;\n","import isArrayLike from './isArrayLike.js';\nimport isObjectLike from './isObjectLike.js';\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\nexport default isArrayLikeObject;\n","import root from './_root.js';\nimport stubFalse from './stubFalse.js';\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nexport default isBuffer;\n","import baseKeys from './_baseKeys.js';\nimport getTag from './_getTag.js';\nimport isArguments from './isArguments.js';\nimport isArray from './isArray.js';\nimport isArrayLike from './isArrayLike.js';\nimport isBuffer from './isBuffer.js';\nimport isPrototype from './_isPrototype.js';\nimport isTypedArray from './isTypedArray.js';\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n setTag = '[object Set]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if `value` is an empty object, collection, map, or set.\n *\n * Objects are considered empty if they have no own enumerable string keyed\n * properties.\n *\n * Array-like values such as `arguments` objects, arrays, buffers, strings, or\n * jQuery-like collections are considered empty if they have a `length` of `0`.\n * Similarly, maps and sets are considered empty if they have a `size` of `0`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\n * @example\n *\n * _.isEmpty(null);\n * // => true\n *\n * _.isEmpty(true);\n * // => true\n *\n * _.isEmpty(1);\n * // => true\n *\n * _.isEmpty([1, 2, 3]);\n * // => false\n *\n * _.isEmpty({ 'a': 1 });\n * // => false\n */\nfunction isEmpty(value) {\n if (value == null) {\n return true;\n }\n if (isArrayLike(value) &&\n (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||\n isBuffer(value) || isTypedArray(value) || isArguments(value))) {\n return !value.length;\n }\n var tag = getTag(value);\n if (tag == mapTag || tag == setTag) {\n return !value.size;\n }\n if (isPrototype(value)) {\n return !baseKeys(value).length;\n }\n for (var key in value) {\n if (hasOwnProperty.call(value, key)) {\n return false;\n }\n }\n return true;\n}\n\nexport default isEmpty;\n","import baseIsEqual from './_baseIsEqual.js';\n\n/**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\nfunction isEqual(value, other) {\n return baseIsEqual(value, other);\n}\n\nexport default isEqual;\n","import baseIsEqual from './_baseIsEqual.js';\n\n/**\n * This method is like `_.isEqual` except that it accepts `customizer` which\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n * are handled by the method instead. The `customizer` is invoked with up to\n * six arguments: (objValue, othValue [, index|key, object, other, stack]).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * function isGreeting(value) {\n * return /^h(?:i|ello)$/.test(value);\n * }\n *\n * function customizer(objValue, othValue) {\n * if (isGreeting(objValue) && isGreeting(othValue)) {\n * return true;\n * }\n * }\n *\n * var array = ['hello', 'goodbye'];\n * var other = ['hi', 'goodbye'];\n *\n * _.isEqualWith(array, other, customizer);\n * // => true\n */\nfunction isEqualWith(value, other, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n var result = customizer ? customizer(value, other) : undefined;\n return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;\n}\n\nexport default isEqualWith;\n","import baseGetTag from './_baseGetTag.js';\nimport isObject from './isObject.js';\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nexport default isFunction;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nexport default isLength;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nexport default isObject;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nexport default isObjectLike;\n","import baseGetTag from './_baseGetTag.js';\nimport getPrototype from './_getPrototype.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n}\n\nexport default isPlainObject;\n","import baseGetTag from './_baseGetTag.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nexport default isSymbol;\n","import baseIsTypedArray from './_baseIsTypedArray.js';\nimport baseUnary from './_baseUnary.js';\nimport nodeUtil from './_nodeUtil.js';\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nexport default isTypedArray;\n","import arrayLikeKeys from './_arrayLikeKeys.js';\nimport baseKeys from './_baseKeys.js';\nimport isArrayLike from './isArrayLike.js';\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nexport default keys;\n","import arrayLikeKeys from './_arrayLikeKeys.js';\nimport baseKeysIn from './_baseKeysIn.js';\nimport isArrayLike from './isArrayLike.js';\n\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\nfunction keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n\nexport default keysIn;\n","import baseAssignValue from './_baseAssignValue.js';\nimport baseForOwn from './_baseForOwn.js';\nimport baseIteratee from './_baseIteratee.js';\n\n/**\n * Creates an object with the same keys as `object` and values generated\n * by running each own enumerable string keyed property of `object` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapKeys\n * @example\n *\n * var users = {\n * 'fred': { 'user': 'fred', 'age': 40 },\n * 'pebbles': { 'user': 'pebbles', 'age': 1 }\n * };\n *\n * _.mapValues(users, function(o) { return o.age; });\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n *\n * // The `_.property` iteratee shorthand.\n * _.mapValues(users, 'age');\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n */\nfunction mapValues(object, iteratee) {\n var result = {};\n iteratee = baseIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, key, iteratee(value, key, object));\n });\n return result;\n}\n\nexport default mapValues;\n","import MapCache from './_MapCache.js';\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\nfunction memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n}\n\n// Expose `MapCache`.\nmemoize.Cache = MapCache;\n\nexport default memoize;\n","import baseMerge from './_baseMerge.js';\nimport createAssigner from './_createAssigner.js';\n\n/**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\nvar merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n});\n\nexport default merge;\n","import baseProperty from './_baseProperty.js';\nimport basePropertyDeep from './_basePropertyDeep.js';\nimport isKey from './_isKey.js';\nimport toKey from './_toKey.js';\n\n/**\n * Creates a function that returns the value at `path` of a given object.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n * @example\n *\n * var objects = [\n * { 'a': { 'b': 2 } },\n * { 'a': { 'b': 1 } }\n * ];\n *\n * _.map(objects, _.property('a.b'));\n * // => [2, 1]\n *\n * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');\n * // => [1, 2]\n */\nfunction property(path) {\n return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);\n}\n\nexport default property;\n","/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n return [];\n}\n\nexport default stubArray;\n","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nexport default stubFalse;\n","import arrayMap from './_arrayMap.js';\nimport copyArray from './_copyArray.js';\nimport isArray from './isArray.js';\nimport isSymbol from './isSymbol.js';\nimport stringToPath from './_stringToPath.js';\nimport toKey from './_toKey.js';\nimport toString from './toString.js';\n\n/**\n * Converts `value` to a property path array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {*} value The value to convert.\n * @returns {Array} Returns the new property path array.\n * @example\n *\n * _.toPath('a.b.c');\n * // => ['a', 'b', 'c']\n *\n * _.toPath('a[0].b.c');\n * // => ['a', '0', 'b', 'c']\n */\nfunction toPath(value) {\n if (isArray(value)) {\n return arrayMap(value, toKey);\n }\n return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value)));\n}\n\nexport default toPath;\n","import copyObject from './_copyObject.js';\nimport keysIn from './keysIn.js';\n\n/**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\nfunction toPlainObject(value) {\n return copyObject(value, keysIn(value));\n}\n\nexport default toPlainObject;\n","import baseToString from './_baseToString.js';\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\nexport default toString;\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (typeSpecs.hasOwnProperty(typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n )\n\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\nmodule.exports = checkPropTypes;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar assign = require('object-assign');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar checkPropTypes = require('./checkPropTypes');\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<<anonymous>>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message) {\n this.message = message;\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n printWarning(\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOf, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (propValue.hasOwnProperty(key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n printWarning(\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n );\n return emptyFunctionThatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {\n return null;\n }\n }\n\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (!checker) {\n continue;\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from\n // props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' &&\n Symbol.for &&\n Symbol.for('react.element')) ||\n 0xeac7;\n\n var isValidElement = function(object) {\n return typeof object === 'object' &&\n object !== null &&\n object.$$typeof === REACT_ELEMENT_TYPE;\n };\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(isValidElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nfunction componentWillMount() {\n // Call this.constructor.gDSFP to support sub-classes.\n var state = this.constructor.getDerivedStateFromProps(this.props, this.state);\n if (state !== null && state !== undefined) {\n this.setState(state);\n }\n}\n\nfunction componentWillReceiveProps(nextProps) {\n // Call this.constructor.gDSFP to support sub-classes.\n // Use the setState() updater to ensure state isn't stale in certain edge cases.\n function updater(prevState) {\n var state = this.constructor.getDerivedStateFromProps(nextProps, prevState);\n return state !== null && state !== undefined ? state : null;\n }\n // Binding \"this\" is important for shallow renderer support.\n this.setState(updater.bind(this));\n}\n\nfunction componentWillUpdate(nextProps, nextState) {\n try {\n var prevProps = this.props;\n var prevState = this.state;\n this.props = nextProps;\n this.state = nextState;\n this.__reactInternalSnapshotFlag = true;\n this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(\n prevProps,\n prevState\n );\n } finally {\n this.props = prevProps;\n this.state = prevState;\n }\n}\n\n// React may warn about cWM/cWRP/cWU methods being deprecated.\n// Add a flag to suppress these warnings for this special case.\ncomponentWillMount.__suppressDeprecationWarning = true;\ncomponentWillReceiveProps.__suppressDeprecationWarning = true;\ncomponentWillUpdate.__suppressDeprecationWarning = true;\n\nfunction polyfill(Component) {\n var prototype = Component.prototype;\n\n if (!prototype || !prototype.isReactComponent) {\n throw new Error('Can only polyfill class components');\n }\n\n if (\n typeof Component.getDerivedStateFromProps !== 'function' &&\n typeof prototype.getSnapshotBeforeUpdate !== 'function'\n ) {\n return Component;\n }\n\n // If new component APIs are defined, \"unsafe\" lifecycles won't be called.\n // Error if any of these lifecycles are present,\n // Because they would work differently between older and newer (16.3+) versions of React.\n var foundWillMountName = null;\n var foundWillReceivePropsName = null;\n var foundWillUpdateName = null;\n if (typeof prototype.componentWillMount === 'function') {\n foundWillMountName = 'componentWillMount';\n } else if (typeof prototype.UNSAFE_componentWillMount === 'function') {\n foundWillMountName = 'UNSAFE_componentWillMount';\n }\n if (typeof prototype.componentWillReceiveProps === 'function') {\n foundWillReceivePropsName = 'componentWillReceiveProps';\n } else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') {\n foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';\n }\n if (typeof prototype.componentWillUpdate === 'function') {\n foundWillUpdateName = 'componentWillUpdate';\n } else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') {\n foundWillUpdateName = 'UNSAFE_componentWillUpdate';\n }\n if (\n foundWillMountName !== null ||\n foundWillReceivePropsName !== null ||\n foundWillUpdateName !== null\n ) {\n var componentName = Component.displayName || Component.name;\n var newApiName =\n typeof Component.getDerivedStateFromProps === 'function'\n ? 'getDerivedStateFromProps()'\n : 'getSnapshotBeforeUpdate()';\n\n throw Error(\n 'Unsafe legacy lifecycles will not be called for components using new component APIs.\\n\\n' +\n componentName +\n ' uses ' +\n newApiName +\n ' but also contains the following legacy lifecycles:' +\n (foundWillMountName !== null ? '\\n ' + foundWillMountName : '') +\n (foundWillReceivePropsName !== null\n ? '\\n ' + foundWillReceivePropsName\n : '') +\n (foundWillUpdateName !== null ? '\\n ' + foundWillUpdateName : '') +\n '\\n\\nThe above lifecycles should be removed. Learn more about this warning here:\\n' +\n 'https://fb.me/react-async-component-lifecycle-hooks'\n );\n }\n\n // React <= 16.2 does not support static getDerivedStateFromProps.\n // As a workaround, use cWM and cWRP to invoke the new static lifecycle.\n // Newer versions of React will ignore these lifecycles if gDSFP exists.\n if (typeof Component.getDerivedStateFromProps === 'function') {\n prototype.componentWillMount = componentWillMount;\n prototype.componentWillReceiveProps = componentWillReceiveProps;\n }\n\n // React <= 16.2 does not support getSnapshotBeforeUpdate.\n // As a workaround, use cWU to invoke the new lifecycle.\n // Newer versions of React will ignore that lifecycle if gSBU exists.\n if (typeof prototype.getSnapshotBeforeUpdate === 'function') {\n if (typeof prototype.componentDidUpdate !== 'function') {\n throw new Error(\n 'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype'\n );\n }\n\n prototype.componentWillUpdate = componentWillUpdate;\n\n var componentDidUpdate = prototype.componentDidUpdate;\n\n prototype.componentDidUpdate = function componentDidUpdatePolyfill(\n prevProps,\n prevState,\n maybeSnapshot\n ) {\n // 16.3+ will not execute our will-update method;\n // It will pass a snapshot value to did-update though.\n // Older versions will require our polyfilled will-update value.\n // We need to handle both cases, but can't just check for the presence of \"maybeSnapshot\",\n // Because for <= 15.x versions this might be a \"prevContext\" object.\n // We also can't just check \"__reactInternalSnapshot\",\n // Because get-snapshot might return a falsy value.\n // So check for the explicit __reactInternalSnapshotFlag flag to determine behavior.\n var snapshot = this.__reactInternalSnapshotFlag\n ? this.__reactInternalSnapshot\n : maybeSnapshot;\n\n componentDidUpdate.call(this, prevProps, prevState, snapshot);\n };\n }\n\n return Component;\n}\n\nexport { polyfill };\n","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport { Component, Children } from 'react';\nimport PropTypes from 'prop-types';\nimport { storeShape, subscriptionShape } from '../utils/PropTypes';\nimport warning from '../utils/warning';\n\nvar didWarnAboutReceivingStore = false;\nfunction warnAboutReceivingStore() {\n if (didWarnAboutReceivingStore) {\n return;\n }\n didWarnAboutReceivingStore = true;\n\n warning('<Provider> does not support changing `store` on the fly. ' + 'It is most likely that you see this error because you updated to ' + 'Redux 2.x and React Redux 2.x which no longer hot reload reducers ' + 'automatically. See https://github.com/reactjs/react-redux/releases/' + 'tag/v2.0.0 for the migration instructions.');\n}\n\nexport function createProvider() {\n var _Provider$childContex;\n\n var storeKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'store';\n var subKey = arguments[1];\n\n var subscriptionKey = subKey || storeKey + 'Subscription';\n\n var Provider = function (_Component) {\n _inherits(Provider, _Component);\n\n Provider.prototype.getChildContext = function getChildContext() {\n var _ref;\n\n return _ref = {}, _ref[storeKey] = this[storeKey], _ref[subscriptionKey] = null, _ref;\n };\n\n function Provider(props, context) {\n _classCallCheck(this, Provider);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));\n\n _this[storeKey] = props.store;\n return _this;\n }\n\n Provider.prototype.render = function render() {\n return Children.only(this.props.children);\n };\n\n return Provider;\n }(Component);\n\n if (process.env.NODE_ENV !== 'production') {\n Provider.prototype.componentWillReceiveProps = function (nextProps) {\n if (this[storeKey] !== nextProps.store) {\n warnAboutReceivingStore();\n }\n };\n }\n\n Provider.propTypes = {\n store: storeShape.isRequired,\n children: PropTypes.element.isRequired\n };\n Provider.childContextTypes = (_Provider$childContex = {}, _Provider$childContex[storeKey] = storeShape.isRequired, _Provider$childContex[subscriptionKey] = subscriptionShape, _Provider$childContex);\n\n return Provider;\n}\n\nexport default createProvider();","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nimport hoistStatics from 'hoist-non-react-statics';\nimport invariant from 'invariant';\nimport { Component, createElement } from 'react';\n\nimport Subscription from '../utils/Subscription';\nimport { storeShape, subscriptionShape } from '../utils/PropTypes';\n\nvar hotReloadingVersion = 0;\nvar dummyState = {};\nfunction noop() {}\nfunction makeSelectorStateful(sourceSelector, store) {\n // wrap the selector in an object that tracks its results between runs.\n var selector = {\n run: function runComponentSelector(props) {\n try {\n var nextProps = sourceSelector(store.getState(), props);\n if (nextProps !== selector.props || selector.error) {\n selector.shouldComponentUpdate = true;\n selector.props = nextProps;\n selector.error = null;\n }\n } catch (error) {\n selector.shouldComponentUpdate = true;\n selector.error = error;\n }\n }\n };\n\n return selector;\n}\n\nexport default function connectAdvanced(\n/*\n selectorFactory is a func that is responsible for returning the selector function used to\n compute new props from state, props, and dispatch. For example:\n export default connectAdvanced((dispatch, options) => (state, props) => ({\n thing: state.things[props.thingId],\n saveThing: fields => dispatch(actionCreators.saveThing(props.thingId, fields)),\n }))(YourComponent)\n Access to dispatch is provided to the factory so selectorFactories can bind actionCreators\n outside of their selector as an optimization. Options passed to connectAdvanced are passed to\n the selectorFactory, along with displayName and WrappedComponent, as the second argument.\n Note that selectorFactory is responsible for all caching/memoization of inbound and outbound\n props. Do not use connectAdvanced directly without memoizing results between calls to your\n selector, otherwise the Connect component will re-render on every state or props change.\n*/\nselectorFactory) {\n var _contextTypes, _childContextTypes;\n\n var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n _ref$getDisplayName = _ref.getDisplayName,\n getDisplayName = _ref$getDisplayName === undefined ? function (name) {\n return 'ConnectAdvanced(' + name + ')';\n } : _ref$getDisplayName,\n _ref$methodName = _ref.methodName,\n methodName = _ref$methodName === undefined ? 'connectAdvanced' : _ref$methodName,\n _ref$renderCountProp = _ref.renderCountProp,\n renderCountProp = _ref$renderCountProp === undefined ? undefined : _ref$renderCountProp,\n _ref$shouldHandleStat = _ref.shouldHandleStateChanges,\n shouldHandleStateChanges = _ref$shouldHandleStat === undefined ? true : _ref$shouldHandleStat,\n _ref$storeKey = _ref.storeKey,\n storeKey = _ref$storeKey === undefined ? 'store' : _ref$storeKey,\n _ref$withRef = _ref.withRef,\n withRef = _ref$withRef === undefined ? false : _ref$withRef,\n connectOptions = _objectWithoutProperties(_ref, ['getDisplayName', 'methodName', 'renderCountProp', 'shouldHandleStateChanges', 'storeKey', 'withRef']);\n\n var subscriptionKey = storeKey + 'Subscription';\n var version = hotReloadingVersion++;\n\n var contextTypes = (_contextTypes = {}, _contextTypes[storeKey] = storeShape, _contextTypes[subscriptionKey] = subscriptionShape, _contextTypes);\n var childContextTypes = (_childContextTypes = {}, _childContextTypes[subscriptionKey] = subscriptionShape, _childContextTypes);\n\n return function wrapWithConnect(WrappedComponent) {\n invariant(typeof WrappedComponent == 'function', 'You must pass a component to the function returned by ' + (methodName + '. Instead received ' + JSON.stringify(WrappedComponent)));\n\n var wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || 'Component';\n\n var displayName = getDisplayName(wrappedComponentName);\n\n var selectorFactoryOptions = _extends({}, connectOptions, {\n getDisplayName: getDisplayName,\n methodName: methodName,\n renderCountProp: renderCountProp,\n shouldHandleStateChanges: shouldHandleStateChanges,\n storeKey: storeKey,\n withRef: withRef,\n displayName: displayName,\n wrappedComponentName: wrappedComponentName,\n WrappedComponent: WrappedComponent\n });\n\n var Connect = function (_Component) {\n _inherits(Connect, _Component);\n\n function Connect(props, context) {\n _classCallCheck(this, Connect);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));\n\n _this.version = version;\n _this.state = {};\n _this.renderCount = 0;\n _this.store = props[storeKey] || context[storeKey];\n _this.propsMode = Boolean(props[storeKey]);\n _this.setWrappedInstance = _this.setWrappedInstance.bind(_this);\n\n invariant(_this.store, 'Could not find \"' + storeKey + '\" in either the context or props of ' + ('\"' + displayName + '\". Either wrap the root component in a <Provider>, ') + ('or explicitly pass \"' + storeKey + '\" as a prop to \"' + displayName + '\".'));\n\n _this.initSelector();\n _this.initSubscription();\n return _this;\n }\n\n Connect.prototype.getChildContext = function getChildContext() {\n var _ref2;\n\n // If this component received store from props, its subscription should be transparent\n // to any descendants receiving store+subscription from context; it passes along\n // subscription passed to it. Otherwise, it shadows the parent subscription, which allows\n // Connect to control ordering of notifications to flow top-down.\n var subscription = this.propsMode ? null : this.subscription;\n return _ref2 = {}, _ref2[subscriptionKey] = subscription || this.context[subscriptionKey], _ref2;\n };\n\n Connect.prototype.componentDidMount = function componentDidMount() {\n if (!shouldHandleStateChanges) return;\n\n // componentWillMount fires during server side rendering, but componentDidMount and\n // componentWillUnmount do not. Because of this, trySubscribe happens during ...didMount.\n // Otherwise, unsubscription would never take place during SSR, causing a memory leak.\n // To handle the case where a child component may have triggered a state change by\n // dispatching an action in its componentWillMount, we have to re-run the select and maybe\n // re-render.\n this.subscription.trySubscribe();\n this.selector.run(this.props);\n if (this.selector.shouldComponentUpdate) this.forceUpdate();\n };\n\n Connect.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n this.selector.run(nextProps);\n };\n\n Connect.prototype.shouldComponentUpdate = function shouldComponentUpdate() {\n return this.selector.shouldComponentUpdate;\n };\n\n Connect.prototype.componentWillUnmount = function componentWillUnmount() {\n if (this.subscription) this.subscription.tryUnsubscribe();\n this.subscription = null;\n this.notifyNestedSubs = noop;\n this.store = null;\n this.selector.run = noop;\n this.selector.shouldComponentUpdate = false;\n };\n\n Connect.prototype.getWrappedInstance = function getWrappedInstance() {\n invariant(withRef, 'To access the wrapped instance, you need to specify ' + ('{ withRef: true } in the options argument of the ' + methodName + '() call.'));\n return this.wrappedInstance;\n };\n\n Connect.prototype.setWrappedInstance = function setWrappedInstance(ref) {\n this.wrappedInstance = ref;\n };\n\n Connect.prototype.initSelector = function initSelector() {\n var sourceSelector = selectorFactory(this.store.dispatch, selectorFactoryOptions);\n this.selector = makeSelectorStateful(sourceSelector, this.store);\n this.selector.run(this.props);\n };\n\n Connect.prototype.initSubscription = function initSubscription() {\n if (!shouldHandleStateChanges) return;\n\n // parentSub's source should match where store came from: props vs. context. A component\n // connected to the store via props shouldn't use subscription from context, or vice versa.\n var parentSub = (this.propsMode ? this.props : this.context)[subscriptionKey];\n this.subscription = new Subscription(this.store, parentSub, this.onStateChange.bind(this));\n\n // `notifyNestedSubs` is duplicated to handle the case where the component is unmounted in\n // the middle of the notification loop, where `this.subscription` will then be null. An\n // extra null check every change can be avoided by copying the method onto `this` and then\n // replacing it with a no-op on unmount. This can probably be avoided if Subscription's\n // listeners logic is changed to not call listeners that have been unsubscribed in the\n // middle of the notification loop.\n this.notifyNestedSubs = this.subscription.notifyNestedSubs.bind(this.subscription);\n };\n\n Connect.prototype.onStateChange = function onStateChange() {\n this.selector.run(this.props);\n\n if (!this.selector.shouldComponentUpdate) {\n this.notifyNestedSubs();\n } else {\n this.componentDidUpdate = this.notifyNestedSubsOnComponentDidUpdate;\n this.setState(dummyState);\n }\n };\n\n Connect.prototype.notifyNestedSubsOnComponentDidUpdate = function notifyNestedSubsOnComponentDidUpdate() {\n // `componentDidUpdate` is conditionally implemented when `onStateChange` determines it\n // needs to notify nested subs. Once called, it unimplements itself until further state\n // changes occur. Doing it this way vs having a permanent `componentDidUpdate` that does\n // a boolean check every time avoids an extra method call most of the time, resulting\n // in some perf boost.\n this.componentDidUpdate = undefined;\n this.notifyNestedSubs();\n };\n\n Connect.prototype.isSubscribed = function isSubscribed() {\n return Boolean(this.subscription) && this.subscription.isSubscribed();\n };\n\n Connect.prototype.addExtraProps = function addExtraProps(props) {\n if (!withRef && !renderCountProp && !(this.propsMode && this.subscription)) return props;\n // make a shallow copy so that fields added don't leak to the original selector.\n // this is especially important for 'ref' since that's a reference back to the component\n // instance. a singleton memoized selector would then be holding a reference to the\n // instance, preventing the instance from being garbage collected, and that would be bad\n var withExtras = _extends({}, props);\n if (withRef) withExtras.ref = this.setWrappedInstance;\n if (renderCountProp) withExtras[renderCountProp] = this.renderCount++;\n if (this.propsMode && this.subscription) withExtras[subscriptionKey] = this.subscription;\n return withExtras;\n };\n\n Connect.prototype.render = function render() {\n var selector = this.selector;\n selector.shouldComponentUpdate = false;\n\n if (selector.error) {\n throw selector.error;\n } else {\n return createElement(WrappedComponent, this.addExtraProps(selector.props));\n }\n };\n\n return Connect;\n }(Component);\n\n Connect.WrappedComponent = WrappedComponent;\n Connect.displayName = displayName;\n Connect.childContextTypes = childContextTypes;\n Connect.contextTypes = contextTypes;\n Connect.propTypes = contextTypes;\n\n if (process.env.NODE_ENV !== 'production') {\n Connect.prototype.componentWillUpdate = function componentWillUpdate() {\n var _this2 = this;\n\n // We are hot reloading!\n if (this.version !== version) {\n this.version = version;\n this.initSelector();\n\n // If any connected descendants don't hot reload (and resubscribe in the process), their\n // listeners will be lost when we unsubscribe. Unfortunately, by copying over all\n // listeners, this does mean that the old versions of connected descendants will still be\n // notified of state changes; however, their onStateChange function is a no-op so this\n // isn't a huge deal.\n var oldListeners = [];\n\n if (this.subscription) {\n oldListeners = this.subscription.listeners.get();\n this.subscription.tryUnsubscribe();\n }\n this.initSubscription();\n if (shouldHandleStateChanges) {\n this.subscription.trySubscribe();\n oldListeners.forEach(function (listener) {\n return _this2.subscription.listeners.subscribe(listener);\n });\n }\n }\n };\n }\n\n return hoistStatics(Connect, WrappedComponent);\n };\n}","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nimport connectAdvanced from '../components/connectAdvanced';\nimport shallowEqual from '../utils/shallowEqual';\nimport defaultMapDispatchToPropsFactories from './mapDispatchToProps';\nimport defaultMapStateToPropsFactories from './mapStateToProps';\nimport defaultMergePropsFactories from './mergeProps';\nimport defaultSelectorFactory from './selectorFactory';\n\n/*\n connect is a facade over connectAdvanced. It turns its args into a compatible\n selectorFactory, which has the signature:\n\n (dispatch, options) => (nextState, nextOwnProps) => nextFinalProps\n \n connect passes its args to connectAdvanced as options, which will in turn pass them to\n selectorFactory each time a Connect component instance is instantiated or hot reloaded.\n\n selectorFactory returns a final props selector from its mapStateToProps,\n mapStateToPropsFactories, mapDispatchToProps, mapDispatchToPropsFactories, mergeProps,\n mergePropsFactories, and pure args.\n\n The resulting final props selector is called by the Connect component instance whenever\n it receives new props or store state.\n */\n\nfunction match(arg, factories, name) {\n for (var i = factories.length - 1; i >= 0; i--) {\n var result = factories[i](arg);\n if (result) return result;\n }\n\n return function (dispatch, options) {\n throw new Error('Invalid value of type ' + typeof arg + ' for ' + name + ' argument when connecting component ' + options.wrappedComponentName + '.');\n };\n}\n\nfunction strictEqual(a, b) {\n return a === b;\n}\n\n// createConnect with default args builds the 'official' connect behavior. Calling it with\n// different options opens up some testing and extensibility scenarios\nexport function createConnect() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n _ref$connectHOC = _ref.connectHOC,\n connectHOC = _ref$connectHOC === undefined ? connectAdvanced : _ref$connectHOC,\n _ref$mapStateToPropsF = _ref.mapStateToPropsFactories,\n mapStateToPropsFactories = _ref$mapStateToPropsF === undefined ? defaultMapStateToPropsFactories : _ref$mapStateToPropsF,\n _ref$mapDispatchToPro = _ref.mapDispatchToPropsFactories,\n mapDispatchToPropsFactories = _ref$mapDispatchToPro === undefined ? defaultMapDispatchToPropsFactories : _ref$mapDispatchToPro,\n _ref$mergePropsFactor = _ref.mergePropsFactories,\n mergePropsFactories = _ref$mergePropsFactor === undefined ? defaultMergePropsFactories : _ref$mergePropsFactor,\n _ref$selectorFactory = _ref.selectorFactory,\n selectorFactory = _ref$selectorFactory === undefined ? defaultSelectorFactory : _ref$selectorFactory;\n\n return function connect(mapStateToProps, mapDispatchToProps, mergeProps) {\n var _ref2 = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {},\n _ref2$pure = _ref2.pure,\n pure = _ref2$pure === undefined ? true : _ref2$pure,\n _ref2$areStatesEqual = _ref2.areStatesEqual,\n areStatesEqual = _ref2$areStatesEqual === undefined ? strictEqual : _ref2$areStatesEqual,\n _ref2$areOwnPropsEqua = _ref2.areOwnPropsEqual,\n areOwnPropsEqual = _ref2$areOwnPropsEqua === undefined ? shallowEqual : _ref2$areOwnPropsEqua,\n _ref2$areStatePropsEq = _ref2.areStatePropsEqual,\n areStatePropsEqual = _ref2$areStatePropsEq === undefined ? shallowEqual : _ref2$areStatePropsEq,\n _ref2$areMergedPropsE = _ref2.areMergedPropsEqual,\n areMergedPropsEqual = _ref2$areMergedPropsE === undefined ? shallowEqual : _ref2$areMergedPropsE,\n extraOptions = _objectWithoutProperties(_ref2, ['pure', 'areStatesEqual', 'areOwnPropsEqual', 'areStatePropsEqual', 'areMergedPropsEqual']);\n\n var initMapStateToProps = match(mapStateToProps, mapStateToPropsFactories, 'mapStateToProps');\n var initMapDispatchToProps = match(mapDispatchToProps, mapDispatchToPropsFactories, 'mapDispatchToProps');\n var initMergeProps = match(mergeProps, mergePropsFactories, 'mergeProps');\n\n return connectHOC(selectorFactory, _extends({\n // used in error messages\n methodName: 'connect',\n\n // used to compute Connect's displayName from the wrapped component's displayName.\n getDisplayName: function getDisplayName(name) {\n return 'Connect(' + name + ')';\n },\n\n // if mapStateToProps is falsy, the Connect component doesn't subscribe to store state changes\n shouldHandleStateChanges: Boolean(mapStateToProps),\n\n // passed through to selectorFactory\n initMapStateToProps: initMapStateToProps,\n initMapDispatchToProps: initMapDispatchToProps,\n initMergeProps: initMergeProps,\n pure: pure,\n areStatesEqual: areStatesEqual,\n areOwnPropsEqual: areOwnPropsEqual,\n areStatePropsEqual: areStatePropsEqual,\n areMergedPropsEqual: areMergedPropsEqual\n\n }, extraOptions));\n };\n}\n\nexport default createConnect();","import { bindActionCreators } from 'redux';\nimport { wrapMapToPropsConstant, wrapMapToPropsFunc } from './wrapMapToProps';\n\nexport function whenMapDispatchToPropsIsFunction(mapDispatchToProps) {\n return typeof mapDispatchToProps === 'function' ? wrapMapToPropsFunc(mapDispatchToProps, 'mapDispatchToProps') : undefined;\n}\n\nexport function whenMapDispatchToPropsIsMissing(mapDispatchToProps) {\n return !mapDispatchToProps ? wrapMapToPropsConstant(function (dispatch) {\n return { dispatch: dispatch };\n }) : undefined;\n}\n\nexport function whenMapDispatchToPropsIsObject(mapDispatchToProps) {\n return mapDispatchToProps && typeof mapDispatchToProps === 'object' ? wrapMapToPropsConstant(function (dispatch) {\n return bindActionCreators(mapDispatchToProps, dispatch);\n }) : undefined;\n}\n\nexport default [whenMapDispatchToPropsIsFunction, whenMapDispatchToPropsIsMissing, whenMapDispatchToPropsIsObject];","import { wrapMapToPropsConstant, wrapMapToPropsFunc } from './wrapMapToProps';\n\nexport function whenMapStateToPropsIsFunction(mapStateToProps) {\n return typeof mapStateToProps === 'function' ? wrapMapToPropsFunc(mapStateToProps, 'mapStateToProps') : undefined;\n}\n\nexport function whenMapStateToPropsIsMissing(mapStateToProps) {\n return !mapStateToProps ? wrapMapToPropsConstant(function () {\n return {};\n }) : undefined;\n}\n\nexport default [whenMapStateToPropsIsFunction, whenMapStateToPropsIsMissing];","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nimport verifyPlainObject from '../utils/verifyPlainObject';\n\nexport function defaultMergeProps(stateProps, dispatchProps, ownProps) {\n return _extends({}, ownProps, stateProps, dispatchProps);\n}\n\nexport function wrapMergePropsFunc(mergeProps) {\n return function initMergePropsProxy(dispatch, _ref) {\n var displayName = _ref.displayName,\n pure = _ref.pure,\n areMergedPropsEqual = _ref.areMergedPropsEqual;\n\n var hasRunOnce = false;\n var mergedProps = void 0;\n\n return function mergePropsProxy(stateProps, dispatchProps, ownProps) {\n var nextMergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n\n if (hasRunOnce) {\n if (!pure || !areMergedPropsEqual(nextMergedProps, mergedProps)) mergedProps = nextMergedProps;\n } else {\n hasRunOnce = true;\n mergedProps = nextMergedProps;\n\n if (process.env.NODE_ENV !== 'production') verifyPlainObject(mergedProps, displayName, 'mergeProps');\n }\n\n return mergedProps;\n };\n };\n}\n\nexport function whenMergePropsIsFunction(mergeProps) {\n return typeof mergeProps === 'function' ? wrapMergePropsFunc(mergeProps) : undefined;\n}\n\nexport function whenMergePropsIsOmitted(mergeProps) {\n return !mergeProps ? function () {\n return defaultMergeProps;\n } : undefined;\n}\n\nexport default [whenMergePropsIsFunction, whenMergePropsIsOmitted];","function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nimport verifySubselectors from './verifySubselectors';\n\nexport function impureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch) {\n return function impureFinalPropsSelector(state, ownProps) {\n return mergeProps(mapStateToProps(state, ownProps), mapDispatchToProps(dispatch, ownProps), ownProps);\n };\n}\n\nexport function pureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, _ref) {\n var areStatesEqual = _ref.areStatesEqual,\n areOwnPropsEqual = _ref.areOwnPropsEqual,\n areStatePropsEqual = _ref.areStatePropsEqual;\n\n var hasRunAtLeastOnce = false;\n var state = void 0;\n var ownProps = void 0;\n var stateProps = void 0;\n var dispatchProps = void 0;\n var mergedProps = void 0;\n\n function handleFirstCall(firstState, firstOwnProps) {\n state = firstState;\n ownProps = firstOwnProps;\n stateProps = mapStateToProps(state, ownProps);\n dispatchProps = mapDispatchToProps(dispatch, ownProps);\n mergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n hasRunAtLeastOnce = true;\n return mergedProps;\n }\n\n function handleNewPropsAndNewState() {\n stateProps = mapStateToProps(state, ownProps);\n\n if (mapDispatchToProps.dependsOnOwnProps) dispatchProps = mapDispatchToProps(dispatch, ownProps);\n\n mergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n return mergedProps;\n }\n\n function handleNewProps() {\n if (mapStateToProps.dependsOnOwnProps) stateProps = mapStateToProps(state, ownProps);\n\n if (mapDispatchToProps.dependsOnOwnProps) dispatchProps = mapDispatchToProps(dispatch, ownProps);\n\n mergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n return mergedProps;\n }\n\n function handleNewState() {\n var nextStateProps = mapStateToProps(state, ownProps);\n var statePropsChanged = !areStatePropsEqual(nextStateProps, stateProps);\n stateProps = nextStateProps;\n\n if (statePropsChanged) mergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n\n return mergedProps;\n }\n\n function handleSubsequentCalls(nextState, nextOwnProps) {\n var propsChanged = !areOwnPropsEqual(nextOwnProps, ownProps);\n var stateChanged = !areStatesEqual(nextState, state);\n state = nextState;\n ownProps = nextOwnProps;\n\n if (propsChanged && stateChanged) return handleNewPropsAndNewState();\n if (propsChanged) return handleNewProps();\n if (stateChanged) return handleNewState();\n return mergedProps;\n }\n\n return function pureFinalPropsSelector(nextState, nextOwnProps) {\n return hasRunAtLeastOnce ? handleSubsequentCalls(nextState, nextOwnProps) : handleFirstCall(nextState, nextOwnProps);\n };\n}\n\n// TODO: Add more comments\n\n// If pure is true, the selector returned by selectorFactory will memoize its results,\n// allowing connectAdvanced's shouldComponentUpdate to return false if final\n// props have not changed. If false, the selector will always return a new\n// object and shouldComponentUpdate will always return true.\n\nexport default function finalPropsSelectorFactory(dispatch, _ref2) {\n var initMapStateToProps = _ref2.initMapStateToProps,\n initMapDispatchToProps = _ref2.initMapDispatchToProps,\n initMergeProps = _ref2.initMergeProps,\n options = _objectWithoutProperties(_ref2, ['initMapStateToProps', 'initMapDispatchToProps', 'initMergeProps']);\n\n var mapStateToProps = initMapStateToProps(dispatch, options);\n var mapDispatchToProps = initMapDispatchToProps(dispatch, options);\n var mergeProps = initMergeProps(dispatch, options);\n\n if (process.env.NODE_ENV !== 'production') {\n verifySubselectors(mapStateToProps, mapDispatchToProps, mergeProps, options.displayName);\n }\n\n var selectorFactory = options.pure ? pureFinalPropsSelectorFactory : impureFinalPropsSelectorFactory;\n\n return selectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, options);\n}","import warning from '../utils/warning';\n\nfunction verify(selector, methodName, displayName) {\n if (!selector) {\n throw new Error('Unexpected value for ' + methodName + ' in ' + displayName + '.');\n } else if (methodName === 'mapStateToProps' || methodName === 'mapDispatchToProps') {\n if (!selector.hasOwnProperty('dependsOnOwnProps')) {\n warning('The selector for ' + methodName + ' of ' + displayName + ' did not specify a value for dependsOnOwnProps.');\n }\n }\n}\n\nexport default function verifySubselectors(mapStateToProps, mapDispatchToProps, mergeProps, displayName) {\n verify(mapStateToProps, 'mapStateToProps', displayName);\n verify(mapDispatchToProps, 'mapDispatchToProps', displayName);\n verify(mergeProps, 'mergeProps', displayName);\n}","import verifyPlainObject from '../utils/verifyPlainObject';\n\nexport function wrapMapToPropsConstant(getConstant) {\n return function initConstantSelector(dispatch, options) {\n var constant = getConstant(dispatch, options);\n\n function constantSelector() {\n return constant;\n }\n constantSelector.dependsOnOwnProps = false;\n return constantSelector;\n };\n}\n\n// dependsOnOwnProps is used by createMapToPropsProxy to determine whether to pass props as args\n// to the mapToProps function being wrapped. It is also used by makePurePropsSelector to determine\n// whether mapToProps needs to be invoked when props have changed.\n// \n// A length of one signals that mapToProps does not depend on props from the parent component.\n// A length of zero is assumed to mean mapToProps is getting args via arguments or ...args and\n// therefore not reporting its length accurately..\nexport function getDependsOnOwnProps(mapToProps) {\n return mapToProps.dependsOnOwnProps !== null && mapToProps.dependsOnOwnProps !== undefined ? Boolean(mapToProps.dependsOnOwnProps) : mapToProps.length !== 1;\n}\n\n// Used by whenMapStateToPropsIsFunction and whenMapDispatchToPropsIsFunction,\n// this function wraps mapToProps in a proxy function which does several things:\n// \n// * Detects whether the mapToProps function being called depends on props, which\n// is used by selectorFactory to decide if it should reinvoke on props changes.\n// \n// * On first call, handles mapToProps if returns another function, and treats that\n// new function as the true mapToProps for subsequent calls.\n// \n// * On first call, verifies the first result is a plain object, in order to warn\n// the developer that their mapToProps function is not returning a valid result.\n// \nexport function wrapMapToPropsFunc(mapToProps, methodName) {\n return function initProxySelector(dispatch, _ref) {\n var displayName = _ref.displayName;\n\n var proxy = function mapToPropsProxy(stateOrDispatch, ownProps) {\n return proxy.dependsOnOwnProps ? proxy.mapToProps(stateOrDispatch, ownProps) : proxy.mapToProps(stateOrDispatch);\n };\n\n // allow detectFactoryAndVerify to get ownProps\n proxy.dependsOnOwnProps = true;\n\n proxy.mapToProps = function detectFactoryAndVerify(stateOrDispatch, ownProps) {\n proxy.mapToProps = mapToProps;\n proxy.dependsOnOwnProps = getDependsOnOwnProps(mapToProps);\n var props = proxy(stateOrDispatch, ownProps);\n\n if (typeof props === 'function') {\n proxy.mapToProps = props;\n proxy.dependsOnOwnProps = getDependsOnOwnProps(props);\n props = proxy(stateOrDispatch, ownProps);\n }\n\n if (process.env.NODE_ENV !== 'production') verifyPlainObject(props, displayName, methodName);\n\n return props;\n };\n\n return proxy;\n };\n}","import Provider, { createProvider } from './components/Provider';\nimport connectAdvanced from './components/connectAdvanced';\nimport connect from './connect/connect';\n\nexport { Provider, createProvider, connectAdvanced, connect };","import PropTypes from 'prop-types';\n\nexport var subscriptionShape = PropTypes.shape({\n trySubscribe: PropTypes.func.isRequired,\n tryUnsubscribe: PropTypes.func.isRequired,\n notifyNestedSubs: PropTypes.func.isRequired,\n isSubscribed: PropTypes.func.isRequired\n});\n\nexport var storeShape = PropTypes.shape({\n subscribe: PropTypes.func.isRequired,\n dispatch: PropTypes.func.isRequired,\n getState: PropTypes.func.isRequired\n});","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n// encapsulates the subscription logic for connecting a component to the redux store, as\n// well as nesting subscriptions of descendant components, so that we can ensure the\n// ancestor components re-render before descendants\n\nvar CLEARED = null;\nvar nullListeners = {\n notify: function notify() {}\n};\n\nfunction createListenerCollection() {\n // the current/next pattern is copied from redux's createStore code.\n // TODO: refactor+expose that code to be reusable here?\n var current = [];\n var next = [];\n\n return {\n clear: function clear() {\n next = CLEARED;\n current = CLEARED;\n },\n notify: function notify() {\n var listeners = current = next;\n for (var i = 0; i < listeners.length; i++) {\n listeners[i]();\n }\n },\n get: function get() {\n return next;\n },\n subscribe: function subscribe(listener) {\n var isSubscribed = true;\n if (next === current) next = current.slice();\n next.push(listener);\n\n return function unsubscribe() {\n if (!isSubscribed || current === CLEARED) return;\n isSubscribed = false;\n\n if (next === current) next = current.slice();\n next.splice(next.indexOf(listener), 1);\n };\n }\n };\n}\n\nvar Subscription = function () {\n function Subscription(store, parentSub, onStateChange) {\n _classCallCheck(this, Subscription);\n\n this.store = store;\n this.parentSub = parentSub;\n this.onStateChange = onStateChange;\n this.unsubscribe = null;\n this.listeners = nullListeners;\n }\n\n Subscription.prototype.addNestedSub = function addNestedSub(listener) {\n this.trySubscribe();\n return this.listeners.subscribe(listener);\n };\n\n Subscription.prototype.notifyNestedSubs = function notifyNestedSubs() {\n this.listeners.notify();\n };\n\n Subscription.prototype.isSubscribed = function isSubscribed() {\n return Boolean(this.unsubscribe);\n };\n\n Subscription.prototype.trySubscribe = function trySubscribe() {\n if (!this.unsubscribe) {\n this.unsubscribe = this.parentSub ? this.parentSub.addNestedSub(this.onStateChange) : this.store.subscribe(this.onStateChange);\n\n this.listeners = createListenerCollection();\n }\n };\n\n Subscription.prototype.tryUnsubscribe = function tryUnsubscribe() {\n if (this.unsubscribe) {\n this.unsubscribe();\n this.unsubscribe = null;\n this.listeners.clear();\n this.listeners = nullListeners;\n }\n };\n\n return Subscription;\n}();\n\nexport { Subscription as default };","var hasOwn = Object.prototype.hasOwnProperty;\n\nfunction is(x, y) {\n if (x === y) {\n return x !== 0 || y !== 0 || 1 / x === 1 / y;\n } else {\n return x !== x && y !== y;\n }\n}\n\nexport default function shallowEqual(objA, objB) {\n if (is(objA, objB)) return true;\n\n if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {\n return false;\n }\n\n var keysA = Object.keys(objA);\n var keysB = Object.keys(objB);\n\n if (keysA.length !== keysB.length) return false;\n\n for (var i = 0; i < keysA.length; i++) {\n if (!hasOwn.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {\n return false;\n }\n }\n\n return true;\n}","import isPlainObject from 'lodash-es/isPlainObject';\nimport warning from './warning';\n\nexport default function verifyPlainObject(value, displayName, methodName) {\n if (!isPlainObject(value)) {\n warning(methodName + '() in ' + displayName + ' must return a plain object. Instead received ' + value + '.');\n }\n}","/**\n * Prints a warning in the console if it exists.\n *\n * @param {String} message The warning message.\n * @returns {void}\n */\nexport default function warning(message) {\n /* eslint-disable no-console */\n if (typeof console !== 'undefined' && typeof console.error === 'function') {\n console.error(message);\n }\n /* eslint-enable no-console */\n try {\n // This error was thrown as a convenience so that if you enable\n // \"break on all exceptions\" in your console,\n // it would pause the execution at this line.\n throw new Error(message);\n /* eslint-disable no-empty */\n } catch (e) {}\n /* eslint-enable no-empty */\n}","/** @license React v16.4.1\n * react.development.js\n *\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nvar _assign = require('object-assign');\nvar invariant = require('fbjs/lib/invariant');\nvar emptyObject = require('fbjs/lib/emptyObject');\nvar warning = require('fbjs/lib/warning');\nvar emptyFunction = require('fbjs/lib/emptyFunction');\nvar checkPropTypes = require('prop-types/checkPropTypes');\n\n// TODO: this is special because it gets imported during build.\n\nvar ReactVersion = '16.4.1';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\n\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_TIMEOUT_TYPE = hasSymbol ? Symbol.for('react.timeout') : 0xead1;\n\nvar MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\n\nfunction getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable === 'undefined') {\n return null;\n }\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n return null;\n}\n\n// Relying on the `invariant()` implementation lets us\n// have preserve the format and params in the www builds.\n\n// Exports ReactDOM.createRoot\n\n\n// Experimental error-boundary API that can recover from errors within a single\n// render phase\n\n// Suspense\nvar enableSuspense = false;\n// Helps identify side effects in begin-phase lifecycle hooks and setState reducers:\n\n\n// In some cases, StrictMode should also double-render lifecycles.\n// This can be confusing for tests though,\n// And it can be bad for performance in production.\n// This feature flag can be used to control the behavior:\n\n\n// To preserve the \"Pause on caught exceptions\" behavior of the debugger, we\n// replay the begin phase of a failed component inside invokeGuardedCallback.\n\n\n// Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:\n\n\n// Warn about legacy context API\n\n\n// Gather advanced timing metrics for Profiler subtrees.\n\n\n// Only used in www builds.\n\n/**\n * Forked from fbjs/warning:\n * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js\n *\n * Only change is we use console.warn instead of console.error,\n * and do nothing when 'console' is not supported.\n * This really simplifies the code.\n * ---\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar lowPriorityWarning = function () {};\n\n{\n var printWarning = function (format) {\n for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n var argIndex = 0;\n var message = 'Warning: ' + format.replace(/%s/g, function () {\n return args[argIndex++];\n });\n if (typeof console !== 'undefined') {\n console.warn(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n\n lowPriorityWarning = function (condition, format) {\n if (format === undefined) {\n throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');\n }\n if (!condition) {\n for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {\n args[_key2 - 2] = arguments[_key2];\n }\n\n printWarning.apply(undefined, [format].concat(args));\n }\n };\n}\n\nvar lowPriorityWarning$1 = lowPriorityWarning;\n\nvar didWarnStateUpdateForUnmountedComponent = {};\n\nfunction warnNoop(publicInstance, callerName) {\n {\n var _constructor = publicInstance.constructor;\n var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';\n var warningKey = componentName + '.' + callerName;\n if (didWarnStateUpdateForUnmountedComponent[warningKey]) {\n return;\n }\n warning(false, \"Can't call %s on a component that is not yet mounted. \" + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);\n didWarnStateUpdateForUnmountedComponent[warningKey] = true;\n }\n}\n\n/**\n * This is the abstract API for an update queue.\n */\nvar ReactNoopUpdateQueue = {\n /**\n * Checks whether or not this composite component is mounted.\n * @param {ReactClass} publicInstance The instance we want to test.\n * @return {boolean} True if mounted, false otherwise.\n * @protected\n * @final\n */\n isMounted: function (publicInstance) {\n return false;\n },\n\n /**\n * Forces an update. This should only be invoked when it is known with\n * certainty that we are **not** in a DOM transaction.\n *\n * You may want to call this when you know that some deeper aspect of the\n * component's state has changed but `setState` was not called.\n *\n * This will not invoke `shouldComponentUpdate`, but it will invoke\n * `componentWillUpdate` and `componentDidUpdate`.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {?function} callback Called after component is updated.\n * @param {?string} callerName name of the calling function in the public API.\n * @internal\n */\n enqueueForceUpdate: function (publicInstance, callback, callerName) {\n warnNoop(publicInstance, 'forceUpdate');\n },\n\n /**\n * Replaces all of the state. Always use this or `setState` to mutate state.\n * You should treat `this.state` as immutable.\n *\n * There is no guarantee that `this.state` will be immediately updated, so\n * accessing `this.state` after calling this method may return the old value.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {object} completeState Next state.\n * @param {?function} callback Called after component is updated.\n * @param {?string} callerName name of the calling function in the public API.\n * @internal\n */\n enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {\n warnNoop(publicInstance, 'replaceState');\n },\n\n /**\n * Sets a subset of the state. This only exists because _pendingState is\n * internal. This provides a merging strategy that is not available to deep\n * properties which is confusing. TODO: Expose pendingState or don't use it\n * during the merge.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {object} partialState Next partial state to be merged with state.\n * @param {?function} callback Called after component is updated.\n * @param {?string} Name of the calling function in the public API.\n * @internal\n */\n enqueueSetState: function (publicInstance, partialState, callback, callerName) {\n warnNoop(publicInstance, 'setState');\n }\n};\n\n/**\n * Base class helpers for the updating state of a component.\n */\nfunction Component(props, context, updater) {\n this.props = props;\n this.context = context;\n this.refs = emptyObject;\n // We initialize the default updater but the real one gets injected by the\n // renderer.\n this.updater = updater || ReactNoopUpdateQueue;\n}\n\nComponent.prototype.isReactComponent = {};\n\n/**\n * Sets a subset of the state. Always use this to mutate\n * state. You should treat `this.state` as immutable.\n *\n * There is no guarantee that `this.state` will be immediately updated, so\n * accessing `this.state` after calling this method may return the old value.\n *\n * There is no guarantee that calls to `setState` will run synchronously,\n * as they may eventually be batched together. You can provide an optional\n * callback that will be executed when the call to setState is actually\n * completed.\n *\n * When a function is provided to setState, it will be called at some point in\n * the future (not synchronously). It will be called with the up to date\n * component arguments (state, props, context). These values can be different\n * from this.* because your function may be called after receiveProps but before\n * shouldComponentUpdate, and this new state, props, and context will not yet be\n * assigned to this.\n *\n * @param {object|function} partialState Next partial state or function to\n * produce next partial state to be merged with current state.\n * @param {?function} callback Called after state is updated.\n * @final\n * @protected\n */\nComponent.prototype.setState = function (partialState, callback) {\n !(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? invariant(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : void 0;\n this.updater.enqueueSetState(this, partialState, callback, 'setState');\n};\n\n/**\n * Forces an update. This should only be invoked when it is known with\n * certainty that we are **not** in a DOM transaction.\n *\n * You may want to call this when you know that some deeper aspect of the\n * component's state has changed but `setState` was not called.\n *\n * This will not invoke `shouldComponentUpdate`, but it will invoke\n * `componentWillUpdate` and `componentDidUpdate`.\n *\n * @param {?function} callback Called after update is complete.\n * @final\n * @protected\n */\nComponent.prototype.forceUpdate = function (callback) {\n this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');\n};\n\n/**\n * Deprecated APIs. These APIs used to exist on classic React classes but since\n * we would like to deprecate them, we're not going to move them over to this\n * modern base class. Instead, we define a getter that warns if it's accessed.\n */\n{\n var deprecatedAPIs = {\n isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],\n replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']\n };\n var defineDeprecationWarning = function (methodName, info) {\n Object.defineProperty(Component.prototype, methodName, {\n get: function () {\n lowPriorityWarning$1(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);\n return undefined;\n }\n });\n };\n for (var fnName in deprecatedAPIs) {\n if (deprecatedAPIs.hasOwnProperty(fnName)) {\n defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);\n }\n }\n}\n\nfunction ComponentDummy() {}\nComponentDummy.prototype = Component.prototype;\n\n/**\n * Convenience component with default shallow equality check for sCU.\n */\nfunction PureComponent(props, context, updater) {\n this.props = props;\n this.context = context;\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n}\n\nvar pureComponentPrototype = PureComponent.prototype = new ComponentDummy();\npureComponentPrototype.constructor = PureComponent;\n// Avoid an extra prototype jump for these methods.\n_assign(pureComponentPrototype, Component.prototype);\npureComponentPrototype.isPureReactComponent = true;\n\n// an immutable object with a single mutable value\nfunction createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n}\n\n/**\n * Keeps track of the current owner.\n *\n * The current owner is the component who should own any components that are\n * currently being constructed.\n */\nvar ReactCurrentOwner = {\n /**\n * @internal\n * @type {ReactComponent}\n */\n current: null\n};\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n};\n\nvar specialPropKeyWarningShown = void 0;\nvar specialPropRefWarningShown = void 0;\n\nfunction hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n return config.key !== undefined;\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n var warnAboutAccessingKey = function () {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n warning(false, '%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);\n }\n };\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n var warnAboutAccessingRef = function () {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n warning(false, '%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);\n }\n };\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n}\n\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, no instanceof check\n * will work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} key\n * @param {string|object} ref\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @param {*} owner\n * @param {*} props\n * @internal\n */\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n\n // Record the component responsible for creating this element.\n _owner: owner\n };\n\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {};\n\n // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n });\n // self and source are DEV only properties.\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n });\n // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n\n return element;\n};\n\n/**\n * Create and return a new ReactElement of the given type.\n * See https://reactjs.org/docs/react-api.html#createelement\n */\nfunction createElement(type, config, children) {\n var propName = void 0;\n\n // Reserved names are extracted\n var props = {};\n\n var key = null;\n var ref = null;\n var self = null;\n var source = null;\n\n if (config != null) {\n if (hasValidRef(config)) {\n ref = config.ref;\n }\n if (hasValidKey(config)) {\n key = '' + config.key;\n }\n\n self = config.__self === undefined ? null : config.__self;\n source = config.__source === undefined ? null : config.__source;\n // Remaining properties are added to a new props object\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n }\n }\n\n // Children can be more than one argument, and those are transferred onto\n // the newly allocated props object.\n var childrenLength = arguments.length - 2;\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = Array(childrenLength);\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 2];\n }\n {\n if (Object.freeze) {\n Object.freeze(childArray);\n }\n }\n props.children = childArray;\n }\n\n // Resolve default props\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n {\n if (key || ref) {\n if (typeof props.$$typeof === 'undefined' || props.$$typeof !== REACT_ELEMENT_TYPE) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n }\n }\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n}\n\n/**\n * Return a function that produces ReactElements of a given type.\n * See https://reactjs.org/docs/react-api.html#createfactory\n */\n\n\nfunction cloneAndReplaceKey(oldElement, newKey) {\n var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);\n\n return newElement;\n}\n\n/**\n * Clone and return a new ReactElement using element as the starting point.\n * See https://reactjs.org/docs/react-api.html#cloneelement\n */\nfunction cloneElement(element, config, children) {\n !!(element === null || element === undefined) ? invariant(false, 'React.cloneElement(...): The argument must be a React element, but you passed %s.', element) : void 0;\n\n var propName = void 0;\n\n // Original props are copied\n var props = _assign({}, element.props);\n\n // Reserved names are extracted\n var key = element.key;\n var ref = element.ref;\n // Self is preserved since the owner is preserved.\n var self = element._self;\n // Source is preserved since cloneElement is unlikely to be targeted by a\n // transpiler, and the original source is probably a better indicator of the\n // true owner.\n var source = element._source;\n\n // Owner will be preserved, unless ref is overridden\n var owner = element._owner;\n\n if (config != null) {\n if (hasValidRef(config)) {\n // Silently steal the ref from the parent.\n ref = config.ref;\n owner = ReactCurrentOwner.current;\n }\n if (hasValidKey(config)) {\n key = '' + config.key;\n }\n\n // Remaining properties override existing props\n var defaultProps = void 0;\n if (element.type && element.type.defaultProps) {\n defaultProps = element.type.defaultProps;\n }\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n if (config[propName] === undefined && defaultProps !== undefined) {\n // Resolve default props\n props[propName] = defaultProps[propName];\n } else {\n props[propName] = config[propName];\n }\n }\n }\n }\n\n // Children can be more than one argument, and those are transferred onto\n // the newly allocated props object.\n var childrenLength = arguments.length - 2;\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = Array(childrenLength);\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 2];\n }\n props.children = childArray;\n }\n\n return ReactElement(element.type, key, ref, self, source, owner, props);\n}\n\n/**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a valid component.\n * @final\n */\nfunction isValidElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\n\nvar ReactDebugCurrentFrame = {};\n\n{\n // Component that is being worked on\n ReactDebugCurrentFrame.getCurrentStack = null;\n\n ReactDebugCurrentFrame.getStackAddendum = function () {\n var impl = ReactDebugCurrentFrame.getCurrentStack;\n if (impl) {\n return impl();\n }\n return null;\n };\n}\n\nvar SEPARATOR = '.';\nvar SUBSEPARATOR = ':';\n\n/**\n * Escape and wrap key so it is safe to use as a reactid\n *\n * @param {string} key to be escaped.\n * @return {string} the escaped key.\n */\nfunction escape(key) {\n var escapeRegex = /[=:]/g;\n var escaperLookup = {\n '=': '=0',\n ':': '=2'\n };\n var escapedString = ('' + key).replace(escapeRegex, function (match) {\n return escaperLookup[match];\n });\n\n return '$' + escapedString;\n}\n\n/**\n * TODO: Test that a single child and an array with one item have the same key\n * pattern.\n */\n\nvar didWarnAboutMaps = false;\n\nvar userProvidedKeyEscapeRegex = /\\/+/g;\nfunction escapeUserProvidedKey(text) {\n return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');\n}\n\nvar POOL_SIZE = 10;\nvar traverseContextPool = [];\nfunction getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {\n if (traverseContextPool.length) {\n var traverseContext = traverseContextPool.pop();\n traverseContext.result = mapResult;\n traverseContext.keyPrefix = keyPrefix;\n traverseContext.func = mapFunction;\n traverseContext.context = mapContext;\n traverseContext.count = 0;\n return traverseContext;\n } else {\n return {\n result: mapResult,\n keyPrefix: keyPrefix,\n func: mapFunction,\n context: mapContext,\n count: 0\n };\n }\n}\n\nfunction releaseTraverseContext(traverseContext) {\n traverseContext.result = null;\n traverseContext.keyPrefix = null;\n traverseContext.func = null;\n traverseContext.context = null;\n traverseContext.count = 0;\n if (traverseContextPool.length < POOL_SIZE) {\n traverseContextPool.push(traverseContext);\n }\n}\n\n/**\n * @param {?*} children Children tree container.\n * @param {!string} nameSoFar Name of the key path so far.\n * @param {!function} callback Callback to invoke with each child found.\n * @param {?*} traverseContext Used to pass information throughout the traversal\n * process.\n * @return {!number} The number of children in this subtree.\n */\nfunction traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {\n var type = typeof children;\n\n if (type === 'undefined' || type === 'boolean') {\n // All of the above are perceived as null.\n children = null;\n }\n\n var invokeCallback = false;\n\n if (children === null) {\n invokeCallback = true;\n } else {\n switch (type) {\n case 'string':\n case 'number':\n invokeCallback = true;\n break;\n case 'object':\n switch (children.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n invokeCallback = true;\n }\n }\n }\n\n if (invokeCallback) {\n callback(traverseContext, children,\n // If it's the only child, treat the name as if it was wrapped in an array\n // so that it's consistent if the number of children grows.\n nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);\n return 1;\n }\n\n var child = void 0;\n var nextName = void 0;\n var subtreeCount = 0; // Count of children found in the current subtree.\n var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;\n\n if (Array.isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n child = children[i];\n nextName = nextNamePrefix + getComponentKey(child, i);\n subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);\n }\n } else {\n var iteratorFn = getIteratorFn(children);\n if (typeof iteratorFn === 'function') {\n {\n // Warn about using Maps as children\n if (iteratorFn === children.entries) {\n !didWarnAboutMaps ? warning(false, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.%s', ReactDebugCurrentFrame.getStackAddendum()) : void 0;\n didWarnAboutMaps = true;\n }\n }\n\n var iterator = iteratorFn.call(children);\n var step = void 0;\n var ii = 0;\n while (!(step = iterator.next()).done) {\n child = step.value;\n nextName = nextNamePrefix + getComponentKey(child, ii++);\n subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);\n }\n } else if (type === 'object') {\n var addendum = '';\n {\n addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum();\n }\n var childrenString = '' + children;\n invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum);\n }\n }\n\n return subtreeCount;\n}\n\n/**\n * Traverses children that are typically specified as `props.children`, but\n * might also be specified through attributes:\n *\n * - `traverseAllChildren(this.props.children, ...)`\n * - `traverseAllChildren(this.props.leftPanelChildren, ...)`\n *\n * The `traverseContext` is an optional argument that is passed through the\n * entire traversal. It can be used to store accumulations or anything else that\n * the callback might find relevant.\n *\n * @param {?*} children Children tree object.\n * @param {!function} callback To invoke upon traversing each child.\n * @param {?*} traverseContext Context for traversal.\n * @return {!number} The number of children in this subtree.\n */\nfunction traverseAllChildren(children, callback, traverseContext) {\n if (children == null) {\n return 0;\n }\n\n return traverseAllChildrenImpl(children, '', callback, traverseContext);\n}\n\n/**\n * Generate a key string that identifies a component within a set.\n *\n * @param {*} component A component that could contain a manual key.\n * @param {number} index Index that is used if a manual key is not provided.\n * @return {string}\n */\nfunction getComponentKey(component, index) {\n // Do some typechecking here since we call this blindly. We want to ensure\n // that we don't block potential future ES APIs.\n if (typeof component === 'object' && component !== null && component.key != null) {\n // Explicit key\n return escape(component.key);\n }\n // Implicit key determined by the index in the set\n return index.toString(36);\n}\n\nfunction forEachSingleChild(bookKeeping, child, name) {\n var func = bookKeeping.func,\n context = bookKeeping.context;\n\n func.call(context, child, bookKeeping.count++);\n}\n\n/**\n * Iterates through children that are typically specified as `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenforeach\n *\n * The provided forEachFunc(child, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} forEachFunc\n * @param {*} forEachContext Context for forEachContext.\n */\nfunction forEachChildren(children, forEachFunc, forEachContext) {\n if (children == null) {\n return children;\n }\n var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);\n traverseAllChildren(children, forEachSingleChild, traverseContext);\n releaseTraverseContext(traverseContext);\n}\n\nfunction mapSingleChildIntoContext(bookKeeping, child, childKey) {\n var result = bookKeeping.result,\n keyPrefix = bookKeeping.keyPrefix,\n func = bookKeeping.func,\n context = bookKeeping.context;\n\n\n var mappedChild = func.call(context, child, bookKeeping.count++);\n if (Array.isArray(mappedChild)) {\n mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, emptyFunction.thatReturnsArgument);\n } else if (mappedChild != null) {\n if (isValidElement(mappedChild)) {\n mappedChild = cloneAndReplaceKey(mappedChild,\n // Keep both the (mapped) and old keys if they differ, just as\n // traverseAllChildren used to do for objects as children\n keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);\n }\n result.push(mappedChild);\n }\n}\n\nfunction mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {\n var escapedPrefix = '';\n if (prefix != null) {\n escapedPrefix = escapeUserProvidedKey(prefix) + '/';\n }\n var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);\n traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);\n releaseTraverseContext(traverseContext);\n}\n\n/**\n * Maps children that are typically specified as `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenmap\n *\n * The provided mapFunction(child, key, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} func The map function.\n * @param {*} context Context for mapFunction.\n * @return {object} Object containing the ordered map of results.\n */\nfunction mapChildren(children, func, context) {\n if (children == null) {\n return children;\n }\n var result = [];\n mapIntoWithKeyPrefixInternal(children, result, null, func, context);\n return result;\n}\n\n/**\n * Count the number of children that are typically specified as\n * `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrencount\n *\n * @param {?*} children Children tree container.\n * @return {number} The number of children.\n */\nfunction countChildren(children) {\n return traverseAllChildren(children, emptyFunction.thatReturnsNull, null);\n}\n\n/**\n * Flatten a children object (typically specified as `props.children`) and\n * return an array with appropriately re-keyed children.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrentoarray\n */\nfunction toArray(children) {\n var result = [];\n mapIntoWithKeyPrefixInternal(children, result, null, emptyFunction.thatReturnsArgument);\n return result;\n}\n\n/**\n * Returns the first child in a collection of children and verifies that there\n * is only one child in the collection.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenonly\n *\n * The current implementation of this function assumes that a single child gets\n * passed without a wrapper, but the purpose of this helper function is to\n * abstract away the particular structure of children.\n *\n * @param {?object} children Child collection structure.\n * @return {ReactElement} The first and only `ReactElement` contained in the\n * structure.\n */\nfunction onlyChild(children) {\n !isValidElement(children) ? invariant(false, 'React.Children.only expected to receive a single React element child.') : void 0;\n return children;\n}\n\nfunction createContext(defaultValue, calculateChangedBits) {\n if (calculateChangedBits === undefined) {\n calculateChangedBits = null;\n } else {\n {\n !(calculateChangedBits === null || typeof calculateChangedBits === 'function') ? warning(false, 'createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits) : void 0;\n }\n }\n\n var context = {\n $$typeof: REACT_CONTEXT_TYPE,\n _calculateChangedBits: calculateChangedBits,\n _defaultValue: defaultValue,\n _currentValue: defaultValue,\n // As a workaround to support multiple concurrent renderers, we categorize\n // some renderers as primary and others as secondary. We only expect\n // there to be two concurrent renderers at most: React Native (primary) and\n // Fabric (secondary); React DOM (primary) and React ART (secondary).\n // Secondary renderers store their context values on separate fields.\n _currentValue2: defaultValue,\n _changedBits: 0,\n _changedBits2: 0,\n // These are circular\n Provider: null,\n Consumer: null\n };\n\n context.Provider = {\n $$typeof: REACT_PROVIDER_TYPE,\n _context: context\n };\n context.Consumer = context;\n\n {\n context._currentRenderer = null;\n context._currentRenderer2 = null;\n }\n\n return context;\n}\n\nfunction forwardRef(render) {\n {\n !(typeof render === 'function') ? warning(false, 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render) : void 0;\n\n if (render != null) {\n !(render.defaultProps == null && render.propTypes == null) ? warning(false, 'forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?') : void 0;\n }\n }\n\n return {\n $$typeof: REACT_FORWARD_REF_TYPE,\n render: render\n };\n}\n\nvar describeComponentFrame = function (name, source, ownerName) {\n return '\\n in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : '');\n};\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' ||\n // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_ASYNC_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_TIMEOUT_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE);\n}\n\nfunction getComponentName(fiber) {\n var type = fiber.type;\n\n if (typeof type === 'function') {\n return type.displayName || type.name;\n }\n if (typeof type === 'string') {\n return type;\n }\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n return 'AsyncMode';\n case REACT_CONTEXT_TYPE:\n return 'Context.Consumer';\n case REACT_FRAGMENT_TYPE:\n return 'ReactFragment';\n case REACT_PORTAL_TYPE:\n return 'ReactPortal';\n case REACT_PROFILER_TYPE:\n return 'Profiler(' + fiber.pendingProps.id + ')';\n case REACT_PROVIDER_TYPE:\n return 'Context.Provider';\n case REACT_STRICT_MODE_TYPE:\n return 'StrictMode';\n case REACT_TIMEOUT_TYPE:\n return 'Timeout';\n }\n if (typeof type === 'object' && type !== null) {\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n var functionName = type.render.displayName || type.render.name || '';\n return functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef';\n }\n }\n return null;\n}\n\n/**\n * ReactElementValidator provides a wrapper around a element factory\n * which validates the props passed to the element. This is intended to be\n * used only in DEV and could be replaced by a static type checker for languages\n * that support it.\n */\n\nvar currentlyValidatingElement = void 0;\nvar propTypesMisspellWarningShown = void 0;\n\nvar getDisplayName = function () {};\nvar getStackAddendum = function () {};\n\n{\n currentlyValidatingElement = null;\n\n propTypesMisspellWarningShown = false;\n\n getDisplayName = function (element) {\n if (element == null) {\n return '#empty';\n } else if (typeof element === 'string' || typeof element === 'number') {\n return '#text';\n } else if (typeof element.type === 'string') {\n return element.type;\n }\n\n var type = element.type;\n if (type === REACT_FRAGMENT_TYPE) {\n return 'React.Fragment';\n } else if (typeof type === 'object' && type !== null && type.$$typeof === REACT_FORWARD_REF_TYPE) {\n var functionName = type.render.displayName || type.render.name || '';\n return functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef';\n } else {\n return type.displayName || type.name || 'Unknown';\n }\n };\n\n getStackAddendum = function () {\n var stack = '';\n if (currentlyValidatingElement) {\n var name = getDisplayName(currentlyValidatingElement);\n var owner = currentlyValidatingElement._owner;\n stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner));\n }\n stack += ReactDebugCurrentFrame.getStackAddendum() || '';\n return stack;\n };\n}\n\nfunction getDeclarationErrorAddendum() {\n if (ReactCurrentOwner.current) {\n var name = getComponentName(ReactCurrentOwner.current);\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n return '';\n}\n\nfunction getSourceInfoErrorAddendum(elementProps) {\n if (elementProps !== null && elementProps !== undefined && elementProps.__source !== undefined) {\n var source = elementProps.__source;\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n return '';\n}\n\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n var info = getDeclarationErrorAddendum();\n\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n if (parentName) {\n info = '\\n\\nCheck the top-level render call using <' + parentName + '>.';\n }\n }\n return info;\n}\n\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\nfunction validateExplicitKey(element, parentType) {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n element._store.validated = true;\n\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true;\n\n // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n var childOwner = '';\n if (element && element._owner && element._owner !== ReactCurrentOwner.current) {\n // Give the component that originally created this child.\n childOwner = ' It was passed a child from ' + getComponentName(element._owner) + '.';\n }\n\n currentlyValidatingElement = element;\n {\n warning(false, 'Each child in an array or iterator should have a unique \"key\" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.%s', currentComponentErrorInfo, childOwner, getStackAddendum());\n }\n currentlyValidatingElement = null;\n}\n\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\nfunction validateChildKeys(node, parentType) {\n if (typeof node !== 'object') {\n return;\n }\n if (Array.isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step = void 0;\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n}\n\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\nfunction validatePropTypes(element) {\n var type = element.type;\n var name = void 0,\n propTypes = void 0;\n if (typeof type === 'function') {\n // Class or functional component\n name = type.displayName || type.name;\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && type !== null && type.$$typeof === REACT_FORWARD_REF_TYPE) {\n // ForwardRef\n var functionName = type.render.displayName || type.render.name || '';\n name = functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef';\n propTypes = type.propTypes;\n } else {\n return;\n }\n if (propTypes) {\n currentlyValidatingElement = element;\n checkPropTypes(propTypes, element.props, 'prop', name, getStackAddendum);\n currentlyValidatingElement = null;\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true;\n warning(false, 'Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');\n }\n if (typeof type.getDefaultProps === 'function') {\n !type.getDefaultProps.isReactClassApproved ? warning(false, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0;\n }\n}\n\n/**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\nfunction validateFragmentProps(fragment) {\n currentlyValidatingElement = fragment;\n\n var keys = Object.keys(fragment.props);\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (key !== 'children' && key !== 'key') {\n warning(false, 'Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.%s', key, getStackAddendum());\n break;\n }\n }\n\n if (fragment.ref !== null) {\n warning(false, 'Invalid attribute `ref` supplied to `React.Fragment`.%s', getStackAddendum());\n }\n\n currentlyValidatingElement = null;\n}\n\nfunction createElementWithValidation(type, props, children) {\n var validType = isValidElementType(type);\n\n // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n if (!validType) {\n var info = '';\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n\n var sourceInfo = getSourceInfoErrorAddendum(props);\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n\n info += getStackAddendum() || '';\n\n var typeString = void 0;\n if (type === null) {\n typeString = 'null';\n } else if (Array.isArray(type)) {\n typeString = 'array';\n } else {\n typeString = typeof type;\n }\n\n warning(false, 'React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n\n var element = createElement.apply(this, arguments);\n\n // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n if (element == null) {\n return element;\n }\n\n // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n if (validType) {\n for (var i = 2; i < arguments.length; i++) {\n validateChildKeys(arguments[i], type);\n }\n }\n\n if (type === REACT_FRAGMENT_TYPE) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n\n return element;\n}\n\nfunction createFactoryWithValidation(type) {\n var validatedFactory = createElementWithValidation.bind(null, type);\n validatedFactory.type = type;\n // Legacy hook: remove it\n {\n Object.defineProperty(validatedFactory, 'type', {\n enumerable: false,\n get: function () {\n lowPriorityWarning$1(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');\n Object.defineProperty(this, 'type', {\n value: type\n });\n return type;\n }\n });\n }\n\n return validatedFactory;\n}\n\nfunction cloneElementWithValidation(element, props, children) {\n var newElement = cloneElement.apply(this, arguments);\n for (var i = 2; i < arguments.length; i++) {\n validateChildKeys(arguments[i], newElement.type);\n }\n validatePropTypes(newElement);\n return newElement;\n}\n\nvar React = {\n Children: {\n map: mapChildren,\n forEach: forEachChildren,\n count: countChildren,\n toArray: toArray,\n only: onlyChild\n },\n\n createRef: createRef,\n Component: Component,\n PureComponent: PureComponent,\n\n createContext: createContext,\n forwardRef: forwardRef,\n\n Fragment: REACT_FRAGMENT_TYPE,\n StrictMode: REACT_STRICT_MODE_TYPE,\n unstable_AsyncMode: REACT_ASYNC_MODE_TYPE,\n unstable_Profiler: REACT_PROFILER_TYPE,\n\n createElement: createElementWithValidation,\n cloneElement: cloneElementWithValidation,\n createFactory: createFactoryWithValidation,\n isValidElement: isValidElement,\n\n version: ReactVersion,\n\n __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {\n ReactCurrentOwner: ReactCurrentOwner,\n // Used by renderers to avoid bundling object-assign twice in UMD bundles:\n assign: _assign\n }\n};\n\nif (enableSuspense) {\n React.Timeout = REACT_TIMEOUT_TYPE;\n}\n\n{\n _assign(React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {\n // These should not be included in production.\n ReactDebugCurrentFrame: ReactDebugCurrentFrame,\n // Shim for React DOM 16.0.0 which still destructured (but not used) this.\n // TODO: remove in React 17.0.\n ReactComponentTreeHook: {}\n });\n}\n\n\n\nvar React$2 = Object.freeze({\n\tdefault: React\n});\n\nvar React$3 = ( React$2 && React ) || React$2;\n\n// TODO: decide on the top-level export form.\n// This is hacky but makes it work with both Rollup and Jest.\nvar react = React$3.default ? React$3.default : React$3;\n\nmodule.exports = react;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.min.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}\n","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport React, { Component, createElement } from 'react';\nimport PropTypes from 'prop-types';\nimport { connect } from 'react-redux';\nimport createFieldProps from './createFieldProps';\nimport onChangeValue from './events/onChangeValue';\nimport { dataKey } from './util/eventConsts';\nimport plain from './structure/plain';\nimport isReactNative from './isReactNative';\n\n\nvar propsToNotUpdateFor = ['_reduxForm'];\n\nvar isObject = function isObject(entity) {\n return entity && (typeof entity === 'undefined' ? 'undefined' : _typeof(entity)) === 'object';\n};\n\nvar isFunction = function isFunction(entity) {\n return entity && typeof entity === 'function';\n};\n\nvar eventPreventDefault = function eventPreventDefault(event) {\n if (isObject(event) && isFunction(event.preventDefault)) {\n event.preventDefault();\n }\n};\n\nvar eventDataTransferGetData = function eventDataTransferGetData(event, key) {\n if (isObject(event) && isObject(event.dataTransfer) && isFunction(event.dataTransfer.getData)) {\n return event.dataTransfer.getData(key);\n }\n};\n\nvar eventDataTransferSetData = function eventDataTransferSetData(event, key, value) {\n if (isObject(event) && isObject(event.dataTransfer) && isFunction(event.dataTransfer.setData)) {\n event.dataTransfer.setData(key, value);\n }\n};\n\nvar createConnectedField = function createConnectedField(structure) {\n var deepEqual = structure.deepEqual,\n getIn = structure.getIn;\n\n var getSyncError = function getSyncError(syncErrors, name) {\n var error = plain.getIn(syncErrors, name);\n // Because the error for this field might not be at a level in the error structure where\n // it can be set directly, it might need to be unwrapped from the _error property\n return error && error._error ? error._error : error;\n };\n\n var getSyncWarning = function getSyncWarning(syncWarnings, name) {\n var warning = getIn(syncWarnings, name);\n // Because the warning for this field might not be at a level in the warning structure where\n // it can be set directly, it might need to be unwrapped from the _warning property\n return warning && warning._warning ? warning._warning : warning;\n };\n\n var ConnectedField = function (_Component) {\n _inherits(ConnectedField, _Component);\n\n function ConnectedField() {\n var _ref;\n\n var _temp, _this, _ret;\n\n _classCallCheck(this, ConnectedField);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ConnectedField.__proto__ || Object.getPrototypeOf(ConnectedField)).call.apply(_ref, [this].concat(args))), _this), _this.saveRef = function (ref) {\n return _this.ref = ref;\n }, _this.isPristine = function () {\n return _this.props.pristine;\n }, _this.getValue = function () {\n return _this.props.value;\n }, _this.handleChange = function (event) {\n var _this$props = _this.props,\n name = _this$props.name,\n dispatch = _this$props.dispatch,\n parse = _this$props.parse,\n normalize = _this$props.normalize,\n onChange = _this$props.onChange,\n _reduxForm = _this$props._reduxForm,\n previousValue = _this$props.value;\n\n var newValue = onChangeValue(event, { name: name, parse: parse, normalize: normalize });\n\n var defaultPrevented = false;\n if (onChange) {\n // Can't seem to find a way to extend Event in React Native,\n // thus I simply avoid adding preventDefault() in a RN environment\n // to prevent the following error:\n // `One of the sources for assign has an enumerable key on the prototype chain`\n // Reference: https://github.com/facebook/react-native/issues/5507\n if (!isReactNative) {\n onChange(_extends({}, event, {\n preventDefault: function preventDefault() {\n defaultPrevented = true;\n return eventPreventDefault(event);\n }\n }), newValue, previousValue, name);\n } else {\n onChange(event, newValue, previousValue, name);\n }\n }\n if (!defaultPrevented) {\n // dispatch change action\n dispatch(_reduxForm.change(name, newValue));\n\n // call post-change callback\n if (_reduxForm.asyncValidate) {\n _reduxForm.asyncValidate(name, newValue, 'change');\n }\n }\n }, _this.handleFocus = function (event) {\n var _this$props2 = _this.props,\n name = _this$props2.name,\n dispatch = _this$props2.dispatch,\n onFocus = _this$props2.onFocus,\n _reduxForm = _this$props2._reduxForm;\n\n\n var defaultPrevented = false;\n if (onFocus) {\n if (!isReactNative) {\n onFocus(_extends({}, event, {\n preventDefault: function preventDefault() {\n defaultPrevented = true;\n return eventPreventDefault(event);\n }\n }), name);\n } else {\n onFocus(event, name);\n }\n }\n\n if (!defaultPrevented) {\n dispatch(_reduxForm.focus(name));\n }\n }, _this.handleBlur = function (event) {\n var _this$props3 = _this.props,\n name = _this$props3.name,\n dispatch = _this$props3.dispatch,\n parse = _this$props3.parse,\n normalize = _this$props3.normalize,\n onBlur = _this$props3.onBlur,\n _reduxForm = _this$props3._reduxForm,\n _value = _this$props3._value,\n previousValue = _this$props3.value;\n\n var newValue = onChangeValue(event, { name: name, parse: parse, normalize: normalize });\n\n // for checkbox and radio, if the value property of checkbox or radio equals\n // the value passed by blur event, then fire blur action with previousValue.\n if (newValue === _value && _value !== undefined) {\n newValue = previousValue;\n }\n\n var defaultPrevented = false;\n if (onBlur) {\n if (!isReactNative) {\n onBlur(_extends({}, event, {\n preventDefault: function preventDefault() {\n defaultPrevented = true;\n return eventPreventDefault(event);\n }\n }), newValue, previousValue, name);\n } else {\n onBlur(event, newValue, previousValue, name);\n }\n }\n\n if (!defaultPrevented) {\n // dispatch blur action\n dispatch(_reduxForm.blur(name, newValue));\n\n // call post-blur callback\n if (_reduxForm.asyncValidate) {\n _reduxForm.asyncValidate(name, newValue, 'blur');\n }\n }\n }, _this.handleDragStart = function (event) {\n var _this$props4 = _this.props,\n name = _this$props4.name,\n onDragStart = _this$props4.onDragStart,\n value = _this$props4.value;\n\n eventDataTransferSetData(event, dataKey, value == null ? '' : value);\n\n if (onDragStart) {\n onDragStart(event, name);\n }\n }, _this.handleDrop = function (event) {\n var _this$props5 = _this.props,\n name = _this$props5.name,\n dispatch = _this$props5.dispatch,\n onDrop = _this$props5.onDrop,\n _reduxForm = _this$props5._reduxForm,\n previousValue = _this$props5.value;\n\n var newValue = eventDataTransferGetData(event, dataKey);\n\n var defaultPrevented = false;\n if (onDrop) {\n onDrop(_extends({}, event, {\n preventDefault: function preventDefault() {\n defaultPrevented = true;\n return eventPreventDefault(event);\n }\n }), newValue, previousValue, name);\n }\n\n if (!defaultPrevented) {\n // dispatch change action\n dispatch(_reduxForm.change(name, newValue));\n eventPreventDefault(event);\n }\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n _createClass(ConnectedField, [{\n key: 'shouldComponentUpdate',\n value: function shouldComponentUpdate(nextProps) {\n var _this2 = this;\n\n var nextPropsKeys = Object.keys(nextProps);\n var thisPropsKeys = Object.keys(this.props);\n // if we have children, we MUST update in React 16\n // https://twitter.com/erikras/status/915866544558788608\n return !!(this.props.children || nextProps.children || nextPropsKeys.length !== thisPropsKeys.length || nextPropsKeys.some(function (prop) {\n if (~(nextProps.immutableProps || []).indexOf(prop)) {\n return _this2.props[prop] !== nextProps[prop];\n }\n return !~propsToNotUpdateFor.indexOf(prop) && !deepEqual(_this2.props[prop], nextProps[prop]);\n }));\n }\n }, {\n key: 'getRenderedComponent',\n value: function getRenderedComponent() {\n return this.ref;\n }\n }, {\n key: 'render',\n value: function render() {\n var _props = this.props,\n component = _props.component,\n withRef = _props.withRef,\n name = _props.name,\n _reduxForm = _props._reduxForm,\n normalize = _props.normalize,\n onBlur = _props.onBlur,\n onChange = _props.onChange,\n onFocus = _props.onFocus,\n onDragStart = _props.onDragStart,\n onDrop = _props.onDrop,\n immutableProps = _props.immutableProps,\n rest = _objectWithoutProperties(_props, ['component', 'withRef', 'name', '_reduxForm', 'normalize', 'onBlur', 'onChange', 'onFocus', 'onDragStart', 'onDrop', 'immutableProps']);\n\n var _createFieldProps = createFieldProps(structure, name, _extends({}, rest, {\n form: _reduxForm.form,\n onBlur: this.handleBlur,\n onChange: this.handleChange,\n onDrop: this.handleDrop,\n onDragStart: this.handleDragStart,\n onFocus: this.handleFocus\n })),\n custom = _createFieldProps.custom,\n props = _objectWithoutProperties(_createFieldProps, ['custom']);\n\n if (withRef) {\n custom.ref = this.saveRef;\n }\n if (typeof component === 'string') {\n var input = props.input,\n meta = props.meta; // eslint-disable-line no-unused-vars\n // flatten input into other props\n\n return createElement(component, _extends({}, input, custom));\n } else {\n return createElement(component, _extends({}, props, custom));\n }\n }\n }]);\n\n return ConnectedField;\n }(Component);\n\n ConnectedField.propTypes = {\n component: PropTypes.oneOfType([PropTypes.func, PropTypes.string, PropTypes.node]).isRequired,\n props: PropTypes.object\n };\n\n var connector = connect(function (state, ownProps) {\n var name = ownProps.name,\n _ownProps$_reduxForm = ownProps._reduxForm,\n initialValues = _ownProps$_reduxForm.initialValues,\n getFormState = _ownProps$_reduxForm.getFormState;\n\n var formState = getFormState(state);\n var initialState = getIn(formState, 'initial.' + name);\n var initial = initialState !== undefined ? initialState : initialValues && getIn(initialValues, name);\n var value = getIn(formState, 'values.' + name);\n var submitting = getIn(formState, 'submitting');\n var syncError = getSyncError(getIn(formState, 'syncErrors'), name);\n var syncWarning = getSyncWarning(getIn(formState, 'syncWarnings'), name);\n var pristine = deepEqual(value, initial);\n return {\n asyncError: getIn(formState, 'asyncErrors.' + name),\n asyncValidating: getIn(formState, 'asyncValidating') === name,\n dirty: !pristine,\n pristine: pristine,\n state: getIn(formState, 'fields.' + name),\n submitError: getIn(formState, 'submitErrors.' + name),\n submitFailed: getIn(formState, 'submitFailed'),\n submitting: submitting,\n syncError: syncError,\n syncWarning: syncWarning,\n initial: initial,\n value: value,\n _value: ownProps.value // save value passed in (for checkboxes)\n };\n }, undefined, undefined, { withRef: true });\n return connector(ConnectedField);\n};\n\nexport default createConnectedField;","import _mapValues from 'lodash-es/mapValues';\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { connect } from 'react-redux';\nimport { bindActionCreators } from 'redux';\nimport createFieldArrayProps from './createFieldArrayProps';\n\nimport plain from './structure/plain';\n\n\nvar propsToNotUpdateFor = ['_reduxForm', 'value'];\n\nvar createConnectedFieldArray = function createConnectedFieldArray(structure) {\n var deepEqual = structure.deepEqual,\n getIn = structure.getIn,\n size = structure.size;\n\n var getSyncError = function getSyncError(syncErrors, name) {\n // For an array, the error can _ONLY_ be under _error.\n // This is why this getSyncError is not the same as the\n // one in Field.\n return plain.getIn(syncErrors, name + '._error');\n };\n\n var getSyncWarning = function getSyncWarning(syncWarnings, name) {\n // For an array, the warning can _ONLY_ be under _warning.\n // This is why this getSyncError is not the same as the\n // one in Field.\n return getIn(syncWarnings, name + '._warning');\n };\n\n var ConnectedFieldArray = function (_React$Component) {\n _inherits(ConnectedFieldArray, _React$Component);\n\n function ConnectedFieldArray() {\n var _ref;\n\n var _temp, _this, _ret;\n\n _classCallCheck(this, ConnectedFieldArray);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ConnectedFieldArray.__proto__ || Object.getPrototypeOf(ConnectedFieldArray)).call.apply(_ref, [this].concat(args))), _this), _this.saveRef = function (ref) {\n _this.ref = ref;\n }, _this.getValue = function (index) {\n return _this.props.value && getIn(_this.props.value, String(index));\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n _createClass(ConnectedFieldArray, [{\n key: 'shouldComponentUpdate',\n value: function shouldComponentUpdate(nextProps) {\n var _this2 = this;\n\n // Update if the elements of the value array was updated.\n var thisValue = this.props.value;\n var nextValue = nextProps.value;\n\n if (thisValue && nextValue) {\n var nextValueItemsSame = nextValue.every(function (val) {\n return ~thisValue.indexOf(val);\n });\n var nextValueItemsOrderChanged = nextValue.some(function (val, index) {\n return val !== thisValue[index];\n });\n if (thisValue.length !== nextValue.length || nextValueItemsSame && nextValueItemsOrderChanged || nextProps.rerenderOnEveryChange && thisValue.some(function (val, index) {\n return !deepEqual(val, nextValue[index]);\n })) {\n return true;\n }\n }\n\n var nextPropsKeys = Object.keys(nextProps);\n var thisPropsKeys = Object.keys(this.props);\n // if we have children, we MUST update in React 16\n // https://twitter.com/erikras/status/915866544558788608\n return !!(this.props.children || nextProps.children || nextPropsKeys.length !== thisPropsKeys.length || nextPropsKeys.some(function (prop) {\n // useful to debug rerenders\n // if (!plain.deepEqual(this.props[ prop ], nextProps[ prop ])) {\n // console.info(prop, 'changed', this.props[ prop ], '==>', nextProps[ prop ])\n // }\n return !~propsToNotUpdateFor.indexOf(prop) && !deepEqual(_this2.props[prop], nextProps[prop]);\n }));\n }\n }, {\n key: 'getRenderedComponent',\n value: function getRenderedComponent() {\n return this.ref;\n }\n }, {\n key: 'render',\n value: function render() {\n var _props = this.props,\n component = _props.component,\n withRef = _props.withRef,\n name = _props.name,\n _reduxForm = _props._reduxForm,\n validate = _props.validate,\n warn = _props.warn,\n rerenderOnEveryChange = _props.rerenderOnEveryChange,\n rest = _objectWithoutProperties(_props, ['component', 'withRef', 'name', '_reduxForm', 'validate', 'warn', 'rerenderOnEveryChange']);\n\n var props = createFieldArrayProps(structure, name, _reduxForm.form, _reduxForm.sectionPrefix, this.getValue, rest);\n if (withRef) {\n props.ref = this.saveRef;\n }\n return React.createElement(component, props);\n }\n }, {\n key: 'dirty',\n get: function get() {\n return this.props.dirty;\n }\n }, {\n key: 'pristine',\n get: function get() {\n return this.props.pristine;\n }\n }, {\n key: 'value',\n get: function get() {\n return this.props.value;\n }\n }]);\n\n return ConnectedFieldArray;\n }(React.Component);\n\n ConnectedFieldArray.propTypes = {\n component: PropTypes.oneOfType([PropTypes.func, PropTypes.string, PropTypes.node]).isRequired,\n props: PropTypes.object,\n rerenderOnEveryChange: PropTypes.bool\n };\n\n ConnectedFieldArray.defaultProps = {\n rerenderOnEveryChange: false\n };\n\n ConnectedFieldArray.contextTypes = {\n _reduxForm: PropTypes.object\n };\n\n var connector = connect(function (state, ownProps) {\n var name = ownProps.name,\n _ownProps$_reduxForm = ownProps._reduxForm,\n initialValues = _ownProps$_reduxForm.initialValues,\n getFormState = _ownProps$_reduxForm.getFormState;\n\n var formState = getFormState(state);\n var initial = getIn(formState, 'initial.' + name) || initialValues && getIn(initialValues, name);\n var value = getIn(formState, 'values.' + name);\n var submitting = getIn(formState, 'submitting');\n var syncError = getSyncError(getIn(formState, 'syncErrors'), name);\n var syncWarning = getSyncWarning(getIn(formState, 'syncWarnings'), name);\n var pristine = deepEqual(value, initial);\n return {\n asyncError: getIn(formState, 'asyncErrors.' + name + '._error'),\n dirty: !pristine,\n pristine: pristine,\n state: getIn(formState, 'fields.' + name),\n submitError: getIn(formState, 'submitErrors.' + name + '._error'),\n submitFailed: getIn(formState, 'submitFailed'),\n submitting: submitting,\n syncError: syncError,\n syncWarning: syncWarning,\n value: value,\n length: size(value)\n };\n }, function (dispatch, ownProps) {\n var name = ownProps.name,\n _reduxForm = ownProps._reduxForm;\n var arrayInsert = _reduxForm.arrayInsert,\n arrayMove = _reduxForm.arrayMove,\n arrayPop = _reduxForm.arrayPop,\n arrayPush = _reduxForm.arrayPush,\n arrayRemove = _reduxForm.arrayRemove,\n arrayRemoveAll = _reduxForm.arrayRemoveAll,\n arrayShift = _reduxForm.arrayShift,\n arraySplice = _reduxForm.arraySplice,\n arraySwap = _reduxForm.arraySwap,\n arrayUnshift = _reduxForm.arrayUnshift;\n\n return _mapValues({\n arrayInsert: arrayInsert,\n arrayMove: arrayMove,\n arrayPop: arrayPop,\n arrayPush: arrayPush,\n arrayRemove: arrayRemove,\n arrayRemoveAll: arrayRemoveAll,\n arrayShift: arrayShift,\n arraySplice: arraySplice,\n arraySwap: arraySwap,\n arrayUnshift: arrayUnshift\n }, function (actionCreator) {\n return bindActionCreators(actionCreator.bind(null, name), dispatch);\n });\n }, undefined, { withRef: true });\n return connector(ConnectedFieldArray);\n};\n\nexport default createConnectedFieldArray;","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { connect } from 'react-redux';\nimport createFieldProps from './createFieldProps';\nimport plain from './structure/plain';\nimport onChangeValue from './events/onChangeValue';\n\n\nvar propsToNotUpdateFor = ['_reduxForm'];\n\nvar createConnectedFields = function createConnectedFields(structure) {\n var deepEqual = structure.deepEqual,\n getIn = structure.getIn,\n size = structure.size;\n\n\n var getSyncError = function getSyncError(syncErrors, name) {\n // Because the error for this field might not be at a level in the error structure where\n // it can be set directly, it might need to be unwrapped from the _error property\n return plain.getIn(syncErrors, name + '._error') || plain.getIn(syncErrors, name);\n };\n\n var getSyncWarning = function getSyncWarning(syncWarnings, name) {\n var warning = getIn(syncWarnings, name);\n // Because the warning for this field might not be at a level in the warning structure where\n // it can be set directly, it might need to be unwrapped from the _warning property\n return warning && warning._warning ? warning._warning : warning;\n };\n\n var ConnectedFields = function (_React$Component) {\n _inherits(ConnectedFields, _React$Component);\n\n function ConnectedFields(props) {\n _classCallCheck(this, ConnectedFields);\n\n var _this = _possibleConstructorReturn(this, (ConnectedFields.__proto__ || Object.getPrototypeOf(ConnectedFields)).call(this, props));\n\n _this.onChangeFns = {};\n _this.onFocusFns = {};\n _this.onBlurFns = {};\n\n _this.prepareEventHandlers = function (_ref) {\n var names = _ref.names;\n return names.forEach(function (name) {\n _this.onChangeFns[name] = function (event) {\n return _this.handleChange(name, event);\n };\n _this.onFocusFns[name] = function () {\n return _this.handleFocus(name);\n };\n _this.onBlurFns[name] = function (event) {\n return _this.handleBlur(name, event);\n };\n });\n };\n\n _this.handleChange = function (name, event) {\n var _this$props = _this.props,\n dispatch = _this$props.dispatch,\n parse = _this$props.parse,\n _reduxForm = _this$props._reduxForm;\n\n var value = onChangeValue(event, { name: name, parse: parse });\n\n dispatch(_reduxForm.change(name, value));\n\n // call post-change callback\n if (_reduxForm.asyncValidate) {\n _reduxForm.asyncValidate(name, value, 'change');\n }\n };\n\n _this.handleFocus = function (name) {\n var _this$props2 = _this.props,\n dispatch = _this$props2.dispatch,\n _reduxForm = _this$props2._reduxForm;\n\n dispatch(_reduxForm.focus(name));\n };\n\n _this.handleBlur = function (name, event) {\n var _this$props3 = _this.props,\n dispatch = _this$props3.dispatch,\n parse = _this$props3.parse,\n _reduxForm = _this$props3._reduxForm;\n\n var value = onChangeValue(event, { name: name, parse: parse });\n\n // dispatch blur action\n dispatch(_reduxForm.blur(name, value));\n\n // call post-blur callback\n if (_reduxForm.asyncValidate) {\n _reduxForm.asyncValidate(name, value, 'blur');\n }\n };\n\n _this.saveRef = function (ref) {\n _this.ref = ref;\n };\n\n _this.prepareEventHandlers(props);\n return _this;\n }\n\n _createClass(ConnectedFields, [{\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n var _this2 = this;\n\n if (this.props.names !== nextProps.names && (size(this.props.names) !== size(nextProps.names) || nextProps.names.some(function (nextName) {\n return !_this2.props._fields[nextName];\n }))) {\n // names has changed. The cached event handlers need to be updated\n this.prepareEventHandlers(nextProps);\n }\n }\n }, {\n key: 'shouldComponentUpdate',\n value: function shouldComponentUpdate(nextProps) {\n var _this3 = this;\n\n var nextPropsKeys = Object.keys(nextProps);\n var thisPropsKeys = Object.keys(this.props);\n // if we have children, we MUST update in React 16\n // https://twitter.com/erikras/status/915866544558788608\n return !!(this.props.children || nextProps.children || nextPropsKeys.length !== thisPropsKeys.length || nextPropsKeys.some(function (prop) {\n return !~propsToNotUpdateFor.indexOf(prop) && !deepEqual(_this3.props[prop], nextProps[prop]);\n }));\n }\n }, {\n key: 'isDirty',\n value: function isDirty() {\n var _fields = this.props._fields;\n\n return Object.keys(_fields).some(function (name) {\n return _fields[name].dirty;\n });\n }\n }, {\n key: 'getValues',\n value: function getValues() {\n var _fields = this.props._fields;\n\n return Object.keys(_fields).reduce(function (accumulator, name) {\n return plain.setIn(accumulator, name, _fields[name].value);\n }, {});\n }\n }, {\n key: 'getRenderedComponent',\n value: function getRenderedComponent() {\n return this.ref;\n }\n }, {\n key: 'render',\n value: function render() {\n var _this4 = this;\n\n var _props = this.props,\n component = _props.component,\n withRef = _props.withRef,\n _fields = _props._fields,\n _reduxForm = _props._reduxForm,\n rest = _objectWithoutProperties(_props, ['component', 'withRef', '_fields', '_reduxForm']);\n\n var sectionPrefix = _reduxForm.sectionPrefix,\n form = _reduxForm.form;\n\n var _Object$keys$reduce = Object.keys(_fields).reduce(function (accumulator, name) {\n var connectedProps = _fields[name];\n\n var _createFieldProps = createFieldProps(structure, name, _extends({}, connectedProps, rest, {\n form: form,\n onBlur: _this4.onBlurFns[name],\n onChange: _this4.onChangeFns[name],\n onFocus: _this4.onFocusFns[name]\n })),\n custom = _createFieldProps.custom,\n fieldProps = _objectWithoutProperties(_createFieldProps, ['custom']);\n\n accumulator.custom = custom;\n var fieldName = sectionPrefix ? name.replace(sectionPrefix + '.', '') : name;\n return plain.setIn(accumulator, fieldName, fieldProps);\n }, {}),\n custom = _Object$keys$reduce.custom,\n props = _objectWithoutProperties(_Object$keys$reduce, ['custom']);\n\n if (withRef) {\n props.ref = this.saveRef;\n }\n\n return React.createElement(component, _extends({}, props, custom));\n }\n }]);\n\n return ConnectedFields;\n }(React.Component);\n\n ConnectedFields.propTypes = {\n component: PropTypes.oneOfType([PropTypes.func, PropTypes.string, PropTypes.node]).isRequired,\n _fields: PropTypes.object.isRequired,\n props: PropTypes.object\n };\n\n var connector = connect(function (state, ownProps) {\n var names = ownProps.names,\n _ownProps$_reduxForm = ownProps._reduxForm,\n initialValues = _ownProps$_reduxForm.initialValues,\n getFormState = _ownProps$_reduxForm.getFormState;\n\n var formState = getFormState(state);\n return {\n _fields: names.reduce(function (accumulator, name) {\n var initialState = getIn(formState, 'initial.' + name);\n var initial = initialState !== undefined ? initialState : initialValues && getIn(initialValues, name);\n var value = getIn(formState, 'values.' + name);\n var syncError = getSyncError(getIn(formState, 'syncErrors'), name);\n var syncWarning = getSyncWarning(getIn(formState, 'syncWarnings'), name);\n var submitting = getIn(formState, 'submitting');\n var pristine = value === initial;\n accumulator[name] = {\n asyncError: getIn(formState, 'asyncErrors.' + name),\n asyncValidating: getIn(formState, 'asyncValidating') === name,\n dirty: !pristine,\n initial: initial,\n pristine: pristine,\n state: getIn(formState, 'fields.' + name),\n submitError: getIn(formState, 'submitErrors.' + name),\n submitFailed: getIn(formState, 'submitFailed'),\n submitting: submitting,\n syncError: syncError,\n syncWarning: syncWarning,\n value: value,\n _value: ownProps.value // save value passed in (for checkboxes)\n };\n return accumulator;\n }, {})\n };\n }, undefined, undefined, { withRef: true });\n return connector(ConnectedFields);\n};\n\nexport default createConnectedFields;","import createField from './createField';\nimport plain from './structure/plain';\n\nexport default createField(plain);","import createFieldArray from './createFieldArray';\nimport plain from './structure/plain';\n\nexport default createFieldArray(plain);","import createFields from './createFields';\nimport plain from './structure/plain';\n\nexport default createFields(plain);","var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport React, { Component } from 'react';\nimport { polyfill } from 'react-lifecycles-compat';\nimport PropTypes from 'prop-types';\n\nvar Form = function (_Component) {\n _inherits(Form, _Component);\n\n function Form(props, context) {\n _classCallCheck(this, Form);\n\n var _this = _possibleConstructorReturn(this, (Form.__proto__ || Object.getPrototypeOf(Form)).call(this, props, context));\n\n if (!context._reduxForm) {\n throw new Error('Form must be inside a component decorated with reduxForm()');\n }\n return _this;\n }\n\n _createClass(Form, [{\n key: 'componentWillMount',\n value: function componentWillMount() {\n this.context._reduxForm.registerInnerOnSubmit(this.props.onSubmit);\n }\n }, {\n key: 'render',\n value: function render() {\n return React.createElement('form', this.props);\n }\n }]);\n\n return Form;\n}(Component);\n\nForm.propTypes = {\n onSubmit: PropTypes.func.isRequired\n};\nForm.contextTypes = {\n _reduxForm: PropTypes.object\n};\n\npolyfill(Form);\nexport default Form;","import * as React from 'react';\nimport PropTypes from 'prop-types';\n\n\nvar FormName = function FormName(_ref, _ref2) {\n var children = _ref.children;\n var _reduxForm = _ref2._reduxForm;\n return children({ form: _reduxForm && _reduxForm.form });\n};\nFormName.contextTypes = {\n _reduxForm: PropTypes.shape({\n form: PropTypes.string.isRequired\n }).isRequired\n};\n\nexport default FormName;","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport React, { createElement, Component } from 'react';\nimport PropTypes from 'prop-types';\nimport prefixName from './util/prefixName';\n\nvar FormSection = function (_Component) {\n _inherits(FormSection, _Component);\n\n function FormSection(props, context) {\n _classCallCheck(this, FormSection);\n\n var _this = _possibleConstructorReturn(this, (FormSection.__proto__ || Object.getPrototypeOf(FormSection)).call(this, props, context));\n\n if (!context._reduxForm) {\n throw new Error('FormSection must be inside a component decorated with reduxForm()');\n }\n return _this;\n }\n\n _createClass(FormSection, [{\n key: 'getChildContext',\n value: function getChildContext() {\n var context = this.context,\n name = this.props.name;\n\n return {\n _reduxForm: _extends({}, context._reduxForm, {\n sectionPrefix: prefixName(context, name)\n })\n };\n }\n }, {\n key: 'render',\n value: function render() {\n var _props = this.props,\n children = _props.children,\n name = _props.name,\n component = _props.component,\n rest = _objectWithoutProperties(_props, ['children', 'name', 'component']);\n\n if (React.isValidElement(children)) {\n return children;\n }\n\n return createElement(component, _extends({}, rest, {\n children: children\n }));\n }\n }]);\n\n return FormSection;\n}(Component);\n\nFormSection.propTypes = {\n name: PropTypes.string.isRequired,\n component: PropTypes.oneOfType([PropTypes.func, PropTypes.string, PropTypes.node])\n};\n\nFormSection.defaultProps = {\n component: 'div'\n};\n\nFormSection.childContextTypes = {\n _reduxForm: PropTypes.object.isRequired\n};\n\nFormSection.contextTypes = {\n _reduxForm: PropTypes.object\n};\n\nexport default FormSection;","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport ExtendableError from 'es6-error';\n\nvar SubmissionError = function (_ExtendableError) {\n _inherits(SubmissionError, _ExtendableError);\n\n function SubmissionError(errors) {\n _classCallCheck(this, SubmissionError);\n\n var _this = _possibleConstructorReturn(this, (SubmissionError.__proto__ || Object.getPrototypeOf(SubmissionError)).call(this, 'Submit Validation Failed'));\n\n _this.errors = errors;\n return _this;\n }\n\n return SubmissionError;\n}(ExtendableError);\n\nexport default SubmissionError;","export var prefix = '@@redux-form/';\n\nexport var ARRAY_INSERT = prefix + 'ARRAY_INSERT';\nexport var ARRAY_MOVE = prefix + 'ARRAY_MOVE';\nexport var ARRAY_POP = prefix + 'ARRAY_POP';\nexport var ARRAY_PUSH = prefix + 'ARRAY_PUSH';\nexport var ARRAY_REMOVE = prefix + 'ARRAY_REMOVE';\nexport var ARRAY_REMOVE_ALL = prefix + 'ARRAY_REMOVE_ALL';\nexport var ARRAY_SHIFT = prefix + 'ARRAY_SHIFT';\nexport var ARRAY_SPLICE = prefix + 'ARRAY_SPLICE';\nexport var ARRAY_UNSHIFT = prefix + 'ARRAY_UNSHIFT';\nexport var ARRAY_SWAP = prefix + 'ARRAY_SWAP';\nexport var AUTOFILL = prefix + 'AUTOFILL';\nexport var BLUR = prefix + 'BLUR';\nexport var CHANGE = prefix + 'CHANGE';\nexport var CLEAR_FIELDS = prefix + 'CLEAR_FIELDS';\nexport var CLEAR_SUBMIT = prefix + 'CLEAR_SUBMIT';\nexport var CLEAR_SUBMIT_ERRORS = prefix + 'CLEAR_SUBMIT_ERRORS';\nexport var CLEAR_ASYNC_ERROR = prefix + 'CLEAR_ASYNC_ERROR';\nexport var DESTROY = prefix + 'DESTROY';\nexport var FOCUS = prefix + 'FOCUS';\nexport var INITIALIZE = prefix + 'INITIALIZE';\nexport var REGISTER_FIELD = prefix + 'REGISTER_FIELD';\nexport var RESET = prefix + 'RESET';\nexport var RESET_SECTION = prefix + 'RESET_SECTION';\nexport var SET_SUBMIT_FAILED = prefix + 'SET_SUBMIT_FAILED';\nexport var SET_SUBMIT_SUCCEEDED = prefix + 'SET_SUBMIT_SUCCEEDED';\nexport var START_ASYNC_VALIDATION = prefix + 'START_ASYNC_VALIDATION';\nexport var START_SUBMIT = prefix + 'START_SUBMIT';\nexport var STOP_ASYNC_VALIDATION = prefix + 'STOP_ASYNC_VALIDATION';\nexport var STOP_SUBMIT = prefix + 'STOP_SUBMIT';\nexport var SUBMIT = prefix + 'SUBMIT';\nexport var TOUCH = prefix + 'TOUCH';\nexport var UNREGISTER_FIELD = prefix + 'UNREGISTER_FIELD';\nexport var UNTOUCH = prefix + 'UNTOUCH';\nexport var UPDATE_SYNC_ERRORS = prefix + 'UPDATE_SYNC_ERRORS';\nexport var UPDATE_SYNC_WARNINGS = prefix + 'UPDATE_SYNC_WARNINGS';","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nimport { ARRAY_INSERT, ARRAY_MOVE, ARRAY_POP, ARRAY_PUSH, ARRAY_REMOVE, ARRAY_REMOVE_ALL, ARRAY_SHIFT, ARRAY_SPLICE, ARRAY_SWAP, ARRAY_UNSHIFT, AUTOFILL, BLUR, CHANGE, CLEAR_SUBMIT, CLEAR_SUBMIT_ERRORS, CLEAR_ASYNC_ERROR, DESTROY, FOCUS, INITIALIZE, REGISTER_FIELD, RESET, RESET_SECTION, CLEAR_FIELDS, SET_SUBMIT_FAILED, SET_SUBMIT_SUCCEEDED, START_ASYNC_VALIDATION, START_SUBMIT, STOP_ASYNC_VALIDATION, STOP_SUBMIT, SUBMIT, TOUCH, UNREGISTER_FIELD, UNTOUCH, UPDATE_SYNC_ERRORS, UPDATE_SYNC_WARNINGS } from './actionTypes';\n\n\nvar arrayInsert = function arrayInsert(form, field, index, value) {\n return {\n type: ARRAY_INSERT,\n meta: { form: form, field: field, index: index },\n payload: value\n };\n};\n\nvar arrayMove = function arrayMove(form, field, from, to) {\n return {\n type: ARRAY_MOVE,\n meta: { form: form, field: field, from: from, to: to }\n };\n};\n\nvar arrayPop = function arrayPop(form, field) {\n return {\n type: ARRAY_POP,\n meta: { form: form, field: field }\n };\n};\n\nvar arrayPush = function arrayPush(form, field, value) {\n return {\n type: ARRAY_PUSH,\n meta: { form: form, field: field },\n payload: value\n };\n};\n\nvar arrayRemove = function arrayRemove(form, field, index) {\n return {\n type: ARRAY_REMOVE,\n meta: { form: form, field: field, index: index }\n };\n};\n\nvar arrayRemoveAll = function arrayRemoveAll(form, field) {\n return {\n type: ARRAY_REMOVE_ALL,\n meta: { form: form, field: field }\n };\n};\n\nvar arrayShift = function arrayShift(form, field) {\n return {\n type: ARRAY_SHIFT,\n meta: { form: form, field: field }\n };\n};\n\nvar arraySplice = function arraySplice(form, field, index, removeNum, value) {\n var action = {\n type: ARRAY_SPLICE,\n meta: { form: form, field: field, index: index, removeNum: removeNum }\n };\n if (value !== undefined) {\n action.payload = value;\n }\n return action;\n};\n\nvar arraySwap = function arraySwap(form, field, indexA, indexB) {\n if (indexA === indexB) {\n throw new Error('Swap indices cannot be equal');\n }\n if (indexA < 0 || indexB < 0) {\n throw new Error('Swap indices cannot be negative');\n }\n return { type: ARRAY_SWAP, meta: { form: form, field: field, indexA: indexA, indexB: indexB } };\n};\n\nvar arrayUnshift = function arrayUnshift(form, field, value) {\n return {\n type: ARRAY_UNSHIFT,\n meta: { form: form, field: field },\n payload: value\n };\n};\n\nvar autofill = function autofill(form, field, value) {\n return {\n type: AUTOFILL,\n meta: { form: form, field: field },\n payload: value\n };\n};\n\nvar blur = function blur(form, field, value, touch) {\n return {\n type: BLUR,\n meta: { form: form, field: field, touch: touch },\n payload: value\n };\n};\n\nvar change = function change(form, field, value, touch, persistentSubmitErrors) {\n return {\n type: CHANGE,\n meta: { form: form, field: field, touch: touch, persistentSubmitErrors: persistentSubmitErrors },\n payload: value\n };\n};\n\nvar clearSubmit = function clearSubmit(form) {\n return {\n type: CLEAR_SUBMIT,\n meta: { form: form }\n };\n};\n\nvar clearSubmitErrors = function clearSubmitErrors(form) {\n return {\n type: CLEAR_SUBMIT_ERRORS,\n meta: { form: form }\n };\n};\n\nvar clearAsyncError = function clearAsyncError(form, field) {\n return {\n type: CLEAR_ASYNC_ERROR,\n meta: { form: form, field: field }\n };\n};\n\nvar clearFields = function clearFields(form, keepTouched, persistentSubmitErrors) {\n for (var _len = arguments.length, fields = Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {\n fields[_key - 3] = arguments[_key];\n }\n\n return {\n type: CLEAR_FIELDS,\n meta: { form: form, keepTouched: keepTouched, persistentSubmitErrors: persistentSubmitErrors, fields: fields }\n };\n};\n\nvar destroy = function destroy() {\n for (var _len2 = arguments.length, form = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n form[_key2] = arguments[_key2];\n }\n\n return {\n type: DESTROY,\n meta: { form: form }\n };\n};\n\nvar focus = function focus(form, field) {\n return {\n type: FOCUS,\n meta: { form: form, field: field }\n };\n};\n\nvar initialize = function initialize(form, values, keepDirty) {\n var otherMeta = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n\n if (keepDirty instanceof Object) {\n otherMeta = keepDirty;\n keepDirty = false;\n }\n return {\n type: INITIALIZE,\n meta: _extends({ form: form, keepDirty: keepDirty }, otherMeta),\n payload: values\n };\n};\n\nvar registerField = function registerField(form, name, type) {\n return {\n type: REGISTER_FIELD,\n meta: { form: form },\n payload: { name: name, type: type }\n };\n};\n\nvar reset = function reset(form) {\n return {\n type: RESET,\n meta: { form: form }\n };\n};\n\nvar resetSection = function resetSection(form) {\n for (var _len3 = arguments.length, sections = Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {\n sections[_key3 - 1] = arguments[_key3];\n }\n\n return {\n type: RESET_SECTION,\n meta: { form: form, sections: sections }\n };\n};\n\nvar startAsyncValidation = function startAsyncValidation(form, field) {\n return {\n type: START_ASYNC_VALIDATION,\n meta: { form: form, field: field }\n };\n};\n\nvar startSubmit = function startSubmit(form) {\n return {\n type: START_SUBMIT,\n meta: { form: form }\n };\n};\n\nvar stopAsyncValidation = function stopAsyncValidation(form, errors) {\n return {\n type: STOP_ASYNC_VALIDATION,\n meta: { form: form },\n payload: errors,\n error: !!(errors && Object.keys(errors).length)\n };\n};\n\nvar stopSubmit = function stopSubmit(form, errors) {\n return {\n type: STOP_SUBMIT,\n meta: { form: form },\n payload: errors,\n error: !!(errors && Object.keys(errors).length)\n };\n};\n\nvar submit = function submit(form) {\n return {\n type: SUBMIT,\n meta: { form: form }\n };\n};\n\nvar setSubmitFailed = function setSubmitFailed(form) {\n for (var _len4 = arguments.length, fields = Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {\n fields[_key4 - 1] = arguments[_key4];\n }\n\n return {\n type: SET_SUBMIT_FAILED,\n meta: { form: form, fields: fields },\n error: true\n };\n};\n\nvar setSubmitSucceeded = function setSubmitSucceeded(form) {\n for (var _len5 = arguments.length, fields = Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; _key5 < _len5; _key5++) {\n fields[_key5 - 1] = arguments[_key5];\n }\n\n return {\n type: SET_SUBMIT_SUCCEEDED,\n meta: { form: form, fields: fields },\n error: false\n };\n};\n\nvar touch = function touch(form) {\n for (var _len6 = arguments.length, fields = Array(_len6 > 1 ? _len6 - 1 : 0), _key6 = 1; _key6 < _len6; _key6++) {\n fields[_key6 - 1] = arguments[_key6];\n }\n\n return {\n type: TOUCH,\n meta: { form: form, fields: fields }\n };\n};\n\nvar unregisterField = function unregisterField(form, name) {\n var destroyOnUnmount = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n return {\n type: UNREGISTER_FIELD,\n meta: { form: form },\n payload: { name: name, destroyOnUnmount: destroyOnUnmount }\n };\n};\n\nvar untouch = function untouch(form) {\n for (var _len7 = arguments.length, fields = Array(_len7 > 1 ? _len7 - 1 : 0), _key7 = 1; _key7 < _len7; _key7++) {\n fields[_key7 - 1] = arguments[_key7];\n }\n\n return {\n type: UNTOUCH,\n meta: { form: form, fields: fields }\n };\n};\n\nvar updateSyncErrors = function updateSyncErrors(form) {\n var syncErrors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var error = arguments[2];\n return {\n type: UPDATE_SYNC_ERRORS,\n meta: { form: form },\n payload: { syncErrors: syncErrors, error: error }\n };\n};\n\nvar updateSyncWarnings = function updateSyncWarnings(form) {\n var syncWarnings = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var warning = arguments[2];\n return {\n type: UPDATE_SYNC_WARNINGS,\n meta: { form: form },\n payload: { syncWarnings: syncWarnings, warning: warning }\n };\n};\n\nvar actions = {\n arrayInsert: arrayInsert,\n arrayMove: arrayMove,\n arrayPop: arrayPop,\n arrayPush: arrayPush,\n arrayRemove: arrayRemove,\n arrayRemoveAll: arrayRemoveAll,\n arrayShift: arrayShift,\n arraySplice: arraySplice,\n arraySwap: arraySwap,\n arrayUnshift: arrayUnshift,\n autofill: autofill,\n blur: blur,\n change: change,\n clearFields: clearFields,\n clearSubmit: clearSubmit,\n clearSubmitErrors: clearSubmitErrors,\n clearAsyncError: clearAsyncError,\n destroy: destroy,\n focus: focus,\n initialize: initialize,\n registerField: registerField,\n reset: reset,\n resetSection: resetSection,\n startAsyncValidation: startAsyncValidation,\n startSubmit: startSubmit,\n stopAsyncValidation: stopAsyncValidation,\n stopSubmit: stopSubmit,\n submit: submit,\n setSubmitFailed: setSubmitFailed,\n setSubmitSucceeded: setSubmitSucceeded,\n touch: touch,\n unregisterField: unregisterField,\n untouch: untouch,\n updateSyncErrors: updateSyncErrors,\n updateSyncWarnings: updateSyncWarnings\n};\n\nexport default actions;","import isPromise from 'is-promise';\n\nvar asyncValidation = function asyncValidation(fn, start, stop, field) {\n start(field);\n var promise = fn();\n if (!isPromise(promise)) {\n throw new Error('asyncValidate function passed to reduxForm must return a promise');\n }\n var handleErrors = function handleErrors(rejected) {\n return function (errors) {\n if (rejected) {\n if (errors && Object.keys(errors).length) {\n stop(errors);\n return errors;\n } else {\n stop();\n throw new Error('Asynchronous validation promise was rejected without errors.');\n }\n }\n stop();\n return Promise.resolve();\n };\n };\n return promise.then(handleErrors(false), handleErrors(true));\n};\n\nexport default asyncValidation;","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport React, { Component, createElement } from 'react';\nimport { polyfill } from 'react-lifecycles-compat';\nimport PropTypes from 'prop-types';\nimport invariant from 'invariant';\nimport createConnectedField from './ConnectedField';\nimport shallowCompare from './util/shallowCompare';\nimport prefixName from './util/prefixName';\nimport plain from './structure/plain';\n\n\nvar createField = function createField(structure) {\n var ConnectedField = createConnectedField(structure);\n\n var setIn = structure.setIn;\n\n var Field = function (_Component) {\n _inherits(Field, _Component);\n\n function Field(props, context) {\n _classCallCheck(this, Field);\n\n var _this = _possibleConstructorReturn(this, (Field.__proto__ || Object.getPrototypeOf(Field)).call(this, props, context));\n\n _this.saveRef = function (ref) {\n return _this.ref = ref;\n };\n\n _this.normalize = function (name, value) {\n var normalize = _this.props.normalize;\n\n if (!normalize) {\n return value;\n }\n var previousValues = _this.context._reduxForm.getValues();\n var previousValue = _this.value;\n var nextValues = setIn(previousValues, name, value);\n return normalize(value, previousValue, nextValues, previousValues);\n };\n\n if (!context._reduxForm) {\n throw new Error('Field must be inside a component decorated with reduxForm()');\n }\n return _this;\n }\n\n _createClass(Field, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n var _this2 = this;\n\n this.context._reduxForm.register(this.name, 'Field', function () {\n return _this2.props.validate;\n }, function () {\n return _this2.props.warn;\n });\n }\n }, {\n key: 'shouldComponentUpdate',\n value: function shouldComponentUpdate(nextProps, nextState) {\n return shallowCompare(this, nextProps, nextState);\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps, nextContext) {\n var oldName = prefixName(this.context, this.props.name);\n var newName = prefixName(nextContext, nextProps.name);\n\n if (oldName !== newName ||\n // use deepEqual here because they could be a function or an array of functions\n !plain.deepEqual(this.props.validate, nextProps.validate) || !plain.deepEqual(this.props.warn, nextProps.warn)) {\n // unregister old name\n this.context._reduxForm.unregister(oldName);\n // register new name\n this.context._reduxForm.register(newName, 'Field', function () {\n return nextProps.validate;\n }, function () {\n return nextProps.warn;\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.context._reduxForm.unregister(this.name);\n }\n }, {\n key: 'getRenderedComponent',\n value: function getRenderedComponent() {\n invariant(this.props.withRef, 'If you want to access getRenderedComponent(), ' + 'you must specify a withRef prop to Field');\n return this.ref ? this.ref.getWrappedInstance().getRenderedComponent() : undefined;\n }\n }, {\n key: 'render',\n value: function render() {\n return createElement(ConnectedField, _extends({}, this.props, {\n name: this.name,\n normalize: this.normalize,\n _reduxForm: this.context._reduxForm,\n ref: this.saveRef\n }));\n }\n }, {\n key: 'name',\n get: function get() {\n return prefixName(this.context, this.props.name);\n }\n }, {\n key: 'dirty',\n get: function get() {\n return !this.pristine;\n }\n }, {\n key: 'pristine',\n get: function get() {\n return !!(this.ref && this.ref.getWrappedInstance().isPristine());\n }\n }, {\n key: 'value',\n get: function get() {\n return this.ref && this.ref.getWrappedInstance().getValue();\n }\n }]);\n\n return Field;\n }(Component);\n\n Field.propTypes = {\n name: PropTypes.string.isRequired,\n component: PropTypes.oneOfType([PropTypes.func, PropTypes.string, PropTypes.node]).isRequired,\n format: PropTypes.func,\n normalize: PropTypes.func,\n onBlur: PropTypes.func,\n onChange: PropTypes.func,\n onFocus: PropTypes.func,\n onDragStart: PropTypes.func,\n onDrop: PropTypes.func,\n parse: PropTypes.func,\n props: PropTypes.object,\n validate: PropTypes.oneOfType([PropTypes.func, PropTypes.arrayOf(PropTypes.func)]),\n warn: PropTypes.oneOfType([PropTypes.func, PropTypes.arrayOf(PropTypes.func)]),\n withRef: PropTypes.bool,\n immutableProps: PropTypes.arrayOf(PropTypes.string)\n };\n Field.contextTypes = {\n _reduxForm: PropTypes.object\n };\n\n polyfill(Field);\n return Field;\n};\n\nexport default createField;","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport React, { Component, createElement } from 'react';\nimport { polyfill } from 'react-lifecycles-compat';\nimport PropTypes from 'prop-types';\nimport invariant from 'invariant';\nimport createConnectedFieldArray from './ConnectedFieldArray';\nimport prefixName from './util/prefixName';\n\n\nvar toArray = function toArray(value) {\n return Array.isArray(value) ? value : [value];\n};\n\nvar wrapError = function wrapError(fn, key) {\n return fn && function () {\n var validators = toArray(fn);\n for (var i = 0; i < validators.length; i++) {\n var result = validators[i].apply(validators, arguments);\n if (result) {\n return _defineProperty({}, key, result);\n }\n }\n };\n};\n\nvar createFieldArray = function createFieldArray(structure) {\n var ConnectedFieldArray = createConnectedFieldArray(structure);\n\n var FieldArray = function (_Component) {\n _inherits(FieldArray, _Component);\n\n function FieldArray(props, context) {\n _classCallCheck(this, FieldArray);\n\n var _this = _possibleConstructorReturn(this, (FieldArray.__proto__ || Object.getPrototypeOf(FieldArray)).call(this, props, context));\n\n _this.saveRef = function (ref) {\n _this.ref = ref;\n };\n\n if (!context._reduxForm) {\n throw new Error('FieldArray must be inside a component decorated with reduxForm()');\n }\n return _this;\n }\n\n _createClass(FieldArray, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n var _this2 = this;\n\n this.context._reduxForm.register(this.name, 'FieldArray', function () {\n return wrapError(_this2.props.validate, '_error');\n }, function () {\n return wrapError(_this2.props.warn, '_warning');\n });\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps, nextContext) {\n var oldName = prefixName(this.context, this.props.name);\n var newName = prefixName(nextContext, nextProps.name);\n\n if (oldName !== newName) {\n // unregister old name\n this.context._reduxForm.unregister(oldName);\n // register new name\n this.context._reduxForm.register(newName, 'FieldArray');\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.context._reduxForm.unregister(this.name);\n }\n }, {\n key: 'getRenderedComponent',\n value: function getRenderedComponent() {\n invariant(this.props.withRef, 'If you want to access getRenderedComponent(), ' + 'you must specify a withRef prop to FieldArray');\n return this.ref && this.ref.getWrappedInstance().getRenderedComponent();\n }\n }, {\n key: 'render',\n value: function render() {\n return createElement(ConnectedFieldArray, _extends({}, this.props, {\n name: this.name,\n _reduxForm: this.context._reduxForm,\n ref: this.saveRef\n }));\n }\n }, {\n key: 'name',\n get: function get() {\n return prefixName(this.context, this.props.name);\n }\n }, {\n key: 'dirty',\n get: function get() {\n return !this.ref || this.ref.getWrappedInstance().dirty;\n }\n }, {\n key: 'pristine',\n get: function get() {\n return !!(this.ref && this.ref.getWrappedInstance().pristine);\n }\n }, {\n key: 'value',\n get: function get() {\n return this.ref ? this.ref.getWrappedInstance().value : undefined;\n }\n }]);\n\n return FieldArray;\n }(Component);\n\n FieldArray.propTypes = {\n name: PropTypes.string.isRequired,\n component: PropTypes.oneOfType([PropTypes.func, PropTypes.string, PropTypes.node]).isRequired,\n props: PropTypes.object,\n validate: PropTypes.oneOfType([PropTypes.func, PropTypes.arrayOf(PropTypes.func)]),\n warn: PropTypes.oneOfType([PropTypes.func, PropTypes.arrayOf(PropTypes.func)]),\n withRef: PropTypes.bool\n };\n FieldArray.contextTypes = {\n _reduxForm: PropTypes.object\n };\n\n polyfill(FieldArray);\n return FieldArray;\n};\n\nexport default createFieldArray;","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nvar createFieldArrayProps = function createFieldArrayProps(_ref2, name, form, sectionPrefix, getValue, _ref) {\n var getIn = _ref2.getIn;\n\n var arrayInsert = _ref.arrayInsert,\n arrayMove = _ref.arrayMove,\n arrayPop = _ref.arrayPop,\n arrayPush = _ref.arrayPush,\n arrayRemove = _ref.arrayRemove,\n arrayRemoveAll = _ref.arrayRemoveAll,\n arrayShift = _ref.arrayShift,\n arraySplice = _ref.arraySplice,\n arraySwap = _ref.arraySwap,\n arrayUnshift = _ref.arrayUnshift,\n asyncError = _ref.asyncError,\n dirty = _ref.dirty,\n length = _ref.length,\n pristine = _ref.pristine,\n submitError = _ref.submitError,\n state = _ref.state,\n submitFailed = _ref.submitFailed,\n submitting = _ref.submitting,\n syncError = _ref.syncError,\n syncWarning = _ref.syncWarning,\n value = _ref.value,\n props = _ref.props,\n rest = _objectWithoutProperties(_ref, ['arrayInsert', 'arrayMove', 'arrayPop', 'arrayPush', 'arrayRemove', 'arrayRemoveAll', 'arrayShift', 'arraySplice', 'arraySwap', 'arrayUnshift', 'asyncError', 'dirty', 'length', 'pristine', 'submitError', 'state', 'submitFailed', 'submitting', 'syncError', 'syncWarning', 'value', 'props']);\n\n var error = syncError || asyncError || submitError;\n var warning = syncWarning;\n var fieldName = sectionPrefix ? name.replace(sectionPrefix + '.', '') : name;\n var finalProps = _extends({\n fields: {\n _isFieldArray: true,\n forEach: function forEach(callback) {\n return (value || []).forEach(function (item, index) {\n return callback(fieldName + '[' + index + ']', index, finalProps.fields);\n });\n },\n get: getValue,\n getAll: function getAll() {\n return value;\n },\n insert: arrayInsert,\n length: length,\n map: function map(callback) {\n return (value || []).map(function (item, index) {\n return callback(fieldName + '[' + index + ']', index, finalProps.fields);\n });\n },\n move: arrayMove,\n name: name,\n pop: function pop() {\n arrayPop();\n return getIn(value, String(length - 1));\n },\n push: arrayPush,\n reduce: function reduce(callback, initial) {\n return (value || []).reduce(function (accumulator, item, index) {\n return callback(accumulator, fieldName + '[' + index + ']', index, finalProps.fields);\n }, initial);\n },\n remove: arrayRemove,\n removeAll: arrayRemoveAll,\n shift: function shift() {\n arrayShift();\n return getIn(value, '0');\n },\n splice: arraySplice,\n swap: arraySwap,\n unshift: arrayUnshift\n },\n meta: {\n dirty: dirty,\n error: error,\n form: form,\n warning: warning,\n invalid: !!error,\n pristine: pristine,\n submitting: submitting,\n submitFailed: submitFailed,\n valid: !error\n }\n }, props, rest);\n return finalProps;\n};\n\n\nexport default createFieldArrayProps;","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nvar processProps = function processProps(type, props, _value, deepEqual) {\n var value = props.value;\n\n if (type === 'checkbox') {\n return _extends({}, props, {\n checked: !!value\n });\n }\n if (type === 'radio') {\n return _extends({}, props, {\n checked: deepEqual(value, _value),\n value: _value\n });\n }\n if (type === 'select-multiple') {\n return _extends({}, props, {\n value: value || []\n });\n }\n if (type === 'file') {\n return _extends({}, props, {\n value: value || undefined\n });\n }\n return props;\n};\n\nvar createFieldProps = function createFieldProps(_ref2, name, _ref) {\n var getIn = _ref2.getIn,\n toJS = _ref2.toJS,\n deepEqual = _ref2.deepEqual;\n\n var asyncError = _ref.asyncError,\n asyncValidating = _ref.asyncValidating,\n onBlur = _ref.onBlur,\n onChange = _ref.onChange,\n onDrop = _ref.onDrop,\n onDragStart = _ref.onDragStart,\n dirty = _ref.dirty,\n dispatch = _ref.dispatch,\n onFocus = _ref.onFocus,\n form = _ref.form,\n format = _ref.format,\n initial = _ref.initial,\n parse = _ref.parse,\n pristine = _ref.pristine,\n props = _ref.props,\n state = _ref.state,\n submitError = _ref.submitError,\n submitFailed = _ref.submitFailed,\n submitting = _ref.submitting,\n syncError = _ref.syncError,\n syncWarning = _ref.syncWarning,\n validate = _ref.validate,\n value = _ref.value,\n _value = _ref._value,\n warn = _ref.warn,\n custom = _objectWithoutProperties(_ref, ['asyncError', 'asyncValidating', 'onBlur', 'onChange', 'onDrop', 'onDragStart', 'dirty', 'dispatch', 'onFocus', 'form', 'format', 'initial', 'parse', 'pristine', 'props', 'state', 'submitError', 'submitFailed', 'submitting', 'syncError', 'syncWarning', 'validate', 'value', '_value', 'warn']);\n\n var error = syncError || asyncError || submitError;\n var warning = syncWarning;\n\n var formatFieldValue = function formatFieldValue(value, format) {\n if (format === null) {\n return value;\n }\n var defaultFormattedValue = value == null ? '' : value;\n return format ? format(value, name) : defaultFormattedValue;\n };\n\n var formattedFieldValue = formatFieldValue(value, format);\n\n return {\n input: processProps(custom.type, {\n name: name,\n onBlur: onBlur,\n onChange: onChange,\n onDragStart: onDragStart,\n onDrop: onDrop,\n onFocus: onFocus,\n value: formattedFieldValue\n }, _value, deepEqual),\n meta: _extends({}, toJS(state), {\n active: !!(state && getIn(state, 'active')),\n asyncValidating: asyncValidating,\n autofilled: !!(state && getIn(state, 'autofilled')),\n dirty: dirty,\n dispatch: dispatch,\n error: error,\n form: form,\n initial: initial,\n warning: warning,\n invalid: !!error,\n pristine: pristine,\n submitting: !!submitting,\n submitFailed: !!submitFailed,\n touched: !!(state && getIn(state, 'touched')),\n valid: !error,\n visited: !!(state && getIn(state, 'visited'))\n }),\n custom: _extends({}, custom, props)\n };\n};\n\nexport default createFieldProps;","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport { Component, createElement } from 'react';\nimport { polyfill } from 'react-lifecycles-compat';\nimport PropTypes from 'prop-types';\nimport invariant from 'invariant';\nimport createConnectedFields from './ConnectedFields';\nimport shallowCompare from './util/shallowCompare';\nimport plain from './structure/plain';\nimport prefixName from './util/prefixName';\n\n\nvar validateNameProp = function validateNameProp(prop) {\n if (!prop) {\n return new Error('No \"names\" prop was specified <Fields/>');\n }\n if (!Array.isArray(prop) && !prop._isFieldArray) {\n return new Error('Invalid prop \"names\" supplied to <Fields/>. Must be either an array of strings or the fields array generated by FieldArray.');\n }\n};\n\nvar createFields = function createFields(structure) {\n var ConnectedFields = createConnectedFields(structure);\n\n var Fields = function (_Component) {\n _inherits(Fields, _Component);\n\n function Fields(props, context) {\n _classCallCheck(this, Fields);\n\n var _this = _possibleConstructorReturn(this, (Fields.__proto__ || Object.getPrototypeOf(Fields)).call(this, props, context));\n\n if (!context._reduxForm) {\n throw new Error('Fields must be inside a component decorated with reduxForm()');\n }\n var error = validateNameProp(props.names);\n if (error) {\n throw error;\n }\n return _this;\n }\n\n _createClass(Fields, [{\n key: 'shouldComponentUpdate',\n value: function shouldComponentUpdate(nextProps) {\n return shallowCompare(this, nextProps);\n }\n }, {\n key: 'componentDidMount',\n value: function componentDidMount() {\n var context = this.context;\n var register = context._reduxForm.register;\n\n this.names.forEach(function (name) {\n return register(name, 'Field');\n });\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if (!plain.deepEqual(this.props.names, nextProps.names)) {\n var context = this.context;\n var _context$_reduxForm = context._reduxForm,\n register = _context$_reduxForm.register,\n unregister = _context$_reduxForm.unregister;\n // unregister old name\n\n this.props.names.forEach(function (name) {\n return unregister(prefixName(context, name));\n });\n // register new name\n nextProps.names.forEach(function (name) {\n return register(prefixName(context, name), 'Field');\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n var context = this.context;\n var unregister = context._reduxForm.unregister;\n\n this.props.names.forEach(function (name) {\n return unregister(prefixName(context, name));\n });\n }\n }, {\n key: 'getRenderedComponent',\n value: function getRenderedComponent() {\n invariant(this.props.withRef, 'If you want to access getRenderedComponent(), ' + 'you must specify a withRef prop to Fields');\n return this.refs.connected.getWrappedInstance().getRenderedComponent();\n }\n }, {\n key: 'render',\n value: function render() {\n var context = this.context;\n\n return createElement(ConnectedFields, _extends({}, this.props, {\n names: this.props.names.map(function (name) {\n return prefixName(context, name);\n }),\n _reduxForm: this.context._reduxForm,\n ref: 'connected'\n }));\n }\n }, {\n key: 'names',\n get: function get() {\n var context = this.context;\n\n return this.props.names.map(function (name) {\n return prefixName(context, name);\n });\n }\n }, {\n key: 'dirty',\n get: function get() {\n return this.refs.connected.getWrappedInstance().isDirty();\n }\n }, {\n key: 'pristine',\n get: function get() {\n return !this.dirty;\n }\n }, {\n key: 'values',\n get: function get() {\n return this.refs.connected && this.refs.connected.getWrappedInstance().getValues();\n }\n }]);\n\n return Fields;\n }(Component);\n\n Fields.propTypes = {\n names: function names(props, propName) {\n return validateNameProp(props[propName]);\n },\n component: PropTypes.oneOfType([PropTypes.func, PropTypes.string, PropTypes.node]).isRequired,\n format: PropTypes.func,\n parse: PropTypes.func,\n props: PropTypes.object,\n withRef: PropTypes.bool\n };\n Fields.contextTypes = {\n _reduxForm: PropTypes.object\n };\n\n polyfill(Fields);\n return Fields;\n};\n\nexport default createFields;","import invariant from 'invariant';\nimport plain from './structure/plain';\n\n\nvar createFormValueSelector = function createFormValueSelector(_ref) {\n var getIn = _ref.getIn;\n return function (form, getFormState) {\n invariant(form, 'Form value must be specified');\n var nonNullGetFormState = getFormState || function (state) {\n return getIn(state, 'form');\n };\n return function (state) {\n for (var _len = arguments.length, fields = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n fields[_key - 1] = arguments[_key];\n }\n\n invariant(fields.length, 'No fields specified');\n return fields.length === 1 ? // only selecting one field, so return its value\n getIn(nonNullGetFormState(state), form + '.values.' + fields[0]) : // selecting many fields, so return an object of field values\n fields.reduce(function (accumulator, field) {\n var value = getIn(nonNullGetFormState(state), form + '.values.' + field);\n return value === undefined ? accumulator : plain.setIn(accumulator, field, value);\n }, {});\n };\n };\n};\n\nexport default createFormValueSelector;","import _mapValues from 'lodash-es/mapValues';\nimport _isEqual from 'lodash-es/isEqual';\nimport _isEmpty from 'lodash-es/isEmpty';\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { connect } from 'react-redux';\nimport prefixName from './util/prefixName';\n\n\nvar createValues = function createValues(_ref) {\n var getIn = _ref.getIn;\n return function (firstArg) {\n for (var _len = arguments.length, rest = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n rest[_key - 1] = arguments[_key];\n }\n\n // create a class that reads current form name and creates a selector\n // return\n return function (Component) {\n var FormValues = function (_React$Component) {\n _inherits(FormValues, _React$Component);\n\n function FormValues(props, context) {\n _classCallCheck(this, FormValues);\n\n var _this = _possibleConstructorReturn(this, (FormValues.__proto__ || Object.getPrototypeOf(FormValues)).call(this, props, context));\n\n if (!context._reduxForm) {\n throw new Error('formValues() must be used inside a React tree decorated with reduxForm()');\n }\n _this.updateComponent(props);\n return _this;\n }\n\n _createClass(FormValues, [{\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(props) {\n if (typeof firstArg === 'function') {\n this.updateComponent(props);\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var Component = this.Component;\n\n return React.createElement(Component\n // so that the connected component updates props when sectionPrefix has changed\n , _extends({ sectionPrefix: this.context._reduxForm.sectionPrefix\n }, this.props));\n }\n }, {\n key: 'updateComponent',\n value: function updateComponent(props) {\n var valuesMap = void 0;\n var resolvedFirstArg = typeof firstArg === 'function' ? firstArg(props) : firstArg;\n if (typeof resolvedFirstArg === 'string') {\n valuesMap = rest.reduce(function (result, k) {\n result[k] = k;\n return result;\n }, _defineProperty({}, resolvedFirstArg, resolvedFirstArg));\n } else {\n valuesMap = resolvedFirstArg;\n }\n if (_isEmpty(valuesMap)) {\n // maybe that empty valuesMap is ok if firstArg is a function?\n // if this is the case, we probably should set this.Component = Component\n throw new Error('formValues(): You must specify values to get as formValues(name1, name2, ...) or formValues({propName1: propPath1, ...}) or formValues((props) => name) or formValues((props) => ({propName1: propPath1, ...}))');\n }\n if (_isEqual(valuesMap, this._valuesMap)) {\n // no change in valuesMap\n return;\n }\n this._valuesMap = valuesMap;\n this.setComponent();\n }\n }, {\n key: 'setComponent',\n value: function setComponent() {\n var _this2 = this;\n\n var formValuesSelector = function formValuesSelector(_, _ref2) {\n var sectionPrefix = _ref2.sectionPrefix;\n\n // Yes, we're only using connect() for listening to updates.\n // The second argument needs to be there so that connect calls\n // the selector when props change\n var getValues = _this2.context._reduxForm.getValues;\n\n var values = getValues();\n return _mapValues(_this2._valuesMap, function (path) {\n return getIn(values, prefixName(_this2.context, path));\n });\n };\n this.Component = connect(formValuesSelector, function () {\n return {};\n } // ignore dispatch\n )(function (_ref3) {\n var sectionPrefix = _ref3.sectionPrefix,\n otherProps = _objectWithoutProperties(_ref3, ['sectionPrefix']);\n\n return React.createElement(Component, otherProps);\n });\n }\n }]);\n\n return FormValues;\n }(React.Component);\n\n FormValues.contextTypes = {\n _reduxForm: PropTypes.object\n };\n return FormValues;\n };\n };\n};\n\nexport default createValues;","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nimport { ARRAY_INSERT, ARRAY_MOVE, ARRAY_POP, ARRAY_PUSH, ARRAY_REMOVE, ARRAY_REMOVE_ALL, ARRAY_SHIFT, ARRAY_SPLICE, ARRAY_SWAP, ARRAY_UNSHIFT, AUTOFILL, BLUR, CHANGE, CLEAR_ASYNC_ERROR, CLEAR_SUBMIT, CLEAR_SUBMIT_ERRORS, DESTROY, FOCUS, INITIALIZE, prefix, REGISTER_FIELD, RESET, RESET_SECTION, SET_SUBMIT_FAILED, SET_SUBMIT_SUCCEEDED, START_ASYNC_VALIDATION, START_SUBMIT, STOP_ASYNC_VALIDATION, STOP_SUBMIT, SUBMIT, TOUCH, UNREGISTER_FIELD, UNTOUCH, UPDATE_SYNC_ERRORS, CLEAR_FIELDS, UPDATE_SYNC_WARNINGS } from './actionTypes';\nimport createDeleteInWithCleanUp from './deleteInWithCleanUp';\nimport plain from './structure/plain';\n\n\nvar shouldDelete = function shouldDelete(_ref) {\n var getIn = _ref.getIn;\n return function (state, path) {\n var initialValuesPath = null;\n\n if (path.startsWith('values')) {\n initialValuesPath = path.replace('values', 'initial');\n }\n\n var initialValueComparison = initialValuesPath ? getIn(state, initialValuesPath) === undefined : true;\n\n return getIn(state, path) !== undefined && initialValueComparison;\n };\n};\n\nvar isReduxFormAction = function isReduxFormAction(action) {\n return action && action.type && action.type.length > prefix.length && action.type.substring(0, prefix.length) === prefix;\n};\n\nfunction createReducer(structure) {\n var _behaviors;\n\n var deepEqual = structure.deepEqual,\n empty = structure.empty,\n forEach = structure.forEach,\n getIn = structure.getIn,\n setIn = structure.setIn,\n deleteIn = structure.deleteIn,\n fromJS = structure.fromJS,\n keys = structure.keys,\n size = structure.size,\n some = structure.some,\n splice = structure.splice;\n\n var deleteInWithCleanUp = createDeleteInWithCleanUp(structure)(shouldDelete);\n var plainDeleteInWithCleanUp = createDeleteInWithCleanUp(plain)(shouldDelete);\n var doSplice = function doSplice(state, key, field, index, removeNum, value, force) {\n var existing = getIn(state, key + '.' + field);\n return existing || force ? setIn(state, key + '.' + field, splice(existing, index, removeNum, value)) : state;\n };\n var doPlainSplice = function doPlainSplice(state, key, field, index, removeNum, value, force) {\n var slice = getIn(state, key);\n var existing = plain.getIn(slice, field);\n return existing || force ? setIn(state, key, plain.setIn(slice, field, plain.splice(existing, index, removeNum, value))) : state;\n };\n var rootKeys = ['values', 'fields', 'submitErrors', 'asyncErrors'];\n var arraySplice = function arraySplice(state, field, index, removeNum, value) {\n var result = state;\n var nonValuesValue = value != null ? empty : undefined;\n result = doSplice(result, 'values', field, index, removeNum, value, true);\n result = doSplice(result, 'fields', field, index, removeNum, nonValuesValue);\n result = doPlainSplice(result, 'syncErrors', field, index, removeNum, undefined);\n result = doPlainSplice(result, 'syncWarnings', field, index, removeNum, undefined);\n result = doSplice(result, 'submitErrors', field, index, removeNum, undefined);\n result = doSplice(result, 'asyncErrors', field, index, removeNum, undefined);\n return result;\n };\n\n var behaviors = (_behaviors = {}, _defineProperty(_behaviors, ARRAY_INSERT, function (state, _ref2) {\n var _ref2$meta = _ref2.meta,\n field = _ref2$meta.field,\n index = _ref2$meta.index,\n payload = _ref2.payload;\n\n return arraySplice(state, field, index, 0, payload);\n }), _defineProperty(_behaviors, ARRAY_MOVE, function (state, _ref3) {\n var _ref3$meta = _ref3.meta,\n field = _ref3$meta.field,\n from = _ref3$meta.from,\n to = _ref3$meta.to;\n\n var array = getIn(state, 'values.' + field);\n var length = array ? size(array) : 0;\n var result = state;\n if (length) {\n rootKeys.forEach(function (key) {\n var path = key + '.' + field;\n if (getIn(result, path)) {\n var value = getIn(result, path + '[' + from + ']');\n result = setIn(result, path, splice(getIn(result, path), from, 1)); // remove\n result = setIn(result, path, splice(getIn(result, path), to, 0, value)); // insert\n }\n });\n }\n return result;\n }), _defineProperty(_behaviors, ARRAY_POP, function (state, _ref4) {\n var field = _ref4.meta.field;\n\n var array = getIn(state, 'values.' + field);\n var length = array ? size(array) : 0;\n return length ? arraySplice(state, field, length - 1, 1) : state;\n }), _defineProperty(_behaviors, ARRAY_PUSH, function (state, _ref5) {\n var field = _ref5.meta.field,\n payload = _ref5.payload;\n\n var array = getIn(state, 'values.' + field);\n var length = array ? size(array) : 0;\n return arraySplice(state, field, length, 0, payload);\n }), _defineProperty(_behaviors, ARRAY_REMOVE, function (state, _ref6) {\n var _ref6$meta = _ref6.meta,\n field = _ref6$meta.field,\n index = _ref6$meta.index;\n\n return arraySplice(state, field, index, 1);\n }), _defineProperty(_behaviors, ARRAY_REMOVE_ALL, function (state, _ref7) {\n var field = _ref7.meta.field;\n\n var array = getIn(state, 'values.' + field);\n var length = array ? size(array) : 0;\n return length ? arraySplice(state, field, 0, length) : state;\n }), _defineProperty(_behaviors, ARRAY_SHIFT, function (state, _ref8) {\n var field = _ref8.meta.field;\n\n return arraySplice(state, field, 0, 1);\n }), _defineProperty(_behaviors, ARRAY_SPLICE, function (state, _ref9) {\n var _ref9$meta = _ref9.meta,\n field = _ref9$meta.field,\n index = _ref9$meta.index,\n removeNum = _ref9$meta.removeNum,\n payload = _ref9.payload;\n\n return arraySplice(state, field, index, removeNum, payload);\n }), _defineProperty(_behaviors, ARRAY_SWAP, function (state, _ref10) {\n var _ref10$meta = _ref10.meta,\n field = _ref10$meta.field,\n indexA = _ref10$meta.indexA,\n indexB = _ref10$meta.indexB;\n\n var result = state;\n rootKeys.forEach(function (key) {\n var valueA = getIn(result, key + '.' + field + '[' + indexA + ']');\n var valueB = getIn(result, key + '.' + field + '[' + indexB + ']');\n if (valueA !== undefined || valueB !== undefined) {\n result = setIn(result, key + '.' + field + '[' + indexA + ']', valueB);\n result = setIn(result, key + '.' + field + '[' + indexB + ']', valueA);\n }\n });\n return result;\n }), _defineProperty(_behaviors, ARRAY_UNSHIFT, function (state, _ref11) {\n var field = _ref11.meta.field,\n payload = _ref11.payload;\n\n return arraySplice(state, field, 0, 0, payload);\n }), _defineProperty(_behaviors, AUTOFILL, function (state, _ref12) {\n var field = _ref12.meta.field,\n payload = _ref12.payload;\n\n var result = state;\n result = deleteInWithCleanUp(result, 'asyncErrors.' + field);\n result = deleteInWithCleanUp(result, 'submitErrors.' + field);\n result = setIn(result, 'fields.' + field + '.autofilled', true);\n result = setIn(result, 'values.' + field, payload);\n return result;\n }), _defineProperty(_behaviors, BLUR, function (state, _ref13) {\n var _ref13$meta = _ref13.meta,\n field = _ref13$meta.field,\n touch = _ref13$meta.touch,\n payload = _ref13.payload;\n\n var result = state;\n var initial = getIn(result, 'initial.' + field);\n if (initial === undefined && payload === '') {\n result = deleteInWithCleanUp(result, 'values.' + field);\n } else if (payload !== undefined) {\n result = setIn(result, 'values.' + field, payload);\n }\n if (field === getIn(result, 'active')) {\n result = deleteIn(result, 'active');\n }\n result = deleteIn(result, 'fields.' + field + '.active');\n if (touch) {\n result = setIn(result, 'fields.' + field + '.touched', true);\n result = setIn(result, 'anyTouched', true);\n }\n return result;\n }), _defineProperty(_behaviors, CHANGE, function (state, _ref14) {\n var _ref14$meta = _ref14.meta,\n field = _ref14$meta.field,\n touch = _ref14$meta.touch,\n persistentSubmitErrors = _ref14$meta.persistentSubmitErrors,\n payload = _ref14.payload;\n\n var result = state;\n var initial = getIn(result, 'initial.' + field);\n if (initial === undefined && payload === '') {\n result = deleteInWithCleanUp(result, 'values.' + field);\n } else if (payload !== undefined) {\n result = setIn(result, 'values.' + field, payload);\n }\n result = deleteInWithCleanUp(result, 'asyncErrors.' + field);\n if (!persistentSubmitErrors) {\n result = deleteInWithCleanUp(result, 'submitErrors.' + field);\n }\n result = deleteInWithCleanUp(result, 'fields.' + field + '.autofilled');\n if (touch) {\n result = setIn(result, 'fields.' + field + '.touched', true);\n result = setIn(result, 'anyTouched', true);\n }\n return result;\n }), _defineProperty(_behaviors, CLEAR_SUBMIT, function (state) {\n return deleteIn(state, 'triggerSubmit');\n }), _defineProperty(_behaviors, CLEAR_SUBMIT_ERRORS, function (state) {\n var result = state;\n result = deleteInWithCleanUp(result, 'submitErrors');\n result = deleteIn(result, 'error');\n return result;\n }), _defineProperty(_behaviors, CLEAR_ASYNC_ERROR, function (state, _ref15) {\n var field = _ref15.meta.field;\n\n return deleteIn(state, 'asyncErrors.' + field);\n }), _defineProperty(_behaviors, CLEAR_FIELDS, function (state, _ref16) {\n var _ref16$meta = _ref16.meta,\n keepTouched = _ref16$meta.keepTouched,\n persistentSubmitErrors = _ref16$meta.persistentSubmitErrors,\n fields = _ref16$meta.fields;\n\n var result = state;\n fields.forEach(function (field) {\n result = deleteInWithCleanUp(result, 'values.' + field);\n result = deleteInWithCleanUp(result, 'asyncErrors.' + field);\n if (!persistentSubmitErrors) {\n result = deleteInWithCleanUp(result, 'submitErrors.' + field);\n }\n result = deleteInWithCleanUp(result, 'fields.' + field + '.autofilled');\n if (!keepTouched) {\n result = deleteIn(result, 'fields.' + field + '.touched');\n }\n });\n var anyTouched = some(keys(getIn(result, 'registeredFields')), function (key) {\n return getIn(result, 'fields.' + key + '.touched');\n });\n result = anyTouched ? setIn(result, 'anyTouched', true) : deleteIn(result, 'anyTouched');\n return result;\n }), _defineProperty(_behaviors, FOCUS, function (state, _ref17) {\n var field = _ref17.meta.field;\n\n var result = state;\n var previouslyActive = getIn(state, 'active');\n result = deleteIn(result, 'fields.' + previouslyActive + '.active');\n result = setIn(result, 'fields.' + field + '.visited', true);\n result = setIn(result, 'fields.' + field + '.active', true);\n result = setIn(result, 'active', field);\n return result;\n }), _defineProperty(_behaviors, INITIALIZE, function (state, _ref18) {\n var payload = _ref18.payload,\n _ref18$meta = _ref18.meta,\n keepDirty = _ref18$meta.keepDirty,\n keepSubmitSucceeded = _ref18$meta.keepSubmitSucceeded,\n updateUnregisteredFields = _ref18$meta.updateUnregisteredFields,\n keepValues = _ref18$meta.keepValues;\n\n var mapData = fromJS(payload);\n var result = empty; // clean all field state\n\n // persist old warnings, they will get recalculated if the new form values are different from the old values\n var warning = getIn(state, 'warning');\n if (warning) {\n result = setIn(result, 'warning', warning);\n }\n var syncWarnings = getIn(state, 'syncWarnings');\n if (syncWarnings) {\n result = setIn(result, 'syncWarnings', syncWarnings);\n }\n\n // persist old errors, they will get recalculated if the new form values are different from the old values\n var error = getIn(state, 'error');\n if (error) {\n result = setIn(result, 'error', error);\n }\n var syncErrors = getIn(state, 'syncErrors');\n if (syncErrors) {\n result = setIn(result, 'syncErrors', syncErrors);\n }\n\n var registeredFields = getIn(state, 'registeredFields');\n if (registeredFields) {\n result = setIn(result, 'registeredFields', registeredFields);\n }\n\n var previousValues = getIn(state, 'values');\n var previousInitialValues = getIn(state, 'initial');\n\n var newInitialValues = mapData;\n var newValues = previousValues;\n\n if (keepDirty && registeredFields) {\n if (!deepEqual(newInitialValues, previousInitialValues)) {\n //\n // Keep the value of dirty fields while updating the value of\n // pristine fields. This way, apps can reinitialize forms while\n // avoiding stomping on user edits.\n //\n // Note 1: The initialize action replaces all initial values\n // regardless of keepDirty.\n //\n // Note 2: When a field is dirty, keepDirty is enabled, and the field\n // value is the same as the new initial value for the field, the\n // initialize action causes the field to become pristine. That effect\n // is what we want.\n //\n var overwritePristineValue = function overwritePristineValue(name) {\n var previousInitialValue = getIn(previousInitialValues, name);\n var previousValue = getIn(previousValues, name);\n\n if (deepEqual(previousValue, previousInitialValue)) {\n // Overwrite the old pristine value with the new pristine value\n var newInitialValue = getIn(newInitialValues, name);\n\n // This check prevents any 'setIn' call that would create useless\n // nested objects, since the path to the new field value would\n // evaluate to the same (especially for undefined values)\n if (getIn(newValues, name) !== newInitialValue) {\n newValues = setIn(newValues, name, newInitialValue);\n }\n }\n };\n\n if (!updateUnregisteredFields) {\n forEach(keys(registeredFields), function (name) {\n return overwritePristineValue(name);\n });\n }\n\n forEach(keys(newInitialValues), function (name) {\n var previousInitialValue = getIn(previousInitialValues, name);\n if (typeof previousInitialValue === 'undefined') {\n // Add new values at the root level.\n var newInitialValue = getIn(newInitialValues, name);\n newValues = setIn(newValues, name, newInitialValue);\n }\n\n if (updateUnregisteredFields) {\n overwritePristineValue(name);\n }\n });\n }\n } else {\n newValues = newInitialValues;\n }\n\n if (keepValues) {\n forEach(keys(previousValues), function (name) {\n var previousValue = getIn(previousValues, name);\n\n newValues = setIn(newValues, name, previousValue);\n });\n\n forEach(keys(previousInitialValues), function (name) {\n var previousInitialValue = getIn(previousInitialValues, name);\n\n newInitialValues = setIn(newInitialValues, name, previousInitialValue);\n });\n }\n\n if (keepSubmitSucceeded && getIn(state, 'submitSucceeded')) {\n result = setIn(result, 'submitSucceeded', true);\n }\n result = setIn(result, 'values', newValues);\n result = setIn(result, 'initial', newInitialValues);\n return result;\n }), _defineProperty(_behaviors, REGISTER_FIELD, function (state, _ref19) {\n var _ref19$payload = _ref19.payload,\n name = _ref19$payload.name,\n type = _ref19$payload.type;\n\n var key = 'registeredFields[\\'' + name + '\\']';\n var field = getIn(state, key);\n if (field) {\n var count = getIn(field, 'count') + 1;\n field = setIn(field, 'count', count);\n } else {\n field = fromJS({ name: name, type: type, count: 1 });\n }\n return setIn(state, key, field);\n }), _defineProperty(_behaviors, RESET, function (state) {\n var result = empty;\n var registeredFields = getIn(state, 'registeredFields');\n if (registeredFields) {\n result = setIn(result, 'registeredFields', registeredFields);\n }\n var values = getIn(state, 'initial');\n if (values) {\n result = setIn(result, 'values', values);\n result = setIn(result, 'initial', values);\n }\n return result;\n }), _defineProperty(_behaviors, RESET_SECTION, function (state, _ref20) {\n var sections = _ref20.meta.sections;\n\n var result = state;\n\n sections.forEach(function (section) {\n result = deleteInWithCleanUp(result, 'asyncErrors.' + section);\n result = deleteInWithCleanUp(result, 'submitErrors.' + section);\n result = deleteInWithCleanUp(result, 'fields.' + section);\n\n var values = getIn(state, 'initial.' + section);\n result = values ? setIn(result, 'values.' + section, values) : deleteInWithCleanUp(result, 'values.' + section);\n });\n\n var anyTouched = some(keys(getIn(result, 'registeredFields')), function (key) {\n return getIn(result, 'fields.' + key + '.touched');\n });\n result = anyTouched ? setIn(result, 'anyTouched', true) : deleteIn(result, 'anyTouched');\n\n return result;\n }), _defineProperty(_behaviors, SUBMIT, function (state) {\n return setIn(state, 'triggerSubmit', true);\n }), _defineProperty(_behaviors, START_ASYNC_VALIDATION, function (state, _ref21) {\n var field = _ref21.meta.field;\n\n return setIn(state, 'asyncValidating', field || true);\n }), _defineProperty(_behaviors, START_SUBMIT, function (state) {\n return setIn(state, 'submitting', true);\n }), _defineProperty(_behaviors, STOP_ASYNC_VALIDATION, function (state, _ref22) {\n var payload = _ref22.payload;\n\n var result = state;\n result = deleteIn(result, 'asyncValidating');\n if (payload && Object.keys(payload).length) {\n var _error = payload._error,\n fieldErrors = _objectWithoutProperties(payload, ['_error']);\n\n if (_error) {\n result = setIn(result, 'error', _error);\n }\n if (Object.keys(fieldErrors).length) {\n result = setIn(result, 'asyncErrors', fromJS(fieldErrors));\n }\n } else {\n result = deleteIn(result, 'error');\n result = deleteIn(result, 'asyncErrors');\n }\n return result;\n }), _defineProperty(_behaviors, STOP_SUBMIT, function (state, _ref23) {\n var payload = _ref23.payload;\n\n var result = state;\n result = deleteIn(result, 'submitting');\n result = deleteIn(result, 'submitFailed');\n result = deleteIn(result, 'submitSucceeded');\n if (payload && Object.keys(payload).length) {\n var _error = payload._error,\n fieldErrors = _objectWithoutProperties(payload, ['_error']);\n\n if (_error) {\n result = setIn(result, 'error', _error);\n } else {\n result = deleteIn(result, 'error');\n }\n if (Object.keys(fieldErrors).length) {\n result = setIn(result, 'submitErrors', fromJS(fieldErrors));\n } else {\n result = deleteIn(result, 'submitErrors');\n }\n result = setIn(result, 'submitFailed', true);\n } else {\n result = deleteIn(result, 'error');\n result = deleteIn(result, 'submitErrors');\n }\n return result;\n }), _defineProperty(_behaviors, SET_SUBMIT_FAILED, function (state, _ref24) {\n var fields = _ref24.meta.fields;\n\n var result = state;\n result = setIn(result, 'submitFailed', true);\n result = deleteIn(result, 'submitSucceeded');\n result = deleteIn(result, 'submitting');\n fields.forEach(function (field) {\n return result = setIn(result, 'fields.' + field + '.touched', true);\n });\n if (fields.length) {\n result = setIn(result, 'anyTouched', true);\n }\n return result;\n }), _defineProperty(_behaviors, SET_SUBMIT_SUCCEEDED, function (state) {\n var result = state;\n result = deleteIn(result, 'submitFailed');\n result = setIn(result, 'submitSucceeded', true);\n return result;\n }), _defineProperty(_behaviors, TOUCH, function (state, _ref25) {\n var fields = _ref25.meta.fields;\n\n var result = state;\n fields.forEach(function (field) {\n return result = setIn(result, 'fields.' + field + '.touched', true);\n });\n result = setIn(result, 'anyTouched', true);\n return result;\n }), _defineProperty(_behaviors, UNREGISTER_FIELD, function (state, _ref26) {\n var _ref26$payload = _ref26.payload,\n name = _ref26$payload.name,\n destroyOnUnmount = _ref26$payload.destroyOnUnmount;\n\n var result = state;\n var key = 'registeredFields[\\'' + name + '\\']';\n var field = getIn(result, key);\n if (!field) {\n return result;\n }\n\n var count = getIn(field, 'count') - 1;\n if (count <= 0 && destroyOnUnmount) {\n // Note: Cannot use deleteWithCleanUp here because of the flat nature of registeredFields\n result = deleteIn(result, key);\n if (deepEqual(getIn(result, 'registeredFields'), empty)) {\n result = deleteIn(result, 'registeredFields');\n }\n var syncErrors = getIn(result, 'syncErrors');\n if (syncErrors) {\n syncErrors = plainDeleteInWithCleanUp(syncErrors, name);\n if (plain.deepEqual(syncErrors, plain.empty)) {\n result = deleteIn(result, 'syncErrors');\n } else {\n result = setIn(result, 'syncErrors', syncErrors);\n }\n }\n var syncWarnings = getIn(result, 'syncWarnings');\n if (syncWarnings) {\n syncWarnings = plainDeleteInWithCleanUp(syncWarnings, name);\n if (plain.deepEqual(syncWarnings, plain.empty)) {\n result = deleteIn(result, 'syncWarnings');\n } else {\n result = setIn(result, 'syncWarnings', syncWarnings);\n }\n }\n result = deleteInWithCleanUp(result, 'submitErrors.' + name);\n result = deleteInWithCleanUp(result, 'asyncErrors.' + name);\n } else {\n field = setIn(field, 'count', count);\n result = setIn(result, key, field);\n }\n return result;\n }), _defineProperty(_behaviors, UNTOUCH, function (state, _ref27) {\n var fields = _ref27.meta.fields;\n\n var result = state;\n fields.forEach(function (field) {\n return result = deleteIn(result, 'fields.' + field + '.touched');\n });\n var anyTouched = some(keys(getIn(result, 'registeredFields')), function (key) {\n return getIn(result, 'fields.' + key + '.touched');\n });\n result = anyTouched ? setIn(result, 'anyTouched', true) : deleteIn(result, 'anyTouched');\n return result;\n }), _defineProperty(_behaviors, UPDATE_SYNC_ERRORS, function (state, _ref28) {\n var _ref28$payload = _ref28.payload,\n syncErrors = _ref28$payload.syncErrors,\n error = _ref28$payload.error;\n\n var result = state;\n if (error) {\n result = setIn(result, 'error', error);\n result = setIn(result, 'syncError', true);\n } else {\n result = deleteIn(result, 'error');\n result = deleteIn(result, 'syncError');\n }\n if (Object.keys(syncErrors).length) {\n result = setIn(result, 'syncErrors', syncErrors);\n } else {\n result = deleteIn(result, 'syncErrors');\n }\n return result;\n }), _defineProperty(_behaviors, UPDATE_SYNC_WARNINGS, function (state, _ref29) {\n var _ref29$payload = _ref29.payload,\n syncWarnings = _ref29$payload.syncWarnings,\n warning = _ref29$payload.warning;\n\n var result = state;\n if (warning) {\n result = setIn(result, 'warning', warning);\n } else {\n result = deleteIn(result, 'warning');\n }\n if (Object.keys(syncWarnings).length) {\n result = setIn(result, 'syncWarnings', syncWarnings);\n } else {\n result = deleteIn(result, 'syncWarnings');\n }\n return result;\n }), _behaviors);\n\n var reducer = function reducer() {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : empty;\n var action = arguments[1];\n\n var behavior = behaviors[action.type];\n return behavior ? behavior(state, action) : state;\n };\n\n var byForm = function byForm(reducer) {\n return function () {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : empty;\n var action = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : { type: 'NONE' };\n\n var form = action && action.meta && action.meta.form;\n if (!form || !isReduxFormAction(action)) {\n return state;\n }\n if (action.type === DESTROY && action.meta && action.meta.form) {\n return action.meta.form.reduce(function (result, form) {\n return deleteInWithCleanUp(result, form);\n }, state);\n }\n var formState = getIn(state, form);\n var result = reducer(formState, action);\n return result === formState ? state : setIn(state, form, result);\n };\n };\n\n /**\n * Adds additional functionality to the reducer\n */\n function decorate(target) {\n target.plugin = function (reducers) {\n var _this = this;\n\n // use 'function' keyword to enable 'this'\n return decorate(function () {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : empty;\n var action = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : { type: 'NONE' };\n\n var callPlugin = function callPlugin(processed, key) {\n var previousState = getIn(processed, key);\n var nextState = reducers[key](previousState, action, getIn(state, key));\n return nextState !== previousState ? setIn(processed, key, nextState) : processed;\n };\n\n var processed = _this(state, action); // run through redux-form reducer\n var form = action && action.meta && action.meta.form;\n\n if (form) {\n // this is an action aimed at forms, so only give it to the specified form's plugin\n return reducers[form] ? callPlugin(processed, form) : processed;\n } else {\n // this is not a form-specific action, so send it to all the plugins\n return Object.keys(reducers).reduce(callPlugin, processed);\n }\n });\n };\n\n return target;\n }\n\n return decorate(byForm(reducer));\n}\n\nexport default createReducer;","import _merge from 'lodash-es/merge';\nimport _mapValues from 'lodash-es/mapValues';\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nimport * as React from 'react';\nimport { polyfill } from 'react-lifecycles-compat';\nimport hoistStatics from 'hoist-non-react-statics';\nimport invariant from 'invariant';\nimport isPromise from 'is-promise';\n\nimport PropTypes from 'prop-types';\nimport { Component, createElement } from 'react';\nimport { connect } from 'react-redux';\nimport { bindActionCreators } from 'redux';\nimport importedActions from './actions';\nimport asyncValidation from './asyncValidation';\nimport defaultShouldAsyncValidate from './defaultShouldAsyncValidate';\nimport defaultShouldValidate from './defaultShouldValidate';\nimport defaultShouldError from './defaultShouldError';\nimport defaultShouldWarn from './defaultShouldWarn';\nimport silenceEvent from './events/silenceEvent';\nimport silenceEvents from './events/silenceEvents';\nimport generateValidator from './generateValidator';\nimport handleSubmit from './handleSubmit';\nimport createIsValid from './selectors/isValid';\nimport plain from './structure/plain';\nimport getDisplayName from './util/getDisplayName';\nimport isHotReloading from './util/isHotReloading';\n\n\nvar isClassComponent = function isClassComponent(Component) {\n return Boolean(Component && Component.prototype && _typeof(Component.prototype.isReactComponent) === 'object');\n};\n\n// extract field-specific actions\n\nvar arrayInsert = importedActions.arrayInsert,\n arrayMove = importedActions.arrayMove,\n arrayPop = importedActions.arrayPop,\n arrayPush = importedActions.arrayPush,\n arrayRemove = importedActions.arrayRemove,\n arrayRemoveAll = importedActions.arrayRemoveAll,\n arrayShift = importedActions.arrayShift,\n arraySplice = importedActions.arraySplice,\n arraySwap = importedActions.arraySwap,\n arrayUnshift = importedActions.arrayUnshift,\n blur = importedActions.blur,\n change = importedActions.change,\n focus = importedActions.focus,\n formActions = _objectWithoutProperties(importedActions, ['arrayInsert', 'arrayMove', 'arrayPop', 'arrayPush', 'arrayRemove', 'arrayRemoveAll', 'arrayShift', 'arraySplice', 'arraySwap', 'arrayUnshift', 'blur', 'change', 'focus']);\n\nvar arrayActions = {\n arrayInsert: arrayInsert,\n arrayMove: arrayMove,\n arrayPop: arrayPop,\n arrayPush: arrayPush,\n arrayRemove: arrayRemove,\n arrayRemoveAll: arrayRemoveAll,\n arrayShift: arrayShift,\n arraySplice: arraySplice,\n arraySwap: arraySwap,\n arrayUnshift: arrayUnshift\n};\n\nvar propsToNotUpdateFor = [].concat(_toConsumableArray(Object.keys(importedActions)), ['array', 'asyncErrors', 'initialValues', 'syncErrors', 'syncWarnings', 'values', 'registeredFields']);\n\nvar checkSubmit = function checkSubmit(submit) {\n if (!submit || typeof submit !== 'function') {\n throw new Error('You must either pass handleSubmit() an onSubmit function or pass onSubmit as a prop');\n }\n return submit;\n};\n\n/**\n * The decorator that is the main API to redux-form\n */\nvar createReduxForm = function createReduxForm(structure) {\n var deepEqual = structure.deepEqual,\n empty = structure.empty,\n getIn = structure.getIn,\n setIn = structure.setIn,\n keys = structure.keys,\n fromJS = structure.fromJS;\n\n var isValid = createIsValid(structure);\n return function (initialConfig) {\n var config = _extends({\n touchOnBlur: true,\n touchOnChange: false,\n persistentSubmitErrors: false,\n destroyOnUnmount: true,\n shouldAsyncValidate: defaultShouldAsyncValidate,\n shouldValidate: defaultShouldValidate,\n shouldError: defaultShouldError,\n shouldWarn: defaultShouldWarn,\n enableReinitialize: false,\n keepDirtyOnReinitialize: false,\n updateUnregisteredFields: false,\n getFormState: function getFormState(state) {\n return getIn(state, 'form');\n },\n pure: true,\n forceUnregisterOnUnmount: false\n }, initialConfig);\n\n return function (WrappedComponent) {\n var Form = function (_Component) {\n _inherits(Form, _Component);\n\n function Form() {\n var _ref;\n\n var _temp, _this, _ret;\n\n _classCallCheck(this, Form);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Form.__proto__ || Object.getPrototypeOf(Form)).call.apply(_ref, [this].concat(args))), _this), _this.destroyed = false, _this.fieldCounts = {}, _this.fieldValidators = {}, _this.lastFieldValidatorKeys = [], _this.fieldWarners = {}, _this.lastFieldWarnerKeys = [], _this.innerOnSubmit = undefined, _this.submitPromise = undefined, _this.getValues = function () {\n return _this.props.values;\n }, _this.isValid = function () {\n return _this.props.valid;\n }, _this.isPristine = function () {\n return _this.props.pristine;\n }, _this.register = function (name, type, getValidator, getWarner) {\n var lastCount = _this.fieldCounts[name];\n var nextCount = (lastCount || 0) + 1;\n _this.fieldCounts[name] = nextCount;\n _this.props.registerField(name, type);\n if (getValidator) {\n _this.fieldValidators[name] = getValidator;\n }\n if (getWarner) {\n _this.fieldWarners[name] = getWarner;\n }\n }, _this.unregister = function (name) {\n var lastCount = _this.fieldCounts[name];\n if (lastCount === 1) delete _this.fieldCounts[name];else if (lastCount != null) _this.fieldCounts[name] = lastCount - 1;\n\n if (!_this.destroyed) {\n var _this$props = _this.props,\n _destroyOnUnmount = _this$props.destroyOnUnmount,\n _forceUnregisterOnUnmount = _this$props.forceUnregisterOnUnmount,\n _unregisterField = _this$props.unregisterField;\n\n if (_destroyOnUnmount || _forceUnregisterOnUnmount) {\n _unregisterField(name, _destroyOnUnmount);\n if (!_this.fieldCounts[name]) {\n delete _this.fieldValidators[name];\n delete _this.fieldWarners[name];\n _this.lastFieldValidatorKeys = _this.lastFieldValidatorKeys.filter(function (key) {\n return key !== name;\n });\n }\n } else {\n _unregisterField(name, false);\n }\n }\n }, _this.getFieldList = function (options) {\n var registeredFields = _this.props.registeredFields;\n var list = [];\n if (!registeredFields) {\n return list;\n }\n var keySeq = keys(registeredFields);\n if (options && options.excludeFieldArray) {\n keySeq = keySeq.filter(function (name) {\n return getIn(registeredFields, '[\\'' + name + '\\'].type') !== 'FieldArray';\n });\n }\n return fromJS(keySeq.reduce(function (acc, key) {\n acc.push(key);\n return acc;\n }, list));\n }, _this.getValidators = function () {\n var validators = {};\n Object.keys(_this.fieldValidators).forEach(function (name) {\n var validator = _this.fieldValidators[name]();\n if (validator) {\n validators[name] = validator;\n }\n });\n return validators;\n }, _this.generateValidator = function () {\n var validators = _this.getValidators();\n return Object.keys(validators).length ? generateValidator(validators, structure) : undefined;\n }, _this.getWarners = function () {\n var warners = {};\n Object.keys(_this.fieldWarners).forEach(function (name) {\n var warner = _this.fieldWarners[name]();\n if (warner) {\n warners[name] = warner;\n }\n });\n return warners;\n }, _this.generateWarner = function () {\n var warners = _this.getWarners();\n return Object.keys(warners).length ? generateValidator(warners, structure) : undefined;\n }, _this.asyncValidate = function (name, value, trigger) {\n var _this$props2 = _this.props,\n asyncBlurFields = _this$props2.asyncBlurFields,\n asyncChangeFields = _this$props2.asyncChangeFields,\n asyncErrors = _this$props2.asyncErrors,\n asyncValidate = _this$props2.asyncValidate,\n dispatch = _this$props2.dispatch,\n initialized = _this$props2.initialized,\n pristine = _this$props2.pristine,\n shouldAsyncValidate = _this$props2.shouldAsyncValidate,\n startAsyncValidation = _this$props2.startAsyncValidation,\n stopAsyncValidation = _this$props2.stopAsyncValidation,\n syncErrors = _this$props2.syncErrors,\n values = _this$props2.values;\n\n var submitting = !name;\n\n var fieldNeedsValidation = function fieldNeedsValidation() {\n var fieldNeedsValidationForBlur = asyncBlurFields && name && ~asyncBlurFields.indexOf(name.replace(/\\[[0-9]+\\]/g, '[]'));\n var fieldNeedsValidationForChange = asyncChangeFields && name && ~asyncChangeFields.indexOf(name.replace(/\\[[0-9]+\\]/g, '[]'));\n var asyncValidateByDefault = !(asyncBlurFields || asyncChangeFields);\n\n return submitting || asyncValidateByDefault || (trigger === 'blur' ? fieldNeedsValidationForBlur : fieldNeedsValidationForChange);\n };\n\n if (asyncValidate) {\n var valuesToValidate = submitting ? values : setIn(values, name, value);\n var syncValidationPasses = submitting || !getIn(syncErrors, name);\n if (fieldNeedsValidation() && shouldAsyncValidate({\n asyncErrors: asyncErrors,\n initialized: initialized,\n trigger: submitting ? 'submit' : trigger,\n blurredField: name,\n pristine: pristine,\n syncValidationPasses: syncValidationPasses\n })) {\n return asyncValidation(function () {\n return asyncValidate(valuesToValidate, dispatch, _this.props, name);\n }, startAsyncValidation, stopAsyncValidation, name);\n }\n }\n }, _this.submitCompleted = function (result) {\n delete _this.submitPromise;\n return result;\n }, _this.submitFailed = function (error) {\n delete _this.submitPromise;\n throw error;\n }, _this.listenToSubmit = function (promise) {\n if (!isPromise(promise)) {\n return promise;\n }\n _this.submitPromise = promise;\n return promise.then(_this.submitCompleted, _this.submitFailed);\n }, _this.submit = function (submitOrEvent) {\n var _this$props3 = _this.props,\n onSubmit = _this$props3.onSubmit,\n blur = _this$props3.blur,\n change = _this$props3.change,\n dispatch = _this$props3.dispatch;\n\n\n if (!submitOrEvent || silenceEvent(submitOrEvent)) {\n // submitOrEvent is an event: fire submit if not already submitting\n if (!_this.submitPromise) {\n // avoid recursive stack trace if use Form with onSubmit as handleSubmit\n if (_this.innerOnSubmit && _this.innerOnSubmit !== _this.submit) {\n // will call \"submitOrEvent is the submit function\" block below\n return _this.innerOnSubmit();\n } else {\n return _this.listenToSubmit(handleSubmit(checkSubmit(onSubmit), _extends({}, _this.props, bindActionCreators({ blur: blur, change: change }, dispatch)), _this.props.validExceptSubmit, _this.asyncValidate, _this.getFieldList({ excludeFieldArray: true })));\n }\n }\n } else {\n // submitOrEvent is the submit function: return deferred submit thunk\n return silenceEvents(function () {\n return !_this.submitPromise && _this.listenToSubmit(handleSubmit(checkSubmit(submitOrEvent), _extends({}, _this.props, bindActionCreators({ blur: blur, change: change }, dispatch)), _this.props.validExceptSubmit, _this.asyncValidate, _this.getFieldList({ excludeFieldArray: true })));\n });\n }\n }, _this.reset = function () {\n return _this.props.reset();\n }, _this.saveRef = function (ref) {\n _this.wrapped = ref;\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n _createClass(Form, [{\n key: 'getChildContext',\n value: function getChildContext() {\n var _this2 = this;\n\n return {\n _reduxForm: _extends({}, this.props, {\n getFormState: function getFormState(state) {\n return getIn(_this2.props.getFormState(state), _this2.props.form);\n },\n asyncValidate: this.asyncValidate,\n getValues: this.getValues,\n sectionPrefix: undefined,\n register: this.register,\n unregister: this.unregister,\n registerInnerOnSubmit: function registerInnerOnSubmit(innerOnSubmit) {\n return _this2.innerOnSubmit = innerOnSubmit;\n }\n })\n };\n }\n }, {\n key: 'initIfNeeded',\n value: function initIfNeeded(nextProps) {\n var enableReinitialize = this.props.enableReinitialize;\n\n if (nextProps) {\n if ((enableReinitialize || !nextProps.initialized) && !deepEqual(this.props.initialValues, nextProps.initialValues)) {\n var _keepDirty = nextProps.initialized && this.props.keepDirtyOnReinitialize;\n this.props.initialize(nextProps.initialValues, _keepDirty, {\n keepValues: nextProps.keepValues,\n lastInitialValues: this.props.initialValues,\n updateUnregisteredFields: nextProps.updateUnregisteredFields\n });\n }\n } else if (this.props.initialValues && (!this.props.initialized || enableReinitialize)) {\n this.props.initialize(this.props.initialValues, this.props.keepDirtyOnReinitialize, {\n keepValues: this.props.keepValues,\n updateUnregisteredFields: this.props.updateUnregisteredFields\n });\n }\n }\n }, {\n key: 'updateSyncErrorsIfNeeded',\n value: function updateSyncErrorsIfNeeded(nextSyncErrors, nextError, lastSyncErrors) {\n var _props = this.props,\n error = _props.error,\n updateSyncErrors = _props.updateSyncErrors;\n\n var noErrors = (!lastSyncErrors || !Object.keys(lastSyncErrors).length) && !error;\n var nextNoErrors = (!nextSyncErrors || !Object.keys(nextSyncErrors).length) && !nextError;\n if (!(noErrors && nextNoErrors) && (!plain.deepEqual(lastSyncErrors, nextSyncErrors) || !plain.deepEqual(error, nextError))) {\n updateSyncErrors(nextSyncErrors, nextError);\n }\n }\n }, {\n key: 'clearSubmitPromiseIfNeeded',\n value: function clearSubmitPromiseIfNeeded(nextProps) {\n var submitting = this.props.submitting;\n\n if (this.submitPromise && submitting && !nextProps.submitting) {\n delete this.submitPromise;\n }\n }\n }, {\n key: 'submitIfNeeded',\n value: function submitIfNeeded(nextProps) {\n var _props2 = this.props,\n clearSubmit = _props2.clearSubmit,\n triggerSubmit = _props2.triggerSubmit;\n\n if (!triggerSubmit && nextProps.triggerSubmit) {\n clearSubmit();\n this.submit();\n }\n }\n }, {\n key: 'shouldErrorFunction',\n value: function shouldErrorFunction() {\n var _props3 = this.props,\n shouldValidate = _props3.shouldValidate,\n shouldError = _props3.shouldError;\n\n var shouldValidateOverridden = shouldValidate !== defaultShouldValidate;\n var shouldErrorOverridden = shouldError !== defaultShouldError;\n\n return shouldValidateOverridden && !shouldErrorOverridden ? shouldValidate : shouldError;\n }\n }, {\n key: 'validateIfNeeded',\n value: function validateIfNeeded(nextProps) {\n var _props4 = this.props,\n validate = _props4.validate,\n values = _props4.values;\n\n var shouldError = this.shouldErrorFunction();\n var fieldLevelValidate = this.generateValidator();\n if (validate || fieldLevelValidate) {\n var initialRender = nextProps === undefined;\n var fieldValidatorKeys = Object.keys(this.getValidators());\n var validateParams = {\n values: values,\n nextProps: nextProps,\n props: this.props,\n initialRender: initialRender,\n lastFieldValidatorKeys: this.lastFieldValidatorKeys,\n fieldValidatorKeys: fieldValidatorKeys,\n structure: structure\n };\n\n if (shouldError(validateParams)) {\n var propsToValidate = initialRender || !nextProps ? this.props : nextProps;\n\n var _merge2 = _merge(validate ? validate(propsToValidate.values, propsToValidate) || {} : {}, fieldLevelValidate ? fieldLevelValidate(propsToValidate.values, propsToValidate) || {} : {}),\n _error = _merge2._error,\n nextSyncErrors = _objectWithoutProperties(_merge2, ['_error']);\n\n this.lastFieldValidatorKeys = fieldValidatorKeys;\n this.updateSyncErrorsIfNeeded(nextSyncErrors, _error, propsToValidate.syncErrors);\n }\n } else {\n this.lastFieldValidatorKeys = [];\n }\n }\n }, {\n key: 'updateSyncWarningsIfNeeded',\n value: function updateSyncWarningsIfNeeded(nextSyncWarnings, nextWarning, lastSyncWarnings) {\n var _props5 = this.props,\n warning = _props5.warning,\n syncWarnings = _props5.syncWarnings,\n updateSyncWarnings = _props5.updateSyncWarnings;\n\n var noWarnings = (!syncWarnings || !Object.keys(syncWarnings).length) && !warning;\n var nextNoWarnings = (!nextSyncWarnings || !Object.keys(nextSyncWarnings).length) && !nextWarning;\n if (!(noWarnings && nextNoWarnings) && (!plain.deepEqual(lastSyncWarnings, nextSyncWarnings) || !plain.deepEqual(warning, nextWarning))) {\n updateSyncWarnings(nextSyncWarnings, nextWarning);\n }\n }\n }, {\n key: 'shouldWarnFunction',\n value: function shouldWarnFunction() {\n var _props6 = this.props,\n shouldValidate = _props6.shouldValidate,\n shouldWarn = _props6.shouldWarn;\n\n var shouldValidateOverridden = shouldValidate !== defaultShouldValidate;\n var shouldWarnOverridden = shouldWarn !== defaultShouldWarn;\n\n return shouldValidateOverridden && !shouldWarnOverridden ? shouldValidate : shouldWarn;\n }\n }, {\n key: 'warnIfNeeded',\n value: function warnIfNeeded(nextProps) {\n var _props7 = this.props,\n warn = _props7.warn,\n values = _props7.values;\n\n var shouldWarn = this.shouldWarnFunction();\n var fieldLevelWarn = this.generateWarner();\n if (warn || fieldLevelWarn) {\n var initialRender = nextProps === undefined;\n var fieldWarnerKeys = Object.keys(this.getWarners());\n var validateParams = {\n values: values,\n nextProps: nextProps,\n props: this.props,\n initialRender: initialRender,\n lastFieldValidatorKeys: this.lastFieldWarnerKeys,\n fieldValidatorKeys: fieldWarnerKeys,\n structure: structure\n };\n\n if (shouldWarn(validateParams)) {\n var propsToWarn = initialRender || !nextProps ? this.props : nextProps;\n\n var _merge3 = _merge(warn ? warn(propsToWarn.values, propsToWarn) : {}, fieldLevelWarn ? fieldLevelWarn(propsToWarn.values, propsToWarn) : {}),\n _warning = _merge3._warning,\n nextSyncWarnings = _objectWithoutProperties(_merge3, ['_warning']);\n\n this.lastFieldWarnerKeys = fieldWarnerKeys;\n this.updateSyncWarningsIfNeeded(nextSyncWarnings, _warning, propsToWarn.syncWarnings);\n }\n }\n }\n }, {\n key: 'componentWillMount',\n value: function componentWillMount() {\n if (!isHotReloading()) {\n this.initIfNeeded();\n this.validateIfNeeded();\n this.warnIfNeeded();\n }\n invariant(this.props.shouldValidate, 'shouldValidate() is deprecated and will be removed in v8.0.0. Use shouldWarn() or shouldError() instead.');\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n this.initIfNeeded(nextProps);\n this.validateIfNeeded(nextProps);\n this.warnIfNeeded(nextProps);\n this.clearSubmitPromiseIfNeeded(nextProps);\n this.submitIfNeeded(nextProps);\n var onChange = nextProps.onChange,\n values = nextProps.values,\n dispatch = nextProps.dispatch;\n\n if (onChange && !deepEqual(values, this.props.values)) {\n onChange(values, dispatch, nextProps, this.props.values);\n }\n }\n }, {\n key: 'shouldComponentUpdate',\n value: function shouldComponentUpdate(nextProps) {\n var _this3 = this;\n\n if (!this.props.pure) return true;\n var _config$immutableProp = config.immutableProps,\n immutableProps = _config$immutableProp === undefined ? [] : _config$immutableProp;\n // if we have children, we MUST update in React 16\n // https://twitter.com/erikras/status/915866544558788608\n\n return !!(this.props.children || nextProps.children || Object.keys(nextProps).some(function (prop) {\n // useful to debug rerenders\n // if (!plain.deepEqual(this.props[ prop ], nextProps[ prop ])) {\n // console.info(prop, 'changed', this.props[ prop ], '==>', nextProps[ prop ])\n // }\n if (~immutableProps.indexOf(prop)) {\n return _this3.props[prop] !== nextProps[prop];\n }\n return !~propsToNotUpdateFor.indexOf(prop) && !deepEqual(_this3.props[prop], nextProps[prop]);\n }));\n }\n }, {\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (!isHotReloading()) {\n this.initIfNeeded(this.props);\n this.validateIfNeeded();\n this.warnIfNeeded();\n }\n invariant(this.props.shouldValidate, 'shouldValidate() is deprecated and will be removed in v8.0.0. Use shouldWarn() or shouldError() instead.');\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n var _props8 = this.props,\n destroyOnUnmount = _props8.destroyOnUnmount,\n destroy = _props8.destroy;\n\n if (destroyOnUnmount && !isHotReloading()) {\n this.destroyed = true;\n destroy();\n }\n }\n }, {\n key: 'render',\n value: function render() {\n // remove some redux-form config-only props\n /* eslint-disable no-unused-vars */\n var _props9 = this.props,\n anyTouched = _props9.anyTouched,\n array = _props9.array,\n arrayInsert = _props9.arrayInsert,\n arrayMove = _props9.arrayMove,\n arrayPop = _props9.arrayPop,\n arrayPush = _props9.arrayPush,\n arrayRemove = _props9.arrayRemove,\n arrayRemoveAll = _props9.arrayRemoveAll,\n arrayShift = _props9.arrayShift,\n arraySplice = _props9.arraySplice,\n arraySwap = _props9.arraySwap,\n arrayUnshift = _props9.arrayUnshift,\n asyncErrors = _props9.asyncErrors,\n asyncValidate = _props9.asyncValidate,\n asyncValidating = _props9.asyncValidating,\n blur = _props9.blur,\n change = _props9.change,\n clearSubmit = _props9.clearSubmit,\n destroy = _props9.destroy,\n destroyOnUnmount = _props9.destroyOnUnmount,\n forceUnregisterOnUnmount = _props9.forceUnregisterOnUnmount,\n dirty = _props9.dirty,\n dispatch = _props9.dispatch,\n enableReinitialize = _props9.enableReinitialize,\n error = _props9.error,\n focus = _props9.focus,\n form = _props9.form,\n getFormState = _props9.getFormState,\n immutableProps = _props9.immutableProps,\n initialize = _props9.initialize,\n initialized = _props9.initialized,\n initialValues = _props9.initialValues,\n invalid = _props9.invalid,\n keepDirtyOnReinitialize = _props9.keepDirtyOnReinitialize,\n keepValues = _props9.keepValues,\n updateUnregisteredFields = _props9.updateUnregisteredFields,\n pristine = _props9.pristine,\n propNamespace = _props9.propNamespace,\n registeredFields = _props9.registeredFields,\n registerField = _props9.registerField,\n reset = _props9.reset,\n resetSection = _props9.resetSection,\n setSubmitFailed = _props9.setSubmitFailed,\n setSubmitSucceeded = _props9.setSubmitSucceeded,\n shouldAsyncValidate = _props9.shouldAsyncValidate,\n shouldValidate = _props9.shouldValidate,\n shouldError = _props9.shouldError,\n shouldWarn = _props9.shouldWarn,\n startAsyncValidation = _props9.startAsyncValidation,\n startSubmit = _props9.startSubmit,\n stopAsyncValidation = _props9.stopAsyncValidation,\n stopSubmit = _props9.stopSubmit,\n submitting = _props9.submitting,\n submitFailed = _props9.submitFailed,\n submitSucceeded = _props9.submitSucceeded,\n touch = _props9.touch,\n touchOnBlur = _props9.touchOnBlur,\n touchOnChange = _props9.touchOnChange,\n persistentSubmitErrors = _props9.persistentSubmitErrors,\n syncErrors = _props9.syncErrors,\n syncWarnings = _props9.syncWarnings,\n unregisterField = _props9.unregisterField,\n untouch = _props9.untouch,\n updateSyncErrors = _props9.updateSyncErrors,\n updateSyncWarnings = _props9.updateSyncWarnings,\n valid = _props9.valid,\n validExceptSubmit = _props9.validExceptSubmit,\n values = _props9.values,\n warning = _props9.warning,\n rest = _objectWithoutProperties(_props9, ['anyTouched', 'array', 'arrayInsert', 'arrayMove', 'arrayPop', 'arrayPush', 'arrayRemove', 'arrayRemoveAll', 'arrayShift', 'arraySplice', 'arraySwap', 'arrayUnshift', 'asyncErrors', 'asyncValidate', 'asyncValidating', 'blur', 'change', 'clearSubmit', 'destroy', 'destroyOnUnmount', 'forceUnregisterOnUnmount', 'dirty', 'dispatch', 'enableReinitialize', 'error', 'focus', 'form', 'getFormState', 'immutableProps', 'initialize', 'initialized', 'initialValues', 'invalid', 'keepDirtyOnReinitialize', 'keepValues', 'updateUnregisteredFields', 'pristine', 'propNamespace', 'registeredFields', 'registerField', 'reset', 'resetSection', 'setSubmitFailed', 'setSubmitSucceeded', 'shouldAsyncValidate', 'shouldValidate', 'shouldError', 'shouldWarn', 'startAsyncValidation', 'startSubmit', 'stopAsyncValidation', 'stopSubmit', 'submitting', 'submitFailed', 'submitSucceeded', 'touch', 'touchOnBlur', 'touchOnChange', 'persistentSubmitErrors', 'syncErrors', 'syncWarnings', 'unregisterField', 'untouch', 'updateSyncErrors', 'updateSyncWarnings', 'valid', 'validExceptSubmit', 'values', 'warning']);\n /* eslint-enable no-unused-vars */\n\n\n var reduxFormProps = _extends({\n array: array,\n anyTouched: anyTouched,\n asyncValidate: this.asyncValidate,\n asyncValidating: asyncValidating\n }, bindActionCreators({ blur: blur, change: change }, dispatch), {\n clearSubmit: clearSubmit,\n destroy: destroy,\n dirty: dirty,\n dispatch: dispatch,\n error: error,\n form: form,\n handleSubmit: this.submit,\n initialize: initialize,\n initialized: initialized,\n initialValues: initialValues,\n invalid: invalid,\n pristine: pristine,\n reset: reset,\n resetSection: resetSection,\n submitting: submitting,\n submitFailed: submitFailed,\n submitSucceeded: submitSucceeded,\n touch: touch,\n untouch: untouch,\n valid: valid,\n warning: warning\n });\n var propsToPass = _extends({}, propNamespace ? _defineProperty({}, propNamespace, reduxFormProps) : reduxFormProps, rest);\n if (isClassComponent(WrappedComponent)) {\n ;propsToPass.ref = this.saveRef;\n }\n return createElement(WrappedComponent, propsToPass);\n }\n }]);\n\n return Form;\n }(Component);\n\n Form.displayName = 'Form(' + getDisplayName(WrappedComponent) + ')';\n Form.WrappedComponent = WrappedComponent;\n Form.childContextTypes = {\n _reduxForm: PropTypes.object.isRequired\n };\n Form.propTypes = {\n destroyOnUnmount: PropTypes.bool,\n forceUnregisterOnUnmount: PropTypes.bool,\n form: PropTypes.string.isRequired,\n immutableProps: PropTypes.arrayOf(PropTypes.string),\n initialValues: PropTypes.oneOfType([PropTypes.array, PropTypes.object]),\n getFormState: PropTypes.func,\n onSubmitFail: PropTypes.func,\n onSubmitSuccess: PropTypes.func,\n propNamespace: PropTypes.string,\n validate: PropTypes.func,\n warn: PropTypes.func,\n touchOnBlur: PropTypes.bool,\n touchOnChange: PropTypes.bool,\n triggerSubmit: PropTypes.bool,\n persistentSubmitErrors: PropTypes.bool,\n registeredFields: PropTypes.any\n };\n\n var connector = connect(function (state, props) {\n var form = props.form,\n getFormState = props.getFormState,\n initialValues = props.initialValues,\n enableReinitialize = props.enableReinitialize,\n keepDirtyOnReinitialize = props.keepDirtyOnReinitialize;\n\n var formState = getIn(getFormState(state) || empty, form) || empty;\n var stateInitial = getIn(formState, 'initial');\n var initialized = !!stateInitial;\n\n var shouldUpdateInitialValues = enableReinitialize && initialized && !deepEqual(initialValues, stateInitial);\n var shouldResetValues = shouldUpdateInitialValues && !keepDirtyOnReinitialize;\n\n var initial = initialValues || stateInitial || empty;\n\n if (shouldUpdateInitialValues) {\n initial = stateInitial || empty;\n }\n\n var values = getIn(formState, 'values') || initial;\n\n if (shouldResetValues) {\n values = initial;\n }\n\n var pristine = shouldResetValues || deepEqual(initial, values);\n var asyncErrors = getIn(formState, 'asyncErrors');\n var syncErrors = getIn(formState, 'syncErrors') || plain.empty;\n var syncWarnings = getIn(formState, 'syncWarnings') || plain.empty;\n var registeredFields = getIn(formState, 'registeredFields');\n var valid = isValid(form, getFormState, false)(state);\n var validExceptSubmit = isValid(form, getFormState, true)(state);\n var anyTouched = !!getIn(formState, 'anyTouched');\n var submitting = !!getIn(formState, 'submitting');\n var submitFailed = !!getIn(formState, 'submitFailed');\n var submitSucceeded = !!getIn(formState, 'submitSucceeded');\n var error = getIn(formState, 'error');\n var warning = getIn(formState, 'warning');\n var triggerSubmit = getIn(formState, 'triggerSubmit');\n return {\n anyTouched: anyTouched,\n asyncErrors: asyncErrors,\n asyncValidating: getIn(formState, 'asyncValidating') || false,\n dirty: !pristine,\n error: error,\n initialized: initialized,\n invalid: !valid,\n pristine: pristine,\n registeredFields: registeredFields,\n submitting: submitting,\n submitFailed: submitFailed,\n submitSucceeded: submitSucceeded,\n syncErrors: syncErrors,\n syncWarnings: syncWarnings,\n triggerSubmit: triggerSubmit,\n values: values,\n valid: valid,\n validExceptSubmit: validExceptSubmit,\n warning: warning\n };\n }, function (dispatch, initialProps) {\n var bindForm = function bindForm(actionCreator) {\n return actionCreator.bind(null, initialProps.form);\n };\n\n // Bind the first parameter on `props.form`\n var boundFormACs = _mapValues(formActions, bindForm);\n var boundArrayACs = _mapValues(arrayActions, bindForm);\n var boundBlur = function boundBlur(field, value) {\n return blur(initialProps.form, field, value, !!initialProps.touchOnBlur);\n };\n var boundChange = function boundChange(field, value) {\n return change(initialProps.form, field, value, !!initialProps.touchOnChange, !!initialProps.persistentSubmitErrors);\n };\n var boundFocus = bindForm(focus);\n\n // Wrap action creators with `dispatch`\n var connectedFormACs = bindActionCreators(boundFormACs, dispatch);\n var connectedArrayACs = {\n insert: bindActionCreators(boundArrayACs.arrayInsert, dispatch),\n move: bindActionCreators(boundArrayACs.arrayMove, dispatch),\n pop: bindActionCreators(boundArrayACs.arrayPop, dispatch),\n push: bindActionCreators(boundArrayACs.arrayPush, dispatch),\n remove: bindActionCreators(boundArrayACs.arrayRemove, dispatch),\n removeAll: bindActionCreators(boundArrayACs.arrayRemoveAll, dispatch),\n shift: bindActionCreators(boundArrayACs.arrayShift, dispatch),\n splice: bindActionCreators(boundArrayACs.arraySplice, dispatch),\n swap: bindActionCreators(boundArrayACs.arraySwap, dispatch),\n unshift: bindActionCreators(boundArrayACs.arrayUnshift, dispatch)\n };\n\n var computedActions = _extends({}, connectedFormACs, boundArrayACs, {\n blur: boundBlur,\n change: boundChange,\n array: connectedArrayACs,\n focus: boundFocus,\n dispatch: dispatch\n });\n\n return function () {\n return computedActions;\n };\n }, undefined, { withRef: true });\n var ConnectedForm = hoistStatics(connector(Form), WrappedComponent);\n ConnectedForm.defaultProps = config;\n\n // build outer component to expose instance api\n\n var ReduxForm = function (_Component2) {\n _inherits(ReduxForm, _Component2);\n\n function ReduxForm() {\n _classCallCheck(this, ReduxForm);\n\n return _possibleConstructorReturn(this, (ReduxForm.__proto__ || Object.getPrototypeOf(ReduxForm)).apply(this, arguments));\n }\n\n _createClass(ReduxForm, [{\n key: 'submit',\n value: function submit() {\n return this.ref && this.ref.getWrappedInstance().submit();\n }\n }, {\n key: 'reset',\n value: function reset() {\n if (this.ref) {\n this.ref.getWrappedInstance().reset();\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _this5 = this;\n\n var _props10 = this.props,\n initialValues = _props10.initialValues,\n rest = _objectWithoutProperties(_props10, ['initialValues']);\n\n return createElement(ConnectedForm, _extends({}, rest, {\n ref: function ref(_ref3) {\n _this5.ref = _ref3;\n },\n // convert initialValues if need to\n initialValues: fromJS(initialValues)\n }));\n }\n }, {\n key: 'valid',\n get: function get() {\n return !!(this.ref && this.ref.getWrappedInstance().isValid());\n }\n }, {\n key: 'invalid',\n get: function get() {\n return !this.valid;\n }\n }, {\n key: 'pristine',\n get: function get() {\n return !!(this.ref && this.ref.getWrappedInstance().isPristine());\n }\n }, {\n key: 'dirty',\n get: function get() {\n return !this.pristine;\n }\n }, {\n key: 'values',\n get: function get() {\n return this.ref ? this.ref.getWrappedInstance().getValues() : empty;\n }\n }, {\n key: 'fieldList',\n get: function get() {\n // mainly provided for testing\n return this.ref ? this.ref.getWrappedInstance().getFieldList() : [];\n }\n }, {\n key: 'wrappedInstance',\n get: function get() {\n // for testing\n return this.ref && this.ref.getWrappedInstance().wrapped;\n }\n }]);\n\n return ReduxForm;\n }(Component);\n\n polyfill(ReduxForm);\n return hoistStatics(ReduxForm, WrappedComponent);\n };\n };\n};\n\nexport default createReduxForm;","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { connect } from 'react-redux';\n\n\nvar createValues = function createValues(_ref) {\n var getIn = _ref.getIn;\n return function (config) {\n var _prop$getFormState$co = _extends({\n prop: 'values',\n getFormState: function getFormState(state) {\n return getIn(state, 'form');\n }\n }, config),\n form = _prop$getFormState$co.form,\n prop = _prop$getFormState$co.prop,\n getFormState = _prop$getFormState$co.getFormState;\n\n return connect(function (state) {\n return _defineProperty({}, prop, getIn(getFormState(state), form + '.values'));\n }\n // ignore dispatch\n );\n };\n};\n\nexport default createValues;","\n\nvar defaultShouldAsyncValidate = function defaultShouldAsyncValidate(_ref) {\n var initialized = _ref.initialized,\n trigger = _ref.trigger,\n pristine = _ref.pristine,\n syncValidationPasses = _ref.syncValidationPasses;\n\n if (!syncValidationPasses) {\n return false;\n }\n switch (trigger) {\n case 'blur':\n case 'change':\n // blurring\n return true;\n case 'submit':\n // submitting, so only async validate if form is dirty or was never initialized\n // conversely, DON'T async validate if the form is pristine just as it was initialized\n return !pristine || !initialized;\n default:\n return false;\n }\n};\n\n\nexport default defaultShouldAsyncValidate;","\n\nvar defaultShouldError = function defaultShouldError(_ref) {\n var values = _ref.values,\n nextProps = _ref.nextProps,\n initialRender = _ref.initialRender,\n lastFieldValidatorKeys = _ref.lastFieldValidatorKeys,\n fieldValidatorKeys = _ref.fieldValidatorKeys,\n structure = _ref.structure;\n\n if (initialRender) {\n return true;\n }\n return !structure.deepEqual(values, nextProps && nextProps.values) || !structure.deepEqual(lastFieldValidatorKeys, fieldValidatorKeys);\n};\n\n\nexport default defaultShouldError;","\n\nvar defaultShouldValidate = function defaultShouldValidate(_ref) {\n var values = _ref.values,\n nextProps = _ref.nextProps,\n initialRender = _ref.initialRender,\n lastFieldValidatorKeys = _ref.lastFieldValidatorKeys,\n fieldValidatorKeys = _ref.fieldValidatorKeys,\n structure = _ref.structure;\n\n if (initialRender) {\n return true;\n }\n return !structure.deepEqual(values, nextProps && nextProps.values) || !structure.deepEqual(lastFieldValidatorKeys, fieldValidatorKeys);\n};\n\n\nexport default defaultShouldValidate;","\n\nvar defaultShouldWarn = function defaultShouldWarn(_ref) {\n var values = _ref.values,\n nextProps = _ref.nextProps,\n initialRender = _ref.initialRender,\n lastFieldValidatorKeys = _ref.lastFieldValidatorKeys,\n fieldValidatorKeys = _ref.fieldValidatorKeys,\n structure = _ref.structure;\n\n if (initialRender) {\n return true;\n }\n return !structure.deepEqual(values, nextProps && nextProps.values) || !structure.deepEqual(lastFieldValidatorKeys, fieldValidatorKeys);\n};\n\n\nexport default defaultShouldWarn;","import _toPath from 'lodash-es/toPath';\n\n\nfunction createDeleteInWithCleanUp(structure) {\n var shouldDeleteDefault = function shouldDeleteDefault(structure) {\n return function (state, path) {\n return structure.getIn(state, path) !== undefined;\n };\n };\n\n var deepEqual = structure.deepEqual,\n empty = structure.empty,\n getIn = structure.getIn,\n deleteIn = structure.deleteIn,\n setIn = structure.setIn;\n\n\n return function () {\n var shouldDelete = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : shouldDeleteDefault;\n\n var deleteInWithCleanUp = function deleteInWithCleanUp(state, path) {\n if (path[path.length - 1] === ']') {\n // array path\n var pathTokens = _toPath(path);\n pathTokens.pop();\n var parent = getIn(state, pathTokens.join('.'));\n return parent ? setIn(state, path) : state;\n }\n\n var result = state;\n\n if (shouldDelete(structure)(state, path)) {\n result = deleteIn(state, path);\n }\n\n var dotIndex = path.lastIndexOf('.');\n if (dotIndex > 0) {\n var parentPath = path.substring(0, dotIndex);\n if (parentPath[parentPath.length - 1] !== ']') {\n var _parent = getIn(result, parentPath);\n if (deepEqual(_parent, empty)) {\n return deleteInWithCleanUp(result, parentPath);\n }\n }\n }\n return result;\n };\n\n return deleteInWithCleanUp;\n };\n}\n\nexport default createDeleteInWithCleanUp;","import isEvent from './isEvent';\n\n\nvar getSelectedValues = function getSelectedValues(options) {\n var result = [];\n if (options) {\n for (var index = 0; index < options.length; index++) {\n var option = options[index];\n if (option.selected) {\n result.push(option.value);\n }\n }\n }\n return result;\n};\n\nvar getValue = function getValue(event, isReactNative) {\n if (isEvent(event)) {\n if (!isReactNative && event.nativeEvent && event.nativeEvent.text !== undefined) {\n return event.nativeEvent.text;\n }\n if (isReactNative && event.nativeEvent !== undefined) {\n return event.nativeEvent.text;\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 files = _detypedEvent$target.files,\n dataTransfer = detypedEvent.dataTransfer;\n\n if (type === 'checkbox') {\n return !!checked;\n }\n if (type === 'file') {\n return files || dataTransfer && dataTransfer.files;\n }\n if (type === 'select-multiple') {\n return getSelectedValues(event.target.options);\n }\n return value;\n }\n return event;\n};\n\nexport default getValue;","var isEvent = function isEvent(candidate) {\n return !!(candidate && candidate.stopPropagation && candidate.preventDefault);\n};\n\nexport default isEvent;","import getValue from './getValue';\nimport isReactNative from '../isReactNative';\n\n\nvar onChangeValue = function onChangeValue(event, _ref) {\n var name = _ref.name,\n parse = _ref.parse,\n normalize = _ref.normalize;\n\n // read value from input\n var value = getValue(event, isReactNative);\n\n // parse value if we have a parser\n if (parse) {\n value = parse(value, name);\n }\n\n // normalize value\n if (normalize) {\n value = normalize(name, value);\n }\n\n return value;\n};\n\nexport default onChangeValue;","import isEvent from './isEvent';\n\nvar silenceEvent = function silenceEvent(event) {\n var is = isEvent(event);\n if (is) {\n event.preventDefault();\n }\n return is;\n};\n\nexport default silenceEvent;","import silenceEvent from './silenceEvent';\n\nvar silenceEvents = function silenceEvents(fn) {\n return function (event) {\n for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return silenceEvent(event) ? fn.apply(undefined, args) : fn.apply(undefined, [event].concat(args));\n };\n};\n\nexport default silenceEvents;","import createFormValueSelector from './createFormValueSelector';\nimport plain from './structure/plain';\n\nexport default createFormValueSelector(plain);","import createFormValues from './createFormValues';\nimport plain from './structure/plain';\n\nexport default createFormValues(plain);","import plain from './structure/plain';\n\n\nvar toArray = function toArray(value) {\n return Array.isArray(value) ? value : [value];\n};\n\nvar getError = function getError(value, values, props, validators, name) {\n var array = toArray(validators);\n for (var i = 0; i < array.length; i++) {\n var error = array[i](value, values, props, name);\n if (error) {\n return error;\n }\n }\n};\n\nvar generateValidator = function generateValidator(validators, _ref) {\n var getIn = _ref.getIn;\n return function (values, props) {\n var errors = {};\n Object.keys(validators).forEach(function (name) {\n var value = getIn(values, name);\n var error = getError(value, values, props, validators[name], name);\n if (error) {\n errors = plain.setIn(errors, name, error);\n }\n });\n return errors;\n };\n};\n\nexport default generateValidator;","import createGetFormAsyncErrors from './selectors/getFormAsyncErrors';\nimport plain from './structure/plain';\n\nexport default createGetFormAsyncErrors(plain);","import createGetFormError from './selectors/getFormError';\nimport plain from './structure/plain';\n\nexport default createGetFormError(plain);","import createGetFormInitialValues from './selectors/getFormInitialValues';\nimport plain from './structure/plain';\n\nexport default createGetFormInitialValues(plain);","import createGetFormMeta from './selectors/getFormMeta';\nimport plain from './structure/plain';\n\nexport default createGetFormMeta(plain);","import createGetFormNames from './selectors/getFormNames';\nimport plain from './structure/plain';\n\nexport default createGetFormNames(plain);","import createGetFormSubmitErrors from './selectors/getFormSubmitErrors';\nimport plain from './structure/plain';\n\nexport default createGetFormSubmitErrors(plain);","import createGetFormSyncErrors from './selectors/getFormSyncErrors';\nimport plain from './structure/plain';\n\nexport default createGetFormSyncErrors(plain);","import createGetFormSyncWarnings from './selectors/getFormSyncWarnings';\nimport plain from './structure/plain';\n\nexport default createGetFormSyncWarnings(plain);","import createGetFormValues from './selectors/getFormValues';\nimport plain from './structure/plain';\n\nexport default createGetFormValues(plain);","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\nimport isPromise from 'is-promise';\nimport SubmissionError from './SubmissionError';\n\n\nvar handleSubmit = function handleSubmit(submit, props, valid, asyncValidate, fields) {\n var dispatch = props.dispatch,\n onSubmitFail = props.onSubmitFail,\n onSubmitSuccess = props.onSubmitSuccess,\n startSubmit = props.startSubmit,\n stopSubmit = props.stopSubmit,\n setSubmitFailed = props.setSubmitFailed,\n setSubmitSucceeded = props.setSubmitSucceeded,\n syncErrors = props.syncErrors,\n asyncErrors = props.asyncErrors,\n touch = props.touch,\n values = props.values,\n persistentSubmitErrors = props.persistentSubmitErrors;\n\n\n touch.apply(undefined, _toConsumableArray(fields)); // mark all fields as touched\n\n if (valid || persistentSubmitErrors) {\n var doSubmit = function doSubmit() {\n var result = void 0;\n try {\n result = submit(values, dispatch, props);\n } catch (submitError) {\n var error = submitError instanceof SubmissionError ? submitError.errors : undefined;\n stopSubmit(error);\n setSubmitFailed.apply(undefined, _toConsumableArray(fields));\n if (onSubmitFail) {\n onSubmitFail(error, dispatch, submitError, props);\n }\n if (error || onSubmitFail) {\n // if you've provided an onSubmitFail callback, don't re-throw the error\n return error;\n } else {\n throw submitError;\n }\n }\n if (isPromise(result)) {\n startSubmit();\n return result.then(function (submitResult) {\n stopSubmit();\n setSubmitSucceeded();\n if (onSubmitSuccess) {\n onSubmitSuccess(submitResult, dispatch, props);\n }\n return submitResult;\n }, function (submitError) {\n var error = submitError instanceof SubmissionError ? submitError.errors : undefined;\n stopSubmit(error);\n setSubmitFailed.apply(undefined, _toConsumableArray(fields));\n if (onSubmitFail) {\n onSubmitFail(error, dispatch, submitError, props);\n }\n if (error || onSubmitFail) {\n // if you've provided an onSubmitFail callback, don't re-throw the error\n return error;\n } else {\n throw submitError;\n }\n });\n } else {\n setSubmitSucceeded();\n if (onSubmitSuccess) {\n onSubmitSuccess(result, dispatch, props);\n }\n }\n return result;\n };\n\n var asyncValidateResult = asyncValidate && asyncValidate();\n if (asyncValidateResult) {\n return asyncValidateResult.then(function (asyncErrors) {\n if (asyncErrors) {\n throw asyncErrors;\n }\n return doSubmit();\n }).catch(function (asyncErrors) {\n setSubmitFailed.apply(undefined, _toConsumableArray(fields));\n if (onSubmitFail) {\n onSubmitFail(asyncErrors, dispatch, null, props);\n }\n return Promise.reject(asyncErrors);\n });\n } else {\n return doSubmit();\n }\n } else {\n setSubmitFailed.apply(undefined, _toConsumableArray(fields));\n var errors = _extends({}, asyncErrors, syncErrors);\n if (onSubmitFail) {\n onSubmitFail(errors, dispatch, null, props);\n }\n return errors;\n }\n};\n\nexport default handleSubmit;","\n\nvar getErrorKeys = function getErrorKeys(name, type) {\n switch (type) {\n case 'Field':\n return [name, name + '._error'];\n case 'FieldArray':\n return [name + '._error'];\n default:\n throw new Error('Unknown field type');\n }\n};\n\n\nvar createHasError = function createHasError(_ref) {\n var getIn = _ref.getIn;\n\n var hasError = function hasError(field, syncErrors, asyncErrors, submitErrors) {\n if (!syncErrors && !asyncErrors && !submitErrors) {\n return false;\n }\n\n var name = getIn(field, 'name');\n var type = getIn(field, 'type');\n return getErrorKeys(name, type).some(function (key) {\n return getIn(syncErrors, key) || getIn(asyncErrors, key) || getIn(submitErrors, key);\n });\n };\n return hasError;\n};\n\nexport default createHasError;","import createHasSubmitFailed from './selectors/hasSubmitFailed';\nimport plain from './structure/plain';\n\nexport default createHasSubmitFailed(plain);","import createHasSubmitSucceeded from './selectors/hasSubmitSucceeded';\nimport plain from './structure/plain';\n\nexport default createHasSubmitSucceeded(plain);","import actions from './actions';\nimport * as _actionTypes from './actionTypes';\nexport { default as defaultShouldAsyncValidate } from './defaultShouldAsyncValidate';\nexport { default as defaultShouldValidate } from './defaultShouldValidate';\nexport { default as defaultShouldError } from './defaultShouldError';\nexport { default as defaultShouldWarn } from './defaultShouldWarn';\nexport { default as Form } from './Form';\nexport { default as FormName } from './FormName';\nexport { default as FormSection } from './FormSection';\nexport { default as SubmissionError } from './SubmissionError';\n// alias for propTypes\nexport { default as propTypes, fieldInputPropTypes, fieldMetaPropTypes, fieldPropTypes, fieldArrayFieldsPropTypes, fieldArrayMetaPropTypes, fieldArrayPropTypes, formPropTypes } from './propTypes';\nexport { default as Field } from './Field';\nexport { default as Fields } from './Fields';\nexport { default as FieldArray } from './FieldArray';\nexport { default as formValueSelector } from './formValueSelector';\nexport { default as formValues } from './formValues';\nexport { default as getFormError } from './getFormError';\nexport { default as getFormNames } from './getFormNames';\nexport { default as getFormValues } from './getFormValues';\nexport { default as getFormInitialValues } from './getFormInitialValues';\nexport { default as getFormSyncErrors } from './getFormSyncErrors';\nexport { default as getFormMeta } from './getFormMeta';\nexport { default as getFormAsyncErrors } from './getFormAsyncErrors';\nexport { default as getFormSyncWarnings } from './getFormSyncWarnings';\nexport { default as getFormSubmitErrors } from './getFormSubmitErrors';\nexport { default as isAsyncValidating } from './isAsyncValidating';\nexport { default as isDirty } from './isDirty';\nexport { default as isInvalid } from './isInvalid';\nexport { default as isPristine } from './isPristine';\nexport { default as isValid } from './isValid';\nexport { default as isSubmitting } from './isSubmitting';\nexport { default as hasSubmitSucceeded } from './hasSubmitSucceeded';\nexport { default as hasSubmitFailed } from './hasSubmitFailed';\nexport { default as reduxForm } from './reduxForm';\nexport { default as reducer } from './reducer';\nexport { default as values } from './values';\nexport var actionTypes = _actionTypes;\nexport var arrayInsert = actions.arrayInsert;\nexport var arrayMove = actions.arrayMove;\nexport var arrayPop = actions.arrayPop;\nexport var arrayPush = actions.arrayPush;\nexport var arrayRemove = actions.arrayRemove;\nexport var arrayRemoveAll = actions.arrayRemoveAll;\nexport var arrayShift = actions.arrayShift;\nexport var arraySplice = actions.arraySplice;\nexport var arraySwap = actions.arraySwap;\nexport var arrayUnshift = actions.arrayUnshift;\nexport var autofill = actions.autofill;\nexport var blur = actions.blur;\nexport var change = actions.change;\nexport var clearAsyncError = actions.clearAsyncError;\nexport var clearFields = actions.clearFields;\nexport var clearSubmitErrors = actions.clearSubmitErrors;\nexport var destroy = actions.destroy;\nexport var focus = actions.focus;\nexport var initialize = actions.initialize;\nexport var registerField = actions.registerField;\nexport var reset = actions.reset;\nexport var resetSection = actions.resetSection;\nexport var setSubmitFailed = actions.setSubmitFailed;\nexport var setSubmitSucceeded = actions.setSubmitSucceeded;\nexport var startAsyncValidation = actions.startAsyncValidation;\nexport var startSubmit = actions.startSubmit;\nexport var stopAsyncValidation = actions.stopAsyncValidation;\nexport var stopSubmit = actions.stopSubmit;\nexport var submit = actions.submit;\nexport var touch = actions.touch;\nexport var unregisterField = actions.unregisterField;\nexport var untouch = actions.untouch;\nexport var updateSyncWarnings = actions.updateSyncWarnings;","import createIsAsyncValidating from './selectors/isAsyncValidating';\nimport plain from './structure/plain';\n\nexport default createIsAsyncValidating(plain);","import createIsDirty from './selectors/isDirty';\nimport plain from './structure/plain';\n\nexport default createIsDirty(plain);","import createIsInvalid from './selectors/isInvalid';\nimport plain from './structure/plain';\n\nexport default createIsInvalid(plain);","import createIsPristine from './selectors/isPristine';\nimport plain from './structure/plain';\n\nexport default createIsPristine(plain);","var isReactNative = typeof window !== 'undefined' && window.navigator && window.navigator.product && window.navigator.product === 'ReactNative';\n\nexport default isReactNative;","import createIsSubmitting from './selectors/isSubmitting';\nimport plain from './structure/plain';\n\nexport default createIsSubmitting(plain);","import createIsValid from './selectors/isValid';\nimport plain from './structure/plain';\n\nexport default createIsValid(plain);","import PropTypes from 'prop-types';\n\nvar any = PropTypes.any,\n bool = PropTypes.bool,\n func = PropTypes.func,\n shape = PropTypes.shape,\n string = PropTypes.string,\n oneOfType = PropTypes.oneOfType,\n object = PropTypes.object,\n number = PropTypes.number;\n\n\nexport var formPropTypes = {\n // State:\n anyTouched: bool.isRequired, // true if any of the fields have been marked as touched\n asyncValidating: oneOfType([bool, string]).isRequired, // true if async validation is running, a string if a field triggered async validation\n dirty: bool.isRequired, // true if any values are different from initialValues\n error: any, // form-wide error from '_error' key in validation result\n form: string.isRequired, // the name of the form\n invalid: bool.isRequired, // true if there are any validation errors\n initialized: bool.isRequired, // true if the form has been initialized\n initialValues: object, // the initialValues object passed to reduxForm\n pristine: bool.isRequired, // true if the values are the same as initialValues\n pure: bool.isRequired, // if true, implements shouldComponentUpdate\n submitting: bool.isRequired, // true if the form is in the process of being submitted\n submitFailed: bool.isRequired, // true if the form was submitted and failed for any reason\n submitSucceeded: bool.isRequired, // true if the form was successfully submitted\n valid: bool.isRequired, // true if there are no validation errors\n warning: any, // form-wide warning from '_warning' key in validation result\n // Actions:\n array: shape({\n insert: func.isRequired, // function to insert a value into an array field\n move: func.isRequired, // function to move a value within an array field\n pop: func.isRequired, // function to pop a value off of an array field\n push: func.isRequired, // function to push a value onto an array field\n remove: func.isRequired, // function to remove a value from an array field\n removeAll: func.isRequired, // function to remove all the values from an array field\n shift: func.isRequired, // function to shift a value out of an array field\n splice: func.isRequired, // function to splice a value into an array field\n swap: func.isRequired, // function to swap values in an array field\n unshift: func.isRequired // function to unshift a value into an array field\n }),\n asyncValidate: func.isRequired, // function to trigger async validation\n autofill: func.isRequired, // action to set a value of a field and mark it as autofilled\n blur: func.isRequired, // action to mark a field as blurred\n change: func.isRequired, // action to change the value of a field\n clearAsyncError: func.isRequired, // action to clear the async error of a field\n clearFields: func.isRequired, // action to clean fields values for all fields\n clearSubmitErrors: func.isRequired, // action to remove submitErrors and error\n destroy: func.isRequired, // action to destroy the form's data in Redux\n dispatch: func.isRequired, // the Redux dispatch action\n handleSubmit: func.isRequired, // function to submit the form\n initialize: func.isRequired, // action to initialize form data\n reset: func.isRequired, // action to reset the form data to previously initialized values\n resetSection: func.isRequired, // action to reset the form sections data to previously initialized values\n touch: func.isRequired, // action to mark fields as touched\n submit: func.isRequired, // action to trigger a submission of the specified form\n untouch: func.isRequired, // action to mark fields as untouched\n\n // triggerSubmit\n triggerSubmit: bool, // if true, submits the form on componentWillReceiveProps\n clearSubmit: func.isRequired // called before a triggered submit, by default clears triggerSubmit\n};\n\nexport var fieldInputPropTypes = {\n checked: bool,\n name: string.isRequired,\n onBlur: func.isRequired,\n onChange: func.isRequired,\n onDragStart: func.isRequired,\n onDrop: func.isRequired,\n onFocus: func.isRequired,\n value: any\n};\n\nexport var fieldMetaPropTypes = {\n active: bool.isRequired,\n asyncValidating: bool.isRequired,\n autofilled: bool.isRequired,\n dirty: bool.isRequired,\n dispatch: func.isRequired,\n error: any,\n form: string.isRequired,\n invalid: bool.isRequired,\n pristine: bool.isRequired,\n submitting: bool.isRequired,\n submitFailed: bool.isRequired,\n touched: bool.isRequired,\n valid: bool.isRequired,\n visited: bool.isRequired,\n warning: string\n};\n\nexport var fieldArrayMetaPropTypes = {\n dirty: bool.isRequired,\n error: any,\n form: string.isRequired,\n invalid: bool.isRequired,\n pristine: bool.isRequired,\n submitFailed: bool,\n submitting: bool,\n valid: bool.isRequired,\n warning: string\n};\n\nexport var fieldArrayFieldsPropTypes = {\n name: string.isRequired,\n forEach: func.isRequired,\n get: func.isRequired,\n getAll: func.isRequired,\n insert: func.isRequired,\n length: number.isRequired,\n map: func.isRequired,\n move: func.isRequired,\n pop: func.isRequired,\n push: func.isRequired,\n reduce: func.isRequired,\n remove: func.isRequired,\n removeAll: func.isRequired,\n shift: func.isRequired,\n swap: func.isRequired,\n unshift: func.isRequired\n};\n\nexport var fieldPropTypes = {\n input: shape(fieldInputPropTypes).isRequired,\n meta: shape(fieldMetaPropTypes).isRequired\n};\n\nexport var fieldArrayPropTypes = {\n fields: shape(fieldArrayFieldsPropTypes).isRequired,\n meta: shape(fieldArrayMetaPropTypes).isRequired\n};\n\nexport default formPropTypes;","import createReducer from './createReducer';\nimport plain from './structure/plain';\n\nexport default createReducer(plain);","import createReduxForm from './createReduxForm';\nimport plain from './structure/plain';\n\nexport default createReduxForm(plain);","var createGetFormAsyncErrors = function createGetFormAsyncErrors(_ref) {\n var getIn = _ref.getIn;\n return function (form, getFormState) {\n return function (state) {\n var nonNullGetFormState = getFormState || function (state) {\n return getIn(state, 'form');\n };\n return getIn(nonNullGetFormState(state), form + '.asyncErrors');\n };\n };\n};\n\nexport default createGetFormAsyncErrors;","var createGetFormError = function createGetFormError(_ref) {\n var getIn = _ref.getIn;\n return function (form, getFormState) {\n return function (state) {\n var nonNullGetFormState = getFormState || function (state) {\n return getIn(state, 'form');\n };\n return getIn(nonNullGetFormState(state), form + '.error');\n };\n };\n};\n\nexport default createGetFormError;","var createGetFormInitialValues = function createGetFormInitialValues(_ref) {\n var getIn = _ref.getIn;\n return function (form, getFormState) {\n return function (state) {\n var nonNullGetFormState = getFormState || function (state) {\n return getIn(state, 'form');\n };\n return getIn(nonNullGetFormState(state), form + '.initial');\n };\n };\n};\n\nexport default createGetFormInitialValues;","var createGetFormMeta = function createGetFormMeta(_ref) {\n var getIn = _ref.getIn,\n empty = _ref.empty;\n return function (form, getFormState) {\n return function (state) {\n var nonNullGetFormState = getFormState || function (state) {\n return getIn(state, 'form');\n };\n return getIn(nonNullGetFormState(state), form + '.fields') || empty;\n };\n };\n};\n\nexport default createGetFormMeta;","function createGetFormNames(_ref) {\n var getIn = _ref.getIn,\n keys = _ref.keys;\n\n return function (getFormState) {\n return function (state) {\n var nonNullGetFormState = getFormState || function (state) {\n return getIn(state, 'form');\n };\n return keys(nonNullGetFormState(state));\n };\n };\n}\n\nexport default createGetFormNames;","var createGetFormSubmitErrors = function createGetFormSubmitErrors(_ref) {\n var getIn = _ref.getIn,\n empty = _ref.empty;\n return function (form, getFormState) {\n return function (state) {\n var nonNullGetFormState = getFormState || function (state) {\n return getIn(state, 'form');\n };\n return getIn(nonNullGetFormState(state), form + '.submitErrors') || empty;\n };\n };\n};\n\nexport default createGetFormSubmitErrors;","var createGetFormSyncErrors = function createGetFormSyncErrors(_ref) {\n var getIn = _ref.getIn,\n empty = _ref.empty;\n return function (form, getFormState) {\n return function (state) {\n var nonNullGetFormState = getFormState || function (state) {\n return getIn(state, 'form');\n };\n return getIn(nonNullGetFormState(state), form + '.syncErrors') || empty;\n };\n };\n};\n\nexport default createGetFormSyncErrors;","var createGetFormSyncWarnings = function createGetFormSyncWarnings(_ref) {\n var getIn = _ref.getIn,\n empty = _ref.empty;\n return function (form, getFormState) {\n return function (state) {\n var nonNullGetFormState = getFormState || function (state) {\n return getIn(state, 'form');\n };\n return getIn(nonNullGetFormState(state), form + '.syncWarnings') || empty;\n };\n };\n};\n\nexport default createGetFormSyncWarnings;","var createGetFormValues = function createGetFormValues(_ref) {\n var getIn = _ref.getIn;\n return function (form, getFormState) {\n return function (state) {\n var nonNullGetFormState = getFormState || function (state) {\n return getIn(state, 'form');\n };\n return getIn(nonNullGetFormState(state), form + '.values');\n };\n };\n};\n\nexport default createGetFormValues;","var createHasSubmitFailed = function createHasSubmitFailed(_ref) {\n var getIn = _ref.getIn;\n return function (form, getFormState) {\n return function (state) {\n var nonNullGetFormState = getFormState || function (state) {\n return getIn(state, 'form');\n };\n return !!getIn(nonNullGetFormState(state), form + '.submitFailed');\n };\n };\n};\n\nexport default createHasSubmitFailed;","var createHasSubmitSucceeded = function createHasSubmitSucceeded(_ref) {\n var getIn = _ref.getIn;\n return function (form, getFormState) {\n return function (state) {\n var nonNullGetFormState = getFormState || function (state) {\n return getIn(state, 'form');\n };\n return !!getIn(nonNullGetFormState(state), form + '.submitSucceeded');\n };\n };\n};\n\nexport default createHasSubmitSucceeded;","var createIsAsyncValidating = function createIsAsyncValidating(_ref) {\n var getIn = _ref.getIn;\n return function (form, getFormState) {\n return function (state) {\n var nonNullGetFormState = getFormState || function (state) {\n return getIn(state, 'form');\n };\n return !!getIn(nonNullGetFormState(state), form + '.asyncValidating');\n };\n };\n};\n\nexport default createIsAsyncValidating;","function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\nimport createIsPristine from './isPristine';\n\n\nvar createIsDirty = function createIsDirty(structure) {\n return function (form, getFormState) {\n var isPristine = createIsPristine(structure)(form, getFormState);\n return function (state) {\n for (var _len = arguments.length, fields = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n fields[_key - 1] = arguments[_key];\n }\n\n return !isPristine.apply(undefined, [state].concat(_toConsumableArray(fields)));\n };\n };\n};\n\nexport default createIsDirty;","import createIsValid from './isValid';\n\n\nvar createIsInvalid = function createIsInvalid(structure) {\n return function (form, getFormState) {\n var isValid = createIsValid(structure)(form, getFormState);\n return function (state) {\n return !isValid(state);\n };\n };\n};\n\nexport default createIsInvalid;","var createIsPristine = function createIsPristine(_ref) {\n var deepEqual = _ref.deepEqual,\n empty = _ref.empty,\n getIn = _ref.getIn;\n return function (form, getFormState) {\n return function (state) {\n for (var _len = arguments.length, fields = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n fields[_key - 1] = arguments[_key];\n }\n\n var nonNullGetFormState = getFormState || function (state) {\n return getIn(state, 'form');\n };\n var formState = nonNullGetFormState(state);\n if (fields && fields.length) {\n return fields.every(function (field) {\n var fieldInitial = getIn(formState, form + '.initial.' + field);\n var fieldValue = getIn(formState, form + '.values.' + field);\n return deepEqual(fieldInitial, fieldValue);\n });\n }\n var initial = getIn(formState, form + '.initial') || empty;\n var values = getIn(formState, form + '.values') || initial;\n return deepEqual(initial, values);\n };\n };\n};\n\nexport default createIsPristine;","var createIsSubmitting = function createIsSubmitting(_ref) {\n var getIn = _ref.getIn;\n return function (form, getFormState) {\n return function (state) {\n var nonNullGetFormState = getFormState || function (state) {\n return getIn(state, 'form');\n };\n return !!getIn(nonNullGetFormState(state), form + '.submitting');\n };\n };\n};\n\nexport default createIsSubmitting;","import createHasError from '../hasError';\n\n\nvar createIsValid = function createIsValid(structure) {\n var getIn = structure.getIn,\n keys = structure.keys;\n\n var hasError = createHasError(structure);\n return function (form, getFormState) {\n var ignoreSubmitErrors = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n return function (state) {\n var nonNullGetFormState = getFormState || function (state) {\n return getIn(state, 'form');\n };\n var formState = nonNullGetFormState(state);\n var syncError = getIn(formState, form + '.syncError');\n if (syncError) {\n return false;\n }\n if (!ignoreSubmitErrors) {\n var error = getIn(formState, form + '.error');\n if (error) {\n return false;\n }\n }\n var syncErrors = getIn(formState, form + '.syncErrors');\n var asyncErrors = getIn(formState, form + '.asyncErrors');\n var submitErrors = ignoreSubmitErrors ? undefined : getIn(formState, form + '.submitErrors');\n if (!syncErrors && !asyncErrors && !submitErrors) {\n return true;\n }\n\n var registeredFields = getIn(formState, form + '.registeredFields');\n if (!registeredFields) {\n return true;\n }\n\n return !keys(registeredFields).filter(function (name) {\n return getIn(registeredFields, '[\\'' + name + '\\'].count') > 0;\n }).some(function (name) {\n return hasError(getIn(registeredFields, '[\\'' + name + '\\']'), syncErrors, asyncErrors, submitErrors);\n });\n };\n };\n};\n\nexport default createIsValid;","import _isEqualWith from 'lodash-es/isEqualWith';\nimport React from 'react';\n\n\nvar customizer = function customizer(obj, other) {\n if (obj === other) return true;\n\n if (!obj && !other) {\n var objIsEmpty = obj === null || obj === undefined || obj === '';\n var otherIsEmpty = other === null || other === undefined || other === '';\n return objIsEmpty === otherIsEmpty;\n }\n\n if (obj && other && obj._error !== other._error) return false;\n if (obj && other && obj._warning !== other._warning) return false;\n if (React.isValidElement(obj) || React.isValidElement(other)) return false;\n};\n\nvar deepEqual = function deepEqual(a, b) {\n return _isEqualWith(a, b, customizer);\n};\n\nexport default deepEqual;","import _toPath from 'lodash-es/toPath';\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\nfunction deleteInWithPath(state, first) {\n if (state === undefined || state === null || first === undefined || first === null) {\n return state;\n }\n\n for (var _len = arguments.length, rest = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n rest[_key - 2] = arguments[_key];\n }\n\n if (rest.length) {\n if (Array.isArray(state)) {\n if (isNaN(first)) {\n throw new Error('Must access array elements with a number, not \"' + String(first) + '\".');\n }\n var firstIndex = Number(first);\n if (firstIndex < state.length) {\n var result = deleteInWithPath.apply(undefined, [state && state[firstIndex]].concat(_toConsumableArray(rest)));\n if (result !== state[firstIndex]) {\n var copy = [].concat(_toConsumableArray(state));\n copy[firstIndex] = result;\n return copy;\n }\n }\n return state;\n }\n if (first in state) {\n var _result = deleteInWithPath.apply(undefined, [state && state[first]].concat(_toConsumableArray(rest)));\n return state[first] === _result ? state : _extends({}, state, _defineProperty({}, first, _result));\n }\n return state;\n }\n if (Array.isArray(state)) {\n if (isNaN(first)) {\n throw new Error('Cannot delete non-numerical index from an array. Given: \"' + String(first));\n }\n var _firstIndex = Number(first);\n if (_firstIndex < state.length) {\n var _copy = [].concat(_toConsumableArray(state));\n _copy.splice(_firstIndex, 1);\n return _copy;\n }\n return state;\n }\n if (first in state) {\n var _copy2 = _extends({}, state);\n delete _copy2[first];\n return _copy2;\n }\n return state;\n}\n\nvar deleteIn = function deleteIn(state, field) {\n return deleteInWithPath.apply(undefined, [state].concat(_toConsumableArray(_toPath(field))));\n};\n\nexport default deleteIn;","import _toPath from 'lodash-es/toPath';\n\n\nvar getIn = function getIn(state, field) {\n if (!state) {\n return state;\n }\n\n var path = _toPath(field);\n var length = path.length;\n if (!length) {\n return undefined;\n }\n\n var result = state;\n for (var i = 0; i < length && result; ++i) {\n result = result[path[i]];\n }\n\n return result;\n};\n\nexport default getIn;","import splice from './splice';\nimport getIn from './getIn';\nimport setIn from './setIn';\nimport deepEqual from './deepEqual';\nimport deleteIn from './deleteIn';\nimport keys from './keys';\n\n\nvar structure = {\n allowsArrayErrors: true,\n empty: {},\n emptyList: [],\n getIn: getIn,\n setIn: setIn,\n deepEqual: deepEqual,\n deleteIn: deleteIn,\n forEach: function forEach(items, callback) {\n return items.forEach(callback);\n },\n fromJS: function fromJS(value) {\n return value;\n },\n keys: keys,\n size: function size(array) {\n return array ? array.length : 0;\n },\n some: function some(items, callback) {\n return items.some(callback);\n },\n splice: splice,\n toJS: function toJS(value) {\n return value;\n }\n};\n\nexport default structure;","\n\nfunction keys(value) {\n if (!value) {\n return [];\n }\n\n if (Array.isArray(value)) {\n return value.map(function (i) {\n return i.name;\n });\n }\n\n return Object.keys(value);\n}\n\n\nexport default keys;","import _toPath from 'lodash-es/toPath';\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar setInWithPath = function setInWithPath(state, value, path, pathIndex) {\n if (pathIndex >= path.length) {\n return value;\n }\n\n var first = path[pathIndex];\n var firstState = state && (Array.isArray(state) ? state[Number(first)] : state[first]);\n var next = setInWithPath(firstState, value, path, pathIndex + 1);\n\n if (!state) {\n if (isNaN(first)) {\n return _defineProperty({}, first, next);\n }\n var initialized = [];\n initialized[parseInt(first, 10)] = next;\n return initialized;\n }\n\n if (Array.isArray(state)) {\n var copy = [].concat(state);\n copy[parseInt(first, 10)] = next;\n return copy;\n }\n\n return _extends({}, state, _defineProperty({}, first, next));\n};\n\nvar setIn = function setIn(state, field, value) {\n return setInWithPath(state, value, _toPath(field), 0);\n};\n\nexport default setIn;","function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\nvar splice = function splice(array, index, removeNum, value) {\n array = array || [];\n\n if (index < array.length) {\n if (value === undefined && !removeNum) {\n // inserting undefined\n var _copy2 = [].concat(_toConsumableArray(array));\n _copy2.splice(index, 0, true); // temporary placeholder\n _copy2[index] = undefined; // set to undefined\n return _copy2;\n }\n if (value != null) {\n var _copy3 = [].concat(_toConsumableArray(array));\n _copy3.splice(index, removeNum, value); // removing and adding\n return _copy3;\n }\n var _copy = [].concat(_toConsumableArray(array));\n _copy.splice(index, removeNum); // removing\n return _copy;\n }\n if (removeNum) {\n // trying to remove non-existant item: return original array\n return array;\n }\n // trying to add outside of range: just set value\n var copy = [].concat(_toConsumableArray(array));\n copy[index] = value;\n return copy;\n};\n\nexport default splice;","export var dataKey = 'text';","\n\nvar getDisplayName = function getDisplayName(Comp) {\n return Comp.displayName || Comp.name || 'Component';\n};\n\n\nexport default getDisplayName;","var isHotReloading = function isHotReloading() {\n return !!(typeof module !== 'undefined' && module.hot && typeof module.hot.status === 'function' && module.hot.status() === 'apply');\n};\n\nexport default isHotReloading;","\n\nvar formatName = function formatName(_ref, name) {\n var sectionPrefix = _ref._reduxForm.sectionPrefix;\n return sectionPrefix ? sectionPrefix + '.' + name : name;\n};\n\n\nexport default formatName;","import _isEqualWith from 'lodash-es/isEqualWith';\n\n\nvar customizer = function customizer(objectValue, otherValue, indexOrkey, object, other, stack) {\n // https://lodash.com/docs/4.17.4#isEqualWith\n if (stack) {\n // Shallow compares\n // For 1st level, stack === undefined.\n // -> Do nothing (and implicitly return undefined so that it goes to compare 2nd level)\n // For 2nd level and up, stack !== undefined.\n // -> Compare by === operator\n return objectValue === otherValue;\n }\n};\n\nvar shallowCompare = function shallowCompare(instance, nextProps, nextState) {\n var propsEqual = _isEqualWith(instance.props, nextProps, customizer);\n var stateEqual = _isEqualWith(instance.state, nextState, customizer);\n\n return !propsEqual || !stateEqual;\n};\n\nexport default shallowCompare;","import createValues from './createValues';\nimport plain from './structure/plain';\n\nexport default createValues(plain);","import $$observable from 'symbol-observable';\n\n/**\n * These are private action types reserved by Redux.\n * For any unknown actions, you must return the current state.\n * If the current state is undefined, you must return the initial state.\n * Do not reference these action types directly in your code.\n */\nvar ActionTypes = {\n INIT: '@@redux/INIT' + Math.random().toString(36).substring(7).split('').join('.'),\n REPLACE: '@@redux/REPLACE' + Math.random().toString(36).substring(7).split('').join('.')\n};\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n} : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n};\n\nvar _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n\n/**\n * @param {any} obj The object to inspect.\n * @returns {boolean} True if the argument appears to be a plain object.\n */\nfunction isPlainObject(obj) {\n if ((typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) !== 'object' || obj === null) return false;\n\n var proto = obj;\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n\n return Object.getPrototypeOf(obj) === proto;\n}\n\n/**\n * Creates a Redux store that holds the state tree.\n * The only way to change the data in the store is to call `dispatch()` on it.\n *\n * There should only be a single store in your app. To specify how different\n * parts of the state tree respond to actions, you may combine several reducers\n * into a single reducer function by using `combineReducers`.\n *\n * @param {Function} reducer A function that returns the next state tree, given\n * the current state tree and the action to handle.\n *\n * @param {any} [preloadedState] The initial state. You may optionally specify it\n * to hydrate the state from the server in universal apps, or to restore a\n * previously serialized user session.\n * If you use `combineReducers` to produce the root reducer function, this must be\n * an object with the same shape as `combineReducers` keys.\n *\n * @param {Function} [enhancer] The store enhancer. You may optionally specify it\n * to enhance the store with third-party capabilities such as middleware,\n * time travel, persistence, etc. The only store enhancer that ships with Redux\n * is `applyMiddleware()`.\n *\n * @returns {Store} A Redux store that lets you read the state, dispatch actions\n * and subscribe to changes.\n */\nfunction createStore(reducer, preloadedState, enhancer) {\n var _ref2;\n\n if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {\n enhancer = preloadedState;\n preloadedState = undefined;\n }\n\n if (typeof enhancer !== 'undefined') {\n if (typeof enhancer !== 'function') {\n throw new Error('Expected the enhancer to be a function.');\n }\n\n return enhancer(createStore)(reducer, preloadedState);\n }\n\n if (typeof reducer !== 'function') {\n throw new Error('Expected the reducer to be a function.');\n }\n\n var currentReducer = reducer;\n var currentState = preloadedState;\n var currentListeners = [];\n var nextListeners = currentListeners;\n var isDispatching = false;\n\n function ensureCanMutateNextListeners() {\n if (nextListeners === currentListeners) {\n nextListeners = currentListeners.slice();\n }\n }\n\n /**\n * Reads the state tree managed by the store.\n *\n * @returns {any} The current state tree of your application.\n */\n function getState() {\n if (isDispatching) {\n throw new Error('You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');\n }\n\n return currentState;\n }\n\n /**\n * Adds a change listener. It will be called any time an action is dispatched,\n * and some part of the state tree may potentially have changed. You may then\n * call `getState()` to read the current state tree inside the callback.\n *\n * You may call `dispatch()` from a change listener, with the following\n * caveats:\n *\n * 1. The subscriptions are snapshotted just before every `dispatch()` call.\n * If you subscribe or unsubscribe while the listeners are being invoked, this\n * will not have any effect on the `dispatch()` that is currently in progress.\n * However, the next `dispatch()` call, whether nested or not, will use a more\n * recent snapshot of the subscription list.\n *\n * 2. The listener should not expect to see all state changes, as the state\n * might have been updated multiple times during a nested `dispatch()` before\n * the listener is called. It is, however, guaranteed that all subscribers\n * registered before the `dispatch()` started will be called with the latest\n * state by the time it exits.\n *\n * @param {Function} listener A callback to be invoked on every dispatch.\n * @returns {Function} A function to remove this change listener.\n */\n function subscribe(listener) {\n if (typeof listener !== 'function') {\n throw new Error('Expected the listener to be a function.');\n }\n\n if (isDispatching) {\n throw new Error('You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api-reference/store#subscribe(listener) for more details.');\n }\n\n var isSubscribed = true;\n\n ensureCanMutateNextListeners();\n nextListeners.push(listener);\n\n return function unsubscribe() {\n if (!isSubscribed) {\n return;\n }\n\n if (isDispatching) {\n throw new Error('You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api-reference/store#subscribe(listener) for more details.');\n }\n\n isSubscribed = false;\n\n ensureCanMutateNextListeners();\n var index = nextListeners.indexOf(listener);\n nextListeners.splice(index, 1);\n };\n }\n\n /**\n * Dispatches an action. It is the only way to trigger a state change.\n *\n * The `reducer` function, used to create the store, will be called with the\n * current state tree and the given `action`. Its return value will\n * be considered the **next** state of the tree, and the change listeners\n * will be notified.\n *\n * The base implementation only supports plain object actions. If you want to\n * dispatch a Promise, an Observable, a thunk, or something else, you need to\n * wrap your store creating function into the corresponding middleware. For\n * example, see the documentation for the `redux-thunk` package. Even the\n * middleware will eventually dispatch plain object actions using this method.\n *\n * @param {Object} action A plain object representing “what changed”. It is\n * a good idea to keep actions serializable so you can record and replay user\n * sessions, or use the time travelling `redux-devtools`. An action must have\n * a `type` property which may not be `undefined`. It is a good idea to use\n * string constants for action types.\n *\n * @returns {Object} For convenience, the same action object you dispatched.\n *\n * Note that, if you use a custom middleware, it may wrap `dispatch()` to\n * return something else (for example, a Promise you can await).\n */\n function dispatch(action) {\n if (!isPlainObject(action)) {\n throw new Error('Actions must be plain objects. ' + 'Use custom middleware for async actions.');\n }\n\n if (typeof action.type === 'undefined') {\n throw new Error('Actions may not have an undefined \"type\" property. ' + 'Have you misspelled a constant?');\n }\n\n if (isDispatching) {\n throw new Error('Reducers may not dispatch actions.');\n }\n\n try {\n isDispatching = true;\n currentState = currentReducer(currentState, action);\n } finally {\n isDispatching = false;\n }\n\n var listeners = currentListeners = nextListeners;\n for (var i = 0; i < listeners.length; i++) {\n var listener = listeners[i];\n listener();\n }\n\n return action;\n }\n\n /**\n * Replaces the reducer currently used by the store to calculate the state.\n *\n * You might need this if your app implements code splitting and you want to\n * load some of the reducers dynamically. You might also need this if you\n * implement a hot reloading mechanism for Redux.\n *\n * @param {Function} nextReducer The reducer for the store to use instead.\n * @returns {void}\n */\n function replaceReducer(nextReducer) {\n if (typeof nextReducer !== 'function') {\n throw new Error('Expected the nextReducer to be a function.');\n }\n\n currentReducer = nextReducer;\n dispatch({ type: ActionTypes.REPLACE });\n }\n\n /**\n * Interoperability point for observable/reactive libraries.\n * @returns {observable} A minimal observable of state changes.\n * For more information, see the observable proposal:\n * https://github.com/tc39/proposal-observable\n */\n function observable() {\n var _ref;\n\n var outerSubscribe = subscribe;\n return _ref = {\n /**\n * The minimal observable subscription method.\n * @param {Object} observer Any object that can be used as an observer.\n * The observer object should have a `next` method.\n * @returns {subscription} An object with an `unsubscribe` method that can\n * be used to unsubscribe the observable from the store, and prevent further\n * emission of values from the observable.\n */\n subscribe: function subscribe(observer) {\n if ((typeof observer === 'undefined' ? 'undefined' : _typeof(observer)) !== 'object' || observer === null) {\n throw new TypeError('Expected the observer to be an object.');\n }\n\n function observeState() {\n if (observer.next) {\n observer.next(getState());\n }\n }\n\n observeState();\n var unsubscribe = outerSubscribe(observeState);\n return { unsubscribe: unsubscribe };\n }\n }, _ref[$$observable] = function () {\n return this;\n }, _ref;\n }\n\n // When a store is created, an \"INIT\" action is dispatched so that every\n // reducer returns their initial state. This effectively populates\n // the initial state tree.\n dispatch({ type: ActionTypes.INIT });\n\n return _ref2 = {\n dispatch: dispatch,\n subscribe: subscribe,\n getState: getState,\n replaceReducer: replaceReducer\n }, _ref2[$$observable] = observable, _ref2;\n}\n\n/**\n * Prints a warning in the console if it exists.\n *\n * @param {String} message The warning message.\n * @returns {void}\n */\nfunction warning(message) {\n /* eslint-disable no-console */\n if (typeof console !== 'undefined' && typeof console.error === 'function') {\n console.error(message);\n }\n /* eslint-enable no-console */\n try {\n // This error was thrown as a convenience so that if you enable\n // \"break on all exceptions\" in your console,\n // it would pause the execution at this line.\n throw new Error(message);\n } catch (e) {} // eslint-disable-line no-empty\n}\n\nfunction getUndefinedStateErrorMessage(key, action) {\n var actionType = action && action.type;\n var actionDescription = actionType && 'action \"' + String(actionType) + '\"' || 'an action';\n\n return 'Given ' + actionDescription + ', reducer \"' + key + '\" returned undefined. ' + 'To ignore an action, you must explicitly return the previous state. ' + 'If you want this reducer to hold no value, you can return null instead of undefined.';\n}\n\nfunction getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {\n var reducerKeys = Object.keys(reducers);\n var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';\n\n if (reducerKeys.length === 0) {\n return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';\n }\n\n if (!isPlainObject(inputState)) {\n return 'The ' + argumentName + ' has unexpected type of \"' + {}.toString.call(inputState).match(/\\s([a-z|A-Z]+)/)[1] + '\". Expected argument to be an object with the following ' + ('keys: \"' + reducerKeys.join('\", \"') + '\"');\n }\n\n var unexpectedKeys = Object.keys(inputState).filter(function (key) {\n return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key];\n });\n\n unexpectedKeys.forEach(function (key) {\n unexpectedKeyCache[key] = true;\n });\n\n if (action && action.type === ActionTypes.REPLACE) return;\n\n if (unexpectedKeys.length > 0) {\n return 'Unexpected ' + (unexpectedKeys.length > 1 ? 'keys' : 'key') + ' ' + ('\"' + unexpectedKeys.join('\", \"') + '\" found in ' + argumentName + '. ') + 'Expected to find one of the known reducer keys instead: ' + ('\"' + reducerKeys.join('\", \"') + '\". Unexpected keys will be ignored.');\n }\n}\n\nfunction assertReducerShape(reducers) {\n Object.keys(reducers).forEach(function (key) {\n var reducer = reducers[key];\n var initialState = reducer(undefined, { type: ActionTypes.INIT });\n\n if (typeof initialState === 'undefined') {\n throw new Error('Reducer \"' + key + '\" returned undefined during initialization. ' + 'If the state passed to the reducer is undefined, you must ' + 'explicitly return the initial state. The initial state may ' + 'not be undefined. If you don\\'t want to set a value for this reducer, ' + 'you can use null instead of undefined.');\n }\n\n var type = '@@redux/PROBE_UNKNOWN_ACTION_' + Math.random().toString(36).substring(7).split('').join('.');\n if (typeof reducer(undefined, { type: type }) === 'undefined') {\n throw new Error('Reducer \"' + key + '\" returned undefined when probed with a random type. ' + ('Don\\'t try to handle ' + ActionTypes.INIT + ' or other actions in \"redux/*\" ') + 'namespace. They are considered private. Instead, you must return the ' + 'current state for any unknown actions, unless it is undefined, ' + 'in which case you must return the initial state, regardless of the ' + 'action type. The initial state may not be undefined, but can be null.');\n }\n });\n}\n\n/**\n * Turns an object whose values are different reducer functions, into a single\n * reducer function. It will call every child reducer, and gather their results\n * into a single state object, whose keys correspond to the keys of the passed\n * reducer functions.\n *\n * @param {Object} reducers An object whose values correspond to different\n * reducer functions that need to be combined into one. One handy way to obtain\n * it is to use ES6 `import * as reducers` syntax. The reducers may never return\n * undefined for any action. Instead, they should return their initial state\n * if the state passed to them was undefined, and the current state for any\n * unrecognized action.\n *\n * @returns {Function} A reducer function that invokes every reducer inside the\n * passed object, and builds a state object with the same shape.\n */\nfunction combineReducers(reducers) {\n var reducerKeys = Object.keys(reducers);\n var finalReducers = {};\n for (var i = 0; i < reducerKeys.length; i++) {\n var key = reducerKeys[i];\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof reducers[key] === 'undefined') {\n warning('No reducer provided for key \"' + key + '\"');\n }\n }\n\n if (typeof reducers[key] === 'function') {\n finalReducers[key] = reducers[key];\n }\n }\n var finalReducerKeys = Object.keys(finalReducers);\n\n var unexpectedKeyCache = void 0;\n if (process.env.NODE_ENV !== 'production') {\n unexpectedKeyCache = {};\n }\n\n var shapeAssertionError = void 0;\n try {\n assertReducerShape(finalReducers);\n } catch (e) {\n shapeAssertionError = e;\n }\n\n return function combination() {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var action = arguments[1];\n\n if (shapeAssertionError) {\n throw shapeAssertionError;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);\n if (warningMessage) {\n warning(warningMessage);\n }\n }\n\n var hasChanged = false;\n var nextState = {};\n for (var _i = 0; _i < finalReducerKeys.length; _i++) {\n var _key = finalReducerKeys[_i];\n var reducer = finalReducers[_key];\n var previousStateForKey = state[_key];\n var nextStateForKey = reducer(previousStateForKey, action);\n if (typeof nextStateForKey === 'undefined') {\n var errorMessage = getUndefinedStateErrorMessage(_key, action);\n throw new Error(errorMessage);\n }\n nextState[_key] = nextStateForKey;\n hasChanged = hasChanged || nextStateForKey !== previousStateForKey;\n }\n return hasChanged ? nextState : state;\n };\n}\n\nfunction bindActionCreator(actionCreator, dispatch) {\n return function () {\n return dispatch(actionCreator.apply(this, arguments));\n };\n}\n\n/**\n * Turns an object whose values are action creators, into an object with the\n * same keys, but with every function wrapped into a `dispatch` call so they\n * may be invoked directly. This is just a convenience method, as you can call\n * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.\n *\n * For convenience, you can also pass a single function as the first argument,\n * and get a function in return.\n *\n * @param {Function|Object} actionCreators An object whose values are action\n * creator functions. One handy way to obtain it is to use ES6 `import * as`\n * syntax. You may also pass a single function.\n *\n * @param {Function} dispatch The `dispatch` function available on your Redux\n * store.\n *\n * @returns {Function|Object} The object mimicking the original object, but with\n * every action creator wrapped into the `dispatch` call. If you passed a\n * function as `actionCreators`, the return value will also be a single\n * function.\n */\nfunction bindActionCreators(actionCreators, dispatch) {\n if (typeof actionCreators === 'function') {\n return bindActionCreator(actionCreators, dispatch);\n }\n\n if ((typeof actionCreators === 'undefined' ? 'undefined' : _typeof(actionCreators)) !== 'object' || actionCreators === null) {\n throw new Error('bindActionCreators expected an object or a function, instead received ' + (actionCreators === null ? 'null' : typeof actionCreators === 'undefined' ? 'undefined' : _typeof(actionCreators)) + '. ' + 'Did you write \"import ActionCreators from\" instead of \"import * as ActionCreators from\"?');\n }\n\n var keys = Object.keys(actionCreators);\n var boundActionCreators = {};\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n var actionCreator = actionCreators[key];\n if (typeof actionCreator === 'function') {\n boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);\n }\n }\n return boundActionCreators;\n}\n\n/**\n * Composes single-argument functions from right to left. The rightmost\n * function can take multiple arguments as it provides the signature for\n * the resulting composite function.\n *\n * @param {...Function} funcs The functions to compose.\n * @returns {Function} A function obtained by composing the argument functions\n * from right to left. For example, compose(f, g, h) is identical to doing\n * (...args) => f(g(h(...args))).\n */\n\nfunction compose() {\n for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n if (funcs.length === 0) {\n return function (arg) {\n return arg;\n };\n }\n\n if (funcs.length === 1) {\n return funcs[0];\n }\n\n return funcs.reduce(function (a, b) {\n return function () {\n return a(b.apply(undefined, arguments));\n };\n });\n}\n\n/**\n * Creates a store enhancer that applies middleware to the dispatch method\n * of the Redux store. This is handy for a variety of tasks, such as expressing\n * asynchronous actions in a concise manner, or logging every action payload.\n *\n * See `redux-thunk` package as an example of the Redux middleware.\n *\n * Because middleware is potentially asynchronous, this should be the first\n * store enhancer in the composition chain.\n *\n * Note that each middleware will be given the `dispatch` and `getState` functions\n * as named arguments.\n *\n * @param {...Function} middlewares The middleware chain to be applied.\n * @returns {Function} A store enhancer applying the middleware.\n */\nfunction applyMiddleware() {\n for (var _len = arguments.length, middlewares = Array(_len), _key = 0; _key < _len; _key++) {\n middlewares[_key] = arguments[_key];\n }\n\n return function (createStore) {\n return function () {\n for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n var store = createStore.apply(undefined, args);\n var _dispatch = function dispatch() {\n throw new Error('Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');\n };\n\n var middlewareAPI = {\n getState: store.getState,\n dispatch: function dispatch() {\n return _dispatch.apply(undefined, arguments);\n }\n };\n var chain = middlewares.map(function (middleware) {\n return middleware(middlewareAPI);\n });\n _dispatch = compose.apply(undefined, chain)(store.dispatch);\n\n return _extends({}, store, {\n dispatch: _dispatch\n });\n };\n };\n}\n\n/*\n * This is a dummy function to check if the function name has been altered by minification.\n * If the function has been minified and NODE_ENV !== 'production', warn the user.\n */\nfunction isCrushed() {}\n\nif (process.env.NODE_ENV !== 'production' && typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {\n warning(\"You are currently using minified code outside of NODE_ENV === 'production'. \" + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or DefinePlugin for webpack (http://stackoverflow.com/questions/30030031) ' + 'to ensure you have the correct code for your production build.');\n}\n\nexport { createStore, combineReducers, bindActionCreators, applyMiddleware, compose, ActionTypes as __DO_NOT_USE__ActionTypes };\n","/* global window */\nimport ponyfill from './ponyfill.js';\n\nvar root;\n\nif (typeof self !== 'undefined') {\n root = self;\n} else if (typeof window !== 'undefined') {\n root = window;\n} else if (typeof global !== 'undefined') {\n root = global;\n} else if (typeof module !== 'undefined') {\n root = module;\n} else {\n root = Function('return this')();\n}\n\nvar result = ponyfill(root);\nexport default result;\n","export default function symbolObservablePonyfill(root) {\n\tvar result;\n\tvar Symbol = root.Symbol;\n\n\tif (typeof Symbol === 'function') {\n\t\tif (Symbol.observable) {\n\t\t\tresult = Symbol.observable;\n\t\t} else {\n\t\t\tresult = Symbol('observable');\n\t\t\tSymbol.observable = result;\n\t\t}\n\t} else {\n\t\tresult = '@@observable';\n\t}\n\n\treturn result;\n};\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || Function(\"return this\")() || (1, eval)(\"this\");\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","module.exports = function(module) {\n\tif (!module.webpackPolyfill) {\n\t\tmodule.deprecate = function() {};\n\t\tmodule.paths = [];\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n"],"sourceRoot":""}