Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-geetest-captcha

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-geetest-captcha - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

4

dist/react-geetest-captcha.min.js
/**
* react-geetest-captcha v1.0.2
* react-geetest-captcha v1.0.3
*

@@ -26,2 +26,2 @@ * MIT License

*/
!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(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},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=22)}([function(t,e,n){function r(t){if(!u(t))return!1;var e=o(t);return e==c||e==a||e==i||e==f}var o=n(1),u=n(3),i="[object AsyncFunction]",c="[object Function]",a="[object GeneratorFunction]",f="[object Proxy]";t.exports=r},function(t,e,n){function r(t){return null==t?void 0===t?a:c:f&&f in Object(t)?u(t):i(t)}var o=n(6),u=n(24),i=n(25),c="[object Null]",a="[object Undefined]",f=o?o.toStringTag:void 0;t.exports=r},function(t,e){function n(t){return null!=t&&"object"==typeof t}t.exports=n},function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},function(t,e,n){var r=n(7),o="object"==typeof self&&self&&self.Object===Object&&self,u=r||o||Function("return this")();t.exports=u},function(t,e){function n(t,e){return t===e||t!==t&&e!==e}t.exports=n},function(t,e,n){var r=n(4),o=r.Symbol;t.exports=o},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,n(23))},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){return function(){var e=t.apply(this,arguments);return new Promise(function(t,n){function r(o,u){var i,c;try{i=e[o](u),c=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(c).then(function(t){r("next",t)},function(t){r("throw",t)});t(c)}return r("next")})}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t){return(0,s.default)(t)&&0!==t.length}function c(t){t.hasBuildEventFunc||((0,d.default)(t.onReady)&&t.onReady(function(){(0,d.default)(t.readyFunc)&&t.readyFunc()}),(0,d.default)(t.onSuccess)&&t.onSuccess(function(){(0,d.default)(t.successFunc)&&t.successFunc()}),(0,d.default)(t.onClose)&&t.onClose(function(){(0,d.default)(t.closeFunc)&&t.closeFunc()}),(0,d.default)(t.onError)&&t.onError(function(){(0,d.default)(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={gt:e.gt,challenge:e.challenge,offline:!e.success,new_captcha:!!e.new_captcha,width:(0,h.default)(t.width)?t.width+"px":t.width,product:t.product,lang:t.lang,protocol:t.protocol,area:t.area,next_width:t.nextWidth,bg_color:t.bgColor,timeout:t.timeout};return new Promise(function(t,e){try{(0,m.default)(n,function(e){t(e)})}catch(t){e(t)}})}var f,l,s,p,d,y,h,b,v,g,m,x;Object.defineProperty(e,"__esModule",{value:!0}),f=function(){function t(t,e){var n,r;for(n=0;n<e.length;n++)r=e[n],r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=n(26),s=r(l),p=n(0),d=r(p),y=n(27),h=r(y),b=n(28),v=r(b),g=n(29),m=r(g),x=function(){function t(){u(this,t),this.instances={}}return f(t,[{key:"create",value:function(){function t(t,n,r,o,u){return e.apply(this,arguments)}var e=o(regeneratorRuntime.mark(function t(e,n,r,o,u){var i,f,l,s,p;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.exist(e)||!o){t.next=4;break}if(i=this.get(e),f=i.ins,l=i.data,s=i.config,!(u&&(0,v.default)(s,n)||!u&&(0,v.default)(s,n)&&(0,v.default)(l,r))){t.next=4;break}return t.abrupt("return",f);case 4:return t.next=6,a(n,r);case 6:return p=t.sent,c(p),this.instances[e]={ins:p,data:r,config:n},t.abrupt("return",p);case 10:case"end":return t.stop()}},t,this)}));return t}()},{key:"get",value:function(t){return this.exist(t)?this.instances[t]:{}}},{key:"remove",value:function(t){if(this.exist(t)){var e=this.get(t),n=e.ins;n&&(0,d.default)(n.destroy)&&n.destroy(),delete this.instances[t]}}},{key:"exist",value:function(t){return i(t)&&Object.prototype.hasOwnProperty.call(this.instances,t)}}]),t}(),e.default=new x},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){"use strict";t.exports=n(31)},function(t,e,n){"use strict";function r(t){return function(){return t}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(t){return t},t.exports=o},function(t,e,n){t.exports=n(34)()},function(t,e){function n(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}t.exports=n},function(t,e,n){function r(t,e,n){"__proto__"==e&&o?o(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var o=n(15);t.exports=r},function(t,e,n){var r=n(41),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e,n){function r(t,e){return i(u(t,e,o),t+"")}var o=n(17),u=n(48),i=n(49);t.exports=r},function(t,e){function n(t){return t}t.exports=n},function(t,e,n){function r(t){return null!=t&&u(t.length)&&!o(t)}var o=n(0),u=n(19);t.exports=r},function(t,e){function n(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}var r=9007199254740991;t.exports=n},function(t,e){function n(t,e){return!!(e=null==e?r:e)&&("number"==typeof t||o.test(t))&&t>-1&&t%1==0&&t<e}var r=9007199254740991,o=/^(?:0|[1-9]\d*)$/;t.exports=n},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(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var n=p.default.get(t),r=n.ins;return r&&(0,l.default)(r.appendTo)?r.appendTo(e):null}function u(t,e){var n=p.default.get(t),r=n.ins;return r&&(0,l.default)(r.bindForm)?r.bindForm(e):null}function i(t){var e=p.default.get(t),n=e.ins;return n&&(0,l.default)(n.getValidate)?n.getValidate():null}function c(t){var e=p.default.get(t),n=e.ins;return n&&(0,l.default)(n.reset)?n.reset():null}function a(t){var e=p.default.get(t),n=e.ins;return n&&(0,l.default)(n.verify)?n.verify():null}var f,l,s,p,d,y;Object.defineProperty(e,"__esModule",{value:!0}),e.storage=e.RGCaptcha=void 0,e.appendTo=o,e.bindForm=u,e.getValidate=i,e.reset=c,e.verify=a,f=n(0),l=r(f),s=n(8),p=r(s),d=n(30),y=r(d),e.RGCaptcha=y.default,e.storage=p.default,e.default={storage:p.default,RGCaptcha:y.default,appendTo:o,bindForm:u,getValidate:i,reset:c,verify:a}},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 r(t){var e,n,r=i.call(t,a),o=t[a];try{t[a]=void 0,e=!0}catch(t){}return n=c.call(t),e&&(r?t[a]=o:delete t[a]),n}var o=n(6),u=Object.prototype,i=u.hasOwnProperty,c=u.toString,a=o?o.toStringTag:void 0;t.exports=r},function(t,e){function n(t){return o.call(t)}var r=Object.prototype,o=r.toString;t.exports=n},function(t,e,n){function r(t){return"string"==typeof t||!u(t)&&i(t)&&o(t)==c}var o=n(1),u=n(9),i=n(2),c="[object String]";t.exports=r},function(t,e,n){function r(t){return"number"==typeof t||u(t)&&o(t)==i}var o=n(1),u=n(2),i="[object Number]";t.exports=r},function(t,e){t.exports=function(t,e){var n,r,o,u,i;if(t===e)return!0;if(n=Object.keys(t),r=Object.keys(e),o=n.length,r.length!==o)return!1;for(u=0;u<o;u++)if(i=n[u],t[i]!==e[i])return!1;return!0}},function(t,e){!function(e,n){"use strict";"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("Geetest requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(t,e){"use strict";function n(t){this._obj=t}function r(t){var e=this;new n(t)._each(function(t,n){e[t]=n})}var o,u,i,c,a,f,l,s,p,d,y,h,b,v,g,m,x,w,j,_,O;if(void 0===t)throw new Error("Geetest requires browser environment");return o=t.document,u=t.Math,i=o.getElementsByTagName("head")[0],n.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 a(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 n(t)._each(function(t,n){e[t]=n})}},c=function(t){return"number"==typeof t},a=function(t){return"string"==typeof t},f=function(t){return"boolean"==typeof t},l=function(t){return"object"==typeof t&&null!==t},s=function(t){return"function"==typeof t},p={},d={},y=function(){return parseInt(1e4*u.random())+(new Date).valueOf()},h=function(t,e){var n,r=o.createElement("script");r.charset="UTF-8",r.async=!0,r.onerror=function(){e(!0)},n=!1,r.onload=r.onreadystatechange=function(){n||r.readyState&&"loaded"!==r.readyState&&"complete"!==r.readyState||(n=!0,setTimeout(function(){e(!1)},0))},r.src=t,i.appendChild(r)},b=function(t){return t.replace(/^https?:\/\/|\/$/g,"")},v=function(t){return t=t.replace(/\/+/g,"/"),0!==t.indexOf("/")&&(t="/"+t),t},g=function(t){if(!t)return"";var e="?";return new n(t)._each(function(t,n){(a(n)||c(n)||f(n))&&(e=e+encodeURIComponent(t)+"="+encodeURIComponent(n)+"&")}),"?"===e&&(e=""),e.replace(/&$/,"")},m=function(t,e,n,r){e=b(e);var o=v(n)+g(r);return e&&(o=t+e+o),o},x=function(t,e,n,r,o){var u=function(i){var c=m(t,e[i],n,r);h(c,function(t){t?i>=e.length-1?o(!0):u(i+1):o(!1)})};u(0)},w=function(e,n,r,o){if(l(r.getLib))return r._extend(r.getLib),void o(r);if(r.offline)return void o(r._get_fallback_config());var u="geetest_"+y();t[u]=function(e){o("success"===e.status?e.data:e.status?r._get_fallback_config():e),t[u]=void 0;try{delete t[u]}catch(t){}},x(r.protocol,e,n,{gt:r.gt,callback:u},function(t){t&&o(r._get_fallback_config())})},j=function(t,e){var n={networkError:"网络错误"};if("function"!=typeof e.onError)throw new Error(n[t]);e.onError(n[t])},_=function(){return!!t.Geetest},_()&&(d.slide="loaded"),O=function(e,n){var o=new r(e);e.https?o.protocol="https://":e.protocol||(o.protocol=t.location.protocol+"//"),w([o.api_server||o.apiserver],o.type_path,o,function(e){var r,u=e.type,i=function(){o._extend(e),n(new t.Geetest(o))};p[u]=p[u]||[],r=d[u]||"init","init"===r?(d[u]="loading",p[u].push(i),x(o.protocol,e.static_servers||e.domains,e[u]||e.path,null,function(t){var e,n,r,i;if(t)d[u]="fail",j("networkError",o);else{for(d[u]="loaded",e=p[u],n=0,r=e.length;n<r;n+=1)i=e[n],s(i)&&i();p[u]=[]}})):"loaded"===r?i():"fail"===r?j("networkError",o):"loading"===r&&p[u].push(i)})},t.initGeetest=O,O})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){return function(){var e=t.apply(this,arguments);return new Promise(function(t,n){function r(o,u){var i,c;try{i=e[o](u),c=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(c).then(function(t){r("next",t)},function(t){r("throw",t)});t(c)}return r("next")})}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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 c(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 a(){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)}var f,l,s,p,d,y,h,b,v,g,m,x,w,j;Object.defineProperty(e,"__esModule",{value:!0}),f=function(){function t(t,e){var n,r;for(n=0;n<e.length;n++)r=e[n],r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=n(10),s=r(l),p=n(12),d=r(p),y=n(0),h=r(y),b=n(37),v=r(b),g=n(8),m=r(g),x=n(69),w=r(x),j=function(t){function e(t){u(this,e);var n=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.ins=null,n.busy=!1,n.showed=!1,n.mounted=!1,n.hasChanged=!1,n.state={loading:!0},n}return c(e,t),f(e,[{key:"componentDidMount",value:function(){this.mounted=!0,this.load(!1)}},{key:"componentDidUpdate",value:function(){var t=this;if(this.busy)return void(this.hasChanged=!0);this.load(!0).finally(function(){t.hasChanged&&(t.hasChanged=!1,t.load(!0))})}},{key:"componentWillUnmount",value:function(){var t=this.props.name;a(),m.default.remove(t),this.mounted=!1}},{key:"load",value:function(){function t(t){return e.apply(this,arguments)}var e=o(regeneratorRuntime.mark(function t(e){var n,r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(window&&window.document&&!this.busy&&this.mounted){t.next=2;break}return t.abrupt("return");case 2:return this.busy=!0,t.next=5,this.loadData(e);case 5:return n=t.sent,r=e&&(0,h.default)(n),t.next=9,this.loadIns(n,e,r);case 9:this.busy=!1;case 10:case"end":return t.stop()}},t,this)}));return t}()},{key:"loadData",value:function(){function t(t){return e.apply(this,arguments)}var e=o(regeneratorRuntime.mark(function t(e){var n,r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.props.data,r=n,!(0,h.default)(n)||e){t.next=5;break}return t.next=5,n().then(function(t){r=t}).catch(function(){console.error("failed to fetch data")});case 5:return t.abrupt("return",r);case 6:case"end":return t.stop()}},t,this)}));return t}()},{key:"loadIns",value:function(){function t(t,n,r){return e.apply(this,arguments)}var e=o(regeneratorRuntime.mark(function t(e,n,r){var o,u,i,c,a,f,l,s,p,d,y,h=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=this.props,u=o.name,i=o.width,c=o.product,a=o.lang,f=o.protocol,l=o.area,s=o.nextWidth,p=o.bgColor,d=o.timeout,y={width:i,product:c,lang:a,protocol:f,area:l,next_width:s,bg_color:p,timeout:d},t.next=4,m.default.create(u,y,e,n,r).then(function(t){t!==h.ins&&(h.showed=!1),h.ins=t,h.bindEventFunc(h.props),h.show()}).catch(function(){console.error("failed to initialize")}).finally(function(){h.mounted&&h.setState({loading:!1})});case 4:case"end":return t.stop()}},t,this)}));return t}()},{key:"bindEventFunc",value:function(t){var e=this.ins,n=t.onReady,r=t.onSuccess,o=t.onClose,u=t.onError;e&&e.hasBuildEventFunc&&(e.handleReady(n),e.handleSuccess(function(){return r(e.getValidate())}),e.handleClose(o),e.handleError(u))}},{key:"show",value:function(){var t=this.props.product,e=this.ins,n=this.box,r=this.showed;if(e&&n&&!r&&"bind"!==t){for(;n.firstChild;)n.removeChild(n.firstChild);e.appendTo(n),this.showed=!0}}},{key:"render",value:function(){var t,e=this,n=this.props,r=n.product,o=n.loadingComponent,u=n.loadingText,i=n.style,c=void 0===i?{}:i,a=n.className,f=this.state.loading,l=void 0;return l=o?s.default.createElement(o,{loading:f}):s.default.createElement(w.default,{loading:f,text:u}),t=(0,v.default)(c,{display:"bind"===r?"none":"block",height:44}),s.default.createElement("div",{style:t,className:a},l,s.default.createElement("div",{style:{display:f?"none":"block"},ref:function(t){e.box=t}}))}}]),e}(s.default.Component),j.propTypes={name:d.default.string.isRequired,data:d.default.oneOfType([d.default.func,d.default.shape({gt:d.default.string.isRequired,challenge:d.default.string.isRequired,success:d.default.number.isRequired,new_captcha:d.default.bool})]).isRequired,width:d.default.oneOfType([d.default.string,d.default.number]),product:d.default.oneOf(["popup","float","custom","bind"]),lang:d.default.oneOf(["zh-cn","en"]),protocol:d.default.oneOf(["http://","https://"]),area:d.default.string,nextWidth:d.default.string,bgColor:d.default.string,timeout:d.default.number,onReady:d.default.func,onSuccess:d.default.func,onClose:d.default.func,onError:d.default.func,loadingComponent:d.default.func,loadingText:d.default.string,style:d.default.object,className:d.default.string},j.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,loadingComponent:null,loadingText:"loading...",style:null,className:""},e.default=j},function(t,e,n){"use strict";function r(t){for(var e=arguments.length-1,n="Minified React error #"+t+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+t,r=0;r<e;r++)n+="&args[]="+encodeURIComponent(arguments[r+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 o(t,e,n){this.props=t,this.context=e,this.refs=S,this.updater=n||N}function u(t,e,n){this.props=t,this.context=e,this.refs=S,this.updater=n||N}function i(){}function c(t,e,n){this.props=t,this.context=e,this.refs=S,this.updater=n||N}function a(t,e,n){var r,o,u,i,c={},a=null,f=null;if(null!=e)for(r in void 0!==e.ref&&(f=e.ref),void 0!==e.key&&(a=""+e.key),e)w.call(e,r)&&!j.hasOwnProperty(r)&&(c[r]=e[r]);if(1===(o=arguments.length-2))c.children=n;else if(1<o){for(u=Array(o),i=0;i<o;i++)u[i]=arguments[i+2];c.children=u}if(t&&t.defaultProps)for(r in o=t.defaultProps)void 0===c[r]&&(c[r]=o[r]);return{$$typeof:F,type:t,key:a,ref:f,props:c,_owner:x.current}}function f(t){return"object"==typeof t&&null!==t&&t.$$typeof===F}function l(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,function(t){return e[t]})}function s(t,e,n,r){if(O.length){var o=O.pop();return o.result=t,o.keyPrefix=e,o.func=n,o.context=r,o.count=0,o}return{result:t,keyPrefix:e,func:n,context:r,count:0}}function p(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>O.length&&O.push(t)}function d(t,e,n,o){var u,i,c,a=typeof t;if("undefined"!==a&&"boolean"!==a||(t=null),u=!1,null===t)u=!0;else switch(a){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case F:case A:case $:case I:u=!0}}if(u)return n(o,t,""===e?"."+y(t,0):e),1;if(u=0,e=""===e?".":e+":",Array.isArray(t))for(i=0;i<t.length;i++)a=t[i],c=e+y(a,i),u+=d(a,c,n,o);else if(null===t||void 0===t?c=null:(c=U&&t[U]||t["@@iterator"],c="function"==typeof c?c:null),"function"==typeof c)for(t=c.call(t),i=0;!(a=t.next()).done;)a=a.value,c=e+y(a,i++),u+=d(a,c,n,o);else"object"===a&&(n=""+t,r("31","[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return u}function y(t,e){return"object"==typeof t&&null!==t&&null!=t.key?l(t.key):e.toString(36)}function h(t,e){t.func.call(t.context,e,t.count++)}function b(t,e,n){var r=t.result,o=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?v(t,r,n,C.thatReturnsArgument):null!=t&&(f(t)&&(e=o+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(_,"$&/")+"/")+n,t={$$typeof:F,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}),r.push(t))}function v(t,e,n,r,o){var u="";null!=n&&(u=(""+n).replace(_,"$&/")+"/"),e=s(e,u,r,o),null==t||d(t,"",b,e),p(e)}var g,m,x,w,j,_,O,k,P,E,R=n(32),S=n(33),C=n(11),T="function"==typeof Symbol&&Symbol.for,F=T?Symbol.for("react.element"):60103,A=T?Symbol.for("react.call"):60104,$=T?Symbol.for("react.return"):60105,I=T?Symbol.for("react.portal"):60106,q=T?Symbol.for("react.fragment"):60107,U="function"==typeof Symbol&&Symbol.iterator,N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};o.prototype.isReactComponent={},o.prototype.setState=function(t,e){"object"!=typeof t&&"function"!=typeof t&&null!=t&&r("85"),this.updater.enqueueSetState(this,t,e,"setState")},o.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},i.prototype=o.prototype,g=u.prototype=new i,g.constructor=u,R(g,o.prototype),g.isPureReactComponent=!0,m=c.prototype=new i,m.constructor=c,R(m,o.prototype),m.unstable_isAsyncReactComponent=!0,m.render=function(){return this.props.children},x={current:null},w=Object.prototype.hasOwnProperty,j={key:!0,ref:!0,__self:!0,__source:!0},_=/\/+/g,O=[],k={Children:{map:function(t,e,n){if(null==t)return t;var r=[];return v(t,r,null,e,n),r},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 f(t)||r("143"),t}},Component:o,PureComponent:u,unstable_AsyncComponent:c,Fragment:q,createElement:a,cloneElement:function(t,e,n){var r,o,u,i=R({},t.props),c=t.key,a=t.ref,f=t._owner;if(null!=e){void 0!==e.ref&&(a=e.ref,f=x.current),void 0!==e.key&&(c=""+e.key),t.type&&t.type.defaultProps&&(r=t.type.defaultProps);for(o in e)w.call(e,o)&&!j.hasOwnProperty(o)&&(i[o]=void 0===e[o]&&void 0!==r?r[o]:e[o])}if(1===(o=arguments.length-2))i.children=n;else if(1<o){for(r=Array(o),u=0;u<o;u++)r[u]=arguments[u+2];i.children=r}return{$$typeof:F,type:t.type,key:c,ref:a,props:i,_owner:f}},createFactory:function(t){var e=a.bind(null,t);return e.type=t,e},isValidElement:f,version:"16.2.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:x,assign:R}},P=Object.freeze({default:k}),E=P&&k||P,t.exports=E.default?E.default:E},function(t,e,n){"use strict";function r(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var o=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;t.exports=function(){var t,e,n,r,o;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 r=Object.getOwnPropertyNames(e).map(function(t){return e[t]}),"0123456789"!==r.join("")?!1:(o={},"abcdefghijklmnopqrst".split("").forEach(function(t){o[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join(""))}catch(t){return!1}}()?Object.assign:function(t,e){var n,c,a,f,l,s=r(t);for(a=1;a<arguments.length;a++){n=Object(arguments[a]);for(f in n)u.call(n,f)&&(s[f]=n[f]);if(o)for(c=o(n),l=0;l<c.length;l++)i.call(n,c[l])&&(s[c[l]]=n[c[l]])}return s}},function(t,e,n){"use strict";var r={};t.exports=r},function(t,e,n){"use strict";var r=n(11),o=n(35),u=n(36);t.exports=function(){function t(t,e,n,r,i,c){c!==u&&o(!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=r,n.PropTypes=n,n}},function(t,e,n){"use strict";function r(t,e,n,r,u,i,c,a){var f,l,s;if(o(e),!t)throw void 0===e?f=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."):(l=[n,r,u,i,c,a],s=0,f=new Error(e.replace(/%s/g,function(){return l[s++]})),f.name="Invariant Violation"),f.framesToPop=1,f}var o=function(t){};t.exports=r},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){var r=n(13),o=n(38),u=n(16),i=n(68),c=u(function(t){return t.push(void 0,i),r(o,void 0,t)});t.exports=c},function(t,e,n){var r=n(39),o=n(47),u=n(54),i=o(function(t,e,n,o){r(e,u(e),t,o)});t.exports=i},function(t,e,n){function r(t,e,n,r){var i,c,a,f,l=!n;for(n||(n={}),i=-1,c=e.length;++i<c;)a=e[i],f=r?r(n[a],t[a],a,n,t):void 0,void 0===f&&(f=t[a]),l?u(n,a,f):o(n,a,f);return n}var o=n(40),u=n(14);t.exports=r},function(t,e,n){function r(t,e,n){var r=t[e];c.call(t,e)&&u(r,n)&&(void 0!==n||e in t)||o(t,e,n)}var o=n(14),u=n(5),i=Object.prototype,c=i.hasOwnProperty;t.exports=r},function(t,e,n){function r(t,e){var n=u(t,e);return o(n)?n:void 0}var o=n(42),u=n(46);t.exports=r},function(t,e,n){function r(t){return!(!i(t)||u(t))&&(o(t)?y:f).test(c(t))}var o=n(0),u=n(43),i=n(3),c=n(45),a=/[\\^$.*+?()[\]{}|]/g,f=/^\[object .+?Constructor\]$/,l=Function.prototype,s=Object.prototype,p=l.toString,d=s.hasOwnProperty,y=RegExp("^"+p.call(d).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=r},function(t,e,n){function r(t){return!!u&&u in t}var o=n(44),u=function(){var t=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=r},function(t,e,n){var r=n(4),o=r["__core-js_shared__"];t.exports=o},function(t,e){function n(t){if(null!=t){try{return o.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var r=Function.prototype,o=r.toString;t.exports=n},function(t,e){function n(t,e){return null==t?void 0:t[e]}t.exports=n},function(t,e,n){function r(t){return o(function(e,n){var r,o=-1,i=n.length,c=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(c=t.length>3&&"function"==typeof c?(i--,c):void 0,a&&u(n[0],n[1],a)&&(c=i<3?void 0:c,i=1),e=Object(e);++o<i;)(r=n[o])&&t(e,r,o,c);return e})}var o=n(16),u=n(53);t.exports=r},function(t,e,n){function r(t,e,n){return e=u(void 0===e?t.length-1:e,0),function(){for(var r,i=arguments,c=-1,a=u(i.length-e,0),f=Array(a);++c<a;)f[c]=i[e+c];for(c=-1,r=Array(e+1);++c<e;)r[c]=i[c];return r[e]=n(f),o(t,this,r)}}var o=n(13),u=Math.max;t.exports=r},function(t,e,n){var r=n(50),o=n(52),u=o(r);t.exports=u},function(t,e,n){var r=n(51),o=n(15),u=n(17),i=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:u;t.exports=i},function(t,e){function n(t){return function(){return t}}t.exports=n},function(t,e){function n(t){var e=0,n=0;return function(){var i=u(),c=o-(i-n);if(n=i,c>0){if(++e>=r)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var r=800,o=16,u=Date.now;t.exports=n},function(t,e,n){function r(t,e,n){if(!c(n))return!1;var r=typeof e;return!!("number"==r?u(n)&&i(e,n.length):"string"==r&&e in n)&&o(n[e],t)}var o=n(5),u=n(18),i=n(20),c=n(3);t.exports=r},function(t,e,n){function r(t){return i(t)?o(t,!0):u(t)}var o=n(55),u=n(65),i=n(18);t.exports=r},function(t,e,n){function r(t,e){var n,r=i(t),l=!r&&u(t),p=!r&&!l&&c(t),d=!r&&!l&&!p&&f(t),y=r||l||p||d,h=y?o(t.length,String):[],b=h.length;for(n in t)!e&&!s.call(t,n)||y&&("length"==n||p&&("offset"==n||"parent"==n)||d&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||a(n,b))||h.push(n);return h}var o=n(56),u=n(57),i=n(9),c=n(59),a=n(20),f=n(61),l=Object.prototype,s=l.hasOwnProperty;t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}t.exports=n},function(t,e,n){var r=n(58),o=n(2),u=Object.prototype,i=u.hasOwnProperty,c=u.propertyIsEnumerable,a=r(function(){return arguments}())?r:function(t){return o(t)&&i.call(t,"callee")&&!c.call(t,"callee")};t.exports=a},function(t,e,n){function r(t){return u(t)&&o(t)==i}var o=n(1),u=n(2),i="[object Arguments]";t.exports=r},function(t,e,n){(function(t){var r=n(4),o=n(60),u="object"==typeof e&&e&&!e.nodeType&&e,i=u&&"object"==typeof t&&t&&!t.nodeType&&t,c=i&&i.exports===u,a=c?r.Buffer:void 0,f=a?a.isBuffer:void 0,l=f||o;t.exports=l}).call(e,n(21)(t))},function(t,e){function n(){return!1}t.exports=n},function(t,e,n){var r=n(62),o=n(63),u=n(64),i=u&&u.isTypedArray,c=i?o(i):r;t.exports=c},function(t,e,n){function r(t){return i(t)&&u(t.length)&&!!c[o(t)]}var o=n(1),u=n(19),i=n(2),c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c["[object Arguments]"]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c["[object Map]"]=c["[object Number]"]=c["[object Object]"]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1,t.exports=r},function(t,e){function n(t){return function(e){return t(e)}}t.exports=n},function(t,e,n){(function(t){var r=n(7),o="object"==typeof e&&e&&!e.nodeType&&e,u=o&&"object"==typeof t&&t&&!t.nodeType&&t,i=u&&u.exports===o,c=i&&r.process,a=function(){try{return c&&c.binding&&c.binding("util")}catch(t){}}();t.exports=a}).call(e,n(21)(t))},function(t,e,n){function r(t){var e,n,r;if(!o(t))return i(t);e=u(t),n=[];for(r in t)("constructor"!=r||!e&&a.call(t,r))&&n.push(r);return n}var o=n(3),u=n(66),i=n(67),c=Object.prototype,a=c.hasOwnProperty;t.exports=r},function(t,e){function n(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}var r=Object.prototype;t.exports=n},function(t,e){function n(t){var e,n=[];if(null!=t)for(e in Object(t))n.push(e);return n}t.exports=n},function(t,e,n){function r(t,e,n,r){return void 0===t||o(t,u[n])&&!i.call(r,n)?e:t}var o=n(5),u=Object.prototype,i=u.hasOwnProperty;t.exports=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(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)}var c,a,f,l,s,p;Object.defineProperty(e,"__esModule",{value:!0}),c=function(){function t(t,e){var n,r;for(n=0;n<e.length;n++)r=e[n],r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(10),f=r(a),l=n(12),s=r(l),p=function(t){function e(){return o(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),c(e,[{key:"render",value:function(){var t=this.props,e=t.loading,n=t.text;return f.default.createElement("div",{style:{display:e?"block":"none",lineHeight:"44px",textAlign:"center"}},n)}}]),e}(f.default.Component),p.propTypes={loading:s.default.bool.isRequired,text:s.default.node},p.defaultProps={text:"loading..."},e.default=p}])});
!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(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},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=17)}([function(e,t,n){function r(e){if(!u(e))return!1;var t=o(e);return t==c||t==a||t==i||t==f}var o=n(1),u=n(3),i="[object AsyncFunction]",c="[object Function]",a="[object GeneratorFunction]",f="[object Proxy]";e.exports=r},function(e,t,n){function r(e){return null==e?void 0===e?a:c:f&&f in Object(e)?u(e):i(e)}var o=n(5),u=n(19),i=n(20),c="[object Null]",a="[object Undefined]",f=o?o.toStringTag:void 0;e.exports=r},function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},function(e,t,n){var r=n(6),o="object"==typeof self&&self&&self.Object===Object&&self,u=r||o||Function("return this")();e.exports=u},function(e,t,n){var r=n(4),o=r.Symbol;e.exports=o},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n(18))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,u){var i,c;try{i=t[o](u),c=i.value}catch(e){return void n(e)}if(!i.done)return Promise.resolve(c).then(function(e){r("next",e)},function(e){r("throw",e)});e(c)}return r("next")})}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){return(0,s.default)(e)&&0!==e.length}function c(e){e.hasBuildEventFunc||((0,d.default)(e.onReady)&&e.onReady(function(){(0,d.default)(e.readyFunc)&&e.readyFunc()}),(0,d.default)(e.onSuccess)&&e.onSuccess(function(){(0,d.default)(e.successFunc)&&e.successFunc()}),(0,d.default)(e.onClose)&&e.onClose(function(){(0,d.default)(e.closeFunc)&&e.closeFunc()}),(0,d.default)(e.onError)&&e.onError(function(){(0,d.default)(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 a(e,t){var n={gt:t.gt,challenge:t.challenge,offline:!t.success,new_captcha:!!t.new_captcha,width:(0,h.default)(e.width)?e.width+"px":e.width,product:e.product,lang:e.lang,protocol:e.protocol,area:e.area,next_width:e.nextWidth,bg_color:e.bgColor,timeout:e.timeout};return new Promise(function(e,t){try{(0,m.default)(n,function(t){e(t)})}catch(e){t(e)}})}var f,l,s,p,d,y,h,b,v,g,m,x;Object.defineProperty(t,"__esModule",{value:!0}),f=function(){function e(e,t){var n,r;for(n=0;n<t.length;n++)r=t[n],r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(21),s=r(l),p=n(0),d=r(p),y=n(22),h=r(y),b=n(23),v=r(b),g=n(24),m=r(g),x=function(){function e(){u(this,e),this.instances={}}return f(e,[{key:"create",value:function(){function e(e,n,r,o,u){return t.apply(this,arguments)}var t=o(regeneratorRuntime.mark(function e(t,n,r,o,u){var i,f,l,s,p;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.exist(t)||!o){e.next=4;break}if(i=this.get(t),f=i.ins,l=i.data,s=i.config,!(u&&(0,v.default)(s,n)||!u&&(0,v.default)(s,n)&&(0,v.default)(l,r))){e.next=4;break}return e.abrupt("return",f);case 4:return e.next=6,a(n,r);case 6:return p=e.sent,c(p),this.instances[t]={ins:p,data:r,config:n},e.abrupt("return",p);case 10:case"end":return e.stop()}},e,this)}));return e}()},{key:"get",value:function(e){return this.exist(e)?this.instances[e]:{}}},{key:"remove",value:function(e){if(this.exist(e)){var t=this.get(e),n=t.ins;n&&(0,d.default)(n.destroy)&&n.destroy(),delete this.instances[e]}}},{key:"exist",value:function(e){return i(e)&&Object.prototype.hasOwnProperty.call(this.instances,e)}}]),e}(),t.default=new x},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";e.exports=n(26)},function(e,t,n){e.exports=n(28)()},function(e,t){function n(e){return e}e.exports=n},function(e,t){function n(e,t){return e===t||e!==e&&t!==t}e.exports=n},function(e,t,n){function r(e){return null!=e&&u(e.length)&&!o(e)}var o=n(0),u=n(14);e.exports=r},function(e,t){function n(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}var r=9007199254740991;e.exports=n},function(e,t){function n(e,t){var n=typeof e;return!!(t=null==t?r:t)&&("number"==n||"symbol"!=n&&o.test(e))&&e>-1&&e%1==0&&e<t}var r=9007199254740991,o=/^(?:0|[1-9]\d*)$/;e.exports=n},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n=p.default.get(e),r=n.ins;return r&&(0,l.default)(r.appendTo)?r.appendTo(t):null}function u(e,t){var n=p.default.get(e),r=n.ins;return r&&(0,l.default)(r.bindForm)?r.bindForm(t):null}function i(e){var t=p.default.get(e),n=t.ins;return n&&(0,l.default)(n.getValidate)?n.getValidate():null}function c(e){var t=p.default.get(e),n=t.ins;return n&&(0,l.default)(n.reset)?n.reset():null}function a(e){var t=p.default.get(e),n=t.ins;return n&&(0,l.default)(n.verify)?n.verify():null}var f,l,s,p,d,y;Object.defineProperty(t,"__esModule",{value:!0}),t.storage=t.RGCaptcha=void 0,t.appendTo=o,t.bindForm=u,t.getValidate=i,t.reset=c,t.verify=a,f=n(0),l=r(f),s=n(7),p=r(s),d=n(25),y=r(d),t.RGCaptcha=y.default,t.storage=p.default,t.default={storage:p.default,RGCaptcha:y.default,appendTo:o,bindForm:u,getValidate:i,reset:c,verify:a}},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 r(e){var t,n,r=i.call(e,a),o=e[a];try{e[a]=void 0,t=!0}catch(e){}return n=c.call(e),t&&(r?e[a]=o:delete e[a]),n}var o=n(5),u=Object.prototype,i=u.hasOwnProperty,c=u.toString,a=o?o.toStringTag:void 0;e.exports=r},function(e,t){function n(e){return o.call(e)}var r=Object.prototype,o=r.toString;e.exports=n},function(e,t,n){function r(e){return"string"==typeof e||!u(e)&&i(e)&&o(e)==c}var o=n(1),u=n(8),i=n(2),c="[object String]";e.exports=r},function(e,t,n){function r(e){return"number"==typeof e||u(e)&&o(e)==i}var o=n(1),u=n(2),i="[object Number]";e.exports=r},function(e,t){e.exports=function(e,t){var n,r,o,u,i;if(e===t)return!0;if(n=Object.keys(e),r=Object.keys(t),o=n.length,r.length!==o)return!1;for(u=0;u<o;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 r(e){var t=this;new n(e)._each(function(e,n){t[e]=n})}var o,u,i,c,a,f,l,s,p,d,y,h,b,v,g,m,x,w,j,_,O;if(void 0===e)throw new Error("Geetest requires browser environment");return o=e.document,u=e.Math,i=o.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}},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 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},f=function(e){return"boolean"==typeof e},l=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,r=o.createElement("script");r.charset="UTF-8",r.async=!0,r.onerror=function(){t(!0)},n=!1,r.onload=r.onreadystatechange=function(){n||r.readyState&&"loaded"!==r.readyState&&"complete"!==r.readyState||(n=!0,setTimeout(function(){t(!1)},0))},r.src=e,i.appendChild(r)},b=function(e){return e.replace(/^https?:\/\/|\/$/g,"")},v=function(e){return e=e.replace(/\/+/g,"/"),0!==e.indexOf("/")&&(e="/"+e),e},g=function(e){if(!e)return"";var t="?";return new n(e)._each(function(e,n){(a(n)||c(n)||f(n))&&(t=t+encodeURIComponent(e)+"="+encodeURIComponent(n)+"&")}),"?"===t&&(t=""),t.replace(/&$/,"")},m=function(e,t,n,r){t=b(t);var o=v(n)+g(r);return t&&(o=e+t+o),o},x=function(e,t,n,r,o){var u=function(i){var c=m(e,t[i],n,r);h(c,function(e){e?i>=t.length-1?o(!0):u(i+1):o(!1)})};u(0)},w=function(t,n,r,o){if(l(r.getLib))return r._extend(r.getLib),void o(r);if(r.offline)return void o(r._get_fallback_config());var u="geetest_"+y();e[u]=function(t){o("success"===t.status?t.data:t.status?r._get_fallback_config():t),e[u]=void 0;try{delete e[u]}catch(e){}},x(r.protocol,t,n,{gt:r.gt,callback:u},function(e){e&&o(r._get_fallback_config())})},j=function(e,t){var n={networkError:"网络错误"};if("function"!=typeof t.onError)throw new Error(n[e]);t.onError(n[e])},_=function(){return!!e.Geetest},_()&&(d.slide="loaded"),O=function(t,n){var o=new r(t);t.https?o.protocol="https://":t.protocol||(o.protocol=e.location.protocol+"//"),w([o.api_server||o.apiserver],o.type_path,o,function(t){var r,u=t.type,i=function(){o._extend(t),n(new e.Geetest(o))};p[u]=p[u]||[],r=d[u]||"init","init"===r?(d[u]="loading",p[u].push(i),x(o.protocol,t.static_servers||t.domains,t[u]||t.path,null,function(e){var t,n,r,i;if(e)d[u]="fail",j("networkError",o);else{for(d[u]="loaded",t=p[u],n=0,r=t.length;n<r;n+=1)i=t[n],s(i)&&i();p[u]=[]}})):"loaded"===r?i():"fail"===r?j("networkError",o):"loading"===r&&p[u].push(i)})},e.initGeetest=O,O})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,u){var i,c;try{i=t[o](u),c=i.value}catch(e){return void n(e)}if(!i.done)return Promise.resolve(c).then(function(e){r("next",e)},function(e){r("throw",e)});e(c)}return r("next")})}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 c(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 a(){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)}var f,l,s,p,d,y,h,b,v,g,m,x,w,j;Object.defineProperty(t,"__esModule",{value:!0}),f=function(){function e(e,t){var n,r;for(n=0;n<t.length;n++)r=t[n],r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(9),s=r(l),p=n(10),d=r(p),y=n(0),h=r(y),b=n(32),v=r(b),g=n(7),m=r(g),x=n(62),w=r(x),j=function(e){function t(e){u(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.ins=null,n.busy=!1,n.showed=!1,n.mounted=!1,n.hasChanged=!1,n.state={loading:!0},n}return c(t,e),f(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.load(!1)}},{key:"componentDidUpdate",value:function(){var e=this;if(this.busy)return void(this.hasChanged=!0);this.load(!0).finally(function(){e.hasChanged&&(e.hasChanged=!1,e.load(!0))})}},{key:"componentWillUnmount",value:function(){var e=this.props.name;a(),m.default.remove(e),this.mounted=!1}},{key:"load",value:function(){function e(e){return t.apply(this,arguments)}var t=o(regeneratorRuntime.mark(function e(t){var n,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(window&&window.document&&!this.busy&&this.mounted){e.next=2;break}return e.abrupt("return");case 2:return this.busy=!0,e.next=5,this.loadData(t);case 5:return n=e.sent,r=t&&(0,h.default)(n),e.next=9,this.loadIns(n,t,r);case 9:this.busy=!1;case 10:case"end":return e.stop()}},e,this)}));return e}()},{key:"loadData",value:function(){function e(e){return t.apply(this,arguments)}var t=o(regeneratorRuntime.mark(function e(t){var n,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.props.data,r=n,!(0,h.default)(n)||t){e.next=5;break}return e.next=5,n().then(function(e){r=e}).catch(function(){console.error("failed to fetch data")});case 5:return e.abrupt("return",r);case 6:case"end":return e.stop()}},e,this)}));return e}()},{key:"loadIns",value:function(){function e(e,n,r){return t.apply(this,arguments)}var t=o(regeneratorRuntime.mark(function e(t,n,r){var o,u,i,c,a,f,l,s,p,d,y,h=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=this.props,u=o.name,i=o.width,c=o.product,a=o.lang,f=o.protocol,l=o.area,s=o.nextWidth,p=o.bgColor,d=o.timeout,y={width:i,product:c,lang:a,protocol:f,area:l,next_width:s,bg_color:p,timeout:d},e.next=4,m.default.create(u,y,t,n,r).then(function(e){e!==h.ins&&(h.showed=!1),h.ins=e,h.bindEventFunc(h.props),h.show()}).catch(function(){console.error("failed to initialize")}).finally(function(){h.mounted&&h.setState({loading:!1})});case 4:case"end":return e.stop()}},e,this)}));return e}()},{key:"bindEventFunc",value:function(e){var t=this.ins,n=e.onReady,r=e.onSuccess,o=e.onClose,u=e.onError;t&&t.hasBuildEventFunc&&(t.handleReady(n),t.handleSuccess(function(){return r(t.getValidate())}),t.handleClose(o),t.handleError(u))}},{key:"show",value:function(){var e=this.props.product,t=this.ins,n=this.box,r=this.showed;if(t&&n&&!r&&"bind"!==e){for(;n.firstChild;)n.removeChild(n.firstChild);t.appendTo(n),this.showed=!0}}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.product,o=n.loadingComponent,u=n.loadingText,i=n.style,c=void 0===i?{}:i,a=n.className,f=this.state.loading,l=void 0;return l=o?s.default.createElement(o,{loading:f}):s.default.createElement(w.default,{loading:f,text:u}),e=(0,v.default)(c,{display:"bind"===r?"none":"block",height:44}),s.default.createElement("div",{style:e,className:a},l,s.default.createElement("div",{style:{display:f?"none":"block"},ref:function(e){t.box=e}}))}}]),t}(s.default.Component),j.propTypes={name:d.default.string.isRequired,data:d.default.oneOfType([d.default.func,d.default.shape({gt:d.default.string.isRequired,challenge:d.default.string.isRequired,success:d.default.number.isRequired,new_captcha:d.default.bool})]).isRequired,width:d.default.oneOfType([d.default.string,d.default.number]),product:d.default.oneOf(["popup","float","custom","bind"]),lang:d.default.oneOf(["zh-cn","zh-hk","zh-tw","en","ja","ko","ru","ar","es","pt-pt","fr","de"]),protocol:d.default.oneOf(["http://","https://"]),area:d.default.string,nextWidth:d.default.string,bgColor:d.default.string,timeout:d.default.number,onReady:d.default.func,onSuccess:d.default.func,onClose:d.default.func,onError:d.default.func,loadingComponent:d.default.func,loadingText:d.default.string,style:d.default.object,className:d.default.string},j.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,loadingComponent:null,loadingText:"loading...",style:null,className:""},t.default=j},function(e,t,n){"use strict";function r(e,t,n,r,o,u,i,c){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=[n,r,o,u,i,c],f=0;e=Error(t.replace(/%s/g,function(){return a[f++]})),e.name="Invariant Violation"}throw e.framesToPop=1,e}}function o(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=0;o<t;o++)n+="&args[]="+encodeURIComponent(arguments[o+1]);r(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}function u(e,t,n){this.props=e,this.context=t,this.refs=W,this.updater=n||L}function i(){}function c(e,t,n){this.props=e,this.context=t,this.refs=W,this.updater=n||L}function a(e,t,n){var r,o,u,i=void 0,c={},a=null,f=null;if(null!=t)for(i in void 0!==t.ref&&(f=t.ref),void 0!==t.key&&(a=""+t.key),t)j.call(t,i)&&!_.hasOwnProperty(i)&&(c[i]=t[i]);if(1===(r=arguments.length-2))c.children=n;else if(1<r){for(o=Array(r),u=0;u<r;u++)o[u]=arguments[u+2];c.children=o}if(e&&e.defaultProps)for(i in r=e.defaultProps)void 0===c[i]&&(c[i]=r[i]);return{$$typeof:T,type:e,key:a,ref:f,props:c,_owner:w.current}}function f(e,t){return{$$typeof:T,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function l(e){return"object"==typeof e&&null!==e&&e.$$typeof===T}function s(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function p(e,t,n,r){if(k.length){var o=k.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function d(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>k.length&&k.push(e)}function y(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 F:u=!0}}if(u)return n(r,e,""===t?"."+b(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+b(a,i),u+=y(a,c,n,r);else if(null===e||"object"!=typeof e?c=null:(c=G&&e[G]||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+b(a,i++),u+=y(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 h(e,t,n){return null==e?0:y(e,"",t,n)}function b(e,t){return"object"==typeof e&&null!==e&&null!=e.key?s(e.key):t.toString(36)}function v(e,t){e.func.call(e.context,t,e.count++)}function g(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?m(e,r,n,function(e){return e}):null!=e&&(l(e)&&(e=f(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(O,"$&/")+"/")+n)),r.push(e))}function m(e,t,n,r,o){var u="";null!=n&&(u=(""+n).replace(O,"$&/")+"/"),t=p(t,u,r,o),h(e,g,t),d(t)}var x,w,j,_,O,k,P,S,E,C=n(27),R="function"==typeof Symbol&&Symbol.for,T=R?Symbol.for("react.element"):60103,F=R?Symbol.for("react.portal"):60106,A=R?Symbol.for("react.fragment"):60107,$=R?Symbol.for("react.strict_mode"):60108,q=R?Symbol.for("react.profiler"):60114,I=R?Symbol.for("react.provider"):60109,M=R?Symbol.for("react.context"):60110,U=R?Symbol.for("react.concurrent_mode"):60111,N=R?Symbol.for("react.forward_ref"):60112,D=R?Symbol.for("react.suspense"):60113,B=R?Symbol.for("react.memo"):60115,V=R?Symbol.for("react.lazy"):60116,G="function"==typeof Symbol&&Symbol.iterator,L={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},W={};u.prototype.isReactComponent={},u.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&o("85"),this.updater.enqueueSetState(this,e,t,"setState")},u.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},i.prototype=u.prototype,x=c.prototype=new i,x.constructor=c,C(x,u.prototype),x.isPureReactComponent=!0,w={current:null,currentDispatcher:null},j=Object.prototype.hasOwnProperty,_={key:!0,ref:!0,__self:!0,__source:!0},O=/\/+/g,k=[],P={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return m(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;t=p(null,null,t,n),h(e,v,t),d(t)},count:function(e){return h(e,function(){return null},null)},toArray:function(e){var t=[];return m(e,t,null,function(e){return e}),t},only:function(e){return l(e)||o("143"),e}},createRef:function(){return{current:null}},Component:u,PureComponent:c,createContext:function(e,t){return void 0===t&&(t=null),e={$$typeof:M,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:I,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:N,render:e}},lazy:function(e){return{$$typeof:V,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:B,type:e,compare:void 0===t?null:t}},Fragment:A,StrictMode:$,Suspense:D,createElement:a,cloneElement:function(e,t,n){var r,u,i,c,a,f,l;if((null===e||void 0===e)&&o("267",e),r=void 0,u=C({},e.props),i=e.key,c=e.ref,a=e._owner,null!=t){void 0!==t.ref&&(c=t.ref,a=w.current),void 0!==t.key&&(i=""+t.key),f=void 0,e.type&&e.type.defaultProps&&(f=e.type.defaultProps);for(r in t)j.call(t,r)&&!_.hasOwnProperty(r)&&(u[r]=void 0===t[r]&&void 0!==f?f[r]:t[r])}if(1===(r=arguments.length-2))u.children=n;else if(1<r){for(f=Array(r),l=0;l<r;l++)f[l]=arguments[l+2];u.children=f}return{$$typeof:T,type:e.type,key:i,ref:c,props:u,_owner:a}},createFactory:function(e){var t=a.bind(null,e);return t.type=e,t},isValidElement:l,version:"16.7.0",unstable_ConcurrentMode:U,unstable_Profiler:q,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:w,assign:C}},S={default:P},E=S&&P||S,e.exports=E.default||E},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var o=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){var e,t,n,r,o;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 r=Object.getOwnPropertyNames(t).map(function(e){return t[e]}),"0123456789"!==r.join("")?!1:(o={},"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join(""))}catch(e){return!1}}()?Object.assign:function(e,t){var n,c,a,f,l,s=r(e);for(a=1;a<arguments.length;a++){n=Object(arguments[a]);for(f in n)u.call(n,f)&&(s[f]=n[f]);if(o)for(c=o(n),l=0;l<c.length;l++)i.call(n,c[l])&&(s[c[l]]=n[c[l]])}return s}},function(e,t,n){"use strict";var r=n(29),o=n(30),u=n(31);e.exports=function(){function e(e,t,n,r,i,c){c!==u&&o(!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=r,n.PropTypes=n,n}},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";function r(e,t,n,r,u,i,c,a){var f,l,s;if(o(t),!e)throw void 0===t?f=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."):(l=[n,r,u,i,c,a],s=0,f=new Error(t.replace(/%s/g,function(){return l[s++]})),f.name="Invariant Violation"),f.framesToPop=1,f}var o=function(e){};e.exports=r},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var r=n(33),o=n(12),u=n(47),i=n(48),c=Object.prototype,a=c.hasOwnProperty,f=r(function(e,t){var n,r,f,l,s,p,d,y,h;for(e=Object(e),n=-1,r=t.length,f=r>2?t[2]:void 0,f&&u(t[0],t[1],f)&&(r=1);++n<r;)for(l=t[n],s=i(l),p=-1,d=s.length;++p<d;)y=s[p],(void 0===(h=e[y])||o(h,c[y])&&!a.call(e,y))&&(e[y]=l[y]);return e});e.exports=f},function(e,t,n){function r(e,t){return i(u(e,t,o),e+"")}var o=n(11),u=n(34),i=n(36);e.exports=r},function(e,t,n){function r(e,t,n){return t=u(void 0===t?e.length-1:t,0),function(){for(var r,i=arguments,c=-1,a=u(i.length-t,0),f=Array(a);++c<a;)f[c]=i[t+c];for(c=-1,r=Array(t+1);++c<t;)r[c]=i[c];return r[t]=n(f),o(e,this,r)}}var o=n(35),u=Math.max;e.exports=r},function(e,t){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}e.exports=n},function(e,t,n){var r=n(37),o=n(46),u=o(r);e.exports=u},function(e,t,n){var r=n(38),o=n(39),u=n(11),i=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:u;e.exports=i},function(e,t){function n(e){return function(){return e}}e.exports=n},function(e,t,n){var r=n(40),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){function r(e,t){var n=u(e,t);return o(n)?n:void 0}var o=n(41),u=n(45);e.exports=r},function(e,t,n){function r(e){return!(!i(e)||u(e))&&(o(e)?y:f).test(c(e))}var o=n(0),u=n(42),i=n(3),c=n(44),a=/[\\^$.*+?()[\]{}|]/g,f=/^\[object .+?Constructor\]$/,l=Function.prototype,s=Object.prototype,p=l.toString,d=s.hasOwnProperty,y=RegExp("^"+p.call(d).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=r},function(e,t,n){function r(e){return!!u&&u in e}var o=n(43),u=function(){var e=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=r},function(e,t,n){var r=n(4),o=r["__core-js_shared__"];e.exports=o},function(e,t){function n(e){if(null!=e){try{return o.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var r=Function.prototype,o=r.toString;e.exports=n},function(e,t){function n(e,t){return null==e?void 0:e[t]}e.exports=n},function(e,t){function n(e){var t=0,n=0;return function(){var i=u(),c=o-(i-n);if(n=i,c>0){if(++t>=r)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var r=800,o=16,u=Date.now;e.exports=n},function(e,t,n){function r(e,t,n){if(!c(n))return!1;var r=typeof t;return!!("number"==r?u(n)&&i(t,n.length):"string"==r&&t in n)&&o(n[t],e)}var o=n(12),u=n(13),i=n(15),c=n(3);e.exports=r},function(e,t,n){function r(e){return i(e)?o(e,!0):u(e)}var o=n(49),u=n(59),i=n(13);e.exports=r},function(e,t,n){function r(e,t){var n,r=i(e),l=!r&&u(e),p=!r&&!l&&c(e),d=!r&&!l&&!p&&f(e),y=r||l||p||d,h=y?o(e.length,String):[],b=h.length;for(n in e)!t&&!s.call(e,n)||y&&("length"==n||p&&("offset"==n||"parent"==n)||d&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||a(n,b))||h.push(n);return h}var o=n(50),u=n(51),i=n(8),c=n(53),a=n(15),f=n(55),l=Object.prototype,s=l.hasOwnProperty;e.exports=r},function(e,t){function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}e.exports=n},function(e,t,n){var r=n(52),o=n(2),u=Object.prototype,i=u.hasOwnProperty,c=u.propertyIsEnumerable,a=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!c.call(e,"callee")};e.exports=a},function(e,t,n){function r(e){return u(e)&&o(e)==i}var o=n(1),u=n(2),i="[object Arguments]";e.exports=r},function(e,t,n){(function(e){var r=n(4),o=n(54),u="object"==typeof t&&t&&!t.nodeType&&t,i=u&&"object"==typeof e&&e&&!e.nodeType&&e,c=i&&i.exports===u,a=c?r.Buffer:void 0,f=a?a.isBuffer:void 0,l=f||o;e.exports=l}).call(t,n(16)(e))},function(e,t){function n(){return!1}e.exports=n},function(e,t,n){var r=n(56),o=n(57),u=n(58),i=u&&u.isTypedArray,c=i?o(i):r;e.exports=c},function(e,t,n){function r(e){return i(e)&&u(e.length)&&!!c[o(e)]}var o=n(1),u=n(14),i=n(2),c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c["[object Arguments]"]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c["[object Map]"]=c["[object Number]"]=c["[object Object]"]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1,e.exports=r},function(e,t){function n(e){return function(t){return e(t)}}e.exports=n},function(e,t,n){(function(e){var r=n(6),o="object"==typeof t&&t&&!t.nodeType&&t,u=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=u&&u.exports===o,c=i&&r.process,a=function(){try{var e=u&&u.require&&u.require("util").types;return e||c&&c.binding&&c.binding("util")}catch(e){}}();e.exports=a}).call(t,n(16)(e))},function(e,t,n){function r(e){var t,n,r;if(!o(e))return i(e);t=u(e),n=[];for(r in e)("constructor"!=r||!t&&a.call(e,r))&&n.push(r);return n}var o=n(3),u=n(60),i=n(61),c=Object.prototype,a=c.hasOwnProperty;e.exports=r},function(e,t){function n(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}var r=Object.prototype;e.exports=n},function(e,t){function n(e){var t,n=[];if(null!=e)for(t in Object(e))n.push(t);return n}e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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)}var c,a,f,l,s,p;Object.defineProperty(t,"__esModule",{value:!0}),c=function(){function e(e,t){var n,r;for(n=0;n<t.length;n++)r=t[n],r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(9),f=r(a),l=n(10),s=r(l),p=function(e){function t(){return o(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),c(t,[{key:"render",value:function(){var e=this.props,t=e.loading,n=e.text;return f.default.createElement("div",{style:{display:t?"block":"none",lineHeight:"44px",textAlign:"center"}},n)}}]),t}(f.default.Component),p.propTypes={loading:s.default.bool.isRequired,text:s.default.node},p.defaultProps={text:"loading..."},t.default=p}])});

@@ -341,3 +341,3 @@ 'use strict';

product: _propTypes2.default.oneOf(['popup', 'float', 'custom', 'bind']),
lang: _propTypes2.default.oneOf(['zh-cn', 'en']),
lang: _propTypes2.default.oneOf(['zh-cn', 'zh-hk', 'zh-tw', 'en', 'ja', 'ko', 'ru', 'ar', 'es', 'pt-pt', 'fr', 'de']),
protocol: _propTypes2.default.oneOf(['http://', 'https://']),

@@ -344,0 +344,0 @@ area: _propTypes2.default.string,

{
"name": "react-geetest-captcha",
"version": "1.0.2",
"version": "1.0.3",
"description": "A react.js CAPTCHA for GEETEST.com",

@@ -5,0 +5,0 @@ "browserslist": [

@@ -21,3 +21,3 @@

- [`product?: 'popup' | 'float' | 'custom' | 'bind'`](#product-popup--float--custom--bind)
- [`lang?: 'zh-cn' | 'en'`](#lang-zh-cn--en)
- [`lang?: 'zh-cn'|'zh-hk'|'zh-tw'|'en'|'ja'|'ko'|'ru'|'ar'|'es'|'pt-pt'|'fr'|'de'`](#lang-zh-cn--en)
- [`protocol?: 'http://' | 'https://'`](#protocol-http--https)

@@ -186,3 +186,3 @@ - [`area?: string`](#area-string)

##### `lang?: 'zh-cn' | 'en'`
##### `lang?: 'zh-cn' | 'zh-hk' | 'zh-tw' | 'en' | 'ja' | 'ko' | 'ru' | 'ar' | 'es' | 'pt-pt' | 'fr' | 'de'`

@@ -189,0 +189,0 @@ ##### `protocol?: 'http://' | 'https://'`

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc