react-geetest-captcha
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -26,2 +26,2 @@ /** | ||
*/ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["react-geetest-captcha"]=e():t["react-geetest-captcha"]=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=6)}([function(t,e,n){function o(t){if(!i(t))return!1;var e=r(t);return e==c||e==a||e==u||e==l}var r=n(1),i=n(3),u="[object AsyncFunction]",c="[object Function]",a="[object GeneratorFunction]",l="[object Proxy]";t.exports=o},function(t,e,n){function o(t){return null==t?void 0===t?a:c:l&&l in Object(t)?i(t):u(t)}var r=n(2),i=n(10),u=n(11),c="[object Null]",a="[object Undefined]",l=r?r.toStringTag:void 0;t.exports=o},function(t,e,n){var o=n(7),r=o.Symbol;t.exports=r},function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t){return u()(t)&&0!==t.length}var i=n(12),u=n.n(i),c=n(0),a=n.n(c),l=function(){function t(t,e){var n,o;for(n=0;n<e.length;n++)o=e[n],o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),f=function(){function t(){o(this,t),this.instances={}}return l(t,[{key:"add",value:function(t,e){this.get(t)&&this.remove(t),this.instances[t]=e}},{key:"get",value:function(t){return this.exist(t)?this.instances[t]:null}},{key:"remove",value:function(t){var e=this.get(t);e&&a()(e.destroy)&&e.destroy(),delete this.instances[t]}},{key:"exist",value:function(t){return r(t)&&Object.prototype.hasOwnProperty.call(this.instances,t)}}]),t}();e.a=new f},function(t,e,n){"use strict";function o(t){return function(){return t}}var r=function(){};r.thatReturns=o,r.thatReturnsFalse=o(!1),r.thatReturnsTrue=o(!0),r.thatReturnsNull=o(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(t){return t},t.exports=r},function(t,e,n){"use strict";function o(t,e){var n=f.a.get(t);return n&&l()(n.appendTo)?n.appendTo(e):null}function r(t,e){var n=f.a.get(t);return n&&l()(n.bindForm)?n.bindForm(e):null}function i(t){var e=f.a.get(t);return e&&l()(e.getValidate)?e.getValidate():null}function u(t){var e=f.a.get(t);return e&&l()(e.reset)?e.reset():null}function c(t){var e=f.a.get(t);return e&&l()(e.verify)?e.verify():null}var a,l,f,s;Object.defineProperty(e,"__esModule",{value:!0}),e.appendTo=o,e.bindForm=r,e.getValidate=i,e.reset=u,e.verify=c,a=n(0),l=n.n(a),f=n(4),s=n(15),n.d(e,"RGCaptcha",function(){return s.a}),n.d(e,"storage",function(){return f.a}),e.default={storage:f.a,RGCaptcha:s.a,appendTo:o,bindForm:r,getValidate:i,reset:u,verify:c}},function(t,e,n){var o=n(8),r="object"==typeof self&&self&&self.Object===Object&&self,i=o||r||Function("return this")();t.exports=i},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,n(9))},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){function o(t){var e,n,o=u.call(t,a),r=t[a];try{t[a]=void 0,e=!0}catch(t){}return n=c.call(t),e&&(o?t[a]=r:delete t[a]),n}var r=n(2),i=Object.prototype,u=i.hasOwnProperty,c=i.toString,a=r?r.toStringTag:void 0;t.exports=o},function(t,e){function n(t){return r.call(t)}var o=Object.prototype,r=o.toString;t.exports=n},function(t,e,n){function o(t){return"string"==typeof t||!i(t)&&u(t)&&r(t)==c}var r=n(1),i=n(13),u=n(14),c="[object String]";t.exports=o},function(t,e){var n=Array.isArray;t.exports=n},function(t,e){function n(t){return null!=t&&"object"==typeof t}t.exports=n},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function u(){var t,e,n=document.querySelectorAll("head script, head link");if(n&&n.length)for(t=0;t<n.length;t+=1)e=n[t],/geetest\.com/i.test("link"===e.nodeName.toLowerCase()?e.href:e.src)&&e.parentNode.removeChild(e)}function c(t){t.hasBuildEventFunc||(d()(t.onReady)&&t.onReady(function(){"function"==typeof t.readyFunc&&t.readyFunc()}),d()(t.onSuccess)&&t.onSuccess(function(){"function"==typeof t.successFunc&&t.successFunc()}),d()(t.onClose)&&t.onClose(function(){"function"==typeof t.closeFunc&&t.closeFunc()}),d()(t.onError)&&t.onError(function(){"function"==typeof t.errorFunc&&t.errorFunc()}),t.handleReady=function(e){t.readyFunc=e},t.handleSuccess=function(e){t.successFunc=e},t.handleClose=function(e){t.closeFunc=e},t.handleError=function(e){t.errorFunc=e},t.hasBuildEventFunc=!0)}function a(t,e){var n=t.name,o=t.data,r=t.width,i=t.product,u=t.lang,c=t.protocol,a=t.area,l=t.nextWidth,f=t.bgColor,s=t.timeout,p=t.shouldReinitialize;return d()(p)?p(t,e):!(n===e.name&&r===e.width&&i===e.product&&u===e.lang&&c===e.protocol&&a===e.area&&l===e.nextWidth&&f===e.bgColor&&s===e.timeout&&(!h()(e.data)||v()(o,e)))}var l=n(16),f=n.n(l),s=n(20),p=(n.n(s),n(0)),d=n.n(p),y=n(3),h=n.n(y),b=n(24),v=n.n(b),g=n(4),m=n(25),w=n.n(m),_=function(){var t="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(e,n,o,r){var i,u,c,a=e&&e.defaultProps,l=arguments.length-3;if(n||0===l||(n={}),n&&a)for(i in a)void 0===n[i]&&(n[i]=a[i]);else n||(n=a||{});if(1===l)n.children=r;else if(l>1){for(u=Array(l),c=0;c<l;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:t,type:e,key:void 0===o?null:""+o,ref:null,props:n,_owner:null}}}(),j=function(){function t(t,e){var n,o;for(n=0;n<e.length;n++)o=e[n],o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),k=_("span",{},void 0," loading... "),x=function(t){function e(t){o(this,e);var n=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.ins=null,n.state={loading:!1},n}return i(e,t),j(e,[{key:"componentDidMount",value:function(){this.load()}},{key:"componentWillReceiveProps",value:function(t){a(this.props,t)?this.load():this.bindEventFunc(t)}},{key:"shouldComponentUpdate",value:function(t,e){return this.state.loading!==e.loading}},{key:"componentWillUnmount",value:function(){var t=this.props.name;u(),g.a.remove(t)}},{key:"load",value:function(){var t,e=this;window&&window.document&&(t=this.props.data,this.setState({loading:!0}),d()(t)?t().then(function(t){e.tryInit(t)}):this.tryInit(t))}},{key:"tryInit",value:function(t){var e=this,n=this.props,o=n.name,r=n.width,i=n.product,u=n.lang,a=n.protocol,l=n.area,f=n.nextWidth,s=n.bgColor,p=n.timeout,d={gt:t.gt,challenge:t.challenge,offline:!t.success,new_captcha:!!t.new_captcha,width:r,product:i,lang:u,protocol:a,area:l,next_width:f,bg_color:s,timeout:p};try{w()(d,function(t){c(t),g.a.add(o,t),e.loadIns(t),e.setState({loading:!1})})}catch(t){console.error(t)}}},{key:"loadIns",value:function(t){this.ins=t,this.bindEventFunc(this.props),this.show()}},{key:"bindEventFunc",value:function(t){var e=this.ins,n=t.onReady,o=t.onSuccess,r=t.onClose,i=t.onError;e&&(e.handleReady(n),e.handleSuccess(function(){return o(e.getValidate())}),e.handleClose(r),e.handleError(i))}},{key:"show",value:function(){var t=this.props.product,e=this.ins,n=this.box;e&&"bind"!==t&&e.appendTo(n)}},{key:"render",value:function(){var t=this,e=this.props.product,n=this.state.loading,o=n?k:null;return _("div",{style:{display:"bind"===e?"none":"block",height:44}},void 0,_("div",{style:{display:n?"block":"none"}},void 0,o),f.a.createElement("div",{style:{display:n?"none":"block"},ref:function(e){t.box=e}}))}}]),e}(f.a.Component);x.defaultProps={width:"300px",product:"popup",lang:"zh-cn",protocol:null,area:null,nextWidth:null,bgColor:null,timeout:null,onReady:null,onSuccess:null,onClose:null,onError:null,shouldReinitialize:null},e.a=x},function(t,e,n){"use strict";t.exports=n(17)},function(t,e,n){"use strict";function o(t){for(var e=arguments.length-1,n="Minified React error #"+t+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+t,o=0;o<e;o++)n+="&args[]="+encodeURIComponent(arguments[o+1]);throw e=Error(n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."),e.name="Invariant Violation",e.framesToPop=1,e}function r(t,e,n){this.props=t,this.context=e,this.refs=R,this.updater=n||N}function i(t,e,n){this.props=t,this.context=e,this.refs=R,this.updater=n||N}function u(){}function c(t,e,n){this.props=t,this.context=e,this.refs=R,this.updater=n||N}function a(t,e,n){var o,r,i,u,c={},a=null,l=null;if(null!=e)for(o in void 0!==e.ref&&(l=e.ref),void 0!==e.key&&(a=""+e.key),e)_.call(e,o)&&!j.hasOwnProperty(o)&&(c[o]=e[o]);if(1===(r=arguments.length-2))c.children=n;else if(1<r){for(i=Array(r),u=0;u<r;u++)i[u]=arguments[u+2];c.children=i}if(t&&t.defaultProps)for(o in r=t.defaultProps)void 0===c[o]&&(c[o]=r[o]);return{$$typeof:T,type:t,key:a,ref:l,props:c,_owner:w.current}}function l(t){return"object"==typeof t&&null!==t&&t.$$typeof===T}function f(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,function(t){return e[t]})}function s(t,e,n,o){if(x.length){var r=x.pop();return r.result=t,r.keyPrefix=e,r.func=n,r.context=o,r.count=0,r}return{result:t,keyPrefix:e,func:n,context:o,count:0}}function p(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>x.length&&x.push(t)}function d(t,e,n,r){var i,u,c,a=typeof t;if("undefined"!==a&&"boolean"!==a||(t=null),i=!1,null===t)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(t.$$typeof){case T:case A:case I:case $:i=!0}}if(i)return n(r,t,""===e?"."+y(t,0):e),1;if(i=0,e=""===e?".":e+":",Array.isArray(t))for(u=0;u<t.length;u++)a=t[u],c=e+y(a,u),i+=d(a,c,n,r);else if(null===t||void 0===t?c=null:(c=q&&t[q]||t["@@iterator"],c="function"==typeof c?c:null),"function"==typeof c)for(t=c.call(t),u=0;!(a=t.next()).done;)a=a.value,c=e+y(a,u++),i+=d(a,c,n,r);else"object"===a&&(n=""+t,o("31","[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return i}function y(t,e){return"object"==typeof t&&null!==t&&null!=t.key?f(t.key):e.toString(36)}function h(t,e){t.func.call(t.context,e,t.count++)}function b(t,e,n){var o=t.result,r=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?v(t,o,n,C.thatReturnsArgument):null!=t&&(l(t)&&(e=r+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(k,"$&/")+"/")+n,t={$$typeof:T,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}),o.push(t))}function v(t,e,n,o,r){var i="";null!=n&&(i=(""+n).replace(k,"$&/")+"/"),e=s(e,i,o,r),null==t||d(t,"",b,e),p(e)}var g,m,w,_,j,k,x,O,S,E,P=n(18),R=n(19),C=n(5),F="function"==typeof Symbol&&Symbol.for,T=F?Symbol.for("react.element"):60103,A=F?Symbol.for("react.call"):60104,I=F?Symbol.for("react.return"):60105,$=F?Symbol.for("react.portal"):60106,U=F?Symbol.for("react.fragment"):60107,q="function"==typeof Symbol&&Symbol.iterator,N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};r.prototype.isReactComponent={},r.prototype.setState=function(t,e){"object"!=typeof t&&"function"!=typeof t&&null!=t&&o("85"),this.updater.enqueueSetState(this,t,e,"setState")},r.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},u.prototype=r.prototype,g=i.prototype=new u,g.constructor=i,P(g,r.prototype),g.isPureReactComponent=!0,m=c.prototype=new u,m.constructor=c,P(m,r.prototype),m.unstable_isAsyncReactComponent=!0,m.render=function(){return this.props.children},w={current:null},_=Object.prototype.hasOwnProperty,j={key:!0,ref:!0,__self:!0,__source:!0},k=/\/+/g,x=[],O={Children:{map:function(t,e,n){if(null==t)return t;var o=[];return v(t,o,null,e,n),o},forEach:function(t,e,n){if(null==t)return t;e=s(null,null,e,n),null==t||d(t,"",h,e),p(e)},count:function(t){return null==t?0:d(t,"",C.thatReturnsNull,null)},toArray:function(t){var e=[];return v(t,e,null,C.thatReturnsArgument),e},only:function(t){return l(t)||o("143"),t}},Component:r,PureComponent:i,unstable_AsyncComponent:c,Fragment:U,createElement:a,cloneElement:function(t,e,n){var o,r,i,u=P({},t.props),c=t.key,a=t.ref,l=t._owner;if(null!=e){void 0!==e.ref&&(a=e.ref,l=w.current),void 0!==e.key&&(c=""+e.key),t.type&&t.type.defaultProps&&(o=t.type.defaultProps);for(r in e)_.call(e,r)&&!j.hasOwnProperty(r)&&(u[r]=void 0===e[r]&&void 0!==o?o[r]:e[r])}if(1===(r=arguments.length-2))u.children=n;else if(1<r){for(o=Array(r),i=0;i<r;i++)o[i]=arguments[i+2];u.children=o}return{$$typeof:T,type:t.type,key:c,ref:a,props:u,_owner:l}},createFactory:function(t){var e=a.bind(null,t);return e.type=t,e},isValidElement:l,version:"16.2.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:w,assign:P}},S=Object.freeze({default:O}),E=S&&O||S,t.exports=E.default?E.default:E},function(t,e,n){"use strict";function o(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;t.exports=function(){var t,e,n,o,r;try{if(!Object.assign)return!1;if(t=new String("abc"),t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;return o=Object.getOwnPropertyNames(e).map(function(t){return e[t]}),"0123456789"!==o.join("")?!1:(r={},"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join(""))}catch(t){return!1}}()?Object.assign:function(t,e){var n,c,a,l,f,s=o(t);for(a=1;a<arguments.length;a++){n=Object(arguments[a]);for(l in n)i.call(n,l)&&(s[l]=n[l]);if(r)for(c=r(n),f=0;f<c.length;f++)u.call(n,c[f])&&(s[c[f]]=n[c[f]])}return s}},function(t,e,n){"use strict";var o={};t.exports=o},function(t,e,n){t.exports=n(21)()},function(t,e,n){"use strict";var o=n(5),r=n(22),i=n(23);t.exports=function(){function t(t,e,n,o,u,c){c!==i&&r(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=o,n.PropTypes=n,n}},function(t,e,n){"use strict";function o(t,e,n,o,i,u,c,a){var l,f,s;if(r(e),!t)throw void 0===e?l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."):(f=[n,o,i,u,c,a],s=0,l=new Error(e.replace(/%s/g,function(){return f[s++]})),l.name="Invariant Violation"),l.framesToPop=1,l}var r=function(t){};t.exports=o},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e){t.exports=function(t,e){var n,o,r,i,u;if(t===e)return!0;if(n=Object.keys(t),o=Object.keys(e),r=n.length,o.length!==r)return!1;for(i=0;i<r;i++)if(u=n[i],t[u]!==e[u])return!1;return!0}},function(t,e,n){(function(t){var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(n,o){"use strict";"object"===e(t)&&"object"===e(t.exports)?t.exports=n.document?o(n,!0):function(t){if(!t.document)throw new Error("Geetest requires a window with a document");return o(t)}:o(n)}("undefined"!=typeof window?window:this,function(t,n){"use strict";function o(t){this._obj=t}function r(t){var e=this;new o(t)._each(function(t,n){e[t]=n})}var i,u,c,a,l,f,s,p,d,y,h,b,v,g,m,w,_,j,k,x,O;if(void 0===t)throw new Error("Geetest requires browser environment");return i=t.document,u=t.Math,c=i.getElementsByTagName("head")[0],o.prototype={_each:function(t){var e,n=this._obj;for(e in n)n.hasOwnProperty(e)&&t(e,n[e]);return this}},r.prototype={api_server:"api.geetest.com",protocol:"http://",type_path:"/gettype.php",fallback_config:{slide:{static_servers:["static.geetest.com","dn-staticdown.qbox.me"],type:"slide",slide:"/static/js/geetest.0.0.0.js"},fullpage:{static_servers:["static.geetest.com","dn-staticdown.qbox.me"],type:"fullpage",fullpage:"/static/js/fullpage.0.0.0.js"}},_get_fallback_config:function(){var t=this;return l(t.type)?t.fallback_config[t.type]:t.new_captcha?t.fallback_config.fullpage:t.fallback_config.slide},_extend:function(t){var e=this;new o(t)._each(function(t,n){e[t]=n})}},a=function(t){return"number"==typeof t},l=function(t){return"string"==typeof t},f=function(t){return"boolean"==typeof t},s=function(t){return"object"===(void 0===t?"undefined":e(t))&&null!==t},p=function(t){return"function"==typeof t},d={},y={},h=function(){return parseInt(1e4*u.random())+(new Date).valueOf()},b=function(t,e){var n,o=i.createElement("script");o.charset="UTF-8",o.async=!0,o.onerror=function(){e(!0)},n=!1,o.onload=o.onreadystatechange=function(){n||o.readyState&&"loaded"!==o.readyState&&"complete"!==o.readyState||(n=!0,setTimeout(function(){e(!1)},0))},o.src=t,c.appendChild(o)},v=function(t){return t.replace(/^https?:\/\/|\/$/g,"")},g=function(t){return t=t.replace(/\/+/g,"/"),0!==t.indexOf("/")&&(t="/"+t),t},m=function(t){if(!t)return"";var e="?";return new o(t)._each(function(t,n){(l(n)||a(n)||f(n))&&(e=e+encodeURIComponent(t)+"="+encodeURIComponent(n)+"&")}),"?"===e&&(e=""),e.replace(/&$/,"")},w=function(t,e,n,o){e=v(e);var r=g(n)+m(o);return e&&(r=t+e+r),r},_=function(t,e,n,o,r){!function i(u){var c=w(t,e[u],n,o);b(c,function(t){t?u>=e.length-1?r(!0):i(u+1):r(!1)})}(0)},j=function(e,n,o,r){if(s(o.getLib))return o._extend(o.getLib),void r(o);if(o.offline)return void r(o._get_fallback_config());var i="geetest_"+h();t[i]=function(e){r("success"===e.status?e.data:e.status?o._get_fallback_config():e),t[i]=void 0;try{delete t[i]}catch(t){}},_(o.protocol,e,n,{gt:o.gt,callback:i},function(t){t&&r(o._get_fallback_config())})},k=function(t,e){var n={networkError:"网络错误"};if("function"!=typeof e.onError)throw new Error(n[t]);e.onError(n[t])},x=function(){return!!t.Geetest},x()&&(y.slide="loaded"),O=function(e,n){var o=new r(e);e.https?o.protocol="https://":e.protocol||(o.protocol=t.location.protocol+"//"),j([o.api_server||o.apiserver],o.type_path,o,function(e){var r,i=e.type,u=function(){o._extend(e),n(new t.Geetest(o))};d[i]=d[i]||[],r=y[i]||"init","init"===r?(y[i]="loading",d[i].push(u),_(o.protocol,e.static_servers||e.domains,e[i]||e.path,null,function(t){var e,n,r,u;if(t)y[i]="fail",k("networkError",o);else{for(y[i]="loaded",e=d[i],n=0,r=e.length;n<r;n+=1)u=e[n],p(u)&&u();d[i]=[]}})):"loaded"===r?u():"fail"===r?k("networkError",o):"loading"===r&&d[i].push(u)})},t.initGeetest=O,O})}).call(e,n(26)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}}])}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["react-geetest-captcha"]=t():e["react-geetest-captcha"]=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=6)}([function(e,t,n){function o(e){if(!u(e))return!1;var t=r(e);return t==c||t==a||t==i||t==l}var r=n(1),u=n(3),i="[object AsyncFunction]",c="[object Function]",a="[object GeneratorFunction]",l="[object Proxy]";e.exports=o},function(e,t,n){function o(e){return null==e?void 0===e?a:c:l&&l in Object(e)?u(e):i(e)}var r=n(2),u=n(10),i=n(11),c="[object Null]",a="[object Undefined]",l=r?r.toStringTag:void 0;e.exports=o},function(e,t,n){var o=n(7),r=o.Symbol;e.exports=r},function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e){return(0,a.default)(e)&&0!==e.length}var i,c,a,l,f,s;Object.defineProperty(t,"__esModule",{value:!0}),i=function(){function e(e,t){var n,o;for(n=0;n<t.length;n++)o=t[n],o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),c=n(12),a=o(c),l=n(0),f=o(l),s=function(){function e(){r(this,e),this.instances={}}return i(e,[{key:"add",value:function(e,t){this.get(e)&&this.remove(e),this.instances[e]=t}},{key:"get",value:function(e){return this.exist(e)?this.instances[e]:null}},{key:"remove",value:function(e){var t=this.get(e);t&&(0,f.default)(t.destroy)&&t.destroy(),delete this.instances[e]}},{key:"exist",value:function(e){return u(e)&&Object.prototype.hasOwnProperty.call(this.instances,e)}}]),e}(),t.default=new s},function(e,t,n){"use strict";function o(e){return function(){return e}}var r=function(){};r.thatReturns=o,r.thatReturnsFalse=o(!1),r.thatReturnsTrue=o(!0),r.thatReturnsNull=o(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=p.default.get(e);return n&&(0,f.default)(n.appendTo)?n.appendTo(t):null}function u(e,t){var n=p.default.get(e);return n&&(0,f.default)(n.bindForm)?n.bindForm(t):null}function i(e){var t=p.default.get(e);return t&&(0,f.default)(t.getValidate)?t.getValidate():null}function c(e){var t=p.default.get(e);return t&&(0,f.default)(t.reset)?t.reset():null}function a(e){var t=p.default.get(e);return t&&(0,f.default)(t.verify)?t.verify():null}var l,f,s,p,d,y;Object.defineProperty(t,"__esModule",{value:!0}),t.storage=t.RGCaptcha=void 0,t.appendTo=r,t.bindForm=u,t.getValidate=i,t.reset=c,t.verify=a,l=n(0),f=o(l),s=n(4),p=o(s),d=n(15),y=o(d),t.RGCaptcha=y.default,t.storage=p.default,t.default={storage:p.default,RGCaptcha:y.default,appendTo:r,bindForm:u,getValidate:i,reset:c,verify:a}},function(e,t,n){var o=n(8),r="object"==typeof self&&self&&self.Object===Object&&self,u=o||r||Function("return this")();e.exports=u},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n(9))},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){function o(e){var t,n,o=i.call(e,a),r=e[a];try{e[a]=void 0,t=!0}catch(e){}return n=c.call(e),t&&(o?e[a]=r:delete e[a]),n}var r=n(2),u=Object.prototype,i=u.hasOwnProperty,c=u.toString,a=r?r.toStringTag:void 0;e.exports=o},function(e,t){function n(e){return r.call(e)}var o=Object.prototype,r=o.toString;e.exports=n},function(e,t,n){function o(e){return"string"==typeof e||!u(e)&&i(e)&&r(e)==c}var r=n(1),u=n(13),i=n(14),c="[object String]";e.exports=o},function(e,t){var n=Array.isArray;e.exports=n},function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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}function i(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)}function c(){var e,t,n=document.querySelectorAll("head script, head link");if(n&&n.length)for(e=0;e<n.length;e+=1)t=n[e],/geetest\.com/i.test("link"===t.nodeName.toLowerCase()?t.href:t.src)&&t.parentNode.removeChild(t)}function a(e){e.hasBuildEventFunc||((0,b.default)(e.onReady)&&e.onReady(function(){"function"==typeof e.readyFunc&&e.readyFunc()}),(0,b.default)(e.onSuccess)&&e.onSuccess(function(){"function"==typeof e.successFunc&&e.successFunc()}),(0,b.default)(e.onClose)&&e.onClose(function(){"function"==typeof e.closeFunc&&e.closeFunc()}),(0,b.default)(e.onError)&&e.onError(function(){"function"==typeof e.errorFunc&&e.errorFunc()}),e.handleReady=function(t){e.readyFunc=t},e.handleSuccess=function(t){e.successFunc=t},e.handleClose=function(t){e.closeFunc=t},e.handleError=function(t){e.errorFunc=t},e.hasBuildEventFunc=!0)}function l(e,t){var n=e.name,o=e.data,r=e.width,u=e.product,i=e.lang,c=e.protocol,a=e.area,l=e.nextWidth,f=e.bgColor,s=e.timeout,p=e.shouldReinitialize;return(0,b.default)(p)?p(e,t):!(n===t.name&&r===t.width&&u===t.product&&i===t.lang&&c===t.protocol&&a===t.area&&l===t.nextWidth&&f===t.bgColor&&s===t.timeout&&(!(0,v.default)(t.data)||(0,_.default)(o,t)))}var f,s,p,d,y,h,b,g,v,m,_,w,j,O,x,k;Object.defineProperty(t,"__esModule",{value:!0}),f=function(){function e(e,t){var n,o;for(n=0;n<t.length;n++)o=t[n],o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(16),p=o(s),d=n(20),y=o(d),h=n(0),b=o(h),g=n(3),v=o(g),m=n(24),_=o(m),w=n(4),j=o(w),O=n(25),x=o(O),k=function(e){function t(e){r(this,t);var n=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.ins=null,n.state={loading:!1},n}return i(t,e),f(t,[{key:"componentDidMount",value:function(){this.load()}},{key:"componentWillReceiveProps",value:function(e){l(this.props,e)?this.load():this.bindEventFunc(e)}},{key:"shouldComponentUpdate",value:function(e,t){return this.state.loading!==t.loading}},{key:"componentWillUnmount",value:function(){var e=this.props.name;c(),j.default.remove(e)}},{key:"load",value:function(){var e,t=this;window&&window.document&&(e=this.props.data,this.setState({loading:!0}),(0,b.default)(e)?e().then(function(e){t.tryInit(e)}):this.tryInit(e))}},{key:"tryInit",value:function(e){var t=this,n=this.props,o=n.name,r=n.width,u=n.product,i=n.lang,c=n.protocol,l=n.area,f=n.nextWidth,s=n.bgColor,p=n.timeout,d={gt:e.gt,challenge:e.challenge,offline:!e.success,new_captcha:!!e.new_captcha,width:r,product:u,lang:i,protocol:c,area:l,next_width:f,bg_color:s,timeout:p};try{(0,x.default)(d,function(e){a(e),j.default.add(o,e),t.loadIns(e),t.setState({loading:!1})})}catch(e){console.error(e)}}},{key:"loadIns",value:function(e){this.ins=e,this.bindEventFunc(this.props),this.show()}},{key:"bindEventFunc",value:function(e){var t=this.ins,n=e.onReady,o=e.onSuccess,r=e.onClose,u=e.onError;t&&(t.handleReady(n),t.handleSuccess(function(){return o(t.getValidate())}),t.handleClose(r),t.handleError(u))}},{key:"show",value:function(){var e=this.props.product,t=this.ins,n=this.box;t&&"bind"!==e&&t.appendTo(n)}},{key:"render",value:function(){var e=this,t=this.props.product,n=this.state.loading,o=n?p.default.createElement("span",null," loading... "):null;return p.default.createElement("div",{style:{display:"bind"===t?"none":"block",height:44}},p.default.createElement("div",{style:{display:n?"block":"none"}},o),p.default.createElement("div",{style:{display:n?"none":"block"},ref:function(t){e.box=t}}))}}]),t}(p.default.Component),k.propTypes={name:y.default.string.isRequired,data:y.default.oneOfType([y.default.func,y.default.shape({gt:y.default.string.isRequired,challenge:y.default.string.isRequired,success:y.default.number.isRequired,new_captcha:y.default.bool})]).isRequired,width:y.default.oneOfType([y.default.string,y.default.number]),product:y.default.oneOf(["popup","float","custom","bind"]),lang:y.default.oneOf(["zh-cn","en"]),protocol:y.default.oneOf(["http://","https://"]),area:y.default.string,nextWidth:y.default.string,bgColor:y.default.string,timeout:y.default.number,onReady:y.default.func,onSuccess:y.default.func,onClose:y.default.func,onError:y.default.func,shouldReinitialize:y.default.func},k.defaultProps={width:"300px",product:"popup",lang:"zh-cn",protocol:null,area:null,nextWidth:null,bgColor:null,timeout:null,onReady:null,onSuccess:null,onClose:null,onError:null,shouldReinitialize:null},t.default=k},function(e,t,n){"use strict";e.exports=n(17)},function(e,t,n){"use strict";function o(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,o=0;o<t;o++)n+="&args[]="+encodeURIComponent(arguments[o+1]);throw t=Error(n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."),t.name="Invariant Violation",t.framesToPop=1,t}function r(e,t,n){this.props=e,this.context=t,this.refs=P,this.updater=n||M}function u(e,t,n){this.props=e,this.context=t,this.refs=P,this.updater=n||M}function i(){}function c(e,t,n){this.props=e,this.context=t,this.refs=P,this.updater=n||M}function a(e,t,n){var o,r,u,i,c={},a=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,o)&&!j.hasOwnProperty(o)&&(c[o]=t[o]);if(1===(r=arguments.length-2))c.children=n;else if(1<r){for(u=Array(r),i=0;i<r;i++)u[i]=arguments[i+2];c.children=u}if(e&&e.defaultProps)for(o in r=e.defaultProps)void 0===c[o]&&(c[o]=r[o]);return{$$typeof:T,type:e,key:a,ref:l,props:c,_owner:_.current}}function l(e){return"object"==typeof e&&null!==e&&e.$$typeof===T}function f(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function s(e,t,n,o){if(x.length){var r=x.pop();return r.result=e,r.keyPrefix=t,r.func=n,r.context=o,r.count=0,r}return{result:e,keyPrefix:t,func:n,context:o,count:0}}function p(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>x.length&&x.push(e)}function d(e,t,n,r){var u,i,c,a=typeof e;if("undefined"!==a&&"boolean"!==a||(e=null),u=!1,null===e)u=!0;else switch(a){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case T:case q:case A:case I:u=!0}}if(u)return n(r,e,""===t?"."+y(e,0):t),1;if(u=0,t=""===t?".":t+":",Array.isArray(e))for(i=0;i<e.length;i++)a=e[i],c=t+y(a,i),u+=d(a,c,n,r);else if(null===e||void 0===e?c=null:(c=$&&e[$]||e["@@iterator"],c="function"==typeof c?c:null),"function"==typeof c)for(e=c.call(e),i=0;!(a=e.next()).done;)a=a.value,c=t+y(a,i++),u+=d(a,c,n,r);else"object"===a&&(n=""+e,o("31","[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return u}function y(e,t){return"object"==typeof e&&null!==e&&null!=e.key?f(e.key):t.toString(36)}function h(e,t){e.func.call(e.context,t,e.count++)}function b(e,t,n){var o=e.result,r=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?g(e,o,n,C.thatReturnsArgument):null!=e&&(l(e)&&(t=r+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(O,"$&/")+"/")+n,e={$$typeof:T,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}),o.push(e))}function g(e,t,n,o,r){var u="";null!=n&&(u=(""+n).replace(O,"$&/")+"/"),t=s(t,u,o,r),null==e||d(e,"",b,t),p(t)}var v,m,_,w,j,O,x,k,E,R,S=n(18),P=n(19),C=n(5),F="function"==typeof Symbol&&Symbol.for,T=F?Symbol.for("react.element"):60103,q=F?Symbol.for("react.call"):60104,A=F?Symbol.for("react.return"):60105,I=F?Symbol.for("react.portal"):60106,U=F?Symbol.for("react.fragment"):60107,$="function"==typeof Symbol&&Symbol.iterator,M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};r.prototype.isReactComponent={},r.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&o("85"),this.updater.enqueueSetState(this,e,t,"setState")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},i.prototype=r.prototype,v=u.prototype=new i,v.constructor=u,S(v,r.prototype),v.isPureReactComponent=!0,m=c.prototype=new i,m.constructor=c,S(m,r.prototype),m.unstable_isAsyncReactComponent=!0,m.render=function(){return this.props.children},_={current:null},w=Object.prototype.hasOwnProperty,j={key:!0,ref:!0,__self:!0,__source:!0},O=/\/+/g,x=[],k={Children:{map:function(e,t,n){if(null==e)return e;var o=[];return g(e,o,null,t,n),o},forEach:function(e,t,n){if(null==e)return e;t=s(null,null,t,n),null==e||d(e,"",h,t),p(t)},count:function(e){return null==e?0:d(e,"",C.thatReturnsNull,null)},toArray:function(e){var t=[];return g(e,t,null,C.thatReturnsArgument),t},only:function(e){return l(e)||o("143"),e}},Component:r,PureComponent:u,unstable_AsyncComponent:c,Fragment:U,createElement:a,cloneElement:function(e,t,n){var o,r,u,i=S({},e.props),c=e.key,a=e.ref,l=e._owner;if(null!=t){void 0!==t.ref&&(a=t.ref,l=_.current),void 0!==t.key&&(c=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps);for(r in t)w.call(t,r)&&!j.hasOwnProperty(r)&&(i[r]=void 0===t[r]&&void 0!==o?o[r]:t[r])}if(1===(r=arguments.length-2))i.children=n;else if(1<r){for(o=Array(r),u=0;u<r;u++)o[u]=arguments[u+2];i.children=o}return{$$typeof:T,type:e.type,key:c,ref:a,props:i,_owner:l}},createFactory:function(e){var t=a.bind(null,e);return t.type=e,t},isValidElement:l,version:"16.2.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:_,assign:S}},E=Object.freeze({default:k}),R=E&&k||E,e.exports=R.default?R.default:R},function(e,t,n){"use strict";function o(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var r=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){var e,t,n,o,r;try{if(!Object.assign)return!1;if(e=new String("abc"),e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;return o=Object.getOwnPropertyNames(t).map(function(e){return t[e]}),"0123456789"!==o.join("")?!1:(r={},"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join(""))}catch(e){return!1}}()?Object.assign:function(e,t){var n,c,a,l,f,s=o(e);for(a=1;a<arguments.length;a++){n=Object(arguments[a]);for(l in n)u.call(n,l)&&(s[l]=n[l]);if(r)for(c=r(n),f=0;f<c.length;f++)i.call(n,c[f])&&(s[c[f]]=n[c[f]])}return s}},function(e,t,n){"use strict";var o={};e.exports=o},function(e,t,n){e.exports=n(21)()},function(e,t,n){"use strict";var o=n(5),r=n(22),u=n(23);e.exports=function(){function e(e,t,n,o,i,c){c!==u&&r(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=o,n.PropTypes=n,n}},function(e,t,n){"use strict";function o(e,t,n,o,u,i,c,a){var l,f,s;if(r(t),!e)throw void 0===t?l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."):(f=[n,o,u,i,c,a],s=0,l=new Error(t.replace(/%s/g,function(){return f[s++]})),l.name="Invariant Violation"),l.framesToPop=1,l}var r=function(e){};e.exports=o},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){e.exports=function(e,t){var n,o,r,u,i;if(e===t)return!0;if(n=Object.keys(e),o=Object.keys(t),r=n.length,o.length!==r)return!1;for(u=0;u<r;u++)if(i=n[u],e[i]!==t[i])return!1;return!0}},function(e,t){!function(t,n){"use strict";"object"==typeof e&&"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("Geetest requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(e,t){"use strict";function n(e){this._obj=e}function o(e){var t=this;new n(e)._each(function(e,n){t[e]=n})}var r,u,i,c,a,l,f,s,p,d,y,h,b,g,v,m,_,w,j,O,x;if(void 0===e)throw new Error("Geetest requires browser environment");return r=e.document,u=e.Math,i=r.getElementsByTagName("head")[0],n.prototype={_each:function(e){var t,n=this._obj;for(t in n)n.hasOwnProperty(t)&&e(t,n[t]);return this}},o.prototype={api_server:"api.geetest.com",protocol:"http://",type_path:"/gettype.php",fallback_config:{slide:{static_servers:["static.geetest.com","dn-staticdown.qbox.me"],type:"slide",slide:"/static/js/geetest.0.0.0.js"},fullpage:{static_servers:["static.geetest.com","dn-staticdown.qbox.me"],type:"fullpage",fullpage:"/static/js/fullpage.0.0.0.js"}},_get_fallback_config:function(){var e=this;return a(e.type)?e.fallback_config[e.type]:e.new_captcha?e.fallback_config.fullpage:e.fallback_config.slide},_extend:function(e){var t=this;new n(e)._each(function(e,n){t[e]=n})}},c=function(e){return"number"==typeof e},a=function(e){return"string"==typeof e},l=function(e){return"boolean"==typeof e},f=function(e){return"object"==typeof e&&null!==e},s=function(e){return"function"==typeof e},p={},d={},y=function(){return parseInt(1e4*u.random())+(new Date).valueOf()},h=function(e,t){var n,o=r.createElement("script");o.charset="UTF-8",o.async=!0,o.onerror=function(){t(!0)},n=!1,o.onload=o.onreadystatechange=function(){n||o.readyState&&"loaded"!==o.readyState&&"complete"!==o.readyState||(n=!0,setTimeout(function(){t(!1)},0))},o.src=e,i.appendChild(o)},b=function(e){return e.replace(/^https?:\/\/|\/$/g,"")},g=function(e){return e=e.replace(/\/+/g,"/"),0!==e.indexOf("/")&&(e="/"+e),e},v=function(e){if(!e)return"";var t="?";return new n(e)._each(function(e,n){(a(n)||c(n)||l(n))&&(t=t+encodeURIComponent(e)+"="+encodeURIComponent(n)+"&")}),"?"===t&&(t=""),t.replace(/&$/,"")},m=function(e,t,n,o){t=b(t);var r=g(n)+v(o);return t&&(r=e+t+r),r},_=function(e,t,n,o,r){var u=function(i){var c=m(e,t[i],n,o);h(c,function(e){e?i>=t.length-1?r(!0):u(i+1):r(!1)})};u(0)},w=function(t,n,o,r){if(f(o.getLib))return o._extend(o.getLib),void r(o);if(o.offline)return void r(o._get_fallback_config());var u="geetest_"+y();e[u]=function(t){r("success"===t.status?t.data:t.status?o._get_fallback_config():t),e[u]=void 0;try{delete e[u]}catch(e){}},_(o.protocol,t,n,{gt:o.gt,callback:u},function(e){e&&r(o._get_fallback_config())})},j=function(e,t){var n={networkError:"网络错误"};if("function"!=typeof t.onError)throw new Error(n[e]);t.onError(n[e])},O=function(){return!!e.Geetest},O()&&(d.slide="loaded"),x=function(t,n){var r=new o(t);t.https?r.protocol="https://":t.protocol||(r.protocol=e.location.protocol+"//"),w([r.api_server||r.apiserver],r.type_path,r,function(t){var o,u=t.type,i=function(){r._extend(t),n(new e.Geetest(r))};p[u]=p[u]||[],o=d[u]||"init","init"===o?(d[u]="loading",p[u].push(i),_(r.protocol,t.static_servers||t.domains,t[u]||t.path,null,function(e){var t,n,o,i;if(e)d[u]="fail",j("networkError",r);else{for(d[u]="loaded",t=p[u],n=0,o=t.length;n<o;n+=1)i=t[n],s(i)&&i();p[u]=[]}})):"loaded"===o?i():"fail"===o?j("networkError",r):"loading"===o&&p[u].push(i)})},e.initGeetest=x,x})}])}); |
@@ -1,5 +0,39 @@ | ||
var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }(); | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
var _react = require('react'); | ||
var _react2 = _interopRequireDefault(_react); | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _isFunction = require('lodash/isFunction'); | ||
var _isFunction2 = _interopRequireDefault(_isFunction); | ||
var _isObject = require('lodash/isObject'); | ||
var _isObject2 = _interopRequireDefault(_isObject); | ||
var _objects = require('shallow-equal/objects'); | ||
var _objects2 = _interopRequireDefault(_objects); | ||
var _storage = require('./storage'); | ||
var _storage2 = _interopRequireDefault(_storage); | ||
var _gt = require('./gt'); | ||
var _gt2 = _interopRequireDefault(_gt); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -9,15 +43,5 @@ | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } | ||
/* eslint-disable no-param-reassign */ | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint-disable no-param-reassign */ | ||
/* eslint-disable react/no-unused-prop-types */ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import isFunction from 'lodash/isFunction'; | ||
import isObject from 'lodash/isObject'; | ||
import shallowEqualObjects from 'shallow-equal/objects'; | ||
import storage from './storage'; | ||
import initGeetest from './gt'; | ||
// SPA 切换路由多次初始化导致head标签里脚本与样式越来越多 | ||
@@ -40,12 +64,12 @@ function cleanUpScript() { | ||
// ins.onReady 等方法防止多次绑定 offline模式貌似没有一些方法判断一下 | ||
if (isFunction(ins.onReady)) ins.onReady(function () { | ||
if ((0, _isFunction2.default)(ins.onReady)) ins.onReady(function () { | ||
if (typeof ins.readyFunc === 'function') ins.readyFunc(); | ||
}); | ||
if (isFunction(ins.onSuccess)) ins.onSuccess(function () { | ||
if ((0, _isFunction2.default)(ins.onSuccess)) ins.onSuccess(function () { | ||
if (typeof ins.successFunc === 'function') ins.successFunc(); | ||
}); | ||
if (isFunction(ins.onClose)) ins.onClose(function () { | ||
if ((0, _isFunction2.default)(ins.onClose)) ins.onClose(function () { | ||
if (typeof ins.closeFunc === 'function') ins.closeFunc(); | ||
}); | ||
if (isFunction(ins.onError)) ins.onError(function () { | ||
if ((0, _isFunction2.default)(ins.onError)) ins.onError(function () { | ||
if (typeof ins.errorFunc === 'function') ins.errorFunc(); | ||
@@ -84,5 +108,5 @@ }); | ||
if (isFunction(shouldReinitialize)) return shouldReinitialize(props, nextProps); | ||
if ((0, _isFunction2.default)(shouldReinitialize)) return shouldReinitialize(props, nextProps); | ||
if (name !== nextProps.name || width !== nextProps.width || product !== nextProps.product || lang !== nextProps.lang || protocol !== nextProps.protocol || area !== nextProps.area || nextWidth !== nextProps.nextWidth || bgColor !== nextProps.bgColor || timeout !== nextProps.timeout || isObject(nextProps.data) && !shallowEqualObjects(data, nextProps)) { | ||
if (name !== nextProps.name || width !== nextProps.width || product !== nextProps.product || lang !== nextProps.lang || protocol !== nextProps.protocol || area !== nextProps.area || nextWidth !== nextProps.nextWidth || bgColor !== nextProps.bgColor || timeout !== nextProps.timeout || (0, _isObject2.default)(nextProps.data) && !(0, _objects2.default)(data, nextProps)) { | ||
return true; | ||
@@ -93,4 +117,2 @@ } | ||
var _ref = _jsx('span', {}, void 0, ' loading... '); | ||
var RGCaptcha = function (_React$Component) { | ||
@@ -137,3 +159,3 @@ _inherits(RGCaptcha, _React$Component); | ||
cleanUpScript(); | ||
storage.remove(name); | ||
_storage2.default.remove(name); | ||
} | ||
@@ -153,3 +175,3 @@ }, { | ||
if (isFunction(data)) { | ||
if ((0, _isFunction2.default)(data)) { | ||
data().then(function (d) { | ||
@@ -196,6 +218,6 @@ _this2.tryInit(d); | ||
// http://docs.geetest.com/install/client/web-front/ | ||
initGeetest(newConfig, function (newIns) { | ||
(0, _gt2.default)(newConfig, function (newIns) { | ||
buildInsEventFunc(newIns); | ||
storage.add(name, newIns); | ||
_storage2.default.add(name, newIns); | ||
_this3.loadIns(newIns); | ||
@@ -254,16 +276,27 @@ _this3.setState({ | ||
var loadingTip = loading ? _ref : null; | ||
return _jsx('div', { | ||
style: { | ||
display: product === 'bind' ? 'none' : 'block', | ||
height: 44 | ||
} | ||
}, void 0, _jsx('div', { | ||
style: { display: loading ? 'block' : 'none' } | ||
}, void 0, loadingTip), React.createElement('div', { | ||
style: { display: loading ? 'none' : 'block' }, | ||
ref: function ref(box) { | ||
_this4.box = box; | ||
} | ||
})); | ||
var loadingTip = loading ? _react2.default.createElement( | ||
'span', | ||
null, | ||
' loading... ' | ||
) : null; | ||
return _react2.default.createElement( | ||
'div', | ||
{ | ||
style: { | ||
display: product === 'bind' ? 'none' : 'block', | ||
height: 44 | ||
} | ||
}, | ||
_react2.default.createElement( | ||
'div', | ||
{ style: { display: loading ? 'block' : 'none' } }, | ||
loadingTip | ||
), | ||
_react2.default.createElement('div', { | ||
style: { display: loading ? 'none' : 'block' }, | ||
ref: function ref(box) { | ||
_this4.box = box; | ||
} | ||
}) | ||
); | ||
} | ||
@@ -273,4 +306,31 @@ }]); | ||
return RGCaptcha; | ||
}(React.Component); | ||
}(_react2.default.Component); | ||
RGCaptcha.propTypes = { | ||
name: _propTypes2.default.string.isRequired, | ||
// 用于初始化的数据 | ||
data: _propTypes2.default.oneOfType([_propTypes2.default.func, _propTypes2.default.shape({ | ||
gt: _propTypes2.default.string.isRequired, | ||
challenge: _propTypes2.default.string.isRequired, | ||
success: _propTypes2.default.number.isRequired, | ||
new_captcha: _propTypes2.default.bool | ||
})]).isRequired, | ||
// 配置参数 | ||
width: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]), | ||
product: _propTypes2.default.oneOf(['popup', 'float', 'custom', 'bind']), | ||
lang: _propTypes2.default.oneOf(['zh-cn', 'en']), | ||
protocol: _propTypes2.default.oneOf(['http://', 'https://']), | ||
area: _propTypes2.default.string, | ||
nextWidth: _propTypes2.default.string, | ||
bgColor: _propTypes2.default.string, | ||
timeout: _propTypes2.default.number, | ||
// 事件 | ||
onReady: _propTypes2.default.func, | ||
onSuccess: _propTypes2.default.func, | ||
onClose: _propTypes2.default.func, | ||
onError: _propTypes2.default.func, | ||
// | ||
shouldReinitialize: _propTypes2.default.func | ||
}; | ||
RGCaptcha.defaultProps = { | ||
@@ -292,2 +352,2 @@ width: '300px', | ||
export default RGCaptcha; | ||
exports.default = RGCaptcha; |
@@ -1,3 +0,1 @@ | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
/* eslint-disable */ | ||
@@ -11,11 +9,12 @@ /* initGeetest 1.0.0 http://static.geetest.com/static/tools/gt.js | ||
"use strict"; | ||
if ((typeof module === "undefined" ? "undefined" : _typeof(module)) === "object" && _typeof(module.exports) === "object") { | ||
if (typeof module === "object" && typeof module.exports === "object") { | ||
// CommonJS | ||
module.exports = global.document ? factory(global, true) : function (w) { | ||
if (!w.document) { | ||
throw new Error("Geetest requires a window with a document"); | ||
} | ||
return factory(w); | ||
}; | ||
module.exports = global.document ? | ||
factory(global, true) : | ||
function (w) { | ||
if (!w.document) { | ||
throw new Error("Geetest requires a window with a document"); | ||
} | ||
return factory(w); | ||
}; | ||
} else { | ||
@@ -26,3 +25,2 @@ factory(global); | ||
"use strict"; | ||
if (typeof window === 'undefined') { | ||
@@ -40,3 +38,3 @@ throw new Error('Geetest requires browser environment'); | ||
_Object.prototype = { | ||
_each: function _each(process) { | ||
_each: function (process) { | ||
var _obj = this._obj; | ||
@@ -74,3 +72,3 @@ for (var k in _obj) { | ||
}, | ||
_get_fallback_config: function _get_fallback_config() { | ||
_get_fallback_config: function () { | ||
var self = this; | ||
@@ -85,30 +83,30 @@ if (isString(self.type)) { | ||
}, | ||
_extend: function _extend(obj) { | ||
_extend: function (obj) { | ||
var self = this; | ||
new _Object(obj)._each(function (key, value) { | ||
self[key] = value; | ||
}); | ||
}) | ||
} | ||
}; | ||
var isNumber = function isNumber(value) { | ||
return typeof value === 'number'; | ||
var isNumber = function (value) { | ||
return (typeof value === 'number'); | ||
}; | ||
var isString = function isString(value) { | ||
return typeof value === 'string'; | ||
var isString = function (value) { | ||
return (typeof value === 'string'); | ||
}; | ||
var isBoolean = function isBoolean(value) { | ||
return typeof value === 'boolean'; | ||
var isBoolean = function (value) { | ||
return (typeof value === 'boolean'); | ||
}; | ||
var isObject = function isObject(value) { | ||
return (typeof value === "undefined" ? "undefined" : _typeof(value)) === 'object' && value !== null; | ||
var isObject = function (value) { | ||
return (typeof value === 'object' && value !== null); | ||
}; | ||
var isFunction = function isFunction(value) { | ||
return typeof value === 'function'; | ||
var isFunction = function (value) { | ||
return (typeof value === 'function'); | ||
}; | ||
var callbacks = {}; | ||
var status = {}; | ||
var random = function random() { | ||
return parseInt(Math.random() * 10000) + new Date().valueOf(); | ||
var random = function () { | ||
return parseInt(Math.random() * 10000) + (new Date()).valueOf(); | ||
}; | ||
var loadScript = function loadScript(url, cb) { | ||
var loadScript = function (url, cb) { | ||
var script = document.createElement("script"); | ||
@@ -122,3 +120,6 @@ script.charset = "UTF-8"; | ||
script.onload = script.onreadystatechange = function () { | ||
if (!loaded && (!script.readyState || "loaded" === script.readyState || "complete" === script.readyState)) { | ||
if (!loaded && | ||
(!script.readyState || | ||
"loaded" === script.readyState || | ||
"complete" === script.readyState)) { | ||
@@ -134,6 +135,6 @@ loaded = true; | ||
}; | ||
var normalizeDomain = function normalizeDomain(domain) { | ||
var normalizeDomain = function (domain) { | ||
return domain.replace(/^https?:\/\/|\/$/g, ''); | ||
}; | ||
var normalizePath = function normalizePath(path) { | ||
var normalizePath = function (path) { | ||
path = path.replace(/\/+/g, '/'); | ||
@@ -145,3 +146,3 @@ if (path.indexOf('/') !== 0) { | ||
}; | ||
var normalizeQuery = function normalizeQuery(query) { | ||
var normalizeQuery = function (query) { | ||
if (!query) { | ||
@@ -161,3 +162,3 @@ return ''; | ||
}; | ||
var makeURL = function makeURL(protocol, domain, path, query) { | ||
var makeURL = function (protocol, domain, path, query) { | ||
domain = normalizeDomain(domain); | ||
@@ -172,4 +173,4 @@ | ||
}; | ||
var load = function load(protocol, domains, path, query, cb) { | ||
var tryRequest = function tryRequest(at) { | ||
var load = function (protocol, domains, path, query, cb) { | ||
var tryRequest = function (at) { | ||
@@ -191,3 +192,3 @@ var url = makeURL(protocol, domains[at], path, query); | ||
}; | ||
var jsonp = function jsonp(domains, path, config, callback) { | ||
var jsonp = function (domains, path, config, callback) { | ||
if (isObject(config.getLib)) { | ||
@@ -214,3 +215,4 @@ config._extend(config.getLib); | ||
delete window[cb]; | ||
} catch (e) {} | ||
} catch (e) { | ||
} | ||
}; | ||
@@ -226,3 +228,3 @@ load(config.protocol, domains, path, { | ||
}; | ||
var throwError = function throwError(errorType, config) { | ||
var throwError = function (errorType, config) { | ||
var errors = { | ||
@@ -237,3 +239,3 @@ networkError: '网络错误' | ||
}; | ||
var detect = function detect() { | ||
var detect = function () { | ||
return !!window.Geetest; | ||
@@ -244,3 +246,3 @@ }; | ||
} | ||
var initGeetest = function initGeetest(userConfig, callback) { | ||
var initGeetest = function (userConfig, callback) { | ||
var config = new Config(userConfig); | ||
@@ -254,3 +256,3 @@ if (userConfig.https) { | ||
var type = newConfig.type; | ||
var init = function init() { | ||
var init = function () { | ||
config._extend(newConfig); | ||
@@ -291,2 +293,2 @@ callback(new window.Geetest(config)); | ||
return initGeetest; | ||
}); | ||
}); |
@@ -1,40 +0,62 @@ | ||
import isFunction from 'lodash/isFunction'; | ||
import storage from './storage'; | ||
import component from './component'; | ||
'use strict'; | ||
export { component as RGCaptcha, storage }; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.storage = exports.RGCaptcha = undefined; | ||
exports.appendTo = appendTo; | ||
exports.bindForm = bindForm; | ||
exports.getValidate = getValidate; | ||
exports.reset = reset; | ||
exports.verify = verify; | ||
export function appendTo(name, position) { | ||
var ins = storage.get(name); | ||
if (ins && isFunction(ins.appendTo)) return ins.appendTo(position); | ||
var _isFunction = require('lodash/isFunction'); | ||
var _isFunction2 = _interopRequireDefault(_isFunction); | ||
var _storage = require('./storage'); | ||
var _storage2 = _interopRequireDefault(_storage); | ||
var _component = require('./component'); | ||
var _component2 = _interopRequireDefault(_component); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports.RGCaptcha = _component2.default; | ||
exports.storage = _storage2.default; | ||
function appendTo(name, position) { | ||
var ins = _storage2.default.get(name); | ||
if (ins && (0, _isFunction2.default)(ins.appendTo)) return ins.appendTo(position); | ||
return null; | ||
} | ||
export function bindForm(name, position) { | ||
var ins = storage.get(name); | ||
if (ins && isFunction(ins.bindForm)) return ins.bindForm(position); | ||
function bindForm(name, position) { | ||
var ins = _storage2.default.get(name); | ||
if (ins && (0, _isFunction2.default)(ins.bindForm)) return ins.bindForm(position); | ||
return null; | ||
} | ||
export function getValidate(name) { | ||
var ins = storage.get(name); | ||
if (ins && isFunction(ins.getValidate)) return ins.getValidate(); | ||
function getValidate(name) { | ||
var ins = _storage2.default.get(name); | ||
if (ins && (0, _isFunction2.default)(ins.getValidate)) return ins.getValidate(); | ||
return null; | ||
} | ||
export function reset(name) { | ||
var ins = storage.get(name); | ||
if (ins && isFunction(ins.reset)) return ins.reset(); | ||
function reset(name) { | ||
var ins = _storage2.default.get(name); | ||
if (ins && (0, _isFunction2.default)(ins.reset)) return ins.reset(); | ||
return null; | ||
} | ||
export function verify(name) { | ||
var ins = storage.get(name); | ||
if (ins && isFunction(ins.verify)) return ins.verify(); | ||
function verify(name) { | ||
var ins = _storage2.default.get(name); | ||
if (ins && (0, _isFunction2.default)(ins.verify)) return ins.verify(); | ||
return null; | ||
} | ||
export default { | ||
storage: storage, | ||
RGCaptcha: component, | ||
exports.default = { | ||
storage: _storage2.default, | ||
RGCaptcha: _component2.default, | ||
appendTo: appendTo, | ||
@@ -41,0 +63,0 @@ bindForm: bindForm, |
@@ -0,10 +1,23 @@ | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
var _isString = require('lodash/isString'); | ||
var _isString2 = _interopRequireDefault(_isString); | ||
var _isFunction = require('lodash/isFunction'); | ||
var _isFunction2 = _interopRequireDefault(_isFunction); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
import isString from 'lodash/isString'; | ||
import isFunction from 'lodash/isFunction'; | ||
function isValidName(name) { | ||
return isString(name) && name.length !== 0; | ||
return (0, _isString2.default)(name) && name.length !== 0; | ||
} | ||
@@ -39,3 +52,3 @@ | ||
var ins = this.get(name); | ||
if (ins && isFunction(ins.destroy)) ins.destroy(); | ||
if (ins && (0, _isFunction2.default)(ins.destroy)) ins.destroy(); | ||
delete this.instances[name]; | ||
@@ -53,2 +66,2 @@ } | ||
export default new Storage(); | ||
exports.default = new Storage(); |
{ | ||
"name": "react-geetest-captcha", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "A react.js CAPTCHA for GEETEST.com", | ||
@@ -46,3 +46,2 @@ "browserslist": [ | ||
"babel-preset-react": "^6.24.1", | ||
"babel-preset-react-optimize": "^1.0.1", | ||
"babel-preset-stage-2": "^6.24.1", | ||
@@ -73,9 +72,10 @@ "del": "^3.0.0", | ||
"peerDependencies": { | ||
"prop-types": "^15.6.0", | ||
"react": "^16.2.0" | ||
"react": ">=15.3.0", | ||
"react-dom": ">=15.3.0" | ||
}, | ||
"dependencies": { | ||
"lodash": "^4.17.4", | ||
"prop-types": "^15.6.0", | ||
"shallow-equal": "^1.0.0" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26
3821
165022
5
+ Addedprop-types@^15.6.0
+ Addedreact@18.3.1(transitive)
+ Addedreact-dom@18.3.1(transitive)
+ Addedscheduler@0.23.2(transitive)
- Removedreact@16.14.0(transitive)