UNPKG

rc-form

Version:
1 lines 73.6 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports["rc-form"]=e(require("react"),require("react-dom")):t["rc-form"]=e(t.React,t.ReactDOM)}(this,function(t,e){return function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};return e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=198)}([function(t,e,r){"use strict";function n(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=1,i=e[0],o=e.length;if("function"==typeof i)return i.apply(null,e.slice(1));if("string"==typeof i){for(var a=String(i).replace(y,function(t){if("%%"===t)return"%";if(n>=o)return t;switch(t){case"%s":return String(e[n++]);case"%d":return Number(e[n++]);case"%j":try{return JSON.stringify(e[n++])}catch(t){return"[Circular]"}break;default:return t}}),u=e[n];n<o;u=e[++n])a+=" "+u;return a}return i}function i(t){return"string"===t||"url"===t||"hex"===t||"email"===t||"pattern"===t}function o(t,e){return void 0===t||null===t||(!("array"!==e||!Array.isArray(t)||t.length)||!(!i(e)||"string"!=typeof t||t))}function a(t,e,r){function n(t){i.push.apply(i,t),++o===a&&r(i)}var i=[],o=0,a=t.length;t.forEach(function(t){e(t,n)})}function u(t,e,r){function n(a){if(a&&a.length)return void r(a);var u=i;i+=1,u<o?e(t[u],n):r([])}var i=0,o=t.length;n([])}function s(t){var e=[];return Object.keys(t).forEach(function(r){e.push.apply(e,t[r])}),e}function f(t,e,r,n){if(e.first){return u(s(t),r,n)}var i=e.firstFields||[];!0===i&&(i=Object.keys(t));var o=Object.keys(t),f=o.length,l=0,c=[],d=function(t){c.push.apply(c,t),++l===f&&n(c)};o.forEach(function(e){var n=t[e];-1!==i.indexOf(e)?u(n,r,d):a(n,r,d)})}function l(t){return function(e){return e&&e.message?(e.field=e.field||t.fullField,e):{message:e,field:e.field||t.fullField}}}function c(t,e){if(e)for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];"object"===(void 0===n?"undefined":h()(n))&&"object"===h()(t[r])?t[r]=p()({},t[r],n):t[r]=n}return t}r.d(e,"c",function(){return g}),e.e=n,e.f=o,e.b=f,e.d=l,e.a=c;var d=r(6),p=r.n(d),v=r(9),h=r.n(v),y=/%[sdj%]/g,g=function(){}},function(t,e,r){"use strict";var n=r(48),i=r(77),o=r(76),a=r(75),u=r(73),s=r(74);e.a={required:n.a,whitespace:i.a,type:o.a,range:a.a,enum:u.a,pattern:s.a}},function(t,e,r){var n=r(33)("wks"),i=r(21),o=r(4).Symbol,a="function"==typeof o;(t.exports=function(t){return n[t]||(n[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=n},function(t,e){var r=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=r)},function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e,r){var n=r(12),i=r(56),o=r(36),a=Object.defineProperty;e.f=r(7)?Object.defineProperty:function(t,e,r){if(n(t),e=o(e,!0),n(r),i)try{return a(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(97),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=i.default||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}},function(t,e,r){t.exports=!r(14)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(99),o=n(i),a=r(98),u=n(a),s="function"==typeof u.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":typeof t};e.default="function"==typeof u.default&&"symbol"===s(o.default)?function(t){return void 0===t?"undefined":s(t)}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":void 0===t?"undefined":s(t)}},function(t,e,r){var n=r(5),i=r(17);t.exports=r(7)?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){var n=r(57),i=r(28);t.exports=function(t){return n(i(t))}},function(t,e,r){var n=r(15);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e,r){var n=r(4),i=r(3),o=r(54),a=r(10),u=r(8),s=function(t,e,r){var f,l,c,d=t&s.F,p=t&s.G,v=t&s.S,h=t&s.P,y=t&s.B,g=t&s.W,m=p?i:i[e]||(i[e]={}),b=m.prototype,F=p?n:v?n[e]:(n[e]||{}).prototype;p&&(r=e);for(f in r)(l=!d&&F&&void 0!==F[f])&&u(m,f)||(c=l?F[f]:r[f],m[f]=p&&"function"!=typeof F[f]?r[f]:y&&l?o(c,n):g&&F[f]==c?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(c):h&&"function"==typeof c?o(Function.call,c):c,h&&((m.virtual||(m.virtual={}))[f]=c,t&s.R&&b&&!b[f]&&a(b,f,c)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports={}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports=!0},function(t,e,r){var n=r(61),i=r(29);t.exports=Object.keys||function(t){return n(t,i)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},function(t,e,r){function n(t,e){for(var r=t.length;r--;)if(i(t[r][0],e))return r;return-1}var i=r(66);t.exports=n},function(t,e,r){function n(t,e){var r=t.__data__;return i(e)?r["string"==typeof e?"string":"hash"]:r.map}var i=r(172);t.exports=n},function(t,e,r){var n=r(42),i=n(Object,"create");t.exports=i},function(t,e){var r=Array.isArray;t.exports=r},function(t,e,r){"use strict";function n(t){return t.displayName||t.name||"WrappedComponent"}function i(t,e){return t.displayName="Form("+n(e)+")",t.WrappedComponent=e,w()(t,e)}function o(t){return t}function a(t){return Array.prototype.concat.apply([],t)}function u(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments[1],r=arguments[2],n=arguments[3],i=arguments[4];if(r(t,e))i(t,e);else{if(void 0===e||null===e)return;if(Array.isArray(e))e.forEach(function(e,o){return u(t+"["+o+"]",e,r,n,i)});else{if("object"!==(void 0===e?"undefined":F()(e)))return void O()(!1,n);Object.keys(e).forEach(function(o){var a=e[o];u(t+(t?".":"")+o,a,r,n,i)})}}}function s(t,e,r){var n={};return u(void 0,t,e,r,function(t,e){n[t]=e}),n}function f(t,e,r){var n=t.map(function(t){var e=m()({},t,{trigger:t.trigger||[]});return"string"==typeof e.trigger&&(e.trigger=[e.trigger]),e});return e&&n.push({trigger:r?[].concat(r):[],rules:e}),n}function l(t){return t.filter(function(t){return!!t.rules&&t.rules.length}).map(function(t){return t.trigger}).reduce(function(t,e){return t.concat(e)},[])}function c(t){if(!t||!t.target)return t;var e=t.target;return"checkbox"===e.type?e.checked:e.value}function d(t){return t?t.map(function(t){return t&&t.message?t.message:t}):t}function p(t,e,r){var n=t,i=e,o=r;return void 0===r&&("function"==typeof n?(o=n,i={},n=void 0):Array.isArray(n)?"function"==typeof i?(o=i,i={}):i=i||{}:(o=i,i=n||{},n=void 0)),{names:n,options:i,callback:o}}function v(t){return 0===Object.keys(t).length}function h(t){return!!t&&t.some(function(t){return t.rules&&t.rules.length})}function y(t,e){return 0===t.lastIndexOf(e,0)}e.i=i,e.a=o,e.f=a,e.j=s,e.d=f,e.e=l,e.b=c,e.l=d,e.h=p,e.g=v,e.c=h,e.k=y;var g=r(6),m=r.n(g),b=r(9),F=r.n(b),x=r(146),w=r.n(x),_=r(68),O=r.n(_)},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){var n=r(5).f,i=r(8),o=r(2)("toStringTag");t.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},function(t,e,r){var n=r(33)("keys"),i=r(21);t.exports=function(t){return n[t]||(n[t]=i(t))}},function(t,e,r){var n=r(3),i=r(4),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r(18)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e,r){var n=r(28);t.exports=function(t){return Object(n(t))}},function(t,e,r){var n=r(15);t.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e,r){var n=r(4),i=r(3),o=r(18),a=r(38),u=r(5).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||u(e,t,{value:a.f(t)})}},function(t,e,r){e.f=r(2)},function(t,e,r){var n=r(43),i=n.Symbol;t.exports=i},function(t,e,r){function n(t){return null==t?void 0===t?s:u:f&&f in Object(t)?o(t):a(t)}var i=r(39),o=r(163),a=r(185),u="[object Null]",s="[object Undefined]",f=i?i.toStringTag:void 0;t.exports=n},function(t,e,r){function n(t,e){return i(t)?t:o(t,e)?[t]:a(u(t))}var i=r(25),o=r(171),a=r(186),u=r(194);t.exports=n},function(t,e,r){function n(t,e){var r=o(t,e);return i(r)?r:void 0}var i=r(157),o=r(164);t.exports=n},function(t,e,r){var n=r(162),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();t.exports=o},function(t,e,r){function n(t){if("string"==typeof t||i(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}var i=r(47),o=1/0;t.exports=n},function(t,e){function r(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=r},function(t,e){function r(t){return null!=t&&"object"==typeof t}t.exports=r},function(t,e,r){function n(t){return"symbol"==typeof t||o(t)&&i(t)==a}var i=r(40),o=r(46),a="[object Symbol]";t.exports=n},function(t,e,r){"use strict";function n(t,e,r,n,o,a){!t.required||r.hasOwnProperty(t.field)&&!i.f(e,a||t.type)||n.push(i.e(o.messages.required,t.fullField))}var i=r(0);e.a=n},function(t,e,r){"use strict";function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=t.validateMessages,i=t.onFieldsChange,a=t.onValuesChange,s=t.mapProps,l=void 0===s?S.a:s,d=t.mapPropsToFields,v=t.fieldNameProp,y=t.fieldMetaProp,b=t.fieldDataProp,F=t.formPropName,w=void 0===F?"form":F,j=t.withRef;return function(t){var s=g()({displayName:"Form",mixins:e,getInitialState:function(){var t=this,e=d&&d(this.props);return this.fieldsStore=r.i(O.a)(e||{}),this.instances={},this.cachedBind={},this.clearedFieldMetaCache={},["getFieldsValue","getFieldValue","setFieldsInitialValue","getFieldsError","getFieldError","isFieldValidating","isFieldsValidating","isFieldsTouched","isFieldTouched"].forEach(function(e){return t[e]=function(){var r;return(r=t.fieldsStore)[e].apply(r,arguments)}}),{submitting:!1}},componentWillReceiveProps:function(t){d&&this.fieldsStore.updateFields(d(t))},onCollectCommon:function(t,e,r){var n=this.fieldsStore.getFieldMeta(t);if(n[e])n[e].apply(n,p()(r));else if(n.originalProps&&n.originalProps[e]){var i;(i=n.originalProps)[e].apply(i,p()(r))}var o=n.getValueFromEvent?n.getValueFromEvent.apply(n,p()(r)):S.b.apply(void 0,p()(r));if(a&&o!==this.fieldsStore.getFieldValue(t)){var u=this.fieldsStore.getAllValues(),s={};u[t]=o,Object.keys(u).forEach(function(t){return _()(s,t,u[t])}),a(this.props,_()({},t,o),s)}var f=this.fieldsStore.getField(t);return{name:t,field:c()({},f,{value:o,touched:!0}),fieldMeta:n}},onCollect:function(t,e){for(var n=arguments.length,i=Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];var a=this.onCollectCommon(t,e,i),u=a.name,s=a.field,l=a.fieldMeta,d=l.validate,p=c()({},s,{dirty:r.i(S.c)(d)});this.setFields(f()({},u,p))},onCollectValidate:function(t,e){for(var r=arguments.length,n=Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];var o=this.onCollectCommon(t,e,n),a=o.field,u=o.fieldMeta,s=c()({},a,{dirty:!0});this.validateFieldsInternal([s],{action:e,options:{firstFields:!!u.validateFirst}})},getCacheBind:function(t,e,r){this.cachedBind[t]||(this.cachedBind[t]={});var n=this.cachedBind[t];return n[e]||(n[e]=r.bind(this,t,e)),n[e]},recoverClearedField:function(t){this.clearedFieldMetaCache[t]&&(this.fieldsStore.setFields(f()({},t,this.clearedFieldMetaCache[t].field)),this.fieldsStore.setFieldMeta(t,this.clearedFieldMetaCache[t].meta),delete this.clearedFieldMetaCache[t])},getFieldDecorator:function(t,e){var r=this,n=this.getFieldProps(t,e);return function(e){var i=r.fieldsStore.getFieldMeta(t),o=e.props;return i.originalProps=o,i.ref=e.ref,h.a.cloneElement(e,c()({},n,r.fieldsStore.getFieldValuePropValue(i)))}},getFieldProps:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)throw new Error("Must call `getFieldProps` with valid name string!");delete this.clearedFieldMetaCache[t];var i=c()({name:t,trigger:E,valuePropName:"value",validate:[]},n),o=i.rules,a=i.trigger,u=i.validateTrigger,s=void 0===u?a:u,f=i.validate,l=this.fieldsStore.getFieldMeta(t);"initialValue"in i&&(l.initialValue=i.initialValue);var d=c()({},this.fieldsStore.getFieldValuePropValue(i),{ref:this.getCacheBind(t,t+"__ref",this.saveRef)});v&&(d[v]=t);var p=r.i(S.d)(f,o,s),h=r.i(S.e)(p);h.forEach(function(r){d[r]||(d[r]=e.getCacheBind(t,r,e.onCollectValidate))}),a&&-1===h.indexOf(a)&&(d[a]=this.getCacheBind(t,a,this.onCollect));var g=c()({},l,i,{validate:p});return this.fieldsStore.setFieldMeta(t,g),y&&(d[y]=g),b&&(d[b]=this.fieldsStore.getField(t)),d},getFieldInstance:function(t){return this.instances[t]},getRules:function(t,e){var n=t.validate.filter(function(t){return!e||t.trigger.indexOf(e)>=0}).map(function(t){return t.rules});return r.i(S.f)(n)},setFields:function(t,e){var r=this,n=this.fieldsStore.flattenRegisteredFields(t);if(this.fieldsStore.setFields(n),i){var o=Object.keys(n).reduce(function(t,e){return _()(t,e,r.fieldsStore.getField(e))},{});i(this.props,o,this.fieldsStore.getNestedAllFields())}this.forceUpdate(e)},resetFields:function(t){var e=this,r=this.fieldsStore.resetFields(t);if(Object.keys(r).length>0&&this.setFields(r),t){(Array.isArray(t)?t:[t]).forEach(function(t){return delete e.clearedFieldMetaCache[t]})}else this.clearedFieldMetaCache={}},setFieldsValue:function(t,e){var r=this.fieldsStore.fieldsMeta,n=this.fieldsStore.flattenRegisteredFields(t),i=Object.keys(n).reduce(function(t,e){var i=r[e];if(i){var o=n[e];t[e]={value:o}}return t},{});if(this.setFields(i,e),a){var o=this.fieldsStore.getAllValues();a(this.props,t,o)}},saveRef:function(t,e,r){if(!r)return this.clearedFieldMetaCache[t]={field:this.fieldsStore.getField(t),meta:this.fieldsStore.getFieldMeta(t)},this.fieldsStore.clearField(t),delete this.instances[t],void delete this.cachedBind[t];this.recoverClearedField(t);var n=this.fieldsStore.getFieldMeta(t);if(n){var i=n.ref;if(i){if("string"==typeof i)throw new Error("can not set ref string for "+t);i(r)}}this.instances[t]=r},validateFieldsInternal:function(t,e,i){var o=this,a=e.fieldNames,s=e.action,f=e.options,l=void 0===f?{}:f,d={},p={},v={},h={};if(t.forEach(function(t){var e=t.name;if(!0!==l.force&&!1===t.dirty)return void(t.errors&&_()(h,e,{errors:t.errors}));var r=o.fieldsStore.getFieldMeta(e),n=c()({},t);n.errors=void 0,n.validating=!0,n.dirty=!0,d[e]=o.getRules(r,s),p[e]=n.value,v[e]=n}),this.setFields(v),Object.keys(p).forEach(function(t){p[t]=o.fieldsStore.getFieldValue(t)}),i&&r.i(S.g)(v))return void i(r.i(S.g)(h)?null:h,this.fieldsStore.getFieldsValue(a));var y=new m.a(d);n&&y.messages(n),y.validate(p,l,function(t){var e=c()({},h);t&&t.length&&t.forEach(function(t){var r=t.field,n=x()(e,r);("object"!==(void 0===n?"undefined":u()(n))||Array.isArray(n))&&_()(e,r,{errors:[]}),x()(e,r.concat(".errors")).push(t)});var n=[],s={};Object.keys(d).forEach(function(t){var r=x()(e,t),i=o.fieldsStore.getField(t);i.value!==p[t]?n.push({name:t}):(i.errors=r&&r.errors,i.value=p[t],i.validating=!1,i.dirty=!1,s[t]=i)}),o.setFields(s),i&&(n.length&&n.forEach(function(t){var r=t.name,n=[{message:r+" need to revalidate",field:r}];_()(e,r,{expired:!0,errors:n})}),i(r.i(S.g)(e)?null:e,o.fieldsStore.getFieldsValue(a)))})},validateFields:function(t,e,n){var i=this,o=r.i(S.h)(t,e,n),a=o.names,u=o.callback,s=o.options,f=a?this.fieldsStore.getValidFieldsFullName(a):this.fieldsStore.getValidFieldsName(),l=f.filter(function(t){var e=i.fieldsStore.getFieldMeta(t);return r.i(S.c)(e.validate)}).map(function(t){var e=i.fieldsStore.getField(t);return e.value=i.fieldsStore.getFieldValue(t),e});if(!l.length)return void(u&&u(null,this.fieldsStore.getFieldsValue(f)));"firstFields"in s||(s.firstFields=f.filter(function(t){return!!i.fieldsStore.getFieldMeta(t).validateFirst})),this.validateFieldsInternal(l,{fieldNames:f,options:s},u)},isSubmitting:function(){return this.state.submitting},submit:function(t){var e=this,r=function(){e.setState({submitting:!1})};this.setState({submitting:!0}),t(r)},render:function(){var e=this.props,r=e.wrappedComponentRef,n=o()(e,["wrappedComponentRef"]),i=f()({},w,this.getForm());j?i.ref="wrappedComponent":r&&(i.ref=r);var a=l.call(this,c()({},i,n));return h.a.createElement(t,a)}});return r.i(S.i)(s,t)}}var i=r(101),o=r.n(i),a=r(9),u=r.n(a),s=r(53),f=r.n(s),l=r(6),c=r.n(l),d=r(102),p=r.n(d),v=r(69),h=r.n(v),y=r(140),g=r.n(y),m=r(71),b=r(68),F=(r.n(b),r(188)),x=r.n(F),w=r(67),_=r.n(w),O=r(94),S=r(26),E="onChange";e.a=n},function(t,e,r){"use strict";function n(t){return r.i(i.a)(t,[o])}r.d(e,"b",function(){return o});var i=r(49),o={getForm:function(){return{getFieldsValue:this.fieldsStore.getFieldsValue,getFieldValue:this.fieldsStore.getFieldValue,getFieldInstance:this.getFieldInstance,setFieldsValue:this.setFieldsValue,setFields:this.setFields,setFieldsInitialValue:this.fieldsStore.setFieldsInitialValue,getFieldDecorator:this.getFieldDecorator,getFieldProps:this.getFieldProps,getFieldsError:this.fieldsStore.getFieldsError,getFieldError:this.fieldsStore.getFieldError,isFieldValidating:this.fieldsStore.isFieldValidating,isFieldsValidating:this.fieldsStore.isFieldsValidating,isFieldsTouched:this.fieldsStore.isFieldsTouched,isFieldTouched:this.fieldsStore.isFieldTouched,isSubmitting:this.isSubmitting,submit:this.submit,validateFields:this.validateFields,resetFields:this.resetFields}}};e.a=n},function(t,e,r){t.exports={default:r(105),__esModule:!0}},function(t,e,r){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(51),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=function(t,e,r){return e in t?(0,i.default)(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e,r){var n=r(108);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},function(t,e,r){var n=r(15),i=r(4).document,o=n(i)&&n(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,r){t.exports=!r(7)&&!r(14)(function(){return 7!=Object.defineProperty(r(55)("div"),"a",{get:function(){return 7}}).a})},function(t,e,r){var n=r(27);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e,r){"use strict";var n=r(18),i=r(13),o=r(62),a=r(10),u=r(16),s=r(118),f=r(31),l=r(126),c=r(2)("iterator"),d=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,r,v,h,y,g){s(r,e,v);var m,b,F,x=function(t){if(!d&&t in S)return S[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},w=e+" Iterator",_="values"==h,O=!1,S=t.prototype,E=S[c]||S["@@iterator"]||h&&S[h],j=E||x(h),M=h?_?x("entries"):j:void 0,P="Array"==e?S.entries||E:E;if(P&&(F=l(P.call(new t)))!==Object.prototype&&F.next&&(f(F,w,!0),n||"function"==typeof F[c]||a(F,c,p)),_&&E&&"values"!==E.name&&(O=!0,j=function(){return E.call(this)}),n&&!g||!d&&!O&&S[c]||a(S,c,j),u[e]=j,u[w]=p,h)if(m={values:_?j:x("values"),keys:y?j:x("keys"),entries:M},g)for(b in m)b in S||o(S,b,m[b]);else i(i.P+i.F*(d||O),e,m);return m}},function(t,e,r){var n=r(12),i=r(123),o=r(29),a=r(32)("IE_PROTO"),u=function(){},s=function(){var t,e=r(55)("iframe"),n=o.length;for(e.style.display="none",r(114).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),s=t.F;n--;)delete s.prototype[o[n]];return s()};t.exports=Object.create||function(t,e){var r;return null!==t?(u.prototype=n(t),r=new u,u.prototype=null,r[a]=t):r=s(),void 0===e?r:i(r,e)}},function(t,e,r){var n=r(61),i=r(29).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},function(t,e,r){var n=r(8),i=r(11),o=r(110)(!1),a=r(32)("IE_PROTO");t.exports=function(t,e){var r,u=i(t),s=0,f=[];for(r in u)r!=a&&n(u,r)&&f.push(r);for(;e.length>s;)n(u,r=e[s++])&&(~o(f,r)||f.push(r));return f}},function(t,e,r){t.exports=r(10)},function(t,e,r){var n=r(34),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},function(t,e,r){"use strict";var n=r(127)(!0);r(58)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},function(t,e){function r(t,e){var r=typeof t;return!!(e=null==e?n:e)&&("number"==r||"symbol"!=r&&i.test(t))&&t>-1&&t%1==0&&t<e}var n=9007199254740991,i=/^(?:0|[1-9]\d*)$/;t.exports=r},function(t,e){function r(t,e){return t===e||t!==t&&e!==e}t.exports=r},function(t,e,r){function n(t,e,r){return null==t?t:i(t,e,r)}var i=r(158);t.exports=n},function(t,e,r){"use strict";var n=function(){};t.exports=n},function(e,r){e.exports=t},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(50),i=r(93);r.d(e,"createDOMForm",function(){return i.a}),r.d(e,"createForm",function(){return n.a}),"undefined"!=typeof window&&(window.RCForm={createDOMForm:i.a,createForm:n.a})},function(t,e,r){"use strict";function n(t){this.rules=null,this._messages=l.a,this.define(t)}var i=r(6),o=r.n(i),a=r(9),u=r.n(a),s=r(0),f=r(83),l=r(72);n.prototype={messages:function(t){return t&&(this._messages=r.i(s.a)(r.i(l.b)(),t)),this._messages},define:function(t){if(!t)throw new Error("Cannot configure a schema with no rules");if("object"!==(void 0===t?"undefined":u()(t))||Array.isArray(t))throw new Error("Rules must be an object");this.rules={};var e=void 0,r=void 0;for(e in t)t.hasOwnProperty(e)&&(r=t[e],this.rules[e]=Array.isArray(r)?r:[r])},validate:function(t){function e(t){var e=void 0,r=void 0,n=[],i={};for(e=0;e<t.length;e++)!function(t){Array.isArray(t)?n=n.concat.apply(n,t):n.push(t)}(t[e]);if(n.length)for(e=0;e<n.length;e++)r=n[e].field,i[r]=i[r]||[],i[r].push(n[e]);else n=null,i=null;p(n,i)}var i=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=arguments[2],c=t,d=a,p=f;if("function"==typeof d&&(p=d,d={}),!this.rules||0===Object.keys(this.rules).length)return void(p&&p());if(d.messages){var v=this.messages();v===l.a&&(v=r.i(l.b)()),r.i(s.a)(v,d.messages),d.messages=v}else d.messages=this.messages();var h=void 0,y=void 0,g={};(d.keys||Object.keys(this.rules)).forEach(function(e){h=i.rules[e],y=c[e],h.forEach(function(r){var n=r;"function"==typeof n.transform&&(c===t&&(c=o()({},c)),y=c[e]=n.transform(y)),n="function"==typeof n?{validator:n}:o()({},n),n.validator=i.getValidationMethod(n),n.field=e,n.fullField=n.fullField||e,n.type=i.getType(n),n.validator&&(g[e]=g[e]||[],g[e].push({rule:n,value:y,source:c,field:e}))})});var m={};r.i(s.b)(g,d,function(t,e){function i(t,e){return o()({},e,{fullField:f.fullField+"."+t})}function a(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=a;if(Array.isArray(u)||(u=[u]),u.length&&r.i(s.c)("async-validator:",u),u.length&&f.message&&(u=[].concat(f.message)),u=u.map(r.i(s.d)(f)),d.first&&u.length)return m[f.field]=1,e(u);if(l){if(f.required&&!t.value)return u=f.message?[].concat(f.message).map(r.i(s.d)(f)):d.error?[d.error(f,r.i(s.e)(d.messages.required,f.field))]:[],e(u);var c={};if(f.defaultField)for(var p in t.value)t.value.hasOwnProperty(p)&&(c[p]=f.defaultField);c=o()({},c,t.rule.fields);for(var v in c)if(c.hasOwnProperty(v)){var h=Array.isArray(c[v])?c[v]:[c[v]];c[v]=h.map(i.bind(null,v))}var y=new n(c);y.messages(d.messages),t.rule.options&&(t.rule.options.messages=d.messages,t.rule.options.error=d.error),y.validate(t.value,t.rule.options||d,function(t){e(t&&t.length?u.concat(t):t)})}else e(u)}var f=t.rule,l=!("object"!==f.type&&"array"!==f.type||"object"!==u()(f.fields)&&"object"!==u()(f.defaultField));l=l&&(f.required||!f.required&&t.value),f.field=t.field;var c=f.validator(f,t.value,a,t.source,d);c&&c.then&&c.then(function(){return a()},function(t){return a(t)})},function(t){e(t)})},getType:function(t){if(void 0===t.type&&t.pattern instanceof RegExp&&(t.type="pattern"),"function"!=typeof t.validator&&t.type&&!f.a.hasOwnProperty(t.type))throw new Error(r.i(s.e)("Unknown rule type %s",t.type));return t.type||"string"},getValidationMethod:function(t){if("function"==typeof t.validator)return t.validator;var e=Object.keys(t),r=e.indexOf("message");return-1!==r&&e.splice(r,1),1===e.length&&"required"===e[0]?f.a.required:f.a[this.getType(t)]||!1}},n.register=function(t,e){if("function"!=typeof e)throw new Error("Cannot register a validator by type, validator is not a function");f.a[t]=e},n.messages=l.a,e.a=n},function(t,e,r){"use strict";function n(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}e.b=n,r.d(e,"a",function(){return i});var i=n()},function(t,e,r){"use strict";function n(t,e,r,n,a){t[o]=Array.isArray(t[o])?t[o]:[],-1===t[o].indexOf(e)&&n.push(i.e(a.messages[o],t.fullField,t[o].join(", ")))}var i=r(0),o="enum";e.a=n},function(t,e,r){"use strict";function n(t,e,r,n,o){if(t.pattern)if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||n.push(i.e(o.messages.pattern.mismatch,t.fullField,e,t.pattern));else if("string"==typeof t.pattern){var a=new RegExp(t.pattern);a.test(e)||n.push(i.e(o.messages.pattern.mismatch,t.fullField,e,t.pattern))}}var i=r(0);e.a=n},function(t,e,r){"use strict";function n(t,e,r,n,o){var a="number"==typeof t.len,u="number"==typeof t.min,s="number"==typeof t.max,f=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=e,c=null,d="number"==typeof e,p="string"==typeof e,v=Array.isArray(e);if(d?c="number":p?c="string":v&&(c="array"),!c)return!1;v&&(l=e.length),p&&(l=e.replace(f,"_").length),a?l!==t.len&&n.push(i.e(o.messages[c].len,t.fullField,t.len)):u&&!s&&l<t.min?n.push(i.e(o.messages[c].min,t.fullField,t.min)):s&&!u&&l>t.max?n.push(i.e(o.messages[c].max,t.fullField,t.max)):u&&s&&(l<t.min||l>t.max)&&n.push(i.e(o.messages[c].range,t.fullField,t.min,t.max))}var i=r(0);e.a=n},function(t,e,r){"use strict";function n(t,e,n,i,s){if(t.required&&void 0===e)return void r.i(u.a)(t,e,n,i,s);var l=["integer","float","array","regexp","object","method","email","number","date","url","hex"],c=t.type;l.indexOf(c)>-1?f[c](e)||i.push(a.e(s.messages.types[c],t.fullField,t.type)):c&&(void 0===e?"undefined":o()(e))!==t.type&&i.push(a.e(s.messages.types[c],t.fullField,t.type))}var i=r(9),o=r.n(i),a=r(0),u=r(48),s={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},f={integer:function(t){return f.number(t)&&parseInt(t,10)===t},float:function(t){return f.number(t)&&!f.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(t){return!1}},date:function(t){return"function"==typeof t.getTime&&"function"==typeof t.getMonth&&"function"==typeof t.getYear},number:function(t){return!isNaN(t)&&"number"==typeof t},object:function(t){return"object"===(void 0===t?"undefined":o()(t))&&!f.array(t)},method:function(t){return"function"==typeof t},email:function(t){return"string"==typeof t&&!!t.match(s.email)&&t.length<255},url:function(t){return"string"==typeof t&&!!t.match(s.url)},hex:function(t){return"string"==typeof t&&!!t.match(s.hex)}};e.a=n},function(t,e,r){"use strict";function n(t,e,r,n,o){(/^\s+$/.test(e)||""===e)&&n.push(i.e(o.messages.whitespace,t.fullField))}var i=r(0);e.a=n},function(t,e,r){"use strict";function n(t,e,n,a,u){var s=[];if(t.required||!t.required&&a.hasOwnProperty(t.field)){if(r.i(o.f)(e,"array")&&!t.required)return n();i.a.required(t,e,a,s,u,"array"),r.i(o.f)(e,"array")||(i.a.type(t,e,a,s,u),i.a.range(t,e,a,s,u))}n(s)}var i=r(1),o=r(0);e.a=n},function(t,e,r){"use strict";function n(t,e,n,a,u){var s=[];if(t.required||!t.required&&a.hasOwnProperty(t.field)){if(r.i(i.f)(e)&&!t.required)return n();o.a.required(t,e,a,s,u),void 0!==e&&o.a.type(t,e,a,s,u)}n(s)}var i=r(0),o=r(1);e.a=n},function(t,e,r){"use strict";function n(t,e,n,a,u){var s=[];if(t.required||!t.required&&a.hasOwnProperty(t.field)){if(r.i(o.f)(e)&&!t.required)return n();if(i.a.required(t,e,a,s,u),!r.i(o.f)(e)){var f=void 0;f="number"==typeof e?new Date(e):e,i.a.type(t,f,a,s,u),f&&i.a.range(t,f.getTime(),a,s,u)}}n(s)}var i=r(1),o=r(0);e.a=n},function(t,e,r){"use strict";function n(t,e,n,u,s){var f=[];if(t.required||!t.required&&u.hasOwnProperty(t.field)){if(r.i(o.f)(e)&&!t.required)return n();i.a.required(t,e,u,f,s),e&&i.a[a](t,e,u,f,s)}n(f)}var i=r(1),o=r(0),a="enum";e.a=n},function(t,e,r){"use strict";function n(t,e,n,a,u){var s=[];if(t.required||!t.required&&a.hasOwnProperty(t.field)){if(r.i(o.f)(e)&&!t.required)return n();i.a.required(t,e,a,s,u),void 0!==e&&(i.a.type(t,e,a,s,u),i.a.range(t,e,a,s,u))}n(s)}var i=r(1),o=r(0);e.a=n},function(t,e,r){"use strict";var n=r(91),i=r(85),o=r(86),a=r(79),u=r(89),s=r(84),f=r(82),l=r(78),c=r(87),d=r(81),p=r(88),v=r(80),h=r(90),y=r(92);e.a={string:n.a,method:i.a,number:o.a,boolean:a.a,regexp:u.a,integer:s.a,float:f.a,array:l.a,object:c.a,enum:d.a,pattern:p.a,date:v.a,url:y.a,hex:y.a,email:y.a,required:h.a}},function(t,e,r){"use strict";function n(t,e,n,a,u){var s=[];if(t.required||!t.required&&a.hasOwnProperty(t.field)){if(r.i(o.f)(e)&&!t.required)return n();i.a.required(t,e,a,s,u),void 0!==e&&(i.a.type(t,e,a,s,u),i.a.range(t,e,a,s,u))}n(s)}var i=r(1),o=r(0);e.a=n},function(t,e,r){"use strict";function n(t,e,n,a,u){var s=[];if(t.required||!t.required&&a.hasOwnProperty(t.field)){if(r.i(o.f)(e)&&!t.required)return n();i.a.required(t,e,a,s,u),void 0!==e&&i.a.type(t,e,a,s,u)}n(s)}var i=r(1),o=r(0);e.a=n},function(t,e,r){"use strict";function n(t,e,n,a,u){var s=[];if(t.required||!t.required&&a.hasOwnProperty(t.field)){if(r.i(o.f)(e)&&!t.required)return n();i.a.required(t,e,a,s,u),void 0!==e&&(i.a.type(t,e,a,s,u),i.a.range(t,e,a,s,u))}n(s)}var i=r(1),o=r(0);e.a=n},function(t,e,r){"use strict";function n(t,e,n,a,u){var s=[];if(t.required||!t.required&&a.hasOwnProperty(t.field)){if(r.i(o.f)(e)&&!t.required)return n();i.a.required(t,e,a,s,u),void 0!==e&&i.a.type(t,e,a,s,u)}n(s)}var i=r(1),o=r(0);e.a=n},function(t,e,r){"use strict";function n(t,e,n,a,u){var s=[];if(t.required||!t.required&&a.hasOwnProperty(t.field)){if(r.i(o.f)(e,"string")&&!t.required)return n();i.a.required(t,e,a,s,u),r.i(o.f)(e,"string")||i.a.pattern(t,e,a,s,u)}n(s)}var i=r(1),o=r(0);e.a=n},function(t,e,r){"use strict";function n(t,e,n,a,u){var s=[];if(t.required||!t.required&&a.hasOwnProperty(t.field)){if(r.i(o.f)(e)&&!t.required)return n();i.a.required(t,e,a,s,u),r.i(o.f)(e)||i.a.type(t,e,a,s,u)}n(s)}var i=r(1),o=r(0);e.a=n},function(t,e,r){"use strict";function n(t,e,r,n,i){var u=[],s=Array.isArray(e)?"array":void 0===e?"undefined":o()(e);a.a.required(t,e,n,u,i,s),r(u)}var i=r(9),o=r.n(i),a=r(1);e.a=n},function(t,e,r){"use strict";function n(t,e,n,a,u){var s=[];if(t.required||!t.required&&a.hasOwnProperty(t.field)){if(r.i(o.f)(e,"string")&&!t.required)return n();i.a.required(t,e,a,s,u,"string"),r.i(o.f)(e,"string")||(i.a.type(t,e,a,s,u),i.a.range(t,e,a,s,u),i.a.pattern(t,e,a,s,u),!0===t.whitespace&&i.a.whitespace(t,e,a,s,u))}n(s)}var i=r(1),o=r(0);e.a=n},function(t,e,r){"use strict";function n(t,e,n,a,u){var s=t.type,f=[];if(t.required||!t.required&&a.hasOwnProperty(t.field)){if(r.i(o.f)(e,s)&&!t.required)return n();i.a.required(t,e,a,f,u,s),r.i(o.f)(e,s)||i.a.type(t,e,a,f,u)}n(f)}var i=r(1),o=r(0);e.a=n},function(t,e,r){"use strict";function n(t,e){var r=window.getComputedStyle,n=r?r(t):t.currentStyle;if(n)return n[e.replace(/-(\w)/gi,function(t,e){return e.toUpperCase()})]}function i(t){for(var e=t,r=void 0;"body"!==(r=e.nodeName.toLowerCase());){var i=n(e,"overflowY");if(e!==t&&("auto"===i||"scroll"===i)&&e.scrollHeight>e.clientHeight)return e;e=e.parentNode}return"body"===r?e.ownerDocument:e}function o(t){return r.i(v.a)(u()({},t),[g])}var a=r(6),u=r.n(a),s=r(197),f=r.n(s),l=r(142),c=r.n(l),d=r(189),p=r.n(d),v=r(49),h=r(50),y=r(26),g={getForm:function(){return u()({},h.b.getForm.call(this),{validateFieldsAndScroll:this.validateFieldsAndScroll})},validateFieldsAndScroll:function(t,e,n){var o=this,a=r.i(y.h)(t,e,n),s=a.names,l=a.callback,d=a.options,v=function(t,e){if(t){var r=o.fieldsStore.getValidFieldsName(),n=void 0,a=void 0,s=!0,v=!1,h=void 0;try{for(var y,g=r[Symbol.iterator]();!(s=(y=g.next()).done);s=!0){var m=y.value;if(p()(t,m)){var b=o.getFieldInstance(m);if(b){var F=f.a.findDOMNode(b),x=F.getBoundingClientRect().top;"hidden"!==F.type&&(void 0===a||a>x)&&(a=x,n=F)}}}}catch(t){v=!0,h=t}finally{try{!s&&g.return&&g.return()}finally{if(v)throw h}}if(n){var w=d.container||i(n);c()(n,w,u()({onlyScrollIfNeeded:!0},d.scroll))}}"function"==typeof l&&l(t,e)};return this.validateFields(s,d,v)}};e.a=o},function(t,e,r){"use strict";function n(t,e){return 0===e.indexOf(t)&&-1!==[".","["].indexOf(e[t.length])}function i(t){return new g(t)}e.a=i;var o=r(53),a=r.n(o),u=r(6),s=r.n(u),f=r(52),l=r.n(f),c=r(100),d=r.n(c),p=r(67),v=r.n(p),h=r(95),y=r(26),g=function(){function t(e){l()(this,t),m.call(this),this.fields=this.flattenFields(e),this.fieldsMeta={}}return d()(t,[{key:"updateFields",value:function(t){this.fields=this.flattenFields(t)}},{key:"flattenFields",value:function(t){return r.i(y.j)(t,function(t,e){return r.i(h.a)(e)},"You must wrap field data with `createFormField`.")}},{key:"flattenRegisteredFields",value:function(t){var e=this.getAllFieldsName();return r.i(y.j)(t,function(t){return e.indexOf(t)>=0},"You cannot set a form field before rendering a field associated with the value.")}},{key:"setFields",value:function(t){var e=this,r=this.fieldsMeta,n=s()({},this.fields,t),i={};Object.keys(r).forEach(function(t){return i[t]=e.getValueFromFields(t,n)}),Object.keys(i).forEach(function(t){var r=i[t],o=e.getFieldMeta(t);if(o&&o.normalize){var a=o.normalize(r,e.getValueFromFields(t,e.fields),i);a!==r&&(n[t]=s()({},n[t],{value:a}))}}),this.fields=n}},{key:"resetFields",value:function(t){var e=this.fields;return(t?this.getValidFieldsFullName(t):this.getAllFieldsName()).reduce(function(t,r){var n=e[r];return n&&"value"in n&&(t[r]={}),t},{})}},{key:"setFieldMeta",value:function(t,e){this.fieldsMeta[t]=e}},{key:"getFieldMeta",value:function(t){return this.fieldsMeta[t]=this.fieldsMeta[t]||{},this.fieldsMeta[t]}},{key:"getValueFromFields",value:function(t,e){var r=e[t];if(r&&"value"in r)return r.value;var n=this.getFieldMeta(t);return n&&n.initialValue}},{key:"getValidFieldsName",value:function(){var t=this,e=this.fieldsMeta;return e?Object.keys(e).filter(function(e){return!t.getFieldMeta(e).hidden}):[]}},{key:"getAllFieldsName",value:function(){var t=this.fieldsMeta;return t?Object.keys(t):[]}},{key:"getValidFieldsFullName",value:function(t){var e=Array.isArray(t)?t:[t];return this.getValidFieldsName().filter(function(t){return e.some(function(e){return t===e||r.i(y.k)(t,e)&&[".","["].indexOf(t[e.length])>=0})})}},{key:"getFieldValuePropValue",value:function(t){var e=t.name,r=t.getValueProps,n=t.valuePropName,i=this.getField(e),o="value"in i?i.value:t.initialValue;return r?r(o):a()({},n,o)}},{key:"getField",value:function(t){return s()({},this.fields[t],{name:t})}},{key:"getNotCollectedFields",value:function(){var t=this;return this.getValidFieldsName().filter(function(e){return!t.fields[e]}).map(function(e){return{name:e,dirty:!1,value:t.getFieldMeta(e).initialValue}}).reduce(function(t,e){return v()(t,e.name,r.i(h.b)(e))},{})}},{key:"getNestedAllFields",value:function(){var t=this;return Object.keys(this.fields).reduce(function(e,n){return v()(e,n,r.i(h.b)(t.fields[n]))},this.getNotCollectedFields())}},{key:"getFieldMember",value:function(t,e){return this.getField(t)[e]}},{key:"getNestedFields",value:function(t,e){return(t||this.getValidFieldsName()).reduce(function(t,r){return v()(t,r,e(r))},{})}},{key:"getNestedField",value:function(t,e){var r=this.getValidFieldsFullName(t);if(0===r.length||1===r.length&&r[0]===t)return e(t);var n="["===r[0][t.length],i=n?t.length:t.length+1;return r.reduce(function(t,r){return v()(t,r.slice(i),e(r))},n?[]:{})}},{key:"isValidNestedFieldName",value:function(t){return this.getAllFieldsName().every(function(e){return!n(e,t)&&!n(t,e)})}},{key:"clearField",value:function(t){delete this.fields[t],delete this.fieldsMeta[t]}}]),t}(),m=function(){var t=this;this.setFieldsInitialValue=function(e){var r=t.flattenRegisteredFields(e),n=t.fieldsMeta;Object.keys(r).forEach(function(e){n[e]&&t.setFieldMeta(e,s()({},t.getFieldMeta(e),{initialValue:r[e]}))})},this.getAllValues=function(){var e=t.fieldsMeta,r=t.fields;return Object.keys(e).reduce(function(e,n){return v()(e,n,t.getValueFromFields(n,r))},{})},this.getFieldsValue=function(e){return t.getNestedFields(e,t.getFieldValue)},this.getFieldValue=function(e){var r=t.fields;return t.getNestedField(e,function(e){return t.getValueFromFields(e,r)})},this.getFieldsError=function(e){return t.getNestedFields(e,t.getFieldError)},this.getFieldError=function(e){return t.getNestedField(e,function(e){return r.i(y.l)(t.getFieldMember(e,"errors"))})},this.isFieldValidating=function(e){return t.getFieldMember(e,"validating")},this.isFieldsValidating=function(e){return(e||t.getValidFieldsName()).some(function(e){return t.isFieldValidating(e)})},this.isFieldTouched=function(e){return t.getFieldMember(e,"touched")},this.isFieldsTouched=function(e){return(e||t.getValidFieldsName()).some(function(e){return t.isFieldTouched(e)})}}},function(t,e,r){"use strict";function n(t){return t instanceof f}function i(t){return n(t)?t:new f(t)}e.a=n,e.b=i;var o=r(6),a=r.n(o),u=r(52),s=r.n(u),f=function t(e){s()(this,t),a()(this,e)}},function(t,e,r){t.exports={default:r(103),__esModule:!0}},function(t,e,r){t.exports={default:r(104),__esModule:!0}},function(t,e,r){t.exports={default:r(106),__esModule:!0}},function(t,e,r){t.exports={default:r(107),__esModule:!0}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(51),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),(0,i.default)(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}()},function(t,e,r){"use strict";e.__esModule=!0,e.default=function(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(96),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return(0,i.default)(t)}},function(t,e,r){r(64),r(130),t.exports=r(3).Array.from},function(t,e,r){r(132),t.exports=r(3).Object.assign},function(t,e,r){r(133);var n=r(3).Object;t.exports=function(t,e,r){return n.defineProperty(t,e,r)}},function(t,e,r){r(135),r(134),r(136),r(137),t.exports=r(3).Symbol},function(t,e,r){r(64),r(138),t.exports=r(38).f("iterator")},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(){}},function(t,e,r){var n=r(11),i=r(63),o=r(128);t.exports=function(t){return function(e,r,a){var u,s=n(e),f=i(s.length),l=o(a,f);if(t&&r!=r){for(;f>l;)if((u=s[l++])!=u)return!0}else for(;f>l;l++)if((t||l in s)&&s[l]===r)return t||l||0;return!t&&-1}}},function(t,e,r){var n=r(27),i=r(2)("toStringTag"),o="Arguments"==n(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,r,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=a(e=Object(t),i))?r:o?n(e):"Object"==(u=n(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e,r){"use strict";var n=r(5),i=r(17);t.exports=function(t,e,r){e in t?n.f(t,e,i(0,r)):t[e]=r}},function(t,e,r){var n=r(19),i=r(30),o=r(20);t.exports=function(t){var e=n(t),r=i.f;if(r)for(var a,u=r(t),s=o.f,f=0;u.length>f;)s.call(t,a=u[f++])&&e.push(a);return e}},function(t,e,r){var n=r(4).document;t.exports=n&&n.documentElement},function(t,e,r){var n=r(16),i=r(2)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||o[i]===t)}},function(t,e,r){var n=r(27);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){var n=r(12);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&n(o.call(t)),e}}},function(t,e,r){"use strict";var n=r(59),i=r(17),o=r(31),a={};r(10)(a,r(2)("iterator"),function(){return this}),t.exports=function(t,e,r){t.prototype=n(a,{next:i(1,r)}),o(t,e+" Iterator")}},function(t,e,r){var n=r(2)("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:r=!0}},o[n]=function(){return a},t(o)}catch(t){}return r}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,r){var n=r(21)("meta"),i=r(15),o=r(8),a=r(5).f,u=0,s=Object.isExtensible||function(){return!0},f=!r(14)(function(){return s(Object.preventExtensions({}))}),l=function(t){a(t,n,{value:{i:"O"+ ++u,w:{}}})},c=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,n)){if(!s(t))return"F";if(!e)return"E";l(t)}return t[n].i},d=function(t,e){if(!o(t,n)){if(!s(t))return!0;if(!e)return!1;l(t)}return t[n].w},p=function(t){return f&&v.NEED&&s(t)&&!o(t,n)&&l(t),t},v=t.exports={KEY:n,NEED:!1,fastKey:c,getWeak:d,onFreeze:p}},function(t,e,r){"use strict";var n=r(19),i=r(30),o=r(20),a=r(35),u=r(57),s=Object.assign;t.exports=!s||r(14)(function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(t){e[t]=t}),7!=s({},t)[r]||Object.keys(s({},e)).join("")!=n})?function(t,e){for(var r=a(t),s=arguments.length,f=1,l=i.f,c=o.f;s>f;)for(var d,p=u(arguments[f++]),v=l?n(p).concat(l(p)):n(p),h=v.length,y=0;h>y;)c.call(p,d=v[y++])&&(r[d]=p[d]);return r}:s},function(t,e,r){var n=r(5),i=r(12),o=r(19);t.exports=r(7)?Object.defineProperties:function(t,e){i(t);for(var r,a=o(e),u=a.length,s=0;u>s;)n.f(t,r=a[s++],e[r]);return t}},function(t,e,r){var n=r(20),i=r(17),o=r(11),a=r(36),u=r(8),s=r(56),f=Object.getOwnPropertyDescriptor;e.f=r(7)?f:function(t,e){if(t=o(t),e=a(e,!0),s)try{return f(t,e)}catch(t){}if(u(t,e))return i(!n.f.call(t,e),t[e])}},function(t,e,r){var n=r(11),i=r(60).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return i(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?u(t):i(n(t))}},function(t,e,r){var n=r(8),i=r(35),o=r(32)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,r){var n=r(34),i=r(28);t.exports=function(t){return function(e,r){var o,a,u=String(i(e)),s=n(r),f=u.length;return s<0||s>=f?t?"":void 0:(o=u.charCodeAt(s),o<55296||o>56319||s+1===f||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):o:t?u.slice(s,s+2):a-56320+(o-55296<<10)+65536)}}},function(t,e,r){var n=r(34),i=Math.max,o=Math.min;t.exports=function(t,e){return t=n(t),t<0?i(t+e,0):o(t,e)}},function(t,e,r){var n=r(111),i=r(2)("iterator"),o=r(16);t.exports=r(3).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[n(t)]}},function(t,e,r){"use strict";var n=r(54),i=r(13),o=r(35),a=r(117),u=r(115),s=r(63),f=r(112),l=r(129);i(i.S+i.F*!r(119)(function(t){Array.from(t)}),"Array",{from:function(t){var e,r,i,c,d=o(t),p="function"==typeof this?this:Array,v=arguments.length,h=v>1?arguments[1]:void 0,y=void 0!==h,g=0,m=l(d);if(y&&(h=n(h,v>2?arguments[2]:void 0,2)),void 0==m||p==Array&&u(m))for(e=s(d.length),r=new p(e);e>g;g++)f(r,g,y?h(d[g],g):d[g]);else for(c=m.call(d),r=new p;!(i=c.next()).done;g++)f(r,g,y?a(c,h,[i.value,g],!0):i.value);return r.length=g,r}})},function(t,e,r){"use strict";var n=r(109),i=r(120),o=r(16),a=r(11);t.exports=r(58)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,r):"values"==e?i(0,t[r]):i(0,[r,t[r]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},function(t,e,r){var n=r(13);n(n.S+n.F,"Object",{assign:r(122)})},function(t,e,r){var n=r(13);n(n.S+n.F*!r(7),"Object",{defineProperty:r(5).f})},function(t,e){},function(t,e,r){"use strict";var n=r(4),i=r(8),o=r(7),a=r(13),u=r(62),s=r(121).KEY,f=r(14),l=r(33),c=r(31),d=r(21),p=r(2),v=r(38),h=r(37),y=r(113),g=r(116),m=r(12),b=r(15),F=r(11),x=r(36),w=r(17),_=r(59),O=r(125),S=r(124),E=r(5),j=r(19),M=S.f,P=E.f,N=O.f,A=n.Symbol,C=n.JSON,T=C&&C.stringify,V=p("_hidden"),k=p("toPrimitive"),D={}.propertyIsEnumerable,q=l("symbol-registry"),I=l("symbols"),R=l("op-symbols"),L=Object.prototype,W="function"==typeof A,Y=n.QObject,z=!Y||!Y.prototype||!Y.prototype.findChild,B=o&&f(function(){return 7!=_(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=M(L,e);n&&delete L[e],P(t,e,r),n&&t!==L&&P(L,e,n)}:P,G=function(t){var e=I[t]=_(A.prototype);return e._k=t,e},U=W&&"symbol"==typeof A.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof A},$=function(t,e,r){return t===L&&$(R,e,r),m(t),e=x(e,!0),m(r),i(I,e)?(r.enumerable?(i(t,V)&&t[V][e]&&(t[V][e]=!1),r=_(r,{enumerable:w(0,!1)})):(i(t,V)||P(t,V,w(1,{})),t[V][e]=!0),B(t,e,r)):P(t,e,r)},H=function(t,e){m(t);for(var r,n=y(e=F(e)),i=0,o=n.length;o>i;)$(t,r=n[i++],e[r]);return t},J=function(t,e){return void 0===e?_(t):H(_(t),e)},K=function(t){var e=D.call(this,t=x(t,!0));return!(this===L&&i(I,t)&&!i(R,t))&&(!(e||!i(this,t)||!i(I,t)||i(this,V)&&this[V][t])||e)},Z=function(t,e){if(t=F(t),e=x(e,!0),t!==L||!i(I,e)||i(R,e)){var r=M(t,e);return!r||!i(I,e)||i(t,V)&&t[V][e]||(r.enumerable=!0),r}},Q=function(t){for(var e,r=N(F(t)),n=[],o=0;r.length>o;)i(I,e=r[o++])||e==V||e==s||n.push(e);return n},X=function(t){for(var e,r=t===L,n=N(r?R:F(t)),o=[],a=0;n.length>a;)!i(I,e=n[a++])||r&&!i(L,e)||o.push(I[e]);return o};W||(A=function(){if(this