@kne/react-form-antd 1.2.14 → 2.0.0-alpha.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("prop-types"),require("antd"),require("@kne/react-fetch"),require("antd/es/space")):"function"==typeof define&&define.amd?define(["exports","react","prop-types","antd","@kne/react-fetch","antd/es/space"],t):t((e=e||self).ReactFormAntd={},e.React,e.PropTypes,e.antd,e.reactFetch,e.Space)}(this,(function(e,t,r,n,o,a){"use strict";var i="default"in t?t.default:t;r=r&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r,a=a&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a;var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(e,t){return e(t={exports:{}},t.exports),t.exports}var s=c((function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(this,arguments)}e.exports=t}));var f=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o};var l=function(e,t){if(null==e)return{};var r,n,o=f(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o},p=c((function(e){
2
- /*!
3
- Copyright (c) 2017 Jed Watson.
4
- Licensed under the MIT License (MIT), see
5
- http://jedwatson.github.io/classnames
6
- */
7
- !function(){var t={}.hasOwnProperty;function r(){for(var e=[],n=0;n<arguments.length;n++){var o=arguments[n];if(o){var a=typeof o;if("string"===a||"number"===a)e.push(o);else if(Array.isArray(o)&&o.length){var i=r.apply(null,o);i&&e.push(i)}else if("object"===a)for(var u in o)t.call(o,u)&&o[u]&&e.push(u)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r}()})),h="object"==typeof u&&u&&u.Object===Object&&u,d="object"==typeof self&&self&&self.Object===Object&&self,v=h||d||Function("return this")(),m=v.Symbol,g=Object.prototype,b=g.hasOwnProperty,y=g.toString,_=m?m.toStringTag:void 0;var w=function(e){var t=b.call(e,_),r=e[_];try{e[_]=void 0;var n=!0}catch(e){}var o=y.call(e);return n&&(t?e[_]=r:delete e[_]),o},O=Object.prototype.toString;var j=function(e){return O.call(e)},x=m?m.toStringTag:void 0;var S=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":x&&x in Object(e)?w(e):j(e)};var E=function(e,t){return function(r){return e(t(r))}},P=E(Object.getPrototypeOf,Object);var k=function(e){return null!=e&&"object"==typeof e},C=Function.prototype,M=Object.prototype,R=C.toString,A=M.hasOwnProperty,T=R.call(Object);var I=function(e){if(!k(e)||"[object Object]"!=S(e))return!1;var t=P(e);if(null===t)return!0;var r=A.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&R.call(r)==T};var F=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o};var L=function(e,t){return F(t,(function(t){return e[t]}))};var D=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n};var N=function(e){return k(e)&&"[object Arguments]"==S(e)},z=Object.prototype,U=z.hasOwnProperty,q=z.propertyIsEnumerable,B=N(function(){return arguments}())?N:function(e){return k(e)&&U.call(e,"callee")&&!q.call(e,"callee")},V=Array.isArray;var H=function(){return!1},W=c((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?v.Buffer:void 0,a=(o?o.isBuffer:void 0)||H;e.exports=a})),$=/^(?:0|[1-9]\d*)$/;var G=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&$.test(e))&&e>-1&&e%1==0&&e<t};var Q=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Y={};Y["[object Float32Array]"]=Y["[object Float64Array]"]=Y["[object Int8Array]"]=Y["[object Int16Array]"]=Y["[object Int32Array]"]=Y["[object Uint8Array]"]=Y["[object Uint8ClampedArray]"]=Y["[object Uint16Array]"]=Y["[object Uint32Array]"]=!0,Y["[object Arguments]"]=Y["[object Array]"]=Y["[object ArrayBuffer]"]=Y["[object Boolean]"]=Y["[object DataView]"]=Y["[object Date]"]=Y["[object Error]"]=Y["[object Function]"]=Y["[object Map]"]=Y["[object Number]"]=Y["[object Object]"]=Y["[object RegExp]"]=Y["[object Set]"]=Y["[object String]"]=Y["[object WeakMap]"]=!1;var X=function(e){return k(e)&&Q(e.length)&&!!Y[S(e)]};var Z=function(e){return function(t){return e(t)}},J=c((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r&&h.process,a=function(){try{var e=n&&n.require&&n.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a})),K=J&&J.isTypedArray,ee=K?Z(K):X,te=Object.prototype.hasOwnProperty;var re=function(e,t){var r=V(e),n=!r&&B(e),o=!r&&!n&&W(e),a=!r&&!n&&!o&&ee(e),i=r||n||o||a,u=i?D(e.length,String):[],c=u.length;for(var s in e)!t&&!te.call(e,s)||i&&("length"==s||o&&("offset"==s||"parent"==s)||a&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||G(s,c))||u.push(s);return u},ne=Object.prototype;var oe=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ne)},ae=E(Object.keys,Object),ie=Object.prototype.hasOwnProperty;var ue=function(e){if(!oe(e))return ae(e);var t=[];for(var r in Object(e))ie.call(e,r)&&"constructor"!=r&&t.push(r);return t};var ce=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var se=function(e){if(!ce(e))return!1;var t=S(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};var fe=function(e){return null!=e&&Q(e.length)&&!se(e)};var le=function(e){return fe(e)?re(e):ue(e)};var pe=function(e){return null==e?[]:L(e,le(e))};var he=function(e){function t(r,n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,r),this.listener=n,this.context=o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.subscriber=t}return e.prototype.remove=function(){this.subscriber&&(this.subscriber.removeSubscription(this),this.subscriber=null)},e}()),de=function(e){};"production"!==process.env.NODE_ENV&&(de=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")});var ve=function(e,t,r,n,o,a,i,u){if(de(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[r,n,o,a,i,u],f=0;(c=new Error(t.replace(/%s/g,(function(){return s[f++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}};var me=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._subscriptionsForType={},this._currentSubscription=null}return e.prototype.addSubscription=function(e,t){t.subscriber!==this&&("production"!==process.env.NODE_ENV?ve(!1,"The subscriber of the subscription is incorrectly set."):ve(!1)),this._subscriptionsForType[e]||(this._subscriptionsForType[e]=[]);var r=this._subscriptionsForType[e].length;return this._subscriptionsForType[e].push(t),t.eventType=e,t.key=r,t},e.prototype.removeAllSubscriptions=function(e){void 0===e?this._subscriptionsForType={}:delete this._subscriptionsForType[e]},e.prototype.removeSubscription=function(e){var t=e.eventType,r=e.key,n=this._subscriptionsForType[t];n&&delete n[r]},e.prototype.getSubscriptionsForType=function(e){return this._subscriptionsForType[e]},e}();function ge(e){return function(){return e}}var be=function(){};be.thatReturns=ge,be.thatReturnsFalse=ge(!1),be.thatReturnsTrue=ge(!0),be.thatReturnsNull=ge(null),be.thatReturnsThis=function(){return this},be.thatReturnsArgument=function(e){return e};var ye=be;var _e={EventEmitter:function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._subscriber=new me,this._currentSubscription=null}return e.prototype.addListener=function(e,t,r){return this._subscriber.addSubscription(e,new he(this._subscriber,t,r))},e.prototype.once=function(e,t,r){var n=this;return this.addListener(e,(function(){n.removeCurrentListener(),t.apply(r,arguments)}))},e.prototype.removeAllListeners=function(e){this._subscriber.removeAllSubscriptions(e)},e.prototype.removeCurrentListener=function(){this._currentSubscription||("production"!==process.env.NODE_ENV?ve(!1,"Not in an emitting cycle; there is no current subscription"):ve(!1)),this._subscriber.removeSubscription(this._currentSubscription)},e.prototype.listeners=function(e){var t=this._subscriber.getSubscriptionsForType(e);return t?t.filter(ye.thatReturnsTrue).map((function(e){return e.listener})):[]},e.prototype.emit=function(e){var t=this._subscriber.getSubscriptionsForType(e);if(t){for(var r=Object.keys(t),n=0;n<r.length;n++){var o=r[n],a=t[o];a&&(this._currentSubscription=a,this.__emitToSubscription.apply(this,[a].concat(Array.prototype.slice.call(arguments))))}this._currentSubscription=null}},e.prototype.__emitToSubscription=function(e,t){var r=Array.prototype.slice.call(arguments,2);e.listener.apply(e.context,r)},e}(),EmitterSubscription:he};function we(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var Oe=function(e){return"symbol"==typeof e||k(e)&&"[object Symbol]"==S(e)},je=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xe=/^\w*$/;var Se,Ee=function(e,t){if(V(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!Oe(e))||(xe.test(e)||!je.test(e)||null!=t&&e in Object(t))},Pe=v["__core-js_shared__"],ke=(Se=/[^.]+$/.exec(Pe&&Pe.keys&&Pe.keys.IE_PROTO||""))?"Symbol(src)_1."+Se:"";var Ce=function(e){return!!ke&&ke in e},Me=Function.prototype.toString;var Re=function(e){if(null!=e){try{return Me.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Ae=/^\[object .+?Constructor\]$/,Te=Function.prototype,Ie=Object.prototype,Fe=Te.toString,Le=Ie.hasOwnProperty,De=RegExp("^"+Fe.call(Le).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Ne=function(e){return!(!ce(e)||Ce(e))&&(se(e)?De:Ae).test(Re(e))};var ze=function(e,t){return null==e?void 0:e[t]};var Ue=function(e,t){var r=ze(e,t);return Ne(r)?r:void 0},qe=Ue(Object,"create");var Be=function(){this.__data__=qe?qe(null):{},this.size=0};var Ve=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},He=Object.prototype.hasOwnProperty;var We=function(e){var t=this.__data__;if(qe){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return He.call(t,e)?t[e]:void 0},$e=Object.prototype.hasOwnProperty;var Ge=function(e){var t=this.__data__;return qe?void 0!==t[e]:$e.call(t,e)};var Qe=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=qe&&void 0===t?"__lodash_hash_undefined__":t,this};function Ye(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ye.prototype.clear=Be,Ye.prototype.delete=Ve,Ye.prototype.get=We,Ye.prototype.has=Ge,Ye.prototype.set=Qe;var Xe=Ye;var Ze=function(){this.__data__=[],this.size=0};var Je=function(e,t){return e===t||e!=e&&t!=t};var Ke=function(e,t){for(var r=e.length;r--;)if(Je(e[r][0],t))return r;return-1},et=Array.prototype.splice;var tt=function(e){var t=this.__data__,r=Ke(t,e);return!(r<0)&&(r==t.length-1?t.pop():et.call(t,r,1),--this.size,!0)};var rt=function(e){var t=this.__data__,r=Ke(t,e);return r<0?void 0:t[r][1]};var nt=function(e){return Ke(this.__data__,e)>-1};var ot=function(e,t){var r=this.__data__,n=Ke(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function at(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}at.prototype.clear=Ze,at.prototype.delete=tt,at.prototype.get=rt,at.prototype.has=nt,at.prototype.set=ot;var it=at,ut=Ue(v,"Map");var ct=function(){this.size=0,this.__data__={hash:new Xe,map:new(ut||it),string:new Xe}};var st=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var ft=function(e,t){var r=e.__data__;return st(t)?r["string"==typeof t?"string":"hash"]:r.map};var lt=function(e){var t=ft(this,e).delete(e);return this.size-=t?1:0,t};var pt=function(e){return ft(this,e).get(e)};var ht=function(e){return ft(this,e).has(e)};var dt=function(e,t){var r=ft(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function vt(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}vt.prototype.clear=ct,vt.prototype.delete=lt,vt.prototype.get=pt,vt.prototype.has=ht,vt.prototype.set=dt;var mt=vt;function gt(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(gt.Cache||mt),r}gt.Cache=mt;var bt=gt;var yt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_t=/\\(\\)?/g,wt=function(e){var t=bt(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(yt,(function(e,r,n,o){t.push(n?o.replace(_t,"$1"):r||e)})),t})),Ot=m?m.prototype:void 0,jt=Ot?Ot.toString:void 0;var xt=function e(t){if("string"==typeof t)return t;if(V(t))return F(t,e)+"";if(Oe(t))return jt?jt.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r};var St=function(e){return null==e?"":xt(e)};var Et=function(e,t){return V(e)?e:Ee(e,t)?[e]:wt(St(e))};var Pt=function(e){if("string"==typeof e||Oe(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};var kt=function(e,t){for(var r=0,n=(t=Et(t,e)).length;null!=e&&r<n;)e=e[Pt(t[r++])];return r&&r==n?e:void 0};var Ct=function(e,t,r){var n=null==e?void 0:kt(e,t);return void 0===n?r:n};var Mt=function(){this.__data__=new it,this.size=0};var Rt=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};var At=function(e){return this.__data__.get(e)};var Tt=function(e){return this.__data__.has(e)};var It=function(e,t){var r=this.__data__;if(r instanceof it){var n=r.__data__;if(!ut||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new mt(n)}return r.set(e,t),this.size=r.size,this};function Ft(e){var t=this.__data__=new it(e);this.size=t.size}Ft.prototype.clear=Mt,Ft.prototype.delete=Rt,Ft.prototype.get=At,Ft.prototype.has=Tt,Ft.prototype.set=It;var Lt=Ft;var Dt=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var Nt=function(e){return this.__data__.has(e)};function zt(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new mt;++t<r;)this.add(e[t])}zt.prototype.add=zt.prototype.push=Dt,zt.prototype.has=Nt;var Ut=zt;var qt=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1};var Bt=function(e,t){return e.has(t)};var Vt=function(e,t,r,n,o,a){var i=1&r,u=e.length,c=t.length;if(u!=c&&!(i&&c>u))return!1;var s=a.get(e),f=a.get(t);if(s&&f)return s==t&&f==e;var l=-1,p=!0,h=2&r?new Ut:void 0;for(a.set(e,t),a.set(t,e);++l<u;){var d=e[l],v=t[l];if(n)var m=i?n(v,d,l,t,e,a):n(d,v,l,e,t,a);if(void 0!==m){if(m)continue;p=!1;break}if(h){if(!qt(t,(function(e,t){if(!Bt(h,t)&&(d===e||o(d,e,r,n,a)))return h.push(t)}))){p=!1;break}}else if(d!==v&&!o(d,v,r,n,a)){p=!1;break}}return a.delete(e),a.delete(t),p},Ht=v.Uint8Array;var Wt=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r};var $t=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r},Gt=m?m.prototype:void 0,Qt=Gt?Gt.valueOf:void 0;var Yt=function(e,t,r,n,o,a,i){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new Ht(e),new Ht(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Je(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var u=Wt;case"[object Set]":var c=1&n;if(u||(u=$t),e.size!=t.size&&!c)return!1;var s=i.get(e);if(s)return s==t;n|=2,i.set(e,t);var f=Vt(u(e),u(t),n,o,a,i);return i.delete(e),f;case"[object Symbol]":if(Qt)return Qt.call(e)==Qt.call(t)}return!1};var Xt=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e};var Zt=function(e,t,r){var n=t(e);return V(e)?n:Xt(n,r(e))};var Jt=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a};var Kt=function(){return[]},er=Object.prototype.propertyIsEnumerable,tr=Object.getOwnPropertySymbols,rr=tr?function(e){return null==e?[]:(e=Object(e),Jt(tr(e),(function(t){return er.call(e,t)})))}:Kt;var nr=function(e){return Zt(e,le,rr)},or=Object.prototype.hasOwnProperty;var ar=function(e,t,r,n,o,a){var i=1&r,u=nr(e),c=u.length;if(c!=nr(t).length&&!i)return!1;for(var s=c;s--;){var f=u[s];if(!(i?f in t:or.call(t,f)))return!1}var l=a.get(e),p=a.get(t);if(l&&p)return l==t&&p==e;var h=!0;a.set(e,t),a.set(t,e);for(var d=i;++s<c;){var v=e[f=u[s]],m=t[f];if(n)var g=i?n(m,v,f,t,e,a):n(v,m,f,e,t,a);if(!(void 0===g?v===m||o(v,m,r,n,a):g)){h=!1;break}d||(d="constructor"==f)}if(h&&!d){var b=e.constructor,y=t.constructor;b==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y||(h=!1)}return a.delete(e),a.delete(t),h},ir=Ue(v,"DataView"),ur=Ue(v,"Promise"),cr=Ue(v,"Set"),sr=Ue(v,"WeakMap"),fr=Re(ir),lr=Re(ut),pr=Re(ur),hr=Re(cr),dr=Re(sr),vr=S;(ir&&"[object DataView]"!=vr(new ir(new ArrayBuffer(1)))||ut&&"[object Map]"!=vr(new ut)||ur&&"[object Promise]"!=vr(ur.resolve())||cr&&"[object Set]"!=vr(new cr)||sr&&"[object WeakMap]"!=vr(new sr))&&(vr=function(e){var t=S(e),r="[object Object]"==t?e.constructor:void 0,n=r?Re(r):"";if(n)switch(n){case fr:return"[object DataView]";case lr:return"[object Map]";case pr:return"[object Promise]";case hr:return"[object Set]";case dr:return"[object WeakMap]"}return t});var mr=vr,gr=Object.prototype.hasOwnProperty;var br=function(e,t,r,n,o,a){var i=V(e),u=V(t),c=i?"[object Array]":mr(e),s=u?"[object Array]":mr(t),f="[object Object]"==(c="[object Arguments]"==c?"[object Object]":c),l="[object Object]"==(s="[object Arguments]"==s?"[object Object]":s),p=c==s;if(p&&W(e)){if(!W(t))return!1;i=!0,f=!1}if(p&&!f)return a||(a=new Lt),i||ee(e)?Vt(e,t,r,n,o,a):Yt(e,t,c,r,n,o,a);if(!(1&r)){var h=f&&gr.call(e,"__wrapped__"),d=l&&gr.call(t,"__wrapped__");if(h||d){var v=h?e.value():e,m=d?t.value():t;return a||(a=new Lt),o(v,m,r,n,a)}}return!!p&&(a||(a=new Lt),ar(e,t,r,n,o,a))};var yr=function e(t,r,n,o,a){return t===r||(null==t||null==r||!k(t)&&!k(r)?t!=t&&r!=r:br(t,r,n,o,e,a))};var _r=function(e,t,r,n){var o=r.length,a=o,i=!n;if(null==e)return!a;for(e=Object(e);o--;){var u=r[o];if(i&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<a;){var c=(u=r[o])[0],s=e[c],f=u[1];if(i&&u[2]){if(void 0===s&&!(c in e))return!1}else{var l=new Lt;if(n)var p=n(s,f,c,e,t,l);if(!(void 0===p?yr(f,s,3,n,l):p))return!1}}return!0};var wr=function(e){return e==e&&!ce(e)};var Or=function(e){for(var t=le(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,wr(o)]}return t};var jr=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}};var xr=function(e){var t=Or(e);return 1==t.length&&t[0][2]?jr(t[0][0],t[0][1]):function(r){return r===e||_r(r,e,t)}};var Sr=function(e,t){return null!=e&&t in Object(e)};var Er=function(e,t,r){for(var n=-1,o=(t=Et(t,e)).length,a=!1;++n<o;){var i=Pt(t[n]);if(!(a=null!=e&&r(e,i)))break;e=e[i]}return a||++n!=o?a:!!(o=null==e?0:e.length)&&Q(o)&&G(i,o)&&(V(e)||B(e))};var Pr=function(e,t){return null!=e&&Er(e,t,Sr)};var kr=function(e,t){return Ee(e)&&wr(t)?jr(Pt(e),t):function(r){var n=Ct(r,e);return void 0===n&&n===t?Pr(r,e):yr(t,n,3)}};var Cr=function(e){return e};var Mr=function(e){return function(t){return null==t?void 0:t[e]}};var Rr=function(e){return function(t){return kt(t,e)}};var Ar=function(e){return Ee(e)?Mr(Pt(e)):Rr(e)};var Tr=function(e){return"function"==typeof e?e:null==e?Cr:"object"==typeof e?V(e)?kr(e[0],e[1]):xr(e):Ar(e)};var Ir=function(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a<o;)if(t(e[a],a,e))return a;return-1};var Fr=function(e){return e!=e};var Lr=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1};var Dr=function(e,t,r){return t==t?Lr(e,t,r):Ir(e,Fr,r)};var Nr=function(e,t){return!!(null==e?0:e.length)&&Dr(e,t,0)>-1};var zr=function(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1};var Ur=function(){},qr=cr&&1/$t(new cr([,-0]))[1]==1/0?function(e){return new cr(e)}:Ur;var Br=function(e,t,r){var n=-1,o=Nr,a=e.length,i=!0,u=[],c=u;if(r)i=!1,o=zr;else if(a>=200){var s=t?null:qr(e);if(s)return $t(s);i=!1,o=Bt,c=new Ut}else c=t?[]:u;e:for(;++n<a;){var f=e[n],l=t?t(f):f;if(f=r||0!==f?f:0,i&&l==l){for(var p=c.length;p--;)if(c[p]===l)continue e;t&&c.push(l),u.push(f)}else o(c,l,r)||(c!==u&&c.push(l),u.push(f))}return u};var Vr=function(e,t){return e&&e.length?Br(e,Tr(t)):[]};var Hr=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},Wr=function(){try{var e=Ue(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var $r=function(e,t,r){"__proto__"==t&&Wr?Wr(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},Gr=Object.prototype.hasOwnProperty;var Qr=function(e,t,r){var n=e[t];Gr.call(e,t)&&Je(n,r)&&(void 0!==r||t in e)||$r(e,t,r)};var Yr=function(e,t,r,n){if(!ce(e))return e;for(var o=-1,a=(t=Et(t,e)).length,i=a-1,u=e;null!=u&&++o<a;){var c=Pt(t[o]),s=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=i){var f=u[c];void 0===(s=n?n(f,c,u):void 0)&&(s=ce(f)?f:G(t[o+1])?[]:{})}Qr(u,c,s),u=u[c]}return e};var Xr=function(e,t,r){return null==e?e:Yr(e,t,r)},Zr=0;var Jr=function(e){var t=++Zr;return St(e)+t};var Kr=t.createContext({}),en=Kr.Provider,tn=function(){return t.useContext(Kr)},rn=function(e){if(I(e)){var t=pe(e);return t.length>0&&t.some((function(e){return!!e}))}return V(e)?e.length>0:"number"==typeof e?!isNaN(e):!(null==e||""===e||0===e.length)},nn={REQ:function(e){return{result:rn(e),errMsg:""}},TEL:function(e){return{result:/^1[0-9]{10}$/.test(e),errMsg:"请输入有效的手机号"}},EMAIL:function(e){return{result:/^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(e),errMsg:"请输入有效的邮箱"}},LEN:function(e,t,r){return e=e.toString(),r===t&&e.length!==Number(r)?{result:!1,errMsg:"%s长度必须等于"+r}:e.length<t?{result:!1,errMsg:"%s长度必须大于"+t}:r&&e.length>r?{result:!1,errMsg:"%s长度必须小于"+r}:{result:!0}}};function on(){return(on=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function an(e,t){return(an=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var un=function(e){var t,r;function n(t){var r;return(r=e.call(this)||this).debug=t,r}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,an(t,r),n.prototype.emit=function(){for(var t,r,n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];this.debug&&(r=console).log.apply(r,["[react-form][debug]:"].concat(o));(t=e.prototype.emit).call.apply(t,[this].concat(o))},n}(_e.EventEmitter),cn={input:[],output:[]};cn.input.use=function(e,t){return cn.input.push({name:e,exec:t})},cn.output.use=function(e,t){return cn.output.push({name:e,exec:t})};var sn=cn,fn=function(e,t,r){Array.isArray(r)||(r=[r]);var n=Vr(sn[t].concat(Ct(e,t,[])).filter((function(e){var t=e.name;return r.indexOf(t)>-1})).reverse(),(function(e){return e.name}));return 0===n.length?function(e){return e}:we.apply(void 0,n.map((function(e){return e.exec})))};const ln=function(){function e(){}return e.prototype.then=function(t,r){const n=new e,o=this.s;if(o){const e=1&o?t:r;if(e){try{pn(n,1,e(this.v))}catch(e){pn(n,2,e)}return n}return this}return this.o=function(e){try{const o=e.v;1&e.s?pn(n,1,t?t(o):o):r?pn(n,1,r(o)):pn(n,2,o)}catch(e){pn(n,2,e)}},n},e}();function pn(e,t,r){if(!e.s){if(r instanceof ln){if(!r.s)return void(r.o=pn.bind(null,e,t));1&t&&(t=r.s),r=r.v}if(r&&r.then)return void r.then(pn.bind(null,e,t),pn.bind(null,e,2));e.s=t,e.v=r;const n=e.o;n&&n(e)}}function hn(e){return e instanceof ln&&1&e.s}const dn="undefined"!=typeof Symbol?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function vn(e,t,r){if("function"==typeof e[dn]){var n,o,a,i=e[dn]();if(function e(u){try{for(;!((n=i.next()).done||r&&r());)if((u=t(n.value))&&u.then){if(!hn(u))return void u.then(e,a||(a=pn.bind(null,o=new ln,2)));u=u.v}o?pn(o,1,u):o=u}catch(e){pn(o||(o=new ln),2,e)}}(),i.return){var u=function(e){try{n.done||i.return()}catch(e){}return e};if(o&&o.then)return o.then(u,(function(e){throw u(e)}));u()}return o}if(!("length"in e))throw new TypeError("Object is not iterable");for(var c=[],s=0;s<e.length;s++)c.push(e[s]);return function(e,t,r){var n,o,a=-1;return function i(u){try{for(;++a<e.length&&(!r||!r());)if((u=t(a))&&u.then){if(!hn(u))return void u.then(i,o||(o=pn.bind(null,n=new ln,2)));u=u.v}n?pn(n,1,u):n=u}catch(e){pn(n||(n=new ln),2,e)}}(),n}(c,(function(e){return t(c[e])}),r)}"undefined"!=typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var mn=function(e){var t=e.formStateRef;return function(e){var r,n=e.name,o=e.index,a=e.key,i=e.value,u=t.current,c=Object.assign({},u[n]),s=Object.assign({},c.data),f=Object.assign({},s[o]);return f[a]=i,s[o]=f,c.data=s,Object.assign({},u,((r={})[n]=c,r))}},gn=function(e,t){var r={};return Object.keys(e).forEach((function(n){var o=e[n].data;Object.getOwnPropertySymbols(o).forEach((function(a){var i=o[a],u=i.groupName;if(u){Ct(r,u)||Xr(r,u,[]);var c=i.index;return Ct(r,u)[c]||Xr(r,u+"["+c+"]",{}),Hr(u.split("."))===n?void Xr(r,u+"["+c+"]",t(i,e[n].field)):void Xr(r,u+"["+c+"]."+n,t(i,e[n].field))}Xr(r,""+n,t(i,e[n].field))}))})),r},bn=function(e,t){return gn(e,(function(e){return void 0===e.value?e.value:fn(t,"output",e.interceptor)(e.value)}))},yn=function(e){return Object.keys(e).every((function(t){var r=e[t].data;return Object.getOwnPropertySymbols(r).every((function(e){var t=r[e];return 1===Ct(t,"validate.status")}))}))},_n=function(e){var t=[];return Object.keys(e).forEach((function(r){var n=e[r].data;Object.getOwnPropertySymbols(n).forEach((function(e){var o=n[e];if(2===Ct(o,"validate.status")){var a=o.index,i=o.groupName,u=o.fieldRef;t.push(Object.assign({},o.validate,{name:r,groupName:i,fieldRef:u,index:a}))}}))})),t},wn=function(e){var t=e.formStateRef,r=e.setFormState,n=e.otherProps,o=e.taskQueue,a=e.emitter,i=mn({formStateRef:t});return function(e){var u=e.name,c=e.index,s=t.current[u];r(i({name:u,index:c,key:"validate",value:{status:3,msg:""}}));var f=Ct(s.data[c],"value"),l=Ct(s.data[c],"noTrim"),p=f;"string"==typeof f&&!0!==l&&(p=f.trim(),f!==p&&a.emit("form-field-data-change",{name:u,value:p,index:c})),o.append({id:c,runner:function(){return function(e){var t=e.filed,r=e.value,n=e.formRules,o=e.getFormData;try{var a=!1,i=function(e){var i=!1;if(a)return e;function u(e){return i?e:{result:!0,errMsg:""}}if("object"==typeof t.rule&&t.rule instanceof RegExp)return{result:t.rule.test(r),errMsg:""};var c=function(){if("string"==typeof t.rule)return vn(t.rule.split(" ").filter((function(e){return e.length>0})),(function(e){var a=e.split("-"),u=a[0],c=a.slice(1),s=n[u.toUpperCase()];return function(){if("function"==typeof s){if("REQ"!==e)if(!0!==n.REQ.apply(n,[r].concat(c,[o])).result)return i=!0,{result:!0,errMsg:""};return Promise.resolve(s.apply(void 0,[r].concat(c,[o]))).then((function(e){if(!0!==e.result)return i=!0,{result:!1,errMsg:e.errMsg}}))}console.error("校验规则"+e+"不在当前form的rules里面,请确认"+t.name+"的校验规则"+t.rule+"是否正确")}()}),(function(){return i}))}();return c&&c.then?c.then(u):u(c)},u=function(){if("function"==typeof t.rule)return a=!0,Promise.resolve(t.rule(r))}();return Promise.resolve(u&&u.then?u.then(i):i(u))}catch(e){return Promise.reject(e)}}({filed:Object.assign({},s.field,{rule:s.data[c].rule}),value:p,formRules:n.current.rules,getFormData:function(){bn(t.current)}})},complete:function(e){var t={status:!0===e.result?1:2,msg:e.errMsg};r(i({name:u,index:c,key:"validate",value:t})),a.emit("form-field-validate-complete",{name:u,value:p,index:c,validate:t})}})}},On=function(e){var t=e.formStateRef,r=e.taskQueue,n=e.emitter;return function(){return Object.keys(t.current).forEach((function(e){var r=t.current[e];Object.getOwnPropertySymbols(r.data).forEach((function(t){n.emit("form-field-validate",{name:e,index:t})}))})),Promise.all(r.queue.map((function(e){return e.target})))}},jn=function(e){var t=e.setFormState,r=e.formStateRef,n=e.initDataRef,o=e.otherProps,a=e.taskQueue,i=e.emitter,u=On({formStateRef:r,taskQueue:a,emitter:i});return function(e){var a=e.data,i=e.runValidate,c=void 0===i||i;n.current=a,t(function(e,t,r){return e=Object.assign({},e),t=Object.assign({},t),Object.keys(e).forEach((function(n){var o=e[n].data;Object.getOwnPropertySymbols(o).forEach((function(a){var i=Object.assign({},o[a]),u=i.groupName,c=i.index,s=u&&Hr(u.split("."))===n?Ct(t,u+"["+c+"]"):Ct(t,u?u+"["+c+"]."+n:n);void 0!==s&&(i.value=fn(r,"input",i.interceptor)(s),i.validate={status:0,msg:""},e[n].data[a]=i)}))})),e}(r.current,a,o.current.interceptors)),c&&u()}},xn=function(){function e(e){var t=this,r=e.id,n=e.runner,o=e.complete;this.id=r,this.isCancel=!1,this.target=Promise.race([Promise.resolve(n()),new Promise((function(e){t.resolve=e}))]).then((function(e){return t.isCancel?new Promise((function(){})):e})),this.target.then((function(){return Promise.resolve(o.apply(void 0,arguments))}))}return e.prototype.cancel=function(){!0!==this.isCancel&&(this.isCancel=!0,this.resolve.apply(this,arguments))},e}(),Sn=function(){function e(){this.queue=[]}return e.prototype.append=function(e){var t=this,r=new Proxy(e.complete,{apply:function(e,r,n){var o=e.apply(r,n);return t.queue.splice(i,1),o}});e.complete=r;var n=new xn(e),o=this.queue.find((function(e){var t=e.id;return n.id===t}));if(o){var a=this.queue.indexOf(o);o.cancel(),this.queue.splice(a,1)}var i=this.queue.push(n)},e}(),En=function(e){var r,n,o=e.debug,a=e.interceptors,i=e.rules,u=e.formStateRef,c=e.initDataRef,s=e.setFormState,f=e.onPrevSubmit,l=e.onError,p=e.onSubmit,h=function(e){var r=t.useRef(e);return t.useMemo((function(){var e=new un(r.current);return{addListener:function(){return e.addListener.apply(e,arguments)},emit:function(){return e.emit.apply(e,arguments)},removeAllListeners:function(){return e.removeAllListeners.apply(e,arguments)},listeners:function(){return e.listeners.apply(e,arguments)},once:function(){return e.once.apply(e,arguments)}}}),[])}(o),d=(r={onPrevSubmit:f,onError:l,onSubmit:p,rules:i,interceptors:a},n=t.useRef({}),Object.keys(r).forEach((function(e){n.current[e]=r[e]})),n);return d.current={onPrevSubmit:f,onError:l,onSubmit:p,rules:i,interceptors:a},t.useEffect((function(){var e=new Sn;return h.addListener("form-field-add",function(e){var t=e.formStateRef,r=e.setFormState;return function(e){var n,o=e.name,a=Object.assign({},t.current[o]);a.field||(a.field={name:o},a.data={}),r(Object.assign({},t.current,((n={})[o]=a,n)))}}({formStateRef:u,setFormState:s})),h.addListener("form-field-edit",function(e){var t=e.formStateRef,r=e.setFormState,n=e.initDataRef,o=e.otherProps;return function(e){var a,i=e.name,u=e.rule,c=e.label,s=e.interceptor,f=e.value,l=e.noTrim,p=e.index,h=e.groupName,d=e.groupIndex,v=e.fieldRef,m=Object.assign({},t.current[i]),g=Object.assign({},m.data[p],{index:d,SymbolIndex:p,label:c,noTrim:l,groupName:h,fieldRef:v,interceptor:s});g.value||(g.value=fn(o.current.interceptors,"input",s)(f||(h&&Hr(h.split("."))===i?Ct(n.current,h+'["'+d+'"]'):Ct(n.current,h?h+'["'+d+'"].'+i:i)))),m.data[p]=Object.assign({},g,{rule:u,index:d,SymbolIndex:p,noTrim:l,groupName:h,fieldRef:v,interceptor:s}),r(Object.assign({},t.current,((a={})[i]=m,a)))}}({formStateRef:u,initDataRef:c,setFormState:s,otherProps:d})),h.addListener("form-field-remove",function(e){var t=e.formStateRef,r=e.setFormState;return function(e){var n=e.name,o=e.index,a=Object.assign({},t.current),i=Object.assign({},t.current[n]);i.data&&(delete i.data[o],0===Object.getOwnPropertySymbols(i.data).length?delete a[n]:a[n]=i),r(a)}}({formStateRef:u,setFormState:s})),h.addListener("form-field-validate",wn({formStateRef:u,setFormState:s,taskQueue:e,otherProps:d,emitter:h})),h.addListener("form-field-data-change",function(e){var t=e.formStateRef,r=e.setFormState,n=mn({formStateRef:t});return function(e){var t=e.name,o=e.value,a=e.index;r(n({name:t,index:a,key:"value",value:o})),r(n({name:t,index:a,key:"validate",value:{status:0,msg:""}}))}}({formStateRef:u,setFormState:s})),h.addListener("form-data-set",jn({setFormState:s,formStateRef:u,initDataRef:c,otherProps:d,taskQueue:e,emitter:h})),h.addListener("form-data-reset",function(e){var t=e.initDataRef,r=e.setFormState,n=e.formStateRef;return function(){t.current={};var e=Object.assign({},n.current);Object.keys(e).forEach((function(t){var r=e[t].data;Object.getOwnPropertySymbols(e[t].data).forEach((function(e){delete r[e].validate,delete r[e].value}))})),r(e)}}({initDataRef:c,setFormState:s,formStateRef:u})),h.addListener("form-data-set-field",function(e){var t=e.setFormState,r=e.formStateRef;return function(e){var n,o=e.name,a=e.value,i=a.groupName,u=a.groupIndex,c=Object.assign({},r.current),s=Ct(c[o],"data");if(i){var f=Object.getOwnPropertySymbols(s).find((function(e){var t=Ct(s,"["+e+"]");return Ct(t,"groupName")===i&&Ct(t,"groupIndex")===u}));s[f]=Object.assign({},s[f],a)}else s={},Object.getOwnPropertySymbols(s).forEach((function(e){s[e]=Object.assign({},s[e],a)}));t(Object.assign({},c,((n={})[o]=s,n)))}}({setFormState:s,formStateRef:u})),h.addListener("form-submit",function(e){var t=e.formStateRef,r=e.taskQueue,n=e.otherProps,o=e.emitter,a=On({formStateRef:t,taskQueue:r,emitter:o});return function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var u=n.current,c=u.onPrevSubmit,s=u.onError,f=u.onSubmit;a().then((function(){try{var e=!1,n=function(t){if(e)return t;function n(e){function t(e){return o.emit("form-submit-success",i),!0}return c&&!1===e?(o.emit("form-prev-submit-error"),!0,!1):f?Promise.resolve(f.apply(void 0,[i].concat(r))).then(t):t()}var i=bn(a);return o.emit("form-prev-submit"),c?Promise.resolve(c.apply(void 0,[i].concat(r))).then(n):n(c)},a=t.current,i=yn(a),u=function(){if(!i){var t=function(t){return e=!0,!1},n=_n(a);return o.emit("form-submit-error",n),s?Promise.resolve(s.apply(void 0,[n].concat(r))).then(t):t()}}();return Promise.resolve(u&&u.then?u.then(n):n(u))}catch(e){return Promise.reject(e)}})).then((function(e){o.emit("form-submit-end",e)}),(function(e){console.error(e),o.emit("form-error",e)})).then((function(){o.emit("form-submit-complete")}))}}({formStateRef:u,taskQueue:e,otherProps:d,onPrevSubmit:d.current.onPrevSubmit,onError:d.current.onError,onSubmit:d.current.onSubmit,rules:d.current.rules,emitter:h})),function(){h.removeAllListeners()}}),[h,u,c,d,s]),h},Pn=t.createContext(),kn=Pn.Provider,Cn=function(){return t.useContext(Pn)},Mn=function(e){var r=e.children,n=t.useMemo((function(){return Symbol(Jr("group_"))}),[]),o=t.useState({}),a=o[0],u=o[1],c=tn().emitter;return t.useEffect((function(){var e=c.addListener("form-group-add",(function(e){var t=e.id,r=e.parentId;u((function(e){var n=Object.assign({},e);n[r]||(n[r]=[]);var o=n[r].slice(0);return o.push(t),n[r]=o,n}))})),t=c.addListener("form-group-remove",(function(e){var t=e.id,r=e.parentId;u((function(e){var n=Object.assign({},e),o=n[r].slice(0),a=o.indexOf(t);return o.splice(a,1),n[r]=o,n}))}));return function(){e.remove(),t.remove()}}),[c]),i.createElement(kn,{value:{id:n,groupMap:a}},r)},Rn=function(e){var r=e.name,n=e.children,o=tn(),a=o.formIsMount,u=o.emitter,c=t.useMemo((function(){return Symbol(Jr("group_"))}),[]),s=Cn(),f=s.id,l=s.index,p=s.groupMap,h=s.name,d=t.useMemo((function(){return Ct(p,f,[]).indexOf(c)}),[c,f,p]),v=t.useMemo((function(){return d>-1&&h?h+"["+l+"]."+r:r}),[h,r,d,l]);return t.useEffect((function(){var e=!1;return a&&(e=!0,u.emit("form-group-add",{id:c,parentId:f})),function(){e&&u.emit("form-group-remove",{id:c,parentId:f})}}),[a,u,c,f]),i.createElement(kn,{value:{id:c,name:v,groupMap:p,index:d}},n)},An=Cn,Tn=t.forwardRef((function(e,r){var n=e.onPrevSubmit,o=e.rules,a=e.interceptors,u=e.noFilter,c=e.data,s=e.onError,f=e.onSubmit,l=e.debug,p=e.children,h=function(){var e=t.useState({}),r=e[0],n=e[1],o=t.useRef({}),a=t.useRef({}),i=t.useMemo((function(){return bn(r)}),[r]),u=t.useMemo((function(){return gn(r,(function(e,t){return{field:e,label:t.label,name:t.name,rule:t.rule}}))}),[r]),c=t.useMemo((function(){return yn(r)}),[r]),s=t.useCallback((function(e){"function"==typeof e?n((function(t){var r=e(t);return o.current=r,r})):(o.current=e,n(e))}),[]);return o.current=r,a.current=i,{formState:r,formStateRef:o,formData:i,fields:u,isPass:c,formDataRef:a,setFormState:s}}(),d=h.formState,v=h.formStateRef,m=h.formData,g=h.fields,b=h.isPass,y=h.formDataRef,_=h.setFormState,w=t.useState(!1),O=w[0],j=w[1],x=Object.assign({},nn,o),S=t.useRef(c),E=En({onPrevSubmit:n,rules:x,interceptors:a,noFilter:u,data:c,onError:s,onSubmit:f,debug:l,formState:d,formStateRef:v,formData:m,formDataRef:y,setFormState:_,initDataRef:S});return t.useEffect((function(){return j(!0),S.current&&E.emit("form-data-set",{data:S.current}),E.emit("form-mount"),function(){E.emit("form-unmount")}}),[E]),function(e,r){var n=e.emitter,o=e.fields,a=e.formState,i=e.formData,u=e.isPass;t.useImperativeHandle(r,(function(){return{emitter:n,submit:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.emit("form-submit",t)},get isPass(){return u},get data(){return i},get fields(){return o},get formState(){return a},set data(e){n.emit("form-data-set",{data:e})},reset:function(){n.emit("form-data-reset")},onReady:function(e){n.addListener("form-mount",(function(){e&&e()}))},onDestroy:function(e){n.addListener("form-unmount",(function(){e&&e()}))},validateField:function(e,t){var r=a[e],o=Object.getOwnPropertySymbols(r.data).find((function(e){var n=r.data[e];return!t||t===n.groupName}));o?n.emit("form-field-validate",{name:e,index:o}):console.error("group["+t+"]中没有找到字段["+e+"]")},setFieldValidate:function(e){var t=e.name,r=e.value,o=e.groupName,a=e.groupIndex;n.emit("form-data-set-field",{name:t,value:{groupName:o,groupIndex:a,validate:r}})}}}),[n,o,a,u,i])}({emitter:E,fields:g,interceptors:a,isPass:b,formData:m,formState:d},r),i.createElement(en,{value:{formState:d,formData:m,setFormState:_,emitter:E,fields:g,isPass:b,formIsMount:O,initDataRef:S}},i.createElement(Mn,null,p))}));Tn.defaultProps={data:{},debug:!1,rules:{},interceptors:{}};var In=function(e){var r=e.name,n=e.index,o=e.time,a=tn().emitter,i=function(){a.emit("form-field-validate",{name:r,index:n})},u=function(e,r,n){var o=this,a=t.useRef(null),i=t.useRef(0),u=t.useRef(null),c=t.useRef([]),s=t.useRef(),f=t.useRef(),l=t.useRef(e),p=t.useRef(!0);l.current=e;var h=!r&&0!==r&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");r=+r||0;var d=!!(n=n||{}).leading,v=!("trailing"in n)||!!n.trailing,m="maxWait"in n,g=m?Math.max(+n.maxWait||0,r):null,b=t.useCallback((function(e){var t=c.current,r=s.current;return c.current=s.current=null,i.current=e,f.current=l.current.apply(r,t)}),[]),y=t.useCallback((function(e,t){h&&cancelAnimationFrame(u.current),u.current=h?requestAnimationFrame(e):setTimeout(e,t)}),[h]),_=t.useCallback((function(e){if(!p.current)return!1;var t=e-a.current,n=e-i.current;return!a.current||t>=r||t<0||m&&n>=g}),[g,m,r]),w=t.useCallback((function(e){return u.current=null,v&&c.current?b(e):(c.current=s.current=null,f.current)}),[b,v]),O=t.useCallback((function(){var e=Date.now();if(_(e))return w(e);if(p.current){var t=e-a.current,n=e-i.current,o=r-t,u=m?Math.min(o,g-n):o;y(O,u)}}),[g,m,_,y,w,r]),j=t.useCallback((function(){u.current&&(h?cancelAnimationFrame(u.current):clearTimeout(u.current)),i.current=0,c.current=a.current=s.current=u.current=null}),[h]),x=t.useCallback((function(){return u.current?w(Date.now()):f.current}),[w]);t.useEffect((function(){return p.current=!0,function(){p.current=!1}}),[]);var S=t.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Date.now(),l=_(n);if(c.current=e,s.current=o,a.current=n,l){if(!u.current&&p.current)return i.current=a.current,y(O,r),d?b(a.current):f.current;if(m)return y(O,r),b(a.current)}return u.current||y(O,r),f.current}),[b,d,m,_,y,O,r]),E=t.useCallback((function(){return!!u.current}),[]);return t.useMemo((function(){return{callback:S,cancel:j,flush:x,pending:E}}),[S,j,x,E])}(i,o),c=u.callback,s=u.cancel;return t.useEffect((function(){var e=a.addListener("form-data-reset",s);return function(){e&&e.remove()}}),[a,s]),o?c:i},Fn=function(e,t){if(function(e){return e instanceof window.Event||Ct(e,"nativeEvent")instanceof window.Event||"function"==typeof Ct(e,"preventDefault")}(e)){if(void 0===t)switch(e.target.type){case"checkbox":case"radio":t=e.target.checked;break;default:t=e.target.value}}else t=e;return t},Ln=function(e,t){return"string"==typeof e?e.replace("%s",t):e(t)},Dn=["name","rule","label","interceptor","noTrim","debounce","onChange","value","errMsg"],Nn=function(e){var r=e.name,n=e.rule,o=e.label,a=e.interceptor,i=e.noTrim,u=e.debounce,c=void 0===u?0:u,s=e.onChange,f=e.value,l=e.errMsg,p=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,Dn),h=An(),d=Ct(h,"name"),v=Ct(h,"index"),m=tn(),g=m.formState,b=m.formData,y=t.useMemo((function(){return Symbol(Jr(r+"_"))}),[r]),_=Ct(g,""+r),w=Ct(_,"data",{})[y],O=function(e){var r=e.name,n=e.rule,o=e.label,a=e.interceptor,i=e.noTrim,u=e.value,c=e.index,s=e.groupName,f=e.groupIndex,l=t.useRef(null),p=tn(),h=p.formIsMount,d=p.emitter;return t.useEffect((function(){var e=!1;return h&&(e=!0,d.emit("form-field-add",{name:r,index:c})),function(){e&&d.emit("form-field-remove",{name:r,index:c})}}),[h,d,r,c]),t.useEffect((function(){h&&-1!==f&&d.emit("form-field-edit",{name:r,rule:n,label:o,interceptor:a,noTrim:i,index:c,groupName:s,groupIndex:f,value:u,fieldRef:l})}),[h,d,r,n,o,a,i,c,s,f,u,l]),l}({name:r,rule:n,label:o,interceptor:a,noTrim:i,value:f,index:y,groupName:d,groupIndex:v}),j=In({name:r,index:y,time:c}),x=function(e){var r=e.name,n=e.index,o=e.onChange,a=tn().emitter,i=t.useState(!1),u=i[0],c=i[1];return{isValueChanged:u,onChange:function(){o&&o.apply(void 0,arguments),c(!0);var e=Fn.apply(void 0,arguments);a.emit("form-field-data-change",{name:r,value:e,index:n})}}}({name:r,index:y,onChange:s}),S=x.isValueChanged,E=x.onChange;return on({},p,{name:r,label:o,fieldRef:O,formData:b,formState:g,rule:n,groupName:d,groupIndex:v,onChange:E,isValueChanged:S,value:Ct(w,"value"),triggerValidate:j,errState:Ct(w,"validate.status",0),errMsg:Ln(l||Ct(w,"validate.msg",""),o)})},zn=function(){var e=tn().emitter;return{onClick:t.useCallback((function(){e.emit("form-data-reset")}),[e])}},Un=function(){var e=t.useState(!1),r=e[0],n=e[1],o=tn(),a=o.isPass,i=o.emitter;return t.useEffect((function(){var e=i.addListener("form-submit-complete",(function(){n(!1)}));return function(){e&&e.remove()}}),[i]),{isLoading:r,isPass:a,onClick:t.useCallback((function(){n(!0);for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];i.emit("form-submit",t)}),[i,n])}},qn=t.createContext({}),Bn=qn.Provider,Vn=t.forwardRef((function(e,r){var n=e.name,o=e.children,a=t.useState([]),u=a[0],c=a[1],s=tn().emitter;t.useEffect((function(){var e=s.addListener("form-data-set",(function(e){var t=e.data;c((function(){return(t[n]||[]).map((function(e,t){return t}))}))}));return function(){e.remove()}}),[s,n]);var f=t.useCallback((function(){c((function(e){if(0===e.length)return[0];var t=e.slice(0);return t.push(e[e.length-1]+1),t}))}),[]),l=t.useCallback((function(e){c((function(t){var r=t.indexOf(e),n=t.slice(0);return n.splice(r,1),n}))}),[]);return t.useImperativeHandle(r,(function(){return{onAdd:f,onRemove:l}})),i.createElement(Mn,null,i.createElement(Bn,{value:{onAdd:f,onRemove:l}},u.map((function(e){return i.createElement(Rn,{key:e,name:n},o(e,{onAdd:f,onRemove:l}))}))))}));Vn.useAction=function(){return t.useContext(qn)};var Hn={isNotEmpty:rn,isEmpty:function(e){return!rn(e)},filterEmpty:function(e){void 0===e&&(e={});var t={};return Object.keys(e).forEach((function(r){var n=e[r];rn(n)&&(t[r]=n)})),t}};var Wn=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e};var $n=function(e){if(Array.isArray(e))return e};var Gn=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(n=(i=u.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw a}}return r}};var Qn=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n};var Yn=function(e,t){if(e){if("string"==typeof e)return Qn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qn(e,t):void 0}};var Xn=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var Zn=function(e,t){return $n(e)||Gn(e,t)||Yn(e,t)||Xn()};var Jn=function(e){if(Array.isArray(e))return Qn(e)};var Kn=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)};var eo=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var to=function(e){return Jn(e)||Kn(e)||Yn(e)||eo()},ro="object"==typeof u&&u&&u.Object===Object&&u,no="object"==typeof self&&self&&self.Object===Object&&self,oo=ro||no||Function("return this")(),ao=oo.Symbol,io=Object.prototype,uo=io.hasOwnProperty,co=io.toString,so=ao?ao.toStringTag:void 0;var fo=function(e){var t=uo.call(e,so),r=e[so];try{e[so]=void 0;var n=!0}catch(e){}var o=co.call(e);return n&&(t?e[so]=r:delete e[so]),o},lo=Object.prototype.toString;var po=function(e){return lo.call(e)},ho=ao?ao.toStringTag:void 0;var vo=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ho&&ho in Object(e)?fo(e):po(e)};var mo=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var go=function(e){if(!mo(e))return!1;var t=vo(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},bo=oo["__core-js_shared__"],yo=function(){var e=/[^.]+$/.exec(bo&&bo.keys&&bo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var _o=function(e){return!!yo&&yo in e},wo=Function.prototype.toString;var Oo=function(e){if(null!=e){try{return wo.call(e)}catch(e){}try{return e+""}catch(e){}}return""},jo=/^\[object .+?Constructor\]$/,xo=Function.prototype,So=Object.prototype,Eo=xo.toString,Po=So.hasOwnProperty,ko=RegExp("^"+Eo.call(Po).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Co=function(e){return!(!mo(e)||_o(e))&&(go(e)?ko:jo).test(Oo(e))};var Mo=function(e,t){return null==e?void 0:e[t]};var Ro=function(e,t){var r=Mo(e,t);return Co(r)?r:void 0},Ao=Ro(Object,"create");var To=function(){this.__data__=Ao?Ao(null):{},this.size=0};var Io=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Fo=Object.prototype.hasOwnProperty;var Lo=function(e){var t=this.__data__;if(Ao){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return Fo.call(t,e)?t[e]:void 0},Do=Object.prototype.hasOwnProperty;var No=function(e){var t=this.__data__;return Ao?void 0!==t[e]:Do.call(t,e)};var zo=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ao&&void 0===t?"__lodash_hash_undefined__":t,this};function Uo(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Uo.prototype.clear=To,Uo.prototype.delete=Io,Uo.prototype.get=Lo,Uo.prototype.has=No,Uo.prototype.set=zo;var qo=Uo;var Bo=function(){this.__data__=[],this.size=0};var Vo=function(e,t){return e===t||e!=e&&t!=t};var Ho=function(e,t){for(var r=e.length;r--;)if(Vo(e[r][0],t))return r;return-1},Wo=Array.prototype.splice;var $o=function(e){var t=this.__data__,r=Ho(t,e);return!(r<0)&&(r==t.length-1?t.pop():Wo.call(t,r,1),--this.size,!0)};var Go=function(e){var t=this.__data__,r=Ho(t,e);return r<0?void 0:t[r][1]};var Qo=function(e){return Ho(this.__data__,e)>-1};var Yo=function(e,t){var r=this.__data__,n=Ho(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function Xo(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Xo.prototype.clear=Bo,Xo.prototype.delete=$o,Xo.prototype.get=Go,Xo.prototype.has=Qo,Xo.prototype.set=Yo;var Zo=Xo,Jo=Ro(oo,"Map");var Ko=function(){this.size=0,this.__data__={hash:new qo,map:new(Jo||Zo),string:new qo}};var ea=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var ta=function(e,t){var r=e.__data__;return ea(t)?r["string"==typeof t?"string":"hash"]:r.map};var ra=function(e){var t=ta(this,e).delete(e);return this.size-=t?1:0,t};var na=function(e){return ta(this,e).get(e)};var oa=function(e){return ta(this,e).has(e)};var aa=function(e,t){var r=ta(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function ia(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ia.prototype.clear=Ko,ia.prototype.delete=ra,ia.prototype.get=na,ia.prototype.has=oa,ia.prototype.set=aa;var ua=ia;function ca(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(ca.Cache||ua),r}ca.Cache=ua;var sa=ca,fa=sa((function(e,t,r){var n=Object.assign({fontFamily:"Arial",fontWeight:"normal"},r),o=n.fontFamily,a=n.fontWeight,i=document.createElement("canvas").getContext("2d");return i.font="".concat(t," ").concat(o," ").concat(a),i.measureText(e).width}),(function(e,t,r){var n=Object.assign({},r,{text:e,fontSize:t});return Object.keys(n).map((function(e){return"".concat(e,"-").concat(n[e])})).join(",")}));var la=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var pa=function(e){return this.__data__.has(e)};function ha(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new ua;++t<r;)this.add(e[t])}ha.prototype.add=ha.prototype.push=la,ha.prototype.has=pa;var da=ha;var va=function(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a<o;)if(t(e[a],a,e))return a;return-1};var ma=function(e){return e!=e};var ga=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1};var ba=function(e,t,r){return t==t?ga(e,t,r):va(e,ma,r)};var ya=function(e,t){return!!(null==e?0:e.length)&&ba(e,t,0)>-1};var _a=function(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1};var wa=function(e,t){return e.has(t)},Oa=Ro(oo,"Set");var ja=function(){};var xa=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r},Sa=Oa&&1/xa(new Oa([,-0]))[1]==1/0?function(e){return new Oa(e)}:ja;var Ea=function(e,t,r){var n=-1,o=ya,a=e.length,i=!0,u=[],c=u;if(r)i=!1,o=_a;else if(a>=200){var s=t?null:Sa(e);if(s)return xa(s);i=!1,o=wa,c=new da}else c=t?[]:u;e:for(;++n<a;){var f=e[n],l=t?t(f):f;if(f=r||0!==f?f:0,i&&l==l){for(var p=c.length;p--;)if(c[p]===l)continue e;t&&c.push(l),u.push(f)}else o(c,l,r)||(c!==u&&c.push(l),u.push(f))}return u};var Pa=function(e){return e&&e.length?Ea(e):[]};function ka(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var Ca=function(e){var r=e.triggerValidate,n=e.onBlur,o=l(e,["triggerValidate","onBlur"]);return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ka(Object(r),!0).forEach((function(t){Wn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ka(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({onBlur:t.useCallback((function(){n&&n.apply(void 0,arguments),r()}),[n,r])},o)};function Ma(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var Ra=function(e){var r=e.triggerValidate,n=e.value,o=e.onChange,a=l(e,["triggerValidate","value","onChange"]),i=t.useRef(!1),u=t.useRef(void 0),c=t.useCallback((function(){o&&o.apply(void 0,arguments),i.current=!0}),[o]);return t.useEffect((function(){u.current=r}),[r]),t.useEffect((function(){i.current&&u.current()}),[n]),function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ma(Object(r),!0).forEach((function(t){Wn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ma(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({value:n,onChange:c},a)};function Aa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var Ta=t.createContext({}),Ia=Ta.Provider,Fa=t.createContext({size:"middle"}),La=Fa.Provider,Da=(Fa.Consumer,function(e){var r=e.name,n=e.rule,o=e.className,a=e.onChange,u=e.label,c=e.labelHidden,f=e.errMsg,h=e.errState,d=e.isValueChanged,v=e.wrappedClassName,m=e.fieldRef,g=e.important,b=e.ignoreLabelWidth,y=(e.formState,e.groupIndex,e.groupName,e.formData,l(e,["name","rule","className","onChange","label","labelHidden","errMsg","errState","isValueChanged","wrappedClassName","fieldRef","important","ignoreLabelWidth","formState","groupIndex","groupName","formData"])),_=t.useContext(Fa).size,w=t.useState(!1),O=Zn(w,2),j=O[0],x=O[1],S=t.useState(!1),E=Zn(S,2),P=E[0],k=E[1],C=tn().emitter,M=t.useContext(Ta).maxWidth;t.useEffect((function(){x((n||"").split(" ").indexOf("REQ")>-1)}),[x,r,n]),t.useEffect((function(){var e=C.addListener("form-submit",(function(){k(!0)}));return function(){e&&e.remove()}}),[C,r]);var R=t.useCallback((function(){a.apply(void 0,arguments),k(!1)}),[a,k]);return t.useCallback((function(e){var t={};!b&&M>0&&(t.minWidth=M);var r=function(e){var t=e.errMsg,r=e.errState,n=e.isSubmit,o=e.isValueChanged;return{"is-req-error":""===t&&2===r&&(n||o),"is-error":""!==t&&2===r,"is-loading":3===r}}({errMsg:f,errState:h,isSubmit:P,isValueChanged:d}),n=void 0!==g?g:j;return _&&(y.size=_),i.createElement("div",{ref:m,className:p("react-form__field",{"is-ignore-label-width":b},v,r)},i.createElement("div",{className:"react-form__field-main"},u&&!c?i.createElement("div",{className:p("react-form__field-label",{"is-req":n}),style:t},i.createElement("i",{className:"react-form__field_extra"}),u):null,i.createElement("div",{className:"react-form__field-input"},i.createElement(e,s({},y,{className:p("react-form__field-component",o),onChange:R})),f?i.createElement("div",{className:"react-form__field-error"},f):null)))}),[M,m,c,b,y,d,o,f,h,R,g,j,P,u,v])}),Na=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=e.getBoundingClientRect(),n=r.top>=0,o=r.left>=0,a=r.bottom<=(window.innerHeight||document.documentElement.clientHeight)+t,i=r.right<=(window.innerWidth||document.documentElement.clientWidth)+t;return n&&o&&a&&i},za=function(e){var r=e.scrollProps,n=tn().emitter;return t.useEffect((function(){var e=n.addListener("form-submit-error",(function(e){var t=e[0].fieldRef.current;!Na(t)&&t.scrollIntoView(r)}));return function(){e&&e.remove()}}),[n]),null};za.defaultProps={scrollProps:{}};var Ua=function(e){var r=e.type,n=e.children,o=l(e,["type","children"]),a=tn().emitter,u=t.useCallback((function(e){13===e.keyCode&&a.emit("form-submit")}),[a]);return i.createElement(r,Object.assign({},o,{onKeyUp:u}),n)};Ua.defaultProps={type:"div"};var qa={useBlurDecorator:Ca,useChangeDecorator:Ra,useCheckedToValue:function(e){var t=e.checked;return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Aa(Object(r),!0).forEach((function(t){Wn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Aa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},l(e,["checked"]),{value:t})},useDecorator:function(e){var t=e.realtime,r=l(e,["realtime"]),n=Nn(Object.assign(t?{debounce:500}:{},r)),o=Ra(n),a=Ca(n),i=Object.assign({},a,o);return Da(t?i:a)},useOnBlur:function(e){var t=Nn(e),r=Ca(t);return Da(r)},useOnChange:function(e){var t=Nn(e),r=Ra(t);return Da(r)},useUIDecorator:Da},Ba=function(e){return function(t){var r=t.value,n=l(t,["value"]);return i.createElement(e,s({},n,{checked:r}))}},Va={ScrollToError:za,EnterSubmit:Ua,MaxLabelProvider:function(e){var r=e.minLabelWidth,n=e.children,o=t.useState(r||0),a=Zn(o,2),u=a[0],c=a[1],s=tn().fields,f=t.useRef(null);return t.useEffect((function(){var e=f.current.querySelector(".react-form__field-label")||f.current,t=window.getComputedStyle(e).getPropertyValue("font-size");c(Math.max.apply(Math,to(Pa(Object.values(s).map((function(e){return e.label}))).map((function(e){return fa(e,t)})))))}),[s]),i.createElement(Ia,{value:{maxWidth:u,setMaxWidth:c}},i.createElement("span",{ref:f},n))},FormStore:function(e){var r=e.cache,n=t.useRef("REACT_FORM_STORE_".concat(r)),o=tn().emitter;return t.useEffect((function(){try{var e=window.localStorage.getItem(n.current);if(e){var t=JSON.parse(e);setTimeout((function(){o.emit("form-data-set",{data:t})}),0)}}catch(e){}var r=o.addListener("form-state-change",(function(e){var t=e.data,r=window.localStorage.getItem(n.current),o=JSON.stringify(t);r!==o&&window.localStorage.setItem(n.current,o)})),a=o.addListener("form-submit-success",(function(){window.localStorage.removeItem(n.current)}));return function(){r&&r.remove(),a&&a.remove()}}),[o]),null},SizeProvider:La},Ha={isElementInViewport:Na};!function(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".react-form, .react-form--large, .react-form--small, .react-form--inner, .react-form--inner--large, .react-form--inner--small, .react-form--inline, .react-form--inline--large, .react-form--inline--small {\n text-align: left;\n font-size: 12px; }\n .react-form .ant-select, .react-form--large .ant-select, .react-form--small .ant-select, .react-form--inner .ant-select, .react-form--inner--large .ant-select, .react-form--inner--small .ant-select, .react-form--inline .ant-select, .react-form--inline--large .ant-select, .react-form--inline--small .ant-select {\n width: 100%; }\n .react-form--large .react-form__field-label {\n font-size: 14px;\n margin-right: 20px;\n line-height: 34px; }\n .react-form--small .react-form__field-label {\n margin-right: 12px;\n line-height: 24px; }\n .react-form--inner .react-form__field, .react-form--inner--large .react-form__field, .react-form--inner--small .react-form__field {\n margin-bottom: 22px; }\n .react-form--inner .react-form__field-main, .react-form--inner--large .react-form__field-main, .react-form--inner--small .react-form__field-main {\n flex-direction: column; }\n .react-form--inner .react-form__field-input, .react-form--inner--large .react-form__field-input, .react-form--inner--small .react-form__field-input {\n align-self: auto; }\n .react-form--inner .react-form__field-label, .react-form--inner--large .react-form__field-label, .react-form--inner--small .react-form__field-label {\n font-size: 14px;\n text-align: left;\n font-weight: bold;\n margin-left: 0;\n margin-bottom: 2px; }\n .react-form--inner--small .react-form__field-label {\n font-size: 12px;\n margin-bottom: 1px; }\n .react-form--inline, .react-form--inline--large, .react-form--inline--small {\n padding: 30px 30px 6px; }\n .react-form--inline .react-form__field, .react-form--inline--large .react-form__field, .react-form--inline--small .react-form__field {\n display: inline-block;\n margin-right: 40px; }\n .react-form--inline .react-form__field:last-child, .react-form--inline--large .react-form__field:last-child, .react-form--inline--small .react-form__field:last-child {\n margin-right: 0; }\n .react-form--inline .react-form__field-label, .react-form--inline--large .react-form__field-label, .react-form--inline--small .react-form__field-label {\n min-width: auto !important;\n padding-left: 0; }\n .react-form--inline .react-form__field-label.is-req:before, .react-form--inline--large .react-form__field-label.is-req:before, .react-form--inline--small .react-form__field-label.is-req:before {\n position: static; }\n .react-form--inline--large .react-form__field-label {\n font-size: 14px;\n line-height: 34px; }\n .react-form--inline--small .react-form__field-label {\n margin-right: 12px; }\n .react-form__field-main {\n display: flex; }\n .react-form__field-label {\n text-align: right;\n margin-right: 16px;\n line-height: 30px;\n margin-left: 10px;\n position: relative; }\n .react-form__field-label.is-req:before {\n position: absolute;\n color: #fc3333;\n font-weight: bold;\n content: '*';\n margin-right: 4px;\n transform: translateX(-10px); }\n .react-form__field-input {\n align-self: center;\n flex: 1;\n position: relative; }\n .react-form__field {\n margin-bottom: 24px;\n transition: border-color 300ms; }\n .react-form__field.is-req-error .react-form__field-component, .react-form__field.is-error .react-form__field-component {\n border-color: #fc3333; }\n .react-form__field.is-req-error .react-form__field-component:focus, .react-form__field.is-error .react-form__field-component:focus {\n box-shadow: 0 0 0 2px rgba(252, 51, 51, 0.2); }\n .react-form__field.is-req-error .react-form__field-component .ant-select-selection, .react-form__field.is-req-error .react-form__field-component .ant-input, .react-form__field.is-req-error .react-form__field-component .ant-radio-inner, .react-form__field.is-error .react-form__field-component .ant-select-selection, .react-form__field.is-error .react-form__field-component .ant-input, .react-form__field.is-error .react-form__field-component .ant-radio-inner {\n border-color: #fc3333; }\n .react-form__field.is-req-error .react-form__field-component .ant-select-selection:focus, .react-form__field.is-req-error .react-form__field-component .ant-input:focus, .react-form__field.is-req-error .react-form__field-component .ant-radio-inner:focus, .react-form__field.is-error .react-form__field-component .ant-select-selection:focus, .react-form__field.is-error .react-form__field-component .ant-input:focus, .react-form__field.is-error .react-form__field-component .ant-radio-inner:focus {\n box-shadow: 0 0 0 2px rgba(252, 51, 51, 0.2); }\n .react-form__field.is-req-error .react-form__field-component .ant-upload.ant-upload-select-picture-card, .react-form__field.is-error .react-form__field-component .ant-upload.ant-upload-select-picture-card {\n border-color: #fc3333; }\n .react-form__field.is-req-error .react-form__field-component.ant-input-affix-wrapper .ant-input, .react-form__field.is-error .react-form__field-component.ant-input-affix-wrapper .ant-input {\n box-shadow: none; }\n .react-form__field.is-req-error .react-form__field-component.ant-input-affix-wrapper-focused, .react-form__field.is-error .react-form__field-component.ant-input-affix-wrapper-focused {\n box-shadow: 0 0 0 2px rgba(252, 51, 51, 0.2); }\n .react-form__field.is-req-error .react-form__field-component.ant-select > .ant-select-selector, .react-form__field.is-error .react-form__field-component.ant-select > .ant-select-selector {\n border-color: #fc3333; }\n .react-form__field.is-req-error .react-form__field-component.ant-select.ant-select-focused > .ant-select-selector, .react-form__field.is-error .react-form__field-component.ant-select.ant-select-focused > .ant-select-selector {\n box-shadow: 0 0 0 2px rgba(252, 51, 51, 0.2); }\n .react-form__field-error {\n color: #fc3333;\n font-size: 12px;\n position: absolute;\n top: calc(100% + 1px);\n left: 0; }\n\n.react-form-modal .ant-modal-content > .ant-modal-body {\n padding: 0; }\n\n.react-form-modal .ant-modal-confirm-btns {\n display: none; }\n\n.react-form-modal.ant-modal-confirm .ant-modal-header, .react-form-modal.ant-modal-confirm .ant-modal-close {\n display: block; }\n\n.react-form-avatar .preview {\n width: 85px;\n height: 85px;\n overflow: hidden;\n display: flex;\n justify-content: center;\n align-items: center; }\n .react-form-avatar .preview img {\n max-width: 100%;\n max-height: 100%; }\n");var Wa=Va.ScrollToError,$a=Va.EnterSubmit,Ga=Va.FormStore,Qa=Va.MaxLabelProvider,Ya=Va.SizeProvider,Xa=t.forwardRef((function(e,t){var r=e.className,n=e.cache,o=e.enterSubmit,a=e.scrollToError,u=e.scrollProps,c=e.type,f=e.size,h=e.children,d=l(e,["className","cache","enterSubmit","scrollToError","scrollProps","type","size","children"]),v="react-form";"default"!==c&&(v+="--".concat(c)),"middle"!==f&&(v+="--".concat(f));var m=i.createElement(Qa,null,h);return i.createElement("form",{className:p(v,r),onSubmit:function(e){e.preventDefault(),e.stopPropagation()}},i.createElement(Ya,{value:{size:f}},i.createElement(Tn,s({},d,{ref:t}),n?i.createElement(Ga,{cache:n}):null,a?i.createElement(Wa,{scrollProps:u}):null,o?i.createElement($a,null,m):m)))}));Xa.defaultProps={type:"default",size:"middle",scrollToError:!0,enterSubmit:!1,scrollProps:{block:"center"}},Xa.propTypes={className:r.string,type:r.oneOf(["inline","default","inner"]),size:r.oneOf(["small","middle","large"]),enterSubmit:r.bool,scrollToError:r.bool,scrollProps:r.shape({block:r.oneOf(["start","center","end","nearest"]),behavior:r.oneOf(["auto","smooth"]),inline:r.oneOf(["start","center","end","nearest"])})};var Za=c((function(e){var t=function(e){var t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",i=n.toStringTag||"@@toStringTag";function u(e,t,r,n){var o=t&&t.prototype instanceof f?t:f,a=Object.create(o.prototype),i=new O(n||[]);return a._invoke=function(e,t,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return x()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var u=y(i,r);if(u){if(u===s)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var f=c(e,t,r);if("normal"===f.type){if(n=r.done?"completed":"suspendedYield",f.arg===s)continue;return{value:f.arg,done:r.done}}"throw"===f.type&&(n="completed",r.method="throw",r.arg=f.arg)}}}(e,r,i),a}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var s={};function f(){}function l(){}function p(){}var h={};h[o]=function(){return this};var d=Object.getPrototypeOf,v=d&&d(d(j([])));v&&v!==t&&r.call(v,o)&&(h=v);var m=p.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function b(e,t){var n;this._invoke=function(o,a){function i(){return new t((function(n,i){!function n(o,a,i,u){var s=c(e[o],e,a);if("throw"!==s.type){var f=s.arg,l=f.value;return l&&"object"==typeof l&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,i,u)}),(function(e){n("throw",e,i,u)})):t.resolve(l).then((function(e){f.value=e,i(f)}),(function(e){return n("throw",e,i,u)}))}u(s.arg)}(o,a,n,i)}))}return n=n?n.then(i,i):i()}}function y(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,y(e,t),"throw"===t.method))return s;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=c(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,s;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,s):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,s)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function j(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:x}}function x(){return{value:void 0,done:!0}}return l.prototype=m.constructor=p,p.constructor=l,p[i]=l.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===l||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,i in e||(e[i]="GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(b.prototype),b.prototype[a]=function(){return this},e.AsyncIterator=b,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new b(u(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},g(m),m[i]="Generator",m[o]=function(){return this},m.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=j,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,s):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),s},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),s}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:j(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}}));function Ja(e,t,r,n,o,a,i){try{var u=e[a](i),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}var Ka=function(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){Ja(a,n,o,i,u,"next",e)}function u(e){Ja(a,n,o,i,u,"throw",e)}i(void 0)}))}};var ei=function(){this.__data__=new Zo,this.size=0};var ti=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};var ri=function(e){return this.__data__.get(e)};var ni=function(e){return this.__data__.has(e)};var oi=function(e,t){var r=this.__data__;if(r instanceof Zo){var n=r.__data__;if(!Jo||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ua(n)}return r.set(e,t),this.size=r.size,this};function ai(e){var t=this.__data__=new Zo(e);this.size=t.size}ai.prototype.clear=ei,ai.prototype.delete=ti,ai.prototype.get=ri,ai.prototype.has=ni,ai.prototype.set=oi;var ii=ai,ui=function(){try{var e=Ro(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var ci=function(e,t,r){"__proto__"==t&&ui?ui(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r};var si=function(e,t,r){(void 0!==r&&!Vo(e[t],r)||void 0===r&&!(t in e))&&ci(e,t,r)};var fi=function(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),u=i.length;u--;){var c=i[e?u:++o];if(!1===r(a[c],c,a))break}return t}}(),li=c((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?oo.Buffer:void 0,a=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=a?a(r):new e.constructor(r);return e.copy(n),n}})),pi=oo.Uint8Array;var hi=function(e){var t=new e.constructor(e.byteLength);return new pi(t).set(new pi(e)),t};var di=function(e,t){var r=t?hi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)};var vi=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},mi=Object.create,gi=function(){function e(){}return function(t){if(!mo(t))return{};if(mi)return mi(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();var bi=function(e,t){return function(r){return e(t(r))}},yi=bi(Object.getPrototypeOf,Object),_i=Object.prototype;var wi=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||_i)};var Oi=function(e){return"function"!=typeof e.constructor||wi(e)?{}:gi(yi(e))};var ji=function(e){return null!=e&&"object"==typeof e};var xi=function(e){return ji(e)&&"[object Arguments]"==vo(e)},Si=Object.prototype,Ei=Si.hasOwnProperty,Pi=Si.propertyIsEnumerable,ki=xi(function(){return arguments}())?xi:function(e){return ji(e)&&Ei.call(e,"callee")&&!Pi.call(e,"callee")},Ci=Array.isArray;var Mi=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var Ri=function(e){return null!=e&&Mi(e.length)&&!go(e)};var Ai=function(e){return ji(e)&&Ri(e)};var Ti=function(){return!1},Ii=c((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?oo.Buffer:void 0,a=(o?o.isBuffer:void 0)||Ti;e.exports=a})),Fi=Function.prototype,Li=Object.prototype,Di=Fi.toString,Ni=Li.hasOwnProperty,zi=Di.call(Object);var Ui=function(e){if(!ji(e)||"[object Object]"!=vo(e))return!1;var t=yi(e);if(null===t)return!0;var r=Ni.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Di.call(r)==zi},qi={};qi["[object Float32Array]"]=qi["[object Float64Array]"]=qi["[object Int8Array]"]=qi["[object Int16Array]"]=qi["[object Int32Array]"]=qi["[object Uint8Array]"]=qi["[object Uint8ClampedArray]"]=qi["[object Uint16Array]"]=qi["[object Uint32Array]"]=!0,qi["[object Arguments]"]=qi["[object Array]"]=qi["[object ArrayBuffer]"]=qi["[object Boolean]"]=qi["[object DataView]"]=qi["[object Date]"]=qi["[object Error]"]=qi["[object Function]"]=qi["[object Map]"]=qi["[object Number]"]=qi["[object Object]"]=qi["[object RegExp]"]=qi["[object Set]"]=qi["[object String]"]=qi["[object WeakMap]"]=!1;var Bi=function(e){return ji(e)&&Mi(e.length)&&!!qi[vo(e)]};var Vi=function(e){return function(t){return e(t)}},Hi=c((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r&&ro.process,a=function(){try{var e=n&&n.require&&n.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a})),Wi=Hi&&Hi.isTypedArray,$i=Wi?Vi(Wi):Bi;var Gi=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Qi=Object.prototype.hasOwnProperty;var Yi=function(e,t,r){var n=e[t];Qi.call(e,t)&&Vo(n,r)&&(void 0!==r||t in e)||ci(e,t,r)};var Xi=function(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var u=t[a],c=n?n(r[u],e[u],u,r,e):void 0;void 0===c&&(c=e[u]),o?ci(r,u,c):Yi(r,u,c)}return r};var Zi=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},Ji=/^(?:0|[1-9]\d*)$/;var Ki=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&Ji.test(e))&&e>-1&&e%1==0&&e<t},eu=Object.prototype.hasOwnProperty;var tu=function(e,t){var r=Ci(e),n=!r&&ki(e),o=!r&&!n&&Ii(e),a=!r&&!n&&!o&&$i(e),i=r||n||o||a,u=i?Zi(e.length,String):[],c=u.length;for(var s in e)!t&&!eu.call(e,s)||i&&("length"==s||o&&("offset"==s||"parent"==s)||a&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Ki(s,c))||u.push(s);return u};var ru=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},nu=Object.prototype.hasOwnProperty;var ou=function(e){if(!mo(e))return ru(e);var t=wi(e),r=[];for(var n in e)("constructor"!=n||!t&&nu.call(e,n))&&r.push(n);return r};var au=function(e){return Ri(e)?tu(e,!0):ou(e)};var iu=function(e){return Xi(e,au(e))};var uu=function(e,t,r,n,o,a,i){var u=Gi(e,r),c=Gi(t,r),s=i.get(c);if(s)si(e,r,s);else{var f=a?a(u,c,r+"",e,t,i):void 0,l=void 0===f;if(l){var p=Ci(c),h=!p&&Ii(c),d=!p&&!h&&$i(c);f=c,p||h||d?Ci(u)?f=u:Ai(u)?f=vi(u):h?(l=!1,f=li(c,!0)):d?(l=!1,f=di(c,!0)):f=[]:Ui(c)||ki(c)?(f=u,ki(u)?f=iu(u):mo(u)&&!go(u)||(f=Oi(c))):l=!1}l&&(i.set(c,f),o(f,c,n,a,i),i.delete(c)),si(e,r,f)}};var cu=function e(t,r,n,o,a){t!==r&&fi(r,(function(i,u){if(a||(a=new ii),mo(i))uu(t,r,u,n,e,o,a);else{var c=o?o(Gi(t,u),i,u+"",t,r,a):void 0;void 0===c&&(c=i),si(t,u,c)}}),au)};var su=function(e){return e};var fu=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},lu=Math.max;var pu=function(e,t,r){return t=lu(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=lu(n.length-t,0),i=Array(a);++o<a;)i[o]=n[t+o];o=-1;for(var u=Array(t+1);++o<t;)u[o]=n[o];return u[t]=r(i),fu(e,this,u)}};var hu=function(e){return function(){return e}},du=ui?function(e,t){return ui(e,"toString",{configurable:!0,enumerable:!1,value:hu(t),writable:!0})}:su,vu=Date.now;var mu=function(e){var t=0,r=0;return function(){var n=vu(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(du);var gu=function(e,t){return mu(pu(e,t,su),e+"")};var bu=function(e,t,r){if(!mo(r))return!1;var n=typeof t;return!!("number"==n?Ri(r)&&Ki(t,r.length):"string"==n&&t in r)&&Vo(r[t],e)};var yu=function(e){return gu((function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,i&&bu(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++n<o;){var u=r[n];u&&e(t,u,n,a)}return t}))}((function(e,t,r){cu(e,t,r)}));var _u=function(e){return"symbol"==typeof e||ji(e)&&"[object Symbol]"==vo(e)},wu=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ou=/^\w*$/;var ju=function(e,t){if(Ci(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!_u(e))||(Ou.test(e)||!wu.test(e)||null!=t&&e in Object(t))};var xu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Su=/\\(\\)?/g,Eu=function(e){var t=sa(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(xu,(function(e,r,n,o){t.push(n?o.replace(Su,"$1"):r||e)})),t}));var Pu=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},ku=ao?ao.prototype:void 0,Cu=ku?ku.toString:void 0;var Mu=function e(t){if("string"==typeof t)return t;if(Ci(t))return Pu(t,e)+"";if(_u(t))return Cu?Cu.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r};var Ru=function(e){return null==e?"":Mu(e)};var Au=function(e,t){return Ci(e)?e:ju(e,t)?[e]:Eu(Ru(e))};var Tu=function(e){if("string"==typeof e||_u(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};var Iu=function(e,t){for(var r=0,n=(t=Au(t,e)).length;null!=e&&r<n;)e=e[Tu(t[r++])];return r&&r==n?e:void 0};var Fu=function(e,t,r){var n=null==e?void 0:Iu(e,t);return void 0===n?r:n},Lu={rules:{},field:{upload:{action:"/open-api/upload_static_file/interview-manager",transformResponse:function(e){return{code:e.code,msg:e.msg,results:Fu(e,"results[0].targetPath")}}},avatar:{transformResponse:function(e){return{code:e.code,results:e.results,msg:e.msg}},action:"/upload"}}};function Du(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Nu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(n=(i=u.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw a}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Du(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Du(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zu(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Uu(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function qu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Bu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qu(Object(r),!0).forEach((function(t){zu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Vu(e){return(Vu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Hu(e,t){(function(e){return"string"==typeof e&&e.includes(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&e.includes("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function Wu(e){return Math.min(1,Math.max(0,e))}function $u(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Gu(e){return e<=1?100*Number(e)+"%":e}function Qu(e){return 1===e.length?"0"+e:String(e)}function Yu(e,t,r){e=Hu(e,255),t=Hu(t,255),r=Hu(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),a=0,i=0,u=(n+o)/2;if(n===o)i=0,a=0;else{var c=n-o;switch(i=u>.5?c/(2-n-o):c/(n+o),n){case e:a=(t-r)/c+(t<r?6:0);break;case t:a=(r-e)/c+2;break;case r:a=(e-t)/c+4}a/=6}return{h:a,s:i,l:u}}function Xu(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*r*(t-e):r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Zu(e,t,r){e=Hu(e,255),t=Hu(t,255),r=Hu(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),a=0,i=n,u=n-o,c=0===n?0:u/n;if(n===o)a=0;else{switch(n){case e:a=(t-r)/u+(t<r?6:0);break;case t:a=(r-e)/u+2;break;case r:a=(e-t)/u+4}a/=6}return{h:a,s:c,v:i}}function Ju(e,t,r,n){var o=[Qu(Math.round(e).toString(16)),Qu(Math.round(t).toString(16)),Qu(Math.round(r).toString(16))];return n&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Ku(e){return ec(e)/255}function ec(e){return parseInt(e,16)}var tc={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function rc(e){var t,r,n,o={r:0,g:0,b:0},a=1,i=null,u=null,c=null,s=!1,f=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(tc[e])e=tc[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var r=ic.rgb.exec(e);if(r)return{r:r[1],g:r[2],b:r[3]};if(r=ic.rgba.exec(e))return{r:r[1],g:r[2],b:r[3],a:r[4]};if(r=ic.hsl.exec(e))return{h:r[1],s:r[2],l:r[3]};if(r=ic.hsla.exec(e))return{h:r[1],s:r[2],l:r[3],a:r[4]};if(r=ic.hsv.exec(e))return{h:r[1],s:r[2],v:r[3]};if(r=ic.hsva.exec(e))return{h:r[1],s:r[2],v:r[3],a:r[4]};if(r=ic.hex8.exec(e))return{r:ec(r[1]),g:ec(r[2]),b:ec(r[3]),a:Ku(r[4]),format:t?"name":"hex8"};if(r=ic.hex6.exec(e))return{r:ec(r[1]),g:ec(r[2]),b:ec(r[3]),format:t?"name":"hex"};if(r=ic.hex4.exec(e))return{r:ec(r[1]+r[1]),g:ec(r[2]+r[2]),b:ec(r[3]+r[3]),a:Ku(r[4]+r[4]),format:t?"name":"hex8"};if(r=ic.hex3.exec(e))return{r:ec(r[1]+r[1]),g:ec(r[2]+r[2]),b:ec(r[3]+r[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(uc(e.r)&&uc(e.g)&&uc(e.b)?(t=e.r,r=e.g,n=e.b,o={r:255*Hu(t,255),g:255*Hu(r,255),b:255*Hu(n,255)},s=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):uc(e.h)&&uc(e.s)&&uc(e.v)?(i=Gu(e.s),u=Gu(e.v),o=function(e,t,r){e=6*Hu(e,360),t=Hu(t,100),r=Hu(r,100);var n=Math.floor(e),o=e-n,a=r*(1-t),i=r*(1-o*t),u=r*(1-(1-o)*t),c=n%6;return{r:255*[r,i,a,a,u,r][c],g:255*[u,r,r,i,a,a][c],b:255*[a,a,u,r,r,i][c]}}(e.h,i,u),s=!0,f="hsv"):uc(e.h)&&uc(e.s)&&uc(e.l)&&(i=Gu(e.s),c=Gu(e.l),o=function(e,t,r){var n,o,a;if(e=Hu(e,360),t=Hu(t,100),r=Hu(r,100),0===t)o=r,a=r,n=r;else{var i=r<.5?r*(1+t):r+t-r*t,u=2*r-i;n=Xu(u,i,e+1/3),o=Xu(u,i,e),a=Xu(u,i,e-1/3)}return{r:255*n,g:255*o,b:255*a}}(e.h,i,c),s=!0,f="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(a=e.a)),a=$u(a),{ok:s,format:e.format||f,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:a}}var nc="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",oc="[\\s|\\(]+("+nc+")[,|\\s]+("+nc+")[,|\\s]+("+nc+")\\s*\\)?",ac="[\\s|\\(]+("+nc+")[,|\\s]+("+nc+")[,|\\s]+("+nc+")[,|\\s]+("+nc+")\\s*\\)?",ic={CSS_UNIT:new RegExp(nc),rgb:new RegExp("rgb"+oc),rgba:new RegExp("rgba"+ac),hsl:new RegExp("hsl"+oc),hsla:new RegExp("hsla"+ac),hsv:new RegExp("hsv"+oc),hsva:new RegExp("hsva"+ac),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function uc(e){return Boolean(ic.CSS_UNIT.exec(String(e)))}var cc=function(){function e(t,r){var n;if(void 0===t&&(t=""),void 0===r&&(r={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=rc(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(n=r.format)&&void 0!==n?n:o.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,r=e.g/255,n=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=$u(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var e=Zu(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=Zu(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),n=Math.round(100*e.v);return 1===this.a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this.roundA+")"},e.prototype.toHsl=function(){var e=Yu(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=Yu(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),n=Math.round(100*e.l);return 1===this.a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this.roundA+")"},e.prototype.toHex=function(e){return void 0===e&&(e=!1),Ju(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,r,n,o){var a,i=[Qu(Math.round(e).toString(16)),Qu(Math.round(t).toString(16)),Qu(Math.round(r).toString(16)),Qu((a=n,Math.round(255*parseFloat(a)).toString(16)))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),r=Math.round(this.b);return 1===this.a?"rgb("+e+", "+t+", "+r+")":"rgba("+e+", "+t+", "+r+", "+this.roundA+")"},e.prototype.toPercentageRgb=function(){var e=function(e){return Math.round(100*Hu(e,255))+"%"};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*Hu(e,255))};return 1===this.a?"rgb("+e(this.r)+"%, "+e(this.g)+"%, "+e(this.b)+"%)":"rgba("+e(this.r)+"%, "+e(this.g)+"%, "+e(this.b)+"%, "+this.roundA+")"},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+Ju(this.r,this.g,this.b,!1),t=0,r=Object.entries(tc);t<r.length;t++){var n=r[t],o=n[0];if(e===n[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var r=!1,n=this.a<1&&this.a>=0;return t||!n||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=Wu(r.l),new e(r)},e.prototype.brighten=function(t){void 0===t&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-t/100*255))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-t/100*255))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-t/100*255))),new e(r)},e.prototype.darken=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=Wu(r.l),new e(r)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=Wu(r.s),new e(r)},e.prototype.saturate=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=Wu(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){void 0===r&&(r=50);var n=this.toRgb(),o=new e(t).toRgb(),a=r/100;return new e({r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+n.a})},e.prototype.analogous=function(t,r){void 0===t&&(t=6),void 0===r&&(r=30);var n=this.toHsl(),o=360/r,a=[this];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,a.push(new e(n));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var r=this.toHsv(),n=r.h,o=r.s,a=r.v,i=[],u=1/t;t--;)i.push(new e({h:n,s:o,v:a})),a=(a+u)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,o=[this],a=360/t,i=1;i<t;i++)o.push(new e({h:(n+i*a)%360,s:r.s,l:r.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),sc=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function fc(e,t,r){var n;return(n=Math.round(e.h)>=60&&Math.round(e.h)<=240?r?Math.round(e.h)-2*t:Math.round(e.h)+2*t:r?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?n+=360:n>=360&&(n-=360),n}function lc(e,t,r){return 0===e.h&&0===e.s?e.s:((n=r?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(n=1),r&&5===t&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2)));var n}function pc(e,t,r){var n;return(n=r?e.v+.05*t:e.v-.15*t)>1&&(n=1),Number(n.toFixed(2))}function hc(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[],n=new cc(e),o=5;o>0;o-=1){var a=n.toHsv(),i=new cc({h:fc(a,o,!0),s:lc(a,o,!0),v:pc(a,o,!0)}).toHexString();r.push(i)}r.push(n.toHexString());for(var u=1;u<=4;u+=1){var c=n.toHsv(),s=new cc({h:fc(c,u),s:lc(c,u),v:pc(c,u)}).toHexString();r.push(s)}return"dark"===t.theme?sc.map((function(e){var n=e.index,o=e.opacity;return new cc(t.backgroundColor||"#141414").mix(r[n],100*o).toHexString()})):r}var dc={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},vc={},mc={};Object.keys(dc).forEach((function(e){vc[e]=hc(dc[e]),vc[e].primary=vc[e][5],mc[e]=hc(dc[e],{theme:"dark",backgroundColor:"#141414"}),mc[e].primary=mc[e][5]}));var gc={};function bc(e,t){"production"===process.env.NODE_ENV||e||void 0===console||console.error("Warning: ".concat(t))}function yc(e,t){!function(e,t,r){t||gc[r]||(e(!1,r),gc[r]=!0)}(bc,e,t)}var _c=[],wc=[];function Oc(e,t){if(t=t||{},void 0===e)throw new Error("insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).");var r,n=!0===t.prepend?"prepend":"append",o=void 0!==t.container?t.container:document.querySelector("head"),a=_c.indexOf(o);return-1===a&&(a=_c.push(o)-1,wc[a]={}),void 0!==wc[a]&&void 0!==wc[a][n]?r=wc[a][n]:(r=wc[a][n]=function(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}(),"prepend"===n?o.insertBefore(r,o.childNodes[0]):o.appendChild(r)),65279===e.charCodeAt(0)&&(e=e.substr(1,e.length)),r.styleSheet?r.styleSheet.cssText+=e:r.textContent+=e,r}var jc=Oc;function xc(e){return"object"===Vu(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===Vu(e.icon)||"function"==typeof e.icon)}function Sc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:t[r]=n}return t}),{})}function Ec(e){return hc(e)[0]}function Pc(e){return e?Array.isArray(e)?e:[e]:[]}Oc.insertCss=jc;var kc="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",Cc=!1,Mc={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Rc=function(e){var r,n,o=e.icon,a=e.className,u=e.onClick,c=e.style,s=e.primaryColor,f=e.secondaryColor,l=Uu(e,["icon","className","onClick","style","primaryColor","secondaryColor"]),p=Mc;if(s&&(p={primaryColor:s,secondaryColor:f||Ec(s)}),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:kc;t.useEffect((function(){Cc||(jc(e,{prepend:!0}),Cc=!0)}),[])}(),r=xc(o),n="icon should be icon definiton, but got ".concat(o),yc(r,"[@ant-design/icons] ".concat(n)),!xc(o))return null;var h=o;return h&&"function"==typeof h.icon&&(h=Bu(Bu({},h),{},{icon:h.icon(p.primaryColor,p.secondaryColor)})),function e(t,r,n){return n?i.createElement(t.tag,Bu(Bu({key:r},Sc(t.attrs)),n),(t.children||[]).map((function(n,o){return e(n,"".concat(r,"-").concat(t.tag,"-").concat(o))}))):i.createElement(t.tag,Bu({key:r},Sc(t.attrs)),(t.children||[]).map((function(n,o){return e(n,"".concat(r,"-").concat(t.tag,"-").concat(o))})))}(h.icon,"svg-".concat(h.name),Bu({className:a,onClick:u,style:c,"data-icon":h.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l))};function Ac(e){var t=Nu(Pc(e),2),r=t[0],n=t[1];return Rc.setTwoToneColors({primaryColor:r,secondaryColor:n})}Rc.displayName="IconReact",Rc.getTwoToneColors=function(){return Bu({},Mc)},Rc.setTwoToneColors=function(e){var t=e.primaryColor,r=e.secondaryColor;Mc.primaryColor=t,Mc.secondaryColor=r||Ec(t),Mc.calculated=!!r},Ac("#1890ff");var Tc=t.forwardRef((function(e,r){var n=e.className,o=e.icon,a=e.spin,i=e.rotate,u=e.tabIndex,c=e.onClick,s=e.twoToneColor,f=Uu(e,["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"]),l=p("anticon",zu({},"anticon-".concat(o.name),Boolean(o.name)),{"anticon-spin":!!a||"loading"===o.name},n),h=u;void 0===h&&c&&(h=-1);var d=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,v=Nu(Pc(s),2),m=v[0],g=v[1];return t.createElement("span",Object.assign({role:"img","aria-label":o.name},f,{ref:r,tabIndex:h,onClick:c,className:l}),t.createElement(Rc,{icon:o,primaryColor:m,secondaryColor:g,style:d}))}));Tc.displayName="AntdIcon",Tc.getTwoToneColor=function(){var e=Rc.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Tc.setTwoToneColor=Ac;var Ic={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},Fc=function(e,r){return t.createElement(Tc,Object.assign({},e,{ref:r,icon:Ic}))};Fc.displayName="LoadingOutlined";var Lc=t.forwardRef(Fc),Dc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},Nc=function(e,r){return t.createElement(Tc,Object.assign({},e,{ref:r,icon:Dc}))};Nc.displayName="PlusOutlined";var zc=t.forwardRef(Nc),Uc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},qc=function(e,r){return t.createElement(Tc,Object.assign({},e,{ref:r,icon:Uc}))};qc.displayName="UploadOutlined";var Bc=t.forwardRef(qc),Vc=c((function(e,t){e.exports=function(e,t){function r(e,t){return new Promise((function(r,n){var o,a=new Image;a.onload=function(){return r(a)},a.onerror=n,0==(null!==(o=e)&&!!o.match(/^\s*data:([a-z]+\/[a-z]+(;[a-z-]+=[a-z-]+)?)?(;base64)?,[a-z0-9!$&',()*+;=\-._~:@/?%\s]*\s*$/i))&&t&&(a.crossOrigin=t),a.src=e}))}e=e&&e.hasOwnProperty("default")?e.default:e,t=t&&t.hasOwnProperty("default")?t.default:t;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(n=(i=u.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{!n&&u.return&&u.return()}finally{if(o)throw a}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(e){var t=!1;return{promise:new Promise((function(r,n){e.then((function(e){return t?n({isCanceled:!0}):r(e)}),(function(e){return n(t?{isCanceled:!0}:e)}))})),cancel:function(){t=!0}}},u=!("undefined"==typeof window||"undefined"==typeof navigator||!("ontouchstart"in window||navigator.msMaxTouchPoints>0)),c="undefined"!=typeof File,s={touch:{react:{down:"onTouchStart",mouseDown:"onMouseDown",drag:"onTouchMove",move:"onTouchMove",mouseMove:"onMouseMove",up:"onTouchEnd",mouseUp:"onMouseUp"},native:{down:"touchstart",mouseDown:"mousedown",drag:"touchmove",move:"touchmove",mouseMove:"mousemove",up:"touchend",mouseUp:"mouseup"}},desktop:{react:{down:"onMouseDown",drag:"onDragOver",move:"onMouseMove",up:"onMouseUp"},native:{down:"mousedown",drag:"dragStart",move:"mousemove",up:"mouseup"}}},f=u?s.touch:s.desktop,l="undefined"!=typeof window&&window.devicePixelRatio?window.devicePixelRatio:1,p={x:.5,y:.5},h=function(e){function s(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,e));return t.state={drag:!1,my:null,mx:null,image:p},t.handleImageReady=function(e){var r=t.getInitialSize(e.width,e.height);r.resource=e,r.x=.5,r.y=.5,t.setState({drag:!1,image:r},t.props.onImageReady),t.props.onLoadSuccess(r)},t.clearImage=function(){t.canvas.getContext("2d").clearRect(0,0,t.canvas.width,t.canvas.height),t.setState({image:p})},t.handleMouseDown=function(e){(e=e||window.event).preventDefault(),t.setState({drag:!0,mx:null,my:null})},t.handleMouseUp=function(){t.state.drag&&(t.setState({drag:!1}),t.props.onMouseUp())},t.handleMouseMove=function(e){if(e=e||window.event,!1!==t.state.drag){e.preventDefault();var r=e.targetTouches?e.targetTouches[0].pageX:e.clientX,n=e.targetTouches?e.targetTouches[0].pageY:e.clientY,a={mx:r,my:n},i=t.props.rotate;if(i=(i%=360)<0?i+360:i,t.state.mx&&t.state.my){var u=t.state.mx-r,c=t.state.my-n,s=t.state.image.width*t.props.scale,f=t.state.image.height*t.props.scale,l=t.getCroppingRect(),p=l.x,h=l.y;p*=s,h*=f;var d=function(e){return e*(Math.PI/180)},v=Math.cos(d(i)),m=Math.sin(d(i)),g=h+-u*m+c*v,b={x:(p+u*v+c*m)/s+1/t.props.scale*t.getXScale()/2,y:g/f+1/t.props.scale*t.getYScale()/2};t.props.onPositionChange(b),a.image=o({},t.state.image,b)}t.setState(a),t.props.onMouseMove(e)}},t.setCanvas=function(e){t.canvas=e},t.canvas=null,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,t.Component),n(s,[{key:"componentDidMount",value:function(){this.props.disableHiDPIScaling&&(l=1);var e=this.canvas.getContext("2d");if(this.props.image&&this.loadImage(this.props.image),this.paint(e),document){var t=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){e=!1}return e}()&&{passive:!1},r=f.native;document.addEventListener(r.move,this.handleMouseMove,t),document.addEventListener(r.up,this.handleMouseUp,t),u&&(document.addEventListener(r.mouseMove,this.handleMouseMove,t),document.addEventListener(r.mouseUp,this.handleMouseUp,t))}}},{key:"componentWillReceiveProps",value:function(e){e.image&&this.props.image!==e.image||this.props.width!==e.width||this.props.height!==e.height?this.loadImage(e.image):e.image||this.clearImage()}},{key:"componentDidUpdate",value:function(e,t){var r=this.canvas.getContext("2d");r.clearRect(0,0,this.canvas.width,this.canvas.height),this.paint(r),this.paintImage(r,this.state.image,this.props.border),e.image===this.props.image&&e.width===this.props.width&&e.height===this.props.height&&e.position===this.props.position&&e.scale===this.props.scale&&e.rotate===this.props.rotate&&t.my===this.state.my&&t.mx===this.state.mx&&t.image.x===this.state.image.x&&t.image.y===this.state.image.y||this.props.onImageChange()}},{key:"componentWillUnmount",value:function(){if(document){var e=f.native;document.removeEventListener(e.move,this.handleMouseMove,!1),document.removeEventListener(e.up,this.handleMouseUp,!1),u&&(document.removeEventListener(e.mouseMove,this.handleMouseMove,!1),document.removeEventListener(e.mouseUp,this.handleMouseUp,!1))}}},{key:"isVertical",value:function(){return this.props.rotate%180!=0}},{key:"getBorders",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.border;return Array.isArray(e)?e:[e,e]}},{key:"getDimensions",value:function(){var e=this.props,t=e.width,r=e.height,n=e.rotate,o=e.border,i={},u=this.getBorders(o),c=a(u,2),s=c[0],f=c[1],l=t,p=r;return this.isVertical()?(i.width=p,i.height=l):(i.width=l,i.height=p),i.width+=2*s,i.height+=2*f,{canvas:i,rotate:n,width:t,height:r,border:o}}},{key:"getImage",value:function(){var e=this.getCroppingRect(),t=this.state.image;e.x*=t.resource.width,e.y*=t.resource.height,e.width*=t.resource.width,e.height*=t.resource.height;var r=document.createElement("canvas");this.isVertical()?(r.width=e.height,r.height=e.width):(r.width=e.width,r.height=e.height);var n=r.getContext("2d");return n.translate(r.width/2,r.height/2),n.rotate(this.props.rotate*Math.PI/180),n.translate(-r.width/2,-r.height/2),this.isVertical()&&n.translate((r.width-r.height)/2,(r.height-r.width)/2),n.drawImage(t.resource,-e.x,-e.y),r}},{key:"getImageScaledToCanvas",value:function(){var e=this.getDimensions(),t=e.width,r=e.height,n=document.createElement("canvas");return this.isVertical()?(n.width=r,n.height=t):(n.width=t,n.height=r),this.paintImage(n.getContext("2d"),this.state.image,0,1),n}},{key:"getXScale",value:function(){var e=this.props.width/this.props.height,t=this.state.image.width/this.state.image.height;return Math.min(1,e/t)}},{key:"getYScale",value:function(){var e=this.props.height/this.props.width,t=this.state.image.height/this.state.image.width;return Math.min(1,e/t)}},{key:"getCroppingRect",value:function(){var e=this.props.position||{x:this.state.image.x,y:this.state.image.y},t=1/this.props.scale*this.getXScale(),r=1/this.props.scale*this.getYScale(),n={x:e.x-t/2,y:e.y-r/2,width:t,height:r},a=0,i=1-n.width,u=0,c=1-n.height;return(this.props.disableBoundaryChecks||t>1||r>1)&&(a=-n.width,i=1,u=-n.height,c=1),o({},n,{x:Math.max(a,Math.min(n.x,i)),y:Math.max(u,Math.min(n.y,c))})}},{key:"loadImage",value:function(e){var t;c&&e instanceof File?this.loadingImage=i((t=e,new Promise((function(e,n){var o=new FileReader;o.onload=function(t){try{var o=r(t.target.result);e(o)}catch(t){n(t)}},o.readAsDataURL(t)})))).promise.then(this.handleImageReady).catch(this.props.onLoadFailure):"string"==typeof e&&(this.loadingImage=i(r(e,this.props.crossOrigin)).promise.then(this.handleImageReady).catch(this.props.onLoadFailure))}},{key:"getInitialSize",value:function(e,t){var r=void 0,n=void 0,o=this.getDimensions();return o.height/o.width>t/e?n=e*((r=this.getDimensions().height)/t):r=t*((n=this.getDimensions().width)/e),{height:r,width:n}}},{key:"paintImage",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l;if(t.resource){var o=this.calculatePosition(t,r);e.save(),e.translate(e.canvas.width/2,e.canvas.height/2),e.rotate(this.props.rotate*Math.PI/180),e.translate(-e.canvas.width/2,-e.canvas.height/2),this.isVertical()&&e.translate((e.canvas.width-e.canvas.height)/2,(e.canvas.height-e.canvas.width)/2),e.scale(n,n),e.globalCompositeOperation="destination-over",e.drawImage(t.resource,o.x,o.y,o.width,o.height),e.restore()}}},{key:"calculatePosition",value:function(e,t){e=e||this.state.image;var r=this.getBorders(t),n=a(r,2),o=n[0],i=n[1],u=this.getCroppingRect(),c=e.width*this.props.scale,s=e.height*this.props.scale,f=-u.x*c,l=-u.y*s;return this.isVertical()?(f+=i,l+=o):(f+=o,l+=i),{x:f,y:l,height:s,width:c}}},{key:"paint",value:function(e){e.save(),e.scale(l,l),e.translate(0,0),e.fillStyle="rgba("+this.props.color.slice(0,4).join(",")+")";var t=this.props.borderRadius,r=this.getDimensions(),n=this.getBorders(r.border),o=a(n,2),i=o[0],u=o[1],c=r.canvas.height,s=r.canvas.width;t=Math.max(t,0),t=Math.min(t,s/2-i,c/2-u),e.beginPath(),function(e,t,r,n,o,a){if(0===a)e.rect(t,r,n,o);else{var i=n-a,u=o-a;e.translate(t,r),e.arc(a,a,a,Math.PI,1.5*Math.PI),e.lineTo(i,0),e.arc(i,a,a,1.5*Math.PI,2*Math.PI),e.lineTo(n,u),e.arc(i,u,a,2*Math.PI,.5*Math.PI),e.lineTo(a,o),e.arc(a,u,a,.5*Math.PI,Math.PI),e.translate(-t,-r)}}(e,i,u,s-2*i,c-2*u,t),e.rect(s,0,-s,c),e.fill("evenodd"),e.restore()}},{key:"render",value:function(){var e=this.props,r=(e.scale,e.rotate,e.image,e.border,e.borderRadius,e.width,e.height,e.position,e.color,e.style),n=(e.crossOrigin,e.onLoadFailure,e.onLoadSuccess,e.onImageReady,e.onImageChange,e.onMouseUp,e.onMouseMove,e.onPositionChange,e.disableBoundaryChecks,e.disableHiDPIScaling,function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["scale","rotate","image","border","borderRadius","width","height","position","color","style","crossOrigin","onLoadFailure","onLoadSuccess","onImageReady","onImageChange","onMouseUp","onMouseMove","onPositionChange","disableBoundaryChecks","disableHiDPIScaling"])),a=this.getDimensions(),i={width:a.canvas.width,height:a.canvas.height,cursor:this.state.drag?"grabbing":"grab",touchAction:"none"},c={width:a.canvas.width*l,height:a.canvas.height*l,style:o({},i,r)};return c[f.react.down]=this.handleMouseDown,u&&(c[f.react.mouseDown]=this.handleMouseDown),t.createElement("canvas",o({ref:this.setCanvas},c,n))}}]),s}();return h.propTypes={scale:e.number,rotate:e.number,image:e.oneOfType([e.string].concat(function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}(c?[e.instanceOf(File)]:[]))),border:e.oneOfType([e.number,e.arrayOf(e.number)]),borderRadius:e.number,width:e.number,height:e.number,position:e.shape({x:e.number,y:e.number}),color:e.arrayOf(e.number),crossOrigin:e.oneOf(["","anonymous","use-credentials"]),onLoadFailure:e.func,onLoadSuccess:e.func,onImageReady:e.func,onImageChange:e.func,onMouseUp:e.func,onMouseMove:e.func,onPositionChange:e.func,disableBoundaryChecks:e.bool,disableHiDPIScaling:e.bool},h.defaultProps={scale:1,rotate:0,border:25,borderRadius:0,width:200,height:200,color:[0,0,0,.5],onLoadFailure:function(){},onLoadSuccess:function(){},onImageReady:function(){},onImageChange:function(){},onMouseUp:function(){},onMouseMove:function(){},onPositionChange:function(){},disableBoundaryChecks:!1,disableHiDPIScaling:!1},h}(r,i)})),Hc=qa.useOnChange,Wc=Lu.field.avatar,$c=function(e){var r=e.className,o=e.value,a=e.onChange,u=e.beforeUpload,c=e.transformResponse,s=e.action,f=e.imageType,l=e.fileSize,h=e.children,d=e.onError,v=e.editor,m=t.useState(!1),g=Zn(m,2),b=g[0],y=g[1],_=t.useState(o),w=Zn(_,2),O=w[0],j=w[1],x=t.useRef();t.useEffect((function(){j(o)}),[o]);var S=function(e){for(var t=e.split(","),r=t[1].substring(0,t[1].length-2),n=t[0].match(/:(.*?);/)[1],o=atob(r),a=o.length,i=new Uint8Array(a);a--;)i[a]=o.charCodeAt(a);return new Blob([i],{type:n})},E=function(e){var r=e.file,o=t.useState(0),a=Zn(o,2),u=a[0],c=a[1],s=t.useState(1),f=Zn(s,2),l=f[0],p=f[1];return i.createElement("div",{style:{marginLeft:"50px"}},i.createElement(Vc,{ref:x,image:r,width:v.width,height:v.height,border:1,borderRadius:v.borderRadius,color:[24,144,255,1],scale:l,rotate:u}),i.createElement(n.Row,{gutter:4},i.createElement(n.Col,{span:4},i.createElement("span",null,"旋转")),i.createElement(n.Col,{span:15},i.createElement(n.Slider,{tooltipVisible:!1,defaultValue:u,min:-180,max:180,onChange:function(e){console.log(e),c(e)}}))),i.createElement(n.Row,{gutter:4},i.createElement(n.Col,{span:4},i.createElement("span",null,"放大")),i.createElement(n.Col,{span:15},i.createElement(n.Slider,{tooltipVisible:!1,defaultValue:l,step:.1,min:1,max:3,onChange:function(e){console.log(e),p(e)}}))))},P=i.createElement("div",null,b?i.createElement(Lc,null):i.createElement(zc,null),h),k=function(){var e=Ka(Za.mark((function e(t){return Za.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){return console.log("文件",t),f.indexOf(t.type)>-1?t.size/1024/1024<l?void(v.open?n.Modal.success({icon:"",content:i.createElement(E,{file:t}),okText:v.text,onOk:function(r){var n=x.current.getImage().toDataURL();j(n);var o=S(n),a=new window.File([o],t.name,{type:t.type});u&&u(a),e(a),r()}}):(u&&u(t),e(t))):(d("图片不能超过".concat(l,"MB!"),"sizeError",{size:l,fileSize:t.size}),r(),!1):(d("只支持".concat(f.map((function(e){return e.replace("image/","")})).join("/"),"格式图片!"),"typeError",{type:f,fileType:t.type}),r(),!1)})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return i.createElement(i.Fragment,null,i.createElement(n.Upload,{className:p(r,"react-form-avatar"),listType:"picture-card",showUploadList:!1,action:s||Wc.action,beforeUpload:k,onChange:function(e){if("uploading"!==e.file.status){if("done"===e.file.status){y(!1);var t=(c||Wc.transformResponse)(e.file.response);200===t.code?a(t.results):d(t.msg,"xhrError",t)}}else y(!0)}},O?i.createElement("div",{className:"preview"},i.createElement("img",{src:O,alt:"avatar"})):P))};$c.defaultProps={imageType:["image/jpeg","image/png"],fileSize:2,children:i.createElement("div",{className:"ant-upload-text"},"点击上传"),onError:function(e){return n.message.error(e)},editor:{open:!1,width:250,height:250,borderRadius:1,text:"剪切"}};var Gc=function(e){return Hc(e)($c)};Gc.field=$c;var Qc=qa.useOnChange,Yc=qa.useOnChange,Xc=qa.useCheckedToValue,Zc=Ba(n.Checkbox),Jc=qa.useOnChange,Kc=n.Checkbox.Group,es=function(e){return Jc(e)(Kc)};es.Checkbox=n.Checkbox;var ts=qa.useOnChange,rs=n.DatePicker.MonthPicker,ns=n.DatePicker.RangePicker,os=n.DatePicker.WeekPicker,as=function(e){return ts(e)(n.DatePicker)};as.MonthPicker=function(e){return ts(e)(rs)},as.RangePicker=function(e){return ts(e)(ns)},as.WeekPicker=function(e){return ts(e)(os)};var is=qa.useDecorator,us=function(e){return is(e)(n.Input)};us.defaultProps={autoComplete:"off"};var cs=qa.useDecorator,ss=function(e){return cs(e)(n.InputNumber)};ss.defaultProps={autoComplete:"off"};var fs=qa.useOnChange,ls=function(e){var r=e.onChange,o=l(e,["onChange"]),a=t.useCallback((function(e){r&&r(e.target.value)}),[r]);return i.createElement(n.Radio.Group,s({},o,{onChange:a}))},ps=function(e){return fs(e)(ls)};ps.Radio=n.Radio;var hs=qa.useOnChange,ds=function(e){return hs(e)(n.Select)};ds.Option=n.Select.Option,ds.OptGroup=n.Select.OptGroup;var vs=qa.useOnChange,ms=o.withFetch((function(e){var t=e.data,r=e.setData,o=e.refresh,a=e.isLoading,u=e.children,c=l(e,["data","setData","refresh","isLoading","children"]);return i.createElement(n.Select,c,u({data:t,refresh:o,isLoading:a,setData:r}))})),gs=function(e){return vs(e)(ms)};gs.Option=n.Select.Option,gs.OptGroup=n.Select.OptGroup;var bs=qa.useOnChange,ys=qa.useCheckedToValue,_s=Ba(n.Switch),ws=qa.useDecorator,Os=qa.useOnChange,js=n.TimePicker.RangePicker,xs=function(e){return Os(e)(n.TimePicker)};xs.RangePicker=function(e){return Os(e)(js)};var Ss=qa.useOnChange,Es=function(e){return Ss(e)(n.TreeSelect)};Es.TreeNode=n.TreeSelect.TreeNode;var Ps=0;var ks=function(e){var t=++Ps;return Ru(e)+t};var Cs=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1};var Ms=function(e,t,r,n,o,a){var i=1&r,u=e.length,c=t.length;if(u!=c&&!(i&&c>u))return!1;var s=a.get(e);if(s&&a.get(t))return s==t;var f=-1,l=!0,p=2&r?new da:void 0;for(a.set(e,t),a.set(t,e);++f<u;){var h=e[f],d=t[f];if(n)var v=i?n(d,h,f,t,e,a):n(h,d,f,e,t,a);if(void 0!==v){if(v)continue;l=!1;break}if(p){if(!Cs(t,(function(e,t){if(!wa(p,t)&&(h===e||o(h,e,r,n,a)))return p.push(t)}))){l=!1;break}}else if(h!==d&&!o(h,d,r,n,a)){l=!1;break}}return a.delete(e),a.delete(t),l};var Rs=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r},As=ao?ao.prototype:void 0,Ts=As?As.valueOf:void 0;var Is=function(e,t,r,n,o,a,i){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new pi(e),new pi(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Vo(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var u=Rs;case"[object Set]":var c=1&n;if(u||(u=xa),e.size!=t.size&&!c)return!1;var s=i.get(e);if(s)return s==t;n|=2,i.set(e,t);var f=Ms(u(e),u(t),n,o,a,i);return i.delete(e),f;case"[object Symbol]":if(Ts)return Ts.call(e)==Ts.call(t)}return!1};var Fs=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e};var Ls=function(e,t,r){var n=t(e);return Ci(e)?n:Fs(n,r(e))};var Ds=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a};var Ns=function(){return[]},zs=Object.prototype.propertyIsEnumerable,Us=Object.getOwnPropertySymbols,qs=Us?function(e){return null==e?[]:(e=Object(e),Ds(Us(e),(function(t){return zs.call(e,t)})))}:Ns,Bs=bi(Object.keys,Object),Vs=Object.prototype.hasOwnProperty;var Hs=function(e){if(!wi(e))return Bs(e);var t=[];for(var r in Object(e))Vs.call(e,r)&&"constructor"!=r&&t.push(r);return t};var Ws=function(e){return Ri(e)?tu(e):Hs(e)};var $s=function(e){return Ls(e,Ws,qs)},Gs=Object.prototype.hasOwnProperty;var Qs=function(e,t,r,n,o,a){var i=1&r,u=$s(e),c=u.length;if(c!=$s(t).length&&!i)return!1;for(var s=c;s--;){var f=u[s];if(!(i?f in t:Gs.call(t,f)))return!1}var l=a.get(e);if(l&&a.get(t))return l==t;var p=!0;a.set(e,t),a.set(t,e);for(var h=i;++s<c;){var d=e[f=u[s]],v=t[f];if(n)var m=i?n(v,d,f,t,e,a):n(d,v,f,e,t,a);if(!(void 0===m?d===v||o(d,v,r,n,a):m)){p=!1;break}h||(h="constructor"==f)}if(p&&!h){var g=e.constructor,b=t.constructor;g==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b||(p=!1)}return a.delete(e),a.delete(t),p},Ys=Ro(oo,"DataView"),Xs=Ro(oo,"Promise"),Zs=Ro(oo,"WeakMap"),Js=Oo(Ys),Ks=Oo(Jo),ef=Oo(Xs),tf=Oo(Oa),rf=Oo(Zs),nf=vo;(Ys&&"[object DataView]"!=nf(new Ys(new ArrayBuffer(1)))||Jo&&"[object Map]"!=nf(new Jo)||Xs&&"[object Promise]"!=nf(Xs.resolve())||Oa&&"[object Set]"!=nf(new Oa)||Zs&&"[object WeakMap]"!=nf(new Zs))&&(nf=function(e){var t=vo(e),r="[object Object]"==t?e.constructor:void 0,n=r?Oo(r):"";if(n)switch(n){case Js:return"[object DataView]";case Ks:return"[object Map]";case ef:return"[object Promise]";case tf:return"[object Set]";case rf:return"[object WeakMap]"}return t});var of=nf,af=Object.prototype.hasOwnProperty;var uf=function(e,t,r,n,o,a){var i=Ci(e),u=Ci(t),c=i?"[object Array]":of(e),s=u?"[object Array]":of(t),f="[object Object]"==(c="[object Arguments]"==c?"[object Object]":c),l="[object Object]"==(s="[object Arguments]"==s?"[object Object]":s),p=c==s;if(p&&Ii(e)){if(!Ii(t))return!1;i=!0,f=!1}if(p&&!f)return a||(a=new ii),i||$i(e)?Ms(e,t,r,n,o,a):Is(e,t,c,r,n,o,a);if(!(1&r)){var h=f&&af.call(e,"__wrapped__"),d=l&&af.call(t,"__wrapped__");if(h||d){var v=h?e.value():e,m=d?t.value():t;return a||(a=new ii),o(v,m,r,n,a)}}return!!p&&(a||(a=new ii),Qs(e,t,r,n,o,a))};var cf=function e(t,r,n,o,a){return t===r||(null==t||null==r||!ji(t)&&!ji(r)?t!=t&&r!=r:uf(t,r,n,o,e,a))};var sf=function(e,t){return cf(e,t)},ff=qa.useOnChange,lf=n.Upload.Dragger,pf=Lu.field.upload,hf=function(e){e.className;var t=e.value,r=e.onChange,o=e.onUploadComplete,a=e.beforeUpload,u=e.maxLength,c=e.drag,f=e.transformResponse,p=e.action,h=e.accept,d=e.fileSize,v=e.children,m=e.onError,g=l(e,["className","value","onChange","onUploadComplete","beforeUpload","maxLength","drag","transformResponse","action","accept","fileSize","children","onError"]),b=c?lf:n.Upload;return i.createElement(b,s({},g,{action:p||pf.action,fileList:t,accept:h.join(","),onChange:function(e){if(-1!==["uploading","done","error","removed"].indexOf(e.file.status))if(e.fileList.length>u)m("上传文件不能超过最大允许数量".concat(u),"xhrError",u);else{"done"===e.file.status&&(e.file.response=(f||pf.transformResponse)(e.file.response),200===e.file.response.code?(e.file.name=e.file.response.results.substr(e.file.response.results.lastIndexOf("/")+1),o(e.file)):(e.file.status="error",m(e.file.response.msg,"xhrError",e.file.response)));var n=t.slice(0),a=n.findIndex((function(t){return t.uid===e.file.uid}));a>-1&&n.splice(a,1),"removed"!==e.file.status&&n.push(e.file),r(n)}},beforeUpload:function(e){return 1===u&&r([]),e.size/1024/1024<d?a&&a(e):(m("文件不能超过".concat(d,"MB!"),"sizeError",{size:d,fileSize:e.size}),!1)}}),v)};hf.defaultProps={value:[],accept:[],fileSize:2,maxLength:1,children:i.createElement(n.Button,null,i.createElement(Bc,null),"点击上传"),onError:function(e){return n.message.error(e)},onUploadComplete:function(){}};var df,vf=(df=hf,function(e){var r=e.value,n=e.onChange,o=l(e,["value","onChange"]),a=t.useState([]),u=Zn(a,2),c=u[0],f=u[1],p=t.useRef([]);return t.useEffect((function(){sf(r,p.current)||f(function(e){return e?e.map((function(e){return{uid:ks(),name:e.substr(e.lastIndexOf("/")+1),status:"done",response:{code:200,results:e}}})):[]}(r))}),[r]),i.createElement(df,s({},o,{value:c,onChange:function(e){e=e.map((function(e){return Object.assign({},e)})),f(e);var t=function(e){return e.slice(0).filter((function(e){return"done"===e.status})).map((function(e){return e.response.results}))}(e);p.current=t,sf(t,e)||n(t)}}))}),mf=function(e){return ff(e)(vf)};mf.field=hf;var gf=function(e){var t=Un(),r=t.isLoading,o=l(t,["isPass","isLoading"]);return i.createElement(n.Button,s({loading:r},o,e))},bf=function(e){var t=zn();return i.createElement(n.Button,s({},t,e))};function yf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yf(Object(r),!0).forEach((function(t){Wn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var wf=o.withFetch(Xa),Of=function(e){var t=e.formProps,r=e.footer,n=e.children,o=t.hasOwnProperty("url")?wf:Xa;return i.createElement(o,t,i.createElement("div",{className:"ant-modal-body"},n),i.createElement("div",{className:"ant-modal-footer"},r||i.createElement(a,null,i.createElement(bf,null,"重置"),i.createElement(gf,{type:"primary"},"确定"))))},jf=function(e){var t=e.className,r=e.formProps,o=void 0===r?{}:r,a=e.footer,u=e.children,c=l(e,["className","formProps","footer","children"]);return i.createElement(n.Modal,s({},c,{className:p(t,"react-form-modal"),footer:null}),i.createElement(Of,{formProps:o,footer:a},u))};jf.modal=function(e){var t=e.className,r=e.title,o=e.formProps,a=void 0===o?{}:o,u=e.footer,c=e.content,s=l(e,["className","title","formProps","footer","content"]);return n.Modal.info(_f(_f({},s),{},{title:r?i.createElement("div",{className:"ant-modal-header"},i.createElement("div",{className:"ant-modal-title"},r)):null,className:p(t,"react-form-modal"),content:i.createElement(Of,{formProps:a,footer:u},c),icon:null,footer:null}))};var xf=Gc,Sf=function(e){return Qc(e)(n.Cascader)},Ef=function(e){var t=Xc(e);return Yc(t)(Zc)},Pf=es,kf=as,Cf=us,Mf=ss,Rf=ps,Af=ds,Tf=gs,If=function(e){var t=ys(e);return bs(t)(_s)},Ff=function(e){return ws(e)(n.Input.TextArea)},Lf=xs,Df=Es,Nf=mf,zf={Avatar:xf,Cascader:Sf,Checkbox:Ef,CheckboxGroup:Pf,DatePicker:kf,Input:Cf,InputNumber:Mf,RadioGroup:Rf,Select:Af,SelectFetch:Tf,Switch:If,TextArea:Ff,TimePicker:Lf,TreeSelect:Df,Upload:Nf};e.Avatar=xf,e.Cascader=Sf,e.Checkbox=Ef,e.CheckboxGroup=Pf,e.DatePicker=kf,e.FormModal=jf,e.Group=Rn,e.GroupList=Vn,e.Input=Cf,e.InputNumber=Mf,e.RULES=nn,e.RadioGroup=Rf,e.ResetButton=bf,e.Select=Af,e.SelectFetch=Tf,e.SubmitButton=gf,e.Switch=If,e.TextArea=Ff,e.TimePicker=Lf,e.TreeSelect=Df,e.Upload=Nf,e.default=Xa,e.fields=zf,e.hooks=qa,e.interceptors=cn,e.preset=function(e){var t;yu(Lu,e),void 0===(t=Lu.rules)&&(t={}),Object.assign(nn,t)},e.useEmitter=function(){var e=tn().emitter;return console.warn("下一个大版本将会删掉该接口,建议不要使用"),e},e.useField=Nn,e.useFieldInfo=function(){var e=tn().fields;return console.warn("下一个大版本将会删掉该接口,建议不要使用"),e},e.useFormContext=tn,e.useReset=zn,e.useSubmit=Un,e.util=Hn,e.utils=Ha,Object.defineProperty(e,"__esModule",{value:!0})}));
8
- //# sourceMappingURL=react-form-antd.min.js.map