this.SDP=this.SDP||{},this.SDP.UC=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=218)}([function(e,t,n){"use strict";n.d(t,"h",(function(){return d})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return f})),n.d(t,"g",(function(){return h})),n.d(t,"b",(function(){return l})),n.d(t,"f",(function(){return g})),n.d(t,"a",(function(){return y}));var r=n(19),o=n.n(r),i=n(2),a=n.n(i),s=(n(44),n(101),n(30),n(103),n(58),n(104),n(7)),c=(n(20),n(4)),u=n.n(c);function d(e,t){return e+="",a.a.DES.encrypt(e,a.a.enc.Utf8.parse(t),{mode:a.a.mode.ECB,padding:a.a.pad.Pkcs7}).toString()}function p(e,t){if(!(e+=""))return e;var n=a.a.DES.decrypt({ciphertext:a.a.enc.Base64.parse(e)},a.a.enc.Utf8.parse(t),{mode:a.a.mode.ECB,padding:a.a.pad.Pkcs7});return""===n.toString(a.a.enc.Utf8)?null:n.toString(a.a.enc.Utf8)}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;try{var n=e.account_id,r=e.user_id,o=e.mac_key;n&&isNaN(n)&&(e.account_id=p(n,t)),r&&isNaN(r)&&(e.user_id=p(r,t)),o&&(e.mac_key=p(o,t))}catch(e){s.a.warn("decrypt token fail: ",e)}return e}function h(e,t){"object"===o()(e)?e=JSON.stringify(e):e+="";var n=u()(t).toString().substring(8,24),r=a.a.enc.Utf8.parse(n);return a.a.AES.encrypt(e,r,{mode:a.a.mode.ECB,padding:a.a.pad.Pkcs7}).toString()}function l(e,t){if(!(e+=""))return e;var n=u()(t).toString().substring(8,24),r=a.a.enc.Utf8.parse(n),o=a.a.AES.decrypt(e,r,{mode:a.a.mode.ECB,padding:a.a.pad.Pkcs7});return""===o.toString(a.a.enc.Utf8)?null:o.toString(a.a.enc.Utf8)}function g(e){if(!e||0===e.trim().length)return e;var t=e.trim(),n=t.length,r=Math.ceil(1*n/3),o=Math.floor(1*n/3);return y(t,r,o,n-r-o)}function y(e,t,n,r){if(!e||0===e.trim().length||t<0||n<0||r<0||t+n>e.length)return e;var o=e.trim(),i=o.length,a=t-1,s=i-n,c="";a>=0&&a<i&&(c+=o.substring(0,t));for(var u=0;u<r;u++)c+="*";return s>=0&&s<i&&(c+=o.substring(s)),c}t.e=a.a},function(e,t){e.exports=function(e,t,n,r,o){var i={};return Object.keys(r).forEach((function(e){i[e]=r[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r;e.exports=(r=r||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},o=r.lib={},i=o.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=o.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var i=0;i<o;i++){var a=n[i>>>2]>>>24-i%4*8&255;t[r+i>>>2]|=a<<24-(r+i)%4*8}else for(i=0;i<o;i+=4)t[r+i>>>2]=n[i>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=i.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],o=function(t){t=t;var n=987654321,r=4294967295;return function(){var o=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return o/=4294967296,(o+=.5)*(e.random()>.5?1:-1)}},i=0;i<t;i+=4){var s=o(4294967296*(n||e.random()));n=987654071*s(),r.push(4294967296*s()|0)}return new a.init(r,t)}}),s=r.enc={},c=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},u=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},d=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},p=o.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,o=n.sigBytes,i=this.blockSize,s=o/(4*i),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*i,u=e.min(4*c,o);if(c){for(var d=0;d<c;d+=i)this._doProcessBlock(r,d);var p=r.splice(0,c);n.sigBytes-=u}return new a.init(p,u)},clone:function(){var e=i.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),f=(o.Hasher=p.extend({cfg:i.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new f.HMAC.init(e,n).finalize(t)}}}),r.algo={});return r}(Math),r)},function(e,t,n){var r=n(89),o=n(90),i=n(91),a=n(93);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";function r(e){for(var t="",n=0;n<=3;n++)t+="0123456789abcdef".charAt(e>>8*n+4&15)+"0123456789abcdef".charAt(e>>8*n&15);return t}function o(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function i(e,t,n,r,i,a){return o((s=o(o(t,e),o(r,a)))<<(c=i)|s>>>32-c,n);var s,c}function a(e,t,n,r,o,a,s){return i(t&n|~t&r,e,t,o,a,s)}function s(e,t,n,r,o,a,s){return i(t&r|n&~r,e,t,o,a,s)}function c(e,t,n,r,o,a,s){return i(t^n^r,e,t,o,a,s)}function u(e,t,n,r,o,a,s){return i(n^(t|~r),e,t,o,a,s)}function d(e){for(var t=function(e){var t,n=1+(e.length+8>>6),r=new Array(16*n);for(t=0;t<16*n;t++)r[t]=0;for(t=0;t<e.length;t++)r[t>>2]|=e.charCodeAt(t)<<t%4*8;return r[t>>2]|=128<<t%4*8,r[16*n-2]=8*e.length,r}(e),n=1732584193,i=-271733879,d=-1732584194,p=271733878,f=0;f<t.length;f+=16){var h=n,l=i,g=d,y=p;n=a(n,i,d,p,t[f+0],7,-680876936),p=a(p,n,i,d,t[f+1],12,-389564586),d=a(d,p,n,i,t[f+2],17,606105819),i=a(i,d,p,n,t[f+3],22,-1044525330),n=a(n,i,d,p,t[f+4],7,-176418897),p=a(p,n,i,d,t[f+5],12,1200080426),d=a(d,p,n,i,t[f+6],17,-1473231341),i=a(i,d,p,n,t[f+7],22,-45705983),n=a(n,i,d,p,t[f+8],7,1770035416),p=a(p,n,i,d,t[f+9],12,-1958414417),d=a(d,p,n,i,t[f+10],17,-42063),i=a(i,d,p,n,t[f+11],22,-1990404162),n=a(n,i,d,p,t[f+12],7,1804603682),p=a(p,n,i,d,t[f+13],12,-40341101),d=a(d,p,n,i,t[f+14],17,-1502002290),n=s(n,i=a(i,d,p,n,t[f+15],22,1236535329),d,p,t[f+1],5,-165796510),p=s(p,n,i,d,t[f+6],9,-1069501632),d=s(d,p,n,i,t[f+11],14,643717713),i=s(i,d,p,n,t[f+0],20,-373897302),n=s(n,i,d,p,t[f+5],5,-701558691),p=s(p,n,i,d,t[f+10],9,38016083),d=s(d,p,n,i,t[f+15],14,-660478335),i=s(i,d,p,n,t[f+4],20,-405537848),n=s(n,i,d,p,t[f+9],5,568446438),p=s(p,n,i,d,t[f+14],9,-1019803690),d=s(d,p,n,i,t[f+3],14,-187363961),i=s(i,d,p,n,t[f+8],20,1163531501),n=s(n,i,d,p,t[f+13],5,-1444681467),p=s(p,n,i,d,t[f+2],9,-51403784),d=s(d,p,n,i,t[f+7],14,1735328473),n=c(n,i=s(i,d,p,n,t[f+12],20,-1926607734),d,p,t[f+5],4,-378558),p=c(p,n,i,d,t[f+8],11,-2022574463),d=c(d,p,n,i,t[f+11],16,1839030562),i=c(i,d,p,n,t[f+14],23,-35309556),n=c(n,i,d,p,t[f+1],4,-1530992060),p=c(p,n,i,d,t[f+4],11,1272893353),d=c(d,p,n,i,t[f+7],16,-155497632),i=c(i,d,p,n,t[f+10],23,-1094730640),n=c(n,i,d,p,t[f+13],4,681279174),p=c(p,n,i,d,t[f+0],11,-358537222),d=c(d,p,n,i,t[f+3],16,-722521979),i=c(i,d,p,n,t[f+6],23,76029189),n=c(n,i,d,p,t[f+9],4,-640364487),p=c(p,n,i,d,t[f+12],11,-421815835),d=c(d,p,n,i,t[f+15],16,530742520),n=u(n,i=c(i,d,p,n,t[f+2],23,-995338651),d,p,t[f+0],6,-198630844),p=u(p,n,i,d,t[f+7],10,1126891415),d=u(d,p,n,i,t[f+14],15,-1416354905),i=u(i,d,p,n,t[f+5],21,-57434055),n=u(n,i,d,p,t[f+12],6,1700485571),p=u(p,n,i,d,t[f+3],10,-1894986606),d=u(d,p,n,i,t[f+10],15,-1051523),i=u(i,d,p,n,t[f+1],21,-2054922799),n=u(n,i,d,p,t[f+8],6,1873313359),p=u(p,n,i,d,t[f+15],10,-30611744),d=u(d,p,n,i,t[f+6],15,-1560198380),i=u(i,d,p,n,t[f+13],21,1309151649),n=u(n,i,d,p,t[f+4],6,-145523070),p=u(p,n,i,d,t[f+11],10,-1120210379),d=u(d,p,n,i,t[f+2],15,718787259),i=u(i,d,p,n,t[f+9],21,-343485551),n=o(n,h),i=o(i,l),d=o(d,g),p=o(p,y)}return r(n)+r(i)+r(d)+r(p)}e.exports=function(e,t){return d(e+(t||""))}},function(e,t,n){"use strict";var r=n(7),o={"UCSDK/ENV_INVALID":"无效的环境变量","UCSDK/MODE_NOT_SUPPORT":"当前模式不支持","UCSDK/NOT_LOGIN":"用户未登录","UCSDK/AUTH_NOT_MATCH":"AUTH 信息匹配不正确","UCSDK/SESSION_ERROR":"太长时间未操作，请重新开始","UCSDK/ARGUMENT_ERROR":"参数错误","UCSDK/SERVER_ERROR":"服务端错误","UCSDK/CLEAR_TOKEN":"当前token被清除"};function i(e,t){t=t||o[e],this.name="UCError",this.code=e,this.message=t,r.a.error(this.code,this.message),this.stack=(new Error).stack}i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,t.a=i},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"g",(function(){return s})),n.d(t,"f",(function(){return c})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return u}));var r={protocol:"https",href:""},o="",i={},a={},s=1,c=1,u={};try{"undefined"!=typeof window?(r=window.location,o=window.location.origin||window.location.protocol+"//"+window.location.hostname+(window.location.port||""),i=window.console,window.location.protocol||"https",a=window,u=window.navigator,s=window.screen&&window.screen.width,c=window.screen&&window.screen.height):void 0!==e?(i=e.console,a=e):"undefined"!=typeof self?(i=self.console,a=self):i=console}catch(e){throw new Error(e)}}).call(this,n(54))},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));for(var r=n(6),o=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeline","timelineEnd","timeStamp","trace","warn"],i=o.length,a=null,s=function(){};i--;)a=o[i],r.a[a]||(r.a[a]=s);var c={log:3,info:2,warn:1,error:0,default:-1},u=function(){function e(){}return e.setLevel=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";e.level=c[t]},e.log=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e._addLog.apply(e,["log"].concat(n))},e.info=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e._addLog.apply(e,["info"].concat(n))},e.warn=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e._addLog.apply(e,["warn"].concat(n))},e.error=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e._addLog.apply(e,["error"].concat(n))},e._addLog=function(t){if(e.level>=c[t]){for(var n=e.console[t],r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];"function"==typeof n.apply?n.apply(e.console,o):n(o)}},e}();u.level=1,u.console=r.a},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return l})),n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return y})),n.d(t,"c",(function(){return v}));var r=n(19),o=n.n(r),i=n(23),a=n.n(i),s=n(18),c=n.n(s),u=n(0),d=n(22),p=n.n(d);function f(e){var t={};return e.replace(/(\?|&)([^=]+)=([^&#]+)/g,(function(e,n,r,o){t[r]=o})),t}function h(e){if(!a()(e))return e;var t={};return Object.keys(e).forEach((function(n){t[n.toLowerCase()]=e[n]})),t}function l(e){return e instanceof Array?(e.forEach((function(t){e[t]=l(e[t])})),e):e&&"object"===o()(e)?(Object.keys(e).forEach((function(t){e[t]=l(e[t])})),e):"string"==typeof e?e.replace(/</g,"&lt;").replace(/>/g,"&gt;"):e}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=/(\/valid|actions\/refresh|actions\/clone|actions\/exchange|password\/|sms_code|email_code|\/sessions)/;return(!e||"get"!==e.toLowerCase())&&!n.test(t)}function y(e,t){return c()(e)?(e.country_code_alpha2&&"CN"!==e.country_code_alpha2?e.overseas_account=!0:e.overseas_account=!1,e.encrypted_fields?(Object.keys(e.encrypted_fields).forEach((function(n){var r=n.split("encrypted_")[1];e.encrypted_fields[n]&&(e.encrypted_fields[n]=Object(u.b)(e.encrypted_fields[n],t),e[r]&&(e[r]=e.encrypted_fields[n]))})),e):e):e}function v(e){if(!p()(e))return null;var t=null;if("undefined"!=typeof window){var n=window.location.host.split(".").slice(-2).join(".");t=e.find((function(e){return e.includes(n)}))}return t}},function(e,t,n){e.exports=n(94)},function(e,t,n){"use strict";var r;function o(e,t){for(t||(t=2),t-=(e=""+e).length;t--;)e="0"+e;return e}function i(e){return e%4==0&&e%100!=0||e%400==0}function a(e,t){return"function"==typeof e?e(t):e?e.constructor===Date?e:/^-?\d+$/.test(e)?new Date(+e):/^\d{4}(\-\d{2}){2}T\d{2}(:\d{2}){2}(\.\d{3})?[+-]\d{4}$/.test(e)?Date.fromISO(e.replace(/([+-]\d{2})(\d{2})/,"$1:$2")):/^\d{4}(\-\d{2}){2}T\d{2}(:\d{2}){2}(\.\d{3})?[+-]\d{2}:\d{2}$/.test(e)?Date.fromISO(e):/^\d{4}(\-\d{2}){2}T\d{2}(:\d{2}){2}(\.\d{3})?[zZ]$/.test(e)?Date.fromISO(e.replace(/[zZ]/,"+00:00")):function(e,t){t||(t="yyyy-MM-dd hh:mm:ss");var n,r,o,i,a,s,c,u=e.split(/\D+/),d=t.split(/[^yMdhmsiED]+/),p={};for(c=0;c<d.length;c++)p[d[c]]=parseInt(u[c],10);return n=p.yyyy||p.yy||1970,r=p.MM||p.M||0,o=0===p.dd||0===p.d?0:p.dd||p.d||1,i=p.hh||p.h||0,a=p.mm||p.m||0,s=p.ss||p.s||0,c=p.ii||p.i||0,new Date(n<1900?n+1900:n,r-1,o,i,a,s,c)}(e,t):void 0===e?new Date:new Date(0)}var s,c=function(e,t){this.date=a(e,t),this._zone=this.date.getTimezoneOffset(),this._offset=this._zone-(new Date).getTimezoneOffset(),this.pattern=t||"yyyy-MM-dd hh:mm:ss"};c.prototype={constructor:c,MMMM:function(){return r.MONTH_NAMES[this.M()-1]},MMM:function(){return r.MONTH_NAMES_ABBR[this.M()-1]},EEEE:function(){return r.DAY_NAMES[this.D()]},EEE:function(){return r.DAY_NAMES_ABBR[this.D()]},EE:function(){return""},E:function(){return""},D:function(){return this.date.getDay()},yyyy:function(){return this.date.getFullYear()},yy:function(){return this.date.getYear()},MM:function(){return o(this.M())},M:function(){return this.date.getMonth()+1},dd:function(){return o(this.d())},d:function(){return this.date.getDate()},hh:function(){return o(this.h())},h:function(){return this.date.getHours()},mm:function(){return o(this.m())},m:function(){return this.date.getMinutes()},ss:function(){return o(this.s())},s:function(){return this.date.getSeconds()},ii:function(){return o(this.i(),3)},i:function(){return this.date.getMilliseconds()},zone:function(){return this._zone},offset:function(){return this._offset},isLeap:function(){return i(this.yyyy())},add:function(e,t){switch(e){case"y":this.date.setFullYear(+this.yyyy()+t);break;case"M":this.date.setMonth(+this.M()+t-1);break;case"d":this.date.setDate(+this.d()+t);break;case"h":this.date.setHours(+this.h()+t);break;case"m":this.date.setMinutes(+this.m()+t);break;case"s":this.date.setSeconds(+this.s()+t);break;case"i":this.date.setMilliseconds(+this.i()+t)}return this},format:function(e){return this.toString(e)},toDate:function(){return this.date},toNumber:function(){return this.date.getTime()},toString:function(e){var t=this;return(e||this.pattern).replace(/y+|M+|d+|h+|m+|s+|i+|E+|D+/g,(function(e){return t[e]()}))}},(r=function(e,t){return new c(e,t)}).isLeap=i,r.MONTH_NAMES=["January","February","March","April","May","June","July","August","September","October","November","December"],r.MONTH_NAMES_ABBR=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],r.DAY_NAMES=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],r.DAY_NAMES_ABBR=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],s=new Date("1970-01-01T00:01:01+00:01"),Date.fromISO=s&&1e3==+s?function(e){return new Date(e)}:function(e){var t,n,r=/^(\d{4}\-\d\d\-\d\d([tT ][\d:\.]*)?)([zZ]|([+\-])(\d\d):(\d\d))?$/.exec(e)||[];if(r[1]){for(var o=0,i=(t=r[1].split(/\D/)).length;o<i;o++)t[o]=parseInt(t[o],10)||0;return t[1]-=1,(t=new Date(Date.UTC.apply(Date,t))).getDate()?(r[5]&&(n=60*parseInt(r[5],10),r[6]&&(n+=parseInt(r[6],10)),"+"===r[4]&&(n*=-1),n&&t.setUTCMinutes(t.getUTCMinutes()+n)),t):NaN}return NaN},e.exports=r},function(e,t,n){var r=n(88);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function s(e){n(a,o,i,s,c,"next",e)}function c(e){n(a,o,i,s,c,"throw",e)}s(void 0)}))}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=n(61),o=n(107),i=Object.prototype.toString;function a(e){return"[object Array]"===i.call(e)}function s(e){return null!==e&&"object"==typeof e}function c(e){return"[object Function]"===i.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:o,isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isUndefined:function(e){return void 0===e},isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:c,isStream:function(e){return s(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:u,merge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]=n}for(var r=0,o=arguments.length;r<o;r++)u(arguments[r],n);return t},extend:function(e,t,n){return u(t,(function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(98);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(55),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){var n=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"],r=function(e){for(var t=[];e>0;){var n=e%2;e=Math.floor(e/2),t.push(n)}return t.reverse(),t},o=function(e){for(var t=0,n=0,r=e.length-1;r>=0;--r){1===e[r]&&(t+=Math.pow(2,n)),++n}return t},i=function(e,t){for(var n=8-(e+1)+6*(e-1)-t.length;--n>=0;)t.unshift(0);for(var r=[],o=e;--o>=0;)r.push(1);r.push(0);for(var i=0,a=8-(e+1);i<a;++i)r.push(t[i]);for(var s=0;s<e-1;++s){r.push(1),r.push(0);for(var c=6;--c>=0;)r.push(t[i++])}return r};e.exports={encoder:function(e){for(var t=[],a=[],s=0,c=e.length;s<c;++s){var u=e.charCodeAt(s),d=r(u);if(u<128){for(var p=8-d.length;--p>=0;)d.unshift(0);a=a.concat(d)}else u>=128&&u<=2047?a=a.concat(i(2,d)):u>=2048&&u<=65535?a=a.concat(i(3,d)):u>=65536&&u<=2097151?a=a.concat(i(4,d)):u>=2097152&&u<=67108863?a=a.concat(i(5,d)):u>=4e6&&u<=2147483647&&(a=a.concat(i(6,d)))}var f=0;for(s=0,c=a.length;s<c;s+=6){var h=s+6-c;2===h?f=2:4===h&&(f=4);for(var l=f;--l>=0;)a.push(0);t.push(o(a.slice(s,s+6)))}var g="";for(s=0,c=t.length;s<c;++s)g+=n[t[s]];for(s=0,c=f/2;s<c;++s)g+="=";return g},decoder:function(e){var t=e.length,i=0;"="===e.charAt(t-1)&&("="===e.charAt(t-2)?(i=4,e=e.substring(0,t-2)):(i=2,e=e.substring(0,t-1)));for(var a=[],s=0,c=e.length;s<c;++s)for(var u=e.charAt(s),d=0,p=n.length;d<p;++d)if(u===n[d]){var f=r(d),h=f.length;if(6-h>0)for(var l=6-h;l>0;--l)f.unshift(0);a=a.concat(f);break}i>0&&(a=a.slice(0,a.length-i));var g=[],y=[];for(s=0,c=a.length;s<c;)if(0===a[s])g=g.concat(o(a.slice(s,s+8))),s+=8;else{for(var v=0;s<c&&1===a[s];)++v,++s;for(y=y.concat(a.slice(s+1,s+8-v)),s+=8-v;v>1;)y=y.concat(a.slice(s+2,s+8)),s+=8,--v;g=g.concat(o(y)),y=[]}return function(e){for(var t,n,r,o="",i=0,a=e.length;i<a;)switch((t=e[i++])>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:o+=String.fromCharCode(t);break;case 12:case 13:n=e[i++],o+=String.fromCharCode((31&t)<<6|63&n);break;case 14:n=e[i++],r=e[i++],o+=String.fromCharCode((15&t)<<12|(63&n)<<6|(63&r)<<0)}return o}(g)}}},function(e,t,n){var r=n(43),o=n(99),i=n(100),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(21),o=n(56),i=n(15),a=Function.prototype,s=Object.prototype,c=a.toString,u=s.hasOwnProperty,d=c.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==d}},function(e,t,n){var r=n(21),o=n(18);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){var r=n(129);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){var r=n(138),o=n(141);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.default=e.exports,e.exports.__esModule=!0,n.apply(this,arguments)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){e.exports=n(95)},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(67),a=n(68),s=n(124);e.exports={isXDomain:function(e){return!("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in new window.XMLHttpRequest||i(e))},convertRequest:function(e){var t=e.method,n=e.headers,i=e.params,a=void 0===i?{}:i,s=e.data,c=o(e,["method","headers","params","data"]);return Object.assign({},c,{method:"POST",params:r(r({},a),{$proxy:"body"}),data:{$method:t,$headers:n,$body:s}})},convertResponse:function(e){if(e.$status){var t=e.$status,n=e.$status_text,r=e.$headers,o=function(e){if(void 0===e)return e;try{return JSON.parse(e)}catch(t){return e}}(e.$body);return{data:o,status:t,statusText:n,headers:r,message:o&&o.message||n}}var i=e.data,a=i.$status,s=i.$status_text,c=i.$headers,u=i.$body,d=e.config,p=e.request,f=void 0!==u?JSON.parse(u):u;return{data:f,headers:c,status:a,statusText:s,message:f&&f.message||s,config:d,request:p,response:{config:d,data:f,headers:c,status:a,statusText:s,request:p}}},buildURL:a,xhrAdapter:s}},function(e,t,n){var r,o,i,a,s,c,u,d,p,f,h,l,g,y,v,_,m,b,w;e.exports=(r=n(2),n(45),void(r.lib.Cipher||(o=r,i=o.lib,a=i.Base,s=i.WordArray,c=i.BufferedBlockAlgorithm,u=o.enc,u.Utf8,d=u.Base64,p=o.algo.EvpKDF,f=i.Cipher=c.extend({cfg:a.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?w:m}return function(t){return{encrypt:function(n,r,o){return e(r).encrypt(t,n,r,o)},decrypt:function(n,r,o){return e(r).decrypt(t,n,r,o)}}}}()}),i.StreamCipher=f.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),h=o.mode={},l=i.BlockCipherMode=a.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),g=h.CBC=function(){var e=l.extend();function t(e,t,n){var r=this._iv;if(r){var o=r;this._iv=void 0}else o=this._prevBlock;for(var i=0;i<n;i++)e[t+i]^=o[i]}return e.Encryptor=e.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize;t.call(this,e,n,o),r.encryptBlock(e,n),this._prevBlock=e.slice(n,n+o)}}),e.Decryptor=e.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize,i=e.slice(n,n+o);r.decryptBlock(e,n),t.call(this,e,n,o),this._prevBlock=i}}),e}(),y=(o.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,o=r<<24|r<<16|r<<8|r,i=[],a=0;a<r;a+=4)i.push(o);var c=s.create(i,r);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},i.BlockCipher=f.extend({cfg:f.cfg.extend({mode:g,padding:y}),reset:function(){f.reset.call(this);var e=this.cfg,t=e.iv,n=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var r=n.createEncryptor;else r=n.createDecryptor,this._minBufferSize=1;this._mode&&this._mode.__creator==r?this._mode.init(this,t&&t.words):(this._mode=r.call(n,this,t&&t.words),this._mode.__creator=r)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else t=this._process(!0),e.unpad(t);return t},blockSize:4}),v=i.CipherParams=a.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),_=(o.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;if(n)var r=s.create([1398893684,1701076831]).concat(n).concat(t);else r=t;return r.toString(d)},parse:function(e){var t=d.parse(e),n=t.words;if(1398893684==n[0]&&1701076831==n[1]){var r=s.create(n.slice(2,4));n.splice(0,4),t.sigBytes-=16}return v.create({ciphertext:t,salt:r})}},m=i.SerializableCipher=a.extend({cfg:a.extend({format:_}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var o=e.createEncryptor(n,r),i=o.finalize(t),a=o.cfg;return v.create({ciphertext:i,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),b=(o.kdf={}).OpenSSL={execute:function(e,t,n,r){r||(r=s.random(8));var o=p.create({keySize:t+n}).compute(e,r),i=s.create(o.words.slice(t),4*n);return o.sigBytes=4*t,v.create({key:o,iv:i,salt:r})}},w=i.PasswordBasedCipher=m.extend({cfg:m.cfg.extend({kdf:b}),encrypt:function(e,t,n,r){var o=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize);r.iv=o.iv;var i=m.encrypt.call(this,e,t,o.key,r);return i.mixIn(o),i},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var o=r.kdf.execute(n,e.keySize,e.ivSize,t.salt);return r.iv=o.iv,m.decrypt.call(this,e,t,o.key,r)}}))))},function(e,t,n){"use strict";var r=n(123)(n(19)),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}e.exports={isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},forEach:function(e,t){if(null!=e)if("object"!==(0,r.default)(e)&&(e=[e]),i(e))for(var n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.call(null,e[a],a,e)},isArray:i,isDate:function(e){return"[object Date]"===o.call(e)},isObject:function(e){return null!==e&&"object"===(0,r.default)(e)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},isString:function(e){return"string"==typeof e},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t,n){var r=n(21),o=n(15);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(26)(Object,"create");e.exports=r},function(e,t,n){var r=n(146),o=n(147),i=n(148),a=n(149),s=n(150);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(36);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(152);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(24),o=n(77);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return h}));var r=n(16),o=n.n(r),i=n(27),a=n.n(i),s=n(82),c=n.n(s),u=n(29),d=n(9),p=n(5);function f(e,t){return e&&Object.prototype.hasOwnProperty.call(e,t)||!1}function h(t){var n=t.defaultHeaders,r=t.ucSession,i=t.adapter,s=t.commonStorage,h=!1,l=c()();void 0===i&&void 0===e&&(i=u.xhrAdapter),l.config({cache:!0,adapter:i,before:function(e){var t=e,r=t.method,o=t.url;return Object(d.a)(r,o)&&s.remove("sdk_cache"),e.headers=a()({},n,e.headers),(h=Object(u.isXDomain)(e.url))&&(e=Object(u.convertRequest)(e)),e},verify:function(e){return h?200===e.data.$status||201===e.data.$status:200===e.status||201===e.status},transform:function(e,t){return h?(e=Object(u.convertResponse)(e),t?e.data:e):e},error:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};["config","request","response"].every((function(t){return f(e,t)}))&&(e=e.response);var t=e.data||e||{},n=t.code,o=t.message;return n?"UC/INVALID_SESSION_ID"===n||"UC/SESSION_EXPIRED"===n?(r.removeSession(),Promise.reject(new p.a("UCSDK/SESSION_ERROR"))):Promise.reject(new p.a(n,o)):Promise.reject(new p.a("UCSDK/SERVER_ERROR",e))}});return["get","post","patch","put","delete","head"].forEach((function(e){var t=l[e];l[e]=function(e){var n=e.url,r=o()(e,["url"]);return t(n,r)}})),l}}).call(this,n(60))},function(e,t,n){var r=n(21),o=n(15);e.exports=function(e){return!0===e||!1===e||o(e)&&"[object Boolean]"==r(e)}},function(e,t,n){var r=n(172),o=n(202)((function(e,t,n){r(e,t,n)}));e.exports=o},function(e,t,n){var r=n(17).Symbol;e.exports=r},function(e,t,n){var r,o,i;e.exports=(i=n(2),o=(r=i).lib.WordArray,r.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],i=0;i<n;i+=3)for(var a=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;s<4&&i+.75*s<n;s++)o.push(r.charAt(a>>>6*(3-s)&63));var c=r.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var i=0;i<n.length;i++)r[n.charCodeAt(i)]=i}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return function(e,t,n){for(var r=[],i=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2,c=n[e.charCodeAt(a)]>>>6-a%4*2;r[i>>>2]|=(s|c)<<24-i%4*8,i++}return o.create(r,i)}(e,t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},i.enc.Base64)},function(e,t,n){var r,o,i,a,s,c,u,d;e.exports=(d=n(2),n(102),n(58),o=(r=d).lib,i=o.Base,a=o.WordArray,s=r.algo,c=s.MD5,u=s.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:c,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=n.hasher.create(),o=a.create(),i=o.words,s=n.keySize,c=n.iterations;i.length<s;){u&&r.update(u);var u=r.update(e).finalize(t);r.reset();for(var d=1;d<c;d++)u=r.finalize(u),r.reset();o.concat(u)}return o.sigBytes=4*s,o}}),r.EvpKDF=function(e,t,n){return u.create(n).compute(e,t)},d.EvpKDF)},function(e,t,n){"use strict";(function(t){var r=n(14),o=n(109),i={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,c={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t)&&(s=n(62)),s),transformRequest:[function(e,t){return o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(i)})),e.exports=c}).call(this,n(60))},function(e,t,n){var r=n(26)(n(17),"Map");e.exports=r},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t,n){var r=n(76);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=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){var r=n(189),o=n(15),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},function(e,t,n){(function(e){var r=n(17),o=n(191),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||o;e.exports=c}).call(this,n(50)(e))},function(e,t,n){var r=n(192),o=n(193),i=n(194),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(54))},function(e,t,n){var r=n(57)(Object.getPrototypeOf,Object);e.exports=r},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r,o,i,a;e.exports=(r=n(2),i=(o=r).lib.Base,a=o.enc.Utf8,void(o.algo.HMAC=i.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=a.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),i=this._iKey=t.clone(),s=o.words,c=i.words,u=0;u<n;u++)s[u]^=1549556828,c[u]^=909522486;o.sigBytes=i.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))},function(e,t,n){var r;e.exports=(r=n(2),function(e){var t=r,n=t.lib,o=n.WordArray,i=n.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=a.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,a=e[t+0],c=e[t+1],h=e[t+2],l=e[t+3],g=e[t+4],y=e[t+5],v=e[t+6],_=e[t+7],m=e[t+8],b=e[t+9],w=e[t+10],k=e[t+11],O=e[t+12],S=e[t+13],A=e[t+14],C=e[t+15],T=i[0],E=i[1],P=i[2],x=i[3];T=u(T,E,P,x,a,7,s[0]),x=u(x,T,E,P,c,12,s[1]),P=u(P,x,T,E,h,17,s[2]),E=u(E,P,x,T,l,22,s[3]),T=u(T,E,P,x,g,7,s[4]),x=u(x,T,E,P,y,12,s[5]),P=u(P,x,T,E,v,17,s[6]),E=u(E,P,x,T,_,22,s[7]),T=u(T,E,P,x,m,7,s[8]),x=u(x,T,E,P,b,12,s[9]),P=u(P,x,T,E,w,17,s[10]),E=u(E,P,x,T,k,22,s[11]),T=u(T,E,P,x,O,7,s[12]),x=u(x,T,E,P,S,12,s[13]),P=u(P,x,T,E,A,17,s[14]),T=d(T,E=u(E,P,x,T,C,22,s[15]),P,x,c,5,s[16]),x=d(x,T,E,P,v,9,s[17]),P=d(P,x,T,E,k,14,s[18]),E=d(E,P,x,T,a,20,s[19]),T=d(T,E,P,x,y,5,s[20]),x=d(x,T,E,P,w,9,s[21]),P=d(P,x,T,E,C,14,s[22]),E=d(E,P,x,T,g,20,s[23]),T=d(T,E,P,x,b,5,s[24]),x=d(x,T,E,P,A,9,s[25]),P=d(P,x,T,E,l,14,s[26]),E=d(E,P,x,T,m,20,s[27]),T=d(T,E,P,x,S,5,s[28]),x=d(x,T,E,P,h,9,s[29]),P=d(P,x,T,E,_,14,s[30]),T=p(T,E=d(E,P,x,T,O,20,s[31]),P,x,y,4,s[32]),x=p(x,T,E,P,m,11,s[33]),P=p(P,x,T,E,k,16,s[34]),E=p(E,P,x,T,A,23,s[35]),T=p(T,E,P,x,c,4,s[36]),x=p(x,T,E,P,g,11,s[37]),P=p(P,x,T,E,_,16,s[38]),E=p(E,P,x,T,w,23,s[39]),T=p(T,E,P,x,S,4,s[40]),x=p(x,T,E,P,a,11,s[41]),P=p(P,x,T,E,l,16,s[42]),E=p(E,P,x,T,v,23,s[43]),T=p(T,E,P,x,b,4,s[44]),x=p(x,T,E,P,O,11,s[45]),P=p(P,x,T,E,C,16,s[46]),T=f(T,E=p(E,P,x,T,h,23,s[47]),P,x,a,6,s[48]),x=f(x,T,E,P,_,10,s[49]),P=f(P,x,T,E,A,15,s[50]),E=f(E,P,x,T,y,21,s[51]),T=f(T,E,P,x,O,6,s[52]),x=f(x,T,E,P,l,10,s[53]),P=f(P,x,T,E,w,15,s[54]),E=f(E,P,x,T,c,21,s[55]),T=f(T,E,P,x,m,6,s[56]),x=f(x,T,E,P,C,10,s[57]),P=f(P,x,T,E,v,15,s[58]),E=f(E,P,x,T,S,21,s[59]),T=f(T,E,P,x,g,6,s[60]),x=f(x,T,E,P,k,10,s[61]),P=f(P,x,T,E,h,15,s[62]),E=f(E,P,x,T,b,21,s[63]),i[0]=i[0]+T|0,i[1]=i[1]+E|0,i[2]=i[2]+P|0,i[3]=i[3]+x|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32;var i=e.floor(r/4294967296),a=r;n[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,c=s.words,u=0;u<4;u++){var d=c[u];c[u]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8)}return s},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,n,r,o,i,a){var s=e+(t&n|~t&r)+o+a;return(s<<i|s>>>32-i)+t}function d(e,t,n,r,o,i,a){var s=e+(t&r|n&~r)+o+a;return(s<<i|s>>>32-i)+t}function p(e,t,n,r,o,i,a){var s=e+(t^n^r)+o+a;return(s<<i|s>>>32-i)+t}function f(e,t,n,r,o,i,a){var s=e+(n^(t|~r))+o+a;return(s<<i|s>>>32-i)+t}t.MD5=i._createHelper(c),t.HmacMD5=i._createHmacHelper(c)}(Math),r.MD5)},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,u=[],d=!1,p=-1;function f(){d&&c&&(d=!1,c.length?u=c.concat(u):p=-1,u.length&&h())}function h(){if(!d){var e=s(f);d=!0;for(var t=u.length;t;){for(c=u,u=[];++p<t;)c&&c[p].run();p=-1,t=u.length}c=null,d=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function l(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new l(e,t)),1!==u.length||d||s(h)},l.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(14),o=n(110),i=n(112),a=n(113),s=n(114),c=n(63),u="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(115);e.exports=function(e){return new Promise((function(t,d){var p=e.data,f=e.headers;r.isFormData(p)&&delete f["Content-Type"];var h=new XMLHttpRequest,l="onreadystatechange",g=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in h||s(e.url)||(h=new window.XDomainRequest,l="onload",g=!0,h.onprogress=function(){},h.ontimeout=function(){}),e.auth){var y=e.auth.username||"",v=e.auth.password||"";f.Authorization="Basic "+u(y+":"+v)}if(h.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h[l]=function(){if(h&&(4===h.readyState||g)&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?a(h.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?h.response:h.responseText,status:1223===h.status?204:h.status,statusText:1223===h.status?"No Content":h.statusText,headers:n,config:e,request:h};o(t,d,r),h=null}},h.onerror=function(){d(c("Network Error",e,null,h)),h=null},h.ontimeout=function(){d(c("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var _=n(64),m=(e.withCredentials||s(e.url))&&e.xsrfCookieName?_.read(e.xsrfCookieName):void 0;m&&(f[e.xsrfHeaderName]=m)}if("setRequestHeader"in h&&r.forEach(f,(function(e,t){void 0===p&&"content-type"===t.toLowerCase()?delete f[t]:h.setRequestHeader(t,e)})),e.withCredentials&&(h.withCredentials=!0),e.responseType)try{h.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),d(e),h=null)})),void 0===p&&(p=null),h.send(p)}))}},function(e,t,n){"use strict";var r=n(111);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},function(e,t,n){"use strict";var r=n(14);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";var r=n(31);e.exports=r.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");function n(n){var r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}var o=n(window.location.href);return function(e){var t=r.isString(e)?n(e):e;return t.protocol===o.protocol&&t.host===o.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(31);function o(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}return i&&(e+=(-1===e.indexOf("?")?"?":"&")+i),e}},function(e,t,n){"use strict";var r=n(126);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},function(e,t,n){var r=n(135),o=n(151),i=n(153),a=n(154),s=n(155);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(73);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(43),o=n(156),i=n(22),a=n(32),s=r?r.prototype:void 0,c=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t,n){var r=n(163),o=n(48),i=n(165);e.exports=function(e){return o(e)?i(e):r(e)}},function(e,t,n){var r=n(49),o=n(36);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},function(e,t,n){var r=n(26),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t){e.exports=function(e,t){if("__proto__"!=t)return e[t]}},function(e,t,n){var r=n(198),o=n(200),i=n(39);e.exports=function(e){return i(e)?r(e,!0):o(e)}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(e){return e}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.wdsProxySetting=t.init=void 0;var o=n(105),i={},a={url:"",method:"get",timeout:15e3,withCredentials:!1,whenToShowLoading:1500,before:void 0,shouldRetry:function(e){var t=e.retryCount,n=e.params;return!!n.retry&&t<n.retry},retry:0,shouldLimit:function(e){var t=e.status;return 429===t||503===t},loading:function(){console.warn("当你看到此提示时，说明存在服务端超过 1500 ms 的请求，并且没有进行全局 loading 配置，请参看 request.config 进行配置")},verify:function(){return!0},transform:void 0,success:void 0,error:function(e){return Promise.reject(e)},customError:!1,complete:void 0},s={},c=["whenToShowLoading","before","loading","verify","transform","success","error","customError","complete"];function u(e){return"function"==typeof e}function d(e){var t=e.split(/\/+/),n=t[0],r=t.slice(1),o=r.length?r.join("/"):"";return/^https?:/.test(n)||/^\/\//.test(e)?n+"//"+o:n+"/"+o}function p(e){return e.replace(/^\s+|\s+$/g,"")}function f(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",r=0;r<e.length;r++){var o=e[r];o&&(o=p(o)),o&&("/"===o[0]||/^https?:/.test(o)?n+=o:n+="/"+o)}return n}function h(e,t,n){var r,o=t;return o=n.transform?n.transform.call(e,o,!1):t.response?t.response:{data:t.data,status:400},!0===n.customError?r=Promise.reject(o):n.error&&(r=n.error.call(e,o))||(r=new Promise((function(){}))),{result:r,error:o}}var l=0,g=function(){function e(e,t){this.retryCount=0,this.instance=e,this.name=t.name,this.setting=t,Object.assign({name:t.name,prefix:t.prefix?t.prefix.replace(/^\/+/,"/"):"",url:t.url||""})}return e.prototype.request=function(e){var t=this,n=r({},e);c.forEach((function(n){u(e[n])&&(e[n]=e[n].bind(t))}));var o=this.setting.prefix||"";if(e.url=f(o,e.url),this.setting.wds||(e.url=f(this.setting.url,e.url)),e.url=d(e.url),e=Object.assign({},a,this.setting,s[this.setting.name],e),this.params=e,void 0!==i[this.name])return h(this,i[this.name].error,e).result;var p=!0;if(e.before&&(p=e.before.call(this,e)),!1!==p){"object"==typeof p&&(this.params=p);var l=setTimeout((function(){e.loading&&e.loading.call(t)}),e.whenToShowLoading),g=function(){l&&clearTimeout(l)},y={};return Object.keys(this.params).forEach((function(e){-1===c.indexOf(e)&&(y[e]=t.params[e])})),this.instance(y).then((function(n){g();var r=!0,o=n.data;if(e.verify&&(r=!1!==e.verify(n)),r)return e.transform&&(o=e.transform.call(t,o,!0)),e.success&&e.success.call(t,o),e.complete&&e.complete.call(t,o),Promise.resolve(o);throw n})).catch((function(r){try{if(g(),e.shouldLimit&&!0===e.shouldLimit({status:r.response.status,error:r}))i[t.name]={status:r.response.status,error:r};else if(e.shouldRetry&&!0===e.shouldRetry.call(t,{retryCount:t.retryCount,status:r.response.status,params:y,error:r})&&t.retryCount<5)return t.retryCount+=1,t.request(n);var o=h(t,r,e),a=o.result,s=o.error;return e.complete&&e.complete.call(t,s),a}catch(e){throw g(),r}}))}return new Promise((function(){}))},e}(),y=function(e){var t=o.default.create();e||(e={}),e.prefix&&(e.prefix=e.prefix.replace(/^\/+/,"/"));var n=Object.assign({name:"request_"+ ++l+"_"+Math.ceil(1e4*Math.random()),url:"",prefix:""},e),r=n.name;return{setting:n,config:function(e){if("__global__"===r)for(var t in e)a[t]=e[t];else s[r]=Object.assign({},s[r],e)},request:function(e){return new g(t,n).request(e)},get:function(e,o){var i=new g(t,n),c=Object.assign({},o,{url:e,method:"get"}),u=!1;return o&&!0===o.cache&&(u=!0),u||"__global__"!==r&&s[r]&&!0===s[r].cache&&(u=!0),u||a&&!0===a.cache&&(u=!0),u||(c.params=Object.assign({},c.params,{_r:Date.now()})),i.request(c)},post:function(e,r){var o=new g(t,n),i=Object.assign({},r,{url:e,method:"post"});return o.request(i)},patch:function(e,r){var o=new g(t,n),i=Object.assign({},r,{url:e,method:"patch"});return o.request(i)},put:function(e,r){var o=new g(t,n),i=Object.assign({},r,{url:e,method:"put"});return o.request(i)},delete:function(e,r){var o=new g(t,n),i=Object.assign({},r,{url:e,method:"delete"});return o.request(i)},head:function(e,r){var o=new g(t,n),i=Object.assign({},r,{url:e,method:"head"});return o.request(i)}}},v=!1;function _(e,t){v?console.warn("request.init should be called only once time"):v=!0;var n=t||{},o=n.env,i=void 0===o?"":o,a=n.wds,s=void 0!==a&&a,c=n.defaultEnv,u=void 0===c?"defaults":c;return Object.keys(e).forEach((function(t){if(y.hasOwnProperty(t))throw new Error(t+" 不能作为请求命名");var n,o=e[t];n=s&&o.wds?r(r({},o.wds),{env:"wds",name:t,wds:!0,prefix:d("/"+t+"_wds/"+(o.wds.prefix||""))}):o[i]?Object.assign({},o[i],{name:t,env:i}):Object.assign({},o[u],{name:t,env:u}),y[t]=y(n)})),y}function m(e,t){var n={};return Object.keys(e).forEach((function(r){var o,i=e[r].wds;if(i){var a="/"+r+"_wds";t&&Object.keys(t).forEach((function(e){u(t[e])&&(t[e]=t[e].bind(i))})),n[a]=Object.assign({target:i.url,changeOrigin:!0,secure:!1,pathRewrite:(o={},o["^"+a]="",o)},t)}})),n}t.init=_,t.wdsProxySetting=m;var b=y({name:"__global__"});Object.keys(b).forEach((function(e){b.hasOwnProperty(e)&&"function"==typeof b[e]&&(y[e]=b[e])})),y.init=_,y.wdsProxySetting=m,t.default=y},function(e,t,n){var r=n(21),o=n(15);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==r(e)}},function(e,t,n){var r=n(21),o=n(22),i=n(15);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},function(e,t,n){var r=n(159),o=n(74),i=n(169),a=n(72);e.exports=function(e,t,n){e=a(e);var s=(t=i(t))?o(e):0;return t&&s<t?e+r(t-s,n):e}},function(e,t,n){var r=n(211),o=n(213),i=n(51),a=n(22),s=n(39),c=n(52),u=n(38),d=n(53),p=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||c(e)||d(e)||i(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!r(e).length;for(var n in e)if(p.call(e,n))return!1;return!0}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,n(t,r)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(92);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new O(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return A()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=b(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function p(){}function f(){}function h(){}var l={};l[o]=function(){return this};var g=Object.getPrototypeOf,y=g&&g(g(S([])));y&&y!==t&&n.call(y,o)&&(l=y);var v=h.prototype=p.prototype=Object.create(l);function _(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function m(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,s){var c=u(e[o],e,i);if("throw"!==c.type){var d=c.arg,p=d.value;return p&&"object"==typeof p&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(p).then((function(e){d.value=e,a(d)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function b(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,b(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:A}}function A(){return{value:void 0,done:!0}}return f.prototype=v.constructor=h,h.constructor=f,f.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},_(m.prototype),m.prototype[i]=function(){return this},e.AsyncIterator=m,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new m(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(v),s(v,a,"Generator"),v[o]=function(){return this},v.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=S,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){var r=n(96);t.Parser=r;var o=new r;t.parse=o.parse,t.complete=o.complete,t.format=o.format},function(e,t,n){var r=n(97);function o(e){return null!=e&&""!==e}function i(e){return null!=e?e:""}function a(e,t){return null!=e?t+e:""}function s(e,t){return null!=e?e+t:""}function c(e){this.options=e}c.prototype.parse=function(e,t){return!0===t?r(e,"strict"):r(e)},c.prototype.complete=function(e){return"string"==typeof e&&(e=this.parse(e)),o(e.userInfo)||!o(e.user)&&!o(e.password)||(e.userInfo=i(e.user)+a(e.password,":")),!o(e.authority)&&(o(e.userInfo)||o(e.host)||o(e.port))&&(e.authority=s(e.userInfo,"@")+i(e.host)+a(e.port,":")),!o(e.query)&&o(e.queryKey)&&(e.query=function(e){var t,n,r,o,i=[],a=[];for(t in e){for(n=0,r=i.length;n<r&&!(i[n]>=t);n++);i.splice(n,0,t)}for(n=0,r=i.length;n<r;n++)o=i[n],a.push(o+"="+e[o]);if(0!==a.length)return a.join("&")}(e.queryKey)),o(e.relative)||!o(e.directory)&&!o(e.file)||(e.relative=i(e.directory)+i(e.file)),!o(e.relative)&&(o(e.path)||o(e.query)||o(e.anchor))&&(e.relative=i(e.path)+a(e.query,"?")+a(e.anchor,"#")),e},c.prototype.format=function(e){return s((e=this.complete(e)).protocol,":").toLowerCase()+a(e.authority,"//")+i(e.relative)},e.exports=c},function(e,t){function n(e,t){var r=n.options;void 0===t&&(t=r.strictMode?"strict":"loose");for(var o=r.parser[t].exec(e),i={},a=14;a--;)i[r.key[a]]=o[a]||"";return i[r.q.name]={},i[r.key[12]].replace(r.q.parser,(function(e,t,n){t&&(void 0===i[r.q.name][t]?i[r.q.name][t]=n:"[object Array]"==typeof i[r.q.name][t]?i[r.q.name][t].push(n):"string"==typeof i[r.q.name][t]&&(i[r.q.name][t]=[i[r.q.name][t],n]))})),i}n.options={strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},e.exports=n},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(43),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r;e.exports=(r=n(2),function(e){var t=r,n=t.lib,o=n.WordArray,i=n.Hasher,a=t.algo,s=[],c=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,o=0;o<64;)t(r)&&(o<8&&(s[o]=n(e.pow(r,.5))),c[o]=n(e.pow(r,1/3)),o++),r++}();var u=[],d=a.SHA256=i.extend({_doReset:function(){this._hash=new o.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],d=n[5],p=n[6],f=n[7],h=0;h<64;h++){if(h<16)u[h]=0|e[t+h];else{var l=u[h-15],g=(l<<25|l>>>7)^(l<<14|l>>>18)^l>>>3,y=u[h-2],v=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;u[h]=g+u[h-7]+v+u[h-16]}var _=r&o^r&i^o&i,m=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),b=f+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&d^~s&p)+c[h]+u[h];f=p,p=d,d=s,s=a+b|0,a=i,i=o,o=r,r=b+(m+_)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+d|0,n[6]=n[6]+p|0,n[7]=n[7]+f|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=e.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(d),t.HmacSHA256=i._createHmacHelper(d)}(Math),r.SHA256)},function(e,t,n){var r,o,i,a,s,c,u,d;e.exports=(d=n(2),o=(r=d).lib,i=o.WordArray,a=o.Hasher,s=r.algo,c=[],u=s.SHA1=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],u=0;u<80;u++){if(u<16)c[u]=0|e[t+u];else{var d=c[u-3]^c[u-8]^c[u-14]^c[u-16];c[u]=d<<1|d>>>31}var p=(r<<5|r>>>27)+s+c[u];p+=u<20?1518500249+(o&i|~o&a):u<40?1859775393+(o^i^a):u<60?(o&i|o&a|i&a)-1894007588:(o^i^a)-899497514,s=a,a=i,i=o<<30|o>>>2,o=r,r=p}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}}),r.SHA1=a._createHelper(u),r.HmacSHA1=a._createHmacHelper(u),d.SHA1)},function(e,t,n){var r;e.exports=(r=n(2),n(44),n(59),n(45),n(30),function(){var e=r,t=e.lib,n=t.WordArray,o=t.BlockCipher,i=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],d=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],p=i.DES=o.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=a[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var o=this._subKeys=[],i=0;i<16;i++){var u=o[i]=[],d=c[i];for(n=0;n<24;n++)u[n/6|0]|=t[(s[n]-1+d)%28]<<31-n%6,u[4+(n/6|0)]|=t[28+(s[n+24]-1+d)%28]<<31-n%6;for(u[0]=u[0]<<1|u[0]>>>31,n=1;n<7;n++)u[n]=u[n]>>>4*(n-1)+3;u[7]=u[7]<<5|u[7]>>>27}var p=this._invSubKeys=[];for(n=0;n<16;n++)p[n]=o[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],f.call(this,4,252645135),f.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),f.call(this,1,1431655765);for(var r=0;r<16;r++){for(var o=n[r],i=this._lBlock,a=this._rBlock,s=0,c=0;c<8;c++)s|=u[c][((a^o[c])&d[c])>>>0];this._lBlock=a,this._rBlock=i^s}var p=this._lBlock;this._lBlock=this._rBlock,this._rBlock=p,f.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function f(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function h(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}e.DES=o._createHelper(p);var l=i.TripleDES=o.extend({_doReset:function(){var e=this._key.words;this._des1=p.createEncryptor(n.create(e.slice(0,2))),this._des2=p.createEncryptor(n.create(e.slice(2,4))),this._des3=p.createEncryptor(n.create(e.slice(4,6)))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=o._createHelper(l)}(),r.TripleDES)},function(e,t,n){var r,o;e.exports=(o=n(2),n(30),o.mode.ECB=((r=o.lib.BlockCipherMode.extend()).Encryptor=r.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),r.Decryptor=r.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),r),o.mode.ECB)},function(e,t,n){e.exports=n(106)},function(e,t,n){"use strict";var r=n(14),o=n(61),i=n(108),a=n(46);function s(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var c=s(a);c.Axios=i,c.create=function(e){return s(r.merge(a,e))},c.Cancel=n(66),c.CancelToken=n(121),c.isCancel=n(65),c.all=function(e){return Promise.all(e)},c.spread=n(122),e.exports=c,e.exports.default=c},function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}
/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */
e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},function(e,t,n){"use strict";var r=n(46),o=n(14),i=n(116),a=n(117);function s(e){this.defaults=e,this.interceptors={request:new i,response:new i}}s.prototype.request=function(e){"string"==typeof e&&(e=o.merge({url:arguments[0]},arguments[1])),(e=o.merge(r,{method:"get"},this.defaults,e)).method=e.method.toLowerCase();var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},o.forEach(["delete","get","head","options"],(function(e){s.prototype[e]=function(t,n){return this.request(o.merge(n||{},{method:e,url:t}))}})),o.forEach(["post","put","patch"],(function(e){s.prototype[e]=function(t,n,r){return this.request(o.merge(r||{},{method:e,url:t,data:n}))}})),e.exports=s},function(e,t,n){"use strict";var r=n(14);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(63);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e}},function(e,t,n){"use strict";var r=n(14);function o(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}return i&&(e+=(-1===e.indexOf("?")?"?":"&")+i),e}},function(e,t,n){"use strict";var r=n(14),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},function(e,t,n){"use strict";var r=n(14);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";function r(){this.message="String contains an invalid character"}r.prototype=new Error,r.prototype.code=5,r.prototype.name="InvalidCharacterError",e.exports=function(e){for(var t,n,o=String(e),i="",a=0,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";o.charAt(0|a)||(s="=",a%1);i+=s.charAt(63&t>>8-a%1*8)){if((n=o.charCodeAt(a+=3/4))>255)throw new r;t=t<<8|n}return i}},function(e,t,n){"use strict";var r=n(14);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},function(e,t,n){"use strict";var r=n(14),o=n(118),i=n(65),a=n(46),s=n(119),c=n(120);function u(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return u(e),e.baseURL&&!s(e.url)&&(e.url=c(e.baseURL,e.url)),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return u(e),t.data=o(t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(u(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(14);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(66);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=n(31),o=n(125),i=n(68),a=n(127),s=n(67),c=n(69),u="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(128);e.exports=function(e){return new Promise((function(t,d){var p=e.data,f=e.headers;r.isFormData(p)&&delete f["Content-Type"];var h=new XMLHttpRequest,l="onreadystatechange",g=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in h||s(e.url)||(h=new window.XDomainRequest,l="onload",g=!0,h.onprogress=function(){},h.ontimeout=function(){}),e.auth){var y=e.auth.username||"",v=e.auth.password||"";f.Authorization="Basic "+u(y+":"+v)}if(h.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h[l]=function(){if(h&&(4===h.readyState||g)&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?a(h.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?h.response:h.responseText,status:1223===h.status?204:h.status,statusText:1223===h.status?"No Content":h.statusText,headers:n,config:e,request:h};o(t,d,r),h=null}},h.onerror=function(){d(c("Network Error",e,null,h)),h=null},h.ontimeout=function(){d(c("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var _=n(64),m=(e.withCredentials||s(e.url))&&e.xsrfCookieName?_.read(e.xsrfCookieName):void 0;m&&(f[e.xsrfHeaderName]=m)}if("setRequestHeader"in h&&r.forEach(f,(function(e,t){void 0===p&&"content-type"===t.toLowerCase()?delete f[t]:h.setRequestHeader(t,e)})),e.withCredentials&&(h.withCredentials=!0),e.responseType)try{h.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),d(e),h=null)})),void 0===p&&(p=null),h.send(p)}))}},function(e,t,n){"use strict";var r=n(69);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e}},function(e,t,n){"use strict";var r=n(31),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},function(e,t,n){"use strict";function r(){this.message="String contains an invalid character"}r.prototype=new Error,r.prototype.code=5,r.prototype.name="InvalidCharacterError",e.exports=function(e){for(var t,n,o=String(e),i="",a=0,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";o.charAt(0|a)||(s="=",a%1);i+=s.charAt(63&t>>8-a%1*8)){if((n=o.charCodeAt(a+=3/4))>255)throw new r;t=t<<8|n}return i}},function(e,t,n){var r=n(130),o=n(157);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},function(e,t,n){var r=n(22),o=n(131),i=n(132),a=n(72);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},function(e,t,n){var r=n(22),o=n(32),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},function(e,t,n){var r=n(133),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},function(e,t,n){var r=n(134);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(70);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},function(e,t,n){var r=n(136),o=n(34),i=n(47);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(e,t,n){var r=n(137),o=n(142),i=n(143),a=n(144),s=n(145);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(33);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t,n){var r=n(24),o=n(139),i=n(18),a=n(71),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,d=c.toString,p=u.hasOwnProperty,f=RegExp("^"+d.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?f:s).test(a(e))}},function(e,t,n){var r,o=n(140),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(17)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(33),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(33),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(33);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(35),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(35);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(35);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(35);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(37);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(37);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(37);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(37);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t,n){var r=n(32);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){var r;e.exports=(r=n(2),n(44),n(59),n(45),n(30),function(){var e=r,t=e.lib.BlockCipher,n=e.algo,o=[],i=[],a=[],s=[],c=[],u=[],d=[],p=[],f=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var l=r^r<<1^r<<2^r<<3^r<<4;l=l>>>8^255&l^99,o[n]=l,i[l]=n;var g=e[n],y=e[g],v=e[y],_=257*e[l]^16843008*l;a[n]=_<<24|_>>>8,s[n]=_<<16|_>>>16,c[n]=_<<8|_>>>24,u[n]=_,_=16843009*v^65537*y^257*g^16843008*n,d[l]=_<<24|_>>>8,p[l]=_<<16|_>>>16,f[l]=_<<8|_>>>24,h[l]=_,n?(n=g^e[e[e[v^g]]],r^=e[e[r]]):n=r=1}}();var l=[0,1,2,4,8,16,32,64,128,27,54],g=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),i=this._keySchedule=[],a=0;a<r;a++)if(a<n)i[a]=t[a];else{var s=i[a-1];a%n?n>6&&a%n==4&&(s=o[s>>>24]<<24|o[s>>>16&255]<<16|o[s>>>8&255]<<8|o[255&s]):(s=o[(s=s<<8|s>>>24)>>>24]<<24|o[s>>>16&255]<<16|o[s>>>8&255]<<8|o[255&s],s^=l[a/n|0]<<24),i[a]=i[a-n]^s}for(var c=this._invKeySchedule=[],u=0;u<r;u++)a=r-u,s=u%4?i[a]:i[a-4],c[u]=u<4||a<=4?s:d[o[s>>>24]]^p[o[s>>>16&255]]^f[o[s>>>8&255]]^h[o[255&s]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,u,o)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,d,p,f,h,i),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,o,i,a,s){for(var c=this._nRounds,u=e[t]^n[0],d=e[t+1]^n[1],p=e[t+2]^n[2],f=e[t+3]^n[3],h=4,l=1;l<c;l++){var g=r[u>>>24]^o[d>>>16&255]^i[p>>>8&255]^a[255&f]^n[h++],y=r[d>>>24]^o[p>>>16&255]^i[f>>>8&255]^a[255&u]^n[h++],v=r[p>>>24]^o[f>>>16&255]^i[u>>>8&255]^a[255&d]^n[h++],_=r[f>>>24]^o[u>>>16&255]^i[d>>>8&255]^a[255&p]^n[h++];u=g,d=y,p=v,f=_}g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[p>>>8&255]<<8|s[255&f])^n[h++],y=(s[d>>>24]<<24|s[p>>>16&255]<<16|s[f>>>8&255]<<8|s[255&u])^n[h++],v=(s[p>>>24]<<24|s[f>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[h++],_=(s[f>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&p])^n[h++],e[t]=g,e[t+1]=y,e[t+2]=v,e[t+3]=_},keySize:8});e.AES=t._createHelper(g)}(),r.AES)},function(e,t,n){var r=n(160),o=n(73),i=n(161),a=n(48),s=n(74),c=n(166),u=Math.ceil;e.exports=function(e,t){var n=(t=void 0===t?" ":o(t)).length;if(n<2)return n?r(t,e):t;var d=r(t,u(e/s(t)));return a(t)?i(c(d),0,e).join(""):d.slice(0,e)}},function(e,t){var n=Math.floor;e.exports=function(e,t){var r="";if(!e||t<1||t>9007199254740991)return r;do{t%2&&(r+=e),(t=n(t/2))&&(e+=e)}while(t);return r}},function(e,t,n){var r=n(162);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},function(e,t){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},function(e,t,n){var r=n(164)("length");e.exports=r},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+r+"|"+o+")"+"?",u="[\\ufe0e\\ufe0f]?"+c+("(?:\\u200d(?:"+[i,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+c+")*"),d="(?:"+[i+r+"?",r,a,s,n].join("|")+")",p=RegExp(o+"(?="+o+")|"+d+u,"g");e.exports=function(e){for(var t=p.lastIndex=0;p.test(e);)++t;return t}},function(e,t,n){var r=n(167),o=n(48),i=n(168);e.exports=function(e){return o(e)?i(e):r(e)}},function(e,t){e.exports=function(e){return e.split("")}},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+r+"|"+o+")"+"?",u="[\\ufe0e\\ufe0f]?"+c+("(?:\\u200d(?:"+[i,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+c+")*"),d="(?:"+[i+r+"?",r,a,s,n].join("|")+")",p=RegExp(o+"(?="+o+")|"+d+u,"g");e.exports=function(e){return e.match(p)||[]}},function(e,t,n){var r=n(170);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(171);e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(18),o=n(32),i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=s.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):a.test(e)?NaN:+e}},function(e,t,n){var r=n(173),o=n(75),i=n(179),a=n(181),s=n(18),c=n(79),u=n(78);e.exports=function e(t,n,d,p,f){t!==n&&i(n,(function(i,c){if(s(i))f||(f=new r),a(t,n,c,d,e,p,f);else{var h=p?p(u(t,c),i,c+"",t,n,f):void 0;void 0===h&&(h=i),o(t,c,h)}}),c)}},function(e,t,n){var r=n(34),o=n(174),i=n(175),a=n(176),s=n(177),c=n(178);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=c,e.exports=u},function(e,t,n){var r=n(34);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(34),o=n(47),i=n(70);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(180)();e.exports=r},function(e,t){e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++o];if(!1===n(i[c],c,i))break}return t}}},function(e,t,n){var r=n(75),o=n(182),i=n(183),a=n(186),s=n(187),c=n(51),u=n(22),d=n(190),p=n(52),f=n(24),h=n(18),l=n(23),g=n(53),y=n(78),v=n(195);e.exports=function(e,t,n,_,m,b,w){var k=y(e,n),O=y(t,n),S=w.get(O);if(S)r(e,n,S);else{var A=b?b(k,O,n+"",e,t,w):void 0,C=void 0===A;if(C){var T=u(O),E=!T&&p(O),P=!T&&!E&&g(O);A=O,T||E||P?u(k)?A=k:d(k)?A=a(k):E?(C=!1,A=o(O,!0)):P?(C=!1,A=i(O,!0)):A=[]:l(O)||c(O)?(A=k,c(k)?A=v(k):h(k)&&!f(k)||(A=s(O))):C=!1}C&&(w.set(O,A),m(A,O,_,b,w),w.delete(O)),r(e,n,A)}}},function(e,t,n){(function(e){var r=n(17),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(50)(e))},function(e,t,n){var r=n(184);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(185);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){var r=n(17).Uint8Array;e.exports=r},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(188),o=n(56),i=n(38);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},function(e,t,n){var r=n(18),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},function(e,t,n){var r=n(21),o=n(15);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},function(e,t,n){var r=n(39),o=n(15);e.exports=function(e){return o(e)&&r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(21),o=n(77),i=n(15),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(55),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(this,n(50)(e))},function(e,t,n){var r=n(196),o=n(79);e.exports=function(e){return r(e,o(e))}},function(e,t,n){var r=n(197),o=n(49);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,c=t.length;++s<c;){var u=t[s],d=i?i(n[u],e[u],u,n,e):void 0;void 0===d&&(d=e[u]),a?o(n,u,d):r(n,u,d)}return n}},function(e,t,n){var r=n(49),o=n(36),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(199),o=n(51),i=n(22),a=n(52),s=n(80),c=n(53),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),d=!n&&o(e),p=!n&&!d&&a(e),f=!n&&!d&&!p&&c(e),h=n||d||p||f,l=h?r(e.length,String):[],g=l.length;for(var y in e)!t&&!u.call(e,y)||h&&("length"==y||p&&("offset"==y||"parent"==y)||f&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,g))||l.push(y);return l}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(18),o=n(38),i=n(201),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){var r=n(203),o=n(210);e.exports=function(e){return r((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var c=n[r];c&&e(t,c,r,a)}return t}))}},function(e,t,n){var r=n(81),o=n(204),i=n(206);e.exports=function(e,t){return i(o(e,t,r),e+"")}},function(e,t,n){var r=n(205),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),c=Array(s);++a<s;)c[a]=i[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=i[a];return u[t]=n(c),r(e,this,u)}}},function(e,t){e.exports=function(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)}},function(e,t,n){var r=n(207),o=n(209)(r);e.exports=o},function(e,t,n){var r=n(208),o=n(76),i=n(81),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){var n=Date.now;e.exports=function(e){var t=0,r=0;return function(){var o=n(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(36),o=n(39),i=n(80),a=n(18);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},function(e,t,n){var r=n(38),o=n(212),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(57)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(214),o=n(47),i=n(215),a=n(216),s=n(217),c=n(21),u=n(71),d=u(r),p=u(o),f=u(i),h=u(a),l=u(s),g=c;(r&&"[object DataView]"!=g(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=g(new o)||i&&"[object Promise]"!=g(i.resolve())||a&&"[object Set]"!=g(new a)||s&&"[object WeakMap]"!=g(new s))&&(g=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case d:return"[object DataView]";case p:return"[object Map]";case f:return"[object Promise]";case h:return"[object Set]";case l:return"[object WeakMap]"}return t}),e.exports=g},function(e,t,n){var r=n(26)(n(17),"DataView");e.exports=r},function(e,t,n){var r=n(26)(n(17),"Promise");e.exports=r},function(e,t,n){var r=n(26)(n(17),"Set");e.exports=r},function(e,t,n){var r=n(26)(n(17),"WeakMap");e.exports=r},function(e,t,n){"use strict";n.r(t),n.d(t,"UC",(function(){return yr})),n.d(t,"UC2B",(function(){return ur})),n.d(t,"UC2C",(function(){return gr})),n.d(t,"UCUtil",(function(){return yt}));var r,o=n(12),i=n.n(o),a=n(13),s=n.n(a),c=n(3),u=n.n(c),d=n(8),p=n.n(d),f=n(1),h=n.n(f),l=n(10),g=n.n(l),y=n(20),v=n.n(y),_=n(4),m=n.n(_),b=n(28),w=n.n(b),k=n(16),O=n.n(k),S=n(27),A=n.n(S),C={DEVELOPMENT:"development",TEST:"test",PREPRODUCTION:"preproduction",PRODUCT:"product",AWSCALIFORNIA:"aws-california",HK:"hk",SNWJT:"snwjt",EDA:"eda",NCETXEDU:"ncet-xedu",EDACN:"edacn",EDASG:"edasg",ZLJS:"zljs",SDPSG:"sdpsg"},T=(r={},p()(r,C.DEVELOPMENT,{UC:"http://uc-gateway.dev.web.nd",SSO:"http://uc-sso.dev.web.nd"}),p()(r,C.TEST,{UC:"https://uc-gateway.debug.ndaeweb.com",SSO:"https://uc-sso.debug.ndaeweb.com"}),p()(r,C.PREPRODUCTION,{UC:"https://uc-gateway.beta.101.com",SSO:"https://uc-personal-beta.101.com",XSSO:"https://ysc-sso.ykt.eduyun.cn"}),p()(r,C.PRODUCT,{UC:"https://uc-gateway.sdp.101.com",SSO:"https://uc.101.com"}),p()(r,C.AWSCALIFORNIA,{UC:"https://uc-gateway.awsca.101.com",SSO:"https://uc-personal-web.awsca.101.com"}),p()(r,C.HK,{UC:"https://uc-gateway.hk.101.com",SSO:"https://uc-hk.101.com"}),p()(r,C.SNWJT,{UC:"https://uc-gateway.sneduyun.com.cn",SSO:"https://uc-personal-web.sneduyun.com.cn"}),p()(r,C.EDA,{UC:"https://uc-gateway.eda.101.com",SSO:"https://uc-sso.eda.101.com"}),p()(r,C.NCETXEDU,{UC:"https://uc-gateway.ykt.eduyun.cn",SSO:"https://sso.basic.smartedu.cn"}),p()(r,C.EDACN,{UC:"https://uc-gateway.edacn.101.com",SSO:"https://uc-sso.edacn.101.com"}),p()(r,C.EDASG,{UC:"https://uc-gateway.edasg.101.com",SSO:"https://uc-sso.edasg.101.com"}),p()(r,C.SDPSG,{UC:"https://uc-gateway.sdpsg.101.com",SSO:"https://uc-sso.sdpsg.101.com"}),p()(r,C.ZLJS,{UC:"http://uc-gateway.sle.bnu.edu.cn",SSO:"http://uc-sso.sle.bnu.edu.cn"}),r),E=n(5),P=n(23),x=n.n(P),j=n(6),D=0;function M(){}function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach((function(t){p()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var I={Accept:"application/json","Content-Type":"application/json"};function q(e){var t=e.url,n=e.headers,r=e.data,o=void 0===r?"{}":r,i=e.method,a=void 0===i?"GET":i,s=e.isProxy,c=void 0===s||s;(n=U(U({},I),n)).Host=function(e){var t=e.match(/^(?:https?:)?\/\/([^/]+)(\/.+)$/i);return{url:t&&t[2],host:t&&t[1]}}(t).host,null===o.org_name&&delete o.org_name;var u={$headers:n,$body:o,$method:a},d="$proxy=proxyhttp&bodys=".concat(encodeURIComponent(JSON.stringify(u)));return c&&(t+=(t.indexOf("?")>=0?"&":"?")+d),t=t.replace("?&","?"),new Promise((function(e,n){!function(e,t,n){"function"==typeof t&&(n=t,t={}),t||(t={});var r,o=t.prefix||"__jp",i=t.name||o+D++,a=t.param||"callback",s=null!=t.timeout?t.timeout:2e4,c=encodeURIComponent,u=document.getElementsByTagName("script")[0]||document.head,d=document.createElement("script");function p(){d.parentNode&&d.parentNode.removeChild(d),j.e[i]=M,r&&clearTimeout(r)}s&&(r=setTimeout((function(){p(),n&&n("UCSDK/TIMEOUT")}),s)),j.e[i]=function(e){p(),n&&n(null,e)},e=(e+=(~e.indexOf("?")?"&":"?")+a+"="+c(i)).replace("?&","?"),d.src=e,u.parentNode&&u.parentNode.insertBefore(d,u)}(t,{prefix:"nd_uc_sdk_".concat(+(new Date).getTime())},(function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t)return"string"==typeof t?void n(new E.a(t)):void n(t);var o=r.$status>=200&&r.$status<300||304===r.$status||L(r);if(o)if(void 0===r.$body&&(r.$body={}),x()(r.$body))e(r.$body);else try{e(JSON.parse(r.$body))}catch(e){n(new E.a("UCSDK/SERVER_ERROR"))}else if(!1===o&&x()(r.$body))n(r.$body);else try{n(JSON.parse(r.$body))}catch(e){n(new E.a("UCSDK/SERVER_ERROR"))}}))}))}function L(e){return"success"===e.code}var N=n(9);function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){p()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var z=n(40),H=n(24),K=n.n(H),F=n(7),V=C.TEST,$="£¬¡£fdjf,jkgfkl",W=function(e){var t=e.sdpAppId,n=e.env;return"ND_UC_AUTH-".concat(t,"&").concat(n,"&")},J="org",X="person",Z="guest",Y=/^\S+@\w+$/,Q="default",ee="appfactory",te="default",ne="cookie";function re(){var e={};return{setItem:function(t,n){e[t]=n||""},getItem:function(t){return t in e?e[t]:null},removeItem:function(t){delete e[t]},clear:function(){e={}}}}function oe(){return{setItem:function(e,t){var n=JSON.parse(t).expire,r="".concat(e,"=").concat(t,";path=/");n&&(r+=";expires=".concat(new Date(n).toGMTString())),document.cookie=r},getItem:function(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){var o=n[r].trim();if(0===o.indexOf(t))return o.substring(t.length,o.length)}return null},removeItem:function(e){this.setItem(e,JSON.stringify({value:null,expire:0}))},clear:function(){}}}var ie=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;if(this.prefix=e||"",this.customStorage=j.e.localStorage||re(),n===ne)return this.driver=oe(),void(-1!==t&&(this.expire=t));-1===t?this.driver=j.e.sessionStorage||re():(this.driver=this.customStorage||j.e.localStorage||re(),this.expire=t||0);var r=j.c.userAgent||"";this.isIE11=r.includes("Trident")&&r.includes("rv:11.0")}e.setStorage=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};K()(e.setItem)&&K()(e.getItem)&&K()(e.removeItem)&&K()(e.clear)||F.a.error("UC-SDK: Custom storage must have functions setItem getItem removeItem and clear"),this.customStorage=e};var t=e.prototype;return t._key=function(e){return this.prefix+e},t.set=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;try{var r={value:t};void 0===n&&(n=this.expire),n&&(r.expire=(new Date).getTime()+1e3*n),this.driver.setItem(this._key(e),JSON.stringify(r))}catch(t){F.a.error("UC-SDK: Failed to set ".concat(e," to storage"))}},t.get=function(e){try{this.isIE11&&this.driver.setItem("__compatible__",null);var t=this.driver.getItem(this._key(e));return t&&(t=JSON.parse(t)).expire&&t.expire<(new Date).getTime()&&(this.remove(e),t=null),t&&t.value}catch(t){return F.a.error("UC-SDK: Failed to get ".concat(e," from storage"),t),null}},t.remove=function(e){try{this.driver.removeItem(this._key(e))}catch(t){F.a.error("UC-SDK: Failed to remove ".concat(e," from the storage"),t)}},t.clear=function(){try{this.driver.clear()}catch(e){F.a.error("UC-SDK: Failed to clear the storage",e)}},e}(),ae=n(0);function se(e){for(var t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),n="",r=0;r<e;r++)n+=t[Math.ceil(35*Math.random())];return n}function ce(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET",n=arguments.length>2?arguments[2]:void 0,r=n.accessToken,o=n.macKey,i=n.diff,a=pe(i),s=de(e,a,t,o),c='MAC id="'.concat(r,'",nonce="').concat(a,'",mac="').concat(s,'"');return c}function ue(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=e.match('MAC id="([^"]*)",nonce="([^"]*)",mac="([^"]*)"'),r=e.match('request_uri="([^"]*)",host="([^"]*)"'),o=w.a.parse(t),i=n[1],a=n[2],s=n[3],c=r?r[1]:o.relative||"/",u=r?r[2]:o.authority;return{access_token:i,nonce:a,mac:s,request_uri:c,host:u}}function de(e,t,n,r){var o=w.a.parse(e),i=t+"\n"+n.toUpperCase()+"\n"+o.relative+"\n"+o.authority+"\n";return ae.e.HmacSHA256(i,r).toString(ae.e.enc.Base64)}function pe(e){return(new Date).getTime()+parseInt(e,10)+":"+se(8)}function fe(e){return new Date(e).getTime()+":"+se(8)}var he=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"],le=function(e){for(var t=new Array;e>0;){var n=e%2;e=Math.floor(e/2),t.push(n)}return t.reverse(),t},ge=function(e){for(var t=0,n=0,r=e.length-1;r>=0;--r){1==e[r]&&(t+=Math.pow(2,n)),++n}return t},ye=function(e,t){for(var n=8-(e+1)+6*(e-1)-t.length;--n>=0;)t.unshift(0);for(var r=[],o=e;--o>=0;)r.push(1);r.push(0);for(var i=0,a=8-(e+1);i<a;++i)r.push(t[i]);for(var s=0;s<e-1;++s){r.push(1),r.push(0);for(var c=6;--c>=0;)r.push(t[i++])}return r},ve={encoder:function(e){for(var t=[],n=[],r=0,o=e.length;r<o;++r){var i=e.charCodeAt(r),a=le(i);if(i<128){for(var s=8-a.length;--s>=0;)a.unshift(0);n=n.concat(a)}else i>=128&&i<=2047?n=n.concat(ye(2,a)):i>=2048&&i<=65535?n=n.concat(ye(3,a)):i>=65536&&i<=2097151?n=n.concat(ye(4,a)):i>=2097152&&i<=67108863?n=n.concat(ye(5,a)):i>=4e6&&i<=2147483647&&(n=n.concat(ye(6,a)))}var c=0;for(r=0,o=n.length;r<o;r+=6){var u=r+6-o;2==u?c=2:4==u&&(c=4);for(var d=c;--d>=0;)n.push(0);t.push(ge(n.slice(r,r+6)))}var p="";for(r=0,o=t.length;r<o;++r)p+=he[t[r]];for(r=0,o=c/2;r<o;++r)p+="=";return p},decoder:function(e){var t=e.length,n=0;"="==e.charAt(t-1)&&("="==e.charAt(t-2)?(n=4,e=e.substring(0,t-2)):(n=2,e=e.substring(0,t-1)));for(var r=[],o=0,i=e.length;o<i;++o)for(var a=e.charAt(o),s=0,c=he.length;s<c;++s)if(a==he[s]){var u=le(s),d=u.length;if(6-d>0)for(var p=6-d;p>0;--p)u.unshift(0);r=r.concat(u);break}n>0&&(r=r.slice(0,r.length-n));var f=[],h=[];for(o=0,i=r.length;o<i;)if(0==r[o])f=f.concat(ge(r.slice(o,o+8))),o+=8;else{for(var l=0;o<i&&1==r[o];)++l,++o;for(h=h.concat(r.slice(o+1,o+8-l)),o+=8-l;l>1;)h=h.concat(r.slice(o+2,o+8)),o+=8,--l;f=f.concat(ge(h)),h=[]}return f}};function _e(e){try{if("undefined"==typeof navigator)return"unknown";var t=navigator.platform,n=navigator.userAgent,r="",o="";return t.indexOf("Win")>-1?n.indexOf("Windows NT 5.0")>-1?r+="Win2000":n.indexOf("Windows NT 5.1")>-1?r+="WinXP":n.indexOf("Windows NT 5.2")>-1?r+="Win2003":n.indexOf("Windows NT 6.0")>-1?r+="WindowsVista":n.indexOf("Windows NT 6.1")>-1?r+="Win7":n.indexOf("Windows NT 6.2")>-1?r+="Win8":n.indexOf("Windows NT 6.3")>-1?r+="Win8.1":n.indexOf("Windows NT 6.4")>-1||n.indexOf("Windows NT 10.0")>-1?r+="Win10":r+="Other":t.indexOf("Mac")>-1?r+="Mac":t.indexOf("X11")>-1?r+="Unix":t.indexOf("Linux")>-1?r+="Linux":r+="Other",r+=e,/[Ff]irefox(\/\d+\.\d+)/.test(n)?r+=(o=/([Ff]irefox)\/(\d+\.\d+)/.exec(n))[1]+o[2]:/MSIE \d+\.\d+/.test(n)?r+=(o=/MS(IE) (\d+\.\d+)/.exec(n))[1]+o[2]:/[Cc]hrome\/\d+/.test(n)?r+=(o=/([Cc]hrome)\/(\d+)/.exec(n))[1]+o[2]:/[Vv]ersion\/\d+\.\d+\.\d+(\.\d)* *[Ss]afari/.test(n)?r+=(o=/[Vv]ersion\/(\d+\.\d+\.\d+)(\.\d)* *([Ss]afari)/.exec(n))[3]+o[1]:/[Oo]pera.+[Vv]ersion\/\d+\.\d+/.test(n)?r+=(o=/([Oo]pera).+[Vv]ersion\/(\d+)\.\d+/.exec(n))[1]+o[2]:r+="unknown",r.indexOf("IE")>-1?"windows_IE":r}catch(e){return F.a.warn("获取系统名和浏览器名失败",e),"unknown"}}function me(e){return ve.encoder(m()(e,$)).charAt(2)}var be=n(19),we=n.n(be),ke=new(function(){function e(){if("object"===we()(e.instance))return e.instance;e.instance=this}var t=e.prototype;return t.hasUC11=function(){var e=this;return new Promise((function(t,n){if("boolean"==typeof e._hasUC11)return t(e._hasUC11);j.e.Bridge.apisAvailable({entries:["sdp.uc1.1"],includeLazyInitialize:!1}).then((function(n){var r=n["sdp.uc1.1"];return e._hasUC11=r,t(r)})).catch((function(){return t(!1)}))}))},t.supportApisAvailable=function(){var e=this;return new Promise((function(t,n){if("boolean"==typeof e._supportApisAvailable)return t(e._supportApisAvailable);j.e.Bridge.apisAvailable({entries:["sdp.uc1.2"],includeLazyInitialize:!1}).then((function(n){var r=n["sdp.uc1.2"];return e._supportApisAvailable=r,t(r)})).catch((function(){return t(!1)}))}))},t.checkHasMethod=function(e){var t=this;return new Promise((function(n,r){if(!e)return n(!1);var o="_has".concat(e);if("boolean"==typeof t[o])return n(t[o]);t.supportApisAvailable().then((function(r){r?j.e.Bridge.apisAvailable({entries:[{"sdp.uc1.1":[e]}],includeLazyInitialize:!1}).then((function(r){var i=!1;return r["sdp.uc1.1"]&&r["sdp.uc1.1"].some((function(t){return e in t&&(i=t[e],!0)})),t[o]=i,n(i)})).catch((function(){return n(!1)})):n(!1)}))}))},t.getToken=function(e){var t=this;return this.isLogin().then((function(n){return n?t.hasUC11().then((function(t){return t?j.e.Bridge.require("sdp.uc1.1").promise().getToken(e):Promise.reject(new Error("getToken is undefiend"))})):Promise.reject(new Error("getToken is undefiend"))}))},t.getUserInfo=function(e){return this.hasUC11().then((function(t){return t?j.e.Bridge.require("sdp.uc1.1").promise().getUserInfo(e):Promise.reject(new Error("getUserInfo is undefiend"))}))},t.getPersonAccountInfo=function(e){return this.hasUC11().then((function(t){return t?j.e.Bridge.require("sdp.uc1.1").promise().getPersonAccountInfo(e):Promise.reject(new Error("getPersonAccountInfo is undefiend"))}))},t.getMACContent=function(e){return j.e.Bridge.require("sdp.uc").promise().getMACContent(e)},t.isLogin=function(){return this.getMACContent({url:"https://uc.101.com/",method:"GET"}).then((function(e){return e.result})).catch((function(){return!1}))},t.getDeviceId=function(){return this.checkHasMethod("getUcDeviceId").then((function(e){return e?j.e.Bridge.require("sdp.uc1.1").promise().getUcDeviceId().then((function(e){return e.device_id})):Promise.reject(new Error("getUcDeviceId is undefiend"))}))},t.getSession=function(e){return this.checkHasMethod("getUcSession").then((function(t){return t?j.e.Bridge.require("sdp.uc1.1").promise().getUcSession({force:e}):Promise.reject(new Error("getUcSession is undefiend"))}))},t.getDeviceBiometricStatus=function(){return this.checkHasMethod("getDeviceBiometricStatus").then((function(e){return e?j.e.Bridge.require("sdp.uc1.1").promise().getDeviceBiometricStatus():Promise.reject(new Error("getDeviceBiometricStatus is undefiend"))}))},t.getBiometricAuthEnabled=function(){return this.checkHasMethod("getBiometricAuthEnabled").then((function(e){return e?j.e.Bridge.require("sdp.uc1.1").promise().getBiometricAuthEnabled():Promise.reject(new Error("getBiometricAuthEnabled is undefiend"))}))},t.setBiometricAuthEnable=function(e){return this.checkHasMethod("setBiometricAuthEnable").then((function(t){return t?j.e.Bridge.require("sdp.uc1.1").promise().setBiometricAuthEnable(e):Promise.reject(new Error("setBiometricAuthEnable is undefiend"))}))},e}()),Oe=function(){function e(e,t){this.options=void 0,this.storage=void 0,this.options=e,this.storage=t}var t=e.prototype;return t.getDeviceID=function(){var e=this;return this.fetchDeviceId().then((function(t){if(!t){var n="".concat(_e("/"),"/").concat("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})));t="".concat(me(n),"w").concat(n)}return e.storage.set("ND_UC_DEVICE_ID",t),t}))},t.fetchDeviceId=function(){var e=this;return this.options.deviceId?Promise.resolve(this.options.deviceId):this.options.mode===ee?ke.getDeviceId().catch((function(){return e.storage.get("ND_UC_DEVICE_ID")})):Promise.resolve(this.storage.get("ND_UC_DEVICE_ID"))},t.getUCCOLLString=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1.0";return this.getDeviceID().then((function(n){var r=_e(";");return"".concat(e,"/").concat(t,"(").concat(r,";").concat(j.g,"x").concat(j.f,";").concat(n,";)")}))},t.getDefaultHeaders=function(e){return A()({},{Accept:"application/json","Content-Type":"application/json","SDP-APP-ID":this.options.sdpAppId},e)},t.getUCCOLLHeaders=function(){return this.getUCCOLLString(this.options.sdpAppId).then((function(e){return{"UC-COLL":e}}))},t.getMACAuthorizationHeaders=function(e,t,n){return{Authorization:ce(e,t,{accessToken:n.access_token,macKey:n.mac_key,diff:n.diff})}},t.getDeviceIDHeaders=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.getDeviceID();if(e){var n=this.getUCCOLLString(this.options.sdpAppId);return Promise.all([t,n]).then((function(e){var t=u()(e,2);return{"DEVICE-ID":t[0],"UC-COLL":t[1]}}))}return t.then((function(e){return{"DEVICE-ID":e}}))},e}(),Se=function(){function e(e,t,n){this._options=void 0,this._headerManager=void 0,this._sessionRepository=void 0,this._options=e,this._headerManager=t,this._sessionRepository=n;var r=e.env,o=e.origins,i=e.requestAdapter,a=e.headers,s=void 0===a?{}:a,c=o||T[r];if(!c)throw new E.a("UCSDK/ENV_INVALID");var u=c.UC;if(!u)throw new E.a("UCSDK/ENV_INVALID");var d=t.getDefaultHeaders(s);this.request=Object(z.a)({defaultHeaders:d,sessionRepository:this._sessionRepository,adapter:i}),this.UC=u}var t=e.prototype;return t.getSession=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._options.mode===ee?ke.checkHasMethod("getUcSession").then((function(n){return n?ke.getSession(t):t?e._getSessionFromNet():e._getSessionFromLocal()})):t?this._getSessionFromNet():this._getSessionFromLocal()},t.removeSession=function(){var e=this;return this._options.mode===ee?ke.checkHasMethod("getUcSession").then((function(t){return t?ke.getSession(!0):e._sessionRepository.remove("session")})):this._sessionRepository.remove("session")},t._getSessionFromLocal=function(){var e=this._sessionRepository.get("session");return e?(this._sessionRepository.set("session",e,1080),Promise.resolve(e)):this._getSessionFromNet()},t._getSessionFromNet=function(){var e=this;return this.createSession().then((function(t){return e._sessionRepository.set("session",t,1080),t}))},t.createSession=function(){var e=this;return this._headerManager.getDeviceID().then((function(t){return e.request.post({url:"".concat(e.UC,"/v1.1/sessions"),data:{device_id:t}})}))},e}();function Ae(e){return function(t,n,r){var o=r.value;r.value=function(){for(var t=this,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var a=e&&e.getCacheConfig&&e.getCacheConfig.apply(this,r)||{},s=a.cacheKey,c=a.force,u=a.sessionKey;if(this&&this.options&&this.options.isGlobalSDKCacheEnabled&&this.commonStorage){var d=this.commonStorage.get("sdk_cache")||{};if(c)return o.apply(this,r).then((function(e){var n=u?Object(N.b)(e,u):e;return s&&(d[s]={payload:n,__expire_at__:+new Date+36e5},t.commonStorage.set("sdk_cache",d)),Promise.resolve(n)}));if(s){var p=d[s];return p&&p.__expire_at__&&p.__expire_at__>+new Date?Promise.resolve(p.payload):o.apply(this,r).then((function(e){var n=u?Object(N.b)(e,u):e;return d[s]={payload:n,__expire_at__:+new Date+36e5},t.commonStorage.set("sdk_cache",d),Promise.resolve(n)}))}}return o.apply(this,r).then((function(e){return u?Object(N.b)(e,u):e}))}}}var Ce=n(25),Te=n.n(Ce);function Ee(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return function(n,r,o){var i=o.value;o.value=function(){var n,o=arguments;if(e&&e.length&&(e.some((function(e){var t=e.key,i=e.path,a=e.validator,s=e.config,c=void 0===s?{}:s,u=Te()(o,i);return n=a({name:r,key:t,value:u,config:c})})),n)){if(t)return Promise.reject(n);throw n}return i.apply(this,arguments)}}}var Pe=n(41),xe=n.n(Pe),je=n(83),De=n.n(je),Me=n(84),Be=n.n(Me),Ue=n(15),Ie=n.n(Ue);function qe(e){var t=e.name,n=e.key,r=e.type;return new E.a("UCSDK/ARGUMENT_ERROR","".concat(t,"方法的").concat(n,"参数需要").concat(r,"类型"))}function Le(e){var t=e.name,n=e.key,r=e.value,o=e.config.required;if((void 0===o||o)&&void 0===r)return function(e){var t=e.name,n=e.key;return new E.a("UCSDK/ARGUMENT_ERROR","".concat(t,"方法缺少参数").concat(n))}({name:t,key:n})}var Ne,Ge,Re,ze,He,Ke,Fe,Ve,$e={boolean:function(e){var t=e.name,n=e.key,r=e.value,o=Le({name:t,key:n,value:r,config:e.config});return o||(void 0===r||xe()(r)?void 0:qe({name:t,key:n,type:"boolean"}))},number:function(e){var t=e.name,n=e.key,r=e.value,o=Le({name:t,key:n,value:r,config:e.config});return o||(void 0===r||De()(r)?void 0:qe({name:t,key:n,type:"number"}))},string:function(e){var t=e.name,n=e.key,r=e.value,o=e.config,i=Le({name:t,key:n,value:r,config:o});if(i)return i;if(void 0!==r){if(!Be()(r))return qe({name:t,key:n,type:"string"});var a=o.enableEmptyString;if(!(void 0===a||a)&&""===r.trim())return function(e){var t=e.name,n=e.key;return new E.a("UCSDK/ARGUMENT_ERROR","".concat(t,"方法的").concat(n,"参数不能为空字符串"))}({name:t,key:n})}},object:function(e){var t=e.name,n=e.key,r=e.value,o=Le({name:t,key:n,value:r,config:e.config});return o||(void 0===r||Ie()(r)?void 0:qe({name:t,key:n,type:"object"}))}},We=n(2),Je=n.n(We),Xe=(n(158),n(85)),Ze=n.n(Xe),Ye=Array.apply(null,{length:26}).map((function(e,t){return String.fromCharCode(t+97)})).join("");function Qe(e){return Ze()(e,30,Ye)}function et(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=8,n=16,r=e.length;return!(/\s/.test(e)||r<t||r>n)}function tt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(/[^\x21-\x7E]/.test(e))return!1;var n=[],r=[/[0-9]/g,/[A-Z]/g,/[a-z]/g,/[^0-9A-Za-z]/g];return r.forEach((function(t){var r=e.match(t);r&&n.push(r)})),!(n.length<t)}function nt(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=[],n=new RegExp(/[^0-9A-Za-z]/g),r=0;r<e.length;r++)t.push(e.charCodeAt(r));for(var o=0;o<t.length;o++)if(!n.test(e.substr(o,3))){var i=t[o],a=t[o+1],s=t[o+2];if(a-i==s-a&&Math.abs(a-i)<=1)return!1}return!0}function rt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return!(e&&t&&String(t).indexOf(e)>=0)}function ot(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[];return et(e)||n.push("PASSWORD/RULE1"),tt(e,2)||n.push("PASSWORD/RULE2"),rt(e,t)||n.push("PASSWORD/RULE3"),n}function it(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[];return et(e)||n.push("PASSWORD/RULE1"),tt(e,3)||n.push("UCSDK/PWD_ERR_TYPES"),nt(e)||n.push("PASSWORD/RULE4"),rt(e,t)||n.push("PASSWORD/RULE3"),n}function at(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;switch(+e){case 1:return ot;case 2:return it;default:return ot}}var st,ct,ut,dt,pt,ft,ht,lt,gt,yt=(Ne=Ee([{key:"str",path:"0",validator:$e.string}],!1),Ge=Ee([{key:"mobile",path:"0",validator:$e.string},{key:"countryCode",path:"1",validator:$e.string,config:{required:!1}}],!1),Re=Ee([{key:"email",path:"0",validator:$e.string}],!1),ze=Ee([{key:"passwordStr",path:"0",validator:$e.string},{key:"passwordStrengthExpected",path:"1",validator:$e.number,config:{required:!1}},{key:"loginName",path:"2",validator:$e.string,config:{required:!1}}],!1),He=Ee([{key:"passwordStr",path:"0",validator:$e.string},{key:"passwordStrengthExpected",path:"1",validator:$e.number,config:{required:!1}},{key:"loginName",path:"2",validator:$e.string,config:{required:!1}}],!1),Ve=Fe=function(){function e(){}return e.encryptByMD5=function(e){return m()(e,$)},e.checkMobile=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+86";return"+86"===t?/^1[3-9]\d{9}$/.test(e):/^\d{1,14}$/.test(e)},e.checkEmail=function(e){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)},e.checkPasswordStrength=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0,r=at(t)(e,n)||[];return!(r.length>0)},e.checkPasswordStrengthReturnErrors=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;return at(t)(e,n)||[]},e.checkPassword=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=8,n=16,r=e.length;if(r<t||r>n)return{result:!1,code:"UCSDK/PWD_ERR_LENGTH"};if(/\s/.test(e))return{result:!1,code:"UCSDK/PWD_ERR_SPACES"};for(var o=3;o<=n/2;o++)if(r%o==0&&r!==o)for(var i=o,a=e.substr(0,o);;){var s=e.substr(i,o);if(s!==a)break;if((i+=o)>=r)return{result:!1,code:"UCSDK/PWD_ERR_REPEATE"}}if(/[^\x21-\x7E]/.test(e))return{result:!1,code:"UCSDK/PWD_ERR_SPECIAL_CHAR"};var c=[],u=[/[0-9]/g,/[A-Z]/g,/[a-z]/g,/[^0-9A-Za-z]/g];if(u.forEach((function(t){var n=e.match(t);n&&c.push(n)})),c.length<3)return{result:!1,code:"UCSDK/PWD_ERR_TYPES"};for(var d=0;d<c.length;d++){var p=c[d];if(1===p.length){var f=e.indexOf(p[0]);if(0===f||f===r-1)return{result:!1,code:"UCSDK/PWD_ERR_CONBINATION"}}}return{result:!0}},e.check101Account=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return/^[A-Za-z0-9][0-9A-Za-z_-]{1,19}$/.test(e)},e.checkLoginCredential=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return/^([0-9A-Za-z_-]|[+@.]){1,128}$/.test(e)},e.checkPasswordLength=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=8,n=16,r=e.length;return!(/\s/.test(e)||r<t||r>n)},e.checkPasswordTypes=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(/[^\x21-\x7E]/.test(e))return!1;var n=[],r=[/[0-9]/g,/[A-Z]/g,/[a-z]/g,/[^0-9A-Za-z]/g];return r.forEach((function(t){var r=e.match(t);r&&n.push(r)})),!(n.length<t)},e.checkPasswordReplacePlus=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=[],n=new RegExp(/[^0-9A-Za-z]/g),r=0;r<e.length;r++)t.push(e.charCodeAt(r));for(var o=0;o<t.length;o++)if(!n.test(e.substr(o,3))){var i=t[o],a=t[o+1],s=t[o+2];if(a-i==s-a&&Math.abs(a-i)<=1)return!1}return!0},e.checkPasswordWithName=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return!(e&&t&&String(t).indexOf(e)>=0)},e.checkPasswordReplace=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=16,n=e.length,r=3;r<=t/2;r++)if(n%r==0&&n!==r)for(var o=r,i=e.substr(0,r);;){var a=e.substr(o,r);if(a!==i)break;if((o+=r)>=n)return!1}return!0},e._getKeepLoginFlag=function(e){var t=e.sdpAppId,n=e.env;return new ie("ND_UC-".concat(t,"&").concat(n,"&")).get("keepLogin")},e._setKeepLoginFlag=function(e){var t=e.sdpAppId,n=e.env,r=e.value;return new ie("ND_UC-".concat(t,"&").concat(n,"&")).set("keepLogin",r),!0},e._clearKeepLoginFlag=function(e){var t=e.sdpAppId,n=e.env;return new ie("ND_UC-".concat(t,"&").concat(n,"&")).remove("keepLogin"),!0},e}(),Fe.encryptByDES=ae.h,Fe.decryptByDES=ae.c,Fe.decryptToken=ae.d,Fe.encryptByAESECB=ae.g,Fe.decryptByAESECB=ae.b,Fe.decryptFields=N.b,Fe.defaultHide=ae.f,Fe.customizeHide=ae.a,Fe.encryptByAESForPutOrPost=function(e,t){"object"===we()(e)?e=JSON.stringify(e):e+="";var n=Te()(t,"url",""),r=Te()(t,"sdpAppId",""),o=Te()(t,"userAgent",""),i=ve.encoder(Qe("".concat(n,":").concat(r,":").concat(o))),a=Je.a.enc.Utf8.parse(i.slice(5,21)),s=Je.a.enc.Utf8.parse(i.slice(i.length-21,i.length-5));return Je.a.AES.encrypt(e,a,{iv:s,mode:Je.a.mode.CBC,padding:Je.a.pad.Pkcs7}).toString()},Fe.decryptByAESForGet=function(e,t){if(!(e+=""))return e;var n=Te()(t,"traceid","abcdefghijklmnopqrstuvwxyzabcd"),r=ve.encoder(Qe("".concat(n))),o=Je.a.enc.Utf8.parse(r.slice(5,21)),i=Je.a.enc.Utf8.parse(r.slice(r.length-21,r.length-5)),a=Je.a.AES.decrypt({ciphertext:Je.a.enc.Base64.parse(e)},o,{iv:i,mode:Je.a.mode.CBC,padding:Je.a.pad.Pkcs7});return""===a.toString(Je.a.enc.Utf8)?null:a.toString(Je.a.enc.Utf8)},Fe.encryptByAESForGet=function(e,t){"object"===we()(e)?e=JSON.stringify(e):e+="";var n=Te()(t,"traceid","abcdefghijklmnopqrstuvwxyzabcd"),r=ve.encoder(Qe("".concat(n))),o=Je.a.enc.Utf8.parse(r.slice(5,21)),i=Je.a.enc.Utf8.parse(r.slice(r.length-21,r.length-5));return Je.a.AES.encrypt(e,o,{iv:i,mode:Je.a.mode.CBC,padding:Je.a.pad.Pkcs7}).toString()},Ke=Ve,h()(Ke,"encryptByMD5",[Ne],Object.getOwnPropertyDescriptor(Ke,"encryptByMD5"),Ke),h()(Ke,"checkMobile",[Ge],Object.getOwnPropertyDescriptor(Ke,"checkMobile"),Ke),h()(Ke,"checkEmail",[Re],Object.getOwnPropertyDescriptor(Ke,"checkEmail"),Ke),h()(Ke,"checkPasswordStrength",[ze],Object.getOwnPropertyDescriptor(Ke,"checkPasswordStrength"),Ke),h()(Ke,"checkPasswordStrengthReturnErrors",[He],Object.getOwnPropertyDescriptor(Ke,"checkPasswordStrengthReturnErrors"),Ke),Ke),vt=(st=Ae({getCacheConfig:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>3?arguments[3]:void 0;return{force:t,cacheKey:"person_account_".concat(e.account_id,"_info"),sessionKey:n}}}),ct=Ae({getCacheConfig:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{force:t,cacheKey:"person_account_".concat(e.account_id,"_binded_third_accounts")}}}),ut=Ae({getCacheConfig:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.isFilter,o=void 0!==r&&r,i=t.offset,a=void 0===i?0:i,s=t.limit,c=void 0===s?100:s,u=t.accountId,d=void 0===u?"":u;return{force:n,cacheKey:"person_account_".concat(d||e.account_id,"_binded_org_accounts_").concat(String(o),"_").concat(a,"_").concat(c)}}}),dt=Ae({getCacheConfig:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>4?arguments[4]:void 0;return{force:n,cacheKey:"org_account_".concat(e.user_id,"_").concat(String(t),"_info"),sessionKey:r}}}),pt=Ae({getCacheConfig:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>4?arguments[4]:void 0;return{force:n,cacheKey:"org_account_public_info_".concat(t.user_id||e&&e.user_id,"_").concat(String(t.with_canceled||!1)),sessionKey:r}}}),ft=Ae({getCacheConfig:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{force:n,cacheKey:"person_account_public_info_".concat(t.account_id||e&&e.account_id,"_").concat(String(t.with_canceled||!1))}}}),ht=Ae({getCacheConfig:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{force:t,cacheKey:"org_account_".concat(e.user_id,"_binded_third_accounts")}}}),lt=Ae({getCacheConfig:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{force:n,cacheKey:"org_account_".concat(t.userId||e&&e.user_id,"_binded_person_account")}}}),gt=function(){function e(e,t,n,r,o){this.options=void 0,this.UC=void 0,this.SSO=void 0,this.headerManager=void 0,this.tokenStorage=void 0,this.request=void 0,this.jsonp=void 0;var i=e.env,a=e.origins,s=e.requestAdapter,c=e.headers,u=void 0===c?{}:c,d=e.secondarySSODomains,p=void 0===d?[]:d,f=a||T[i];if(!f)throw new E.a("UCSDK/ENV_INVALID");var h,l=f.UC,g=f.SSO,y=i&&i.replace&&i.replace("___forLogin","");if(this.SSODOMAINS=p,!l||!g)throw new E.a("UCSDK/ENV_INVALID");"undefined"!=typeof window&&window.location.host&&window.location.host.indexOf("ykt.eduyun.cn")>-1?this.SSO=(null===(h=T[y])||void 0===h?void 0:h.XSSO)||g:this.SSO=g;var v=n.getDefaultHeaders(u);this.options=e,this.UC=l,this.headerManager=n,this.tokenStorage=r,this.commonStorage=o,this.request=Object(z.a)({defaultHeaders:v,ucSession:t,adapter:s,commonStorage:o}),this.jsonp=function(e){var t=e.defaultHeaders,n=e.ucSession,r=e.commonStorage;return function(e){var o=e.url,i=e.headers,a=void 0===i?{}:i,s=e.data,c=void 0===s?"{}":s,u=e.method,d=void 0===u?"GET":u,p=e.isProxy,f=void 0===p||p;return Object(N.a)(d,o)&&r.remove("sdk_cache"),q({url:o,headers:a=R(R({},t),a),data:c,method:d,isProxy:f}).catch((function(e){return"UC/INVALID_SESSION_ID"===e.code||"UC/SESSION_EXPIRED"===e.code?(n.removeSession(),Promise.reject(new E.a("UCSDK/SESSION_ERROR"))):Promise.reject(e)}))}}({defaultHeaders:v,ucSession:t,commonStorage:o})}var t=e.prototype;return t.requestAdapter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=e.data,r=void 0===n?{}:n,o=e.needAuthHeader,i=void 0!==o&&o,a=e.type,s=void 0===a?"post":a,c=e.url,u=void 0===c?"":c,d=e.headers,p=void 0===d?{}:d,f=this.options.sso||!1;if(s=s.toLowerCase(),f&&void 0!==t&&(f=t),0!==u.indexOf("http")&&(u="".concat(f?this.SSO:this.UC).concat(u)),i){var h=JSON.parse(this.tokenStorage.get("token"));p=A()(p,this.headerManager.getMACAuthorizationHeaders(u,s,h))}return f?this.jsonp({method:s,url:u,data:r,headers:p}):this.request[s]({url:u,data:r,headers:p})},t.createSession=function(){var e=this;return this.headerManager.getDeviceID().then((function(t){return e.request.post({url:"".concat(e.UC,"/v1.1/sessions"),data:{device_id:t}})}))},t.sendSMSCode=function(e,t,n){return this.requestAdapter({type:"post",url:"".concat(this.UC,"/v1.1/sessions/").concat(e,"/actions/send_sms_code"),data:n,needAuthHeader:t},!1)},t.getIdentifyCode=function(e,t){return t?this.request.get({url:"".concat(this.UC,"/v1.1/sessions/").concat(e,"/identify_code"),responseType:"blob"}):"".concat(this.UC,"/v1.1/sessions/").concat(e,"/identify_code")},t.validIdentifyCode=function(e,t){return this.request.post({url:"".concat(this.UC,"/v1.1/sessions/").concat(e,"/identify_code/actions/valid"),data:{identify_code:t}})},t.sendEmailCode=function(e,t,n){return this.requestAdapter({type:"post",url:"".concat(this.UC,"/v1.1/sessions/").concat(e,"/actions/send_email_code"),data:n,needAuthHeader:t},!1)},t.loginByPassword=function(e,t){var n=this;return this.headerManager.getUCCOLLHeaders().then((function(r){return n.requestAdapter({type:"post",url:"/v1.1".concat(n.options.isSecurity?"/security":"","/tokens"),data:e,headers:r,needAuthHeader:t})}))},t.loginBySMS=function(e,t){var n=this;return this.headerManager.getUCCOLLHeaders().then((function(r){return n.requestAdapter({type:"post",url:"/v1.1".concat(n.options.isSecurity?"/security":"","/sms_tokens"),data:e,headers:r,needAuthHeader:t})}))},t.loginByEmailCode=function(e,t){var n=this;return this.headerManager.getUCCOLLHeaders().then((function(r){return n.requestAdapter({type:"post",url:"/v1.1".concat(n.options.isSecurity?"/security":"","/email_tokens"),data:e,headers:r,needAuthHeader:t})}))},t.loginByThirdAccount=function(e){var t=this;return this.headerManager.getUCCOLLHeaders().then((function(n){return t.requestAdapter({type:"post",url:"/v1.1/third_tokens",data:e,headers:n})}))},t.loginByGuest=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.requestAdapter({type:"post",url:"/v1.1/guest_tokens",data:e})},t.validToken=function(e,t){return this.requestAdapter({type:"post",url:"/v1.1/tokens/".concat(e,"/actions/valid"),data:t})},t.refreshToken=function(e){return this.requestAdapter({type:"post",url:"/v1.1/tokens/".concat(e,"/actions/refresh")})},t.cloneToken=function(e,t,n){return this.requestAdapter({type:"post",url:"/v1.1/tokens/".concat(e,"/actions/clone"),data:t},n)},t.exchangeToken=function(e,t,n){return this.requestAdapter({type:"post",url:"/v1.1/tokens/".concat(e.access_token,"/actions/exchange"),data:t,needAuthHeader:!0,token:e},n)},t.logout=function(e){return this.requestAdapter({type:"delete",url:"/v1.1/tokens/".concat(e)})},t.getQrTickets=function(){return this.request.post({url:"".concat(this.UC,"/v1.1/qr_tickets")})},t.getQrTicketsStatusInfo=function(e,t){return this.requestAdapter({type:"get",url:"/v1.1/qr_tickets/".concat(t,"/sessions/").concat(e,"/status_info")})},t.registerPersonAccountByMobile=function(e,t){return this.requestAdapter({type:"post",url:"/v1.1/person_accounts/actions/register_by_mobile",data:e,needAuthHeader:t})},t.registerPersonAccountByEmail=function(e,t){return this.requestAdapter({type:"post",url:"/v1.1/person_accounts/actions/register_by_email",data:e,needAuthHeader:t})},t.registerPersonAccountByUserName=function(e,t){return this.requestAdapter({type:"post",url:"/v1.1/person_accounts/actions/register_by_user_name",data:e,needAuthHeader:t})},t.registerPersonAccountByUnderage=function(e,t){return this.requestAdapter({type:"post",url:"/v1.1/person_accounts/actions/register_by_guardians",data:e,needAuthHeader:t})},t.modifyPersonAccountPasswordByOldPassword=function(e,t){return this.requestAdapter({type:"put",url:"/v1.1".concat(this.options.isSecurity?"/security":"","/person_accounts/").concat(e.account_id,"/password/actions/modify"),data:t,needAuthHeader:!0,token:e})},t.resetPersonAccountPasswordBySMS=function(e){return this.requestAdapter({type:"put",url:"/v1.1".concat(this.options.isSecurity?"/security":"","/person_accounts/password/actions/reset_by_sms_code"),data:e})},t.sendEmailOfResetPersonAccountPassword=function(e){return this.request.put({url:"".concat(this.UC,"/v1.1/person_accounts/password/actions/send_reset_email"),data:e})},t.resetPersonAccountPasswordByEmail=function(e){return this.requestAdapter({type:"put",url:"/v1.1".concat(this.options.isSecurity?"/security":"","/person_accounts/password/actions/reset_by_email"),data:e})},t.getPersonAccountInfo=function(e){var t=arguments.length>2?arguments[2]:void 0,n="".concat(this.UC,"/v1.1/person_accounts/").concat(e.account_id,"?session_id=").concat(t);return this.request.get({url:n,headers:this.headerManager.getMACAuthorizationHeaders(n,"GET",e)})},t.modifyPersonAccountInfo=function(e,t){var n="".concat(this.UC,"/v1.1/person_accounts/").concat(e.account_id);return this.request.patch({url:n,data:t,headers:this.headerManager.getMACAuthorizationHeaders(n,"PATCH",e)})},t.sendSMSCodeToPersonAccountMobile=function(e,t){var n="".concat(this.UC,"/v1.1/person_accounts/").concat(e.account_id,"/mobile/actions/send_sms_code");return this.request.post({url:n,data:t,headers:this.headerManager.getMACAuthorizationHeaders(n,"POST",e)})},t.validSMSCodeOfPersonAccountMobile=function(e,t){var n="".concat(this.UC,"/v1.1/person_accounts/").concat(e.account_id,"/mobile/actions/valid");return this.request.post({url:n,data:t,headers:this.headerManager.getMACAuthorizationHeaders(n,"POST",e)})},t.bindPersonAccountMobile=function(e,t){var n="".concat(this.UC,"/v1.1/person_accounts/").concat(e.account_id,"/mobile");return this.request.put({url:n,data:t,headers:this.headerManager.getMACAuthorizationHeaders(n,"PUT",e)})},t.unbindPersonAccountEmail=function(e){var t="".concat(this.UC,"/v1.1/person_accounts/").concat(e.account_id,"/email");return this.request.delete({url:t,headers:this.headerManager.getMACAuthorizationHeaders(t,"DELETE",e)})},t.bindPersonAccountEmail=function(e,t){var n="".concat(this.UC,"/v1.1/person_accounts/").concat(e.account_id,"/email");return this.request.put({url:n,data:t,headers:this.headerManager.getMACAuthorizationHeaders(n,"PUT",e)})},t.confirmBindingPersonAccountEmail=function(e){return this.request.get({url:"".concat(this.UC,"/v1.1/person_accounts/actions/email_validate"),params:{validate_code:e}})},t.bindThirdAccountOfPersonAccount=function(e,t){var n="".concat(this.UC,"/v1.1/person_accounts/").concat(e.account_id,"/third_accounts");return this.request.post({url:n,data:t,headers:this.headerManager.getMACAuthorizationHeaders(n,"POST",e)})},t.unbindThirdAccountOfPersonAccount=function(e,t){var n=t.open_id,r=t.app_id,o=t.source_plat,i="".concat(this.UC,"/v1.1/person_accounts/").concat(e.account_id,"/third_accounts?app_id=").concat(r,"&source_plat=").concat(o,"&open_id=").concat(n);return this.request.delete({url:i,headers:this.headerManager.getMACAuthorizationHeaders(i,"DELETE",e)})},t.getBindingThirdAccountListOfPersonAccount=function(e){var t="".concat(this.UC,"/v1.1/person_accounts/").concat(e.account_id,"/third_accounts");return this.request.get({url:t,headers:this.headerManager.getMACAuthorizationHeaders(t,"GET",e)})},t.checkUserNameExist=function(e){return this.request.post({url:"".concat(this.UC,"/v1.1/person_accounts/user_name/actions/exists"),data:e})},t.joinOrganization=function(e,t){var n="".concat(this.UC,"/v1.1").concat(this.options.isSecurity?"/security":"","/person_accounts/").concat(e.account_id,"/actions/join_org");return this.request.post({url:n,data:t,headers:this.headerManager.getMACAuthorizationHeaders(n,"POST",e)})},t.bindOrgAccount=function(e,t){var n="".concat(this.UC,"/v1.1").concat(this.options.isSecurity?"/security":"","/users/actions/bind/person_accounts/").concat(e.account_id);return this.request.post({url:n,data:t,headers:this.headerManager.getMACAuthorizationHeaders(n,"POST",e)})},t.getBindingOrgAccountList=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isFilter,r=void 0!==n&&n,o=t.offset,i=void 0===o?0:o,a=t.limit,s=void 0===a?100:a,c=t.accountId,u=void 0===c?"":c,d=t.verifyType,p=t.verifyCode,f=t.isDeleteCode,h=void 0===f||f,l="".concat(this.UC,"/v1.1/person_accounts/").concat(u||e.account_id,"/binded/users?is_filter=").concat(String(r),"&$offset=").concat(i,"&$limit=").concat(s);d&&p&&(l+="&verify_type=".concat(d,"&verify_code=").concat(p,"&is_delete_code=").concat(!!h));var g=d&&p||!e?void 0:this.headerManager.getMACAuthorizationHeaders(l,"GET",e);return this.request.get({url:l,headers:g})},t.unbindOrgAccount=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.user_id,r=O()(t,["user_id"]),o="".concat(this.UC,"/v1.1").concat(this.options.isSecurity?"/security":"","/person_accounts/actions/unbinded/users/").concat(n);return this.request.post({url:o,data:r,headers:this.headerManager.getMACAuthorizationHeaders(o,"POST",e)})},t.sendEmailCodeToPersonAccountEmail=function(e,t){var n="".concat(this.UC,"/v1.1/person_accounts/").concat(e.account_id,"/email/actions/send_email_code");return this.request.post({url:n,data:t,headers:this.headerManager.getMACAuthorizationHeaders(n,"POST",e)})},t.validEmailCodeOfPersonAccountEmail=function(e,t){var n="".concat(this.UC,"/v1.1/person_accounts/").concat(e.account_id,"/email/actions/valid");return this.request.post({url:n,data:t,headers:this.headerManager.getMACAuthorizationHeaders(n,"POST",e)})},t.modifyPersonAccountInitPassword=function(e,t){var n="".concat(this.UC,"/v1.1").concat(this.options.isSecurity?"/security":"","/person_accounts/").concat(e.account_id,"/init/password/actions/modify");return this.request.put({url:n,data:t,headers:this.headerManager.getMACAuthorizationHeaders(n,"PUT",e)})},t.getUserInfo=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>3?arguments[3]:void 0,r="".concat(this.UC,"/v1.1/users/").concat(e.user_id,"?with_ext=").concat(String(t),"&session_id=").concat(n);return this.request.get({url:r,headers:this.headerManager.getMACAuthorizationHeaders(r,"GET",e)})},t.getOrgAccountPublicInfo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>3?arguments[3]:void 0,r=t.user_id||e&&e.user_id,o=t.with_canceled||!1,i="".concat(this.UC,"/v1.1/public/users/").concat(r,"?with_canceled=").concat(String(o),"&session_id=").concat(n);return this.request.get({url:i,headers:e?this.headerManager.getMACAuthorizationHeaders(i,"GET",e):void 0})},t.getPersonAccountPublicInfo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>3?arguments[3]:void 0,r=t.account_id||e&&e.account_id,o=t.with_canceled||!1,i="".concat(this.UC,"/v1.1/public/person_accounts/").concat(r,"?with_canceled=").concat(String(o),"&session_id=").concat(n);return this.request.get({url:i,headers:e?this.headerManager.getMACAuthorizationHeaders(i,"GET",e):void 0})},t.modifyUserInfo=function(e,t){var n="".concat(this.UC,"/v1.1/users/").concat(e.user_id);return this.request.patch({url:n,data:t,headers:this.headerManager.getMACAuthorizationHeaders(n,"PATCH",e)})},t.modifyOrgAccountPassword=function(e,t,n){return this.requestAdapter({type:"put",url:"/v1.1".concat(this.options.isSecurity?"/security":"","/users/").concat(e.user_id,"/password/actions/modify"),data:t,needAuthHeader:!0,token:e},n)},t.sendSMSCodeToOrgAccountMobile=function(e,t){var n="".concat(this.UC,"/v1.1/users/").concat(e.user_id,"/mobile/actions/send_sms_code");return this.request.post({url:n,data:t,headers:this.headerManager.getMACAuthorizationHeaders(n,"POST",e)})},t.validSMSCodeOfOrgAccountMobile=function(e,t){var n="".concat(this.UC,"/v1.1/users/").concat(e.user_id,"/mobile/actions/valid");return this.request.post({url:n,data:t,headers:this.headerManager.getMACAuthorizationHeaders(n,"POST",e)})},t.bindOrgAccountMobile=function(e,t){var n="".concat(this.UC,"/v1.1/users/").concat(e.user_id,"/mobile");return this.request.put({url:n,data:t,headers:this.headerManager.getMACAuthorizationHeaders(n,"PUT",e)})},t.bindOrgAccountEmail=function(e,t){var n="".concat(this.UC,"/v1.1/users/").concat(e.user_id,"/email");return this.request.put({url:n,data:t,headers:this.headerManager.getMACAuthorizationHeaders(n,"PUT",e)})},t.confirmBindingOrgAccountEmail=function(e){return this.request.get({url:"".concat(this.UC,"/v1.1/users/actions/email_validate"),params:{validate_code:e}})},t.unbindOrgAccountEmail=function(e){var t="".concat(this.UC,"/v1.1/users/").concat(e.user_id,"/email");return this.request.delete({url:t,headers:this.headerManager.getMACAuthorizationHeaders(t,"DELETE",e)})},t.getBindingThirdAccountListOfOrgAccount=function(e){var t="".concat(this.UC,"/v1.1/users/").concat(e.user_id,"/third_accounts");return this.request.get({url:t,headers:this.headerManager.getMACAuthorizationHeaders(t,"GET",e)})},t.getBindingPersonAccountOfOrgAccount=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.userId,r=t.verifyType,o=t.verifyCode,i=t.isDeleteCode,a=void 0===i||i,s="".concat(this.UC,"/v1.1/users/").concat(n||e&&e.user_id,"/person_account");return r&&o&&(s+="?verify_type=".concat(r,"&verify_code=").concat(o,"&is_delete_code=").concat(!!a)),this.request.get({url:s,headers:r&&o||!e?void 0:this.headerManager.getMACAuthorizationHeaders(s,"GET",e)})},t.getRelatedOrgAccountListOfPersonAccount=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,r="".concat(this.UC,"/v1.1/users/actions/query?account_id=").concat(e.account_id,"&$offset=").concat(t,"&$limit=").concat(n);return this.request.get({url:r,headers:this.headerManager.getMACAuthorizationHeaders(r,"GET",e)})},t.getRelatedOrgAccountNodePathOfPersonAccount=function(e){var t="".concat(this.UC,"/v1.1/users/actions/ancestor_nodes?account_id=").concat(e.account_id);return this.request.get({url:t,headers:this.headerManager.getMACAuthorizationHeaders(t,"GET",e)})},t.resetOrgAccountPasswordBySMS=function(e){return this.requestAdapter({type:"put",url:"/v1.1".concat(this.options.isSecurity?"/security":"","/users/password/actions/reset_by_sms_code"),data:e})},t.resetOrgAccountPasswordByEmail=function(e){return this.requestAdapter({type:"put",url:"/v1.1".concat(this.options.isSecurity?"/security":"","/users/password/actions/reset_by_email"),data:e})},t.modifyOrgAccountInitialPassword=function(e,t){return this.requestAdapter({type:"put",url:"/v1.1".concat(this.options.isSecurity?"/security":"","/users/").concat(e.user_id,"/initial_password/actions/modify"),data:t,needAuthHeader:!0,token:e})},t.sendEmailCodeToOrgAccountEmail=function(e,t){var n="".concat(this.UC,"/v1.1/users/").concat(e.user_id,"/email/actions/send_email_code");return this.request.post({url:n,data:t,headers:this.headerManager.getMACAuthorizationHeaders(n,"POST",e)})},t.validEmailCodeOfOrgAccountEmail=function(e,t){var n="".concat(this.UC,"/v1.1/users/").concat(e.user_id,"/email/actions/valid");return this.request.post({url:n,data:t,headers:this.headerManager.getMACAuthorizationHeaders(n,"POST",e)})},t.getServerTime=function(){return this.request.get({url:"".concat(this.UC,"/v1.1/time?_t=").concat(+(new Date).getTime())})},t.getThirdAccessTokenByCode=function(e){return this.request.get({url:"".concat(this.UC,"/v1.1/third_token_info"),params:e})},t.verifyPassword=function(e,t){var n="".concat(this.UC,"/v1.1/password/actions/verify");return this.request.post({url:n,data:t,headers:this.headerManager.getMACAuthorizationHeaders(n,"POST",e)})},t.ssoGetToken=function(){var e=this;return this.headerManager.getDeviceIDHeaders().then((function(t){return e.jsonp({method:"GET",url:"".concat(e.SSO,"/v1.1/sso/tokens"),headers:t})}))},t.ssoGetTokenNew=function(){var e=this,t=Object(N.c)(this.SSODOMAINS)||this.SSO;return this.headerManager.getDeviceIDHeaders().then((function(n){return e.jsonp({method:"GET",url:"".concat(t,"/v1.1/sso/tokens"),headers:n})}))},t.ssoTicketGetToken=function(){var e=s()(g.a.mark((function e(t){var n,r=this;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(N.c)(this.SSODOMAINS)||this.SSO,e.abrupt("return",this.headerManager.getDeviceIDHeaders().then((function(e){return r.jsonp({method:"GET",url:"".concat(n,"/v1.1/sso/ticket/").concat(t,"/valid"),headers:e})})));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.getConfig=function(){var e,t=null;return e="".concat(this.UC,"/v1.1/apps/").concat(this.options.sdpAppId,"/security/uc-configs?type=web"),this.request.get({url:e,transformResponse:[function(e,n){return t=n["pinpoint-traceid"]||n.traceid,JSON.parse(e)}]}).then((function(e){var n=e.security_config;O()(e,["security_config"]);return JSON.parse(yt.decryptByAESForGet(n,{traceid:t}))})).catch((function(){return{}}))},t.ssoGetTicket=function(){var e=this;return this.headerManager.getDeviceIDHeaders().then((function(t){return e.jsonp({method:"GET",url:"".concat(e.SSO,"/v1.1/sso/ticket"),headers:t})}))},t.getPersonAccountAvatarURL=function(e,t){return"".concat(this.UC,"/v1.1/person_accounts/").concat(e,"/avatar_url").concat(t)},t.getOrgAccountAvatarURL=function(e,t){return"".concat(this.UC,"/v1.1/users/").concat(e,"/avatar_url").concat(t)},t.getOrgAccountAvatarURLAsync=function(e,t){return this.request.get({url:"".concat(this.UC,"/v1.1/users/").concat(e,"/avatar_url").concat(t)})},t.setAvatarInfo=function(e){return this.requestAdapter({type:"put",url:"/v1.1/avatar_info",data:e,needAuthHeader:!0},!1)},t.resetOrgAccountPasswordByGuardianSMS=function(e){return this.requestAdapter({type:"put",url:"/v1.1".concat(this.options.isSecurity?"/security":"","/users/password/actions/reset_by_guardian_sms_code"),data:e})},t.resetPersonAccountPasswordByGuardianSMS=function(e){return this.requestAdapter({type:"put",url:"/v1.1".concat(this.options.isSecurity?"/security":"","/person_accounts/password/actions/reset_by_guardian_sms_code"),data:e})},t.resetOrgAccountPasswordByGuardianEmail=function(e){return this.requestAdapter({type:"put",url:"/v1.1".concat(this.options.isSecurity?"/security":"","/users/password/actions/reset_by_guardian_email_code"),data:e})},t.resetPersonAccountPasswordByGuardianEmail=function(e){return this.requestAdapter({type:"put",url:"/v1.1".concat(this.options.isSecurity?"/security":"","/person_accounts/password/actions/reset_by_guardian_email_code"),data:e})},t.queryAccountPublicInfo=function(e,t){return this.requestAdapter({type:"post",url:"".concat(this.UC,"/v1.1/account_public_infos/actions/query"),data:e,needAuthHeader:t},!1)},t.checkPasswordValid=function(e,t){return this.requestAdapter({type:"post",url:"/v1.1/password/actions/check_valid",data:t,needAuthHeader:!0,token:e})},t.getLoginTicketByPassword=function(e){var t=this;return this.headerManager.getUCCOLLHeaders().then((function(n){return t.request.post({url:"".concat(t.UC,"/v1.1/token_tickets"),data:e,headers:n})}))},t.sendSMSCodeByTicket=function(e,t){return this.request.post({url:"".concat(this.UC,"/v1.1/sessions/").concat(e,"/tickets/actions/send_sms_code"),data:t})},t.loginByTicket=function(e){var t=this;return this.headerManager.getUCCOLLHeaders().then((function(n){return t.request.post({url:"".concat(t.UC,"/v1.1/ticket_tokens"),data:e,headers:n})}))},t.modifyOrgAccountManagerPassword=function(e,t){return this.requestAdapter({type:"put",url:"/v1.1/users/manager_password/actions/modify",data:t,needAuthHeader:!0,token:e},!1)},t.modifyPersonPasswordBySmsCode=function(e,t){return this.requestAdapter({type:"put",url:"/v1.1/".concat(this.options.isSecurity?"security/":"","person_accounts/").concat(e.account_id,"/password/actions/set"),data:t,needAuthHeader:!0,token:e})},t.modifyOrgPasswordBySmsCode=function(e,t){return this.requestAdapter({type:"put",url:"/v1.1/".concat(this.options.isSecurity?"security/":"","users/").concat(e.user_id,"/password/actions/set"),data:t,needAuthHeader:!0,token:e})},t.getOrgAccountManagerTickets=function(e,t){return this.requestAdapter({type:"post",url:"/v1.1/users/manager_tickets",data:t,needAuthHeader:!0,token:e},!1)},t.getOrgAccountManagerPasswordStatus=function(e){return this.requestAdapter({type:"get",url:"/v1.1/users/manager_password/status",needAuthHeader:!0,token:e},!1)},t.getUcTenants=function(){return this.requestAdapter({type:"get",url:"/v1.1/uc_tenants/actions/query?sdp_app_id=".concat(this.options.sdpAppId)},!1)},e}(),h()(gt.prototype,"getPersonAccountInfo",[st],Object.getOwnPropertyDescriptor(gt.prototype,"getPersonAccountInfo"),gt.prototype),h()(gt.prototype,"getBindingThirdAccountListOfPersonAccount",[ct],Object.getOwnPropertyDescriptor(gt.prototype,"getBindingThirdAccountListOfPersonAccount"),gt.prototype),h()(gt.prototype,"getBindingOrgAccountList",[ut],Object.getOwnPropertyDescriptor(gt.prototype,"getBindingOrgAccountList"),gt.prototype),h()(gt.prototype,"getUserInfo",[dt],Object.getOwnPropertyDescriptor(gt.prototype,"getUserInfo"),gt.prototype),h()(gt.prototype,"getOrgAccountPublicInfo",[pt],Object.getOwnPropertyDescriptor(gt.prototype,"getOrgAccountPublicInfo"),gt.prototype),h()(gt.prototype,"getPersonAccountPublicInfo",[ft],Object.getOwnPropertyDescriptor(gt.prototype,"getPersonAccountPublicInfo"),gt.prototype),h()(gt.prototype,"getBindingThirdAccountListOfOrgAccount",[ht],Object.getOwnPropertyDescriptor(gt.prototype,"getBindingThirdAccountListOfOrgAccount"),gt.prototype),h()(gt.prototype,"getBindingPersonAccountOfOrgAccount",[lt],Object.getOwnPropertyDescriptor(gt.prototype,"getBindingPersonAccountOfOrgAccount"),gt.prototype),gt),_t=n(11),mt=n.n(_t),bt=n(42),wt=n.n(bt),kt=function(){function e(){}return e.init=function(){var t=s()(g.a.mark((function t(n,r,o){var i,a,s,c,u;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=n.env,a=n.sdpAppId,s=n.sso,c=n.storageExpire,(u=n.errorTracker)&&"[object Function]"===Object.prototype.toString.call(u.captureException)&&u.setUserContext({sdkInitOptions:"uc-sdk初始化参数",currentToken:"当前使用的token",responseError:"服务端报错信息",reason:"异常的原因"}),e.baseReportData={appId:"5bc8392d45ce4f8d56eba824",appName:"nd-uc-sdk",error:new Error("UCSDK/CLEAR_TOKEN"),info:{sdkInitOptions:JSON.stringify({env:i,sdpAppId:a,sso:s,storageExpire:c}),customErrorLevel:"error"}},t.next=5,r.getDeviceID().catch((function(){return""}));case 5:e.devicedId=t.sent,e.instance=u,e.tokenStorage=o;case 8:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),e.log=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.instance,r=null;try{r=JSON.parse(e.tokenStorage.get("token"))}catch(e){}n&&"[object Function]"===Object.prototype.toString.call(n.captureException)&&n.captureException(wt()({},e.baseReportData,t),{sdkVersion:"__VERSION__",deviceId:"".concat(r&&r.user_id||"","_").concat(e.devicedId)})},e}();function Ot(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise((function(t){setTimeout((function(){t()}),"number"!=typeof e?0:e)}))}var St=function(){function e(e,t,n){this.options=void 0,this._ucGateway=void 0,this._tokenStorage=void 0,this.options=e,this._ucGateway=t;var r=e.env&&e.env.replace&&e.env.replace("___forLogin",""),o=e.origins||T[r];this.SSO=o.SSO,this._tokenStorage=n}var t=e.prototype;return t.getToken=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=void 0;try{t=JSON.parse(this._tokenStorage.get("token"))}catch(e){}var n=t||{},r=n.expires_at,o=n.diff,i=void 0===o?0:o;if(!(e&&t&&mt()(r).toNumber()<=mt()().toNumber()+i))return t},t.awaitRefresh=function(){var e=s()(g.a.mark((function e(t){var n,r,o;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=mt()().toNumber(),!(1===this._tokenStorage.get("autoRefresh")&&t>0)){e.next=9;break}return e.next=5,Ot(50);case 5:return r=mt()().toNumber()-n,o=t-r,e.next=9,this.awaitRefresh(o<=0?0:o);case 9:return e.abrupt("return",!0);case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.getTokenAsync=function(){var e=s()(g.a.mark((function e(t){var n,r,o,i,a,s,c,u;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.options,r=n.autoRefresh,o=n.minEffectiveTime,n.mode!==ee){e.next=3;break}return e.abrupt("return",this.appfactoryGetToken(t));case 3:if(!r){e.next=21;break}if(1!==this._tokenStorage.get("autoRefresh")){e.next=7;break}return e.next=7,this.awaitRefresh(5e3);case 7:i=void 0;try{i=JSON.parse(this._tokenStorage.get("token"))}catch(e){console.error(e)}if(s=(a=i||{}).expires_at,c=a.diff,u=void 0===c?0:c,!s){e.next=20;break}if(e.prev=11,!(mt()(s).toNumber()<=mt()().toNumber()+u)){e.next=14;break}return e.abrupt("return",this._refreshToken(i).catch((function(){})));case 14:return e.abrupt("return",this.refreshToken(o).catch((function(){})));case 17:return e.prev=17,e.t0=e.catch(11),e.abrupt("return",void 0);case 20:return e.abrupt("return",i);case 21:return e.abrupt("return",this.getToken());case 22:case"end":return e.stop()}}),e,this,[[11,17]])})));return function(t){return e.apply(this,arguments)}}(),t._simpleGetToken=function(){try{return JSON.parse(this._tokenStorage.get("token"))}catch(e){}return""},t.ssoGetToken=function(e){var t=this;return Object(N.c)([this.SSO])?this._ucGateway.ssoGetToken().then((function(n){return n?t.saveToken(n):t.ssoValidTicket(e)})).catch((function(n){return t.ssoValidTicket(e)})):this._ucGateway.ssoGetToken().then((function(n){return n?t.saveToken(n):t.ssoGetTokenNew(e)})).catch((function(n){return t.ssoGetTokenNew(e)}))},t.ssoGetTokenNew=function(e){var t=this;return this._ucGateway.ssoGetTokenNew().then((function(n){return n?t.saveToken(n):t.ssoValidTicket(e)})).catch((function(n){return t.ssoValidTicket(e)}))},t.ssoValidTicket=function(e){var t=this;if(e){var n=v.a.decoder(e);return this._ucGateway.ssoTicketGetToken(n).then((function(e){if(e)return t.saveToken(e);kt.log({info:{currentToken:JSON.stringify(t._simpleGetToken()),reason:"cleanToken called in UCToken:ssoGetToken, because ssoGetToken return token is null"}}),t.clearToken(!1)})).catch((function(e){kt.log({info:{currentToken:JSON.stringify(t._simpleGetToken()),reason:"cleanToken called in UCToken:ssoGetToken, because ssoGetToken return token is null"}}),t.clearToken(!1)}))}kt.log({info:{currentToken:JSON.stringify(this._simpleGetToken()),reason:"cleanToken called in UCToken:ssoGetToken, because ssoGetToken return token is null"}}),this.clearToken(!1)},t.appfactoryGetToken=function(e){var t=this;return ke.getToken({type:e}).then((function(e){return ke.supportApisAvailable().then((function(n){return n?t.saveToken(e):t._ucGateway.getServerTime().then((function(n){return e.server_time=n.sys_time,t.saveToken(e)}))}))})).catch((function(){var e="https://uc.101.com/";return ke.getMACContent({url:e,method:"GET"}).then((function(n){var r=n.result,o=n.returnMessage;if(!0===r){var i=ue(o.replace(/\\/g,""),e),a=i.access_token,s=i.nonce,c=i.mac,u=i.request_uri,d=i.host;return t._ucGateway.validToken(a,{mac:c,nonce:s,http_method:"GET",request_uri:u,host:d}).then((function(e){return t.saveToken(e)})).catch((function(e){kt.log({info:{currentToken:JSON.stringify({access_token:a,mac:c,nonce:s,request_uri:u,host:d,method:"GET"}),responseError:e,reason:"cleanToken called in UCToken:appfactoryGetToken, because token form appFactory.getMACContent valid failed"}}),t.clearToken(!1)}))}})).catch((function(e){kt.log({info:{currentToken:"",responseError:e,reason:"cleanToken called in UCToken:ssoGetToken, because appFactory.getMACContent to get token failed"}}),t.clearToken(!1)}))}))},t.fetchToken=function(e,t){return null!==e&&(this.options.sso=e),this.options.mode===ee?this.appfactoryGetToken():this.options.sso?this.ssoGetToken(t):this.getTokenAsync()},t.saveToken=function(e,t){return e&&!e.diff&&(e.diff=e.server_time?mt()(e.server_time).toNumber()-mt()().toNumber():0),this._tokenStorage.set("token",JSON.stringify(e),void 0,t),e},t.clearToken=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e&&kt.log({info:{currentToken:JSON.stringify(this._simpleGetToken()),reason:"cleanToken called by user call"}}),yt._clearKeepLoginFlag({sdpAppId:this.options.sdpAppId,env:this.options.env}),this._tokenStorage.remove("token")},t.isLogin=function(e,t){var n=this;return this.fetchToken(e,t).then((function(e){return!!e&&(!(!n.options.sso&&n.options.mode!==ee)||n.validToken(e).then((function(e){return!0})).catch((function(t){return"UC/AUTH_INVALID_TOKEN"===t.code||"UC/AUTH_UNAVAILABLE_TOKEN"===t.code||"UC/AUTH_INVALID_TOKEN_BE_KICKED"===t.code?(kt.log({info:{currentToken:JSON.stringify(e),responseError:t,reason:"cleanToken called in UCToken:isLogin, because valid token failed"}}),n.clearToken(!1),!1):"UC/AUTH_TOKEN_EXPIRED"!==t.code&&Promise.reject(t)})))}))},t.logout=function(){var e=this,t=this.getToken();return t?this._ucGateway.logout(t.access_token).then((function(t){return e.clearToken(!1),t})).catch((function(t){return"UC/AUTH_INVALID_TOKEN"!==t.code&&"UC/AUTH_TOKEN_EXPIRED"!==t.code&&"UC/AUTH_UNAVAILABLE_TOKEN"!==t.code&&"UC/AUTH_INVALID_TOKEN_BE_KICKED"!==t.code||e.clearToken(!1),Promise.reject(t)})):Promise.reject(new E.a("UCSDK/NOT_LOGIN"))},t.validToken=function(e){var t=this;return this._getTokenDiff(e.diff).then((function(n){var r=e.access_token,o=e.mac_key,i=t._ucGateway.UC,a="/v1.1/tokens/".concat(r,"/actions/valid"),s=pe(n),c=de(i+a,s,"POST",o),u=i.slice(i.indexOf("//")+2,i.length);return t._ucGateway.validToken(r,{mac:c,nonce:s,http_method:"POST",request_uri:a,host:u})}))},t._refreshToken=function(e){var t=this,n=this.options.autoRefresh;return n&&this._tokenStorage.set("autoRefresh",1,60),Promise.resolve(e).then((function(e){return e.refresh_token?e:t.validToken(e)})).then((function(e){return t._ucGateway.refreshToken(e.refresh_token)})).then((function(e){return t.saveToken(e)})).finally((function(){return n&&t._tokenStorage.set("autoRefresh",0)}))},t.refreshToken=function(){var e=s()(g.a.mark((function e(){var t,n,r,o,i,a=arguments;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=a.length>0&&void 0!==a[0]?a[0]:0,n=this.getToken(!1)){e.next=4;break}throw new E.a("UCSDK/NOT_LOGIN");case 4:if(!t){e.next=11;break}if(!(t>=86400&&t<604800)){e.next=10;break}if(r=n.expires_at,o=n.diff,i=void 0===o?0:o,!(mt()(r).toNumber()-(mt()().toNumber()+i)<=1e3*t)){e.next=9;break}return e.abrupt("return",this._refreshToken(n));case 9:return e.abrupt("return",n);case 10:throw new E.a("UCSDK/ARGUMENT_ERROR");case 11:return e.abrupt("return",this._refreshToken(n));case 12:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),t.cloneToken=function(){var e=s()(g.a.mark((function e(){var t,n,r,o,i,a,s,c,u,d,p,f,h,l=arguments;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=l.length>0&&void 0!==l[0]&&l[0],n=void 0,!t){e.next=6;break}n=this.getToken(),e.next=9;break;case 6:return e.next=8,this.getTokenAsync();case 8:n=e.sent;case 9:if(n){e.next=11;break}throw new E.a("UCSDK/NOT_LOGIN");case 11:return e.next=13,this._getTokenDiff(n.diff);case 13:return r=e.sent,i=(o=n).access_token,a=o.mac_key,s=this._ucGateway.UC,c="/v1.1/tokens/".concat(i,"/actions/clone"),u="POST",d=pe(r),p=de(s+c,d,u,a),f=s.slice(s.indexOf("//")+2,s.length),e.next=23,this._ucGateway.cloneToken(i,{mac:p,nonce:d,http_method:u,request_uri:c,host:f},t);case 23:return(h=e.sent).diff||(h.diff=h.server_time?mt()(h.server_time).toNumber()-mt()().toNumber():0),e.abrupt("return",h);case 26:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),t.exchangeToken=function(){var e=s()(g.a.mark((function e(t){var n,r,o=arguments;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]&&o[1],e.next=3,this.getTokenAsync();case 3:if(r=e.sent){e.next=6;break}throw new E.a("UCSDK/NOT_LOGIN");case 6:return e.abrupt("return",this._ucGateway.exchangeToken(r,t,n));case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t._getTokenDiff=function(e){return e?Promise.resolve(e):this._ucGateway.getServerTime().then((function(e){return mt()(e.sys_time).toNumber()-mt()().toNumber()}))},e}();function At(e){if(!x()(e))return e;var t={};return Object.keys(e).forEach((function(n){var r;t[(r=n,r.replace(/([A-Z])/g,"_$1").toLowerCase())]=e[n]})),t}var Ct,Tt,Et,Pt,xt,jt,Dt,Mt,Bt,Ut,It,qt=function(e,t,n){var r=n.value;return n.value=function(){for(var e=[],t=0;t<arguments.length;t++)e.push(At(arguments[t]));return r.apply(this,e)},n},Lt=(Ct=Ee([{key:"options",path:"0",validator:$e.object},{key:"oldPassword",path:"0.oldPassword",validator:$e.string,config:{required:!1,enableEmptyString:!1}},{key:"newPassword",path:"0.newPassword",validator:$e.string,config:{enableEmptyString:!1}},{key:"identifyCode",path:"0.identifyCode",validator:$e.string,config:{required:!1}}]),Tt=function(){function e(e){var t=e.options,n=e.accountType,r=e.ucGateway,o=e.ucSession,i=e.ucToken;this.options=void 0,this._accountType=void 0,this._ucGateway=void 0,this._ucSession=void 0,this._ucToken=void 0,this.options=t,this._accountType=n,this._ucGateway=r,this._ucSession=o,this._ucToken=i}var t=e.prototype;return t.getAccountType=function(){return this._accountType},t.getTokenSourceType=function(){var e=this._ucToken.getToken();return e?e.source_token_account_type||this._accountType||"":new E.a("UCSDK/NOT_LOGIN")},t.getAccountPublicInfo=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.force,r=void 0!==n&&n,o=O()(t,["force"]);return this._getLoginTokenAndSession().then((function(t){var n=u()(t,2),i=n[0],a=n[1],s=a.session_id,c=a.session_key;return o.user_id||o.account_id||(o.user_id=i.user_id,o.account_id=i.account_id),o.user_id?e._ucGateway.getOrgAccountPublicInfo(i,o,r,s,c):e._ucGateway.getPersonAccountPublicInfo(i,o,r,s,c)}))},t.checkPasswordValid=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.oldPassword,r=t.newPassword,o=t.identifyCode;return this._getLoginTokenAndSession().then((function(t){var i=u()(t,2),a=i[0],s=i[1],c=s.session_id,d=s.session_key,p={session_id:c,new_password:Object(ae.h)(m()(r,$),d)};return n&&(p.old_password=Object(ae.h)(m()(n,$),d)),o&&(p.identify_code=o),e._ucGateway.checkPasswordValid(a,p)}))},t._getLoginToken=function(){return this._ucToken.getTokenAsync().then((function(e){return e?Promise.resolve(e):Promise.reject(new E.a("UCSDK/NOT_LOGIN"))}))},t._getLoginTokenAndSession=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Promise.all([this._getLoginToken(),this._ucSession.getSession(e)])},e}(),h()(Tt.prototype,"getAccountPublicInfo",[qt],Object.getOwnPropertyDescriptor(Tt.prototype,"getAccountPublicInfo"),Tt.prototype),h()(Tt.prototype,"checkPasswordValid",[Ct],Object.getOwnPropertyDescriptor(Tt.prototype,"checkPasswordValid"),Tt.prototype),Tt),Nt=(Et=function(e){function t(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.accountType=Z,e.call(this,t)||this}i()(t,e);var n=t.prototype;return n.getAccountInfo=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.force,r=void 0!==n&&n;return this._getLoginTokenAndSession().then((function(t){var n=u()(t,2),o=n[0],i=n[1],a=i.session_id,s=i.session_key;return e._ucGateway.getPersonAccountInfo(o,r,a,s)}))},n.joinOrganization=function(e){var t=this;return this._getLoginTokenAndSession().then((function(n){var r=u()(n,2),o=r[0],i=r[1],a=i.session_id,s=i.session_key;return e.session_id=a,t._ucGateway.joinOrganization(o,e).then((function(e){return Object(ae.d)(e,s)}))}))},n.getBindingOrgAccountList=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.force,r=void 0!==n&&n,o=O()(t,["force"]);return this._getLoginToken().then((function(t){return e._ucGateway.getBindingOrgAccountList(t,o,r)}))},t}(Lt),h()(Et.prototype,"joinOrganization",[qt],Object.getOwnPropertyDescriptor(Et.prototype,"joinOrganization"),Et.prototype),Et);function Gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gt(Object(n),!0).forEach((function(t){p()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var zt,Ht,Kt,Ft,Vt,$t,Wt,Jt,Xt,Zt,Yt,Qt,en,tn,nn,rn,on=(Pt=Ee([{key:"options",path:"0",validator:$e.object,config:{required:!1}},{key:"realName",path:"0.realName",validator:$e.string,config:{required:!1}},{key:"nickName",path:"0.nickName",validator:$e.string,config:{required:!1}},{key:"avatarSource",path:"0.avatarSource",validator:$e.number,config:{required:!1}},{key:"avatarData",path:"0.avatarData",validator:$e.string,config:{required:!1}},{key:"countryCode",path:"0.countryCode",validator:$e.string,config:{required:!1}},{key:"mobile",path:"0.mobile",validator:$e.string,config:{required:!1}},{key:"email",path:"0.email",validator:$e.string,config:{required:!1}},{key:"telephone",path:"0.telephone",validator:$e.string,config:{required:!1}},{key:"passport",path:"0.passport",validator:$e.string,config:{required:!1}},{key:"idCard",path:"0.idCard",validator:$e.string,config:{required:!1}},{key:"birthday",path:"0.birthday",validator:$e.string,config:{required:!1}},{key:"gender",path:"0.gender",validator:$e.number,config:{required:!1}},{key:"extInfo",path:"0.extInfo",validator:$e.object,config:{required:!1}},{key:"dataEncrypted ",path:"0.dataEncrypted ",validator:$e.boolean,config:{required:!1}},{key:"countryCodeAlpha2",path:"0.countryCodeAlpha2",validator:$e.string,config:{required:!1}}]),xt=Ee([{key:"options",path:"0",validator:$e.object},{key:"oldPassword",path:"0.oldPassword",validator:$e.string,config:{required:!1,enableEmptyString:!1}},{key:"newPassword",path:"0.newPassword",validator:$e.string,config:{enableEmptyString:!1}}]),jt=Ee([{key:"options",path:"0",validator:$e.object},{key:"smsCode",path:"0.smsCode",validator:$e.string,config:{required:!1,enableEmptyString:!1}},{key:"emailCode",path:"0.emailCode",validator:$e.string,config:{required:!1,enableEmptyString:!1}},{key:"password",path:"0.password",validator:$e.string,config:{enableEmptyString:!1}},{key:"isDelete",path:"0.isDelete",validator:$e.boolean,config:{required:!1}}]),Dt=Ee([{key:"options",path:"0",validator:$e.object},{key:"newMobile",path:"0.newMobile",validator:$e.string,config:{enableEmptyString:!1}},{key:"smsCode",path:"0.smsCode",validator:$e.string,config:{enableEmptyString:!1}},{key:"countryCode",path:"0.countryCode",validator:$e.string,config:{required:!1}}]),Mt=Ee([{key:"options",path:"0",validator:$e.object},{key:"newEmail",path:"0.newEmail",validator:$e.string,config:{enableEmptyString:!1}},{key:"emailCode",path:"0.emailCode",validator:$e.string,config:{required:!1,enableEmptyString:!1}},{key:"change_bind_email",path:"0.change_bind_email",validator:$e.boolean,config:{required:!1}},{key:"lang",path:"0.lang",validator:$e.string,config:{required:!1}},{key:"sessionId",path:"0.sessionId",validator:$e.string,config:{required:!1}}]),Bt=Ee([{key:"options",path:"0",validator:$e.object},{key:"password",path:"0.password",validator:$e.string,config:{enableEmptyString:!1}},{key:"smsCode",path:"0.smsCode",validator:$e.string,config:{enableEmptyString:!1}}]),Ut=Ee([{key:"options",path:"0",validator:$e.object},{key:"password",path:"0.password",validator:$e.string,config:{enableEmptyString:!1}}]),It=function(e){function t(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.accountType=J,e.call(this,t)||this}i()(t,e);var n=t.prototype;return n.getAccountInfo=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.withExt,r=t.force,o=void 0!==r&&r;return"boolean"==typeof t&&(n=arguments[0]),this._getLoginTokenAndSession().then((function(t){var r=u()(t,2),i=r[0],a=r[1],s=a.session_id,c=a.session_key;return e.options.mode===ee?ke.getUserInfo({userId:i.user_id,force:o,sessionId:s}).catch((function(){return e._ucGateway.getUserInfo(i,n,o,s,c).then((function(e){return Object(N.f)(e)}))})):e._ucGateway.getUserInfo(i,n,o,s,c).then((function(e){return Object(N.f)(e)}))}))},n.setAccountInfo=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.realName,r=t.nickName,o=t.avatarSource,i=t.avatarData,a=t.countryCode,s=t.mobile,c=t.email,d=t.telephone,p=t.passport,f=t.idCard,h=t.birthday,l=t.gender,g=t.extInfo,y=t.dataEncrypted,v=void 0===y||y,_=t.countryCodeAlpha2;return this._getLoginTokenAndSession().then((function(t){var y=u()(t,2),m=y[0],b=y[1],w=s?v?Object(ae.h)(s,b.session_key):s:null,k=c?v?Object(ae.h)(c,b.session_key):c:null,O=d?v?Object(ae.h)(d,b.session_key):d:null,S=p?v?Object(ae.h)(p,b.session_key):p:null,A=f?v?Object(ae.h)(f,b.session_key):f:null,C=n?v?Object(ae.h)(n,b.session_key):n:null;return e._ucGateway.modifyUserInfo(m,Rt({real_name:C,nick_name:r,country_code:a,avatar_source:o,avatar_data:i,mobile:w,email:k,telephone:O,passport:S,id_card:A,birthday:h,gender:l,ext_info:g,session_id:b.session_id,data_encrypted:v},_&&{country_code_alpha2:_}))}))},n.setAvatarInfo=function(e){return this._ucGateway.setAvatarInfo(e)},n.modifyPassword=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.oldPassword,r=t.newPassword;return this._getLoginTokenAndSession().then((function(t){var o=u()(t,2),i=o[0],a=o[1],s=a.session_id,c=a.session_key,d={session_id:s,new_password:Object(ae.h)(m()(r,$),c)};return n&&(d.old_password=Object(ae.h)(m()(n,$),c)),e._ucGateway.modifyOrgAccountPassword(i,d).then((function(t){return e._ucToken.saveToken(t)}))}))},n.modifyPasswordBySmsCode=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.smsCode,r=t.password,o=t.emailCode,i=t.isDelete;return this._getLoginTokenAndSession().then((function(t){var a=u()(t,2),s=a[0],c=a[1],d=c.session_id,p=c.session_key,f=Rt(Rt(Rt({session_id:d,password:Object(ae.h)(m()(r,$),p)},n&&{sms_code:n}),o&&{email_code:o}),!1===i&&{is_delete:i});return e._ucGateway.modifyOrgPasswordBySmsCode(s,f).then((function(t){return e._ucToken.saveToken(t)}))}))},n.modifyOrgAccountInitialPassword=function(e){var t=this;return this._getLoginTokenAndSession().then((function(n){var r=u()(n,2),o=r[0],i=r[1],a=i.session_id,s=i.session_key,c=e.initial_password;return c&&(e.initial_password=Object(ae.h)(m()(c,$),s)),e.session_id=a,t._ucGateway.modifyOrgAccountInitialPassword(o,e).then((function(e){return t._ucToken.saveToken(e)}))}))},n.sendCurrentMobileSMSCode=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"string"==typeof t&&(t={identify_code:arguments[0]}),this._getLoginTokenAndSession().then((function(n){var r=u()(n,2),o=r[0],i=r[1];return t.session_id=i.session_id,e._ucGateway.sendSMSCodeToOrgAccountMobile(o,t)}))},n.validCurrentMobileSMSCode=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"string"==typeof t&&(t={sms_code:arguments[0]}),this._getLoginTokenAndSession().then((function(n){var r=u()(n,2),o=r[0],i=r[1];return t.session_id=i.session_id,e._ucGateway.validSMSCodeOfOrgAccountMobile(o,t)}))},n.bindMobile=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.newMobile,r=t.smsCode,o=t.countryCode;return this._getLoginTokenAndSession().then((function(t){var i=u()(t,2),a=i[0],s=i[1];return e._ucGateway.bindOrgAccountMobile(a,{session_id:s.session_id,new_mobile:n,sms_code:r,country_code:o})}))},n.sendCurrentEmailCode=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._getLoginTokenAndSession().then((function(n){var r=u()(n,2),o=r[0],i=r[1];return t.session_id=i.session_id,e._ucGateway.sendEmailCodeToOrgAccountEmail(o,t)}))},n.validCurrentEmailCode=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._getLoginTokenAndSession().then((function(n){var r=u()(n,2),o=r[0],i=r[1];return t.session_id=i.session_id,e._ucGateway.validEmailCodeOfOrgAccountEmail(o,t)}))},n.bindEmail=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._getLoginTokenAndSession().then((function(n){var r=u()(n,2),o=r[0],i=r[1].session_id,a=t.email_verification_mode,s=t.session_id,c=void 0===s?"":s;return t.session_id=c||i,void 0===a&&(t.email_verification_mode=t.mode),e._ucGateway.bindOrgAccountEmail(o,t)}))},n.unbindEmail=function(){var e=this;return this._getLoginToken().then((function(t){return e._ucGateway.unbindOrgAccountEmail(t)}))},n.getBindingThirdAccountList=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.force,r=void 0!==n&&n;return this._getLoginToken().then((function(t){return e._ucGateway.getBindingThirdAccountListOfOrgAccount(t,r)}))},n.getBindingPersonAccount=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.force,r=void 0!==n&&n;return this._getLoginToken().then((function(t){return e._ucGateway.getBindingPersonAccountOfOrgAccount(t,r)}))},n.modifyManagerPassword=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.password,r=t.smsCode;return this._getLoginTokenAndSession().then((function(t){var o=u()(t,2),i=o[0],a=o[1],s=a.session_id,c=a.session_key,d={session_id:s,password:Object(ae.g)(m()(n,$),c),sms_code:r};return e._ucGateway.modifyOrgAccountManagerPassword(i,d)}))},n.getManagerTickets=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.password;return this._getLoginTokenAndSession().then((function(t){var r=u()(t,2),o=r[0],i=r[1],a=i.session_id,s=i.session_key,c={session_id:a,password:Object(ae.g)(m()(n,$),s)};return e._ucGateway.getOrgAccountManagerTickets(o,c)}))},n.getManagerPasswordStatus=function(){var e=this;return this._getLoginToken().then((function(t){return e._ucGateway.getOrgAccountManagerPasswordStatus(t)}))},t}(Lt),h()(It.prototype,"setAccountInfo",[Pt],Object.getOwnPropertyDescriptor(It.prototype,"setAccountInfo"),It.prototype),h()(It.prototype,"setAvatarInfo",[qt],Object.getOwnPropertyDescriptor(It.prototype,"setAvatarInfo"),It.prototype),h()(It.prototype,"modifyPassword",[xt],Object.getOwnPropertyDescriptor(It.prototype,"modifyPassword"),It.prototype),h()(It.prototype,"modifyPasswordBySmsCode",[jt],Object.getOwnPropertyDescriptor(It.prototype,"modifyPasswordBySmsCode"),It.prototype),h()(It.prototype,"modifyOrgAccountInitialPassword",[qt],Object.getOwnPropertyDescriptor(It.prototype,"modifyOrgAccountInitialPassword"),It.prototype),h()(It.prototype,"sendCurrentMobileSMSCode",[qt],Object.getOwnPropertyDescriptor(It.prototype,"sendCurrentMobileSMSCode"),It.prototype),h()(It.prototype,"validCurrentMobileSMSCode",[qt],Object.getOwnPropertyDescriptor(It.prototype,"validCurrentMobileSMSCode"),It.prototype),h()(It.prototype,"bindMobile",[Dt],Object.getOwnPropertyDescriptor(It.prototype,"bindMobile"),It.prototype),h()(It.prototype,"sendCurrentEmailCode",[qt],Object.getOwnPropertyDescriptor(It.prototype,"sendCurrentEmailCode"),It.prototype),h()(It.prototype,"validCurrentEmailCode",[qt],Object.getOwnPropertyDescriptor(It.prototype,"validCurrentEmailCode"),It.prototype),h()(It.prototype,"bindEmail",[Mt,qt],Object.getOwnPropertyDescriptor(It.prototype,"bindEmail"),It.prototype),h()(It.prototype,"modifyManagerPassword",[Bt],Object.getOwnPropertyDescriptor(It.prototype,"modifyManagerPassword"),It.prototype),h()(It.prototype,"getManagerTickets",[Ut],Object.getOwnPropertyDescriptor(It.prototype,"getManagerTickets"),It.prototype),It),an=function(e){function t(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.accountType=J,e.call(this,t)||this}return i()(t,e),t.prototype.getAccountInfo=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.withExt,r=t.force,o=void 0!==r&&r;return"boolean"==typeof t&&(n=arguments[0]),this._getLoginTokenAndSession().then((function(t){var r=u()(t,2),i=r[0],a=r[1],s=a.session_id,c=a.session_key;return e._ucGateway.getUserInfo(i,n,o,s,c)}))},t}(Lt);function sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sn(Object(n),!0).forEach((function(t){p()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var un,dn,pn,fn,hn,ln,gn,yn,vn,_n,mn,bn,wn,kn,On,Sn,An,Cn,Tn=(zt=Ee([{key:"options",path:"0",validator:$e.object,config:{required:!1}},{key:"userName",path:"0.userName",validator:$e.string,config:{required:!1}},{key:"realName",path:"0.realName",validator:$e.string,config:{required:!1}},{key:"nickName",path:"0.nickName",validator:$e.string,config:{required:!1}},{key:"avatarSource",path:"0.avatarSource",validator:$e.number,config:{required:!1}},{key:"avatarData",path:"0.avatarData",validator:$e.string,config:{required:!1}},{key:"telephone",path:"0.telephone",validator:$e.string,config:{required:!1}},{key:"passport",path:"0.passport",validator:$e.string,config:{required:!1}},{key:"idCard",path:"0.idCard",validator:$e.string,config:{required:!1}},{key:"birthday",path:"0.birthday",validator:$e.string,config:{required:!1}},{key:"gender",path:"0.gender",validator:$e.number,config:{required:!1}},{key:"extInfo",path:"0.extInfo",validator:$e.object,config:{required:!1}},{key:"countryCodeAlpha2",path:"0.countryCodeAlpha2",validator:$e.string,config:{required:!1}}]),Ht=Ee([{key:"options",path:"0",validator:$e.object},{key:"oldPassword",path:"0.oldPassword",validator:$e.string,config:{required:!1,enableEmptyString:!1}},{key:"newPassword",path:"0.newPassword",validator:$e.string,config:{enableEmptyString:!1}}]),Kt=Ee([{key:"options",path:"0",validator:$e.object},{key:"smsCode",path:"0.smsCode",validator:$e.string,config:{required:!1,enableEmptyString:!1}},{key:"emailCode",path:"0.emailCode",validator:$e.string,config:{required:!1,enableEmptyString:!1}},{key:"password",path:"0.password",validator:$e.string,config:{enableEmptyString:!1}},{key:"isDelete",path:"0.isDelete",validator:$e.boolean,config:{required:!1}}]),Ft=Ee([{key:"options",path:"0",validator:$e.object},{key:"newMobile",path:"0.newMobile",validator:$e.string,config:{enableEmptyString:!1}},{key:"smsCode",path:"0.smsCode",validator:$e.string,config:{enableEmptyString:!1}},{key:"countryCode",path:"0.countryCode",validator:$e.string,config:{required:!1}},{key:"newPassword",path:"0.newPassword",validator:$e.string,config:{required:!1,enableEmptyString:!1}},{key:"dataEncrypted",path:"0.dataEncrypted",validator:$e.boolean,config:{required:!1}}]),Vt=Ee([{key:"options",path:"0",validator:$e.object},{key:"newEmail",path:"0.newEmail",validator:$e.string,config:{enableEmptyString:!1}},{key:"emailCode",path:"0.emailCode",validator:$e.string,config:{required:!1,enableEmptyString:!1}},{key:"change_bind_email",path:"0.change_bind_email",validator:$e.boolean,config:{required:!1}},{key:"lang",path:"0.lang",validator:$e.string,config:{required:!1}},{key:"sessionId",path:"0.sessionId",validator:$e.string,config:{required:!1}}]),$t=Ee([{key:"options",path:"0",validator:$e.object},{key:"openId",path:"0.openId",validator:$e.string,config:{enableEmptyString:!1}},{key:"appId",path:"0.appId",validator:$e.string,config:{enableEmptyString:!1}},{key:"sourcePlat",path:"0.sourcePlat",validator:$e.string,config:{enableEmptyString:!1}},{key:"thirdAccessToken",path:"0.thirdAccessToken",validator:$e.string,config:{enableEmptyString:!1}}]),Wt=Ee([{key:"options",path:"0",validator:$e.object},{key:"orgUserCode",path:"0.orgUserCode",validator:$e.string,config:{required:!1}},{key:"orgCode",path:"0.orgCode",validator:$e.string,config:{required:!1}},{key:"wjtCode",path:"0.wjtCode",validator:$e.string,config:{required:!1}},{key:"password",path:"0.password",validator:$e.string}]),Jt=Ee([{key:"options",path:"0",validator:$e.object},{key:"userId",path:"0.userId",validator:$e.string,config:{enableEmptyString:!1}}]),Xt=Ee([{key:"options",path:"0",validator:$e.object},{key:"openId",path:"0.openId",validator:$e.string,config:{enableEmptyString:!1}},{key:"appId",path:"0.appId",validator:$e.string,config:{enableEmptyString:!1}},{key:"sourcePlat",path:"0.sourcePlat",validator:$e.string,config:{enableEmptyString:!1}}]),Zt=Ee([{key:"$offset",path:"0",validator:$e.number,config:{required:!1}},{key:"$limit",path:"1",validator:$e.number,config:{required:!1}}]),Yt=Ee([{key:"options",path:"0",validator:$e.object}]),Qt=Ee([{key:"options",path:"0",validator:$e.object}]),en=Ee([{key:"options",path:"0",validator:$e.object},{key:"newPassword",path:"0.newPassword",validator:$e.string}]),tn=Ee([{key:"options",path:"0",validator:$e.object},{key:"password",path:"0.password",validator:$e.string,config:{enableEmptyString:!1}},{key:"smsCode",path:"0.smsCode",validator:$e.string,config:{enableEmptyString:!1}}]),nn=Ee([{key:"options",path:"0",validator:$e.object},{key:"password",path:"0.password",validator:$e.string,config:{enableEmptyString:!1}}]),rn=function(e){function t(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.accountType=X,e.call(this,t)||this}i()(t,e);var n=t.prototype;return n.getAccountInfo=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.force,r=void 0!==n&&n;return this._getLoginTokenAndSession().then((function(t){var n=u()(t,2),o=n[0],i=n[1],a=i.session_id,s=i.session_key;return e.options.mode===ee?ke.getPersonAccountInfo({accountId:o.account_id,force:r,sessionId:a}).catch((function(){return e._ucGateway.getPersonAccountInfo(o,r,a,s).then((function(e){return Object(N.f)(e)}))})):e._ucGateway.getPersonAccountInfo(o,r,a,s).then((function(e){return Object(N.f)(e)}))}))},n.setAccountInfo=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.userName,r=t.realName,o=t.nickName,i=t.avatarSource,a=t.avatarData,s=t.telephone,c=t.passport,u=t.idCard,d=t.birthday,p=t.gender,f=t.extInfo,h=t.countryCodeAlpha2;return this._getLoginToken().then((function(t){return e._ucGateway.modifyPersonAccountInfo(t,cn({user_name:n,real_name:r,nick_name:o,avatar_source:i,avatar_data:a,telephone:s,passport:c,id_card:u,birthday:d,gender:p,ext_info:f},h&&{country_code_alpha2:h}))}))},n.setAvatarInfo=function(e){return this._ucGateway.setAvatarInfo(e)},n.modifyPassword=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.oldPassword,r=t.newPassword;return this._getLoginTokenAndSession().then((function(t){var o=u()(t,2),i=o[0],a=o[1],s=a.session_id,c=a.session_key,d={session_id:s,new_password:Object(ae.h)(m()(r,$),c)};return n&&(d.old_password=Object(ae.h)(m()(n,$),c)),e._ucGateway.modifyPersonAccountPasswordByOldPassword(i,d).then((function(t){return e._ucToken.saveToken(t)}))}))},n.modifyPasswordBySmsCode=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.smsCode,r=t.password,o=t.emailCode,i=t.isDelete;return this._getLoginTokenAndSession().then((function(t){var a=u()(t,2),s=a[0],c=a[1],d=c.session_id,p=c.session_key,f=cn(cn(cn({session_id:d,password:Object(ae.h)(m()(r,$),p)},n&&{sms_code:n}),o&&{email_code:o}),!1===i&&{is_delete:i});return e._ucGateway.modifyPersonPasswordBySmsCode(s,f).then((function(t){return e._ucToken.saveToken(t)}))}))},n.sendCurrentMobileSMSCode=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"string"==typeof t&&(t={identify_code:arguments[0]}),this._getLoginTokenAndSession().then((function(n){var r=u()(n,2),o=r[0],i=r[1];return t.session_id=i.session_id,e._ucGateway.sendSMSCodeToPersonAccountMobile(o,t)}))},n.validCurrentMobileSMSCode=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"string"==typeof t&&(t={sms_code:arguments[0]}),this._getLoginTokenAndSession().then((function(n){var r=u()(n,2),o=r[0],i=r[1];return t.session_id=i.session_id,e._ucGateway.validSMSCodeOfPersonAccountMobile(o,t)}))},n.bindMobile=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.newMobile,r=t.smsCode,o=t.countryCode,i=t.newPassword,a=t.dataEncrypted,s=void 0===a||a;return this._getLoginTokenAndSession().then((function(t){var a,c=u()(t,2),d=c[0],p=c[1],f=p.session_id,h=p.session_key;return i&&(a=Object(ae.h)(m()(i,$),h)),e._ucGateway.bindPersonAccountMobile(d,{session_id:f,new_mobile:s?Object(ae.h)(n,h):n,sms_code:r,country_code:o,new_password:a,data_encrypted:s})}))},n.sendCurrentEmailCode=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._getLoginTokenAndSession().then((function(n){var r=u()(n,2),o=r[0],i=r[1];return t.session_id=i.session_id,e._ucGateway.sendEmailCodeToPersonAccountEmail(o,t)}))},n.validCurrentEmailCode=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._getLoginTokenAndSession().then((function(n){var r=u()(n,2),o=r[0],i=r[1];return t.session_id=i.session_id,e._ucGateway.validEmailCodeOfPersonAccountEmail(o,t)}))},n.bindEmail=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._getLoginTokenAndSession().then((function(n){var r=u()(n,2),o=r[0],i=r[1].session_id,a=t.email_verification_mode,s=t.session_id,c=void 0===s?"":s;return t.session_id=c||i,void 0===a&&(t.email_verification_mode=t.mode),e._ucGateway.bindPersonAccountEmail(o,t)}))},n.bindThirdAccount=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._getLoginToken().then((function(n){return e._ucGateway.bindThirdAccountOfPersonAccount(n,t)}))},n.bindOrgAccount=function(e){var t=this;return this._getLoginTokenAndSession().then((function(n){var r=u()(n,2),o=r[0],i=r[1],a=i.session_id,s=i.session_key,c=e.org_user_code,d=e.password,p=e.wjt_code;return c&&(e.org_user_code=Object(ae.h)(c,s)),p&&(e.wjt_code=Object(ae.h)(p,s)),e.password=Object(ae.h)(m()(d,$),s),e.session_id=a,t._ucGateway.bindOrgAccount(o,e).then((function(e){return Object(ae.d)(e,s)}))}))},n.unbindOrgAccount=function(e){var t=this;return this._getLoginTokenAndSession().then((function(n){var r=u()(n,2),o=r[0],i=r[1],a=i.session_id,s=i.session_key,c=e.password,d=e.new_password;return c&&(e.password=Object(ae.h)(m()(c,$),s)),d&&(e.new_password=Object(ae.h)(m()(d,$),s)),e.session_id=a,t._ucGateway.unbindOrgAccount(o,e)}))},n.unbindEmail=function(){var e=this;return this._getLoginToken().then((function(t){return e._ucGateway.unbindPersonAccountEmail(t)}))},n.unbindThirdAccount=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.openId,r=t.appId,o=t.sourcePlat;return this._getLoginToken().then((function(t){return e._ucGateway.unbindThirdAccountOfPersonAccount(t,{open_id:n,app_id:r,source_plat:o})}))},n.getBindingThirdAccountList=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.force,r=void 0!==n&&n;return this._getLoginToken().then((function(t){return e._ucGateway.getBindingThirdAccountListOfPersonAccount(t,r)}))},n.getBindingOrgAccountList=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.force,r=void 0!==n&&n,o=O()(t,["force"]);return this._getLoginToken().then((function(t){return e._ucGateway.getBindingOrgAccountList(t,o,r)}))},n.getRelatedOrgAccountList=function(e,t){var n=this;return this._getLoginToken().then((function(r){return n._ucGateway.getRelatedOrgAccountListOfPersonAccount(r,e,t)}))},n.getRelatedOrgAccountNodePath=function(){var e=this;return this._getLoginToken().then((function(t){return e._ucGateway.getRelatedOrgAccountNodePathOfPersonAccount(t)}))},n.joinOrganization=function(e){var t=this;return this._getLoginTokenAndSession().then((function(n){var r=u()(n,2),o=r[0],i=r[1],a=i.session_id,s=i.session_key;return e.session_id=a,t._ucGateway.joinOrganization(o,e).then((function(e){return Object(ae.d)(e,s)}))}))},n.modifyOrgAccountPassword=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._getLoginTokenAndSession().then((function(r){var o=u()(r,2),i=o[0],a=o[1],s=a.session_id,c=a.session_key,d=t.old_password,p=t.new_password;return t.old_password=Object(ae.h)(m()(d,$),c),t.new_password=Object(ae.h)(m()(p,$),c),t.session_id=s,i.user_id=t.user_id,e._ucGateway.modifyOrgAccountPassword(i,t,n).then((function(t){return n&&e._ucToken.saveToken(t),t}))}))},n.modifyInitPassword=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._getLoginTokenAndSession().then((function(n){var r=u()(n,2),o=r[0],i=r[1],a=i.session_id,s=i.session_key,c=t.new_password;return t.new_password=Object(ae.h)(m()(c,$),s),t.session_id=a,e._ucGateway.modifyPersonAccountInitPassword(o,t).then((function(t){e._ucToken.saveToken(t)}))}))},n.modifyManagerPassword=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.password,e.smsCode;return Promise.reject(new E.a("UC/INVALID_ACCOUNT_TYPE"))},n.getManagerTickets=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.password;return Promise.reject(new E.a("UC/INVALID_ACCOUNT_TYPE"))},n.getManagerPasswordStatus=function(){return Promise.reject(new E.a("UC/INVALID_ACCOUNT_TYPE"))},t}(Lt),h()(rn.prototype,"setAccountInfo",[zt],Object.getOwnPropertyDescriptor(rn.prototype,"setAccountInfo"),rn.prototype),h()(rn.prototype,"setAvatarInfo",[qt],Object.getOwnPropertyDescriptor(rn.prototype,"setAvatarInfo"),rn.prototype),h()(rn.prototype,"modifyPassword",[Ht],Object.getOwnPropertyDescriptor(rn.prototype,"modifyPassword"),rn.prototype),h()(rn.prototype,"modifyPasswordBySmsCode",[Kt],Object.getOwnPropertyDescriptor(rn.prototype,"modifyPasswordBySmsCode"),rn.prototype),h()(rn.prototype,"sendCurrentMobileSMSCode",[qt],Object.getOwnPropertyDescriptor(rn.prototype,"sendCurrentMobileSMSCode"),rn.prototype),h()(rn.prototype,"validCurrentMobileSMSCode",[qt],Object.getOwnPropertyDescriptor(rn.prototype,"validCurrentMobileSMSCode"),rn.prototype),h()(rn.prototype,"bindMobile",[Ft],Object.getOwnPropertyDescriptor(rn.prototype,"bindMobile"),rn.prototype),h()(rn.prototype,"sendCurrentEmailCode",[qt],Object.getOwnPropertyDescriptor(rn.prototype,"sendCurrentEmailCode"),rn.prototype),h()(rn.prototype,"validCurrentEmailCode",[qt],Object.getOwnPropertyDescriptor(rn.prototype,"validCurrentEmailCode"),rn.prototype),h()(rn.prototype,"bindEmail",[Vt,qt],Object.getOwnPropertyDescriptor(rn.prototype,"bindEmail"),rn.prototype),h()(rn.prototype,"bindThirdAccount",[$t,qt],Object.getOwnPropertyDescriptor(rn.prototype,"bindThirdAccount"),rn.prototype),h()(rn.prototype,"bindOrgAccount",[Wt,qt],Object.getOwnPropertyDescriptor(rn.prototype,"bindOrgAccount"),rn.prototype),h()(rn.prototype,"unbindOrgAccount",[Jt,qt],Object.getOwnPropertyDescriptor(rn.prototype,"unbindOrgAccount"),rn.prototype),h()(rn.prototype,"unbindThirdAccount",[Xt],Object.getOwnPropertyDescriptor(rn.prototype,"unbindThirdAccount"),rn.prototype),h()(rn.prototype,"getRelatedOrgAccountList",[Zt],Object.getOwnPropertyDescriptor(rn.prototype,"getRelatedOrgAccountList"),rn.prototype),h()(rn.prototype,"joinOrganization",[Yt,qt],Object.getOwnPropertyDescriptor(rn.prototype,"joinOrganization"),rn.prototype),h()(rn.prototype,"modifyOrgAccountPassword",[Qt,qt],Object.getOwnPropertyDescriptor(rn.prototype,"modifyOrgAccountPassword"),rn.prototype),h()(rn.prototype,"modifyInitPassword",[en,qt],Object.getOwnPropertyDescriptor(rn.prototype,"modifyInitPassword"),rn.prototype),h()(rn.prototype,"modifyManagerPassword",[tn],Object.getOwnPropertyDescriptor(rn.prototype,"modifyManagerPassword"),rn.prototype),h()(rn.prototype,"getManagerTickets",[nn],Object.getOwnPropertyDescriptor(rn.prototype,"getManagerTickets"),rn.prototype),rn),En=function(){function e(e,t,n,r){this.options=void 0,this._ucGateway=void 0,this._ucSession=void 0,this._ucToken=void 0,this._cachedToken=void 0,this._currentAccount=void 0,this.options=e,this._ucGateway=t,this._ucSession=n,this._ucToken=r}var t=e.prototype;return t.getCurrentAccount=function(){var e=this._ucToken.getToken();return e!==this._cachedToken&&(this._currentAccount=this._resetCurrentAccount(e),this._cachedToken=e),this._currentAccount},t.getCurrentAccountAsync=function(){var e=this;return this._ucToken.getTokenAsync().then((function(t){return t!==e._cachedToken&&(e._currentAccount=e._resetCurrentAccount(t),e._cachedToken=t),e._currentAccount}))},t._resetCurrentAccount=function(e){if(e){var t=e.account_type,n=e.source_token_account_type,r={options:this.options,ucGateway:this._ucGateway,ucSession:this._ucSession,ucToken:this._ucToken};return t===Z?new Nt(r):t===J&&n===Z?new an(r):t===J||+e.user_id?new on(r):new Tn(r)}},e}(),Pn=n(86),xn=n.n(Pn),jn=n(87),Dn=n.n(jn),Mn=function(){function e(e){var t=this,n=e.env,r=e.sdpAppId,o=e.storageType,i=e.storageExpire,a=e.keepLogin;this.get=function(e){return t.storage.get(e)},this.set=function(e,n,r,o){"boolean"==typeof o&&yt._setKeepLoginFlag({sdpAppId:t.sdpAppId,env:t.env,value:o}),t.storage.set(e,n,r)},this.remove=function(e){t.storage.remove(e)},this.clear=function(){t.storage.clear()},this.env=n,this.sdpAppId=r,this.storageType=o,this.storageExpire=i,this.keepLogin=a}return Dn()(e,[{key:"storage",get:function(){if(this.keepLogin){var e=yt._getKeepLoginFlag({sdpAppId:this.sdpAppId,env:this.env});return new ie(W({sdpAppId:this.sdpAppId,env:this.env}),e?0:-1,e?te:ne)}return new ie(W({sdpAppId:this.sdpAppId,env:this.env}),this.storageExpire,this.storageType)}}]),e}();function Bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Un(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bn(Object(n),!0).forEach((function(t){p()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var In,qn,Ln,Nn,Gn,Rn,zn,Hn,Kn,Fn,Vn,$n,Wn,Jn,Xn,Zn,Yn,Qn,er,tr,nr,rr,or,ir,ar,sr,cr=(un=Ee([{key:"options",path:"0",validator:$e.object,config:{required:!1}},{key:"env",path:"0.env",validator:$e.string,config:{required:!1}},{key:"sdpAppId",path:"0.sdpAppId",validator:$e.string,config:{required:!1}},{key:"sso",path:"0.sso",validator:$e.boolean,config:{required:!1}},{key:"orgName",path:"0.orgName",validator:$e.string,config:{required:!1}},{key:"storageExpire",path:"0.storageExpire",validator:$e.number,config:{required:!1}},{key:"origins",path:"0.origins",validator:$e.object,config:{required:!1}}],!1),dn=Ee([{key:"isForce",path:"0",validator:$e.boolean,config:{required:!1}}]),pn=Ee([{key:"isForce",path:"0",validator:$e.boolean,config:{required:!1}},{key:"isBlob",path:"0",validator:$e.boolean,config:{required:!1}}]),fn=Ee([{key:"identifyCode",path:"0",validator:$e.string}]),hn=Ee([{key:"options",path:"0",validator:$e.object},{key:"loginName",path:"0.loginName",validator:$e.string,config:{enableEmptyString:!1}},{key:"zhitongPassword",path:"0.zhitongPassword",validator:$e.string,config:{required:!1}},{key:"password",path:"0.password",validator:$e.string,config:{enableEmptyString:!1}},{key:"identifyCode",path:"0.identifyCode",validator:$e.string,config:{required:!1}},{key:"loginNameType",path:"0.loginNameType",validator:$e.string,config:{required:!1}},{key:"accountType",path:"0.accountType",validator:$e.string,config:{required:!1}},{key:"countryCode",path:"0.countryCode",validator:$e.string,config:{required:!1}},{key:"orgCode",path:"0.orgCode",validator:$e.string,config:{required:!1}},{key:"isGetTicketForLogin",path:"0.isGetTicketForLogin",validator:$e.boolean,config:{required:!1}},{key:"keepLogin",path:"1",validator:$e.boolean,config:{required:!1}}]),ln=Ee([{key:"options",path:"0",validator:$e.object},{key:"ticket",path:"0.ticket",validator:$e.string,config:{enableEmptyString:!1}},{key:"smsCode",path:"0.smsCode",validator:$e.string,config:{enableEmptyString:!1}},{key:"keepLogin",path:"1",validator:$e.boolean,config:{required:!1}}]),gn=Ee([{key:"token",path:"0",validator:$e.object}]),yn=Ee([{key:"minEffectiveTime",path:"0",validator:$e.number,config:{required:!1}}]),vn=Ee([{key:"options",path:"0",validator:$e.object},{key:"replace",path:"1",validator:$e.boolean,config:{required:!1}}]),_n=Ee([{key:"options",path:"0",validator:$e.object},{key:"opType",path:"0.opType",validator:$e.number},{key:"mobile",path:"0.mobile",validator:$e.string,config:{required:!1}},{key:"countryCode",path:"0.countryCode",validator:$e.string,config:{required:!1}},{key:"identifyCode",path:"0.identifyCode",validator:$e.string,config:{required:!1}},{key:"authVerify",path:"0.authVerify",validator:$e.boolean,config:{required:!1}},{key:"smsType",path:"0.smsType",validator:$e.number,config:{required:!1}},{key:"dataEncrypted",path:"0.dataEncrypted",validator:$e.boolean,config:{required:!1}}]),mn=Ee([{key:"options",path:"0",validator:$e.object},{key:"opType",path:"0.opType",validator:$e.number},{key:"ticket",path:"0.ticket",validator:$e.string,config:{enableEmptyString:!1}},{key:"identifyCode",path:"0.identifyCode",validator:$e.string,config:{required:!1}}]),bn=Ee([{key:"options",path:"0",validator:$e.object},{key:"opType",path:"0.opType",validator:$e.number},{key:"email",path:"0.email",validator:$e.string,config:{enableEmptyString:!1}},{key:"identifyCode",path:"0.identifyCode",validator:$e.string,config:{required:!1}},{key:"authVerify",path:"0.authVerify",validator:$e.boolean,config:{required:!1}}]),wn=Ee([{key:"options",path:"0",validator:$e.object},{key:"password",path:"0.password",validator:$e.string,config:{enableEmptyString:!1}}]),kn=Ee([{key:"options",path:"0",validator:$e.object},{key:"ticket",path:"0.ticket",validator:$e.string},{key:"keepLogin",path:"1",validator:$e.boolean,config:{required:!1}}]),On=Ee([{key:"options",path:"0",validator:$e.object},{key:"enable",path:"0.enable",validator:$e.boolean}]),Cn=An=function(){function e(t){this.options=void 0,this._ucGateway=void 0,this._ucSession=void 0,this._ucToken=void 0,this._ucAccount=void 0,this._isRefreshing=void 0,this._validateUCOptions(t);var n=t=wt()({},e.defaultOptions,t),r=n.env,o=n.sdpAppId,i=n.storageType,a=n.storageExpire,s=n.customStorage,c=n.deviceId;"boolean"==typeof yt._getKeepLoginFlag({sdpAppId:o,env:r})&&void 0===t.keepLogin&&(t.keepLogin=!0,F.a.warn("UC-SDK: LocalStorage 中存在自动登录标识，自动开启《自动登录》功能")),t.sso&&(o||(t.sso=!1,F.a.warn("UC-SDK: 未指定sdpAppId，SSO自动关闭")),"undefined"!=typeof navigator&&navigator.cookieEnabled||(t.sso=!1,F.a.warn("UC-SDK: 当前环境不支持SSO，SSO自动关闭"))),t.mode===ee&&(j.e.Bridge?(t.sso=!1,F.a.warn("UC-SDK: 应用工厂模式下，SSO自动关闭")):(t.mode=Q,F.a.warn("UC-SDK: 未连接JSBridge，使用默认模式"))),t.keepLogin&&(t.sso=!1,F.a.warn("UC-SDK: 《自动登录》功能下，SSO自动关闭")),c&&!function(e){var t=e.slice(0,1),n=e.slice(2);return!(!n||me(n)!==t)}(c)&&(t.deviceId="",F.a.warn("UC-SDK: 设备ID格式错误，自动忽略该参数")),j.c.cookieEnabled||(t.storageType=te,F.a.warn("UC-SDK: 当前环境不支持cookie，storageType使用默认模式")),F.a.warn("UC-SDK: ",t),s&&ie.setStorage(s);var u=new ie,d=new Mn({env:r,mode:t.mode,sdpAppId:o,storageType:i,storageExpire:a,keepLogin:t.keepLogin}),p=new Mn({sdpAppId:o,env:r&&r.replace&&r.replace("___forLogin","")},3600),f=new ie("ND_UC_SESSION-".concat(o,"&").concat(r,"&"),-1),h=new Oe(t,u),l=new Se(t,h,f),g=new vt(t,l,h,d,p);t.errorTracker&&kt.init(t,h,d),this.options=t,this._headerManager=h,this._ucGateway=g,this._ucSession=l,this._ucToken=new St(t,g,d),this._ucAccount=new En(t,g,l,this._ucToken),this._isRefreshing=!1}var t=e.prototype;return t._validateUCOptions=function(e){},t.getSession=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._ucSession.getSession(e)},t.getToken=function(){return this._ucToken.getToken()},t.getTokenAsync=function(e){return this._ucToken.getTokenAsync(e)},t.getCurrentAccount=function(){return this._ucAccount.getCurrentAccount()},t.getCurrentAccountAsync=function(){return this._ucAccount.getCurrentAccountAsync()},t.getIdentifyCodePath=function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n?this.getSession(t).then((function(t){return e._ucGateway.getIdentifyCode(t.session_id,n).then((function(e){return URL.createObjectURL(e)}))})):this.getSession(t).then((function(t){return e._ucGateway.getIdentifyCode(t.session_id)}))},t.validIdentifyCode=function(e){var t=this;return this.getSession().then((function(n){return t._ucGateway.validIdentifyCode(n.session_id,e)}))},t.isLogin=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.isForce,n=void 0===t||t,r=e.sso,o=void 0===r?null:r,i=e.ticket,a=void 0===i?"":i;return xe()(e)&&(n=arguments[0],o=arguments[1]||null,a=arguments[2]||""),n?this._ucToken.isLogin(o,a):this.getTokenAsync().then((function(e){return!!e}))},t._login=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.loginName,r=t.password,o=t.identifyCode,i=t.loginNameType,a=t.accountType,s=t.countryCode,c=t.orgCode,u=t.isGetTicketForLogin,d=t.authVerify,p=t.zhitongPassword,f=arguments.length>1?arguments[1]:void 0,h=d||!1;return this.getSession().then((function(t){var d=t.session_id,l=t.session_key,g=Object(ae.h)(n,l),y=Object(ae.h)(m()(r,$),l),v={session_id:d,login_name_type:i,login_name:g,account_type:a,country_code:s,org_code:c,password:y,identify_code:o};return p&&(v.zhitong_password=Object(ae.h)(m()(p),l)),u?e._ucGateway.getLoginTicketByPassword(v):e._ucGateway.loginByPassword(v,h).then((function(e){return Object(ae.d)(e,l)})).then((function(t){return e._ucToken.saveToken(t,f)}))}))},t.loginByTicket=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.ticket,r=t.smsCode,o=arguments.length>1?arguments[1]:void 0;return this.getSession().then((function(t){var i=t.session_id,a=t.session_key;return e._ucGateway.loginByTicket({session_id:i,ticket:n,sms_code:r}).then((function(e){return Object(ae.d)(e,a)})).then((function(t){return e._ucToken.saveToken(t,o)}))}))},t.loginByUCKey=function(e){var t=this;e||(e=Object(N.e)(Object(N.d)(j.b.href)));var n=e,r=n.uckey,o=n.__mac,i=n.auth,a=n.method,s=void 0===a?"GET":a,c=e.url,u=r||o||i;c||(c=j.d),u||F.a.error("missing parameter uckey or __mac or auth");try{"function"==typeof decodeURIComponent&&(u=decodeURIComponent(u)),u.match('MAC id="([^"]*)",nonce="([^"]*)",mac="([^"]*)"')||(u=v.a.decoder(u))}catch(e){F.a.error("decode UCKey fail")}var d=ue(u,c),p=d.access_token,f=d.nonce,h=d.mac,l=d.request_uri,g=d.host,y=s;return this._ucGateway.validToken(p,{nonce:f,mac:h,request_uri:l,host:g,http_method:y}).then((function(e){return t._ucToken.saveToken(e)}))},t.loginByToken=function(e){var t=this;return this._ucToken.validToken(e).then((function(e){return t._ucToken.saveToken(e)}))},t.logout=function(){return this._ucSession.removeSession(),this._ucToken.logout()},t.getAuthHeader=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n=e.method,r=void 0===n?"GET":n,o=e.useToken,i=void 0===o?null:o;if("string"==typeof e&&(t=arguments[0],r=arguments[1]||"GET",i=arguments[2]||null),!t)return F.a.error("UC-SDK: ","缺少参数url"),"";var a=i||this.getToken();return a?ce(t,r,{accessToken:a.access_token,macKey:a.mac_key,diff:a.diff}):(F.a.warn("UC-SDK: ","当前SDK实例未登录"),"")},t.getAuthHeaderAsync=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.url,r=t.method,o=void 0===r?"GET":r,i=t.useToken,a=void 0===i?null:i,s=t.type,c=void 0===s?"":s;return"string"==typeof t&&(n=arguments[0],o=arguments[1]||"GET",a=arguments[2]||null,c=arguments[3]||""),n?Promise.resolve(a).then((function(t){return t||e.getTokenAsync(c)})).then((function(e){return e?ce(n,o,{accessToken:e.access_token,macKey:e.mac_key,diff:e.diff}):(F.a.warn("UC-SDK: ","当前SDK实例未登录"),"")})):(F.a.error("UC-SDK: ","缺少参数url"),"")},t.getRequsetAuthHeader=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n=e.method,r=void 0===n?"GET":n,o=e.useToken,i=e.serverTime;if("string"==typeof e&&(t=arguments[0],r=arguments[1]||"GET",o=arguments[2]),!t)return F.a.error("UC-SDK: ","缺少参数url"),"";if(!o)return F.a.warn("UC-SDK: ","当前SDK实例未登录"),"";var a=fe(i),s=de(t,a,r,o.mac_key),c='MAC id="'.concat(o.access_token,'",nonce="').concat(a,'",mac="').concat(s,'"');return c},t.getAuthHeaderWithErrorCode=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._isRefreshing?"UCSDK/TOKEN_REFRESHING":this.getAuthHeader(e)},t.generateUCKey=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n=e.useToken,r=void 0===n?null:n;"string"==typeof e&&(t=arguments[0],r=arguments[1]||null);var o=r||this.getToken();if(!o)return F.a.warn("UC-SDK: ","当前SDK实例未登录"),"";var i=w.a.parse(t||j.b.href||"https://uc.101.com/"),a=i.protocol+"://"+i.host+(i.port?":"+i.port:""),s=a+(t&&i.relative||"/"),c="Authorization: ".concat(this.getAuthHeader({url:s,method:"GET",useToken:r}))+(t?"":',request_uri="/",host="'.concat(i.authority,'"'));return v.a.encoder(c)},t.generateUCKeyAsync=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.url,r=t.useToken,o=void 0===r?null:r;return"string"==typeof t&&(n=arguments[0],o=arguments[1]||null),Promise.resolve(o).then((function(t){return t||e.getTokenAsync()})).then((function(t){if(!t)return F.a.warn("UC-SDK: ","当前SDK实例未登录"),"";var r=w.a.parse(n||j.b.href||"https://uc.101.com/"),i=r.protocol+"://"+r.host+(r.port?":"+r.port:"")+(n&&r.relative||"/"),a="Authorization: ".concat(e.getAuthHeader({url:i,method:"GET",useToken:o}))+(n?"":',request_uri="/",host="'.concat(r.authority,'"'));return v.a.encoder(a)}))},t.generateMac=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url;"string"==typeof e&&(t=arguments[0]);var n=this.getAuthHeader({url:t});return v.a.encoder(n)},t.generateAuth=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url;"string"==typeof e&&(t=arguments[0]);var n=this.getAuthHeader({url:t});return"function"==typeof encodeURIComponent?encodeURIComponent(n):v.a.encoder(n)},t.refreshToken=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this._isRefreshing=!0,this._ucToken.refreshToken(t).finally((function(){e._isRefreshing=!1}))},t.cloneToken=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._ucToken.cloneToken(t).then((function(n){return t&&e._ucToken.saveToken(n),n}))},t.exchangeToken=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.getSession().then((function(r){var o=r.session_id,i=r.session_key,a=e.user_id,s=e.account_id,c=e.password;return a&&(e.user_id=Object(ae.h)(a,i)),s&&(e.account_id=Object(ae.h)(s,i)),c&&(e.password=Object(ae.h)(m()(c,$),i)),t._ucToken.exchangeToken(Un({session_id:o},e),n).then((function(e){return Object(ae.d)(e,i)})).then((function(e){return n&&t._ucToken.saveToken(e),e.diff=e.server_time?mt()(e.server_time).toNumber()-mt()().toNumber():0,e}))}))},t.sendSMSCode=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.opType,r=t.mobile,o=t.countryCode,i=t.identifyCode,a=t.authVerify,s=t.smsType,c=t.dataEncrypted,u=void 0===c||c,d=a||!1;return this.getSession().then((function(t){return e._ucGateway.sendSMSCode(t.session_id,d,{op_type:n,country_code:o,mobile:u&&r?Object(ae.h)(r,t.session_key):r,identify_code:i,sms_type:s||0,data_encrypted:u})}))},t.sendSMSCodeByTicket=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.opType,r=t.ticket,o=t.identifyCode;return this.getSession().then((function(t){return e._ucGateway.sendSMSCodeByTicket(t.session_id,{ticket:r,op_type:n,identify_code:o})}))},t.sendEmailCode=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.opType,r=t.email,o=t.identifyCode,i=t.authVerify,a=i||!1;return this.getSession().then((function(t){return e._ucGateway.sendEmailCode(t.session_id,a,{op_type:n,email:r,identify_code:o})}))},t.getServerTime=function(){return this._ucGateway.getServerTime()},t.getAvatarURL=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.userId,n=e.accountId,r=e.size,o=void 0===r?80:r,i=e.ext,a=void 0===i?"":i,s=e.lang,c=void 0===s?"":s,u="?SDP-APP-ID=".concat(this.options.sdpAppId||"","&size=").concat(o,"&ext=").concat(a,"&Accept-Language=").concat(c);return t?this._ucGateway.getOrgAccountAvatarURL(t,u):n?this._ucGateway.getPersonAccountAvatarURL(n,u):""},t.getAvatarURLAsync=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.userId,n=(e.accountId,e.size),r=void 0===n?80:n,o=e.ext,i=void 0===o?"":o,a=e.lang,s=void 0===a?"":a,c=e.isSendRedirect,u=void 0!==c&&c,d="?SDP-APP-ID=".concat(this.options.sdpAppId||"","&size=").concat(r,"&ext=").concat(i,"&Accept-Language=").concat(s,"&is_send_redirect=").concat(u);return this._ucGateway.getOrgAccountAvatarURLAsync(t,d)},t.verifyPassword=function(e){var t=this;return Promise.all([this.getTokenAsync(),this.getSession()]).then((function(n){var r=u()(n,2),o=r[0],i=r[1];if(!o)return Promise.reject(new E.a("UCSDK/NOT_LOGIN"));var a=i.session_id,s=i.session_key,c=e.password;return e.session_id=a,c&&(e.password=Object(ae.h)(m()(c,$),s)),t._ucGateway.verifyPassword(o,e)}))},t.getQrTickets=function(){return this._ucGateway.getQrTickets()},t.getQrTicketsStatusInfo=function(e,t){var n=this;return this.getSession().then((function(r){var o=r.session_id,i=r.session_key;return n._ucGateway.getQrTicketsStatusInfo(o,e.ticket).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(2==+e.status){var r=e.data;r=Object(ae.d)(r,i),n._ucToken.saveToken(r,t)}return e}))}))},t.queryAccountPublicInfo=function(e){var t=this;return this.getSession().then(function(){var n=s()(g.a.mark((function n(r){var o,i,a,s,c;return g.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=r.session_id,i=r.session_key,a=e.login_credentials,e.session_id=o,a&&(e.login_credentials=Object(ae.h)(a,i)),n.next=6,t.getTokenAsync();case 6:return s=n.sent,c=!xn()(s),n.abrupt("return",t._ucGateway.queryAccountPublicInfo(e,c).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.user_id,n=e.account_id,r=e.login_credential;return t&&(e.user_id=Object(ae.c)(t,i)),n&&(e.account_id=Object(ae.c)(n,i)),r&&(e.login_credential=Object(ae.c)(r,i)),e})));case 9:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}())},t.getDeviceBiometricStatus=function(){return this.options.mode===ee?ke.getDeviceBiometricStatus():Promise.reject(new Error("not in JSBridge"))},t.getBiometricAuthEnabled=function(){return this.options.mode===ee?ke.getBiometricAuthEnabled():Promise.reject(new Error("not in JSBridge"))},t.setBiometricAuthEnable=function(e){return this.options.mode===ee?ke.setBiometricAuthEnable(e):Promise.reject(new Error("not in JSBridge"))},t.isCurrentAccountUnderage=function(){var e=s()(g.a.mark((function e(t){var n,r,o,i,a;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,"org"!==(n=JSON.parse(JSON.stringify(this._ucToken.getToken()))).account_type){e.next=7;break}return e.next=5,this.getCurrentAccount().getAccountInfo();case 5:r=e.sent,n.account_id=r.account_id;case 7:return e.next=9,this.getSession();case 9:return o=e.sent,i=o.session_id,e.next=13,this._ucGateway.getPersonAccountInfo(n,t,i);case 13:return a=e.sent,e.abrupt("return",-5===a.create_type);case 17:return e.prev=17,e.t0=e.catch(0),F.a.error(e.t0),e.abrupt("return",!1);case 21:case"end":return e.stop()}}),e,this,[[0,17]])})));return function(t){return e.apply(this,arguments)}}(),t.getUcTenants=function(){return this._ucGateway.getUcTenants()},t.ssoGetTicket=function(){return this._ucGateway.ssoGetTicket().then((function(e){return v.a.encoder(e.ticket)}))},e}(),An.defaultOptions={env:V,sdpAppId:"",sso:!1,mode:Q,orgName:"",storageType:te,storageExpire:604800,errorTracker:null,autoRefresh:!1,minEffectiveTime:432e3,isSecurity:!1,isGlobalSDKCacheEnabled:!1},Sn=Cn,h()(Sn.prototype,"_validateUCOptions",[un],Object.getOwnPropertyDescriptor(Sn.prototype,"_validateUCOptions"),Sn.prototype),h()(Sn.prototype,"getSession",[dn],Object.getOwnPropertyDescriptor(Sn.prototype,"getSession"),Sn.prototype),h()(Sn.prototype,"getIdentifyCodePath",[pn],Object.getOwnPropertyDescriptor(Sn.prototype,"getIdentifyCodePath"),Sn.prototype),h()(Sn.prototype,"validIdentifyCode",[fn],Object.getOwnPropertyDescriptor(Sn.prototype,"validIdentifyCode"),Sn.prototype),h()(Sn.prototype,"_login",[hn],Object.getOwnPropertyDescriptor(Sn.prototype,"_login"),Sn.prototype),h()(Sn.prototype,"loginByTicket",[ln],Object.getOwnPropertyDescriptor(Sn.prototype,"loginByTicket"),Sn.prototype),h()(Sn.prototype,"loginByUCKey",[qt],Object.getOwnPropertyDescriptor(Sn.prototype,"loginByUCKey"),Sn.prototype),h()(Sn.prototype,"loginByToken",[gn],Object.getOwnPropertyDescriptor(Sn.prototype,"loginByToken"),Sn.prototype),h()(Sn.prototype,"refreshToken",[yn],Object.getOwnPropertyDescriptor(Sn.prototype,"refreshToken"),Sn.prototype),h()(Sn.prototype,"exchangeToken",[vn,qt],Object.getOwnPropertyDescriptor(Sn.prototype,"exchangeToken"),Sn.prototype),h()(Sn.prototype,"sendSMSCode",[_n],Object.getOwnPropertyDescriptor(Sn.prototype,"sendSMSCode"),Sn.prototype),h()(Sn.prototype,"sendSMSCodeByTicket",[mn],Object.getOwnPropertyDescriptor(Sn.prototype,"sendSMSCodeByTicket"),Sn.prototype),h()(Sn.prototype,"sendEmailCode",[bn],Object.getOwnPropertyDescriptor(Sn.prototype,"sendEmailCode"),Sn.prototype),h()(Sn.prototype,"verifyPassword",[wn,qt],Object.getOwnPropertyDescriptor(Sn.prototype,"verifyPassword"),Sn.prototype),h()(Sn.prototype,"getQrTicketsStatusInfo",[kn,qt],Object.getOwnPropertyDescriptor(Sn.prototype,"getQrTicketsStatusInfo"),Sn.prototype),h()(Sn.prototype,"queryAccountPublicInfo",[qt],Object.getOwnPropertyDescriptor(Sn.prototype,"queryAccountPublicInfo"),Sn.prototype),h()(Sn.prototype,"setBiometricAuthEnable",[On],Object.getOwnPropertyDescriptor(Sn.prototype,"setBiometricAuthEnable"),Sn.prototype),Sn),ur=(In=Ee([{key:"options",path:"0",validator:$e.object},{key:"orgUserCode",path:"0.orgUserCode",validator:$e.string,config:{enableEmptyString:!1}},{key:"password",path:"0.password",validator:$e.string,config:{enableEmptyString:!1}},{key:"identifyCode",path:"0.identifyCode",validator:$e.string,config:{required:!1}},{key:"isGetTicketForLogin",path:"0.isGetTicketForLogin",validator:$e.boolean,config:{required:!1}},{key:"keepLogin",path:"1",validator:$e.boolean,config:{required:!1}}]),qn=Ee([{key:"options",path:"0",validator:$e.object},{key:"newPassword",path:"0.newPassword",validator:$e.string,config:{enableEmptyString:!1}}]),Ln=Ee([{key:"options",path:"0",validator:$e.object},{key:"newPassword",path:"0.newPassword",validator:$e.string,config:{enableEmptyString:!1}}]),Nn=Ee([{key:"validateCode",path:"0",validator:$e.string,config:{enableEmptyString:!1}}]),Gn=Ee([{key:"options",path:"0",validator:$e.object},{key:"newPassword",path:"0.newPassword",validator:$e.string,config:{enableEmptyString:!1}},{key:"dataEncrypted",path:"0.dataEncrypted",validator:$e.boolean,config:{required:!1}}]),Rn=Ee([{key:"options",path:"0",validator:$e.object},{key:"newPassword",path:"0.newPassword",validator:$e.string,config:{enableEmptyString:!1}}]),zn=function(e){function t(){return e.apply(this,arguments)||this}i()(t,e);var n=t.prototype;return n.loginByOrgUserCode=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.orgUserCode,n=e.password,r=e.identifyCode,o=e.isGetTicketForLogin,i=arguments.length>1?arguments[1]:void 0,a=Y,s=t,c=this.options.orgName;if(a.test(t)){var u=t.lastIndexOf("@");s=t.substring(0,u),c=t.substring(u+1)}return this._login({loginName:s,password:n,identifyCode:r,loginNameType:"org_user_code",accountType:"org",orgCode:c,isGetTicketForLogin:o},i)},n.resetOrgAccountPasswordBySMS=function(e){var t=this;return this.getSession().then((function(n){var r=n.session_id,o=n.session_key,i=e.new_password;return i&&(e.new_password=Object(ae.h)(m()(i,$),o)),e.session_id=r,t._ucGateway.resetOrgAccountPasswordBySMS(e)})).then((function(n){return e.auto_login&&t._ucToken.saveToken(n),n}))},n.resetOrgAccountPasswordByEmail=function(e){var t=this;return this.getSession().then((function(n){var r=n.session_id,o=n.session_key,i=e.new_password,a=e.email_verification_mode;return i&&(e.new_password=Object(ae.h)(m()(i,$),o)),e.session_id=r,void 0===a&&(e.email_verification_mode=e.mode),t._ucGateway.resetOrgAccountPasswordByEmail(e)})).then((function(n){return e.auto_login&&t._ucToken.saveToken(n),n}))},n.confirmBindingOrgAccountEmail=function(e){return this._ucGateway.confirmBindingOrgAccountEmail(e)},n.resetOrgAccountPasswordByGuardianSMS=function(e){var t=this;return this.getSession().then((function(n){var r=n.session_id,o=n.session_key,i=e.new_password,a=e.dataEncrypted,s=void 0===a||a;return i&&(e.new_password=Object(ae.h)(m()(i,$),o)),e.session_id=r,e.mobile=s?Object(ae.h)(e.mobile,o):e.mobile,e.data_encrypted=s,t._ucGateway.resetOrgAccountPasswordByGuardianSMS(e)})).then((function(n){return e.auto_login&&t._ucToken.saveToken(n),n}))},n.resetOrgAccountPasswordByGuardianEmail=function(e){var t=this;return this.getSession().then((function(n){var r=n.session_id,o=n.session_key,i=e.new_password;return i&&(e.new_password=Object(ae.h)(m()(i,$),o)),e.session_id=r,t._ucGateway.resetOrgAccountPasswordByGuardianEmail(e)})).then((function(n){return e.auto_login&&t._ucToken.saveToken(n),n}))},t}(cr),h()(zn.prototype,"loginByOrgUserCode",[In],Object.getOwnPropertyDescriptor(zn.prototype,"loginByOrgUserCode"),zn.prototype),h()(zn.prototype,"resetOrgAccountPasswordBySMS",[qn,qt],Object.getOwnPropertyDescriptor(zn.prototype,"resetOrgAccountPasswordBySMS"),zn.prototype),h()(zn.prototype,"resetOrgAccountPasswordByEmail",[Ln,qt],Object.getOwnPropertyDescriptor(zn.prototype,"resetOrgAccountPasswordByEmail"),zn.prototype),h()(zn.prototype,"confirmBindingOrgAccountEmail",[Nn],Object.getOwnPropertyDescriptor(zn.prototype,"confirmBindingOrgAccountEmail"),zn.prototype),h()(zn.prototype,"resetOrgAccountPasswordByGuardianSMS",[Gn,qt],Object.getOwnPropertyDescriptor(zn.prototype,"resetOrgAccountPasswordByGuardianSMS"),zn.prototype),h()(zn.prototype,"resetOrgAccountPasswordByGuardianEmail",[Rn,qt],Object.getOwnPropertyDescriptor(zn.prototype,"resetOrgAccountPasswordByGuardianEmail"),zn.prototype),zn);function dr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dr(Object(n),!0).forEach((function(t){p()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fr,hr,lr,gr=(Hn=Ee([{key:"options",path:"0",validator:$e.object},{key:"mobile",path:"0.mobile",validator:$e.string,config:{enableEmptyString:!1}},{key:"password",path:"0.password",validator:$e.string,config:{enableEmptyString:!1}},{key:"identifyCode",path:"0.identifyCode",validator:$e.string,config:{required:!1}},{key:"countryCode",path:"0.countryCode",validator:$e.string,config:{required:!1}},{key:"isGetTicketForLogin",path:"0.isGetTicketForLogin",validator:$e.boolean,config:{required:!1}},{key:"keepLogin",path:"1",validator:$e.boolean,config:{required:!1}}]),Kn=Ee([{key:"options",path:"0",validator:$e.object},{key:"email",path:"0.email",validator:$e.string,config:{enableEmptyString:!1}},{key:"password",path:"0.password",validator:$e.string,config:{enableEmptyString:!1}},{key:"identifyCode",path:"0.identifyCode",validator:$e.string,config:{required:!1}},{key:"isGetTicketForLogin",path:"0.isGetTicketForLogin",validator:$e.boolean,config:{required:!1}},{key:"keepLogin",path:"1",validator:$e.boolean,config:{required:!1}}]),Fn=Ee([{key:"options",path:"0",validator:$e.object},{key:"userName",path:"0.userName",validator:$e.string,config:{enableEmptyString:!1}},{key:"password",path:"0.password",validator:$e.string,config:{enableEmptyString:!1}},{key:"identifyCode",path:"0.identifyCode",validator:$e.string,config:{required:!1}},{key:"isGetTicketForLogin",path:"0.isGetTicketForLogin",validator:$e.boolean,config:{required:!1}},{key:"keepLogin",path:"1",validator:$e.boolean,config:{required:!1}}]),Vn=Ee([{key:"options",path:"0",validator:$e.object},{key:"mobile",path:"0.mobile",validator:$e.string,config:{enableEmptyString:!1}},{key:"smsCode",path:"0.smsCode",validator:$e.string,config:{enableEmptyString:!1}},{key:"countryCode",path:"0.countryCode",validator:$e.string,config:{required:!1}},{key:"keepLogin",path:"1",validator:$e.boolean,config:{required:!1}},{key:"authVerify",path:"0.authVerify",validator:$e.boolean,config:{required:!1}},{key:"countryCodeAlpha2",path:"0.countryCodeAlpha2",validator:$e.string,config:{required:!1}}]),$n=Ee([{key:"options",path:"0",validator:$e.object},{key:"email",path:"0.email",validator:$e.string,config:{enableEmptyString:!1}},{key:"emailCode",path:"0.emailCode",validator:$e.string,config:{enableEmptyString:!1}},{key:"keepLogin",path:"1",validator:$e.boolean,config:{required:!1}},{key:"authVerify",path:"0.authVerify",validator:$e.boolean,config:{required:!1}},{key:"countryCodeAlpha2",path:"0.countryCodeAlpha2",validator:$e.string,config:{required:!1}}]),Wn=Ee([{key:"options",path:"0",validator:$e.object},{key:"thirdPlatAppId",path:"0.thirdPlatAppId",validator:$e.string,config:{enableEmptyString:!1}},{key:"openId",path:"0.openId",validator:$e.string,config:{enableEmptyString:!1}},{key:"thirdPlatType",path:"0.thirdPlatType",validator:$e.string,config:{enableEmptyString:!1}},{key:"thirdAccessToken",path:"0.thirdAccessToken",validator:$e.string,config:{enableEmptyString:!1}},{key:"autoRegister",path:"0.autoRegister",validator:$e.boolean,config:{required:!1}},{key:"keepLogin",path:"1",validator:$e.boolean,config:{required:!1}}]),Jn=Ee([{key:"options",path:"0",validator:$e.object},{key:"code",path:"0.code",validator:$e.string,config:{enableEmptyString:!1}},{key:"sdpAppId",path:"0.sdpAppId",validator:$e.string,config:{enableEmptyString:!1}},{key:"thirdPlatType",path:"0.thirdPlatType",validator:$e.string,config:{enableEmptyString:!1}}]),Xn=Ee([{key:"options",path:"0",validator:$e.object},{key:"mobile",path:"0.mobile",validator:$e.string,config:{enableEmptyString:!1}},{key:"password",path:"0.password",validator:$e.string,config:{enableEmptyString:!1}},{key:"smsCode",path:"0.smsCode",validator:$e.string,config:{enableEmptyString:!1}},{key:"nickName",path:"0.nickName",validator:$e.string,config:{required:!1}},{key:"countryCode",path:"0.countryCode",validator:$e.string,config:{required:!1}},{key:"autoLogin",path:"0.autoLogin",validator:$e.boolean,config:{required:!1}},{key:"registerChannel",path:"0.registerChannel",validator:$e.string,config:{required:!1}},{key:"countryCodeAlpha2",path:"0.countryCodeAlpha2",validator:$e.string,config:{required:!1}}]),Zn=Ee([{key:"options",path:"0",validator:$e.object},{key:"email",path:"0.email",validator:$e.string,config:{enableEmptyString:!1}},{key:"password",path:"0.password",validator:$e.string,config:{enableEmptyString:!1}},{key:"nickName",path:"0.nickName",validator:$e.string,config:{required:!1}},{key:"emailCode",path:"0.emailCode",validator:$e.string,config:{required:!1,enableEmptyString:!1}},{key:"autoLogin",path:"0.autoLogin",validator:$e.boolean,config:{required:!1}},{key:"registerChannel",path:"0.registerChannel",validator:$e.string,config:{required:!1}},{key:"countryCodeAlpha2",path:"0.countryCodeAlpha2",validator:$e.string,config:{required:!1}}]),Yn=Ee([{key:"options",path:"0",validator:$e.object},{key:"userName",path:"0.userName",validator:$e.string,config:{enableEmptyString:!1}},{key:"password",path:"0.password",validator:$e.string,config:{enableEmptyString:!1}},{key:"nickName",path:"0.nickName",validator:$e.string,config:{required:!1}},{key:"autoLogin",path:"0.autoLogin",validator:$e.boolean,config:{required:!1}},{key:"registerChannel",path:"0.registerChannel",validator:$e.string,config:{required:!1}},{key:"countryCodeAlpha2",path:"0.countryCodeAlpha2",validator:$e.string,config:{required:!1}}]),Qn=Ee([{key:"options",path:"0",validator:$e.object},{key:"userName",path:"0.userName",validator:$e.string,config:{enableEmptyString:!1}},{key:"password",path:"0.password",validator:$e.string,config:{enableEmptyString:!1}},{key:"guardianMobile",path:"0.guardianMobile",validator:$e.string,config:{enableEmptyString:!1}},{key:"verifyCode",path:"0.verifyCode",validator:$e.string,config:{enableEmptyString:!1}},{key:"nickName",path:"0.nickName",validator:$e.string,config:{required:!1}},{key:"countryCode",path:"0.countryCode",validator:$e.string,config:{required:!1}},{key:"autoLogin",path:"0.autoLogin",validator:$e.boolean,config:{required:!1}},{key:"registerChannel",path:"0.registerChannel",validator:$e.string,config:{required:!1}},{key:"countryCodeAlpha2",path:"0.countryCodeAlpha2",validator:$e.string,config:{required:!1}}]),er=Ee([{key:"options",path:"0",validator:$e.object},{key:"mobile",path:"0.mobile",validator:$e.string,config:{enableEmptyString:!1}},{key:"smsCode",path:"0.smsCode",validator:$e.string,config:{enableEmptyString:!1}},{key:"newPassword",path:"0.newPassword",validator:$e.string,config:{enableEmptyString:!1}},{key:"dataEncrypted ",path:"0.dataEncrypted ",validator:$e.boolean,config:{required:!1}}]),tr=Ee([{key:"options",path:"0",validator:$e.object},{key:"email",path:"0.email",validator:$e.string,config:{required:!1,enableEmptyString:!1}},{key:"emailCode",path:"0.emailCode",validator:$e.string,config:{enableEmptyString:!1}},{key:"newPassword",path:"0.newPassword",validator:$e.string,config:{enableEmptyString:!1}}]),nr=Ee([{key:"options",path:"0",validator:$e.object},{key:"mobile",path:"0.mobile",validator:$e.string,config:{enableEmptyString:!1}},{key:"smsCode",path:"0.smsCode",validator:$e.string,config:{enableEmptyString:!1}},{key:"newPassword",path:"0.newPassword",validator:$e.string,config:{enableEmptyString:!1}},{key:"dataEncrypted",path:"0.dataEncrypted",validator:$e.boolean,config:{required:!1}}]),rr=Ee([{key:"options",path:"0",validator:$e.object},{key:"email",path:"0.email",validator:$e.string,config:{required:!1,enableEmptyString:!1}},{key:"emailCode",path:"0.emailCode",validator:$e.string,config:{enableEmptyString:!1}},{key:"newPassword",path:"0.newPassword",validator:$e.string,config:{enableEmptyString:!1}}]),or=Ee([{key:"options",path:"0",validator:$e.object},{key:"email",path:"0.email",validator:$e.string,config:{enableEmptyString:!1}},{key:"cipherStrength",path:"0.cipherStrength",validator:$e.number},{key:"resetUri",path:"0.resetUri",validator:$e.string,config:{required:!1}}]),ir=Ee([{key:"validateCode",path:"0",validator:$e.string,config:{enableEmptyString:!1}}]),ar=Ee([{key:"userName",path:"0",validator:$e.string,config:{enableEmptyString:!1}}]),sr=function(e){function t(){return e.apply(this,arguments)||this}i()(t,e);var n=t.prototype;return n.loginByMobile=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mobile,n=e.password,r=e.identifyCode,o=e.countryCode,i=e.isGetTicketForLogin,a=arguments.length>1?arguments[1]:void 0;return this._login({loginName:t,password:n,identifyCode:r,loginNameType:"mobile",accountType:"person",countryCode:o,isGetTicketForLogin:i},a)},n.loginByEmail=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.email,n=e.password,r=e.identifyCode,o=e.isGetTicketForLogin,i=arguments.length>1?arguments[1]:void 0;return this._login({loginName:t,password:n,identifyCode:r,loginNameType:"email",accountType:"person",isGetTicketForLogin:o},i)},n.loginByUserName=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.userName,n=e.password,r=e.identifyCode,o=e.isGetTicketForLogin,i=arguments.length>1?arguments[1]:void 0;return this._login({loginName:t,password:n,identifyCode:r,loginNameType:"user_name",accountType:"person",isGetTicketForLogin:o},i)},n.loginBySMS=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.mobile,r=t.smsCode,o=t.countryCode,i=t.authVerify,a=t.countryCodeAlpha2,s=arguments.length>1?arguments[1]:void 0,c=i||!1;return this.getSession().then((function(t){var i=t.session_id,u=t.session_key,d=pr({session_id:i,country_code:o,mobile:n,sms_code:r},a&&{country_code_alpha2:a});return e._ucGateway.loginBySMS(d,c).then((function(e){return Object(ae.d)(e,u)})).then((function(t){return e._ucToken.saveToken(t,s)}))}))},n.loginByEmailCode=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.email,r=t.emailCode,o=t.authVerify,i=t.countryCodeAlpha2,a=arguments.length>1?arguments[1]:void 0,s=o||!1;return this.getSession().then((function(t){var o=t.session_id,c=t.session_key;n&&(n=Object(ae.h)(n,c));var u=pr({session_id:o,email_code:r,email:n},i&&{country_code_alpha2:i});return e._ucGateway.loginByEmailCode(u,s).then((function(e){return Object(ae.d)(e,c)})).then((function(t){return e._ucToken.saveToken(t,a)}))}))},n.loginByGuest=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=this._headerManager.getDeviceID(),o=this.getSession();return Promise.all([o,r]).then((function(r){var o=u()(r,2),i=o[0],a=o[1],s=i.session_id,c=i.session_key;return t.session_id=s,t.device_id=Object(ae.h)(a,c),e._ucGateway.loginByGuest(t).then((function(e){return Object(ae.d)(e,c)})).then((function(t){return e._ucToken.saveToken(t,n)}))}))},n.loginByGuestClear=function(){var e=this,t={},n=this._headerManager.getDeviceID(),r=this.getSession();return Promise.all([r,n]).then((function(n){var r=u()(n,2),o=r[0],i=r[1],a=o.session_id,s=o.session_key;return t.session_id=a,t.device_id=Object(ae.h)(i,s),e._ucGateway.loginByGuest(t).then((function(e){return Object(ae.d)(e,s)}))}))},n.loginByThirdAccount=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return this.getSession(!0).then((function(r){var o=r.session_id,i=r.session_key;return t.session_id=o,e._ucGateway.loginByThirdAccount(t).then((function(e){return Object(ae.d)(e,i)})).then((function(t){return e._ucToken.saveToken(t,n)}))}))},n.loginByThird=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.data.session_id?(t.data=t.data||{},this._ucGateway.requestAdapter(t,!1).then((function(e){return Object(ae.d)(e,t.data.session_key)}))):this.getSession(!0).then((function(n){var r=n.session_id,o=n.session_key;return t.data=t.data||{},t.data.session_id=r,e._ucGateway.requestAdapter(t,!1).then((function(e){return Object(ae.d)(e,o)}))}))},n.thirdAutoBind=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.getSession().then((function(n){var r=n.session_id,o=n.session_key;return t.data=t.data||{},t.data.session_id=r,e._ucGateway.requestAdapter(t,!1).then((function(e){return Object(ae.d)(e,o)}))}))},n.getThirdAccessTokenByCode=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._ucGateway.getThirdAccessTokenByCode(e)},n.registerByMobile=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.mobile,r=t.password,o=t.smsCode,i=t.nickName,a=t.countryCode,s=t.autoLogin,c=t.registerChannel,d=t.countryCodeAlpha2;return Promise.all([this.getSession(),this.getTokenAsync()]).then((function(t){var p=u()(t,2),f=p[0],h=p[1],l=f.session_id,g=f.session_key,y=pr({session_id:l,mobile:Object(ae.h)(n,g),password:Object(ae.h)(m()(r,$),g),sms_code:o,nick_name:i,country_code:a,auto_login:s,register_channel:c},d&&{country_code_alpha2:d}),v=h&&h.account_type===Z;return e._ucGateway.registerPersonAccountByMobile(y,v).then((function(t){return t=Object(ae.d)(t,g),s&&e._ucToken.saveToken(t),t}))}))},n.registerByEmail=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Promise.all([this.getSession(),this.getTokenAsync()]).then((function(n){var r=u()(n,2),o=r[0],i=r[1],a=o.session_id,s=o.session_key,c=t.email,d=t.password,p=t.email_verification_mode,f=t.auto_login;t.session_id=a,c&&(t.email=Object(ae.h)(c,s)),d&&(t.password=Object(ae.h)(m()(d,$),s)),void 0===p&&(t.email_verification_mode=t.mode);var h=i&&i.account_type===Z;return e._ucGateway.registerPersonAccountByEmail(t,h).then((function(t){return t=Object(ae.d)(t,s),f&&e._ucToken.saveToken(t),t}))}))},n.registerByUserName=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.userName,r=t.password,o=t.nickName,i=t.autoLogin,a=t.countryCodeAlpha2;return Promise.all([this.getSession(),this.getTokenAsync()]).then((function(t){var s=u()(t,2),c=s[0],d=s[1],p=c.session_id,f=c.session_key,h=pr({session_id:p,user_name:Object(ae.h)(n,f),password:Object(ae.h)(m()(r,$),f),nick_name:o,auto_login:i,register_channel:registerChannel},a&&{country_code_alpha2:a}),l=d&&d.account_type===Z;return e._ucGateway.registerPersonAccountByUserName(h,l).then((function(t){return t=Object(ae.d)(t,f),i&&e._ucToken.saveToken(t),t}))}))},n.registerByUnderage=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.userName,r=t.password,o=t.guardianMobile,i=t.verifyCode,a=t.nickName,s=t.countryCode,c=t.autoLogin,d=t.registerChannel,p=t.countryCodeAlpha2;return Promise.all([this.getSession(),this.getTokenAsync()]).then((function(t){var f=u()(t,2),h=f[0],l=f[1],g=h.session_id,y=h.session_key,v=Object(ae.h)(n,y),_=Object(ae.h)(m()(r,$),y),b=Object(ae.h)(o,y),w=pr({session_id:g,user_name:v,password:_,nick_name:a,auto_login:c,guardian_mobile:b,verify_code:i,country_code:s,register_channel:d},p&&{country_code_alpha2:p}),k=l&&l.account_type===Z;return e._ucGateway.registerPersonAccountByUnderage(w,k).then((function(t){return t=Object(ae.d)(t,y),c&&e._ucToken.saveToken(t),t}))}))},n.resetPasswordBySMS=function(e){var t=this;return this.getSession().then((function(n){var r=n.session_id,o=n.session_key,i=e.new_password,a=e.dataEncrypted,s=void 0===a||a;return i&&(e.new_password=Object(ae.h)(m()(i,$),o)),e.mobile=s?Object(ae.h)(e.mobile,o):e.mobile,e.session_id=r,e.data_encrypted=s,t._ucGateway.resetPersonAccountPasswordBySMS(e)})).then((function(n){return e.auto_login&&t._ucToken.saveToken(n),n}))},n.resetPasswordByEmail=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.getSession().then((function(n){var r=n.session_id,o=n.session_key,i=t.new_password,a=t.email_verification_mode;return i&&(t.new_password=Object(ae.h)(m()(i,$),o)),t.session_id=r,void 0===a&&(t.email_verification_mode=t.mode),e._ucGateway.resetPersonAccountPasswordByEmail(t)})).then((function(n){return t.auto_login&&e._ucToken.saveToken(n),n}))},n.resetPasswordByGuardianSMS=function(e){var t=this;return this.getSession().then((function(n){var r=n.session_id,o=n.session_key,i=e.new_password,a=e.dataEncrypted,s=void 0===a||a;return i&&(e.new_password=Object(ae.h)(m()(i,$),o)),e.session_id=r,e.mobile=s?Object(ae.h)(e.mobile,o):e.mobile,e.data_encrypted=s,t._ucGateway.resetPersonAccountPasswordByGuardianSMS(e)})).then((function(n){return e.auto_login&&t._ucToken.saveToken(n),n}))},n.resetPasswordByGuardianEmail=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.getSession().then((function(n){var r=n.session_id,o=n.session_key,i=t.new_password;return i&&(t.new_password=Object(ae.h)(m()(i,$),o)),t.session_id=r,e._ucGateway.resetPersonAccountPasswordByGuardianEmail(t)})).then((function(n){return t.auto_login&&e._ucToken.saveToken(n),n}))},n.sendResetPasswordEmail=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.email,r=t.cipherStrength,o=t.resetUri;return this.getSession().then((function(t){var i=t.session_id,a=t.session_key,s=Object(ae.h)(n,a);return e._ucGateway.sendEmailOfResetPersonAccountPassword({session_id:i,email:s,cipher_strength:r,reset_uri:o})}))},n.confirmBindingPersonAccountEmail=function(e){return this._ucGateway.confirmBindingPersonAccountEmail(e)},n.checkUserNameExist=function(e){return this._ucGateway.checkUserNameExist({user_name:e})},t}(cr),h()(sr.prototype,"loginByMobile",[Hn],Object.getOwnPropertyDescriptor(sr.prototype,"loginByMobile"),sr.prototype),h()(sr.prototype,"loginByEmail",[Kn],Object.getOwnPropertyDescriptor(sr.prototype,"loginByEmail"),sr.prototype),h()(sr.prototype,"loginByUserName",[Fn],Object.getOwnPropertyDescriptor(sr.prototype,"loginByUserName"),sr.prototype),h()(sr.prototype,"loginBySMS",[Vn],Object.getOwnPropertyDescriptor(sr.prototype,"loginBySMS"),sr.prototype),h()(sr.prototype,"loginByEmailCode",[$n],Object.getOwnPropertyDescriptor(sr.prototype,"loginByEmailCode"),sr.prototype),h()(sr.prototype,"loginByThirdAccount",[Wn,qt],Object.getOwnPropertyDescriptor(sr.prototype,"loginByThirdAccount"),sr.prototype),h()(sr.prototype,"loginByThird",[qt],Object.getOwnPropertyDescriptor(sr.prototype,"loginByThird"),sr.prototype),h()(sr.prototype,"thirdAutoBind",[qt],Object.getOwnPropertyDescriptor(sr.prototype,"thirdAutoBind"),sr.prototype),h()(sr.prototype,"getThirdAccessTokenByCode",[Jn,qt],Object.getOwnPropertyDescriptor(sr.prototype,"getThirdAccessTokenByCode"),sr.prototype),h()(sr.prototype,"registerByMobile",[Xn],Object.getOwnPropertyDescriptor(sr.prototype,"registerByMobile"),sr.prototype),h()(sr.prototype,"registerByEmail",[Zn,qt],Object.getOwnPropertyDescriptor(sr.prototype,"registerByEmail"),sr.prototype),h()(sr.prototype,"registerByUserName",[Yn],Object.getOwnPropertyDescriptor(sr.prototype,"registerByUserName"),sr.prototype),h()(sr.prototype,"registerByUnderage",[Qn],Object.getOwnPropertyDescriptor(sr.prototype,"registerByUnderage"),sr.prototype),h()(sr.prototype,"resetPasswordBySMS",[er,qt],Object.getOwnPropertyDescriptor(sr.prototype,"resetPasswordBySMS"),sr.prototype),h()(sr.prototype,"resetPasswordByEmail",[tr,qt],Object.getOwnPropertyDescriptor(sr.prototype,"resetPasswordByEmail"),sr.prototype),h()(sr.prototype,"resetPasswordByGuardianSMS",[nr,qt],Object.getOwnPropertyDescriptor(sr.prototype,"resetPasswordByGuardianSMS"),sr.prototype),h()(sr.prototype,"resetPasswordByGuardianEmail",[rr,qt],Object.getOwnPropertyDescriptor(sr.prototype,"resetPasswordByGuardianEmail"),sr.prototype),h()(sr.prototype,"sendResetPasswordEmail",[or],Object.getOwnPropertyDescriptor(sr.prototype,"sendResetPasswordEmail"),sr.prototype),h()(sr.prototype,"confirmBindingPersonAccountEmail",[ir],Object.getOwnPropertyDescriptor(sr.prototype,"confirmBindingPersonAccountEmail"),sr.prototype),h()(sr.prototype,"checkUserNameExist",[ar],Object.getOwnPropertyDescriptor(sr.prototype,"checkUserNameExist"),sr.prototype),sr);var yr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){var n=e.prototype;t.forEach((function(e){var t=e.prototype;Object.getOwnPropertyNames(t).forEach((function(e){n.hasOwnProperty(e)||(n[e]=t[e])}))}))}}(ur,gr)((lr=hr=function(e){function t(){return e.apply(this,arguments)||this}return i()(t,e),t.prototype.login=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=e,r=n.loginNameType,o=n.isGetTicketForLogin,i=n.zhitongPassword,a=e,s=a.loginName,c=a.password,u=a.identifyCode;"string"==typeof e&&(e={loginName:s=arguments[0],password:c=arguments[1],zhitongPassword:i,identifyCode:u=arguments[2],isGetTicketForLogin:o});var d=Y;if(!r&&d.test(s)){var p=s.lastIndexOf("@"),f=s.substring(0,p),h=s.substring(p+1);return this._login({loginName:f,password:c,identifyCode:u,loginNameType:"org_user_code",accountType:"org",orgCode:h,isGetTicketForLogin:o},t)}return this._login(e,t)},t}(cr),hr.VERSION="__VERSION__",fr=lr))||fr;t.default={UC:yr,UC2B:ur,UC2C:gr,UCUtil:yt}}]);