/******/ (function() { // webpackBootstrap
/******/ 	var __webpack_modules__ = ({

/***/ 7016:
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {

"use strict";

// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.object.to-string.js
var es_object_to_string = __webpack_require__(8188);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.promise.js
var es_promise = __webpack_require__(3439);
// EXTERNAL MODULE: ../../node_modules/react/index.js
var react = __webpack_require__(2784);
// EXTERNAL MODULE: ../../node_modules/react-dom/index.js
var react_dom = __webpack_require__(8316);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.function.bind.js
var es_function_bind = __webpack_require__(5584);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.array.slice.js
var es_array_slice = __webpack_require__(2501);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.symbol.js
var es_symbol = __webpack_require__(4115);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.symbol.description.js
var es_symbol_description = __webpack_require__(634);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.array.is-array.js
var es_array_is_array = __webpack_require__(8145);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.object.assign.js
var es_object_assign = __webpack_require__(3105);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.object.set-prototype-of.js
var es_object_set_prototype_of = __webpack_require__(2506);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.object.get-prototype-of.js
var es_object_get_prototype_of = __webpack_require__(6928);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.reflect.construct.js
var es_reflect_construct = __webpack_require__(1229);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.object.create.js
var es_object_create = __webpack_require__(7256);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.object.define-property.js
var es_object_define_property = __webpack_require__(5094);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.symbol.iterator.js
var es_symbol_iterator = __webpack_require__(796);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.array.iterator.js
var es_array_iterator = __webpack_require__(5735);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.string.iterator.js
var es_string_iterator = __webpack_require__(8673);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/web.dom-collections.iterator.js
var web_dom_collections_iterator = __webpack_require__(6886);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.date.to-string.js
var es_date_to_string = __webpack_require__(9120);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.regexp.to-string.js
var es_regexp_to_string = __webpack_require__(8233);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.array.includes.js
var es_array_includes = __webpack_require__(9529);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/web.timers.js
var web_timers = __webpack_require__(9826);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.string.trim.js
var es_string_trim = __webpack_require__(5794);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.array.find.js
var es_array_find = __webpack_require__(9228);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.array.some.js
var es_array_some = __webpack_require__(7321);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.array.index-of.js
var es_array_index_of = __webpack_require__(4083);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.array.concat.js
var es_array_concat = __webpack_require__(8178);
// EXTERNAL MODULE: ../../node_modules/jsencrypt/lib/index.js + 15 modules
var lib = __webpack_require__(7050);
// EXTERNAL MODULE: ./node_modules/crypto-js/index.js
var crypto_js = __webpack_require__(1354);
var crypto_js_default = /*#__PURE__*/__webpack_require__.n(crypto_js);
// EXTERNAL MODULE: ../../node_modules/classnames/index.js
var classnames = __webpack_require__(2779);
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.array.map.js
var es_array_map = __webpack_require__(3450);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.function.name.js
var es_function_name = __webpack_require__(6936);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.array.from.js
var es_array_from = __webpack_require__(7233);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.regexp.exec.js
var es_regexp_exec = __webpack_require__(7950);
;// CONCATENATED MODULE: ./src/page/web/common/LoginWrapper.less
// extracted by mini-css-extract-plugin
/* harmony default export */ var LoginWrapper = ({"container":"_2nC8gKpF","imgPart":"_2LgNJhZs","slogan":"_2lFj85r0","sloganh1":"_1tzbLM7P","sloganh2":"OJ5o9zgQ","formPart":"_3WTXv1kC","logo":"_3PifShzX","content":"_3DvuSaIx","imgPartHide":"_1-Rr19CU","formPartCenter":"_1aul0RRr","hidden":"_1uEGdzgb","linksBox":"_12l7JPlB","a":"orJDyniB","linksBox2":"_2odY3Ssg"});
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.string.includes.js
var es_string_includes = __webpack_require__(1235);
;// CONCATENATED MODULE: ./src/page/web/common/LoginType.less
// extracted by mini-css-extract-plugin
/* harmony default export */ var LoginType = ({"loginMode":"psv4R2WI","modeText":"cRZBQlal","line":"_33hyo19E","text":"_1LRcgQSL","modeIcon":"Ij7J6GM0"});
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.string.split.js
var es_string_split = __webpack_require__(8319);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.array.reduce.js
var es_array_reduce = __webpack_require__(3108);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.string.match.js
var es_string_match = __webpack_require__(4069);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.array.for-each.js
var es_array_for_each = __webpack_require__(8695);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/web.dom-collections.for-each.js
var web_dom_collections_for_each = __webpack_require__(1939);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.regexp.constructor.js
var es_regexp_constructor = __webpack_require__(7368);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.string.replace.js
var es_string_replace = __webpack_require__(5940);
;// CONCATENATED MODULE: ./static/lang/zh_CN.json
var zh_CN_namespaceObject = JSON.parse('{"login.key000":"金蝶云苍穹","login.key001":"金蝶云苍穹账号登录","login.key002":"用户名/手机号/邮箱","login.key003":"密码","login.key004":"图形验证码","login.key005":"登录","login.key006":"记住我","login.key007":"找回密码","login.key008":"语言","login.key009":"其他登录方式","login.key010":"账号登录","login.key011":"扫码登录","login.key012":"人脸识别登录","login.key013":"声纹识别登录","login.key014":"云之家二维码登录","login.key015":"二维码已失效","login.key016":"请点击刷新","login.key017":"识别失败！","login.key018":"识别中","login.key019":"重新识别","login.key020":"欢迎登录金蝶云","login.key021":"请念出以上6位数字以验证登录","login.key022":"手机验证","login.key023":"手机号码","login.key024":"图形验证码","login.key025":"手机验证码","login.key026":"重新发送","login.key027":"下一步","login.key028":"返回登录","login.key029":"修改密码","login.key030":"新密码","login.key031":"确认密码","login.key032":"确认修改","login.key033":"密码修改成功","login.key034":"激活用户","login.key035":"手机验证码","login.key064":"邮箱验证码","login.key036":"发送","login.key037":"新密码","login.key038":"确认密码","login.key039":"确认激活","login.key040":"手机号码不能为空","login.key041":"手机号码必须为数字","login.key042":"手机号码必须是11位","login.key045":"两次密码不一致","login.key046":"图形验证码不能为空","login.key047":"手机验证码不能为空","login.key048":"新密码不能为空","login.key049":"新密码长度不能超过20位","login.key050":"登录中...","login.key051":"账号不能为空","login.key052":"密码不能为空","login.key053":"到期提示","login.key054":"扫码成功","login.key056":"确认密码不能为空","login.key055":"获取手机验证码","login.key057":"账号验证","login.key058":"手机号/邮箱","login.key059":"重置密码的链接已被发送到你的邮箱","login.key060":"请登录邮箱重置密码","login.key061":"下线提示","login.key062":"我知道了","login.key063":"修改密码","login.key065":"账号不能为空","login.key066":"手机验证码不能为空","login.key067":"云之家账号登录","login.key068":"超级管理员","login.key069":"全功能角色","login.key070":"财务角色","login.key071":"企业采购角色","login.key072":"供应商角色","login.key073":"企业销售角色","login.key074":"经销商角色","login.key075":"云之家账号","login.key076":"密码","login.key079":"云之家账号不能为空","login.key080":"密码不能为空","login.key081":"金蝶云","login.key082":"为企业成长而生","login.key083":"服务协议","login.key084":"隐私政策","login.key085":"记住账号密码","login.key086":"记住账号","login.key087":"手机号","login.key088":"企业微信扫描登录","login.key089":"您的企业微信还未绑定帐号","login.key090":"您不在当前企业工作圈中，无法进入系统，请联系企业管理员处理","login.key091":"扫码登录失败","login.key092":"激活成功","login.key093":"域名: ","login.key096":"秒后，将自动跳转","login.key097":"许可无效","login.key098":"继续登录","login.key099":"放弃登录","login.key100":"该账户已在其他设备登录，继续登录将导致其被迫下线","login.key101":"登录失败,跳转链接中含有JavaScript脚本","login.key102":"展开详情","login.key103":"收起","login.key104":"返回","login.key105":"登录并绑定","login.key106":"手机号或邮箱格式错误。","login.key107":"获取到的数据中心为空","login.key108":"手机号","login.key109":"验证码登录","msg.yes":"是","msg.no":"否","msg.retry":"重试","msg.submit":"确定","msg.cancel":"取消","msg.ignore":"忽略","msg.terminal":"终止","msg.iKnow":"我知道了","confirm.commit":"操作确认","login.key094":"金蝶云星瀚账号登录","login.key095":"金蝶云星瀚","login.key110":"同意","login.key111":"不同意","login.key112":"我同意","login.key113":"《用户使用协议》","login.key114":"和","login.key115":"《隐私政策》","login.key116":"登录提示","login.key117":"同意","login.key118":"请先阅读并同意","login.key119":"发送验证码"}');
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.object.keys.js
var es_object_keys = __webpack_require__(4769);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.array.join.js
var es_array_join = __webpack_require__(6781);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.parse-int.js
var es_parse_int = __webpack_require__(8995);
// EXTERNAL MODULE: ./src/util/long.js
var util_long = __webpack_require__(7421);
var long_default = /*#__PURE__*/__webpack_require__.n(util_long);
;// CONCATENATED MODULE: ./src/util/trace.js






function Trace() {
  this.seedUniquifier = 8682522807148012;
  this.multiplier = 0x5DEECE66D;
  this.addend = 0xB; // 下面算法得到65535,java里是1L<<48 得到281474976710655
  // this.mask = (1 << 48) - 1;

  this.mask = 281474976710655;
  this.seed = 0;
  this.step = 1; // this.seed = (this.seedUniquifier ^ this.multiplier) & this.mask;

  this.fseedUniquifier = function () {
    var next = this.seedUniquifier * 181783497276652981;
    this.seedUniquifier = next;
    return next;
  };

  this.initialScramble = function (seed) {
    return (seed ^ this.multiplier) & this.mask;
  };

  this.nextLong = function () {
    var date = new Date();
    var time1 = date.getTime();
    this.seed = this.initialScramble(this.fseedUniquifier() ^ time1 + Math.round(Math.random() * 100)); // console.log("seed:"+this.seed);
    // var v1 = (this.next(32) << 32);
    // var val = v1 + this.next(32);
    // return val;

    var longVal = new (long_default())('0x' + this.next(32, false), '0x' + this.next(32, true), true); // console.log(longVal)

    var a = longVal.toString(16);
    return a; // return this.next(32,true)+this.next(32,false);
  };

  this.next = function (bits, high) {
    var oldseed = this.seed;
    var nextseed = oldseed * this.multiplier + this.addend & this.mask; // nextseed = (nextseed * this.multiplier + this.addend) & this.mask;

    this.seed = nextseed; // console.log("nextseed:"+nextseed);

    nextseed = Math.abs(nextseed) + Math.round(Math.random() * 100) + this.step;
    this.step++;

    if (this.step >= 999999) {
      this.step = 1;
    } // console.log(nextseed.toString(16))
    // console.log(nextseed.toString(2))


    var b = nextseed.toString(2); // if (high) {
    //   // while(b.length<31){
    //   //	b="1"+b;
    //   // }
    //   // b="0"+b;
    //   while (b.length < 32) {
    //     b = '0' + b
    //   }
    // } else {
    //   while (b.length < 32) {
    //     // var p =  Math.round(Math.random())+"";
    //     b = '0' + b
    //   }
    //   // console.log("v:"+b)
    // }

    while (b.length < 32) {
      // var p =  Math.round(Math.random())+"";
      b = '0' + b;
    } // console.log(b)


    nextseed = parseInt(b, 2); // nextseed = nextseed& 4294967295
    // console.log(nextseed)
    // console.log(nextseed.toString(16))
    // return nextseed >>> (48 - bits)

    return nextseed.toString(16);
  };

  this.traceId = function () {
    return this.nextLong();
  };
}

function getTraceId() {
  return new Trace().traceId();
}

/* harmony default export */ var trace = (getTraceId);
;// CONCATENATED MODULE: ./src/api/service.js
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }


















function getAllDataCenter() {
  return getApi('auth/getAllDatacenters.do');
}
function service_isNeedVerifyCode() {
  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  return postApi('auth/isNeedDisplayVerify.do', data);
}
function service_getVerifyCode() {
  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  return postApi('auth/verifyCode.do', data);
}
function getVerifyCodeByPhone() {
  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  // 找回密码时，获取图形验证码。需要传入手机号码
  return postApi('auth/getVerifyCode.do', data);
}
function service_verifyGraphicCode() {
  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  return postApi('auth/verifyCode4Pwd.do', data);
}
function service_verifyPhone() {
  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  return postApi('auth/verifyPhone.do', data);
}
function service_verifyPhoneCode() {
  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  return postApi('auth/verifyPhoneCode.do', data);
}
function service_verifyEmail() {
  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  return postApi('auth/verifyEmail.do', data);
}
function getYzjQrcode() {
  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  return getApi('auth/getQRURL.do', data);
}
function getYzjQrcodePrivate() {
  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  return getApi('auth/yzjQRlogin.do', data);
}
function service_checkLoginState() {
  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  return getApi('auth/aiLoginPoll.do', data);
}
function getVoiceToken() {
  return getApi('auth/voiceToken.do');
}
function service_checkVoiceState() {
  return getApi('auth/getVoiceSayingFlag.do');
}
function getLangData() {
  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  return getApi("./login/lang/".concat(data.lang, ".json"));
}
function service_isNeedMsgValidate() {
  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  return postApi('auth/isNeedNewFactor.do', data);
}
function service_sendMessage() {
  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  return postApi('auth/sendMessage.do', data);
}
function service_getErrorMessage() {
  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  return postApi('auth/getLoginErrorMessage.do', data);
}
function validateLicense() {
  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  return postApi('auth/validateLicDate.do', data);
}
function service_loadConfiguration() {
  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  return postApi('auth/getCustomData.do', data);
}
function getCloudPhoneCode() {
  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  return postApi('auth/getCloudPhoneCode.do', data);
}
function service_submit() {
  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  return postApi('auth/yzjlogin.do', Object.assign({
    type: 'user'
  }, data));
}
function service_getPublicKey() {
  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  return postApi('auth/getPublicKey.do', data);
}
function service_faceDetection() {
  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  return postApi('auth/collectFaceImg.do', data);
}
function service_resetPassword() {
  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  return postApi('auth/resetPassword.do', data);
}
function service_activeUser() {
  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  return postApi('auth/activeUser.do', data);
}
function demoSubmit() {
  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  return postApi('auth/demoSSO.do', data);
}
function smsLogin() {
  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  return postApi('auth/smsLogin.do', data);
}
function queryParameters() {
  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  return postApi('auth/queryParameters.do', data);
}
function getUserLanguage() {
  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  return postApi('api/login/getUserLanguage.do', data);
}

var getApi = function getApi(url, data) {
  if (data) {
    var params = [];
    Object.keys(data).forEach(function (key) {
      return params.push(key + '=' + encodeParam(data[key]));
    });
    url += '?' + params.join('&');
  }

  return window.fetch(url, {
    mode: 'cors',
    headers: {
      traceId: trace()
    },
    credentials: 'include'
  }).then(function (response) {
    if (response.ok) {
      return response.json();
    } else {
      throw new Error(response.statusText);
    }
  }).then(function (jsonObj) {
    if (Array.isArray(jsonObj) && jsonObj[0]) {
      var _jsonObj$ = jsonObj[0],
          a = _jsonObj$.a,
          p = _jsonObj$.p;

      if (a === 'showErrMsg' && Array.isArray(p)) {
        var _p$ = p[0],
            errorInfo = _p$.errorInfo,
            errorTitle = _p$.errorTitle;
        throw new Error("\u3010\u670D\u52A1\u7AEF\u62A5\u9519\u3011 \u6807\u9898:".concat(errorTitle, "\u5185\u5BB9:").concat(errorInfo));
      }
    }

    return jsonObj;
  })["catch"](function (error) {
    throw new Error('fetch data error: ' + error.message);
  });
};

var postApi = function postApi(url) {
  var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  var post = Object.keys(data).map(function (key) {
    return key + '=' + encodeParam(data[key]);
  }).join('&');
  return window.fetch(url, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8;',
      ajax: true,
      traceId: trace()
    },
    mode: 'cors',
    credentials: 'include',
    body: post
  }).then(function (response) {
    if (response.ok) {
      return response.json();
    } else {
      throw new Error(response.statusText);
    }
  }).then(function (jsonObj) {
    if (Array.isArray(jsonObj) && jsonObj[0]) {
      var _jsonObj$2 = jsonObj[0],
          a = _jsonObj$2.a,
          p = _jsonObj$2.p;

      if (a === 'showErrMsg' && Array.isArray(p)) {
        var _p$2 = p[0],
            errorInfo = _p$2.errorInfo,
            errorTitle = _p$2.errorTitle;
        throw new Error("".concat(errorInfo, ":  ") + errorTitle);
      }
    }

    return jsonObj;
  })["catch"](function (error) {
    throw new Error('fetch data error: ' + error.message);
  });
};

var encodeParam = function encodeParam() {
  var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';

  if (_typeof(value) === 'object') {
    return encodeURIComponent(JSON.stringify(value));
  } else {
    return encodeURIComponent(value);
  }
};
;// CONCATENATED MODULE: ./src/const.js
var SUCCESS = 0;
var FAILURE = 1;
var LOGINING = 2; // localStorage中存储当前语言的key

var CURRENT_LANG = 'login-lang'; // localStorage中存储当前数据中心ID的key

var CURRENT_ACCOUNDID = 'login-accountId'; // localStorage中存储上一次记住密码的账号信息

var ACCOUNT_INFO = 'login-accountInfo'; // localStorage中存储上一次成功登陆的账号

var ACCOUNT = 'login-account'; // localStorage中存储登录页面的自定义配置信息

var CONFIG = 'login-config'; // 存储登录页用户信息

var LOGIN_USERINFO = 'login-userinfo'; //

var DEFAULT_LANG = 'login-defaultLang';
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.string.search.js
var es_string_search = __webpack_require__(4908);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.string.starts-with.js
var es_string_starts_with = __webpack_require__(4112);
;// CONCATENATED MODULE: ./src/util/toolUtils.js













function validateEmail(email) {
  var re = /\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;
  return re.test(email);
}
function isPhoneNumber(tel) {
  var reg = /^0?1[3|4|5|6|7|8|9][0-9]\d{8}$/;
  return reg.test(tel);
}
function isAdministrator(account) {
  return account === 'administrator';
}
/**
 * 采用正则表达式获取地址栏参数
 * @param {*} name
 */

function getQueryString(name) {
  var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)');
  var r = window.location.search.substr(1).match(reg);
  if (r != null) return unescape(r[2]);
  return null;
}
function getRedirect() {
  var search = window.location.search.substr(1);
  var redirectIndex = search.indexOf('redirect=');

  if (redirectIndex !== -1) {
    return search.substr(9);
  }
}
function getRedirectQueryString(name) {
  var redirect = getQueryString('redirect');
  var result = null;

  if (redirect) {
    redirect = decodeURIComponent(redirect);
    var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)'); // 截断取后半段字符串

    var index = redirect.indexOf('?');

    if (index > 0) {
      var r = redirect.substr(index + 1).match(reg);

      if (r !== null) {
        result = r[2];
      }
    }
  }

  return result;
}
function getCurrentEnvrionment() {
  var pathname = window.location.pathname;
  var matchArr = pathname.match(/\/(\w+)\//);
  return matchArr ? matchArr[1] : '';
}
function getNameWithCurrentEnvrionment(name) {
  var currentEnvironment = getCurrentEnvrionment();
  return currentEnvironment !== '' ? currentEnvironment + '-' + name : name;
}
function getFaviconElement() {
  var links = document.head.getElementsByTagName('link') || [];
  var faviconElement = Array.prototype.find.call(links, function (element) {
    return element.rel === 'icon';
  });
  return faviconElement;
} // 函数防抖

function debounce(fn, delay) {
  var timer = null;
  return function () {
    clearTimeout(timer);
    timer = setTimeout(function () {
      fn();
    }, delay);
  };
} // 处理url中的参数

function getUrlParam(sUrl, sKey) {
  var result = {};
  sUrl.replace(/[?&]([^=&#]+)=([^&#]*)/g, function (a, k, v) {
    if (result[k] !== undefined) {
      var t = result[k];
      result[k] = [].concat(t, v);
    } else {
      result[k] = v;
    }
  });

  if (sKey === undefined) {
    return result;
  } else {
    return result[sKey] || '';
  }
}
/*
 * 获取图片全路径
 * addVersion: 添加图片版本信息
 */

function getImgFullPath() {
  var imgPath = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  var addVersion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  imgPath = imgPath || ''; // 兼容为null下报错
  // base64或者http完整地址路径直接返回

  if (/^data:?/.test(imgPath) || /^http(s)?/.test(imgPath)) {
    return imgPath;
  }

  if (!imgPath.trim()) {
    // imgPath发送的null
    return '';
  }

  if (imgPath.startsWith('/')) {
    // 静态部署需求,图片地址最前部分不要斜线
    imgPath = imgPath.substr(1, imgPath.length);
  }

  return imgPath;
}
;// CONCATENATED MODULE: ./src/store.js
var store_store = {
  accountId: '',
  lang: 'zh_CN',
  account: '',
  password: '',
  verifyCode: '',
  phoneCode: '',
  newPassword: '',
  confirmPassword: '',
  configuration: {},
  yzjAccount: '',
  yzjPwd: '',
  role: '',
  isCompleteLoadConfig: false,
  // 是否加载完配置信息
  loadingText: '',
  token: '',
  openid: '',
  scantype: '',
  randomCode: '',
  hasLDAP: true,
  usernamepsw: '',
  iskdbrand: '',
  dataCenter: [],
  licenseInfo: {
    oldAccountId: '',
    oldLanguage: '',
    data: []
  },
  setValue: function setValue(key, value) {
    this[key] = value;
  },
  setValueArr: function setValueArr() {
    var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

    for (var key in obj) {
      this[key] = obj[key];
    }
  }
};

if (false) {}

/* harmony default export */ var src_store = (store_store);
var mStore = {
  lang: 'zh_CN',
  accountId: '',
  account: '',
  password: '',
  verifyCode: '',
  phoneCode: '',
  newPassword: '',
  confirmPassword: '',
  closeEncrypt: {
    flag: false,
    id: ''
  },
  setValue: function setValue(key, value) {
    this[key] = value;
  }
};

if (false) {}

window.mStore = mStore;
;// CONCATENATED MODULE: ./src/i18n/IntlUniversal.js
/* provided dependency */ var console = __webpack_require__(3716);
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function IntlUniversal_typeof(obj) { "@babel/helpers - typeof"; return IntlUniversal_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, IntlUniversal_typeof(obj); }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }


























function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }

/**
 * 前端国际化的管理模型
 * by kechuang
 */
 // import _ from 'lodash';
// import fetchJsonp from 'fetch-jsonp';
// import console from '../api/console';







var IntlUniversal = /*#__PURE__*/function () {
  function IntlUniversal() {
    _classCallCheck(this, IntlUniversal);

    this.options = {
      currentLocale: null,
      locales: {
        zh_CN: zh_CN_namespaceObject
      },
      defaultLocale: 'zh_CN',
      warningHandler: console.warn.bind(console)
    };
    this.renderApp = false; // //默认值
    // String.prototype.defaultMessage = String.prototype.d = function (msg) {
    //     return this || msg || "";
    // };
  }

  _createClass(IntlUniversal, [{
    key: "init",
    value: function init(currentLocale, callback) {
      var _this = this;

      invariant(currentLocale, 'currentLocale is required');
      var defaultLanguageKey = getNameWithCurrentEnvrionment(DEFAULT_LANG);
      var oldDefaultLang = window.localStorage.getItem(defaultLanguageKey);
      this.options.currentLocale = currentLocale;
      var locale = this.options.locales[currentLocale];

      if (locale) {
        src_store.setValue('currentLangInfo', {
          lang: currentLocale,
          exist: true
        });
        src_store.setValue('isLazyLoadDefaultLang', true);
        callback();
      } else {
        getLangData({
          lang: currentLocale
        }).then(function (data) {
          src_store.setValue('currentLangInfo', {
            lang: currentLocale,
            exist: true
          });
          src_store.setValue('isLazyLoadDefaultLang', true);
          _this.options.locales[currentLocale] = data;
          callback();
        })["catch"](function () {
          // console.warn('load locale error:', err)
          if (oldDefaultLang) {
            src_store.setValue('currentLangInfo', {
              lang: oldDefaultLang,
              exist: false
            });
            src_store.setValue('isLazyLoadDefaultLang', true);

            _this.load(oldDefaultLang, callback);
          } else {
            src_store.setValue('currentLangInfo', {
              lang: currentLocale,
              exist: false
            });
            src_store.setValue('isLazyLoadDefaultLang', false);
            var currentAccountIdKey = getNameWithCurrentEnvrionment(CURRENT_ACCOUNDID);
            var currentAccountId = window.localStorage.getItem(currentAccountIdKey) || 'default'; // setTimeout(() => {
            //   if (!this.renderApp) {
            //     this.renderApp = true
            //     this.options.currentLocale = 'zh_CN'
            //     callback()
            //   }
            // }, 2000)

            var flag = true;

            if (src_store.accountId && src_store.defaultLang) {
              for (var key in src_store.defaultLang) {
                if (src_store.accountId === key) {
                  flag = false;

                  _this.load(src_store.defaultLang[key], callback);
                }
              }

              flag && _this.loadDefaultLang(currentAccountId, callback);
            } else {
              _this.loadDefaultLang(currentAccountId, callback);
            }
          }
        });
      }
    } // 获取默认语言

  }, {
    key: "loadDefaultLang",
    value: function loadDefaultLang(currentAccountId, callback) {
      var _this2 = this;

      getUserLanguage({
        accountId: currentAccountId
      }).then(function (data) {
        var defaultLang = data.defaultLang || 'zh_CN';
        src_store.setValue('defaultLang', Object.assign({}, src_store.defaultLang, _defineProperty({}, currentAccountId, defaultLang)));

        if (!_this2.renderApp && defaultLang === 'zh_CN') {
          _this2.options.currentLocale = 'zh_CN';
          callback();
        } else if (!_this2.renderApp) {
          _this2.renderApp = true;

          _this2.load(defaultLang, callback);
        }
      })["catch"](function () {
        _this2.options.currentLocale = 'zh_CN'; // 取不到资源文件就取中文

        callback();
      });
    }
  }, {
    key: "load",
    value: function load(lang, callback) {
      var _this3 = this;

      if (this.options.locales[lang]) {
        this.options.currentLocale = lang;
        callback();
      }

      getLangData({
        lang: lang
      }).then(function (data) {
        _this3.options.locales[lang] = data;
        _this3.options.currentLocale = lang;
        callback();
      })["catch"](function (err) {
        console.warn('load locale error:', err);
        _this3.options.currentLocale = 'zh_CN'; // 取不到资源文件就取中文

        callback();
      });
    }
  }, {
    key: "getDescendantProp",
    value: function getDescendantProp(locale, key) {
      if (locale[key]) {
        return locale[key];
      }

      var msg = key.split('-').reduce(function (a, b) {
        return a !== undefined ? a[b] : a;
      }, locale);
      return msg;
    }
  }, {
    key: "get",
    value: function get(key, variables, lang) {
      invariant(key, 'key is required');
      var _this$options = this.options,
          locales = _this$options.locales,
          currentLocale = _this$options.currentLocale,
          defaultLocale = _this$options.defaultLocale;
      var activeLang = lang || currentLocale; // 允许访问其他类型的语言

      if (!locales || !locales[activeLang]) {
        this.options.warningHandler("locales data \"".concat(activeLang, "\" not exists."));
        return '';
      }

      var msg = this.getDescendantProp(locales[activeLang], key);

      if (msg == null) {
        this.options.warningHandler("key \"".concat(key, "\" not defined in ").concat(activeLang, ",try to get from defaultLocale 'zh_CN'"));
        msg = this.getDescendantProp(locales[defaultLocale], key);

        if (msg == null) {
          this.options.warningHandler("key \"".concat(key, "\" not defined in ").concat(defaultLocale));
          return '';
        }
      }

      try {
        return analysVariables(msg, variables);
      } catch (err) {
        this.options.warningHandler("format message failed for key='".concat(key, "'."), err.message);
        return msg;
      }
    }
  }]);

  return IntlUniversal;
}();

/* harmony default export */ var i18n_IntlUniversal = (new IntlUniversal());

function invariant(condition, errMsg) {
  if (!condition) {
    throw new Error(errMsg || 'this variable must be usable!');
  }
}
/**
 * 解析模板字符串中的变量
 * @param {*} msg
 * @param {*} variables
 */


function analysVariables(msg, variables) {
  var reg = /{[\w\W]*?}/g;
  var matchArr = msg.match(reg) || [];

  var isObject = function isObject(value) {
    return IntlUniversal_typeof(value) === 'object' || typeof value === 'function';
  };

  var getVarName = function getVarName(str) {
    var len = str.length;
    return str.slice(1, len - 1);
  };

  var stringVar = [];
  var eleVar = [];

  var _iterator = _createForOfIteratorHelper(matchArr),
      _step;

  try {
    for (_iterator.s(); !(_step = _iterator.n()).done;) {
      var item = _step.value;
      var varName = getVarName(item['0']);
      var value = variables[varName];

      if (isObject(value)) {
        eleVar.push({
          k: varName,
          v: value
        });
      } else {
        stringVar.push({
          k: varName,
          v: value
        });
      }
    }
  } catch (err) {
    _iterator.e(err);
  } finally {
    _iterator.f();
  }

  msg = formatText(msg, stringVar);

  if (eleVar.length > 0) {
    msg = formatElement(msg, variables);
  }

  return msg;
}
/**
 * 替换基本类型的变量
 * @param {*} msg
 * @param {*} stringVar
 */


function formatText(msg, stringVar) {
  stringVar.forEach(function (item) {
    var k = item.k,
        v = item.v;
    var reg = new RegExp('{' + k + '}', 'g');
    msg = msg.replace(reg, v);
  });
  return msg;
}
/**
 * 替换React元素类型的变量
 * @param {*} msg
 * @param {*} eleVar
 * @param {*} variables
 */


function formatElement(msg, variables) {
  var splitByElement = function splitByElement(msg) {
    var array = [];
    var item = {
      t: 0,
      v: ''
    }; // 0-string 1-react

    var len = msg.length;
    msg.split('').forEach(function (c, i) {
      if (c === '{') {
        array.push(item);
        item = {
          t: 1,
          v: ''
        };
      } else if (c === '}') {
        array.push(item);
        item = {
          t: 0,
          v: ''
        };
      } else {
        item.v = item.v + c;
      }

      if (i === len - 1) {
        array.push(item);
      }
    });
    return array;
  };

  var elements = [];
  var eleArr = splitByElement(msg);
  eleArr.forEach(function (item, index) {
    var t = item.t,
        v = item.v;

    if (t === 0 && v !== '') {
      elements.push( /*#__PURE__*/react.createElement("span", {
        key: index
      }, v));
    } else if (t === 1) {
      elements.push( /*#__PURE__*/react.cloneElement(variables[v], {
        key: index
      }));
    }
  });
  return elements;
}
;// CONCATENATED MODULE: ./src/i18n/intlApi.js
/* provided dependency */ var intlApi_console = __webpack_require__(3716);













function intlApi_typeof(obj) { "@babel/helpers - typeof"; return intlApi_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, intlApi_typeof(obj); }

/**
 * 前端国际化的方法
 * by kechuang
 */



/**
 * 初始化国际化管理模型
 * 这个地方要做try-catch  不能导致整个环境崩溃
 * @param {*} lang
 * @param {*} callback
 */

function initI18n(callback) {
  try {
    getCurrentLocale(function (currentLocale) {
      i18n_IntlUniversal.init(currentLocale, callback);
    });
  } catch (e) {
    intlApi_console.warn('initI18n', e);
    callback();
  }
}

function getCurrentLocale(callback) {
  var currentLangKey = getNameWithCurrentEnvrionment(CURRENT_LANG);
  var currentLocale = window.localStorage.getItem(currentLangKey) || 'zh_CN';
  callback(currentLocale);
}
/**
 * {key,variables,activeLang} = templateInfo  || templateInfo => key
 * @key 模板字符串的唯一标识 必填
 * @variables 模板字符串的变量映射表 非必填
 * @activeLang 当前的语言类型，如果和系统的语言类型不同需要传，其他情况不传
 */


var intlApi_getLangMsg = function getLangMsg(templateInfo) {
  if (templateInfo && intlApi_typeof(templateInfo) === 'object') {
    var key = templateInfo.key,
        variables = templateInfo.variables,
        activeLang = templateInfo.activeLang;
    return i18n_IntlUniversal.get(key, variables, activeLang);
  }

  return i18n_IntlUniversal.get(templateInfo);
};
/**
 * 从cookie中获取语言信息
 * @param {*} localeKey
 */

var getCurrentLocaleFromCookie = function getCurrentLocaleFromCookie(localeKey) {
  var cookieObj = analysCookie();
  var locale = cookieObj[localeKey] || 'zh_CN';
  return locale;
};

var analysCookie = function analysCookie() {
  var cookie = document.cookie;
  var obj = {};

  if (typeof cookie !== 'string') {
    intlApi_console.warn('cookie must be a string');
    return obj;
  }

  var reg = /; */;
  var arr = cookie.split(reg);
  var len = arr.length;

  for (var i = 0; i < len; i++) {
    var item = arr[i];
    var eq_idx = item.indexOf('=');

    if (eq_idx < 0) {
      continue;
    }

    var key = item.substr(0, eq_idx).trim();
    var val = item.substr(++eq_idx, item.length).trim(); // quoted values

    if (val[0] === '"') {
      val = val.slice(1, -1);
    }

    obj[key] = val;
  }

  return obj;
};
// EXTERNAL MODULE: ./src/img/kingdee-logo.png
var kingdee_logo = __webpack_require__(1547);
var kingdee_logo_default = /*#__PURE__*/__webpack_require__.n(kingdee_logo);
// EXTERNAL MODULE: ./src/img/kingdee-logo-gray.png
var kingdee_logo_gray = __webpack_require__(9372);
var kingdee_logo_gray_default = /*#__PURE__*/__webpack_require__.n(kingdee_logo_gray);
// EXTERNAL MODULE: ./src/img/cloudHub-logo.png
var cloudHub_logo = __webpack_require__(4401);
var cloudHub_logo_default = /*#__PURE__*/__webpack_require__.n(cloudHub_logo);
// EXTERNAL MODULE: ./src/img/cloudHub-logo-gray.png
var cloudHub_logo_gray = __webpack_require__(5841);
var cloudHub_logo_gray_default = /*#__PURE__*/__webpack_require__.n(cloudHub_logo_gray);
// EXTERNAL MODULE: ./src/img/face-logo.png
var face_logo = __webpack_require__(1611);
var face_logo_default = /*#__PURE__*/__webpack_require__.n(face_logo);
// EXTERNAL MODULE: ./src/img/face-logo-gray.png
var face_logo_gray = __webpack_require__(6782);
var face_logo_gray_default = /*#__PURE__*/__webpack_require__.n(face_logo_gray);
// EXTERNAL MODULE: ./src/img/voice-logo.png
var voice_logo = __webpack_require__(5674);
var voice_logo_default = /*#__PURE__*/__webpack_require__.n(voice_logo);
// EXTERNAL MODULE: ./src/img/voice-logo-gray.png
var voice_logo_gray = __webpack_require__(3284);
var voice_logo_gray_default = /*#__PURE__*/__webpack_require__.n(voice_logo_gray);
// EXTERNAL MODULE: ./src/img/WeChat-logo.png
var WeChat_logo = __webpack_require__(3086);
var WeChat_logo_default = /*#__PURE__*/__webpack_require__.n(WeChat_logo);
// EXTERNAL MODULE: ./src/img/WeChat-logo-gray.png
var WeChat_logo_gray = __webpack_require__(8485);
var WeChat_logo_gray_default = /*#__PURE__*/__webpack_require__.n(WeChat_logo_gray);
// EXTERNAL MODULE: ./src/img/shortMsg-logo-gray.png
var shortMsg_logo_gray = __webpack_require__(5961);
var shortMsg_logo_gray_default = /*#__PURE__*/__webpack_require__.n(shortMsg_logo_gray);
// EXTERNAL MODULE: ./src/img/shortMsg-logo.png
var shortMsg_logo = __webpack_require__(5219);
var shortMsg_logo_default = /*#__PURE__*/__webpack_require__.n(shortMsg_logo);
;// CONCATENATED MODULE: ./src/page/web/common/LoginType.jsx
function LoginType_typeof(obj) { "@babel/helpers - typeof"; return LoginType_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, LoginType_typeof(obj); }

function LoginType_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function LoginType_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function LoginType_createClass(Constructor, protoProps, staticProps) { if (protoProps) LoginType_defineProperties(Constructor.prototype, protoProps); if (staticProps) LoginType_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (LoginType_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }



















 // import eventBus from '../../../eventBus'














function LoginType_LoginType(props) {
  var selectType = props.selectType,
      _props$userSourceType = props.userSourceType,
      userSourceType = _props$userSourceType === void 0 ? [] : _props$userSourceType; // 找回密码页面、激活页面、只剩一种登录方式时，隐藏所有图标内容

  if (selectType === 'findPassword' || selectType === 'activeUser' || selectType === 'demo' || userSourceType.length <= 1) {
    return /*#__PURE__*/react.createElement("div", {
      className: LoginType.loginMode
    });
  }

  return /*#__PURE__*/react.createElement("div", {
    className: LoginType.loginMode,
    id: "login_mode"
  }, /*#__PURE__*/react.createElement("div", {
    className: LoginType.modeText
  }, /*#__PURE__*/react.createElement("div", {
    className: LoginType.line
  }), /*#__PURE__*/react.createElement("div", {
    className: LoginType.text
  }, intlApi_getLangMsg('login.key009')), /*#__PURE__*/react.createElement("div", {
    className: LoginType.line
  })), /*#__PURE__*/react.createElement("div", {
    className: LoginType.modeIcon
  }, userSourceType.includes(2) && /*#__PURE__*/react.createElement(Icon, _extends({
    title: intlApi_getLangMsg('login.key010'),
    iconSrc: (kingdee_logo_default()),
    iconGraySrc: (kingdee_logo_gray_default()),
    type: "kingdeeCloud"
  }, props)), (userSourceType.includes(0) || userSourceType.includes(1)) && /*#__PURE__*/react.createElement(Icon, _extends({
    title: intlApi_getLangMsg('login.key011'),
    iconSrc: (cloudHub_logo_default()),
    iconGraySrc: (cloudHub_logo_gray_default()),
    type: "cloudHub"
  }, props)), userSourceType.includes(6) && /*#__PURE__*/react.createElement(Icon, _extends({
    title: intlApi_getLangMsg('login.key088'),
    iconSrc: (WeChat_logo_default()),
    iconGraySrc: (WeChat_logo_gray_default()),
    type: "WeChat"
  }, props)), userSourceType.includes(4) && /*#__PURE__*/react.createElement(Icon, _extends({
    title: intlApi_getLangMsg('login.key012'),
    iconSrc: (face_logo_default()),
    iconGraySrc: (face_logo_gray_default()),
    type: "face"
  }, props)), userSourceType.includes(5) && /*#__PURE__*/react.createElement(Icon, _extends({
    title: intlApi_getLangMsg('login.key013'),
    iconSrc: (voice_logo_default()),
    iconGraySrc: (voice_logo_gray_default()),
    type: "voice"
  }, props)), userSourceType.includes(7) && /*#__PURE__*/react.createElement(Icon, _extends({
    title: intlApi_getLangMsg('login.key109'),
    iconSrc: (shortMsg_logo_default()),
    iconGraySrc: (shortMsg_logo_gray_default()),
    type: "shortMessage"
  }, props))));
}

var Icon = /*#__PURE__*/function (_Component) {
  _inherits(Icon, _Component);

  var _super = _createSuper(Icon);

  function Icon(props) {
    var _this;

    LoginType_classCallCheck(this, Icon);

    _this = _super.call(this, props);
    _this.state = {
      ishover: false
    };
    _this.handleMouseOver = _this.handleMouseOver.bind(_assertThisInitialized(_this));
    _this.handleMouseOut = _this.handleMouseOut.bind(_assertThisInitialized(_this));
    _this.handleClick = _this.handleClick.bind(_assertThisInitialized(_this));
    return _this;
  }

  LoginType_createClass(Icon, [{
    key: "handleMouseOver",
    value: function handleMouseOver() {
      this.setState({
        ishover: true
      });
    }
  }, {
    key: "handleMouseOut",
    value: function handleMouseOut() {
      this.setState({
        ishover: false
      });
    }
  }, {
    key: "handleClick",
    value: function handleClick() {
      var type = this.props.type;
      this.props.dataPipeModel && this.props.dataPipeModel.sendData({
        type: 'usernamepsw'
      });
      window.location.hash = type;
    }
  }, {
    key: "render",
    value: function render() {
      var _this$props = this.props,
          title = _this$props.title,
          iconSrc = _this$props.iconSrc,
          iconGraySrc = _this$props.iconGraySrc,
          selectType = _this$props.selectType,
          type = _this$props.type;
      var ishover = this.state.ishover;
      var isSelect = selectType === type;
      return /*#__PURE__*/react.createElement("img", {
        src: isSelect || ishover ? iconSrc : iconGraySrc,
        title: title,
        onMouseOver: this.handleMouseOver,
        onMouseOut: this.handleMouseOut,
        onClick: this.handleClick,
        draggable: "false"
      });
    }
  }]);

  return Icon;
}(react.Component);

/* harmony default export */ var common_LoginType = (LoginType_LoginType);
;// CONCATENATED MODULE: ./src/page/web/base/Button.less
// extracted by mini-css-extract-plugin
/* harmony default export */ var Button = ({"buttonWrap":"NPUKHc2S","button":"_2R-qnNNR","loading":"_37i5KhRk","donut-spin":"_1Alf-iwx","text":"EFZRJepJ","buttonLoading":"_3qn8LhjV","disable":"_3Q6Txdjo"});
;// CONCATENATED MODULE: ./src/page/web/base/Button.jsx


function Button_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }





function Button_Button(props) {
  var _classname, _classname2;

  var disable = props.disable;
  var button = classnames_default()((_classname = {}, Button_defineProperty(_classname, Button.button, true), Button_defineProperty(_classname, Button.buttonLoading, props.isLoading), Button_defineProperty(_classname, Button.disable, disable), _classname));
  var text = classnames_default()((_classname2 = {}, Button_defineProperty(_classname2, Button.text, true), Button_defineProperty(_classname2, Button.disable, disable), _classname2));

  var handleClick = function handleClick() {
    !disable && props.onClick();
  };

  return /*#__PURE__*/react.createElement("div", {
    className: Button.buttonWrap
  }, /*#__PURE__*/react.createElement("button", {
    className: button,
    onClick: handleClick
  }, /*#__PURE__*/react.createElement("span", {
    className: text
  }, " ", props.text), props.isLoading && /*#__PURE__*/react.createElement("div", {
    className: Button.loading,
    style: props.style
  })));
}

/* harmony default export */ var base_Button = (Button_Button);
;// CONCATENATED MODULE: ./src/page/web/base/CheckBox.less
// extracted by mini-css-extract-plugin
/* harmony default export */ var base_CheckBox = ({"checkbox":"_3Gz0oDpe","circle":"uEwgaz3u","circleSelected":"_23YUXQ_p"});
;// CONCATENATED MODULE: ./src/page/web/base/CheckBox.jsx


function CheckBox_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }



 // class CheckBox extends Component {
//   constructor (props) {
//     super(props)
//     this.state = {
//       isSelect: props.isSelect || false
//     }
//     this.handleClick = this.handleClick.bind(this)
//   }
//   handleClick () {
//     const { isSelect } = this.state
//     this.setState({
//       isSelect: !isSelect
//     })
//     this.props.onClick && this.props.onClick(!isSelect)
//   }
//   render () {
//     const { isSelect } = this.state
//     const circleClass = classname({
//       [style.circle]: true,
//       [style.circleSelected]: isSelect
//     })
//     return <div className={style.checkbox} onClick={this.handleClick}>
//       <div className={circleClass} />
//       <div>{this.props.text}</div>
//     </div>
//   }
// }
// export default CheckBox

var CheckBox = function CheckBox(_ref) {
  var _classname;

  var isSelect = _ref.isSelect,
      onClick = _ref.onClick,
      text = _ref.text,
      showUsernamePsw = _ref.showUsernamePsw;
  var circleClass = classnames_default()((_classname = {}, CheckBox_defineProperty(_classname, base_CheckBox.circle, true), CheckBox_defineProperty(_classname, base_CheckBox.circleSelected, isSelect), _classname));

  var handleClick = function handleClick() {
    onClick && onClick(!isSelect);
  }; // 给出占位, 防止找回密码左移


  if (!showUsernamePsw) {
    return /*#__PURE__*/react.createElement("div", {
      className: base_CheckBox.checkbox,
      onClick: handleClick
    });
  }

  return /*#__PURE__*/react.createElement("div", {
    className: base_CheckBox.checkbox,
    onClick: handleClick,
    id: "remember_pwd"
  }, /*#__PURE__*/react.createElement("div", {
    className: circleClass
  }), /*#__PURE__*/react.createElement("div", null, text));
};

/* harmony default export */ var web_base_CheckBox = (CheckBox);
;// CONCATENATED MODULE: ./src/page/web/base/DropdownList.less
// extracted by mini-css-extract-plugin
/* harmony default export */ var base_DropdownList = ({"dropdownList":"mynwN_g3","title":"_3rA48Uwq","textWrapper":"_1-gHVG-v","tips":"_1qpYHDUI","tipsContainer":"_3qd0IKDm","tipsText":"_2N0dLBjW","tipsHide":"jOWN3FXs","text":"_3FT2U3np","off":"jExkexL5","on":"cE21VXKp","panel":"_1xYHG5mY","list":"_8Qhm2a-a","item":"_3NhxlUy2","item-selected":"_2ogcfj53","hide":"_3FxSIlCG","onlyOneChild":"_1linHcQo","weChatonlyOneChild":"_1PYI37Kt"});
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.array.find-index.js
var es_array_find_index = __webpack_require__(9949);
;// CONCATENATED MODULE: ./src/mock/data.js
var langList = [{
  value: 'zh_CN',
  text: '中文(简)',
  select: true
} // { 'value': 'zh_TW', 'text': '中文(繁)' },
// { 'value': 'en_US', 'text': 'English' }
];
;// CONCATENATED MODULE: ./src/util/dataUtil.js
/* provided dependency */ var dataUtil_console = __webpack_require__(3716);
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || dataUtil_unsupportedIterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function dataUtil_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return dataUtil_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return dataUtil_arrayLikeToArray(o, minLen); }

function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return dataUtil_arrayLikeToArray(arr); }

function dataUtil_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }



































function convertDataCenter(data) {
  return data.map(function (item) {
    return {
      text: item.accountName,
      value: item.accountId,
      // sourceType: item.userSourceType,
      select: item["default"]
    };
  });
}
/**
 * @param {Array} data 数据中心数组
 * @param {Array} type 过滤的数据中心类型
 */

function filterDataCenter(key, defaultCenter, types, dataPipeModel, currentAccountId) {
  try {
    var newDataCenter;
    var dataCenter = src_store.dataCenter || [];

    if (currentAccountId && dataCenter.length > 0) {
      var i = dataCenter.findIndex(function (_ref) {
        var value = _ref.value;
        return value === currentAccountId;
      });
      newDataCenter = i === -1 ? dataCenter : [].concat(_toConsumableArray(dataCenter.slice(i, i + 1)), _toConsumableArray(dataCenter.slice(0, i)), _toConsumableArray(dataCenter.slice(i + 1, dataCenter.length)));
    } else {
      newDataCenter = dataCenter;
    }

    for (var index = 0; index < newDataCenter.length; index++) {
      var accountId = newDataCenter[index].value;
      dataUtil_queryParameters(accountId, newDataCenter, index, dataPipeModel).then(function (data) {
        var _data$userSourceType;

        if (data !== null && data !== void 0 && (_data$userSourceType = data.userSourceType) !== null && _data$userSourceType !== void 0 && _data$userSourceType.some(function (type) {
          return types.includes(type);
        })) {
          dataPipeModel && dataPipeModel.sendData({
            type: key,
            data: data
          });
        }
      })["catch"](function (error) {
        dataUtil_console.error('filterDataCenter error:', error);
      });
    }
  } catch (error) {
    dataUtil_console.error('dataCenter error:', error);
  }
}
function dataUtil_queryParameters(accountId, dataCenter, index, dataPipeModel, isPC) {
  return new Promise(function (resolve, reject) {
    var _dataCenter$index = dataCenter[index],
        domain = _dataCenter$index.domain,
        userSourceType = _dataCenter$index.userSourceType,
        value = _dataCenter$index.value,
        enableDataCenterLoginPage = _dataCenter$index.enableDataCenterLoginPage;
    var isHandleClick = src_store.toggleDataCenter;
    src_store.setValue('toggleDataCenter', false);

    if (value === accountId && userSourceType && enableDataCenterLoginPage !== true && domain !== undefined) {
      return resolve(dataCenter[index]);
    }

    queryParameters({
      accountId: accountId
    }).then(function (data) {
      var errorMessage = data.errorMessage,
          success = data.success,
          hasLDAP = data.hasLDAP,
          domain = data.domain,
          userSourceType = data.userSourceType,
          defaultUserSourceType = data.defaultUserSourceType,
          closeEncrypt = data.closeEncrypt,
          _data$rsaPadding = data.rsaPadding,
          rsaPadding = _data$rsaPadding === void 0 ? false : _data$rsaPadding,
          enableDataCenterLoginPage = data.enableDataCenterLoginPage,
          needSignPrivacy = data.needSignPrivacy;

      if (!success) {
        var error = {
          message: errorMessage,
          level: data.level || 1
        };
        dataPipeModel && dataPipeModel.sendData({
          type: 'ShowNotification',
          error: error
        });
        return resolve(dataCenter[index]);
      }

      if (enableDataCenterLoginPage === true && isHandleClick) {
        var currentAccountIdKey = getNameWithCurrentEnvrionment(CURRENT_ACCOUNDID);
        window.localStorage.setItem(currentAccountIdKey, accountId);
        /**
         * 不同的数据中心有不同的配置，切换要实时生效，基础李俊建议，经吴晓锋与文桥确认，
         * 暂时使用该种方式，页面会有闪烁，但用的人不多，影响不大
        */
        // window.location.reload()
      }

      Object.assign(dataCenter[index], {
        userSourceType: JSON.parse(userSourceType),
        defaultUserSourceType: defaultUserSourceType,
        domain: domain,
        hasLDAP: hasLDAP,
        closeEncrypt: closeEncrypt,
        rsaPadding: rsaPadding,
        enableDataCenterLoginPage: enableDataCenterLoginPage,
        needSignPrivacy: needSignPrivacy
      });
      isPC ? src_store.setValue('dataCenter', dataCenter) : mStore.setValue('dataCenter', dataCenter);
      return resolve(dataCenter[index]);
    });
  })["catch"](function (error) {
    dataUtil_console.log(error);
  });
}
var convertLangData = function convertLangData(data) {
  if (typeof data === 'string') data = JSON.parse(data);
  if (!data || data.length === 0) return langList;
  return data.map(function (item) {
    return {
      text: item.name,
      value: item.number,
      select: item["default"]
    };
  });
};
var getCurrentLang = function getCurrentLang(langList) {
  var currentLangKey = getNameWithCurrentEnvrionment(CURRENT_LANG);
  var currentLang = window.localStorage.getItem(currentLangKey);
  var isValidLang = currentLang && langList.some(function (item) {
    return item.value === currentLang;
  });

  if (!currentLang || !isValidLang) {
    var defaultLang = langList.find(function (item) {
      return item.select;
    });
    currentLang = defaultLang ? defaultLang.value : langList[0].value;
  }

  return currentLang;
};
var getCurrentAccountId = function getCurrentAccountId(dataCenter) {
  var currentAccountIdKey = getNameWithCurrentEnvrionment(CURRENT_ACCOUNDID);
  var accuentId = getUrlParam(decodeURIComponent(window.location.href), 'accountId');
  var currentAccountId = accuentId || window.localStorage.getItem(currentAccountIdKey);
  var isValidAccountId = currentAccountId && dataCenter.some(function (item) {
    return item.accountId === currentAccountId;
  });

  if ((!currentAccountId || !isValidAccountId) && dataCenter && dataCenter.length > 0) {
    var defaultAccount = dataCenter.find(function (item) {
      return item["default"] || item.select;
    });
    currentAccountId = defaultAccount ? defaultAccount.accountId : dataCenter[0].accountId;
  }

  return currentAccountId;
};
var getDefaultLoginType = function getDefaultLoginType(defaultUserSourceType) {
  try {
    var userSourceTypes = ['cloudHub', 'cloudHub', 'kingdeeCloud', '', 'face', 'voice', '', 'shortMessage'];
    return userSourceTypes[defaultUserSourceType];
  } catch (err) {
    dataUtil_console.log(err);
    return 'kingdeeClould';
  }
};
var dataUtil_getQueryString = function getQueryString(name) {
  var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)');
  var r = window.location.search.substr(1).match(reg);
  if (r != null) return unescape(r[2]);
  return null;
};
/**
 * 获取多语言数据的文本
 * @param {*} data 多语言数据 "{"zh_CN": "中文", "en_US": "english", "zh_TW": "繁體"}" || '自定义文本' || {zh_CN: "中文", en_US: "english", zh_TW: "繁體"}
 * @param {*} locale 当前语言
 * @param {*} defaultValue 默认值
 */

var getMultilinguaText = function getMultilinguaText() {
  var initData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  var locale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'zh_CN';
  var defaultValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';

  try {
    var data = jsonParse(initData);
    if (typeof data === 'string') return data || defaultValue;
    var keys = Object.keys(data);
    var text = '';

    if (keys.length > 0) {
      text = data && (data[locale] || data.zh_CN);

      if (!text) {
        keys.forEach(function (key) {
          if (!text && data[key]) {
            text = data[key];
          }
        });
      }
    }

    return text || defaultValue;
  } catch (err) {
    dataUtil_console.log(err);
    return defaultValue;
  }
};

var jsonParse = function jsonParse(data) {
  try {
    return JSON.parse(data);
  } catch (err) {
    // console.log(err)
    return data;
  }
};

var blacklist = ['javascript', 'vbscript', 'script'];
var isScript = function isScript(url) {
  return blacklist.some(function (value) {
    value = value.toUpperCase();
    url = url.toUpperCase();

    if (url.indexOf(value) !== -1) {
      return true;
    }
  });
};
var getLicenseInfo = function getLicenseInfo(_ref2) {
  var accountId = _ref2.accountId,
      language = _ref2.language,
      dataPipeModel = _ref2.dataPipeModel;
  return new Promise(function (resolve, reject) {
    if (!accountId || !language) return resolve([]);
    var _store$licenseInfo = src_store.licenseInfo,
        oldAccountId = _store$licenseInfo.oldAccountId,
        oldLanguage = _store$licenseInfo.oldLanguage,
        data = _store$licenseInfo.data;

    if (accountId === oldAccountId && language === oldLanguage) {
      return resolve(data);
    }

    src_store.setValue('licenseInfo', {
      oldAccountId: accountId,
      oldLanguage: language,
      data: data
    });
    validateLicense({
      accountId: accountId,
      language: language
    }).then(function (data) {
      if (data.error) {
        var error = {
          message: data.error,
          level: 1
        };
        dataPipeModel && dataPipeModel.sendData({
          type: 'ShowNotification',
          error: error
        });
        return resolve([]);
      } else {
        src_store.setValue('licenseInfo', {
          oldAccountId: accountId,
          oldLanguage: language,
          data: data
        });
        return resolve(data);
      }
    })["catch"](function (error) {
      throw new Error('fetch data error:' + error);
    });
  });
};
var resetStore = function resetStore(store) {
  var resetArr = ['verifyCode', 'phoneCode', 'password'];
  resetArr.forEach(function (item) {
    store.setValue(item, '');
  });
};
;// CONCATENATED MODULE: ./src/page/web/base/DropdownList.jsx
function DropdownList_typeof(obj) { "@babel/helpers - typeof"; return DropdownList_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, DropdownList_typeof(obj); }

function DropdownList_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }





















function DropdownList_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function DropdownList_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function DropdownList_createClass(Constructor, protoProps, staticProps) { if (protoProps) DropdownList_defineProperties(Constructor.prototype, protoProps); if (staticProps) DropdownList_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }

function DropdownList_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) DropdownList_setPrototypeOf(subClass, superClass); }

function DropdownList_setPrototypeOf(o, p) { DropdownList_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return DropdownList_setPrototypeOf(o, p); }

function DropdownList_createSuper(Derived) { var hasNativeReflectConstruct = DropdownList_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = DropdownList_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = DropdownList_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return DropdownList_possibleConstructorReturn(this, result); }; }

function DropdownList_possibleConstructorReturn(self, call) { if (call && (DropdownList_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return DropdownList_assertThisInitialized(self); }

function DropdownList_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function DropdownList_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }

function DropdownList_getPrototypeOf(o) { DropdownList_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return DropdownList_getPrototypeOf(o); }








 // import eventBus from '@/eventBus.js'

var DropdownList = /*#__PURE__*/function (_Component) {
  DropdownList_inherits(DropdownList, _Component);

  var _super = DropdownList_createSuper(DropdownList);

  function DropdownList(props) {
    var _this;

    DropdownList_classCallCheck(this, DropdownList);

    _this = _super.call(this, props);
    _this.dropdownListRef = /*#__PURE__*/react.createRef();
    _this.state = {
      showPanel: false,
      showTiops: true,
      domainText: ''
    };
    _this.handleSwitchPanel = _this.handleSwitchPanel.bind(DropdownList_assertThisInitialized(_this));
    _this.handleClickOutside = _this.handleClickOutside.bind(DropdownList_assertThisInitialized(_this));
    _this.handleMouseover = _this.handleMouseover.bind(DropdownList_assertThisInitialized(_this));
    _this.handleMouseOut = _this.handleMouseOut.bind(DropdownList_assertThisInitialized(_this));
    _this.getDomain = _this.getDomain.bind(DropdownList_assertThisInitialized(_this));
    _this.handleItemClick = _this.handleItemClick.bind(DropdownList_assertThisInitialized(_this));
    _this.showLDAP = _this.showLDAP.bind(DropdownList_assertThisInitialized(_this));
    _this.hideCloudHubLogin = _this.hideCloudHubLogin.bind(DropdownList_assertThisInitialized(_this));
    return _this;
  }

  DropdownList_createClass(DropdownList, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      document.addEventListener('click', this.handleClickOutside);
      src_store.accountId && this.getDomain(src_store.accountId);
    }
  }, {
    key: "shouldComponentUpdate",
    value: function shouldComponentUpdate(nextProps, nextState) {
      if (this.props.selectItem !== nextProps.selectItem) {
        this.getDomain(nextProps.selectItem);
      }

      return true;
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      document.removeEventListener('click', this.handleClickOutside);
    }
  }, {
    key: "handleClickOutside",
    value: function handleClickOutside(e) {
      if (!this.state.showPanel) return;
      var target = e.target;

      while (target && target !== document) {
        if (target === react_dom.findDOMNode(this.dropdownListRef.current)) {
          return;
        }

        target = target.parentNode;
      }

      if (!target) return;
      this.setState({
        showPanel: false
      });
    }
  }, {
    key: "handleSwitchPanel",
    value: function handleSwitchPanel() {
      this.setState({
        showPanel: !this.state.showPanel
      });
    }
  }, {
    key: "handleItemClick",
    value: function handleItemClick(key) {
      this.props.onItemClick(key);
      this.setState({
        showPanel: false
      });
    }
  }, {
    key: "getDomain",
    value: function getDomain(accountId) {
      var _this2 = this;

      try {
        var dataCenter = src_store.dataCenter;
        var index;
        dataCenter.some(function (item, i) {
          if (item.value === accountId) {
            index = i;
            return true;
          }
        });
        dataUtil_queryParameters(accountId, dataCenter, index, this.props.dataPipeModel).then(function (data) {
          if (!data || data.length < 1) return;
          var hasLDAP = data.hasLDAP,
              domain = data.domain,
              userSourceType = data.userSourceType,
              defaultUserSourceType = data.defaultUserSourceType;

          _this2.props.dataPipeModel.sendData({
            type: 'currentAccountIdChange',
            data: {
              userSourceType: userSourceType,
              defaultUserSourceType: defaultUserSourceType
            }
          });

          _this2.showLDAP(hasLDAP, domain, userSourceType, defaultUserSourceType);

          _this2.hideCloudHubLogin(userSourceType);
        });
      } catch (error) {
        this.props.dataPipeModel.sendData({
          type: 'hasLDAP',
          hasLDAP: false
        });
      }
    }
  }, {
    key: "hideCloudHubLogin",
    value: function hideCloudHubLogin(sourceType) {
      if (sourceType && (sourceType.includes(0) || sourceType.includes(1))) {
        this.props.dataPipeModel && this.props.dataPipeModel.sendData({
          type: 'HideCloudHubIcon',
          isHide: false
        });
      } else {
        this.props.dataPipeModel && this.props.dataPipeModel.sendData({
          type: 'HideCloudHubIcon',
          isHide: true
        });
      }
    }
  }, {
    key: "showLDAP",
    value: function showLDAP(hasLDAP, domain, userSourceType, defaultUserSourceType) {
      this.props.dataPipeModel.sendData({
        type: 'hasLDAP',
        hasLDAP: hasLDAP
      });
      if (!this.props.isKingdeeClude) return;

      if (hasLDAP) {
        this.setState({
          domainText: domain
        });
      } else {
        this.setState({
          domainText: '',
          showTiops: true
        });
      }
    }
  }, {
    key: "handleMouseover",
    value: function handleMouseover() {
      if (!this.props.isKingdeeClude || !this.state.domainText) return;
      this.setState({
        showTiops: false
      });
    }
  }, {
    key: "handleMouseOut",
    value: function handleMouseOut() {
      if (!this.props.isKingdeeClude) return;
      this.setState({
        showTiops: true
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _classname,
          _classname2,
          _classname3,
          _classname4,
          _this3 = this;

      var showPanel = this.state.showPanel;
      var _this$props = this.props,
          list = _this$props.list,
          name = _this$props.name,
          inheritStyle = _this$props.inheritStyle,
          title = _this$props.title,
          oldDataCenter = _this$props.oldDataCenter;
      var onlyOneChild = false;
      var hideTextPanel = false;

      if ((name === 'accountId' || name === 'lang') && list.length === 1) {
        onlyOneChild = true;
      }

      if (list.length === 1 && oldDataCenter) {
        if (oldDataCenter.length === 1) {
          onlyOneChild = true;
        } else {
          onlyOneChild = false;
          hideTextPanel = true;
        }
      }

      var dropdownListClass = classnames_default()((_classname = {}, DropdownList_defineProperty(_classname, base_DropdownList.dropdownList, true), DropdownList_defineProperty(_classname, this.props.style, true), DropdownList_defineProperty(_classname, base_DropdownList.onlyOneChild, onlyOneChild), _classname));
      var textClass = classnames_default()((_classname2 = {}, DropdownList_defineProperty(_classname2, base_DropdownList.text, true), DropdownList_defineProperty(_classname2, base_DropdownList.on, showPanel && !hideTextPanel), DropdownList_defineProperty(_classname2, base_DropdownList.off, !showPanel && !hideTextPanel), _classname2));
      var panelClass = classnames_default()((_classname3 = {}, DropdownList_defineProperty(_classname3, base_DropdownList.panel, true), DropdownList_defineProperty(_classname3, base_DropdownList.hide, !showPanel), _classname3));
      var tips = classnames_default()((_classname4 = {}, DropdownList_defineProperty(_classname4, base_DropdownList.tips, true), DropdownList_defineProperty(_classname4, base_DropdownList.tipsHide, this.state.showTiops), _classname4));
      var selectItem;
      selectItem = list.find(function (item) {
        return item.value === _this3.props.selectItem;
      });
      var olist = list.map(function (item) {
        var _classname5;

        var itemClass = classnames_default()((_classname5 = {}, DropdownList_defineProperty(_classname5, base_DropdownList.item, true), DropdownList_defineProperty(_classname5, base_DropdownList["item-selected"], item.value === _this3.props.selectItem), _classname5));
        return /*#__PURE__*/react.createElement("li", {
          className: itemClass,
          key: item.value,
          onClick: function onClick(e) {
            return _this3.handleItemClick(item.value, e);
          }
        }, item.text);
      });

      if (selectItem) {
        src_store.setValue(name, selectItem.value);
      }

      return olist.length > 0 ? /*#__PURE__*/react.createElement(StoreContext.Consumer, null, function (store) {
        return /*#__PURE__*/react.createElement("div", {
          className: dropdownListClass,
          style: inheritStyle,
          id: "dropdown_list"
        }, title ? /*#__PURE__*/react.createElement("div", {
          className: base_DropdownList.title
        }, title) : null, /*#__PURE__*/react.createElement("div", {
          className: base_DropdownList.textWrapper,
          ref: _this3.dropdownListRef
        }, /*#__PURE__*/react.createElement("div", {
          className: tips
        }, /*#__PURE__*/react.createElement("div", {
          className: base_DropdownList.tipsContainer
        }, /*#__PURE__*/react.createElement("div", {
          className: base_DropdownList.tipsTitle
        }, intlApi_getLangMsg('login.key093')), /*#__PURE__*/react.createElement("div", {
          className: base_DropdownList.tipsText,
          title: _this3.state.domainText
        }, _this3.state.domainText))), /*#__PURE__*/react.createElement("div", {
          className: textClass,
          onClick: _this3.handleSwitchPanel,
          onMouseOver: _this3.handleMouseover,
          onMouseOut: _this3.handleMouseOut
        }, selectItem && selectItem.text), /*#__PURE__*/react.createElement("div", {
          className: panelClass
        }, /*#__PURE__*/react.createElement("ul", {
          className: base_DropdownList.list
        }, olist))));
      }) : null;
    }
  }]);

  return DropdownList;
}(react.Component);

/* harmony default export */ var web_base_DropdownList = (DropdownList);
;// CONCATENATED MODULE: ./src/page/web/base/HyperLink.less
// extracted by mini-css-extract-plugin
/* harmony default export */ var HyperLink = ({"hyperlink":"_2-ty4wmD"});
;// CONCATENATED MODULE: ./src/page/web/base/HyperLink.jsx



function HyperLink_HyperLink(props) {
  return /*#__PURE__*/react.createElement("a", {
    className: HyperLink.hyperlink,
    id: "find_pwd",
    style: props.style,
    href: props.href
  }, props.text);
}

/* harmony default export */ var base_HyperLink = (HyperLink_HyperLink);
;// CONCATENATED MODULE: ./src/page/web/base/Input.less
// extracted by mini-css-extract-plugin
/* harmony default export */ var Input = ({"container":"qqk5cqlu","errorMsg":"_3EJ2tM1B","content":"_1yfX1Rdk","showPwd":"_1rgkxIc6","hidePwd":"XTh8voNj","icon":"_1tBxMTSa","accIcon":"_3jVtp61f","accIconFocus":"_27WDHUrP","accIconError":"_22hwq8yR","pwdIcon":"UO82t4Gs","pwdIconFocus":"_24RlzxyE","pwdIconError":"_1_oV2QBp","verifyIcon":"gtYGZJYm","verifyIconFocus":"r2AuPWjt","verifyIconError":"pi6HWSmS","msgIcon":"_31nvN2bb","msgIconFocus":"_18H1QzeB","msgIconError":"_34hoioDA","input":"_10qgMJdZ","inputFocus":"_2RDs8uM-","inputError":"_2QspcDWN"});
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.array.splice.js
var es_array_splice = __webpack_require__(9805);
;// CONCATENATED MODULE: ./src/DataPipeModel.js
/* provided dependency */ var DataPipeModel_console = __webpack_require__(3716);







function DataPipeModel_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function DataPipeModel_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function DataPipeModel_createClass(Constructor, protoProps, staticProps) { if (protoProps) DataPipeModel_defineProperties(Constructor.prototype, protoProps); if (staticProps) DataPipeModel_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }

/**
 * 数据管道模型
 */
var DataPipeModel = /*#__PURE__*/function () {
  function DataPipeModel() {
    DataPipeModel_classCallCheck(this, DataPipeModel);

    this.holdCallback = {};
    window.holdCallback = this.holdCallback;
  }
  /**
     * 注册回调函数
     * @param {*} callbackType 回调函数的类型
     * @param {*} callback 回调函数
     **/


  DataPipeModel_createClass(DataPipeModel, [{
    key: "registerCallback",
    value: function registerCallback(callbackType, callback) {
      var _this = this;

      if (this.holdCallback[callbackType]) {
        this.holdCallback[callbackType].push(callback);
      } else {
        this.holdCallback[callbackType] = [callback];
      }

      return function () {
        _this.holdCallback[callbackType].splice(_this.holdCallback[callbackType].length - 1, 1);
      };
    }
    /**
       * 主动将数据传输过去
       * 调用函数和回调函数是一对多的关系
       * @param {*} data 需要传输的数据
       */

  }, {
    key: "sendData",
    value: function sendData(data) {
      var type = data.type;
      var callbackArr = this.holdCallback[type] || [];
      callbackArr.forEach(function (callback) {
        try {
          setTimeout(function () {
            callback(data);
          }, 0);
        } catch (error) {
          DataPipeModel_console.error(error, type);
        }
      });
    }
    /**
       * 主动从其他对象获取数据
       * 调用函数和回调函数是多对一的关系
       * @param {*} type 获取数据的类型
       **/

  }, {
    key: "getData",
    value: function getData(type) {
      var callback = this.holdCallback[type][0];
      var result;

      try {
        result = callback();
      } catch (error) {
        DataPipeModel_console.error(error, type);
      }

      return result;
    }
  }]);

  return DataPipeModel;
}();

/* harmony default export */ var src_DataPipeModel = (DataPipeModel);
;// CONCATENATED MODULE: ./src/page/web/base/Input.jsx
function Input_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

















function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || Input_unsupportedIterableToArray(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function Input_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return Input_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Input_arrayLikeToArray(o, minLen); }

function Input_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }






function Input2(props) {
  var _classnames, _classnames2, _classnames3, _classnames4, _classnames5, _classnames6, _classnames7, _inputRef$current;

  var _props$defaultValue = props.defaultValue,
      defaultValue = _props$defaultValue === void 0 ? '' : _props$defaultValue,
      isFocusAccount = props.isFocusAccount,
      className = props.className,
      onBlur = props.onBlur;
  var dataPipeModel = props.dataPipeModel || new src_DataPipeModel();

  var _useState = (0,react.useState)(false),
      _useState2 = _slicedToArray(_useState, 2),
      isFocus = _useState2[0],
      setFocus = _useState2[1];

  var _useState3 = (0,react.useState)(''),
      _useState4 = _slicedToArray(_useState3, 2),
      errorMsg = _useState4[0],
      setErrorMsg = _useState4[1];

  var inputRef = (0,react.useRef)(null); // const [value, setValue] = useState(defaultValue)

  var _useState5 = (0,react.useState)(false),
      _useState6 = _slicedToArray(_useState5, 2),
      showPws = _useState6[0],
      setShowPws = _useState6[1];

  (0,react.useEffect)(function () {
    var handleError = function handleError(_ref) {
      var data = _ref.data,
          name = _ref.name;
      setErrorMsg(data);
      if (name && name === 'newPassword') return;
      inputRef.current.focus();
    }; // 监听校验数据的错误


    var errorTitle = props.name + 'Error';
    var showErrorHandle = dataPipeModel.registerCallback(errorTitle, handleError);

    var handleFocusEvent = function handleFocusEvent(data) {
      if (data.name === props.name) {
        inputRef.current.focus();

        if (data.emptyValue) {
          // setValue('')
          inputRef.current.value = '';
        }
      }
    }; // 监听选中事件


    var focusInputHandle = dataPipeModel.registerCallback('FocusInput', handleFocusEvent);

    if (props.name === 'account' && isFocusAccount) {
      dataPipeModel.sendData({
        type: 'FocusInput',
        name: 'account'
      });
    } else if (props.name === 'password' && !isFocusAccount) {
      dataPipeModel.sendData({
        type: 'FocusInput',
        name: 'password'
      });
    }

    return function () {
      showErrorHandle();
      focusInputHandle();
    };
  }, []); // 父组件传的默认值改变, 则动态修改

  (0,react.useEffect)(function () {
    if ([undefined, null, ''].includes(inputRef.current.value) && defaultValue) {
      // setValue(defaultValue)
      inputRef.current.type = props.type;
      inputRef.current.value = defaultValue;
    }
  }, [defaultValue]);

  var handleFocus = function handleFocus(e) {
    if (props.type === 'password' && !showPws) {
      inputRef.current.type = props.type;
    }

    setFocus(true);
  };

  var handleBlur = function handleBlur(e) {
    if (props.type === 'password' && !showPws) {
      inputRef.current.type = props.type;
    }

    setFocus(false);
    onBlur && onBlur();
  };

  var handleChange = function handleChange(e) {
    if (props.type === 'password' && !showPws) {
      inputRef.current.type = props.type;
    }

    var newValue = e.target.value;
    inputRef.current.value = newValue;
    src_store.setValue(props.name, newValue);
    setErrorMsg('');
    props.valueChange && props.valueChange();
  };

  var handleClick = function handleClick() {
    setShowPws(!showPws);
  };

  var contentClass = classnames_default()((_classnames = {}, Input_defineProperty(_classnames, Input.content, true), Input_defineProperty(_classnames, Input.inputFocus, isFocus), Input_defineProperty(_classnames, Input.inputError, errorMsg !== ''), _classnames));
  var accIconClass = classnames_default()((_classnames2 = {}, Input_defineProperty(_classnames2, Input.icon, true), Input_defineProperty(_classnames2, Input.accIcon, true), Input_defineProperty(_classnames2, Input.accIconFocus, isFocus), Input_defineProperty(_classnames2, Input.accIconError, errorMsg !== ''), _classnames2));
  var pwdIconClass = classnames_default()((_classnames3 = {}, Input_defineProperty(_classnames3, Input.icon, true), Input_defineProperty(_classnames3, Input.pwdIcon, true), Input_defineProperty(_classnames3, Input.pwdIconFocus, isFocus), Input_defineProperty(_classnames3, Input.pwdIconError, errorMsg !== ''), _classnames3));
  var verifyIconClass = classnames_default()((_classnames4 = {}, Input_defineProperty(_classnames4, Input.icon, true), Input_defineProperty(_classnames4, Input.verifyIcon, true), Input_defineProperty(_classnames4, Input.verifyIconFocus, isFocus), Input_defineProperty(_classnames4, Input.verifyIconError, errorMsg !== ''), _classnames4));
  var msgIconClass = classnames_default()((_classnames5 = {}, Input_defineProperty(_classnames5, Input.icon, true), Input_defineProperty(_classnames5, Input.msgIcon, true), Input_defineProperty(_classnames5, Input.msgIconFocus, isFocus), Input_defineProperty(_classnames5, Input.msgIconError, errorMsg !== ''), _classnames5));
  var images = classnames_default()((_classnames6 = {}, Input_defineProperty(_classnames6, Input.hidePwd, !showPws), Input_defineProperty(_classnames6, Input.showPwd, showPws), Input_defineProperty(_classnames6, Input.icon, true), _classnames6));
  var placeholder = props.placeholder,
      name = props.name;
  var classNames = [accIconClass, pwdIconClass, verifyIconClass, msgIconClass];
  var iconClassName = getIconClassName(classNames, name);
  var containerClass = classnames_default()((_classnames7 = {}, Input_defineProperty(_classnames7, Input.container, true), Input_defineProperty(_classnames7, className, className), _classnames7)); // 防止浏览器自动填充

  var type = props.type === 'password' && ![undefined, null, ''].includes((_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.value) && !showPws ? 'password' : 'text';
  var eye = props.type === 'password' && src_store.showviewpwdbtn && src_store.showviewpwdbtn !== 'false';
  return /*#__PURE__*/react.createElement("div", {
    className: containerClass
  }, /*#__PURE__*/react.createElement("div", {
    className: Input.errorMsg
  }, errorMsg), /*#__PURE__*/react.createElement("div", {
    className: contentClass
  }, /*#__PURE__*/react.createElement("span", {
    className: iconClassName
  }), /*#__PURE__*/react.createElement("input", {
    ref: inputRef,
    type: type,
    "data-type": props.type,
    className: Input.input,
    placeholder: placeholder,
    onFocus: handleFocus,
    onBlur: handleBlur,
    onChange: handleChange,
    autoComplete: "off",
    spellCheck: false,
    readOnly: props.readOnly
  }), eye && /*#__PURE__*/react.createElement("span", {
    className: images,
    onClick: handleClick
  })));
}

var getIconClassName = function getIconClassName(classNames, name) {
  if (['account', 'yzjAccount'].indexOf(name) > -1) {
    return classNames[0];
  } else if (['password', 'newPassword', 'confirmPassword', 'yzjPwd'].indexOf(name) > -1) {
    return classNames[1];
  } else if (name === 'verifyCode') {
    return classNames[2];
  } else if (name === 'phoneCode') {
    return classNames[3];
  }
};
;// CONCATENATED MODULE: ./src/page/web/base/Notification.less
// extracted by mini-css-extract-plugin
/* harmony default export */ var base_Notification = ({"notification":"_1oQlEOHN","message":"_2ZKRT2Ul","cancel":"_1gf_AFKt","error":"_3cH-I7go","warmming":"_3RTb2uGc"});
// EXTERNAL MODULE: ./src/img/error.png
var error = __webpack_require__(4407);
var error_default = /*#__PURE__*/__webpack_require__.n(error);
// EXTERNAL MODULE: ./src/img/warmming.png
var warmming = __webpack_require__(244);
var warmming_default = /*#__PURE__*/__webpack_require__.n(warmming);
;// CONCATENATED MODULE: ./src/page/web/base/Notification.jsx
function Notification_typeof(obj) { "@babel/helpers - typeof"; return Notification_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, Notification_typeof(obj); }

function Notification_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
















function Notification_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function Notification_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function Notification_createClass(Constructor, protoProps, staticProps) { if (protoProps) Notification_defineProperties(Constructor.prototype, protoProps); if (staticProps) Notification_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }

function Notification_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) Notification_setPrototypeOf(subClass, superClass); }

function Notification_setPrototypeOf(o, p) { Notification_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return Notification_setPrototypeOf(o, p); }

function Notification_createSuper(Derived) { var hasNativeReflectConstruct = Notification_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Notification_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Notification_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Notification_possibleConstructorReturn(this, result); }; }

function Notification_possibleConstructorReturn(self, call) { if (call && (Notification_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return Notification_assertThisInitialized(self); }

function Notification_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function Notification_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }

function Notification_getPrototypeOf(o) { Notification_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return Notification_getPrototypeOf(o); }



 // import eventBus from '../../../eventBus'




var Notification = /*#__PURE__*/function (_Component) {
  Notification_inherits(Notification, _Component);

  var _super = Notification_createSuper(Notification);

  function Notification(props) {
    var _this;

    Notification_classCallCheck(this, Notification);

    _this = _super.call(this, props);
    _this.duringTime = 8000;
    _this.state = {
      show: false,
      message: '',
      level: 1
    };
    _this.handleClick = _this.handleClick.bind(Notification_assertThisInitialized(_this));
    _this.handleShowNotification = _this.handleShowNotification.bind(Notification_assertThisInitialized(_this));
    return _this;
  }

  Notification_createClass(Notification, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      // this.showNotificationHandle = eventBus.sub_showNotification(this.handleShowNotification)
      this.showNotificationHandle = this.props.dataPipeModel && this.props.dataPipeModel.registerCallback('ShowNotification', this.handleShowNotification);
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      this.showNotificationHandle();
    }
  }, {
    key: "handleClick",
    value: function handleClick() {
      this.setState({
        show: false
      });
    }
  }, {
    key: "handleShowNotification",
    value: function handleShowNotification(data) {
      var _this2 = this;

      var _data$error = data.error,
          message = _data$error.message,
          level = _data$error.level,
          _data$error$time = _data$error.time,
          time = _data$error$time === void 0 ? '' : _data$error$time; // message为空的时候不显示

      this.setState({
        show: !!message,
        message: message,
        level: level
      });
      if (time === 'infinite') return;
      this.duringTime = time || this.duringTime;
      clearTimeout(this.duringTimer);
      this.duringTimer = setTimeout(function () {
        _this2.setState({
          show: false
        });
      }, this.duringTime);
    }
  }, {
    key: "render",
    value: function render() {
      var _classname;

      var level = this.state.level;
      var notificationClass = classnames_default()((_classname = {}, Notification_defineProperty(_classname, base_Notification.notification, true), Notification_defineProperty(_classname, base_Notification.error, level === 1), Notification_defineProperty(_classname, base_Notification.warmming, level === 2), _classname));
      return this.state.show ? /*#__PURE__*/react.createElement("div", {
        className: notificationClass,
        style: this.props.style
      }, /*#__PURE__*/react.createElement("img", {
        src: level === 1 ? (error_default()) : (warmming_default())
      }), /*#__PURE__*/react.createElement("div", {
        className: base_Notification.message,
        title: this.state.message
      }, this.state.message), /*#__PURE__*/react.createElement("div", {
        className: base_Notification.cancel,
        onClick: this.handleClick
      }, "\xD7")) : /*#__PURE__*/react.createElement("div", {
        className: base_Notification.notification,
        style: this.props.style
      });
    }
  }]);

  return Notification;
}(react.Component);

/* harmony default export */ var web_base_Notification = (Notification);
;// CONCATENATED MODULE: ./src/page/web/base/OfflinePrompt.less
// extracted by mini-css-extract-plugin
/* harmony default export */ var base_OfflinePrompt = ({"msgRoot":"Pr14r_5F","ieWrap":"_3ksr9UdH","offlinePrompt":"_2WIoum6R","head":"_2BxSC1Rh","title":"XJud8jDS","dialogDot":"xv3ZTsdN","close":"XpM3ureI","content":"Ch9Lh8jv","foot":"_3FFObSDY","iKnow":"FLgm4UXQ","findPsw":"-aY6MbKt"});
// EXTERNAL MODULE: ./src/img/offline.png
var offline = __webpack_require__(5831);
var offline_default = /*#__PURE__*/__webpack_require__.n(offline);
;// CONCATENATED MODULE: ./src/page/web/base/OfflinePrompt.jsx
function OfflinePrompt_typeof(obj) { "@babel/helpers - typeof"; return OfflinePrompt_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, OfflinePrompt_typeof(obj); }


















function OfflinePrompt_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function OfflinePrompt_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function OfflinePrompt_createClass(Constructor, protoProps, staticProps) { if (protoProps) OfflinePrompt_defineProperties(Constructor.prototype, protoProps); if (staticProps) OfflinePrompt_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }

function OfflinePrompt_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) OfflinePrompt_setPrototypeOf(subClass, superClass); }

function OfflinePrompt_setPrototypeOf(o, p) { OfflinePrompt_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return OfflinePrompt_setPrototypeOf(o, p); }

function OfflinePrompt_createSuper(Derived) { var hasNativeReflectConstruct = OfflinePrompt_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = OfflinePrompt_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = OfflinePrompt_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return OfflinePrompt_possibleConstructorReturn(this, result); }; }

function OfflinePrompt_possibleConstructorReturn(self, call) { if (call && (OfflinePrompt_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return OfflinePrompt_assertThisInitialized(self); }

function OfflinePrompt_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function OfflinePrompt_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }

function OfflinePrompt_getPrototypeOf(o) { OfflinePrompt_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return OfflinePrompt_getPrototypeOf(o); }









var OfflinePrompt = /*#__PURE__*/function (_Component) {
  OfflinePrompt_inherits(OfflinePrompt, _Component);

  var _super = OfflinePrompt_createSuper(OfflinePrompt);

  function OfflinePrompt(props) {
    var _this;

    OfflinePrompt_classCallCheck(this, OfflinePrompt);

    _this = _super.call(this, props);
    _this.state = {
      message: ''
    };
    _this.getErrorMessage = _this.getErrorMessage.bind(OfflinePrompt_assertThisInitialized(_this));
    _this.handleClose = _this.handleClose.bind(OfflinePrompt_assertThisInitialized(_this));
    return _this;
  }

  OfflinePrompt_createClass(OfflinePrompt, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.getErrorMessage();
    }
  }, {
    key: "getErrorMessage",
    value: function getErrorMessage() {
      var _this2 = this;

      service_getErrorMessage({
        language: src_store.lang
      }).then(function (data) {
        var message = data.message || '';

        _this2.setState({
          message: message
        });
      });
    }
  }, {
    key: "handleClose",
    value: function handleClose() {
      this.setState({
        message: ''
      });
    }
  }, {
    key: "handleChangePsw",
    value: function handleChangePsw() {
      window.location.hash = '#findPassword';
    }
  }, {
    key: "renderMessage",
    value: function renderMessage() {
      var message = this.state.message;
      var msgArr = message.split('\n');
      return msgArr.map(function (item, index) {
        return /*#__PURE__*/react.createElement("div", {
          key: index
        }, item);
      });
    }
  }, {
    key: "render",
    value: function render() {
      var message = this.state.message;
      return message !== '' ? /*#__PURE__*/react_dom.createPortal( /*#__PURE__*/react.createElement("div", {
        className: base_OfflinePrompt.msgRoot
      }, /*#__PURE__*/react.createElement("div", {
        className: base_OfflinePrompt.ieWrap
      }, /*#__PURE__*/react.createElement("div", {
        className: base_OfflinePrompt.offlinePrompt
      }, /*#__PURE__*/react.createElement("div", {
        className: base_OfflinePrompt.head
      }, /*#__PURE__*/react.createElement("div", {
        className: base_OfflinePrompt.dialogDot
      }), /*#__PURE__*/react.createElement("div", {
        className: base_OfflinePrompt.title
      }, intlApi_getLangMsg('login.key061')), /*#__PURE__*/react.createElement("div", {
        className: base_OfflinePrompt.close,
        onClick: this.handleClose
      }, "\xD7")), /*#__PURE__*/react.createElement("img", {
        src: (offline_default())
      }), /*#__PURE__*/react.createElement("div", {
        className: base_OfflinePrompt.content
      }, message), /*#__PURE__*/react.createElement("div", {
        className: base_OfflinePrompt.foot
      }, /*#__PURE__*/react.createElement("div", {
        className: base_OfflinePrompt.iKnow,
        onClick: this.handleClose
      }, intlApi_getLangMsg('login.key062')), /*#__PURE__*/react.createElement("div", {
        className: base_OfflinePrompt.findPsw,
        onClick: this.handleChangePsw
      }, intlApi_getLangMsg('login.key063')))))), document.body) : null;
    }
  }]);

  return OfflinePrompt;
}(react.Component);

/* harmony default export */ var web_base_OfflinePrompt = (OfflinePrompt);
;// CONCATENATED MODULE: ./src/page/web/base/LicenseBar.less
// extracted by mini-css-extract-plugin
/* harmony default export */ var LicenseBar = ({"ieWrap":"_3WgrW4PN","message":"OVko05Lt","titleRoot":"_1DcBwXGf","title":"_2fd5UnOR","days":"_2ULp72sE","slidingIn":"PNFiudSd","slidingOut":"_1VROEFvf"});
;// CONCATENATED MODULE: ./src/page/web/base/LicenseBar.jsx
function LicenseBar_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }



















function LicenseBar_toConsumableArray(arr) { return LicenseBar_arrayWithoutHoles(arr) || LicenseBar_iterableToArray(arr) || LicenseBar_unsupportedIterableToArray(arr) || LicenseBar_nonIterableSpread(); }

function LicenseBar_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function LicenseBar_iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }

function LicenseBar_arrayWithoutHoles(arr) { if (Array.isArray(arr)) return LicenseBar_arrayLikeToArray(arr); }

function LicenseBar_slicedToArray(arr, i) { return LicenseBar_arrayWithHoles(arr) || LicenseBar_iterableToArrayLimit(arr, i) || LicenseBar_unsupportedIterableToArray(arr, i) || LicenseBar_nonIterableRest(); }

function LicenseBar_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function LicenseBar_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return LicenseBar_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return LicenseBar_arrayLikeToArray(o, minLen); }

function LicenseBar_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function LicenseBar_iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function LicenseBar_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }



 // import warmming from '../../../img/warmming.png'





function LicenseBar_LicenseBar(props) {
  var _useState = (0,react.useState)(true),
      _useState2 = LicenseBar_slicedToArray(_useState, 2),
      show = _useState2[0],
      setShow = _useState2[1];

  (0,react.useEffect)(function () {
    window.addEventListener('resize', handleResize);
    window.addEventListener('resize', hideLicense);
    return function () {
      window.removeEventListener('resize', handleResize);
      window.removeEventListener('resize', hideLicense);
    };
  }, []);

  var hideLicense = function hideLicense() {
    if (show) {
      setShow(false);
    }
  };

  var showLicense = function showLicense() {
    setShow(function (show) {
      return true;
    });
  };

  var handleResize = debounce(showLicense, 1000);
  return /*#__PURE__*/react.createElement(react.Fragment, {
    key: "fragment"
  }, show ? /*#__PURE__*/react.createElement(ExpiredInfo, props) : null);
}
function ExpiredInfo(props) {
  var _classnames;

  var _useState3 = (0,react.useState)([]),
      _useState4 = LicenseBar_slicedToArray(_useState3, 2),
      licenseList = _useState4[0],
      setLicenseList = _useState4[1];

  var _useState5 = (0,react.useState)(true),
      _useState6 = LicenseBar_slicedToArray(_useState5, 2),
      virtualNode = _useState6[0],
      setVirtualNode = _useState6[1];

  var _useState7 = (0,react.useState)(false),
      _useState8 = LicenseBar_slicedToArray(_useState7, 2),
      isShow = _useState8[0],
      setIsShow = _useState8[1];

  var _useState9 = (0,react.useState)(false),
      _useState10 = LicenseBar_slicedToArray(_useState9, 2),
      oneAnimating = _useState10[0],
      setOneAnimating = _useState10[1];

  var _useState11 = (0,react.useState)(false),
      _useState12 = LicenseBar_slicedToArray(_useState11, 2),
      twoAnimating = _useState12[0],
      setTwoAnimating = _useState12[1];

  var _useState13 = (0,react.useState)(-100),
      _useState14 = LicenseBar_slicedToArray(_useState13, 2),
      oneDivTranY = _useState14[0],
      setOneDivTranY = _useState14[1];

  var _useState15 = (0,react.useState)(0),
      _useState16 = LicenseBar_slicedToArray(_useState15, 2),
      twoDivTranY = _useState16[0],
      setTwoDivTranY = _useState16[1];

  var _useState17 = (0,react.useState)(1),
      _useState18 = LicenseBar_slicedToArray(_useState17, 2),
      currentIndex = _useState18[0],
      setCurrentIndex = _useState18[1];

  var _useState19 = (0,react.useState)(0),
      _useState20 = LicenseBar_slicedToArray(_useState19, 2),
      count = _useState20[0],
      setCount = _useState20[1];

  var _useState21 = (0,react.useState)(),
      _useState22 = LicenseBar_slicedToArray(_useState21, 2),
      topInfo = _useState22[0],
      setTopInfo = _useState22[1];

  var _useState23 = (0,react.useState)(),
      _useState24 = LicenseBar_slicedToArray(_useState23, 2),
      bottomInfo = _useState24[0],
      setBottomInfo = _useState24[1];

  var msgHeights = (0,react.useRef)([]);
  var timer = (0,react.useRef)(null);

  var Initialize = function Initialize() {
    setOneAnimating(false);
    setTwoAnimating(false);
    setOneDivTranY(-100);
    setTwoDivTranY(0);
    setCurrentIndex(1);
    setCount(0);
  }; // 获取许可信息


  var validateLicense = function validateLicense(data) {
    getLicenseInfo({
      accountId: data.currentAccountId || src_store.accountId,
      language: data.language || src_store.lang,
      dataPipeModel: props.dataPipeModel
    }).then(function (data) {
      var _data$licenseList;

      // data = {
      //   overTime: false,
      //   licenseList: [
      //     { overTime: true, msg: '第 0 license已到期（可正常登录，但不能使用受许可控制的功能license已到期 license已到期（可正常登录，但不能使用受许可控制的功能license已到期 license已到期（可正常登录，但不能使用受许可控制的功能license已到期（可正常登录，但不能使用受许可控制的功能5license已到期（可正常登录', days: 5 },
      //     { overTime: false, msg: '第 1 license已到期（可正常登录，但不能使用受许可控制的功能），请及时购买。', days: 0 },
      //     { overTime: false, msg: '第 2 license已到期（可正常登录，但不能使用受许可控制的功能），请及时购买。', days: 0 },
      //     { overTime: false, msg: '第 3 license已到期（可正常登录，但不能使用受许可控制的功能），请及时购买。', days: 0 },
      //     { overTime: false, msg: '第 4 license已到期（可正常登录，但不能使用受许可控制的功能），请及时购买。', days: 0 }
      //   ]
      // }
      if (data.licenseList && ((_data$licenseList = data.licenseList) === null || _data$licenseList === void 0 ? void 0 : _data$licenseList.length) > 0) {
        setIsShow(true);
        setTopInfo(data.licenseList[1]);
        setBottomInfo(data.licenseList[0]);
        setLicenseList(data.licenseList);
        setVirtualNode(true);
        Initialize();
      } else {
        props.dataPipeModel && props.dataPipeModel.sendData({
          type: 'SetLicenseBarVisible',
          visible: false
        });
        setIsShow(false);
        setTopInfo();
        setBottomInfo();
        setLicenseList();
        Initialize();
      }
    });
  }; // 获取许可提示数据


  (0,react.useEffect)(function () {
    var handler = props.dataPipeModel && props.dataPipeModel.registerCallback('ValidateLicense', validateLicense);
    document.addEventListener('visibilitychange', setLicenseStatus);

    if (props.currentAccountId !== '') {
      validateLicense({
        currentAccountId: props.currentAccountId,
        language: src_store.language
      });
    }

    return function () {
      handler();
      document.removeEventListener('visibilitychange', setLicenseStatus);
    };
  }, []);

  var _useState25 = (0,react.useState)(true),
      _useState26 = LicenseBar_slicedToArray(_useState25, 2),
      beginAnimating = _useState26[0],
      setBeginAnimating = _useState26[1];

  var setLicenseStatus = function setLicenseStatus() {
    if (document.visibilityState === 'visible') {
      setBeginAnimating(function (setLicenseStatus) {
        return !setLicenseStatus;
      });
    } else {
      clearInterval(timer.current);
    }
  }; // 设置语言栏的位置


  (0,react.useEffect)(function () {
    if (virtualNode && licenseList) {
      msgHeights.current.length > 0 && (props === null || props === void 0 ? void 0 : props.dataPipeModel.sendData({
        type: 'SetLicenseBarVisible',
        visible: Math.max.apply(Math, LicenseBar_toConsumableArray(msgHeights.current))
      }));
      setVirtualNode(false);
    }
  }, [licenseList, virtualNode]); // 定时器

  (0,react.useEffect)(function () {
    if ((licenseList === null || licenseList === void 0 ? void 0 : licenseList.length) > 1) {
      clearInterval(timer.current);
      timer.current = setInterval(function () {
        if (msgHeights.current.length === 1) return;
        setOneDivTranY(function (oneDivTranY) {
          if (oneDivTranY === 0) {
            setCurrentIndex(function (currentIndex) {
              setCount(currentIndex);
              return currentIndex;
            });
            setTwoDivTranY(function (twoDivTranY) {
              return 0;
            });
            setOneAnimating(function (oneAnimating) {
              return true;
            });
            setTwoAnimating(function (oneAnimating) {
              return true;
            });
            return 100;
          } else if (oneDivTranY === -100) {
            setCurrentIndex(function (currentIndex) {
              setCount(currentIndex);
              return currentIndex;
            });
            setTwoDivTranY(function (twoDivTranY) {
              return 100;
            });
            setOneAnimating(function (oneAnimating) {
              return true;
            });
            setTwoAnimating(function (oneAnimating) {
              return true;
            });
            return 0;
          } else {
            return oneDivTranY;
          }
        });
      }, 5000);
    }

    return function () {
      timer.current && clearInterval(timer.current);
    };
  }, [licenseList, beginAnimating]); // 计算显示区域的大小

  var computeHeight = function computeHeight() {
    msgHeights.current = [];
    return /*#__PURE__*/react.createElement("div", {
      className: ieWrapClass,
      style: {
        visibility: 'hidden'
      }
    }, licenseList === null || licenseList === void 0 ? void 0 : licenseList.map(function (_ref, index) {
      var msg = _ref.msg,
          days = _ref.days,
          overTime = _ref.overTime;
      var title = overTime ? intlApi_getLangMsg('login.key053') : intlApi_getLangMsg('login.key097');

      if (days > 0) {
        var arr = msg.split(days);
        return /*#__PURE__*/react.createElement("div", {
          className: LicenseBar.message,
          key: index,
          ref: function ref(dom) {
            dom && msgHeights.current.push(dom.offsetHeight);
          }
        }, /*#__PURE__*/react.createElement("span", {
          className: LicenseBar.title
        }, title), arr[0], /*#__PURE__*/react.createElement("span", {
          className: LicenseBar.days
        }, days), arr[1]);
      } else {
        return /*#__PURE__*/react.createElement("div", {
          className: LicenseBar.message,
          key: index,
          ref: function ref(dom) {
            dom && msgHeights.current.push(dom.offsetHeight);
          }
        }, /*#__PURE__*/react.createElement("span", {
          className: LicenseBar.title
        }, title), msg);
      }
    }));
  }; // 动画结束时更新index并更新值


  var handleTransitionEnd = (0,react.useCallback)(function () {
    if (oneDivTranY === 100) {
      setOneDivTranY(-100);
      setValue('one');
    }

    if (twoDivTranY === 100) {
      setTwoDivTranY(-100);
      setValue('two');
    }

    setOneAnimating(false);
    setTwoAnimating(false);
  }, [oneDivTranY, twoDivTranY]);

  var setValue = function setValue(position) {
    if (currentIndex === msgHeights.current.length - 1) {
      setCurrentIndex(function (currentIndex) {
        var value = licenseList[0];
        position === 'one' ? setTopInfo(value) : setBottomInfo(value);
        return 0;
      });
    } else {
      setCurrentIndex(function (currentIndex) {
        var value = licenseList[currentIndex + 1];
        position === 'one' ? setTopInfo(value) : setBottomInfo(value);
        return currentIndex + 1;
      });
    }
  };

  var ieWrapClass = classnames_default()((_classnames = {}, LicenseBar_defineProperty(_classnames, LicenseBar.ieWrap, true), LicenseBar_defineProperty(_classnames, LicenseBar.slidingIn, isShow), LicenseBar_defineProperty(_classnames, LicenseBar.slidingOut, !isShow), _classnames)); // 出场时缩放由1到0

  var topScale = (0,react.useMemo)(function () {
    return oneDivTranY === 100 ? 0.8 : 1;
  }, [oneDivTranY]);
  var bottomScale = (0,react.useMemo)(function () {
    return twoDivTranY === 100 ? 0.8 : 1;
  }, [twoDivTranY]);
  var topStyle = (0,react.useMemo)(function () {
    return {
      transform: "translateY(".concat(oneDivTranY, "%) scale(").concat(topScale, ")"),
      transition: oneAnimating ? 'all 0.5s ease-in-out' : 'none'
    };
  }, [oneDivTranY, oneAnimating, topScale]);
  var bottomStyle = (0,react.useMemo)(function () {
    return {
      transform: "translateY(".concat(twoDivTranY, "%) scale(").concat(bottomScale, ")"),
      transition: twoAnimating ? 'all 0.5s ease-in-out' : 'none'
    };
  }, [twoDivTranY, bottomScale, twoAnimating]);
  var topEle = (0,react.useMemo)(function () {
    return /*#__PURE__*/react.createElement(RenderMsg, {
      Info: topInfo
    });
  }, [topInfo]);
  var bottomEle = (0,react.useMemo)(function () {
    return /*#__PURE__*/react.createElement(RenderMsg, {
      Info: bottomInfo
    });
  }, [bottomInfo]);
  return /*#__PURE__*/react.createElement("div", null, !virtualNode && /*#__PURE__*/react.createElement("div", {
    className: ieWrapClass,
    style: {
      height: msgHeights.current[count]
    }
  }, /*#__PURE__*/react.createElement("div", {
    className: LicenseBar.message,
    style: topStyle,
    onTransitionEnd: handleTransitionEnd
  }, (licenseList === null || licenseList === void 0 ? void 0 : licenseList.length) > 1 && topEle), /*#__PURE__*/react.createElement("div", {
    className: LicenseBar.message,
    style: bottomStyle
  }, bottomEle)), virtualNode && licenseList && computeHeight());
}
function RenderMsg(props) {
  if (!props.Info) return null;
  var _props$Info = props.Info,
      msg = _props$Info.msg,
      days = _props$Info.days,
      overTime = _props$Info.overTime;
  var title = overTime ? intlApi_getLangMsg('login.key053') : intlApi_getLangMsg('login.key097');

  if (days > 0) {
    var arr = msg.split(days);
    return /*#__PURE__*/react.createElement("div", {
      className: LicenseBar.titleRoot,
      title: msg
    }, /*#__PURE__*/react.createElement("span", {
      className: LicenseBar.title
    }, title), arr[0], /*#__PURE__*/react.createElement("span", {
      className: LicenseBar.days
    }, days), arr[1]);
  }

  return /*#__PURE__*/react.createElement("div", {
    className: LicenseBar.titleRoot,
    title: msg
  }, /*#__PURE__*/react.createElement("span", {
    className: LicenseBar.title
  }, title), msg);
}
;// CONCATENATED MODULE: ./src/page/web/base/LangSelect.less
// extracted by mini-css-extract-plugin
/* harmony default export */ var LangSelect = ({"container":"_3Q5hgSMV","icon":"_3wOK1j_5","text":"VztMx4SI","panel":"WCUv02Up","item":"zWyXSE-P","selected":"je3nxZ5p","hidden":"_3zYVxLlP"});
;// CONCATENATED MODULE: ./src/page/web/base/LangSelect.jsx
function LangSelect_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

















function LangSelect_slicedToArray(arr, i) { return LangSelect_arrayWithHoles(arr) || LangSelect_iterableToArrayLimit(arr, i) || LangSelect_unsupportedIterableToArray(arr, i) || LangSelect_nonIterableRest(); }

function LangSelect_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function LangSelect_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return LangSelect_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return LangSelect_arrayLikeToArray(o, minLen); }

function LangSelect_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function LangSelect_iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function LangSelect_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }





 // import eventBus from '@/eventBus'

/**
 * 数据结构
 * list: [{text:, value:, select:}]
 * selectItem: ''
 * onItemClick: function
 */

function LangSelect_LangSelect(props) {
  var _classnames2, _classnames3;

  var _useState = (0,react.useState)(false),
      _useState2 = LangSelect_slicedToArray(_useState, 2),
      panelVisible = _useState2[0],
      setPanelVisible = _useState2[1];

  var _useState3 = (0,react.useState)(false),
      _useState4 = LangSelect_slicedToArray(_useState3, 2),
      licenseBarVisible = _useState4[0],
      setLicenseBarVisible = _useState4[1];

  var containerRef = (0,react.useRef)(null);
  var languages = props.languages,
      currentLang = props.currentLang,
      changeLang = props.changeLang,
      dataPipeModel = props.dataPipeModel;

  var handleClickOutside = function handleClickOutside(e) {
    // if (!panelVisible) return
    var target = e.target;

    while (target && target !== document) {
      if (target === react_dom.findDOMNode(containerRef.current)) {
        return;
      }

      target = target.parentNode;
    }

    if (!target) return;
    setPanelVisible(false);
  };

  (0,react.useEffect)(function () {
    document.addEventListener('click', handleClickOutside);
    var removeFun = dataPipeModel === null || dataPipeModel === void 0 ? void 0 : dataPipeModel.registerCallback('SetLicenseBarVisible', function (data) {
      setLicenseBarVisible(data.visible);
    });
    return function () {
      document.removeEventListener('click', handleClickOutside);
      removeFun();
    };
  }, []);

  var itemClick = function itemClick(e) {
    var target = e.target;
    var value = target.getAttribute('value');
    setPanelVisible(false);

    if (value !== currentLang) {
      src_store.setValue('lang', value);
      props.onItemClick(value);
      changeLang && changeLang(value);
    }
  };

  var langList = languages.map(function (item) {
    var _classnames;

    var itemClass = classnames_default()((_classnames = {}, LangSelect_defineProperty(_classnames, LangSelect.item, true), LangSelect_defineProperty(_classnames, LangSelect.selected, item.value === currentLang), _classnames));
    return /*#__PURE__*/react.createElement("div", {
      key: item.value,
      value: item.value,
      className: itemClass,
      onClick: itemClick
    }, item.text);
  });
  var selectItem = languages.find(function (item) {
    return item.value === currentLang;
  });
  var panelClass = classnames_default()((_classnames2 = {}, LangSelect_defineProperty(_classnames2, LangSelect.panel, true), LangSelect_defineProperty(_classnames2, LangSelect.hidden, !panelVisible), _classnames2));

  var handleClick = function handleClick(e) {
    setPanelVisible(!panelVisible);
  };

  var containerClass = classnames_default()((_classnames3 = {}, LangSelect_defineProperty(_classnames3, LangSelect.container, true), LangSelect_defineProperty(_classnames3, LangSelect.topChange, licenseBarVisible), _classnames3));
  var style = licenseBarVisible ? {
    top: licenseBarVisible
  } : null;

  if (selectItem) {
    src_store.setValue('lang', selectItem.value);
  }

  return /*#__PURE__*/react.createElement("div", {
    ref: containerRef,
    className: containerClass,
    style: style,
    id: "language_select",
    onClick: handleClick
  }, /*#__PURE__*/react.createElement("span", {
    className: LangSelect.icon
  }), /*#__PURE__*/react.createElement("div", {
    className: LangSelect.text
  }, selectItem && selectItem.text), /*#__PURE__*/react.createElement("div", {
    className: panelClass
  }, langList));
}
;// CONCATENATED MODULE: ./src/page/web/base/Footer.less
// extracted by mini-css-extract-plugin
/* harmony default export */ var Footer = ({"container":"_4YlfZ5d0","agreement":"_2WRrtF-z","line":"_6Ygah14V","beian":"MEmKI1-h","icon1":"A1OMeX5p","icon2":"_3j981Qgr","link1":"_3PQk3ALs"});
// EXTERNAL MODULE: ./src/img/icons/beian1.png
var icons_beian1 = __webpack_require__(2934);
// EXTERNAL MODULE: ./src/img/icons/beian2.png
var icons_beian2 = __webpack_require__(2749);
;// CONCATENATED MODULE: ./src/page/web/base/Footer.jsx





function Footer_Footer() {
  return /*#__PURE__*/React.createElement("div", {
    className: styles.container
  }, /*#__PURE__*/React.createElement("div", {
    className: styles.agreement
  }, /*#__PURE__*/React.createElement("a", {
    href: "https://cloud.kingdee.com/passport/#/policy-agree/client-kd",
    target: "_blank"
  }, getLangMsg('login.key083')), /*#__PURE__*/React.createElement("span", {
    className: styles.line
  }), /*#__PURE__*/React.createElement("a", {
    href: "https://cloud.kingdee.com/passport/#/policy-agree/privacy-policy",
    target: "_blank"
  }, getLangMsg('login.key084'))), /*#__PURE__*/React.createElement("div", {
    className: styles.beian
  }, /*#__PURE__*/React.createElement("img", {
    src: beian1,
    className: styles.icon1
  }), /*#__PURE__*/React.createElement("img", {
    src: beian2,
    className: styles.icon2
  }), /*#__PURE__*/React.createElement("a", {
    className: styles.link1
  }, "\u7CA4ICP\u590705041751\u53F7-2"), /*#__PURE__*/React.createElement("a", {
    className: styles.link2
  }, "\u7CA4\u516C\u7F51\u5B89\u5907 44030502002324\u53F7")));
}
;// CONCATENATED MODULE: ./src/page/web/base/index.js




















;// CONCATENATED MODULE: ./src/page/web/base/WaterMark.less
// extracted by mini-css-extract-plugin
/* harmony default export */ var WaterMark = ({"waterMark":"_3xlZGadA"});
;// CONCATENATED MODULE: ./src/page/web/base/WaterMark.jsx















function WaterMark_slicedToArray(arr, i) { return WaterMark_arrayWithHoles(arr) || WaterMark_iterableToArrayLimit(arr, i) || WaterMark_unsupportedIterableToArray(arr, i) || WaterMark_nonIterableRest(); }

function WaterMark_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function WaterMark_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return WaterMark_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return WaterMark_arrayLikeToArray(o, minLen); }

function WaterMark_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function WaterMark_iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function WaterMark_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }



function WaterMark_WaterMark(props) {
  var _useState = (0,react.useState)(),
      _useState2 = WaterMark_slicedToArray(_useState, 2),
      imageUrl = _useState2[0],
      setImageUrl = _useState2[1];

  var type = props.type,
      text = props.text,
      logo = props.logo,
      globalAlpha = props.globalAlpha,
      angle = props.angle,
      color = props.color,
      fontSize = props.fontSize,
      fontFamily = props.fontFamily,
      zIndex = props.zIndex;
  (0,react.useEffect)(function () {
    getPageWaterMark(type, {
      text: text,
      logo: logo,
      globalAlpha: globalAlpha,
      angle: angle,
      color: color,
      fontSize: fontSize,
      fontFamily: fontFamily
    }).then(function (base64Url) {
      setImageUrl(base64Url);
    });
  }, [type, text, logo, globalAlpha, angle, color, fontSize, fontFamily]);
  return imageUrl ? /*#__PURE__*/react.createElement("div", {
    className: WaterMark.waterMark,
    style: {
      background: "url(".concat(imageUrl, ")"),
      zIndex: zIndex
    }
  }) : null;
}
/**
 * 获取页面水印图片
 * @param {String} type 水印类型
 * @param {Object} object text:水印内容 logo:水印图片
 * @param {Object} options globalAlpha:透明度 angle:旋转角度 color:字体颜色 fontSize:字体大小 fontFamily:字体类型
 * @returns {Promise} 参数是图片的base64Url
 */

function getPageWaterMark() {
  var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'text';
  var options = arguments.length > 1 ? arguments[1] : undefined;
  var previewRect = arguments.length > 2 ? arguments[2] : undefined;
  var _options$globalAlpha = options.globalAlpha,
      globalAlpha = _options$globalAlpha === void 0 ? 10 : _options$globalAlpha,
      _options$angle = options.angle,
      angle = _options$angle === void 0 ? -10 : _options$angle,
      _options$color = options.color,
      color = _options$color === void 0 ? '#333' : _options$color,
      _options$fontSize = options.fontSize,
      fontSize = _options$fontSize === void 0 ? '12px' : _options$fontSize,
      _options$fontFamily = options.fontFamily,
      fontFamily = _options$fontFamily === void 0 ? 'Microsoft YaHei' : _options$fontFamily,
      text = options.text;
  var canvas = document.createElement('canvas');
  canvas.setAttribute('width', 440);
  canvas.setAttribute('height', 120);
  var ctx = canvas.getContext('2d');
  ctx.textBaseline = 'top';

  if (previewRect) {
    var width = previewRect.width,
        height = previewRect.height;
    ctx.fillStyle = '#ffffff';
    ctx.fillRect(0, 0, parseInt(width), parseInt(height));
  }

  ctx.font = fontSize + ' ' + fontFamily;
  ctx.globalAlpha = globalAlpha / 100;
  ctx.rotate(angle * Math.PI / 180);
  ctx.fillStyle = color;
  var base64Url;
  var img = new window.Image();
  img.crossOrigin = 'anonymous';
  var x1 = 0;
  var y1 = 30;
  var x2 = 220;
  var y2 = 90;
  return new Promise(function (resolve, reject) {
    switch (type) {
      case 'text':
        {
          ctx.fillText(text, x1, y1);
          ctx.fillText(text, x2, y2);
          base64Url = canvas.toDataURL();
          resolve(base64Url);
          break;
        }
    }
  });
}
// EXTERNAL MODULE: ./src/img/banner.jpg
var banner = __webpack_require__(5319);
var banner_default = /*#__PURE__*/__webpack_require__.n(banner);
// EXTERNAL MODULE: ./src/img/logoEnUs.png
var logoEnUs = __webpack_require__(9063);
var logoEnUs_default = /*#__PURE__*/__webpack_require__.n(logoEnUs);
// EXTERNAL MODULE: ./src/img/logoZhCn.png
var logoZhCn = __webpack_require__(5001);
var logoZhCn_default = /*#__PURE__*/__webpack_require__.n(logoZhCn);
;// CONCATENATED MODULE: ./src/page/web/common/LoginWrapper.jsx
/* provided dependency */ var LoginWrapper_console = __webpack_require__(3716);

















function LoginWrapper_slicedToArray(arr, i) { return LoginWrapper_arrayWithHoles(arr) || LoginWrapper_iterableToArrayLimit(arr, i) || LoginWrapper_unsupportedIterableToArray(arr, i) || LoginWrapper_nonIterableRest(); }

function LoginWrapper_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function LoginWrapper_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return LoginWrapper_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return LoginWrapper_arrayLikeToArray(o, minLen); }

function LoginWrapper_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function LoginWrapper_iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function LoginWrapper_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

function LoginWrapper_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }














function LoginWrapper_LoginWrapper(props) {
  var _classname3, _classname4;

  var selectType = props.selectType,
      configuration = props.configuration,
      currentLang = props.currentLang,
      userSourceType = props.userSourceType,
      languages = props.languages,
      handleChangeLang = props.handleChangeLang,
      changeLang = props.changeLang;
  var linkdata = configuration.linkdata;
  var sloganh1Class = classnames_default()(LoginWrapper_defineProperty({}, LoginWrapper.sloganh1, true));
  var sloganh2Class = classnames_default()(LoginWrapper_defineProperty({}, LoginWrapper.sloganh2, true));
  var showSlogan = false;
  var bgStyle;
  var formPartCenter;

  if (!window.loginAfterLoad || !window.loginAfterLoad('imgPart')) {
    var bgImage = getImgFullPath(configuration.bgimg) || src_store.isCompleteLoadConfig && (banner_default());
    bgStyle = bgImage ? {
      backgroundImage: "url(".concat(bgImage, ")")
    } : {};
    showSlogan = !configuration.bgimg;

    if (document.body.offsetWidth < 1080) {
      formPartCenter = true;
    }
  }

  var _useState = (0,react.useState)(formPartCenter),
      _useState2 = LoginWrapper_slicedToArray(_useState, 2),
      imgPartHide = _useState2[0],
      setImgPartHide = _useState2[1];

  var changeBgStyle = function changeBgStyle() {
    if (!window.loginAfterLoad || !window.loginAfterLoad('logo')) {
      if (document.body.offsetWidth < 1080) {
        setImgPartHide(true);
      } else {
        setImgPartHide(false);
      }
    }
  };

  var logoStyle = null;

  if (!window.loginAfterLoad || !window.loginAfterLoad('logo')) {
    var logoImg;

    if (currentLang === 'zh_TW' || currentLang === 'zh_CN') {
      logoImg = (logoZhCn_default());
    } else {
      logoImg = (logoEnUs_default());
    }

    var backgroundImage = getImgFullPath(configuration.logoimg) || src_store.isCompleteLoadConfig && logoImg;
    logoStyle = {
      width: '100%',
      height: 47,
      backgroundPosition: 'center',
      backgroundRepeat: 'no-repeat',
      backgroundSize: 'auto 100%'
    };
    backgroundImage && Object.assign(logoStyle, {
      backgroundImage: "url(".concat(backgroundImage, ")")
    });
  }

  (0,react.useEffect)(function () {
    try {
      window.loginAfterLoad && window.loginAfterLoad('imgPart') && window.loginAfterLoad('imgPart')();
      window.loginAfterLoad && window.loginAfterLoad('logo') && window.loginAfterLoad('logo')();
    } catch (error) {
      LoginWrapper_console.log(error);
    }
  }, []);

  var _useState3 = (0,react.useState)(''),
      _useState4 = LoginWrapper_slicedToArray(_useState3, 2),
      licenseType = _useState4[0],
      setLicenseType = _useState4[1];

  (0,react.useEffect)(function () {
    if (!licenseType) {
      var text = configuration.licenseType;

      if (text) {
        // 临时许可
        setLicenseType(text);
      }
    }
  }, [configuration.licenseType]);
  (0,react.useEffect)(function () {
    window.addEventListener('resize', debounce(changeBgStyle, 30));
  }, []);
  var imgPartStyle = classnames_default()((_classname3 = {}, LoginWrapper_defineProperty(_classname3, LoginWrapper.imgPart, true), LoginWrapper_defineProperty(_classname3, LoginWrapper.imgPartHide, imgPartHide), _classname3));
  var formPartStyle = classnames_default()((_classname4 = {}, LoginWrapper_defineProperty(_classname4, LoginWrapper.formPart, true), LoginWrapper_defineProperty(_classname4, LoginWrapper.formPartCenter, imgPartHide), _classname4));
  return /*#__PURE__*/react.createElement("div", {
    className: LoginWrapper.container
  }, licenseType && /*#__PURE__*/react.createElement(WaterMark_WaterMark, {
    type: "text",
    text: licenseType,
    globalAlpha: 10,
    angle: -10,
    color: "#212121",
    fontSize: "18px",
    zIndex: "999"
  }), /*#__PURE__*/react.createElement("div", {
    className: imgPartStyle,
    style: bgStyle,
    id: "imgPart"
  }, showSlogan && /*#__PURE__*/react.createElement("div", {
    className: LoginWrapper.slogan
  }, /*#__PURE__*/react.createElement("span", {
    className: sloganh1Class
  }, intlApi_getLangMsg('login.key081')), /*#__PURE__*/react.createElement("span", {
    className: sloganh2Class
  }, intlApi_getLangMsg('login.key082')))), /*#__PURE__*/react.createElement("div", {
    className: formPartStyle,
    id: "formPart"
  }, /*#__PURE__*/react.createElement(LicenseBar_LicenseBar, {
    currentAccountId: props.currentAccountId,
    dataPipeModel: props.dataPipeModel
  }), ['kingdeeCloud', 'demo', 'WeChat', 'shortMessage'].indexOf(selectType) >= 0 && /*#__PURE__*/react.createElement(LangSelect_LangSelect, {
    dataPipeModel: props.dataPipeModel,
    languages: languages,
    currentLang: currentLang,
    changeLang: changeLang,
    onItemClick: handleChangeLang
  }), /*#__PURE__*/react.createElement("div", {
    className: LoginWrapper.logo
  }, /*#__PURE__*/react.createElement("div", {
    style: logoStyle,
    id: "logo"
  })), /*#__PURE__*/react.createElement("div", {
    className: LoginWrapper.content,
    id: "content"
  }, props.children), /*#__PURE__*/react.createElement(common_LoginType, {
    selectType: selectType,
    userSourceType: userSourceType,
    dataPipeModel: props.dataPipeModel
  }), selectType === 'kingdeeCloud' && /*#__PURE__*/react.createElement(LinksBox, {
    data: linkdata,
    dataPipeModel: props.dataPipeModel
  })));
}

/* harmony default export */ var common_LoginWrapper = (LoginWrapper_LoginWrapper);

function LinksBox(props) {
  var _classname5, _classname6;

  (0,react.useEffect)(function () {
    try {
      window.loginAfterLoad && window.loginAfterLoad('linksBox') && window.loginAfterLoad('linksBox')();
    } catch (error) {
      LoginWrapper_console.log(error);
    }
  }, []);
  var data = props.data;
  if (typeof data === 'string') data = JSON.parse(data);
  if (!(data instanceof Array)) return null;
  var linksBoxClass = classnames_default()((_classname5 = {}, LoginWrapper_defineProperty(_classname5, LoginWrapper.linksBox, true), LoginWrapper_defineProperty(_classname5, LoginWrapper.linksBox2, data.length <= 3), _classname5));
  var aClass = classnames_default()((_classname6 = {}, LoginWrapper_defineProperty(_classname6, LoginWrapper.a, true), LoginWrapper_defineProperty(_classname6, LoginWrapper.a2, data.length <= 3), _classname6));
  var links = data.map(function (item, index) {
    return /*#__PURE__*/react.createElement("a", {
      className: aClass,
      key: index,
      href: item.linkurl,
      target: "_blank"
    }, item.linkname);
  });

  if (window.loginAfterLoad && window.loginAfterLoad('linksBox')) {
    links = null;
  }

  return /*#__PURE__*/react.createElement("div", {
    className: linksBoxClass,
    id: "linksBox"
  }, links);
}
;// CONCATENATED MODULE: ./src/page/web/KingdeeCloud.less
// extracted by mini-css-extract-plugin
/* harmony default export */ var web_KingdeeCloud = ({"formContainer":"_3CJd7H_-","title":"_3ZXK1RH7","content":"_2sVhwDQp","dropdownList":"_3Gihi7yG","graphicContainer":"_1ldvravK","input":"_35yiWrHJ","graphicCode":"_3QqFpQwI","hide":"_1vCKiBNP","phoneCodeContainer":"_2L1GGaz3","btn":"Og9WotyU","disable":"Jw_N60HR","showPhoneCode":"_1Dm_w1gJ","tools":"_2Ui6QYH3"});
;// CONCATENATED MODULE: ./src/util/uid.js
/*
** getUid 产生任意长度随机字母数字组合
** randomIndicator-是否任意长度 min-任意长度最小位[固定位数] max-任意长度最大位
*/
var getUid = function getUid(randomIndicator, min, max) {
  var str = '';
  var range = min;
  var arr = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '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'];

  if (randomIndicator) {
    range = Math.round(Math.random() * (max - min)) + min;
  }

  for (var i = 0; i < range; i++) {
    var pos = Math.round(Math.random() * (arr.length - 1));
    str += arr[pos];
  }

  return str;
};

/* harmony default export */ var uid = (getUid);
;// CONCATENATED MODULE: ./src/util/validate.js

var validate = {
  isEmpty: function isEmpty(string) {
    return string.trim() === '';
  },
  isEqual: function isEqual(str1, str2) {
    return str1 === str2;
  },
  checkLength: function checkLength(string) {
    var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
    var max = arguments.length > 2 ? arguments[2] : undefined;
    // 0: 正常范围 1：大于最大值 -1：小于最小值
    var len = string.length;

    if (max) {
      if (len < min) return -1;
      if (len > max) return 1;
    } else {
      if (len < min) return -1;
    }

    return 0;
  }
};
/* harmony default export */ var util_validate = (validate);
;// CONCATENATED MODULE: ./src/util/index.js






// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.array.filter.js
var es_array_filter = __webpack_require__(5342);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js
var es_object_get_own_property_descriptor = __webpack_require__(8625);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.object.get-own-property-descriptors.js
var es_object_get_own_property_descriptors = __webpack_require__(2775);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.object.define-properties.js
var es_object_define_properties = __webpack_require__(6555);
;// CONCATENATED MODULE: ./src/page/base/Message.less
// extracted by mini-css-extract-plugin
/* harmony default export */ var Message = ({"dialogRoot":"_1Bro5rFn","dialogBody":"_1aUzKPrB","iframe":"_3LG7HOvx","dialogTitle":"_1jtwPgCW","dialogDot":"KiWr18TB","dialogText":"_37Nz1rRV","dialogClose":"_2B4JVNN9","dialogImg":"_6gFRyvx_","dialogWord":"MvqeNdfi","buttonDiv":"_1dGdyWYA","butGrey":"_3gyQoz1K","butLargeGrey":"_2hNH9CiK","butGapGrey":"_1w5UErj7","butBlue":"_39-YuAUu"});
;// CONCATENATED MODULE: ./src/page/base/Message.jsx













function Message_slicedToArray(arr, i) { return Message_arrayWithHoles(arr) || Message_iterableToArrayLimit(arr, i) || Message_unsupportedIterableToArray(arr, i) || Message_nonIterableRest(); }

function Message_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function Message_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return Message_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Message_arrayLikeToArray(o, minLen); }

function Message_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function Message_iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function Message_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

 // import classnames from 'classnames'



/**
 * 弹出类消息框
 */

function Message_Message(props) {
  var _useState = (0,react.useState)(true),
      _useState2 = Message_slicedToArray(_useState, 2),
      visible = _useState2[0],
      setVisible = _useState2[1];

  var msg = props.msg,
      title = props.title,
      buttonType = props.buttonType,
      imgUrl = props.imgUrl,
      iframeUrl = props.iframeUrl,
      width = props.width,
      height = props.height,
      btnStyle = props.btnStyle;
  if (visible === false) return null;
  var ButtonType = {
    OKCancel: 1,
    // 有取消按钮的消息框
    AbortRetryIgnore: 2,
    // 有终止、重试、忽略按钮的对话框
    YesNoCancel: 3,
    // 有是、否和取消按钮的对话框
    YesNo: 4,
    // 有是、否按钮的对话框
    RetryCancel: 5 // 有重试、取消按钮的对话框

  };
  var BtnKey = {
    OK: 1,
    // 确定
    Cancel: 2,
    // 取消
    Abort: 3,
    // 终止
    Retry: 4,
    // 重试
    Ignore: 5,
    // 忽略
    Yes: 6,
    // 是
    No: 7 // 否

  };

  var btnList = function btnList(buttonType) {
    var buttonDiv = null; // 确定、重试、是 按钮才需要回调

    var buttonClick = function buttonClick(key) {
      var clickCallback = props.clickCallback,
          closeAndCallBack = props.closeAndCallBack,
          destroy = props.destroy,
          id = props.id;
      setVisible(false);

      if (key === BtnKey.OK || key === BtnKey.Retry || key === BtnKey.Yes) {
        closeAndCallBack && closeAndCallBack();
      } else {
        clickCallback && clickCallback({
          key: key,
          id: id
        });
      }

      destroy && destroy();
    };

    switch (buttonType) {
      case ButtonType.OKCancel:
        buttonDiv = /*#__PURE__*/react.createElement("div", {
          className: Message.buttonDiv
        }, /*#__PURE__*/react.createElement("a", {
          className: Message.butGrey,
          style: btnStyle,
          onClick: function onClick() {
            return buttonClick(BtnKey.Cancel);
          }
        }, getBtnNameByKey(BtnKey.Cancel, intlApi_getLangMsg('msg.cancel'))), /*#__PURE__*/react.createElement("a", {
          className: Message.butBlue,
          style: btnStyle,
          onClick: function onClick() {
            return buttonClick(BtnKey.Yes);
          }
        }, getBtnNameByKey(BtnKey.Yes, intlApi_getLangMsg('msg.submit'))));
        break;

      case ButtonType.AbortRetryIgnore:
        buttonDiv = /*#__PURE__*/react.createElement("div", {
          className: Message.buttonDiv
        }, /*#__PURE__*/react.createElement("a", {
          className: Message.butGrey,
          style: btnStyle,
          onClick: function onClick() {
            return buttonClick(BtnKey.Abort);
          }
        }, getBtnNameByKey(BtnKey.Abort, intlApi_getLangMsg('msg.terminal'))), /*#__PURE__*/react.createElement("a", {
          className: Message.butGapGrey,
          style: btnStyle,
          onClick: function onClick() {
            return buttonClick(BtnKey.Ignore);
          }
        }, getBtnNameByKey(BtnKey.Ignore, intlApi_getLangMsg('msg.ignore'))), /*#__PURE__*/react.createElement("a", {
          className: Message.butBlue,
          style: btnStyle,
          onClick: function onClick() {
            return buttonClick(BtnKey.Retry);
          }
        }, getBtnNameByKey(BtnKey.Retry, intlApi_getLangMsg('msg.retry'))));
        break;

      case ButtonType.YesNoCancel:
        buttonDiv = /*#__PURE__*/react.createElement("div", {
          className: Message.buttonDiv
        }, /*#__PURE__*/react.createElement("a", {
          className: Message.butGrey,
          style: btnStyle,
          onClick: function onClick() {
            return buttonClick(BtnKey.Cancel);
          }
        }, getBtnNameByKey(BtnKey.Cancel, intlApi_getLangMsg('msg.cancel'))), /*#__PURE__*/react.createElement("a", {
          className: Message.butGapGrey,
          style: btnStyle,
          onClick: function onClick() {
            return buttonClick(BtnKey.No);
          }
        }, getBtnNameByKey(BtnKey.No, intlApi_getLangMsg('msg.no'))), /*#__PURE__*/react.createElement("a", {
          className: Message.butBlue,
          style: btnStyle,
          onClick: function onClick() {
            return buttonClick(BtnKey.Yes);
          }
        }, getBtnNameByKey(BtnKey.Yes, intlApi_getLangMsg('msg.yes'))));
        break;

      case ButtonType.YesNo:
        buttonDiv = /*#__PURE__*/react.createElement("div", {
          className: Message.buttonDiv
        }, /*#__PURE__*/react.createElement("a", {
          className: Message.butGrey,
          style: btnStyle,
          onClick: function onClick() {
            return buttonClick(BtnKey.No);
          }
        }, getBtnNameByKey(BtnKey.No, intlApi_getLangMsg('msg.no'))), /*#__PURE__*/react.createElement("a", {
          className: Message.butBlue,
          style: btnStyle,
          onClick: function onClick() {
            return buttonClick(BtnKey.Yes);
          }
        }, getBtnNameByKey(BtnKey.Yes, intlApi_getLangMsg('msg.yes'))));
        break;

      case ButtonType.RetryCancel:
        buttonDiv = /*#__PURE__*/react.createElement("div", {
          className: Message.buttonDiv
        }, /*#__PURE__*/react.createElement("a", {
          className: Message.butGrey,
          style: btnStyle,
          onClick: function onClick() {
            return buttonClick(BtnKey.Cancel);
          }
        }, getBtnNameByKey(BtnKey.Cancel, intlApi_getLangMsg('msg.cancel'))), /*#__PURE__*/react.createElement("a", {
          className: Message.butBlue,
          style: btnStyle,
          onClick: function onClick() {
            return buttonClick(BtnKey.Retry);
          }
        }, getBtnNameByKey(BtnKey.Retry, intlApi_getLangMsg('msg.retry'))));
        break;

      default:
        buttonDiv = /*#__PURE__*/react.createElement("div", {
          className: Message.buttonDiv
        }, /*#__PURE__*/react.createElement("a", {
          className: Message.butLargeGrey,
          style: btnStyle,
          onClick: function onClick() {
            return buttonClick(BtnKey.Cancel);
          }
        }, getBtnNameByKey(BtnKey.Cancel, intlApi_getLangMsg('msg.iKnow'))));
    }

    return buttonDiv;
  };

  var getBtnNameByKey = function getBtnNameByKey(btnKey, defaultName) {
    var buttonNames = props.buttonNames;
    if (!buttonNames) return defaultName;
    return buttonNames[btnKey] || defaultName;
  }; // 点击了关闭类的按钮


  var handleClose = function handleClose() {
    var destroy = props.destroy;
    setVisible(false);
    clickCallback();
    destroy && destroy();
  };

  var clickCallback = function clickCallback() {
    var clickCallback = props.clickCallback,
        buttonType = props.buttonType,
        id = props.id;

    if (clickCallback) {
      var key;

      switch (buttonType) {
        case ButtonType.OKCancel:
          key = BtnKey.Cancel;
          break;

        case ButtonType.AbortRetryIgnore:
          key = BtnKey.Ignore;
          break;

        case ButtonType.YesNoCancel:
          key = BtnKey.Cancel;
          break;

        case ButtonType.YesNo:
          key = BtnKey.No;
          break;

        case ButtonType.RetryCancel:
          key = BtnKey.Cancel;
          break;

        default:
          key = BtnKey.Cancel;
      }

      clickCallback({
        key: key,
        id: id,
        isCloseBtn: true
      });
    }
  };

  var footer = btnList(buttonType);
  return /*#__PURE__*/react.createElement("div", {
    className: Message.dialogRoot
  }, /*#__PURE__*/react.createElement("div", {
    className: Message.dialogBody,
    style: {
      width: width,
      height: height
    }
  }, title && /*#__PURE__*/react.createElement("div", {
    className: Message.dialogTitle,
    title: title
  }, /*#__PURE__*/react.createElement("div", {
    className: Message.dialogDot
  }), /*#__PURE__*/react.createElement("div", {
    className: Message.dialogText
  }, title)), /*#__PURE__*/react.createElement("i", {
    className: Message.dialogClose,
    onClick: handleClose
  }), iframeUrl ? /*#__PURE__*/react.createElement("iframe", {
    src: iframeUrl,
    frameBorder: "0",
    scrolling: "no",
    className: Message.iframe
  }) : /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement("div", {
    className: Message.dialogImg
  }, /*#__PURE__*/react.createElement("img", {
    src: imgUrl
  })), /*#__PURE__*/react.createElement("div", {
    className: Message.dialogWord
  }, " ", msg)), footer));
}

/* harmony default export */ var base_Message = (Message_Message);
// EXTERNAL MODULE: ./src/img/default/confirm_default.png
var confirm_default = __webpack_require__(7962);
var confirm_default_default = /*#__PURE__*/__webpack_require__.n(confirm_default);
// EXTERNAL MODULE: ./src/img/default/confirm_save.png
var confirm_save = __webpack_require__(7462);
var confirm_save_default = /*#__PURE__*/__webpack_require__.n(confirm_save);
// EXTERNAL MODULE: ./src/img/default/confirm_wait.png
var confirm_wait = __webpack_require__(5695);
var confirm_wait_default = /*#__PURE__*/__webpack_require__.n(confirm_wait);
// EXTERNAL MODULE: ./src/img/default/confirm_delete.png
var confirm_delete = __webpack_require__(7777);
var confirm_delete_default = /*#__PURE__*/__webpack_require__.n(confirm_delete);
;// CONCATENATED MODULE: ./src/page/common/Confirm.js



function Confirm_extends() { Confirm_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return Confirm_extends.apply(this, arguments); }









/**
 * 全局弹出提示类消息框
 */

function Confirm_Confirm(props) {
  var _props$title;

  var propertyObject = {
    0: (confirm_default_default()),
    // 默认类别提示
    1: (confirm_save_default()),
    // 保存提交类提示
    2: (confirm_delete_default()),
    // 删除类提示
    3: (confirm_wait_default()) // 等待类提示

  };
  /**
   * 根据提示类型显示不同的图片
   * @return {[type]} [description]
   */

  var getImgUrl = function getImgUrl() {
    var imgUrl = propertyObject[props.confirmType];
    return imgUrl;
  };

  var title = props.title === 'none' ? '' : (_props$title = props.title) !== null && _props$title !== void 0 ? _props$title : intlApi_getLangMsg('confirm.commit');
  var imgUrl = getImgUrl();
  return /*#__PURE__*/react.createElement(base_Message, Confirm_extends({}, props, {
    title: title,
    imgUrl: imgUrl
  }));
}
/**
 * 消息对话框方法
 * @param {[type]} props [description]
 */


function ConfirmDialog(props) {
  var _this = this;

  var div = this._attachElement = document.createElement('div');
  div.className = 'modal';
  document.body.appendChild(div);

  var closeAndCallBack = function closeAndCallBack() {
    return _this.destroy();
  };

  if (props.onClose) {
    closeAndCallBack = function closeAndCallBack() {
      _this.destroy();

      props.onClose(props.id);
    };
  }

  react_dom.render( /*#__PURE__*/react.createElement(Confirm_Confirm, Confirm_extends({}, props, {
    closeAndCallBack: closeAndCallBack,
    destroy: function destroy() {
      return _this.destroy();
    }
  })), div);
}

ConfirmDialog.prototype.destroy = function () {
  if (this._attachElement) {
    react_dom.unmountComponentAtNode(this._attachElement);

    this._attachElement.parentNode.removeChild(this._attachElement);

    this._attachElement = null;
  }
};

function createConfirmDialog(props) {
  return new ConfirmDialog(props);
}

/* harmony default export */ var common_Confirm = (createConfirmDialog);
;// CONCATENATED MODULE: ./src/page/common/showConfirm.js












function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { showConfirm_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }

function showConfirm_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }




var showMsg = function showMsg(errorcode, data, onClose, clickCallback, other) {
  switch (errorcode) {
    // 密码过期提示
    case '305':
      src_store.setValue('newResetPws', true);
      common_Confirm(_objectSpread({
        id: 'findPassword',
        msg: data.description_cn || data.description,
        confirmType: 0,
        buttonType: 4,
        buttonNames: {
          6: intlApi_getLangMsg('login.key029'),
          7: intlApi_getLangMsg('login.key098')
        },
        onClose: onClose,
        clickCallback: clickCallback
      }, other));
      break;
    // 踢出提示

    case '310':
      common_Confirm(_objectSpread({
        id: 'OtherDeviceLogin',
        msg: intlApi_getLangMsg('login.key100'),
        confirmType: 0,
        buttonType: 4,
        buttonNames: {
          6: intlApi_getLangMsg('login.key098'),
          7: intlApi_getLangMsg('login.key099')
        },
        onClose: onClose,
        clickCallback: clickCallback
      }, other));
      break;
    // 隐私声明

    case '306':
      common_Confirm(_objectSpread({
        id: 'privacy',
        msg: '',
        title: 'none',
        confirmType: 0,
        buttonType: 4,
        buttonNames: {
          6: intlApi_getLangMsg('login.key110'),
          7: intlApi_getLangMsg('login.key111')
        },
        onClose: onClose,
        clickCallback: clickCallback,
        width: '640px',
        height: '417px',
        btnStyle: {
          width: '96px'
        }
      }, other));
      break;

    default:
      break;
  }
};
var showErrorMsg = function showErrorMsg(_ref) {
  var type = _ref.type;
  var fun = {};

  fun.uncheckedPrivacy = function (id, onClose, clickCallback) {
    Confirm({
      id: id,
      msg: '',
      title: 'none',
      confirmType: 0,
      buttonType: 4,
      buttonNames: {
        6: getLangMsg('login.key110'),
        7: getLangMsg('login.key111')
      },
      onClose: onClose,
      clickCallback: clickCallback,
      width: '640px',
      height: '417px'
    });
  };

  return fun[type];
};
// EXTERNAL MODULE: ./src/img/loading.gif
var loading = __webpack_require__(6433);
var loading_default = /*#__PURE__*/__webpack_require__.n(loading);
;// CONCATENATED MODULE: ./src/page/web/KingdeeCloud.jsx
function KingdeeCloud_typeof(obj) { "@babel/helpers - typeof"; return KingdeeCloud_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, KingdeeCloud_typeof(obj); }

function KingdeeCloud_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }


























function KingdeeCloud_extends() { KingdeeCloud_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return KingdeeCloud_extends.apply(this, arguments); }

function KingdeeCloud_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function KingdeeCloud_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function KingdeeCloud_createClass(Constructor, protoProps, staticProps) { if (protoProps) KingdeeCloud_defineProperties(Constructor.prototype, protoProps); if (staticProps) KingdeeCloud_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }

function KingdeeCloud_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) KingdeeCloud_setPrototypeOf(subClass, superClass); }

function KingdeeCloud_setPrototypeOf(o, p) { KingdeeCloud_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return KingdeeCloud_setPrototypeOf(o, p); }

function KingdeeCloud_createSuper(Derived) { var hasNativeReflectConstruct = KingdeeCloud_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = KingdeeCloud_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = KingdeeCloud_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return KingdeeCloud_possibleConstructorReturn(this, result); }; }

function KingdeeCloud_possibleConstructorReturn(self, call) { if (call && (KingdeeCloud_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return KingdeeCloud_assertThisInitialized(self); }

function KingdeeCloud_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function KingdeeCloud_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }

function KingdeeCloud_getPrototypeOf(o) { KingdeeCloud_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return KingdeeCloud_getPrototypeOf(o); }




 // import NodeRSA from 'node-rsa'






 // import eventBus from '../../eventBus'









 // 隐藏 记住用户名和密码

var HIDDEN_ALL = '0'; // 展示 记住用户名和密码

var SHOW_ALL = '1'; // 只显示 记住用户名

var ONLY_SHOW_USERNAME = '2';
var StoreContext = /*#__PURE__*/react.createContext();

var KingdeeCloud = /*#__PURE__*/function (_Component) {
  KingdeeCloud_inherits(KingdeeCloud, _Component);

  var _super = KingdeeCloud_createSuper(KingdeeCloud);

  function KingdeeCloud() {
    KingdeeCloud_classCallCheck(this, KingdeeCloud);

    return _super.apply(this, arguments);
  }

  KingdeeCloud_createClass(KingdeeCloud, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      // eventBus.pub_focusInput({ name: 'account' })
      this.props.dataPipeModel && this.props.dataPipeModel.sendData({
        type: 'FocusInput',
        name: 'account'
      });
    }
  }, {
    key: "getDefaultDesc",
    value: function getDefaultDesc() {
      var title = src_store.iskdbrand === '2' ? intlApi_getLangMsg('login.key094') : intlApi_getLangMsg('login.key001');
      return src_store.isCompleteLoadConfig ? title : src_store.loadingText;
    }
  }, {
    key: "render",
    value: function render() {
      var _this$props = this.props,
          configuration = _this$props.configuration,
          currentLang = _this$props.currentLang,
          dataPipeModel = _this$props.dataPipeModel;
      var kdTitle = getMultilinguaText(configuration.accounttypedesc, currentLang, this.getDefaultDesc());
      return /*#__PURE__*/react.createElement(common_LoginWrapper, KingdeeCloud_extends({
        selectType: "kingdeeCloud"
      }, this.props), /*#__PURE__*/react.createElement("div", {
        className: web_KingdeeCloud.formContainer
      }, kdTitle ? /*#__PURE__*/react.createElement("div", {
        className: web_KingdeeCloud.title,
        id: "kd_cloud_title"
      }, kdTitle) : /*#__PURE__*/react.createElement("div", {
        className: web_KingdeeCloud.title,
        id: "kd_cloud_title"
      }, "\xA0"), /*#__PURE__*/react.createElement(web_base_Notification, {
        dataPipeModel: dataPipeModel
      }), /*#__PURE__*/react.createElement(Form, this.props)), /*#__PURE__*/react.createElement(web_base_OfflinePrompt, {
        dataPipeModel: dataPipeModel
      }));
    }
  }]);

  return KingdeeCloud;
}(react.Component);

var Form = /*#__PURE__*/function (_Component2) {
  KingdeeCloud_inherits(Form, _Component2);

  var _super2 = KingdeeCloud_createSuper(Form);

  function Form(props) {
    var _this;

    KingdeeCloud_classCallCheck(this, Form);

    _this = _super2.call(this, props);
    _this.state = {
      needVerifyCode: false,
      logining: false,
      verifyCodeImg: (loading_default()),
      pwdIsRemed: false,
      needMsgValidate: false,
      vCodeTime: 0,
      showPhoneCode: false,
      isKickedOut: '',
      password: '',
      inputChange: false
    };
    _this._isMounted = false;
    _this.verifyCodeToken = '';
    _this.secretKey = '8a223b4505354166860b127136747c51';
    _this.handleSubmit = _this.handleSubmit.bind(KingdeeCloud_assertThisInitialized(_this));
    _this.validateFormData = _this.validateFormData.bind(KingdeeCloud_assertThisInitialized(_this));
    _this.submit = _this.submit.bind(KingdeeCloud_assertThisInitialized(_this));
    _this.resetLoginBtn = _this.resetLoginBtn.bind(KingdeeCloud_assertThisInitialized(_this));
    _this.handleAccountInputBlur = _this.handleAccountInputBlur.bind(KingdeeCloud_assertThisInitialized(_this));
    _this.getVerifyCode = _this.getVerifyCode.bind(KingdeeCloud_assertThisInitialized(_this));
    _this.onHandleRememberPwd = _this.onHandleRememberPwd.bind(KingdeeCloud_assertThisInitialized(_this));
    _this.handleEnterKeyDown = _this.handleEnterKeyDown.bind(KingdeeCloud_assertThisInitialized(_this));
    _this.handleLoginBtnClick = _this.handleLoginBtnClick.bind(KingdeeCloud_assertThisInitialized(_this));
    _this.handleSendMessage = _this.handleSendMessage.bind(KingdeeCloud_assertThisInitialized(_this));
    _this.handleVerifyCodeClick = _this.handleVerifyCodeClick.bind(KingdeeCloud_assertThisInitialized(_this));
    _this.getUsernamePswVisibility = _this.getUsernamePswVisibility.bind(KingdeeCloud_assertThisInitialized(_this));
    _this.setAccountAndPasswordOfStore = _this.setAccountAndPasswordOfStore.bind(KingdeeCloud_assertThisInitialized(_this));
    _this.onClose = _this.onClose.bind(KingdeeCloud_assertThisInitialized(_this));
    _this.clickCallback = _this.clickCallback.bind(KingdeeCloud_assertThisInitialized(_this));
    _this.isNeedVerifyCode = _this.isNeedVerifyCode.bind(KingdeeCloud_assertThisInitialized(_this));
    _this.loadingStyle = {
      height: '30px',
      width: '30px',
      borderLeftColor: '#FFFFFF'
    };
    _this.showPassWord = _this.showPassWord.bind(KingdeeCloud_assertThisInitialized(_this));
    _this.showError = _this.showError.bind(KingdeeCloud_assertThisInitialized(_this));
    _this.NeedMsgValidate = _this.NeedMsgValidate.bind(KingdeeCloud_assertThisInitialized(_this));
    _this.handleChangeDataCenter = _this.handleChangeDataCenter.bind(KingdeeCloud_assertThisInitialized(_this));
    _this.valueChange = _this.valueChange.bind(KingdeeCloud_assertThisInitialized(_this));
    return _this;
  }

  KingdeeCloud_createClass(Form, [{
    key: "componentWillMount",
    value: function componentWillMount() {
      this.initAccountInfo();
    }
  }, {
    key: "componentDidUpdate",
    value: function componentDidUpdate(props) {
      if (props.configuration.usernamepsw !== this.props.configuration.usernamepsw) {
        this.initAccountInfo();
      }
    }
  }, {
    key: "componentDidMount",
    value: function componentDidMount() {
      var _this2 = this;

      this._isMounted = true;
      document.addEventListener('keydown', this.handleEnterKeyDown);
      this.removeListener = this.props.dataPipeModel.registerCallback('dataCenterLoad', this.NeedMsgValidate);
      if (!src_store.account || !src_store.accountId) return;
      src_store.accountId && this.isNeedMsgValidate().then(function (data) {
        if (_this2.state.needMsgValidate) return false;

        _this2.isNeedVerifyCode();
      });
    }
  }, {
    key: "NeedMsgValidate",
    value: function NeedMsgValidate() {
      var _this3 = this;

      if (!src_store.account || !src_store.accountId) return;
      this.isNeedMsgValidate().then(function (data) {
        if (_this3.state.needMsgValidate) return false;

        _this3.isNeedVerifyCode();
      });
    }
  }, {
    key: "showPassWord",
    value: function showPassWord() {
      this.setState({
        password: src_store.password
      });
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      this._isMounted = false;
      document.removeEventListener('keydown', this.handleEnterKeyDown);
      this.removeListener && this.removeListener();
      clearInterval(this.vCodeTimer);
      src_store.setValue('token', '');
      src_store.setValue('openid', '');
      src_store.setValue('scantype', '');
    }
  }, {
    key: "initAccountInfo",
    value: function initAccountInfo() {
      var accountInfo = window.localStorage.getItem(ACCOUNT_INFO);
      var account = window.sessionStorage.getItem(ACCOUNT) || '';
      var showUsernamePsw = this.getUsernamePswVisibility();
      var _this$props$configura = this.props.configuration.usernamepsw,
          usernamepsw = _this$props$configura === void 0 ? ONLY_SHOW_USERNAME : _this$props$configura;

      if (showUsernamePsw && accountInfo) {
        accountInfo = JSON.parse(accountInfo);
        var password = accountInfo.password;

        if (password) {
          password = crypto_js_default().AES.decrypt(accountInfo.password, this.secretKey).toString((crypto_js_default()).enc.Utf8);
        }

        switch (usernamepsw) {
          case SHOW_ALL:
            this.setAccountAndPasswordOfStore(accountInfo.account, password);

            if (accountInfo.account && password) {
              this.setState({
                pwdIsRemed: true
              });
            } else {
              this.setState({
                pwdIsRemed: false
              });
            }

            break;

          case ONLY_SHOW_USERNAME:
            this.setAccountAndPasswordOfStore(accountInfo.account, '');

            if (accountInfo.account) {
              this.setState({
                pwdIsRemed: true
              });
            } else {
              this.setState({
                pwdIsRemed: false
              });
            }

            break;

          default:
            this.setAccountAndPasswordOfStore('', '');
            this.setState({
              pwdIsRemed: false
            });
            break;
        }
      } else {
        src_store.setValue('account', account);
        src_store.setValue('password', '');

        if (usernamepsw === HIDDEN_ALL) {
          this.setAccountAndPasswordOfStore('', ''); // 强制刷新

          this.setState({
            pwdIsRemed: this.state.pwdIsRemed
          });
        }
      }
    }
    /**
     * 设置 store中 账号密码 的值
     * @param account 账号
     * @param password 密码
     * @return {void}
    */

  }, {
    key: "setAccountAndPasswordOfStore",
    value: function setAccountAndPasswordOfStore(account, password) {
      if (!src_store.account) {
        src_store.setValue('account', account);
        src_store.setValue('password', password);
      }
    }
    /**
     * 获取 记住账号密码 可见性
     * @return {boolean} 如果可见, 返回true; 不可见返回false
    */

  }, {
    key: "getUsernamePswVisibility",
    value: function getUsernamePswVisibility() {
      var _this$props$configura2 = this.props.configuration.usernamepsw,
          usernamepsw = _this$props$configura2 === void 0 ? ONLY_SHOW_USERNAME : _this$props$configura2;
      return [SHOW_ALL, ONLY_SHOW_USERNAME].includes(usernamepsw);
    }
  }, {
    key: "handleEnterKeyDown",
    value: function handleEnterKeyDown(e) {
      if (e.keyCode === 13) {
        this.state.needVerifyCode ? this.handleLoginBtnClick() : this.handleAccountInputBlur(true);
      }
    }
  }, {
    key: "validateFormData",
    value: function validateFormData(from) {
      var account = src_store.account,
          password = src_store.password,
          verifyCode = src_store.verifyCode,
          phoneCode = src_store.phoneCode;

      if (util_validate.isEmpty(account)) {
        var title = 'accountError';
        var data = intlApi_getLangMsg('login.key051'); // eventBus.pub('login', title, data)

        this.props.dataPipeModel && this.props.dataPipeModel.sendData({
          type: title,
          data: data
        });
        return false;
      } else if (util_validate.isEmpty(password)) {
        var _title = 'passwordError';

        var _data = intlApi_getLangMsg('login.key052'); // eventBus.pub('login', title, data)


        this.props.dataPipeModel && this.props.dataPipeModel.sendData({
          type: _title,
          data: _data
        });
        return false;
      } else if (this.state.needVerifyCode && util_validate.isEmpty(verifyCode)) {
        var _title2 = 'verifyCodeError';

        var _data2 = intlApi_getLangMsg('login.key046'); // eventBus.pub('login', title, data)


        this.props.dataPipeModel && this.props.dataPipeModel.sendData({
          type: _title2,
          data: _data2
        });
        return false;
      } else if (this.state.showPhoneCode && util_validate.isEmpty(phoneCode) && from !== 'sendMessage') {
        var _title3 = 'phoneCodeError';

        var _data3 = intlApi_getLangMsg('login.key047'); // eventBus.pub('login', title, data)


        this.props.dataPipeModel && this.props.dataPipeModel.sendData({
          type: _title3,
          data: _data3
        });
        return false;
      }

      return true;
    }
  }, {
    key: "handleLoginBtnClick",
    value: function handleLoginBtnClick() {
      this.setState({
        isKickedOut: ''
      });
      var _this$state = this.state,
          needMsgValidate = _this$state.needMsgValidate,
          showPhoneCode = _this$state.showPhoneCode;

      if (!showPhoneCode && needMsgValidate) {
        this.handleSendMessage();
      } else {
        this.handleSubmit();
      }
    }
  }, {
    key: "handleSendMessage",
    value: function handleSendMessage() {
      var _this4 = this;

      if (!this.validateFormData('sendMessage')) return false;
      var vCodeTime = this.state.vCodeTime;
      if (vCodeTime !== 0) return false;
      service_sendMessage({
        useraccount: src_store.account,
        verifycode: src_store.verifyCode,
        loginid: this.verifyCodeToken,
        language: src_store.lang,
        accountId: src_store.accountId
      }).then(function (data) {
        if (data.success !== true) {
          var error = {
            message: data.msg || data.description,
            level: 1
          }; //  eventBus.pub_showNotification(error)    t

          _this4.props.dataPipeModel && _this4.props.dataPipeModel.sendData({
            type: 'ShowNotification',
            error: error
          });

          if (data.errorcode === '1') {
            _this4.getVerifyCode(); // eventBus.pub_focusInput({ name: 'verifyCode' })


            _this4.props.dataPipeModel && _this4.props.dataPipeModel.sendData({
              type: 'FocusInput',
              name: 'verifyCode'
            });
          }

          return false;
        }

        var vCodeTime = data.timeout || 60;
        _this4.vCodeTimer = setInterval(function () {
          if (vCodeTime <= 0) {
            clearInterval(_this4.vCodeTimer);
          } else {
            _this4.setState({
              vCodeTime: --vCodeTime
            });
          }
        }, 1000);

        _this4.setState({
          showPhoneCode: true
        }, function () {
          // eventBus.pub_focusInput({ name: 'phoneCode' })
          _this4.props.dataPipeModel && _this4.props.dataPipeModel.sendData({
            type: 'FocusInput',
            name: 'phoneCode'
          });
        });
      });
    }
  }, {
    key: "handleSubmit",
    value: function handleSubmit() {
      if (this.state.logining) return false;
      if (!this.validateFormData()) return false;
      this.setState({
        logining: true
      });
      src_store.setValue('account', src_store.account.trim());
      this.getPublicKey(this.submit);
    }
  }, {
    key: "getPublicKey",
    value: function getPublicKey(call) {
      var _this5 = this;

      var accessKey = src_store.account + uid(false, 16 - src_store.account.length);
      service_getPublicKey({
        // accessKey: '123456'
        accessKey: accessKey,
        language: src_store.lang,
        accountId: src_store.accountId
      }).then(function (data) {
        if (data.success !== true) {
          var error = {
            message: data.errorMessage,
            level: 1
          }; //  eventBus.pub_showNotification(error)

          _this5.props.dataPipeModel && _this5.props.dataPipeModel.sendData({
            type: 'ShowNotification',
            error: error
          });

          _this5.resetLoginBtn();

          return false;
        }

        call({
          publicKey: data.publicKey,
          accessKey: accessKey
        });
      });
    } // 确定

  }, {
    key: "onClose",
    value: function onClose(id) {
      if (id === 'privacy') {
        this.setState({
          isKickedOut: '3'
        });
        this.handleSubmit();
        return;
      }

      if (id === 'findPassword') {
        src_store.setValue('modifyPanel', true);
        window.location.hash = '#findPassword';
      } else {
        this.setState({
          isKickedOut: '1'
        });
        var _this$state2 = this.state,
            needMsgValidate = _this$state2.needMsgValidate,
            showPhoneCode = _this$state2.showPhoneCode;

        if (!showPhoneCode && needMsgValidate) {
          this.handleSendMessage();
        } else {
          this.handleSubmit();
        }
      }
    } // 取消

  }, {
    key: "clickCallback",
    value: function clickCallback(_ref) {
      var id = _ref.id,
          key = _ref.key,
          isCloseBtn = _ref.isCloseBtn;
      if (id === 'privacy') return;

      if (id === 'findPassword' && !isCloseBtn) {
        this.setState({
          isKickedOut: '2'
        });
        var _this$state3 = this.state,
            needMsgValidate = _this$state3.needMsgValidate,
            showPhoneCode = _this$state3.showPhoneCode;

        if (!showPhoneCode && needMsgValidate) {
          this.handleSendMessage();
        } else {
          this.handleSubmit();
        }
      } else {
        this.setState({
          isKickedOut: ''
        });
      }
    }
  }, {
    key: "submit",
    value: function submit(data) {
      var _this6 = this;

      var accountId = src_store.accountId,
          lang = src_store.lang,
          account = src_store.account,
          password = src_store.password,
          verifyCode = src_store.verifyCode,
          phoneCode = src_store.phoneCode,
          token = src_store.token,
          openid = src_store.openid,
          scantype = src_store.scantype;
      var _this$state4 = this.state,
          pwdIsRemed = _this$state4.pwdIsRemed,
          needVerifyCode = _this$state4.needVerifyCode,
          needMsgValidate = _this$state4.needMsgValidate,
          isKickedOut = _this$state4.isKickedOut;
      var psw;
      var dialogArgs = {};
      var redirect = getRedirect();

      if (redirect) {
        redirect = decodeURIComponent(redirect);
      }

      var currentItem = src_store.dataCenter.find(function (item, i) {
        return item.value === accountId;
      });

      if (currentItem && currentItem.closeEncrypt) {
        psw = password;
      } else if ((currentItem === null || currentItem === void 0 ? void 0 : currentItem.rsaPadding) === 'oaep') {
        var publicKey = "-----BEGIN PUBLIC KEY-----\n".concat(data.publicKey, "\n-----END PUBLIC KEY-----");
        var publicK = forge.pki.publicKeyFromPem(publicKey);
        var encrypted = publicK.encrypt(password, 'RSA-OAEP');
        psw = forge.util.encode64(encrypted);
      } else {
        var encrypt = new lib/* default */.Z();
        encrypt.setPublicKey(data.publicKey);
        psw = encrypt.encrypt(password);
      }

      var formData = {
        userSourceType: 2,
        accountId: accountId,
        language: lang,
        useraccount: account,
        password: psw,
        accessKey: data.accessKey,
        redirect: redirect || 'index.html?formId=pc_main_console',
        randomCode: src_store.randomCode,
        isStandard: true
      };
      token && Object.assign(formData, {
        token: token
      });
      openid && Object.assign(formData, {
        openid: openid
      });
      scantype && Object.assign(formData, {
        scantype: scantype
      });
      needVerifyCode && Object.assign(formData, {
        verifycode: verifyCode,
        loginid: this.verifyCodeToken
      });
      needMsgValidate && Object.assign(formData, {
        smsCode: phoneCode
      });
      isKickedOut && Object.assign(formData, {
        isKickedOut: this.state.isKickedOut
      });
      service_submit(formData).then(function (data) {
        var errorcode = data.errorcode,
            needChangePwd = data.needChangePwd,
            needActive = data.needActive,
            needverifycode = data.needverifycode,
            needChangeInitialPwd = data.needChangeInitialPwd,
            message = data.message,
            _data$randomCode = data.randomCode,
            randomCode = _data$randomCode === void 0 ? '' : _data$randomCode,
            iframeUrl = data.iframeUrl;
        src_store.setValue('randomCode', randomCode);

        if (needActive) {
          window.location.hash = '#activeUser';

          _this6.showError(message);

          return;
        }

        if (needChangeInitialPwd === 1) {
          window.location.hash = '#findPassword';

          _this6.showError(message);

          return;
        }

        if (needChangePwd === 1) {
          if (needverifycode === false) {
            src_store.setValue('newResetPws', true);

            _this6.onClose('findPassword');
          } else {
            window.location.hash = '#findPassword';
          }

          setTimeout(function () {
            var error = {
              level: 2,
              message: message
            };
            _this6.props.dataPipeModel && _this6.props.dataPipeModel.sendData({
              type: 'ShowNotification',
              error: error
            });
            _this6.props.dataPipeModel && _this6.props.dataPipeModel.sendData({
              type: 'FocusInput',
              name: 'verifyCode'
            });
          }, 0);
          return false;
        }

        if (errorcode !== 0) {
          dialogArgs.iframeUrl = iframeUrl;
          showMsg(errorcode, data, _this6.onClose, _this6.clickCallback, dialogArgs);

          _this6.loginingFail(data);

          return false;
        }

        if (pwdIsRemed) {
          var _this6$props$configur = _this6.props.configuration.usernamepsw,
              usernamepsw = _this6$props$configur === void 0 ? ONLY_SHOW_USERNAME : _this6$props$configur;
          var accountInfo = {
            account: '',
            password: ''
          };

          switch (usernamepsw) {
            case SHOW_ALL:
              accountInfo.account = account;
              accountInfo.password = crypto_js_default().AES.encrypt(password, _this6.secretKey).toString();
              break;

            case ONLY_SHOW_USERNAME:
              accountInfo.account = account;
              break;

            case HIDDEN_ALL:
            default:
              break;
          }

          window.localStorage.setItem(ACCOUNT_INFO, JSON.stringify(accountInfo));
          window.sessionStorage.setItem(ACCOUNT, accountInfo.account);
        } else {
          window.localStorage.removeItem(ACCOUNT_INFO);
          window.sessionStorage.removeItem(ACCOUNT);
        }

        window.localStorage.setItem('ierp-login-username', data.username);
        var userinfo = {
          username: data.username || '',
          avatar: data.avatar || ''
        };
        var userInfoKey = getNameWithCurrentEnvrionment(LOGIN_USERINFO);
        window.localStorage.setItem(userInfoKey, JSON.stringify(userinfo)); // this.resetLoginBtn()

        var hashString = window.location.hash !== '#kingdeeCloud' ? window.location.hash : '';

        _this6.getRedirectUrl(data.RedirectURL).then(function (redirectUrl) {
          if (isScript(redirectUrl)) {
            _this6.loginingFail({
              description_cn: intlApi_getLangMsg('login.key101')
            });

            return false;
          }

          window.location.href = redirectUrl + hashString;
        });
      });
    }
  }, {
    key: "getRedirectUrl",
    value: function getRedirectUrl() {
      var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
      return new Promise(function (resolve) {
        var blackList = ['download.do?'];
        var returnToIndex = blackList.some(function (item) {
          return url.indexOf(item) > -1;
        });

        if (returnToIndex) {
          var iframe = document.createElement('iframe');
          iframe.style.display = 'none';
          iframe.src = url;
          document.body.appendChild(iframe); // 预留2000ms给iframe加载文件

          setTimeout(function () {
            resolve('index.html');
          }, 2000);
        } else {
          resolve(url);
        }
      });
    }
  }, {
    key: "loginingFail",
    value: function loginingFail(data) {
      var _this7 = this;

      var errorCode = data.errorcode;
      var error = {
        message: data.description_cn || data.description,
        level: data.level || 1
      };

      if (errorCode === '1') {
        this.getVerifyCode(); // eventBus.pub_focusInput({ name: 'verifyCode' })

        this.props.dataPipeModel && this.props.dataPipeModel.sendData({
          type: 'FocusInput',
          name: 'verifyCode'
        });
      } else if (errorCode === 'needVerification') {
        this.setState({
          needVerifyCode: true
        });
        this.getVerifyCode(); // eventBus.pub_focusInput({ name: 'verifyCode' })

        this.props.dataPipeModel && this.props.dataPipeModel.sendData({
          type: 'FocusInput',
          name: 'verifyCode'
        });
      } else {
        // eventBus.pub_focusInput({ name: 'account' })
        this.props.dataPipeModel && this.props.dataPipeModel.sendData({
          type: 'FocusInput',
          name: 'account'
        });
      } //  eventBus.pub_showNotification(error)


      setTimeout(function () {
        _this7.props.dataPipeModel && _this7.props.dataPipeModel.sendData({
          type: 'ShowNotification',
          error: error
        });
      }, 0);
      this.resetLoginBtn();
    }
  }, {
    key: "showError",
    value: function showError(message) {
      var _this8 = this;

      setTimeout(function () {
        var error = {
          level: 1,
          message: message
        };
        _this8.props.dataPipeModel && _this8.props.dataPipeModel.sendData({
          type: 'ShowNotification',
          error: error
        });
      }, 0);
    }
  }, {
    key: "resetLoginBtn",
    value: function resetLoginBtn() {
      this.setState({
        logining: false
      });
    }
  }, {
    key: "getVerifyCode",
    value: function getVerifyCode() {
      var _this9 = this;

      if (this.state.needVerifyCode === false) return;
      this.setState({
        getVerifyCode: (loading_default())
      }); // eventBus.pub_focusInput({ name: 'verifyCode' })

      service_getVerifyCode({
        phone: src_store.account,
        v: uid(false, 8),
        language: src_store.lang
      }).then(function (data) {
        var message = data.description_cn || data.description;

        if (message) {
          var error = {
            message: message,
            level: 1
          }; //  eventBus.pub_showNotification(error)

          _this9.props.dataPipeModel && _this9.props.dataPipeModel.sendData({
            type: 'ShowNotification',
            error: error
          });
          return false;
        }

        _this9.setState({
          verifyCodeImg: data.content || (loading_default())
        });

        _this9.verifyCodeToken = data.loginId;
      });
    }
  }, {
    key: "isNeedMsgValidate",
    value: function isNeedMsgValidate() {
      var _this10 = this;

      return service_isNeedMsgValidate({
        useraccount: src_store.account,
        accountId: src_store.accountId
      }).then(function (data) {
        _this10.setState({
          needMsgValidate: data.isNeed
        });

        if (data.isNeed) {
          _this10.setState({
            needVerifyCode: true
          });

          _this10.getVerifyCode();
        }
      });
    }
  }, {
    key: "handleAccountInputBlur",
    value: function handleAccountInputBlur(isEnter) {
      var _this11 = this;

      src_store.setValue('account', src_store.account && src_store.account.trim());
      var account = src_store.account; // if (store.account === '' || this.oldAccount === account) {
      //   isEnter && this.handleLoginBtnClick()
      //   return
      // }

      this.oldAccount = account;
      if (!src_store.account || !src_store.accountId) return;
      this.isNeedMsgValidate().then(function (data) {
        // 如果需要短信验证，默认就有图形验证码，不需要额外发请求
        if (_this11.state.needMsgValidate) {
          isEnter && _this11.handleLoginBtnClick();
          return false;
        }

        _this11.isNeedVerifyCode(isEnter);
      });
    }
  }, {
    key: "isNeedVerifyCode",
    value: function isNeedVerifyCode(isEnter) {
      var _this12 = this;

      service_isNeedVerifyCode({
        useraccount: src_store.account,
        accountId: src_store.accountId,
        v: uid(false, 8),
        language: src_store.lang
      }).then(function (data) {
        if (!_this12._isMounted) {
          isEnter && _this12.handleLoginBtnClick();
          return;
        }

        if (_this12.state.needVerifyCode && data.isNeed === false) {
          _this12.setState({
            showPhoneCode: data.isNeed
          });
        }

        _this12.setState({
          needVerifyCode: data.isNeed
        });

        _this12.getVerifyCode();

        !data.isNeed && isEnter && _this12.handleLoginBtnClick();
      });
    }
  }, {
    key: "onHandleRememberPwd",
    value: function onHandleRememberPwd(isSelect) {
      this.setState({
        pwdIsRemed: isSelect
      });
    }
  }, {
    key: "handleVerifyCodeClick",
    value: function handleVerifyCodeClick() {
      this.getVerifyCode(); // eventBus.pub_focusInput({ name: 'verifyCode' })

      this.props.dataPipeModel && this.props.dataPipeModel.sendData({
        type: 'FocusInput',
        name: 'verifyCode'
      });
    }
  }, {
    key: "handleChangeDataCenter",
    value: function handleChangeDataCenter(key) {
      src_store.setValue('toggleDataCenter', true);
      this.props.handleChangeDataCenter(key);
    }
  }, {
    key: "valueChange",
    value: function valueChange() {
      this.setState({
        inputChange: !this.state.inputChange
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _classnames, _classnames2, _classnames3;

      var _this$props2 = this.props,
          dataCenter = _this$props2.dataCenter,
          currentAccountId = _this$props2.currentAccountId,
          configuration = _this$props2.configuration,
          currentLang = _this$props2.currentLang,
          isComplete = _this$props2.isComplete;
      var _this$state5 = this.state,
          needVerifyCode = _this$state5.needVerifyCode,
          logining = _this$state5.logining,
          verifyCodeImg = _this$state5.verifyCodeImg,
          pwdIsRemed = _this$state5.pwdIsRemed,
          needMsgValidate = _this$state5.needMsgValidate,
          showPhoneCode = _this$state5.showPhoneCode,
          vCodeTime = _this$state5.vCodeTime;
      var graphicContainerClass = classnames_default()((_classnames = {}, KingdeeCloud_defineProperty(_classnames, web_KingdeeCloud.graphicContainer, true), KingdeeCloud_defineProperty(_classnames, web_KingdeeCloud.hide, !needVerifyCode), _classnames));
      var buttonText = '';
      var accountPlaceholder = getMultilinguaText(configuration.accountplaceholder, currentLang, intlApi_getLangMsg('login.key002'));

      if (needMsgValidate && !showPhoneCode) {
        buttonText = intlApi_getLangMsg('login.key055');
        accountPlaceholder = getMultilinguaText(configuration.accountplaceholder, currentLang, intlApi_getLangMsg('login.key087'));
      } else {
        buttonText = logining ? intlApi_getLangMsg('login.key050') : intlApi_getLangMsg('login.key005');
      }

      var phoneCodeClass = classnames_default()((_classnames2 = {}, KingdeeCloud_defineProperty(_classnames2, web_KingdeeCloud.phoneCodeContainer, true), KingdeeCloud_defineProperty(_classnames2, web_KingdeeCloud.showPhoneCode, showPhoneCode), _classnames2));
      var btnClass = classnames_default()((_classnames3 = {}, KingdeeCloud_defineProperty(_classnames3, web_KingdeeCloud.btn, true), KingdeeCloud_defineProperty(_classnames3, web_KingdeeCloud.disable, vCodeTime !== 0), _classnames3));
      var reSendtext = intlApi_getLangMsg('login.key036');
      var btnText = vCodeTime === 0 ? reSendtext : "".concat(reSendtext, "(").concat(vCodeTime, "s)");
      var isFocusAccount = src_store.account === '';
      var account = src_store.account,
          password = src_store.password,
          verifyCode = src_store.verifyCode,
          phoneCode = src_store.phoneCode;
      var disable = !account || !password || needVerifyCode && !verifyCode || showPhoneCode && !phoneCode;
      return /*#__PURE__*/react.createElement(StoreContext.Provider, {
        value: src_store
      }, /*#__PURE__*/react.createElement("div", {
        className: web_KingdeeCloud.content
      }, /*#__PURE__*/react.createElement(web_base_DropdownList, {
        list: dataCenter,
        selectItem: currentAccountId,
        style: web_KingdeeCloud.dropdownList,
        name: "accountId",
        onItemClick: this.handleChangeDataCenter,
        isKingdeeClude: true,
        dataPipeModel: this.props.dataPipeModel
      }), /*#__PURE__*/react.createElement(Input2, {
        dataPipeModel: this.props.dataPipeModel,
        valueChange: this.valueChange,
        name: "account",
        type: "text",
        placeholder: accountPlaceholder,
        defaultValue: src_store.account,
        isFocusAccount: isFocusAccount,
        onBlur: this.handleAccountInputBlur
      }), /*#__PURE__*/react.createElement("input", {
        type: "text",
        style: {
          display: 'none'
        }
      }), /*#__PURE__*/react.createElement("input", {
        type: "password",
        style: {
          display: 'none'
        }
      }), /*#__PURE__*/react.createElement(Input2, {
        dataPipeModel: this.props.dataPipeModel,
        valueChange: this.valueChange,
        name: "password",
        type: "password",
        placeholder: intlApi_getLangMsg('login.key003'),
        isFocusAccount: isFocusAccount,
        defaultValue: isComplete && src_store.password
      }), /*#__PURE__*/react.createElement("div", {
        className: graphicContainerClass
      }, /*#__PURE__*/react.createElement(Input2, {
        dataPipeModel: this.props.dataPipeModel,
        valueChange: this.valueChange,
        name: "verifyCode",
        type: "text",
        placeholder: intlApi_getLangMsg('login.key004'),
        className: web_KingdeeCloud.input
      }), /*#__PURE__*/react.createElement("div", {
        className: web_KingdeeCloud.graphicCode,
        onClick: this.handleVerifyCodeClick
      }, /*#__PURE__*/react.createElement("img", {
        src: verifyCodeImg
      }))), /*#__PURE__*/react.createElement("div", {
        className: phoneCodeClass
      }, /*#__PURE__*/react.createElement(Input2, {
        dataPipeModel: this.props.dataPipeModel,
        valueChange: this.valueChange,
        name: "phoneCode",
        type: "text",
        placeholder: intlApi_getLangMsg('login.key025'),
        className: web_KingdeeCloud.input
      }), /*#__PURE__*/react.createElement("div", {
        className: btnClass,
        onClick: this.handleSendMessage
      }, btnText))), /*#__PURE__*/react.createElement(base_Button, {
        text: buttonText,
        style: this.loadingStyle,
        disable: disable,
        onClick: this.handleLoginBtnClick,
        isLoading: this.state.logining
      }), /*#__PURE__*/react.createElement(Tools, KingdeeCloud_extends({
        handleRememberPwd: this.onHandleRememberPwd,
        pwdIsRemed: pwdIsRemed
      }, this.props, {
        getUsernamePswVisibility: this.getUsernamePswVisibility
      })));
    }
  }]);

  return Form;
}(react.Component);
function Tools(props) {
  var handleRememberPwd = props.handleRememberPwd,
      pwdIsRemed = props.pwdIsRemed,
      configuration = props.configuration,
      getUsernamePswVisibility = props.getUsernamePswVisibility,
      hasLDAP = props.hasLDAP;
  var hiddenResetPwd = configuration.hiddenresetpwd;
  var usernamePsw = configuration.usernamepsw || ONLY_SHOW_USERNAME;
  var showResetPwd = !hiddenResetPwd || hiddenResetPwd === 'false';
  var showUsernamePsw = getUsernamePswVisibility();
  var textUsernamePsw = intlApi_getLangMsg('login.key085');

  switch (usernamePsw) {
    case SHOW_ALL:
      textUsernamePsw = intlApi_getLangMsg('login.key085');
      break;

    case ONLY_SHOW_USERNAME:
      textUsernamePsw = intlApi_getLangMsg('login.key086');
      break;

    case HIDDEN_ALL:
    default:
      break;
  }

  return /*#__PURE__*/react.createElement("div", {
    className: web_KingdeeCloud.tools
  }, /*#__PURE__*/react.createElement(web_base_CheckBox, {
    text: textUsernamePsw,
    isSelect: pwdIsRemed,
    onClick: handleRememberPwd,
    showUsernamePsw: showUsernamePsw
  }), showResetPwd && !hasLDAP && /*#__PURE__*/react.createElement(base_HyperLink, {
    text: intlApi_getLangMsg('login.key007'),
    href: "#findPassword"
  }));
}
/* harmony default export */ var page_web_KingdeeCloud = (KingdeeCloud);
;// CONCATENATED MODULE: ./src/page/web/CloudHub.less
// extracted by mini-css-extract-plugin
/* harmony default export */ var web_CloudHub = ({"formContainer":"H_rJ83Ua","title":"_1MP9WG9E","content":"_1v9cNOCJ","dropdownList":"_1ZqHa1pQ","publicQrcode":"_1uoRJ-AE","privateQrcode":"_3_82Cwec","imgBox":"_3FhP8sIj","reload":"_3rGWKWX8"});
;// CONCATENATED MODULE: ./src/page/web/CloudHub.jsx
function CloudHub_typeof(obj) { "@babel/helpers - typeof"; return CloudHub_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, CloudHub_typeof(obj); }

function CloudHub_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function CloudHub_extends() { CloudHub_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return CloudHub_extends.apply(this, arguments); }

















function CloudHub_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function CloudHub_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function CloudHub_createClass(Constructor, protoProps, staticProps) { if (protoProps) CloudHub_defineProperties(Constructor.prototype, protoProps); if (staticProps) CloudHub_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }

function CloudHub_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) CloudHub_setPrototypeOf(subClass, superClass); }

function CloudHub_setPrototypeOf(o, p) { CloudHub_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return CloudHub_setPrototypeOf(o, p); }

function CloudHub_createSuper(Derived) { var hasNativeReflectConstruct = CloudHub_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = CloudHub_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = CloudHub_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return CloudHub_possibleConstructorReturn(this, result); }; }

function CloudHub_possibleConstructorReturn(self, call) { if (call && (CloudHub_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return CloudHub_assertThisInitialized(self); }

function CloudHub_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function CloudHub_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }

function CloudHub_getPrototypeOf(o) { CloudHub_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return CloudHub_getPrototypeOf(o); }













var CloudHub = /*#__PURE__*/function (_Component) {
  CloudHub_inherits(CloudHub, _Component);

  var _super = CloudHub_createSuper(CloudHub);

  function CloudHub(props) {
    var _this;

    CloudHub_classCallCheck(this, CloudHub);

    _this = _super.call(this, props);
    _this.state = {
      list: []
    };
    _this.handleChangeDataCenter = _this.handleChangeDataCenter.bind(CloudHub_assertThisInitialized(_this));
    _this.showDropdownList = _this.showDropdownList.bind(CloudHub_assertThisInitialized(_this));
    return _this;
  }

  CloudHub_createClass(CloudHub, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      var dataCenter = this.props.dataCenter;

      if (dataCenter.length !== 0) {
        this.ListenerFilterDataCenter(dataCenter);
      }
    }
  }, {
    key: "componentWillMount",
    value: function componentWillMount() {
      var accountId = this.props.currentAccountId;
      this.props.handleChangeDataCenter(accountId);
    }
  }, {
    key: "shouldComponentUpdate",
    value: function shouldComponentUpdate(nextProps, nextState) {
      if (nextProps.dataCenter.length !== 0 && this.props.dataCenter.length === 0) {
        this.ListenerFilterDataCenter(nextProps.dataCenter);
      }

      return true;
    }
  }, {
    key: "ListenerFilterDataCenter",
    value: function ListenerFilterDataCenter(dataCenter) {
      var key = 'cloudHubDataCenterList';
      var types = [0, 1];
      var dataPipeModel = this.props.dataPipeModel;
      dataPipeModel && dataPipeModel.registerCallback(key, this.showDropdownList);
      filterDataCenter(key, dataCenter, types, dataPipeModel);
    }
  }, {
    key: "showDropdownList",
    value: function showDropdownList(_ref) {
      var data = _ref.data;
      var list = this.state.list;
      list.push(data);
      this.setState({
        list: list
      });
    }
  }, {
    key: "handleChangeDataCenter",
    value: function handleChangeDataCenter(key) {
      src_store.setValue('toggleDataCenter', true);
      this.props.handleChangeDataCenter(key);
    }
  }, {
    key: "render",
    value: function render() {
      var _this$props = this.props,
          currentAccountId = _this$props.currentAccountId,
          dataPipeModel = _this$props.dataPipeModel;
      return /*#__PURE__*/react.createElement(common_LoginWrapper, CloudHub_extends({
        selectType: "cloudHub"
      }, this.props), /*#__PURE__*/react.createElement("div", {
        className: web_CloudHub.formContainer
      }, /*#__PURE__*/react.createElement("div", {
        className: web_CloudHub.content
      }, /*#__PURE__*/react.createElement(web_base_Notification, {
        dataPipeModel: dataPipeModel
      }), this.state.list && /*#__PURE__*/react.createElement(web_base_DropdownList, {
        name: "accountId",
        list: this.state.list,
        dataPipeModel: dataPipeModel,
        selectItem: currentAccountId,
        style: web_CloudHub.dropdownList,
        onItemClick: this.handleChangeDataCenter
      }), /*#__PURE__*/react.createElement(PublicQrcode, {
        currentAccountId: currentAccountId,
        dataPipeModel: dataPipeModel
      }))));
    }
  }]);

  return CloudHub;
}(react.Component);

var PublicQrcode = /*#__PURE__*/function (_Component2) {
  CloudHub_inherits(PublicQrcode, _Component2);

  var _super2 = CloudHub_createSuper(PublicQrcode);

  function PublicQrcode(props) {
    var _this2;

    CloudHub_classCallCheck(this, PublicQrcode);

    _this2 = _super2.call(this, props);
    _this2.state = {
      qrCodeUrl: ''
    };
    return _this2;
  }

  CloudHub_createClass(PublicQrcode, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.loadYzjQrcode();
    }
  }, {
    key: "componentWillUpdate",
    value: function componentWillUpdate(nextProps) {
      var props = this.props;

      if (props.currentAccountId !== nextProps.currentAccountId) {
        this.loadYzjQrcode(nextProps.currentAccountId);
      }
    }
  }, {
    key: "loadYzjQrcode",
    value: function loadYzjQrcode(currentAccountId) {
      var _this3 = this;

      var token = uid(false, 15);
      var data = {
        accountId: currentAccountId || this.props.currentAccountId,
        token: token,
        language: src_store.lang,
        scantype: 'cloudHub'
      };
      getYzjQrcode(data).then(function (data) {
        if (data && data.errorcode) {
          var error = {
            message: data.description || data.description_cn,
            level: data.level || 1,
            time: data.time
          };
          _this3.props.dataPipeModel && _this3.props.dataPipeModel.sendData({
            type: 'ShowNotification',
            error: error
          });
        }

        _this3.setState({
          qrCodeUrl: data.redirectUrl
        });
      });
    }
  }, {
    key: "render",
    value: function render() {
      return /*#__PURE__*/react.createElement("div", {
        className: web_CloudHub.publicQrcode
      }, /*#__PURE__*/react.createElement("iframe", {
        src: this.state.qrCodeUrl,
        frameBorder: "0",
        scrolling: "no"
      }));
    }
  }]);

  return PublicQrcode;
}(react.Component);
var PrivateQrcode = /*#__PURE__*/(/* unused pure expression or super */ null && (function (_Component3) {
  CloudHub_inherits(PrivateQrcode, _Component3);

  var _super3 = CloudHub_createSuper(PrivateQrcode);

  function PrivateQrcode(props) {
    var _this4;

    CloudHub_classCallCheck(this, PrivateQrcode);

    _this4 = _super3.call(this, props);
    _this4.state = {
      qrCodeUrl: '',
      overTime: false
    };
    _this4.loadYzjQrcode = _this4.loadYzjQrcode.bind(CloudHub_assertThisInitialized(_this4));
    _this4.handleReloadClick = _this4.handleReloadClick.bind(CloudHub_assertThisInitialized(_this4));
    return _this4;
  }

  CloudHub_createClass(PrivateQrcode, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.loadYzjQrcode();
    }
  }, {
    key: "componentWillUpdate",
    value: function componentWillUpdate(nextProps) {
      var props = this.props;

      if (props.currentAccountId !== nextProps.currentAccountId) {
        this.loadYzjQrcode();
      }
    }
  }, {
    key: "loadYzjQrcode",
    value: function loadYzjQrcode() {
      var _this5 = this;

      service.getYzjQrcodePrivate({
        language: store.lang
      }).then(function (data) {
        if (!data.success) return false;
        var _data$data = data.data,
            interval = _data$data.interval,
            url = _data$data.url;

        _this5.setState({
          qrCodeUrl: url,
          overTime: false
        });

        _this5.overTimer = setTimeout(function () {
          _this5.setState({
            overTime: true
          });
        }, interval * 1000);
      });
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      clearTimeout(this.overTimer);
    }
  }, {
    key: "handleReloadClick",
    value: function handleReloadClick() {
      this.loadYzjQrcode();
    }
  }, {
    key: "render",
    value: function render() {
      var _this$state = this.state,
          qrCodeUrl = _this$state.qrCodeUrl,
          overTime = _this$state.overTime;
      var imgBoxClass = classname(CloudHub_defineProperty({}, style.imgBox, qrCodeUrl !== ''));
      return /*#__PURE__*/React.createElement("div", {
        className: style.privateQrcode
      }, /*#__PURE__*/React.createElement("div", {
        className: imgBoxClass
      }, /*#__PURE__*/React.createElement("img", {
        src: qrCodeUrl
      })), overTime && /*#__PURE__*/React.createElement("div", {
        className: style.reload,
        onClick: this.handleReloadClick
      }, /*#__PURE__*/React.createElement("div", null, getLangMsg('login.key015')), /*#__PURE__*/React.createElement("div", null, getLangMsg('login.key016'))));
    }
  }]);

  return PrivateQrcode;
}(Component)));
/* harmony default export */ var page_web_CloudHub = (CloudHub);
// EXTERNAL MODULE: ../../node_modules/core-js/modules/es.number.constructor.js
var es_number_constructor = __webpack_require__(1245);
// EXTERNAL MODULE: ../../node_modules/webcamjs/webcam.js
var webcam = __webpack_require__(7471);
var webcam_default = /*#__PURE__*/__webpack_require__.n(webcam);
;// CONCATENATED MODULE: ./src/page/web/Face.less
// extracted by mini-css-extract-plugin
/* harmony default export */ var web_Face = ({"faceContainer":"plaIu9HE","videoContainer":"_32JHfyYA","video":"_17p-Kdj6","videoBox":"_13rWaDeG","scanningLine":"g9t-OR5i","ani-scanning":"_3zbgmt9N","failure":"_3JARbFEI","show":"_2fhTl7QB","scanningContainer":"_3z-iPylz","scanning":"zjy5BT16","reScanning":"-DylUzYB","btn":"_2VTENvVB","pulse":"_1-cBYhDI","warn":"_3ci0EbWs","pulse1":"_1EW9Jrom","pulse2":"_17nZADid","btnTime":"_2ehBp9Kb"});
;// CONCATENATED MODULE: ./src/page/web/common/AiLoginWrapper.less
// extracted by mini-css-extract-plugin
/* harmony default export */ var common_AiLoginWrapper = ({"container":"_3pHu1TPq","mask":"_2tgz3L2N","header":"_39Ru0F5H","center":"_1IAPAA50","footer":"_25htaxjq","hide":"_3J3tzZ85","success":"_-5fpU0MM"});
// EXTERNAL MODULE: ./src/img/logo-white.png
var logo_white = __webpack_require__(2533);
var logo_white_default = /*#__PURE__*/__webpack_require__.n(logo_white);
// EXTERNAL MODULE: ./src/img/logo-white-en.png
var logo_white_en = __webpack_require__(5053);
var logo_white_en_default = /*#__PURE__*/__webpack_require__.n(logo_white_en);
;// CONCATENATED MODULE: ./src/i18n/imageMap.js


var whiteLogo = {
  zh_CN: (logo_white_default()),
  en_US: (logo_white_en_default())
};
;// CONCATENATED MODULE: ./src/page/web/common/AiLoginWrapper.jsx
function AiLoginWrapper_typeof(obj) { "@babel/helpers - typeof"; return AiLoginWrapper_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, AiLoginWrapper_typeof(obj); }















function AiLoginWrapper_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function AiLoginWrapper_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function AiLoginWrapper_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function AiLoginWrapper_createClass(Constructor, protoProps, staticProps) { if (protoProps) AiLoginWrapper_defineProperties(Constructor.prototype, protoProps); if (staticProps) AiLoginWrapper_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }

function AiLoginWrapper_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) AiLoginWrapper_setPrototypeOf(subClass, superClass); }

function AiLoginWrapper_setPrototypeOf(o, p) { AiLoginWrapper_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return AiLoginWrapper_setPrototypeOf(o, p); }

function AiLoginWrapper_createSuper(Derived) { var hasNativeReflectConstruct = AiLoginWrapper_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = AiLoginWrapper_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = AiLoginWrapper_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return AiLoginWrapper_possibleConstructorReturn(this, result); }; }

function AiLoginWrapper_possibleConstructorReturn(self, call) { if (call && (AiLoginWrapper_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return AiLoginWrapper_assertThisInitialized(self); }

function AiLoginWrapper_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function AiLoginWrapper_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }

function AiLoginWrapper_getPrototypeOf(o) { AiLoginWrapper_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return AiLoginWrapper_getPrototypeOf(o); }








var AiLoginWrapper = /*#__PURE__*/function (_Component) {
  AiLoginWrapper_inherits(AiLoginWrapper, _Component);

  var _super = AiLoginWrapper_createSuper(AiLoginWrapper);

  function AiLoginWrapper() {
    AiLoginWrapper_classCallCheck(this, AiLoginWrapper);

    return _super.apply(this, arguments);
  }

  AiLoginWrapper_createClass(AiLoginWrapper, [{
    key: "render",
    value: function render() {
      var _classname, _classname2, _classname3;

      var _this$props = this.props,
          selectType = _this$props.selectType,
          loginStatus = _this$props.loginStatus,
          currentLang = _this$props.currentLang,
          userSourceType = _this$props.userSourceType,
          dataPipeModel = _this$props.dataPipeModel;
      var isSuccess = loginStatus === SUCCESS;
      var headerClass = classnames_default()((_classname = {}, AiLoginWrapper_defineProperty(_classname, common_AiLoginWrapper.header, true), AiLoginWrapper_defineProperty(_classname, common_AiLoginWrapper.hide, isSuccess), _classname));
      var centerClass = classnames_default()((_classname2 = {}, AiLoginWrapper_defineProperty(_classname2, common_AiLoginWrapper.center, true), AiLoginWrapper_defineProperty(_classname2, common_AiLoginWrapper.hide, isSuccess), _classname2));
      var footerClass = classnames_default()((_classname3 = {}, AiLoginWrapper_defineProperty(_classname3, common_AiLoginWrapper.footer, true), AiLoginWrapper_defineProperty(_classname3, common_AiLoginWrapper.hide, isSuccess), _classname3));
      var sucessClass = classnames_default()(AiLoginWrapper_defineProperty({}, common_AiLoginWrapper.success, isSuccess));
      return /*#__PURE__*/react.createElement("div", {
        className: common_AiLoginWrapper.container
      }, /*#__PURE__*/react.createElement("div", {
        className: common_AiLoginWrapper.mask
      }, /*#__PURE__*/react.createElement("div", {
        className: headerClass
      }, /*#__PURE__*/react.createElement("img", {
        src: whiteLogo[currentLang] || whiteLogo.zh_CN
      })), /*#__PURE__*/react.createElement("div", {
        className: centerClass
      }, this.props.children), /*#__PURE__*/react.createElement("div", {
        className: footerClass
      }, /*#__PURE__*/react.createElement(common_LoginType, {
        selectType: selectType,
        userSourceType: userSourceType,
        dataPipeModel: dataPipeModel
      }))), /*#__PURE__*/react.createElement("div", {
        className: sucessClass
      }));
    }
  }]);

  return AiLoginWrapper;
}(react.Component);

/* harmony default export */ var web_common_AiLoginWrapper = (AiLoginWrapper);
;// CONCATENATED MODULE: ./src/page/web/Face.jsx
/* provided dependency */ var Face_console = __webpack_require__(3716);
function Face_typeof(obj) { "@babel/helpers - typeof"; return Face_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, Face_typeof(obj); }

function Face_extends() { Face_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return Face_extends.apply(this, arguments); }

function Face_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }


















function Face_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function Face_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function Face_createClass(Constructor, protoProps, staticProps) { if (protoProps) Face_defineProperties(Constructor.prototype, protoProps); if (staticProps) Face_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }

function Face_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) Face_setPrototypeOf(subClass, superClass); }

function Face_setPrototypeOf(o, p) { Face_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return Face_setPrototypeOf(o, p); }

function Face_createSuper(Derived) { var hasNativeReflectConstruct = Face_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Face_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Face_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Face_possibleConstructorReturn(this, result); }; }

function Face_possibleConstructorReturn(self, call) { if (call && (Face_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return Face_assertThisInitialized(self); }

function Face_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function Face_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }

function Face_getPrototypeOf(o) { Face_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return Face_getPrototypeOf(o); }













var Face = /*#__PURE__*/function (_Component) {
  Face_inherits(Face, _Component);

  var _super = Face_createSuper(Face);

  function Face(props) {
    var _this;

    Face_classCallCheck(this, Face);

    _this = _super.call(this, props);
    _this.state = {
      resetTime: 60,
      loginStatus: ''
    };
    _this.videoId = '#myCamera';
    _this.token = uid(false, 32);
    _this.onAnalysis = _this.onAnalysis.bind(Face_assertThisInitialized(_this));
    _this.onAnalysisFailed = _this.onAnalysisFailed.bind(Face_assertThisInitialized(_this));
    _this.checkLoginState = _this.checkLoginState.bind(Face_assertThisInitialized(_this));
    _this.showSuccess = _this.showSuccess.bind(Face_assertThisInitialized(_this));
    _this.handleClick = _this.handleClick.bind(Face_assertThisInitialized(_this));
    return _this;
  }

  Face_createClass(Face, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      var _this2 = this;

      webcam_default().attach(this.videoId);
      webcam_default().on('live', function () {
        _this2.setState({
          loginStatus: LOGINING
        });

        _this2.onAnalysis();
      });
      webcam_default().on('error', function (error) {
        // 监听error，否则默认会有弹框
        Face_console.log(error);
      });
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      clearTimeout(this.faceAnalyseTimer);
      clearTimeout(this.loginStateTimer);
      webcam_default().reset();
    }
  }, {
    key: "onAnalysis",
    value: function onAnalysis() {
      var resetTime = this.state.resetTime - 1;

      if (resetTime <= 0) {
        this.onAnalysisFailed();
      } else {
        this.setState({
          resetTime: resetTime
        });
        this.faceDetection();
        this.faceAnalyseTimer = setTimeout(this.onAnalysis, 1000);
      }
    }
  }, {
    key: "onAnalysisFailed",
    value: function onAnalysisFailed() {
      clearTimeout(this.faceAnalyseTimer);
      clearTimeout(this.loginStateTimer);
      this.setState({
        loginStatus: FAILURE
      });
      webcam_default().reset();
    }
  }, {
    key: "faceDetection",
    value: function faceDetection() {
      var _this3 = this;

      webcam_default().snap(function (dataUri) {
        // snap方法获取快照
        service_faceDetection({
          token: _this3.token,
          img: dataUri
        }).then(function (data) {
          if (data.success) {
            _this3.checkLoginState();
          }
        });
      });
    }
  }, {
    key: "checkLoginState",
    value: function checkLoginState() {
      var _this4 = this;

      var resetTime = this.state.resetTime;
      service_checkLoginState({
        token: this.token,
        pollType: 'face'
      }).then(function (data) {
        if (data.status === 1) {
          webcam_default().reset();

          _this4.showSuccess(data);
        } else {
          if (resetTime > 0) {
            _this4.loginStateTimer = setTimeout(_this4.checkLoginState, 1000);
          }
        }
      })["catch"](function (e) {
        _this4.loginStateTimer = setTimeout(_this4.checkLoginState, 1000);
      });
    }
  }, {
    key: "showSuccess",
    value: function showSuccess(data) {
      clearTimeout(this.faceAnalyseTimer);
      clearTimeout(this.loginStateTimer);
      this.setState({
        loginStatus: SUCCESS
      });
      window.localStorage.setItem('ierp-login-username', data.username);
      var userinfo = {
        username: data.username || '',
        avatar: data.avatar || ''
      };
      var userInfoKey = getNameWithCurrentEnvrionment(LOGIN_USERINFO);
      window.localStorage.setItem(userInfoKey, JSON.stringify(userinfo));
      setTimeout(function () {
        window.location.href = data.URL; // alert('刷脸登录成功！')
      }, 1500);
    }
  }, {
    key: "handleClick",
    value: function handleClick() {
      this.setState({
        resetTime: 60,
        loginStatus: ''
      });
      webcam_default().attach(this.videoId);
    }
  }, {
    key: "render",
    value: function render() {
      var _classname, _classname2, _classname3, _classname4, _classname5, _classname6;

      var _this$state = this.state,
          resetTime = _this$state.resetTime,
          loginStatus = _this$state.loginStatus;
      var scanningLineClass = classnames_default()((_classname = {}, Face_defineProperty(_classname, web_Face.scanningLine, true), Face_defineProperty(_classname, web_Face.show, Number(loginStatus) === LOGINING), _classname));
      var failureClass = classnames_default()((_classname2 = {}, Face_defineProperty(_classname2, web_Face.failure, true), Face_defineProperty(_classname2, web_Face.show, Number(loginStatus) === FAILURE), _classname2));
      var scanningClass = classnames_default()((_classname3 = {}, Face_defineProperty(_classname3, web_Face.scanning, true), Face_defineProperty(_classname3, web_Face.show, Number(loginStatus) === LOGINING), _classname3));
      var reScanningClass = classnames_default()((_classname4 = {}, Face_defineProperty(_classname4, web_Face.reScanning, true), Face_defineProperty(_classname4, web_Face.show, Number(loginStatus) === FAILURE), _classname4));
      var pulse1Class = classnames_default()((_classname5 = {}, Face_defineProperty(_classname5, web_Face.pulse, true), Face_defineProperty(_classname5, web_Face.pulse1, true), _classname5));
      var pulse2Class = classnames_default()((_classname6 = {}, Face_defineProperty(_classname6, web_Face.pulse, true), Face_defineProperty(_classname6, web_Face.pulse2, true), _classname6));
      return /*#__PURE__*/react.createElement(web_common_AiLoginWrapper, Face_extends({
        selectType: "face",
        loginStatus: loginStatus
      }, this.props), /*#__PURE__*/react.createElement("div", {
        className: web_Face.faceContainer
      }, /*#__PURE__*/react.createElement("div", {
        className: web_Face.videoContainer
      }, /*#__PURE__*/react.createElement("div", {
        className: web_Face.video,
        id: "myCamera"
      }), /*#__PURE__*/react.createElement("div", {
        className: web_Face.videoBox
      }), /*#__PURE__*/react.createElement("div", {
        className: scanningLineClass
      }), /*#__PURE__*/react.createElement("div", {
        className: failureClass
      }, intlApi_getLangMsg('login.key017'))), /*#__PURE__*/react.createElement("div", {
        className: web_Face.scanningContainer
      }, /*#__PURE__*/react.createElement("div", {
        className: scanningClass
      }, /*#__PURE__*/react.createElement("div", {
        className: web_Face.btn
      }, /*#__PURE__*/react.createElement("div", {
        className: web_Face.btnTime
      }, resetTime), "s"), /*#__PURE__*/react.createElement("div", {
        className: web_Face.pulse
      }), /*#__PURE__*/react.createElement("div", {
        className: pulse1Class
      }), /*#__PURE__*/react.createElement("div", {
        className: pulse2Class
      })), /*#__PURE__*/react.createElement("div", {
        className: reScanningClass
      }, /*#__PURE__*/react.createElement("div", {
        className: web_Face.btn,
        onClick: this.handleClick
      }, intlApi_getLangMsg('login.key019'))))));
    }
  }]);

  return Face;
}(react.Component);

/* harmony default export */ var page_web_Face = (Face);
// EXTERNAL MODULE: ../../node_modules/siriwave/dist/siriwave.umd.js
var siriwave_umd = __webpack_require__(5241);
var siriwave_umd_default = /*#__PURE__*/__webpack_require__.n(siriwave_umd);
;// CONCATENATED MODULE: ./src/page/web/Voice.less
// extracted by mini-css-extract-plugin
/* harmony default export */ var web_Voice = ({"container":"_3BN76eQ_","content":"_3Mv-tnuF","block":"_2lQ-TRui","numView":"_3NVcwAeG","progress":"_1gZKiv8C","val":"_936Pgc5I","showProgress":"_3McRA-6z","info":"b_vglF6T","showInfo":"rbn14L7a","siriWave":"DpcEJyGd","showSiriWave":"_1rRhQcj6","hide":"_1n0oTPEc"});
;// CONCATENATED MODULE: ./src/page/web/Voice.jsx
function Voice_typeof(obj) { "@babel/helpers - typeof"; return Voice_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, Voice_typeof(obj); }

function Voice_extends() { Voice_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return Voice_extends.apply(this, arguments); }

function Voice_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }



















function Voice_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function Voice_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function Voice_createClass(Constructor, protoProps, staticProps) { if (protoProps) Voice_defineProperties(Constructor.prototype, protoProps); if (staticProps) Voice_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }

function Voice_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) Voice_setPrototypeOf(subClass, superClass); }

function Voice_setPrototypeOf(o, p) { Voice_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return Voice_setPrototypeOf(o, p); }

function Voice_createSuper(Derived) { var hasNativeReflectConstruct = Voice_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Voice_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Voice_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Voice_possibleConstructorReturn(this, result); }; }

function Voice_possibleConstructorReturn(self, call) { if (call && (Voice_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return Voice_assertThisInitialized(self); }

function Voice_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function Voice_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }

function Voice_getPrototypeOf(o) { Voice_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return Voice_getPrototypeOf(o); }












var Voice = /*#__PURE__*/function (_Component) {
  Voice_inherits(Voice, _Component);

  var _super = Voice_createSuper(Voice);

  function Voice(props) {
    var _this;

    Voice_classCallCheck(this, Voice);

    _this = _super.call(this, props);
    _this.numberLength = 6;
    _this.timeCycle = 60000;
    _this.loadTime = 0;
    _this.ref = /*#__PURE__*/react.createRef();
    _this.state = {
      token: '',
      msTime: 0,
      showNum: false,
      loginStatus: '',
      voiceStatus: false
    };
    _this.loadVoiceToken = _this.loadVoiceToken.bind(Voice_assertThisInitialized(_this));
    _this.checkLoginState = _this.checkLoginState.bind(Voice_assertThisInitialized(_this));
    _this.checkVoiceState = _this.checkVoiceState.bind(Voice_assertThisInitialized(_this));
    return _this;
  }

  Voice_createClass(Voice, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      var sw = new (siriwave_umd_default())({
        width: 600,
        height: 100,
        speed: 0.1,
        amplitude: 1,
        frequency: 10,
        container: this.ref.current,
        autostart: true,
        color: '#7f4893'
      });
      this.loadVoiceToken();
      this.checkLoginState();
      this.checkVoiceState();
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      clearTimeout(this.loadTimer);
      clearTimeout(this.loginStateTimer);
      clearTimeout(this.voiceStateTimer);
    }
  }, {
    key: "loadVoiceToken",
    value: function loadVoiceToken() {
      var _this2 = this;

      var msTime = new Date().getTime() - this.loadTime;

      if (msTime > this.timeCycle) {
        getVoiceToken().then(function (data) {
          _this2.setState({
            token: data.token,
            showNum: true
          });

          _this2.loadTime = new Date().getTime();
          _this2.loadTimer = setTimeout(_this2.loadVoiceToken, 20);
        })["catch"](function (e) {
          _this2.loadTimer = setTimeout(_this2.loadVoiceToken, 1000);
        });
      } else {
        this.setState({
          msTime: msTime
        });
        this.loadTimer = setTimeout(this.loadVoiceToken, 20);
      }
    }
  }, {
    key: "checkLoginState",
    value: function checkLoginState() {
      var _this3 = this;

      var token = this.state.token;

      if (token === '') {
        this.loginStateTimer = setTimeout(this.checkLoginState, 2000);
        return;
      }

      service_checkLoginState({
        token: token,
        pollType: 'voice'
      }).then(function (data) {
        if (data.status === 1) {
          _this3.showSuccess(data);
        } else {
          if (data.description) {
            window.alert(data.description);
          }

          _this3.loginStateTimer = setTimeout(_this3.checkLoginState, 2000);
        }
      })["catch"](function (e) {
        _this3.loginStateTimer = setTimeout(_this3.checkLoginState, 2000);
      });
    }
  }, {
    key: "checkVoiceState",
    value: function checkVoiceState() {
      var _this4 = this;

      service_checkVoiceState().then(function (data) {
        _this4.setState({
          voiceStatus: data.saying !== '0'
        });

        _this4.voiceStateTimer = setTimeout(_this4.checkVoiceState, 500);
      })["catch"](function (e) {
        _this4.voiceStateTimer = setTimeout(_this4.checkVoiceState, 500);
      });
    }
  }, {
    key: "showSuccess",
    value: function showSuccess(data) {
      this.setState({
        loginStatus: SUCCESS
      });
      window.localStorage.setItem('ierp-login-username', data.username);
      var userinfo = {
        username: data.username || '',
        avatar: data.avatar || ''
      };
      var userInfoKey = getNameWithCurrentEnvrionment(LOGIN_USERINFO);
      window.localStorage.setItem(userInfoKey, JSON.stringify(userinfo));
      setTimeout(function () {
        window.location.href = data.URL; // alert('声纹登录成功！')
      }, 1500);
    }
  }, {
    key: "renderNumber",
    value: function renderNumber() {
      var numberList = [];
      var _this$state = this.state,
          token = _this$state.token,
          showNum = _this$state.showNum;

      for (var i = 0; i < this.numberLength; i++) {
        var y = -1 * parseInt(token[i]) * 100;
        var ulStyle = {
          transform: 'translateY(' + y + 'px)',
          color: '#fff'
        };
        var blockStyle = {
          borderColor: 'rgba(60, 186, 255, 0.8)'
        };
        numberList.push( /*#__PURE__*/react.createElement("div", {
          className: web_Voice.block,
          key: i,
          style: showNum ? blockStyle : undefined
        }, /*#__PURE__*/react.createElement("ul", {
          className: web_Voice.numView,
          style: showNum ? ulStyle : undefined
        }, /*#__PURE__*/react.createElement("li", null, "0"), /*#__PURE__*/react.createElement("li", null, "1"), /*#__PURE__*/react.createElement("li", null, "2"), /*#__PURE__*/react.createElement("li", null, "3"), /*#__PURE__*/react.createElement("li", null, "4"), /*#__PURE__*/react.createElement("li", null, "5"), /*#__PURE__*/react.createElement("li", null, "6"), /*#__PURE__*/react.createElement("li", null, "7"), /*#__PURE__*/react.createElement("li", null, "8"), /*#__PURE__*/react.createElement("li", null, "9"))));
      }

      return numberList;
    }
  }, {
    key: "render",
    value: function render() {
      var _classname, _classname2, _classname3;

      var _this$state2 = this.state,
          msTime = _this$state2.msTime,
          showNum = _this$state2.showNum,
          loginStatus = _this$state2.loginStatus,
          voiceStatus = _this$state2.voiceStatus;
      var valWidth = msTime / this.timeCycle * 100 + '%';
      var progressClass = classnames_default()((_classname = {}, Voice_defineProperty(_classname, web_Voice.progress, true), Voice_defineProperty(_classname, web_Voice.showProgress, showNum), _classname));
      var infoClass = classnames_default()((_classname2 = {}, Voice_defineProperty(_classname2, web_Voice.info, true), Voice_defineProperty(_classname2, web_Voice.showInfo, showNum), _classname2));
      var siriWaveClass = classnames_default()((_classname3 = {}, Voice_defineProperty(_classname3, web_Voice.siriWave, true), Voice_defineProperty(_classname3, web_Voice.showSiriWave, voiceStatus), _classname3));
      return /*#__PURE__*/react.createElement(web_common_AiLoginWrapper, Voice_extends({
        selectType: "voice",
        loginStatus: loginStatus
      }, this.props), /*#__PURE__*/react.createElement("div", {
        className: web_Voice.container
      }, /*#__PURE__*/react.createElement("div", {
        className: web_Voice.content
      }, this.renderNumber()), /*#__PURE__*/react.createElement("div", {
        className: progressClass
      }, /*#__PURE__*/react.createElement("div", {
        className: web_Voice.val,
        style: {
          width: valWidth
        }
      })), /*#__PURE__*/react.createElement("div", {
        className: infoClass
      }, intlApi_getLangMsg('login.key021'))), /*#__PURE__*/react.createElement("div", {
        className: siriWaveClass,
        ref: this.ref
      }));
    }
  }]);

  return Voice;
}(react.Component);

/* harmony default export */ var page_web_Voice = (Voice);
;// CONCATENATED MODULE: ./src/page/web/FindPassword.less
// extracted by mini-css-extract-plugin
/* harmony default export */ var FindPassword = ({"formContainer":"_2v7dY-_P","title":"lFW3nOTb","content":"_1V8Gq5A2","graphicContainer":"_1jeIZHC8","graphicCode":"DTqYXb9t","phoneCodeContainer":"_27GbPHXb","btn":"_15N0yOV7","disable":"_1-0d6m8p","showPhoneCode":"dhLdnSFI","successPanel":"_2qiy0puH","successImage":"_18b0Esoe","text":"_23QGGNtu","count":"_3TkqJors","successSendEmailPanel":"_1QwJipif"});
// EXTERNAL MODULE: ./src/img/resetSuccess.png
var resetSuccess = __webpack_require__(2879);
var resetSuccess_default = /*#__PURE__*/__webpack_require__.n(resetSuccess);
// EXTERNAL MODULE: ./src/img/newResetSuccess.png
var newResetSuccess = __webpack_require__(3175);
var newResetSuccess_default = /*#__PURE__*/__webpack_require__.n(newResetSuccess);
;// CONCATENATED MODULE: ./src/page/web/FindPassword.jsx
function FindPassword_typeof(obj) { "@babel/helpers - typeof"; return FindPassword_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, FindPassword_typeof(obj); }

function FindPassword_slicedToArray(arr, i) { return FindPassword_arrayWithHoles(arr) || FindPassword_iterableToArrayLimit(arr, i) || FindPassword_unsupportedIterableToArray(arr, i) || FindPassword_nonIterableRest(); }

function FindPassword_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function FindPassword_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return FindPassword_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return FindPassword_arrayLikeToArray(o, minLen); }

function FindPassword_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function FindPassword_iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function FindPassword_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

function FindPassword_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function FindPassword_extends() { FindPassword_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return FindPassword_extends.apply(this, arguments); }























function FindPassword_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function FindPassword_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function FindPassword_createClass(Constructor, protoProps, staticProps) { if (protoProps) FindPassword_defineProperties(Constructor.prototype, protoProps); if (staticProps) FindPassword_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }

function FindPassword_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) FindPassword_setPrototypeOf(subClass, superClass); }

function FindPassword_setPrototypeOf(o, p) { FindPassword_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return FindPassword_setPrototypeOf(o, p); }

function FindPassword_createSuper(Derived) { var hasNativeReflectConstruct = FindPassword_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = FindPassword_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = FindPassword_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return FindPassword_possibleConstructorReturn(this, result); }; }

function FindPassword_possibleConstructorReturn(self, call) { if (call && (FindPassword_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return FindPassword_assertThisInitialized(self); }

function FindPassword_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function FindPassword_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }

function FindPassword_getPrototypeOf(o) { FindPassword_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return FindPassword_getPrototypeOf(o); }







 // import eventBus from '../../eventBus'













var FindPassword_FindPassword = /*#__PURE__*/function (_Component) {
  FindPassword_inherits(FindPassword, _Component);

  var _super = FindPassword_createSuper(FindPassword);

  function FindPassword(props) {
    var _this;

    FindPassword_classCallCheck(this, FindPassword);

    _this = _super.call(this, props);
    _this.state = {
      showModifyPanel: false,
      showSuccessPanel: false,
      showSuccessSendEmailPanel: false
    };
    _this.showModifyPanel = _this.showModifyPanel.bind(FindPassword_assertThisInitialized(_this));
    _this.showSuccessPanel = _this.showSuccessPanel.bind(FindPassword_assertThisInitialized(_this));
    _this.showSuccessSendEmailPanel = _this.showSuccessSendEmailPanel.bind(FindPassword_assertThisInitialized(_this));
    _this.isShowModifyPanel = _this.isShowModifyPanel.bind(FindPassword_assertThisInitialized(_this));
    return _this;
  }

  FindPassword_createClass(FindPassword, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      var _this2 = this;

      setTimeout(function () {
        // eventBus.pub_focusInput({ name: 'account' })
        _this2.props.dataPipeModel && _this2.props.dataPipeModel.sendData({
          type: 'FocusInput',
          name: 'account'
        });
      }, 0);
      this.isShowModifyPanel();
    }
  }, {
    key: "isShowModifyPanel",
    value: function isShowModifyPanel() {
      var userKey = getQueryString('userKey');
      this.setState({
        showModifyPanel: userKey !== null
      });
    }
  }, {
    key: "showModifyPanel",
    value: function showModifyPanel() {
      this.setState({
        showModifyPanel: true
      });
    }
  }, {
    key: "showSuccessPanel",
    value: function showSuccessPanel() {
      this.setState({
        showModifyPanel: false,
        showSuccessPanel: true
      });
    }
  }, {
    key: "showSuccessSendEmailPanel",
    value: function showSuccessSendEmailPanel() {
      this.setState({
        showSuccessSendEmailPanel: true
      });
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      resetStore(src_store);
      src_store.setValue('modifyPanel', '');
      src_store.setValue('newResetPws', '');
    }
  }, {
    key: "render",
    value: function render() {
      var _this$state = this.state,
          showModifyPanel = _this$state.showModifyPanel,
          showSuccessPanel = _this$state.showSuccessPanel,
          showSuccessSendEmailPanel = _this$state.showSuccessSendEmailPanel;
      var renderPanel;

      if (src_store.modifyPanel) {
        renderPanel = /*#__PURE__*/react.createElement(ModifyPanel, {
          showSuccessPanel: this.showSuccessPanel,
          dataPipeModel: this.props.dataPipeModel
        });
      } else if (showModifyPanel) {
        renderPanel = /*#__PURE__*/react.createElement(ModifyPanel, {
          showSuccessPanel: this.showSuccessPanel,
          dataPipeModel: this.props.dataPipeModel
        });
      } else if (showSuccessPanel) {
        renderPanel = /*#__PURE__*/react.createElement(SuccessPanel, {
          dataPipeModel: this.props.dataPipeModel
        });
      } else if (showSuccessSendEmailPanel) {
        renderPanel = /*#__PURE__*/react.createElement(SuccessSendEmailPanel, {
          dataPipeModel: this.props.dataPipeModel
        });
      } else {
        renderPanel = /*#__PURE__*/react.createElement(CheckPhonePanel, {
          showModifyPanel: this.showModifyPanel,
          showSuccessSendEmailPanel: this.showSuccessSendEmailPanel,
          dataPipeModel: this.props.dataPipeModel
        });
      }

      return /*#__PURE__*/react.createElement(common_LoginWrapper, FindPassword_extends({
        selectType: "findPassword"
      }, this.props), renderPanel);
    }
  }]);

  return FindPassword;
}(react.Component);

var CheckPhonePanel = /*#__PURE__*/function (_Component2) {
  FindPassword_inherits(CheckPhonePanel, _Component2);

  var _super2 = FindPassword_createSuper(CheckPhonePanel);

  function CheckPhonePanel(props) {
    var _this3;

    FindPassword_classCallCheck(this, CheckPhonePanel);

    _this3 = _super2.call(this, props);
    _this3._isMounted = false;
    _this3.state = {
      verifyCodeImg: (loading_default()),
      showPhoneCode: false,
      vCodeTime: 0
    };
    _this3.oldAccount = src_store.account;
    _this3.getVerifyCode = _this3.getVerifyCode.bind(FindPassword_assertThisInitialized(_this3));
    _this3.handleNextBtnClick = _this3.handleNextBtnClick.bind(FindPassword_assertThisInitialized(_this3));
    _this3.verifyPhone = _this3.verifyPhone.bind(FindPassword_assertThisInitialized(_this3));
    _this3.handleReSendPhoneCode = _this3.handleReSendPhoneCode.bind(FindPassword_assertThisInitialized(_this3));
    _this3.validateFormData = _this3.validateFormData.bind(FindPassword_assertThisInitialized(_this3));
    _this3.resetPhoneCodeState = _this3.resetPhoneCodeState.bind(FindPassword_assertThisInitialized(_this3));
    _this3.handleEnterKeyDown = _this3.handleEnterKeyDown.bind(FindPassword_assertThisInitialized(_this3));
    _this3.handleAccountInputBlur = _this3.handleAccountInputBlur.bind(FindPassword_assertThisInitialized(_this3));
    _this3.isInitAccount = validateEmail(src_store.account) || isPhoneNumber(src_store.account) || isAdministrator(src_store.account);
    _this3.loadingStyle = {
      height: '30px',
      width: '30px',
      borderLeftColor: '#FFFFFF'
    };
    _this3.state = {
      isLoading: false
    };
    return _this3;
  }

  FindPassword_createClass(CheckPhonePanel, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this._isMounted = true;
      this.getVerifyCode();
      document.addEventListener('keydown', this.handleEnterKeyDown);

      if (!this.isInitAccount) {
        src_store.setValue('account', '');
      }

      resetStore(src_store);
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      this._isMounted = false;
      clearInterval(this.vCodeTimer);
      document.removeEventListener('keydown', this.handleEnterKeyDown);
    }
  }, {
    key: "handleEnterKeyDown",
    value: function handleEnterKeyDown(e) {
      if (e.keyCode === 13) {
        this.handleNextBtnClick();
      }
    }
  }, {
    key: "getVerifyCode",
    value: function getVerifyCode() {
      var _this4 = this;

      this.setState({
        verifyCode: (loading_default())
      }); // eventBus.pub_focusInput({ name: 'verifyCode' })

      this.props.dataPipeModel && this.props.dataPipeModel.sendData({
        type: 'FocusInput',
        name: 'verifyCode'
      });
      getVerifyCodeByPhone({
        phone: src_store.account,
        language: src_store.lang,
        v: uid(false, 8)
      }).then(function (data) {
        if (!_this4._isMounted) return;

        _this4.setState({
          verifyCodeImg: data.content || (loading_default())
        });

        _this4.verifyCodeToken = data.vCode;
        src_store.setValue('randomCode', data.vCode);
      });
    }
  }, {
    key: "validateFormData",
    value: function validateFormData() {
      var account = src_store.account,
          verifyCode = src_store.verifyCode,
          phoneCode = src_store.phoneCode;

      if (util_validate.isEmpty(account)) {
        var title = 'accountError';
        var data = intlApi_getLangMsg('login.key051'); // eventBus.pub('login', title, data)

        this.props.dataPipeModel && this.props.dataPipeModel.sendData({
          type: title,
          data: data
        });
        return false;
      } else if (util_validate.isEmpty(verifyCode)) {
        var _title = 'verifyCodeError';

        var _data = intlApi_getLangMsg('login.key046'); // eventBus.pub('login', title, data)


        this.props.dataPipeModel && this.props.dataPipeModel.sendData({
          type: _title,
          data: _data
        });
        return false;
      } else if (this.state.showPhoneCode && util_validate.isEmpty(phoneCode)) {
        var _title2 = 'phoneCodeError';

        var _data2 = intlApi_getLangMsg('login.key047'); // eventBus.pub('login', title, data)


        this.props.dataPipeModel && this.props.dataPipeModel.sendData({
          type: _title2,
          data: _data2
        });
        return false;
      }

      return true;
    }
  }, {
    key: "handleNextBtnClick",
    value: function handleNextBtnClick() {
      if (!this.validateFormData()) return false;
      this.setState({
        isLoading: true
      });
      var showPhoneCode = this.state.showPhoneCode;

      if (!showPhoneCode) {
        this.verifyGraphicCode();
      } else {
        this.verifyPhoneCode();
      }
    }
  }, {
    key: "verifyGraphicCode",
    value: function verifyGraphicCode() {
      var _this5 = this;

      service_verifyGraphicCode({
        phone: src_store.account,
        vCode: src_store.verifyCode,
        token: this.verifyCodeToken,
        language: src_store.lang
      }).then(function (data) {
        if (data.success === false) {
          var error = {
            message: data.msg,
            level: data.level || 1
          }; //  eventBus.pub_showNotification(error)

          _this5.props.dataPipeModel && _this5.props.dataPipeModel.sendData({
            type: 'ShowNotification',
            error: error
          }); // eventBus.pub_focusInput({ name: 'verifyCode', emptyValue: true })

          _this5.props.dataPipeModel && _this5.props.dataPipeModel.sendData({
            type: 'FocusInput',
            name: 'verifyCode',
            emptyValue: true
          });
          src_store.setValue('verifyCode', '');

          _this5.getVerifyCode();

          _this5.setState({
            isLoading: false
          });

          return false;
        }

        validateEmail(src_store.account) ? _this5.verifyEmail() : _this5.verifyPhone();
      });
    }
  }, {
    key: "verifyEmail",
    value: function verifyEmail() {
      var _this6 = this;

      service_verifyEmail({
        email: src_store.account,
        accountId: src_store.accountId,
        vCode: this.verifyCodeToken,
        language: src_store.lang
      }).then(function (data) {
        _this6.setState({
          isLoading: false
        });

        if (!data.success) {
          var error = data.customMsg ? {
            message: intlApi_getLangMsg('login.key106'),
            level: 2
          } : {
            message: data.msg,
            level: data.level || 1
          };
          _this6.props.dataPipeModel && _this6.props.dataPipeModel.sendData({
            type: 'ShowNotification',
            error: error
          });
        } else {
          _this6.props.showSuccessSendEmailPanel();
        }
      });
    }
  }, {
    key: "verifyPhone",
    value: function verifyPhone() {
      var _this7 = this;

      service_verifyPhone({
        phone: src_store.account,
        accountId: src_store.accountId,
        vCode: this.verifyCodeToken,
        language: src_store.lang
      }).then(function (data) {
        _this7.setState({
          isLoading: false
        });

        if (!data.success) {
          var error = data.customMsg ? {
            message: intlApi_getLangMsg('login.key106'),
            level: 2
          } : {
            message: data.msg,
            level: data.level || 1
          };
          _this7.props.dataPipeModel && _this7.props.dataPipeModel.sendData({
            type: 'ShowNotification',
            error: error
          });

          _this7.resetPhoneCodeState();
        } else {
          if (data.hasSent) {
            var _error = {
              message: data.msg,
              level: 1
            }; //  eventBus.pub_showNotification(error)

            _this7.props.dataPipeModel && _this7.props.dataPipeModel.sendData({
              type: 'ShowNotification',
              error: _error
            });
          } else {
            var vCodeTime = data.vCodeTime / 1000 || 60;

            _this7.setState({
              vCodeTime: vCodeTime,
              showPhoneCode: true
            });

            _this7.vCodeTimer = setInterval(function () {
              if (vCodeTime <= 0) {
                clearInterval(_this7.vCodeTimer);
              } else {
                _this7.setState({
                  vCodeTime: --vCodeTime
                });
              }
            }, 1000); // eventBus.pub_focusInput({ name: 'phoneCode' })

            _this7.props.dataPipeModel && _this7.props.dataPipeModel.sendData({
              type: 'FocusInput',
              name: 'phoneCode'
            });
          }
        }
      });
    }
  }, {
    key: "handleReSendPhoneCode",
    value: function handleReSendPhoneCode() {
      var vCodeTime = this.state.vCodeTime;
      if (vCodeTime !== 0) return false;
      this.verifyGraphicCode();
    }
  }, {
    key: "verifyPhoneCode",
    value: function verifyPhoneCode() {
      var _this8 = this;

      service_verifyPhoneCode({
        accountId: src_store.accountId,
        phone: src_store.account,
        code: src_store.phoneCode,
        language: src_store.lang
      }).then(function (data) {
        _this8.setState({
          isLoading: false
        });

        if (!data.success) {
          var error = {
            message: data.msg,
            level: data.level || 1
          };
          _this8.props.dataPipeModel && _this8.props.dataPipeModel.sendData({
            type: 'ShowNotification',
            error: error
          });
          src_store.setValue('phoneCode', '');
          _this8.props.dataPipeModel && _this8.props.dataPipeModel.sendData({
            type: 'FocusInput',
            name: 'phoneCode',
            emptyValue: true
          });

          if (data.refreshCode) {
            _this8.resetPhoneCodeState();
          }
        } else {
          src_store.setValue('randomCode', data.randomCode);

          _this8.props.showModifyPanel();
        }
      });
    }
  }, {
    key: "resetPhoneCodeState",
    value: function resetPhoneCodeState() {
      clearInterval(this.vCodeTimer);
      this.setState({
        vCodeTime: 0
      });
    }
  }, {
    key: "handleAccountInputBlur",
    value: function handleAccountInputBlur() {
      var account = src_store.account;

      if (account !== this.oldAccount) {
        this.oldAccount = account; // eventBus.pub_focusInput({ name: 'verifyCode', emptyValue: true })

        this.props.dataPipeModel && this.props.dataPipeModel.sendData({
          type: 'FocusInput',
          name: 'verifyCode',
          emptyValue: true
        });
        this.getVerifyCode();
        this.resetPhoneCodeState();
        this.setState({
          showPhoneCode: false
        });
      }
    }
  }, {
    key: "render",
    value: function render() {
      var _classname, _classname2;

      var _this$state2 = this.state,
          vCodeTime = _this$state2.vCodeTime,
          showPhoneCode = _this$state2.showPhoneCode;
      var hyperLinkStyle = {
        fontSize: '14px'
      };
      var notificationStyle = {
        margin: '0px'
      };
      var phoneCodeClass = classnames_default()((_classname = {}, FindPassword_defineProperty(_classname, FindPassword.phoneCodeContainer, true), FindPassword_defineProperty(_classname, FindPassword.showPhoneCode, showPhoneCode), _classname));
      var btnClass = classnames_default()((_classname2 = {}, FindPassword_defineProperty(_classname2, FindPassword.btn, true), FindPassword_defineProperty(_classname2, FindPassword.disable, vCodeTime !== 0), _classname2));
      var reSendtext = intlApi_getLangMsg('login.key036');
      var btnText = vCodeTime === 0 ? reSendtext : "".concat(reSendtext, "(").concat(vCodeTime, "s)");
      return /*#__PURE__*/react.createElement("div", {
        className: FindPassword.formContainer
      }, /*#__PURE__*/react.createElement("div", {
        className: FindPassword.title
      }, showPhoneCode ? intlApi_getLangMsg('login.key022') : intlApi_getLangMsg('login.key057')), /*#__PURE__*/react.createElement(web_base_Notification, {
        style: notificationStyle,
        dataPipeModel: this.props.dataPipeModel
      }), /*#__PURE__*/react.createElement("div", {
        className: FindPassword.content
      }, /*#__PURE__*/react.createElement(StoreContext.Provider, {
        value: src_store
      }, /*#__PURE__*/react.createElement(Input2, {
        dataPipeModel: this.props.dataPipeModel,
        name: "account",
        type: "text",
        placeholder: intlApi_getLangMsg('login.key058'),
        defaultValue: this.isInitAccount ? src_store.account : '',
        onBlur: this.handleAccountInputBlur
      }), /*#__PURE__*/react.createElement("div", {
        className: FindPassword.graphicContainer
      }, /*#__PURE__*/react.createElement(Input2, {
        dataPipeModel: this.props.dataPipeModel,
        name: "verifyCode",
        type: "text",
        placeholder: intlApi_getLangMsg('login.key024')
      }), /*#__PURE__*/react.createElement("div", {
        className: FindPassword.graphicCode,
        onClick: this.getVerifyCode
      }, /*#__PURE__*/react.createElement("img", {
        src: this.state.verifyCodeImg
      }))), /*#__PURE__*/react.createElement("div", {
        className: phoneCodeClass
      }, /*#__PURE__*/react.createElement(Input2, {
        dataPipeModel: this.props.dataPipeModel,
        name: "phoneCode",
        type: "text",
        placeholder: intlApi_getLangMsg('login.key025')
      }), /*#__PURE__*/react.createElement("div", {
        className: btnClass,
        onClick: this.handleReSendPhoneCode
      }, btnText)), /*#__PURE__*/react.createElement(base_Button, {
        text: intlApi_getLangMsg('login.key027'),
        dataPipeModel: this.props.dataPipeModel,
        onClick: debounce(this.handleNextBtnClick, 200),
        style: this.loadingStyle,
        isLoading: this.state.isLoading
      }), /*#__PURE__*/react.createElement(base_HyperLink, {
        text: "<".concat(intlApi_getLangMsg('login.key028')),
        dataPipeModel: this.props.dataPipeModel,
        style: hyperLinkStyle,
        href: "#kingdeeCloud"
      }))));
    }
  }]);

  return CheckPhonePanel;
}(react.Component);
var ModifyPanel = /*#__PURE__*/function (_Component3) {
  FindPassword_inherits(ModifyPanel, _Component3);

  var _super3 = FindPassword_createSuper(ModifyPanel);

  function ModifyPanel(props) {
    var _this9;

    FindPassword_classCallCheck(this, ModifyPanel);

    _this9 = _super3.call(this, props);
    _this9.handleClick = _this9.handleClick.bind(FindPassword_assertThisInitialized(_this9));
    _this9.validateFormData = _this9.validateFormData.bind(FindPassword_assertThisInitialized(_this9));
    _this9.getPublicKey = _this9.getPublicKey.bind(FindPassword_assertThisInitialized(_this9));
    _this9.resetPassword = _this9.resetPassword.bind(FindPassword_assertThisInitialized(_this9));
    _this9.handleEnterKeyDown = _this9.handleEnterKeyDown.bind(FindPassword_assertThisInitialized(_this9));
    _this9.valueChange = _this9.valueChange.bind(FindPassword_assertThisInitialized(_this9));
    return _this9;
  }

  FindPassword_createClass(ModifyPanel, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      src_store.setValue('newPassword', '');
      src_store.setValue('confirmPassword', ''); // eventBus.pub_focusInput({ name: 'newPassword' })

      this.props.dataPipeModel && this.props.dataPipeModel.sendData({
        type: 'FocusInput',
        name: 'newPassword'
      });
      document.addEventListener('keydown', this.handleEnterKeyDown);
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      document.removeEventListener('keydown', this.handleEnterKeyDown);
    }
  }, {
    key: "handleEnterKeyDown",
    value: function handleEnterKeyDown(e) {
      if (e.keyCode === 13) {
        this.handleClick();
      }
    }
  }, {
    key: "handleClick",
    value: function handleClick() {
      if (!this.validateFormData()) return false;
      this.getPublicKey(this.resetPassword);
    }
  }, {
    key: "validateFormData",
    value: function validateFormData() {
      // 验证密码不为空。两次密码相同。长度不超过20
      var newPassword = src_store.newPassword,
          confirmPassword = src_store.confirmPassword;

      if (util_validate.isEmpty(newPassword)) {
        var title = 'newPasswordError';
        var data = intlApi_getLangMsg('login.key048'); // eventBus.pub('login', title, data)

        this.props.dataPipeModel && this.props.dataPipeModel.sendData({
          type: title,
          data: data
        });
        return false;
      } else if (util_validate.isEmpty(confirmPassword)) {
        var _title3 = 'confirmPasswordError';

        var _data3 = intlApi_getLangMsg('login.key056'); // eventBus.pub('login', title, data)


        this.props.dataPipeModel && this.props.dataPipeModel.sendData({
          type: _title3,
          data: _data3
        });
        return false;
      } else if (util_validate.checkLength(newPassword, 0, 20) === 1) {
        var _title4 = 'newPasswordError';

        var _data4 = intlApi_getLangMsg('login.key049'); // eventBus.pub('login', title, data)


        this.props.dataPipeModel && this.props.dataPipeModel.sendData({
          type: _title4,
          data: _data4
        });
        return false;
      } else if (!util_validate.isEqual(newPassword, confirmPassword)) {
        var _title5 = 'confirmPasswordError';

        var _data5 = intlApi_getLangMsg('login.key045'); // eventBus.pub('login', title, data)


        this.props.dataPipeModel && this.props.dataPipeModel.sendData({
          type: _title5,
          data: _data5
        });
        return false;
      }

      return true;
    }
  }, {
    key: "getPublicKey",
    value: function getPublicKey(callback) {
      var _this10 = this;

      // let userKey = getQueryString('userKey')
      // let pre = userKey ? userKey.slice(0, 11) : store.account
      // let accessKey = pre + getUid(false, 16 - pre.length)
      var accessKey = getQueryString('userKey') || src_store.account + uid(false, 16 - src_store.account.length);
      service_getPublicKey({
        // accessKey: '123456'
        accessKey: accessKey,
        language: src_store.lang,
        accountId: src_store.accountId
      }).then(function (data) {
        if (data.success !== true) {
          var error = {
            message: data.errorMessage,
            level: data.level || 1
          }; //  eventBus.pub_showNotification(error)

          _this10.props.dataPipeModel && _this10.props.dataPipeModel.sendData({
            type: 'ShowNotification',
            error: error
          });
          return false;
        }

        callback({
          publicKey: data.publicKey,
          accessKey: accessKey
        });
      });
    }
  }, {
    key: "resetPassword",
    value: function resetPassword(data) {
      var _this11 = this;

      var accountId = src_store.accountId,
          account = src_store.account,
          newPassword = src_store.newPassword,
          lang = src_store.lang;
      var showSuccessPanel = this.props.showSuccessPanel;
      var encrypt = new lib/* default */.Z();
      encrypt.setPublicKey(data.publicKey);
      var encryptedPassword = encrypt.encrypt(newPassword);
      var formData = {
        accountId: accountId,
        accessKey: data.accessKey,
        password: encryptedPassword,
        language: lang,
        randomCode: src_store.randomCode
      };
      src_store.modifyPanel && Object.assign(formData, {
        passwordWarning: true
      });
      var userKey = getQueryString('userKey');

      if (userKey !== null) {
        // 通过邮箱的方式找回密码，在地址栏会有一个userKey参数
        formData.type = 'email';
        formData.userKey = userKey;
        var currentLangKey = getNameWithCurrentEnvrionment(CURRENT_LANG);
        var currentLocale = window.localStorage.getItem(currentLangKey) || 'zh_CN';
        formData.language = currentLocale;
      } else {
        formData.phone = account;
      }

      service_resetPassword(formData).then(function (data) {
        if (!data.success) {
          var error = {
            message: data.msg || data.error,
            level: data.level || 1
          }; //  eventBus.pub_showNotification(error)

          setTimeout(function () {
            _this11.props.dataPipeModel && _this11.props.dataPipeModel.sendData({
              type: 'ShowNotification',
              error: error
            });
          }, 0);

          if (src_store.newResetPws) {
            if (data.overtime) {
              window.location.hash = 'kingdeeCloud';
            }
          } else if (data.overtime) {
            setTimeout(function () {
              window.location.reload(); // 两秒之后刷新页面
            }, 2000);
          }
        } else {
          src_store.setValue('modifyPanel', '');
          showSuccessPanel();
          setTimeout(function () {
            window.location.hash = 'kingdeeCloud';
          }, 3000);
        }
      });
    }
  }, {
    key: "valueChange",
    value: function valueChange(name) {
      var title = 'confirmPasswordError';
      this.props.dataPipeModel && this.props.dataPipeModel.sendData({
        type: title,
        data: '',
        name: name
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this12 = this;

      var hyperLinkStyle = {
        fontSize: '14px'
      };
      return /*#__PURE__*/react.createElement("div", {
        className: FindPassword.formContainer
      }, /*#__PURE__*/react.createElement("div", {
        className: FindPassword.title
      }, intlApi_getLangMsg('login.key029')), /*#__PURE__*/react.createElement(web_base_Notification, {
        dataPipeModel: this.props.dataPipeModel
      }), /*#__PURE__*/react.createElement("div", {
        className: FindPassword.content
      }, /*#__PURE__*/react.createElement(StoreContext.Provider, {
        value: src_store
      }, /*#__PURE__*/react.createElement(Input2, {
        dataPipeModel: this.props.dataPipeModel,
        name: "newPassword",
        type: "password",
        placeholder: intlApi_getLangMsg('login.key030'),
        valueChange: function valueChange() {
          _this12.valueChange('newPassword');
        }
      }), /*#__PURE__*/react.createElement(Input2, {
        dataPipeModel: this.props.dataPipeModel,
        name: "confirmPassword",
        type: "password",
        placeholder: intlApi_getLangMsg('login.key031'),
        valueChange: function valueChange() {
          _this12.valueChange('confirmPassword');
        }
      }), /*#__PURE__*/react.createElement(base_Button, {
        text: intlApi_getLangMsg('login.key032'),
        onClick: debounce(this.handleClick, 200)
      }), /*#__PURE__*/react.createElement(base_HyperLink, {
        text: "<".concat(intlApi_getLangMsg('login.key028')),
        style: hyperLinkStyle,
        href: "#"
      }))));
    }
  }]);

  return ModifyPanel;
}(react.Component);
function SuccessPanel(props) {
  var _useState = (0,react.useState)(3),
      _useState2 = FindPassword_slicedToArray(_useState, 2),
      second = _useState2[0],
      setSecond = _useState2[1];

  var timer = null;
  timer = setInterval(function () {
    if (second === 1) {
      clearInterval(timer);
    }

    setSecond(second - 1);
  }, 1000);
  return /*#__PURE__*/react.createElement("div", {
    className: FindPassword.successPanel
  }, /*#__PURE__*/react.createElement("img", {
    src: (newResetSuccess_default()),
    className: FindPassword.successImage
  }), /*#__PURE__*/react.createElement("div", {
    className: FindPassword.text
  }, intlApi_getLangMsg('login.key033')), /*#__PURE__*/react.createElement("div", {
    className: FindPassword.count
  }, " ", second, intlApi_getLangMsg('login.key096')));
}
function SuccessSendEmailPanel(props) {
  return /*#__PURE__*/react.createElement("div", {
    className: FindPassword.successSendEmailPanel
  }, /*#__PURE__*/react.createElement("img", {
    src: (resetSuccess_default())
  }), /*#__PURE__*/react.createElement("div", null, intlApi_getLangMsg('login.key059')), /*#__PURE__*/react.createElement("div", null, intlApi_getLangMsg('login.key060')), /*#__PURE__*/react.createElement("div", {
    style: {
      width: '100%',
      height: 123
    }
  }), /*#__PURE__*/react.createElement(base_Button, {
    text: intlApi_getLangMsg('login.key028'),
    onClick: function onClick() {
      return window.location.hash = 'kingdeeCloud';
    }
  }));
}
/* harmony default export */ var web_FindPassword = (FindPassword_FindPassword);
;// CONCATENATED MODULE: ./src/page/web/ActiveUser.less
// extracted by mini-css-extract-plugin
/* harmony default export */ var web_ActiveUser = ({"formContainer":"_2h6zViiI","privacy":"_9N-vUMbn","checkbox":"MK3QIGQf","title":"_3yLpDzOy","content":"_3hwCDNmc","graphicContainer":"_3t6iv6b1","graphicCode":"_1FjaVsI_","phoneCodeContainer":"_2htxtujr","btn":"_2_WppiYY","disable":"xGi_5JDA","showPhoneCode":"_2gdp7a3w","successPanel":"WxP0z_fo","dialogContent":"_1Mw6wKx3","icon":"_1okIUy7T","msg":"_289tzcZ_"});
;// CONCATENATED MODULE: ./src/page/common/dialogElement.less
// extracted by mini-css-extract-plugin
/* harmony default export */ var dialogElement = ({"dialogContainer":"BpbTkoFv","dialogContent":"XkaC2Waf","header":"_1dhE2KWa","center":"_2VQ6O21q","centerContent":"_3xcc0GWr","bottom":"_6QzNJqMs","btn":"_2xucp-Aw","ok":"_3Y77HVmF","closeIcon":"_34Xzuopf","formatItemsContainer":"_2a91kc2C","uploadFileContainer":"_2Gbe-69j","insertRowsContainer":"P6BSnlUz","listBoxContainer":"BF38LEYc","boxItem":"_3M237LL5","displayBox":"_1hvO22UN","title":"_27Fkc3yY","content":"YWC3QlyO","item":"_3hp2oYU9","itemTitle":"_2SkpGkwD","itemSelect":"_2FnCUj2V","itemCheck":"_2GgicvSf","textItem":"_3RmrtEyn","itemTextArea":"_1PAVo3Cf","radioContainer":"_3N3wvej3","checkboxContainerClass":"_10CStoAV","findWithoutMessage":"V2lnO5N9","checkformulaContainer":"_3bWuzvVg"});
;// CONCATENATED MODULE: ./src/page/common/elementFromPoint.js
/*
	获取当前位置的顶级父元素，不存在返回空,	兼容各种浏览器api
  x:clientX
  y:clientY
*/
function elementFromPoint(x, y) {
  if (!isRelativeToViewport()) {
    x += window.pageXOffset;
    y += window.pageYOffset;
  }

  return document.elementFromPoint(x, y);
}
var relativeToViewport; // x,y坐标是否基于viewport

function isRelativeToViewport() {
  if (relativeToViewport != null) {
    return relativeToViewport;
  }

  var x = window.pageXOffset ? window.pageXOffset + window.innerWidth - 1 : 0;
  var y = window.pageYOffset ? window.pageYOffset + window.innerHeight - 1 : 0;
  if (x === 0 && y === 0) return true;
  return relativeToViewport = !document.elementFromPoint(x, y);
} // 判断元素的父子关系


function isParentElement(parentEle, childEle) {
  var c = childEle;

  while (c.parentNode) {
    c = c.parentNode;

    if (c === parentEle) {
      return true;
    }
  }

  return false;
}
;// CONCATENATED MODULE: ./src/page/common/useDialogDrag.js



/**
 dialogWidth:对话框的宽度
 */

function useDrag(_ref) {
  var dialogWidth = _ref.dialogWidth,
      onDrop = _ref.onDrop,
      onDragStart = _ref.onDragStart;
  var eleRef = (0,react.useRef)(null);
  var dialogRef = (0,react.useRef)(null); // 窗口大小可能发生变化，width不是固定值，需要根据ref重新获取窗口大小

  var setDialogRef = function setDialogRef(ele) {
    if (ele) {
      dialogRef.current = ele;
    }
  };

  var mousedownHandler = (0,react.useCallback)(function (event) {
    var ele = eleRef.current;

    if (!ele) {
      return;
    }

    var dialogEle = ele.parentElement;

    if (event.button !== 0) {
      return;
    }

    ele.style.zIndex = 1;
    ele.style.pointerEvents = 'auto';
    var target = elementFromPoint(event.clientX, event.clientY);

    if (target === ele) {
      onDragStart && onDragStart();
      ele.dataset.draging = 'true'; // ele.style.zIndex = -1
      // ele.style.pointerEvents = 'none'

      ele.dataset.startX = event.clientX;
      ele.dataset.startY = event.clientY;
      var dialogEleStyle = dialogEle.style;
      var originLeft = dialogEle.offsetLeft;
      var originTop = dialogEle.offsetTop;
      ele.dataset.originLeft = originLeft;
      ele.dataset.originTop = originTop;
      dialogEleStyle.position = 'absolute';
      dialogEleStyle.left = originLeft + 'px';
      dialogEleStyle.top = originTop + 'px';
      dialogEleStyle.cursor = 'move';
    } else {// ele.style.zIndex = -1
    }
  }, []);
  var mousemoveHandler = (0,react.useCallback)(function (event) {
    var ele = eleRef.current;
    var dialogEle = ele.parentElement;

    if (ele.dataset.draging === 'true') {
      ele.style.zIndex = 1;
      var moveX = event.clientX - ele.dataset.startX;
      var moveY = event.clientY - ele.dataset.startY;
      var left = ele.dataset.originLeft;
      var top = ele.dataset.originTop;
      left = left === '' ? 0 : parseInt(left);
      top = top === '' ? 0 : parseInt(top);
      var offsetX = left + moveX;
      var offsetY = top + moveY;

      if (dialogRef && dialogRef.current && dialogRef.current.offsetWidth) {
        dialogWidth = dialogRef.current.offsetWidth;
      }

      if (offsetX < 0) {
        if (dialogWidth > 0) {
          if (offsetX < -dialogWidth + 40) {
            offsetX = -dialogWidth + 40;
          }
        } else {
          offsetX = 0;
        }
      } else if (offsetX > dialogEle.parentElement.clientWidth - 20) {
        offsetX = dialogEle.parentElement.clientWidth - 20;
      }

      if (offsetY < 0) {
        offsetY = 0;
      } else if (offsetY > dialogEle.parentElement.clientHeight - 20) {
        offsetY = dialogEle.parentElement.clientHeight - 20;
      }

      var dialogEleStyle = dialogEle.style;
      dialogEleStyle.left = offsetX + 'px';
      dialogEleStyle.top = offsetY + 'px';
    }
  }, []);
  var mouseupHandler = (0,react.useCallback)(function (event) {
    var ele = eleRef.current;
    var dialogEle = ele.parentElement;

    if (ele.dataset.draging === 'true') {
      dialogEle.style.cursor = 'default';
      ele.dataset.draging = false;
      onDrop && onDrop(); // ele.style.zIndex = -1
    }
  }, []);

  var setDragRef = function setDragRef(ele) {
    if (ele) {
      eleRef.current = ele;
      eleRef.current.parentElement.addEventListener('mousedown', mousedownHandler, true);
      document.addEventListener('mousemove', mousemoveHandler, true);
      document.addEventListener('mouseup', mouseupHandler, true);
    } else {
      eleRef.current.parentElement.removeEventListener('mousedown', mousedownHandler, true);
      document.removeEventListener('mousemove', mousemoveHandler, true);
      document.removeEventListener('mouseup', mouseupHandler, true);
    }
  };

  return [setDragRef, setDialogRef];
}
;// CONCATENATED MODULE: ./src/page/common/Dialog.js














function Dialog_slicedToArray(arr, i) { return Dialog_arrayWithHoles(arr) || Dialog_iterableToArrayLimit(arr, i) || Dialog_unsupportedIterableToArray(arr, i) || Dialog_nonIterableRest(); }

function Dialog_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function Dialog_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return Dialog_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Dialog_arrayLikeToArray(o, minLen); }

function Dialog_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function Dialog_iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function Dialog_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

function Dialog_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }







function Dialog(props) {
  var _classnames;

  var okClass = classnames_default()((_classnames = {}, Dialog_defineProperty(_classnames, dialogElement.btn, true), Dialog_defineProperty(_classnames, dialogElement.ok, true), _classnames));
  var headerClass = classnames_default()(Dialog_defineProperty({}, dialogElement.header, true));
  var closeIcon = classnames_default()(Dialog_defineProperty({}, dialogElement.closeIcon, true));

  var _useDrag = useDrag({
    dialogWidth: 460
  }),
      _useDrag2 = Dialog_slicedToArray(_useDrag, 1),
      setDragRef = _useDrag2[0];

  return /*#__PURE__*/react_dom.createPortal( /*#__PURE__*/react.createElement("div", {
    className: dialogElement.dialogContainer,
    style: props.style
  }, /*#__PURE__*/react.createElement("div", {
    className: dialogElement.dialogContent,
    style: props.dialogContentStyle
  }, /*#__PURE__*/react.createElement("div", {
    className: headerClass,
    ref: setDragRef
  }, /*#__PURE__*/react.createElement("span", null, props.title), /*#__PURE__*/react.createElement("div", {
    className: closeIcon,
    onClick: props.closeClick
  })), /*#__PURE__*/react.createElement("div", {
    className: dialogElement.center
  }, props.children), /*#__PURE__*/react.createElement("div", {
    className: dialogElement.bottom
  }, /*#__PURE__*/react.createElement("span", {
    className: dialogElement.btn,
    onClick: props.closeClick
  }, props.leftBtn || intlApi_getLangMsg('msg.cancel')), /*#__PURE__*/react.createElement("span", {
    className: okClass,
    onClick: props.confirmClick
  }, props.rightBtn || intlApi_getLangMsg('msg.submit'))))), document.body);
}
// EXTERNAL MODULE: ./src/img/error1.png
var error1 = __webpack_require__(2609);
var error1_default = /*#__PURE__*/__webpack_require__.n(error1);
;// CONCATENATED MODULE: ./src/page/web/ActiveUser.jsx
function ActiveUser_typeof(obj) { "@babel/helpers - typeof"; return ActiveUser_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, ActiveUser_typeof(obj); }

function ActiveUser_extends() { ActiveUser_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return ActiveUser_extends.apply(this, arguments); }

function ActiveUser_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

function ActiveUser_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ActiveUser_ownKeys(Object(source), !0).forEach(function (key) { ActiveUser_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ActiveUser_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }

function ActiveUser_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }



























function ActiveUser_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function ActiveUser_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function ActiveUser_createClass(Constructor, protoProps, staticProps) { if (protoProps) ActiveUser_defineProperties(Constructor.prototype, protoProps); if (staticProps) ActiveUser_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }

function ActiveUser_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) ActiveUser_setPrototypeOf(subClass, superClass); }

function ActiveUser_setPrototypeOf(o, p) { ActiveUser_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return ActiveUser_setPrototypeOf(o, p); }

function ActiveUser_createSuper(Derived) { var hasNativeReflectConstruct = ActiveUser_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = ActiveUser_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = ActiveUser_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return ActiveUser_possibleConstructorReturn(this, result); }; }

function ActiveUser_possibleConstructorReturn(self, call) { if (call && (ActiveUser_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return ActiveUser_assertThisInitialized(self); }

function ActiveUser_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function ActiveUser_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }

function ActiveUser_getPrototypeOf(o) { ActiveUser_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return ActiveUser_getPrototypeOf(o); }









 // import eventBus from '../../eventBus'










var ActiveUser = /*#__PURE__*/function (_Component) {
  ActiveUser_inherits(ActiveUser, _Component);

  var _super = ActiveUser_createSuper(ActiveUser);

  function ActiveUser(props) {
    var _this;

    ActiveUser_classCallCheck(this, ActiveUser);

    _this = _super.call(this, props);
    _this.state = {
      vCodeTime: 0,
      verifyCodeImg: '',
      isSuccess: false,
      needSignPrivacy: false,
      showDialog: false
    };
    _this.isInitAccount = validateEmail(src_store.account) || isPhoneNumber(src_store.account);
    _this.getVerifyCode = _this.getVerifyCode.bind(ActiveUser_assertThisInitialized(_this));
    _this.handleReSendPhoneCode = _this.handleReSendPhoneCode.bind(ActiveUser_assertThisInitialized(_this));
    _this.handleEnterKeyDown = _this.handleEnterKeyDown.bind(ActiveUser_assertThisInitialized(_this));
    _this.validateFormData = _this.validateFormData.bind(ActiveUser_assertThisInitialized(_this));
    _this.getPublicKey = _this.getPublicKey.bind(ActiveUser_assertThisInitialized(_this));
    _this.activeUser = _this.activeUser.bind(ActiveUser_assertThisInitialized(_this));
    _this.handleComfirmBtnClick = _this.handleComfirmBtnClick.bind(ActiveUser_assertThisInitialized(_this));
    _this.handleVerifyCodeClick = _this.handleVerifyCodeClick.bind(ActiveUser_assertThisInitialized(_this));
    _this.verifyAccountType = _this.verifyAccountType.bind(ActiveUser_assertThisInitialized(_this));
    _this.valueChange = _this.valueChange.bind(ActiveUser_assertThisInitialized(_this));
    _this.closeDialog = _this.closeDialog.bind(ActiveUser_assertThisInitialized(_this));
    _this.confirmClick = _this.confirmClick.bind(ActiveUser_assertThisInitialized(_this));
    return _this;
  }

  ActiveUser_createClass(ActiveUser, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      // this.isInitAccount && this.handleReSendPhoneCode()
      document.addEventListener('keydown', this.handleEnterKeyDown);

      if (!this.state.verifyCodeImg) {
        this.getVerifyCode();
      }

      if (!this.isInitAccount) {
        src_store.setValue('account', '');
      }

      src_store.setValue('phoneCode', '');
      src_store.setValue('newPassword', '');
      src_store.setValue('confirmPassword', '');
      src_store.setValue('verifyCode', '');
      resetStore(src_store);
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      resetStore(src_store);
      clearInterval(this.vCodeTimer);
      document.removeEventListener('keydown', this.handleEnterKeyDown);
    }
  }, {
    key: "handleEnterKeyDown",
    value: function handleEnterKeyDown(e) {
      if (e.keyCode === 13) {
        this.handleComfirmBtnClick();
      }
    }
  }, {
    key: "handleReSendPhoneCode",
    value: function handleReSendPhoneCode(uncheckedPrivacy) {
      var _this2 = this;

      var account = src_store.account,
          verifyCode = src_store.verifyCode;

      if (util_validate.isEmpty(account)) {
        var title = 'accountError';
        var data = intlApi_getLangMsg('login.key065');
        this.props.dataPipeModel && this.props.dataPipeModel.sendData({
          type: title,
          data: data
        });
        return false;
      } else if (util_validate.isEmpty(verifyCode)) {
        var _title = 'verifyCodeError';

        var _data = intlApi_getLangMsg('login.key046');

        this.props.dataPipeModel && this.props.dataPipeModel.sendData({
          type: _title,
          data: _data
        });
        return false;
      } else if (uncheckedPrivacy) {
        this.setState({
          showDialog: true
        });
        return false;
      }

      var vCodeTime = this.state.vCodeTime;
      var accountType = this.verifyAccountType() ? {
        phone: src_store.account
      } : {
        eMail: src_store.account
      };
      if (vCodeTime !== 0) return;
      getCloudPhoneCode(ActiveUser_objectSpread(ActiveUser_objectSpread({}, accountType), {}, {
        accountId: src_store.accountId,
        language: src_store.lang,
        vCode: src_store.verifyCode,
        token: this.verifyCodeToken
      })).then(function (data) {
        if (!data.success) {
          var error = {
            message: data.msg || data.error,
            level: 1
          }; //  eventBus.pub_showNotification(error)

          _this2.props.dataPipeModel && _this2.props.dataPipeModel.sendData({
            type: 'ShowNotification',
            error: error
          });

          _this2.handleVerifyCodeClick();
        } else {
          src_store.setValue('randomCode', data.randomCode);

          var _vCodeTime = data.vCodeTime / 1000 || 60;

          _this2.setState({
            vCodeTime: _vCodeTime
          });

          _this2.vCodeTimer = setInterval(function () {
            if (_vCodeTime <= 0) {
              clearInterval(_this2.vCodeTimer);
            } else {
              _this2.setState({
                vCodeTime: --_vCodeTime
              });
            }
          }, 1000); // eventBus.pub_focusInput({ name: 'phoneCode' })

          _this2.props.dataPipeModel && _this2.props.dataPipeModel.sendData({
            type: 'FocusInput',
            name: 'phoneCode'
          });
        }
      });
    }
  }, {
    key: "validateFormData",
    value: function validateFormData() {
      var account = src_store.account,
          phoneCode = src_store.phoneCode,
          newPassword = src_store.newPassword,
          confirmPassword = src_store.confirmPassword,
          verifyCode = src_store.verifyCode;

      if (util_validate.isEmpty(account)) {
        var title = 'accountError';
        var data = intlApi_getLangMsg('login.key065'); // eventBus.pub('login', title, data)

        this.props.dataPipeModel && this.props.dataPipeModel.sendData({
          type: title,
          data: data
        });
        return false;
      } else if (util_validate.isEmpty(verifyCode)) {
        var _title2 = 'verifyCodeError';

        var _data2 = intlApi_getLangMsg('login.key046'); // eventBus.pub('login', title, data)


        this.props.dataPipeModel && this.props.dataPipeModel.sendData({
          type: _title2,
          data: _data2
        });
        return false;
      } else if (util_validate.isEmpty(phoneCode)) {
        var _title3 = 'phoneCodeError';

        var _data3 = intlApi_getLangMsg('login.key066'); // eventBus.pub('login', title, data)


        this.props.dataPipeModel && this.props.dataPipeModel.sendData({
          type: _title3,
          data: _data3
        });
        return false;
      } else if (util_validate.isEmpty(newPassword)) {
        var _title4 = 'newPasswordError';

        var _data4 = intlApi_getLangMsg('login.key048'); // eventBus.pub('login', title, data)


        this.props.dataPipeModel && this.props.dataPipeModel.sendData({
          type: _title4,
          data: _data4
        });
        return false;
      } else if (util_validate.isEmpty(confirmPassword)) {
        var _title5 = 'confirmPasswordError';

        var _data5 = intlApi_getLangMsg('login.key056'); // eventBus.pub('login', title, data)


        this.props.dataPipeModel && this.props.dataPipeModel.sendData({
          type: _title5,
          data: _data5
        });
        return false;
      } else if (util_validate.checkLength(newPassword, 0, 20) === 1) {
        var _title6 = 'newPasswordError';

        var _data6 = intlApi_getLangMsg('login.key049'); // eventBus.pub('login', title, data)


        this.props.dataPipeModel && this.props.dataPipeModel.sendData({
          type: _title6,
          data: _data6
        });
        return false;
      } else if (!util_validate.isEqual(newPassword, confirmPassword)) {
        var _title7 = 'confirmPasswordError';

        var _data7 = intlApi_getLangMsg('login.key045'); // eventBus.pub('login', title, data)


        this.props.dataPipeModel && this.props.dataPipeModel.sendData({
          type: _title7,
          data: _data7
        });
        return false;
      }

      return true;
    }
  }, {
    key: "getPublicKey",
    value: function getPublicKey(call) {
      var _this3 = this;

      var accessKey = src_store.account + uid(false, 16 - src_store.account.length);
      service_getPublicKey({
        accessKey: accessKey,
        language: src_store.lang,
        accountId: src_store.accountId
      }).then(function (data) {
        if (data.success !== true) {
          var error = {
            message: data.errorMessage,
            level: 1
          }; //  eventBus.pub_showNotification(error)

          _this3.props.dataPipeModel && _this3.props.dataPipeModel.sendData({
            type: 'ShowNotification',
            error: error
          });
          return false;
        }

        call({
          publicKey: data.publicKey,
          accessKey: accessKey
        });
      });
    }
  }, {
    key: "activeUser",
    value: function activeUser(data) {
      var _this4 = this;

      var accountId = src_store.accountId,
          account = src_store.account,
          phoneCode = src_store.phoneCode,
          newPassword = src_store.newPassword;
      var accountType = this.verifyAccountType() ? {
        phone: account
      } : {
        eMail: account
      };
      var encrypt = new lib/* default */.Z();
      encrypt.setPublicKey(data.publicKey);
      var encryptedPassword = encrypt.encrypt(newPassword);
      var currentCenter = src_store.dataCenter.find(function (item, i) {
        return item.value === src_store.accountId;
      });

      var formData = ActiveUser_objectSpread(ActiveUser_objectSpread({
        accountId: accountId
      }, accountType), {}, {
        code: phoneCode,
        accessKey: data.accessKey,
        password: encryptedPassword,
        language: src_store.lang,
        token: this.verifyCodeToken,
        vCode: src_store.verifyCode,
        randomCode: src_store.randomCode,
        needSignPrivacy: this.state.needSignPrivacy || !(currentCenter !== null && currentCenter !== void 0 && currentCenter.needSignPrivacy)
      });

      service_activeUser(formData).then(function (data) {
        if (data && data.success) {
          src_store.setValue('password', '');

          _this4.setState({
            isSuccess: true
          });

          setTimeout(function () {
            window.sessionStorage.setItem(ACCOUNT, src_store.account);
            window.location.hash = 'kingdeeCloud';
          }, 3000);
        } else {
          var error = {
            message: data.msg || data.error,
            level: 1
          }; //  eventBus.pub_showNotification(error)

          _this4.props.dataPipeModel && _this4.props.dataPipeModel.sendData({
            type: 'ShowNotification',
            error: error
          });

          _this4.handleVerifyCodeClick();

          return false;
        }
      });
    }
  }, {
    key: "handleComfirmBtnClick",
    value: function handleComfirmBtnClick() {
      if (!this.validateFormData()) return false;
      this.getPublicKey(this.activeUser);
    }
  }, {
    key: "getVerifyCode",
    value: function getVerifyCode() {
      var _this5 = this;

      this.setState({
        verifyCode: (loading_default())
      }); // eventBus.pub_focusInput({ name: 'verifyCode' })

      this.props.dataPipeModel && this.props.dataPipeModel.sendData({
        type: 'FocusInput',
        name: 'verifyCode'
      });
      getVerifyCodeByPhone({
        phone: src_store.account,
        language: src_store.lang,
        v: uid(false, 8),
        accountId: src_store.accountId
      }).then(function (data) {
        _this5.setState({
          verifyCodeImg: data.content || (loading_default())
        });

        _this5.verifyCodeToken = data.vCode;
      });
    }
  }, {
    key: "handleVerifyCodeClick",
    value: function handleVerifyCodeClick() {
      this.getVerifyCode(); // eventBus.pub_focusInput({ name: 'verifyCode' })

      this.props.dataPipeModel && this.props.dataPipeModel.sendData({
        type: 'FocusInput',
        name: 'verifyCode'
      });
    } // 验证账户类型是邮箱还是手机号

  }, {
    key: "verifyAccountType",
    value: function verifyAccountType() {
      var account = src_store.account;
      var mailReg = /^(\w-*\.*)+@(\w-?)+(\.\w{2,})+$/;
      if (mailReg.test(account)) return false;
      return true;
    }
  }, {
    key: "valueChange",
    value: function valueChange(name) {
      var title = 'confirmPasswordError';
      this.props.dataPipeModel && this.props.dataPipeModel.sendData({
        type: title,
        data: '',
        name: name
      });
    }
  }, {
    key: "closeDialog",
    value: function closeDialog() {
      this.setState({
        showDialog: false
      });
    }
  }, {
    key: "confirmClick",
    value: function confirmClick() {
      this.setState({
        showDialog: false
      });
      this.setState({
        needSignPrivacy: true
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _classname,
          _classname2,
          _this6 = this;

      var vCodeTime = this.state.vCodeTime;
      var phoneCodeClass = classnames_default()((_classname = {}, ActiveUser_defineProperty(_classname, web_ActiveUser.phoneCodeContainer, true), ActiveUser_defineProperty(_classname, web_ActiveUser.showPhoneCode, true), _classname));
      var btnClass = classnames_default()((_classname2 = {}, ActiveUser_defineProperty(_classname2, web_ActiveUser.btn, true), ActiveUser_defineProperty(_classname2, web_ActiveUser.disable, vCodeTime !== 0), _classname2));
      var notificationStyle = {
        margin: '0px'
      };
      var reSendtext = intlApi_getLangMsg('login.key036');
      var btnText = vCodeTime === 0 ? reSendtext : "".concat(reSendtext, "(").concat(vCodeTime, "s)");
      var currentCenter = src_store.dataCenter.find(function (item, i) {
        return item.value === src_store.accountId;
      });

      var handlePrivacyChange = function handlePrivacyChange(e) {
        var val = e.target.checked;

        _this6.setState({
          needSignPrivacy: val
        });
      };

      var needSignPrivacy = currentCenter === null || currentCenter === void 0 ? void 0 : currentCenter.needSignPrivacy;
      var disable = needSignPrivacy && !this.state.needSignPrivacy;
      return /*#__PURE__*/react.createElement(common_LoginWrapper, ActiveUser_extends({
        selectType: "activeUser"
      }, this.props), this.state.isSuccess ? /*#__PURE__*/react.createElement(ActiveUser_SuccessPanel, {
        dataPipeModel: this.props.dataPipeModel
      }) : /*#__PURE__*/react.createElement("div", {
        className: web_ActiveUser.formContainer
      }, /*#__PURE__*/react.createElement("div", {
        className: web_ActiveUser.title
      }, intlApi_getLangMsg('login.key034')), /*#__PURE__*/react.createElement(web_base_Notification, {
        style: notificationStyle,
        dataPipeModel: this.props.dataPipeModel
      }), /*#__PURE__*/react.createElement("div", {
        className: web_ActiveUser.content
      }, /*#__PURE__*/react.createElement(Input2, {
        dataPipeModel: this.props.dataPipeModel,
        name: "account",
        type: "text",
        placeholder: intlApi_getLangMsg('login.key058'),
        onBlur: this.handleVerifyCodeClick,
        defaultValue: this.isInitAccount ? src_store.account : ''
      }), /*#__PURE__*/react.createElement("div", {
        className: web_ActiveUser.graphicContainer
      }, /*#__PURE__*/react.createElement(Input2, {
        dataPipeModel: this.props.dataPipeModel,
        name: "verifyCode",
        type: "text",
        placeholder: intlApi_getLangMsg('login.key004')
      }), /*#__PURE__*/react.createElement("div", {
        className: web_ActiveUser.graphicCode,
        onClick: this.handleVerifyCodeClick
      }, /*#__PURE__*/react.createElement("img", {
        src: this.state.verifyCodeImg
      }))), /*#__PURE__*/react.createElement("div", {
        className: phoneCodeClass
      }, /*#__PURE__*/react.createElement(Input2, {
        dataPipeModel: this.props.dataPipeModel,
        name: "phoneCode",
        type: "text",
        placeholder: intlApi_getLangMsg('login.key035')
      }), /*#__PURE__*/react.createElement("div", {
        className: btnClass,
        onClick: function onClick() {
          _this6.handleReSendPhoneCode(disable);
        }
      }, btnText)), /*#__PURE__*/react.createElement(Input2, {
        dataPipeModel: this.props.dataPipeModel,
        name: "newPassword",
        type: "password",
        placeholder: intlApi_getLangMsg('login.key037'),
        valueChange: function valueChange() {
          _this6.valueChange('newPassword');
        }
      }), /*#__PURE__*/react.createElement(Input2, {
        dataPipeModel: this.props.dataPipeModel,
        name: "confirmPassword",
        type: "password",
        placeholder: intlApi_getLangMsg('login.key038'),
        valueChange: function valueChange() {
          _this6.valueChange('confirmPassword');
        }
      }), needSignPrivacy && /*#__PURE__*/react.createElement("div", {
        className: web_ActiveUser.privacy
      }, /*#__PURE__*/react.createElement("input", {
        type: "checkbox",
        className: web_ActiveUser.checkbox,
        checked: this.state.needSignPrivacy,
        onChange: handlePrivacyChange
      }), /*#__PURE__*/react.createElement("div", {
        className: web_ActiveUser.privacyAgreement
      }, intlApi_getLangMsg('login.key112'), /*#__PURE__*/react.createElement("a", {
        href: "https://cloud.kingdee.com/passport/#/policy-agree/client-kd",
        target: "_blank",
        rel: "nofollow noopener noreferrer"
      }, " ", intlApi_getLangMsg('login.key113')), intlApi_getLangMsg('login.key114'), /*#__PURE__*/react.createElement("a", {
        href: "https://cloud.kingdee.com/passport/#/policy-agree/privacy-policy",
        target: "_blank",
        rel: "nofollow noopener noreferrer"
      }, " ", intlApi_getLangMsg('login.key115')))), /*#__PURE__*/react.createElement(base_Button, {
        disable: disable,
        text: intlApi_getLangMsg('login.key039'),
        onClick: this.handleComfirmBtnClick,
        dataPipeModel: this.props.dataPipeModel
      }))), this.state.showDialog && /*#__PURE__*/react.createElement(ShowDiaog, {
        close: this.closeDialog,
        confirmClick: this.confirmClick
      }));
    }
  }]);

  return ActiveUser;
}(react.Component);



function ActiveUser_SuccessPanel(props) {
  return /*#__PURE__*/react.createElement("div", {
    className: web_ActiveUser.successPanel
  }, /*#__PURE__*/react.createElement("img", {
    src: (resetSuccess_default())
  }), /*#__PURE__*/react.createElement("div", null, intlApi_getLangMsg('login.key092')));
}

function ShowDiaog(props) {
  return /*#__PURE__*/react.createElement(Dialog, {
    title: intlApi_getLangMsg('login.key116'),
    closeClick: props.close,
    confirmClick: props.confirmClick,
    rightBtn: intlApi_getLangMsg('login.key117')
  }, /*#__PURE__*/react.createElement("div", {
    className: web_ActiveUser.dialogContent
  }, /*#__PURE__*/react.createElement("img", {
    className: web_ActiveUser.icon,
    src: (error1_default()),
    alt: ""
  }), /*#__PURE__*/react.createElement("div", {
    className: web_ActiveUser.msg
  }, intlApi_getLangMsg('login.key118'), /*#__PURE__*/react.createElement("a", {
    href: "https://cloud.kingdee.com/passport/#/policy-agree/client-kd",
    target: "_blank",
    rel: "nofollow noopener noreferrer"
  }, " ", intlApi_getLangMsg('login.key113')), intlApi_getLangMsg('login.key114'), /*#__PURE__*/react.createElement("a", {
    href: "https://cloud.kingdee.com/passport/#/policy-agree/privacy-policy",
    target: "_blank",
    rel: "nofollow noopener noreferrer"
  }, " ", intlApi_getLangMsg('login.key115')))));
}
;// CONCATENATED MODULE: ./src/page/web/Demo.less
// extracted by mini-css-extract-plugin
/* harmony default export */ var Demo = ({"formContainer":"_2x3JI3Z0","title":"oEXaHJ-t","content":"_35BgTiNG","dropdownList":"_3fNoOqTV","roleSelect":"_35-ocPkH","text":"_1YGH2lzT","off":"n4UxXJde","on":"_1YdOgtJj","panel":"_2eVB1Uvz","item":"_38nWtqfY","selected":"fuCP5mnS","hidden":"_2LWfeCYN"});
;// CONCATENATED MODULE: ./src/page/web/Demo.jsx
/* provided dependency */ var Demo_console = __webpack_require__(3716);
function Demo_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function Demo_toConsumableArray(arr) { return Demo_arrayWithoutHoles(arr) || Demo_iterableToArray(arr) || Demo_unsupportedIterableToArray(arr) || Demo_nonIterableSpread(); }

function Demo_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function Demo_iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }

function Demo_arrayWithoutHoles(arr) { if (Array.isArray(arr)) return Demo_arrayLikeToArray(arr); }






















function Demo_slicedToArray(arr, i) { return Demo_arrayWithHoles(arr) || Demo_iterableToArrayLimit(arr, i) || Demo_unsupportedIterableToArray(arr, i) || Demo_nonIterableRest(); }

function Demo_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function Demo_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return Demo_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Demo_arrayLikeToArray(o, minLen); }

function Demo_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function Demo_iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function Demo_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

function Demo_extends() { Demo_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return Demo_extends.apply(this, arguments); }









 // import eventBus from '../../eventBus'







function Demo_Demo(props) {
  (0,react.useEffect)(function () {
    // eventBus.pub_focusInput({ name: 'yzjAccount' })
    props.dataPipeModel && props.dataPipeModel.sendData({
      type: 'FocusInput',
      name: 'yzjAccount'
    });
  }, []);
  return /*#__PURE__*/react.createElement(common_LoginWrapper, Demo_extends({
    selectType: "demo"
  }, props), /*#__PURE__*/react.createElement("div", {
    className: Demo.formContainer
  }, /*#__PURE__*/react.createElement("div", {
    className: Demo.title
  }, intlApi_getLangMsg('login.key067')), /*#__PURE__*/react.createElement(web_base_Notification, {
    dataPipeModel: props.dataPipeModel
  }), /*#__PURE__*/react.createElement(Demo_Form, props)));
}
var getRoleData = function getRoleData() {
  var num = '1729999999';
  return [{
    text: intlApi_getLangMsg('login.key068'),
    value: 'administrator'
  }, {
    text: intlApi_getLangMsg('login.key069'),
    value: num + '9'
  }, {
    text: intlApi_getLangMsg('login.key070'),
    value: num + '4'
  }, {
    text: intlApi_getLangMsg('login.key071'),
    value: num + '7'
  }, {
    text: intlApi_getLangMsg('login.key072') + '1',
    value: num + '8'
  }, {
    text: intlApi_getLangMsg('login.key072') + '2',
    value: num + '1'
  }, {
    text: intlApi_getLangMsg('login.key072') + '3',
    value: num + '3'
  }, {
    text: intlApi_getLangMsg('login.key073'),
    value: num + '5'
  }, {
    text: intlApi_getLangMsg('login.key074'),
    value: '172999999' + '86'
  }];
};
function Demo_Form(props) {
  var _useState = (0,react.useState)(false),
      _useState2 = Demo_slicedToArray(_useState, 2),
      isLogining = _useState2[0],
      setLogining = _useState2[1];

  var _useState3 = (0,react.useState)([]),
      _useState4 = Demo_slicedToArray(_useState3, 2),
      list = _useState4[0],
      setList = _useState4[1];

  (0,react.useEffect)(function () {
    var handleEnterKeyDown = function handleEnterKeyDown(e) {
      if (e.keyCode === 13) {
        loginBtnClcik();
      }
    };

    document.addEventListener('keydown', handleEnterKeyDown);
    return function () {
      document.removeEventListener('keydown', handleEnterKeyDown);
    };
  }, []);

  var validateFormData = function validateFormData() {
    var yzjAccount = src_store.yzjAccount,
        yzjPwd = src_store.yzjPwd;

    if (util_validate.isEmpty(yzjAccount)) {
      var title = 'yzjAccountError';
      var data = intlApi_getLangMsg('login.key079'); // eventBus.pub('login', title, data)

      props.dataPipeModel && props.dataPipeModel.sendData({
        type: title,
        data: data
      });
      return false;
    } else if (util_validate.isEmpty(yzjPwd)) {
      var _title = 'yzjPwdError';

      var _data = intlApi_getLangMsg('login.key080'); // eventBus.pub('login', title, data)


      props.dataPipeModel && props.dataPipeModel.sendData({
        type: _title,
        data: _data
      });
      return false;
    }

    return true;
  };

  var loginBtnClcik = function loginBtnClcik() {
    if (isLogining) return false;
    if (!validateFormData()) return false;
    setLogining(true);
    getPublicKey(submit);
  };

  var getPublicKey = function getPublicKey(call) {
    var accessKey = src_store.yzjAccount + uid(false, 16 - src_store.yzjAccount.length);
    service_getPublicKey({
      accessKey: accessKey,
      language: src_store.lang,
      accountId: src_store.accountId
    }).then(function (data) {
      if (data.success !== true) {
        var error = {
          message: data.errorMessage,
          level: 1
        }; // eventBus.pub_showNotification(error)

        props.dataPipeModel && props.dataPipeModel.sendData({
          type: 'ShowNotification',
          error: error
        });
        return false;
      }

      call({
        publicKey: data.publicKey,
        accessKey: accessKey
      });
    })["catch"](function (err) {
      Demo_console.log(err);
      setLogining(false);
    });
  };

  var submit = function submit(data) {
    var yzjAccount = src_store.yzjAccount,
        yzjPwd = src_store.yzjPwd,
        accountId = src_store.accountId,
        lang = src_store.lang,
        role = src_store.role;
    var accessKey = data.accessKey,
        publicKey = data.publicKey;
    var encrypt = new lib/* default */.Z();
    encrypt.setPublicKey(publicKey);
    var currentItem = src_store.dataCenter.find(function (item, i) {
      if (item.value === accountId) {
        return true;
      }
    });
    var enPassword;

    if (currentItem && currentItem.closeEncrypt) {
      enPassword = yzjPwd;
    } else {
      enPassword = encrypt.encrypt(yzjPwd);
    }

    demoSubmit({
      type: 'user',
      useraccount: yzjAccount,
      accessKey: accessKey,
      password: enPassword,
      accountId: accountId,
      language: lang,
      userSourceType: 3,
      role: role
    }).then(function (data) {
      var errorcode = data.errorcode,
          needChangePwd = data.needChangePwd,
          needActive = data.needActive,
          needChangeInitialPwd = data.needChangeInitialPwd,
          message = data.message,
          description = data.description;

      if (needActive) {
        window.location.hash = '#activeUser';
        return;
      }

      if (needChangePwd === 1 || needChangeInitialPwd === 1) {
        window.location.hash = '#findPassword';
        var error = {
          level: 2,
          message: message
        }; // eventBus.pub_showNotification ({ level: 2, message: message })

        props.dataPipeModel && props.dataPipeModel.sendData({
          type: 'ShowNotification',
          error: error
        }); // eventBus.pub_focusInput({ name: 'verifyCode' })

        props.dataPipeModel && props.dataPipeModel.sendData({
          type: 'FocusInput',
          name: 'verifyCode'
        });
        return false;
      }

      if (errorcode !== 0) {
        var _error = {
          level: 1,
          message: description || data.description_cn
        }; // eventBus.pub_showNotification ({ level: 1, message: description || data.description_cn })

        props.dataPipeModel && props.dataPipeModel.sendData({
          type: 'ShowNotification',
          error: _error
        });
        setLogining(false);
        return false;
      }

      window.sessionStorage.setItem(ACCOUNT, yzjAccount);
      window.localStorage.setItem('ierp-login-username', data.username);
      var userinfo = {
        username: data.username || '',
        avatar: data.avatar || ''
      };
      var userInfoKey = getNameWithCurrentEnvrionment(LOGIN_USERINFO);
      window.localStorage.setItem(userInfoKey, JSON.stringify(userinfo));
      var langParam = "language=".concat(lang);
      var url = data.RedirectURL;

      if (url.indexOf('?') !== -1) {
        url += '&' + langParam;
      } else {
        url += '?' + langParam;
      }

      window.location.href = url;
    })["catch"](function (err) {
      Demo_console.log(err);
      setLogining(false);
    });
  };

  var showDropdownList = function showDropdownList(_ref) {
    var data = _ref.data;
    var isLoad = list.some(function (item) {
      return item.value === data.value;
    });
    if (isLoad) return;
    setList(function (list) {
      var newList = [].concat(Demo_toConsumableArray(list), [data]);
      return newList;
    });
  };

  (0,react.useEffect)(function () {
    if (!props.dataCenter.length > 0) return;
    var key = 'demoDataCenterList';
    var types = [3];
    var dataPipeModel = props.dataPipeModel,
        dataCenter = props.dataCenter;
    dataPipeModel.registerCallback(key, showDropdownList);
    filterDataCenter(key, dataCenter, types, dataPipeModel);
  }, [props.dataCenter]);
  var currentAccountId = props.currentAccountId,
      handleChangeDataCenter = props.handleChangeDataCenter;
  var btnText = isLogining ? intlApi_getLangMsg('login.key050') : intlApi_getLangMsg('login.key005');
  return /*#__PURE__*/react.createElement("div", {
    className: Demo.content
  }, /*#__PURE__*/react.createElement(web_base_DropdownList, {
    name: "accountId",
    style: Demo.dropdownList,
    list: list,
    oldDataCenter: props.dataCenter,
    selectItem: currentAccountId,
    onItemClick: handleChangeDataCenter,
    dataPipeModel: props.dataPipeModel
  }), /*#__PURE__*/react.createElement(Input2, {
    dataPipeModel: props.dataPipeModel,
    name: "yzjAccount",
    type: "text",
    placeholder: intlApi_getLangMsg('login.key075')
  }), /*#__PURE__*/react.createElement(Input2, {
    dataPipeModel: props.dataPipeModel,
    name: "yzjPwd",
    type: "password",
    placeholder: intlApi_getLangMsg('login.key076')
  }), /*#__PURE__*/react.createElement(RoleSelect, {
    name: "role",
    list: getRoleData()
  }), /*#__PURE__*/react.createElement(base_Button, {
    text: btnText,
    onClick: loginBtnClcik
  }));
}
function RoleSelect(props) {
  var _classnames2, _classnames3;

  var _useState5 = (0,react.useState)(false),
      _useState6 = Demo_slicedToArray(_useState5, 2),
      panelVisible = _useState6[0],
      setPanelVisible = _useState6[1];

  var _useState7 = (0,react.useState)('17299999999'),
      _useState8 = Demo_slicedToArray(_useState7, 2),
      currentRole = _useState8[0],
      setCurrentRole = _useState8[1];

  var roleSelectEl = (0,react.useRef)(null);

  var handleClickOutside = function handleClickOutside(e) {
    // if (!panelVisible) return
    var target = e.target;

    while (target && target !== document) {
      if (target === react_dom.findDOMNode(roleSelectEl.current)) {
        return;
      }

      target = target.parentNode;
    }

    if (!target) return;
    setPanelVisible(false);
  };

  (0,react.useEffect)(function () {
    src_store.setValue('role', '17299999999');
    document.addEventListener('click', handleClickOutside);
    return function () {
      return document.removeEventListener('click', handleClickOutside);
    };
  }, []);
  var list = props.list;

  var itemClick = function itemClick(e) {
    var target = e.target;
    var value = target.getAttribute('value');
    setPanelVisible(false);
    src_store.setValue('role', value);
    setCurrentRole(value);
  };

  var alist = list.map(function (item) {
    var _classnames;

    var itemClass = classnames_default()((_classnames = {}, Demo_defineProperty(_classnames, Demo.item, true), Demo_defineProperty(_classnames, Demo.selected, item.value === currentRole), _classnames));
    return /*#__PURE__*/react.createElement("div", {
      key: item.value,
      value: item.value,
      className: itemClass,
      onClick: itemClick
    }, item.text);
  });
  var textClass = classnames_default()((_classnames2 = {}, Demo_defineProperty(_classnames2, Demo.text, true), Demo_defineProperty(_classnames2, Demo.off, !panelVisible), Demo_defineProperty(_classnames2, Demo.on, panelVisible), _classnames2));
  var panelClass = classnames_default()((_classnames3 = {}, Demo_defineProperty(_classnames3, Demo.panel, true), Demo_defineProperty(_classnames3, Demo.hidden, !panelVisible), _classnames3));

  var textClick = function textClick(e) {
    setPanelVisible(!panelVisible);
  };

  var role = list.find(function (item) {
    return item.value === currentRole;
  });
  var text = role && role.text;
  return /*#__PURE__*/react.createElement("div", {
    className: Demo.roleSelect,
    ref: roleSelectEl
  }, /*#__PURE__*/react.createElement("div", {
    className: textClass,
    onClick: textClick
  }, text), /*#__PURE__*/react.createElement("div", {
    className: panelClass
  }, alist));
}
;// CONCATENATED MODULE: ./src/page/web/Prompt.less
// extracted by mini-css-extract-plugin
/* harmony default export */ var Prompt = ({"prompt":"Ni9uRGFX","header":"_1cOW3Z0j","logo":"_1ptAUuQY","content":"_2_NtC81u","msgImage":"_3shjIDiQ","msgText":"ztqTby-v","text":"_2BGv6JXe","msgButton":"_24XAU3rS","button":"aWMIeCkQ","buttonL":"_31borRtL","buttonR":"_3KDXoP-u","fold":"_148r6JzW","foldBtn":"_2ahZTVt1","unFold":"FdzT3WnJ","errormsg":"_2CKG4kIv","unFoldBtn":"_3kEVrGOX"});
// EXTERNAL MODULE: ./src/img/default/default.png
var default_default = __webpack_require__(3131);
var default_default_default = /*#__PURE__*/__webpack_require__.n(default_default);
// EXTERNAL MODULE: ./src/img/logo.png
var logo = __webpack_require__(9024);
var logo_default = /*#__PURE__*/__webpack_require__.n(logo);
;// CONCATENATED MODULE: ./src/page/web/Prompt.jsx














function Prompt_slicedToArray(arr, i) { return Prompt_arrayWithHoles(arr) || Prompt_iterableToArrayLimit(arr, i) || Prompt_unsupportedIterableToArray(arr, i) || Prompt_nonIterableRest(); }

function Prompt_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function Prompt_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return Prompt_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Prompt_arrayLikeToArray(o, minLen); }

function Prompt_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function Prompt_iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function Prompt_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }










function Prompt_Prompt(props) {
  var _getUrlParam = getUrlParam(decodeURIComponent(window.location.href)),
      errormsg = _getUrlParam.errormsg,
      type = _getUrlParam.type;

  var _useState = (0,react.useState)(null),
      _useState2 = Prompt_slicedToArray(_useState, 2),
      text = _useState2[0],
      setText = _useState2[1];

  var _useState3 = (0,react.useState)(false),
      _useState4 = Prompt_slicedToArray(_useState3, 2),
      isDetails = _useState4[0],
      setIsDetails = _useState4[1];

  var _useState5 = (0,react.useState)(null),
      _useState6 = Prompt_slicedToArray(_useState5, 2),
      button = _useState6[0],
      setButton = _useState6[1];

  var _getUrlParam2 = getUrlParam(decodeURIComponent(window.location.href)),
      accountid = _getUrlParam2.accountid; // 右按钮


  (0,react.useEffect)(function () {
    var currentAccountIdKey = getNameWithCurrentEnvrionment(CURRENT_ACCOUNDID);
    window.localStorage.setItem(currentAccountIdKey, accountid);

    if (type === '1') {
      setText(intlApi_getLangMsg('login.key089'));
      setButton(returnLoginBtn);
    } else if (type === '2') {
      setText(intlApi_getLangMsg('login.key091'));
      setIsDetails(true);
      setButton(returnQRBtn);
    } else {
      setText(intlApi_getLangMsg('login.key090'));
      setButton(returnQRBtn);
    }
  }, []);
  (0,react.useEffect)(function () {
    var dataCenter = props.dataCenter;
    var index = 0;
    dataCenter.some(function (item, i) {
      if (item.value === accountid) {
        index = i;
        return true;
      }
    });

    if (dataCenter.length > 0) {
      dataUtil_queryParameters(accountid, dataCenter, index, props.dataPipeModel).then(function (data) {
        var userSourceType = data.userSourceType,
            defaultUserSourceType = data.defaultUserSourceType;
        props.dataPipeModel.sendData({
          type: 'currentAccountIdChange',
          data: {
            userSourceType: userSourceType,
            defaultUserSourceType: defaultUserSourceType
          }
        });
      });
    }
  }, [props.currentAccountId]);
  var logoStyle = {
    backgroundImage: "url(".concat(props.configuration.logoimg || src_store.isCompleteLoadConfig && (logo_default()), ")"),
    backgroundRepeat: 'no-repeat',
    backgroundSize: '100% 100%'
  };

  var returnQR = function returnQR() {
    window.location.hash = '#WeChat';
  };

  var KingdeeCloud = function KingdeeCloud() {
    var _getUrlParam3 = getUrlParam(decodeURIComponent(window.location.href)),
        token = _getUrlParam3.token,
        openid = _getUrlParam3.openid,
        scantype = _getUrlParam3.scantype;

    src_store.setValue('token', token);
    src_store.setValue('openid', openid);
    src_store.setValue('scantype', scantype);
    window.location.hash = '#KingdeeCloud';
  };

  var returnLoginBtn = /*#__PURE__*/react.createElement("div", {
    className: Prompt.msgButton
  }, /*#__PURE__*/react.createElement("div", {
    className: Prompt.buttonL,
    onClick: returnQR
  }, " ", intlApi_getLangMsg('login.key104')), /*#__PURE__*/react.createElement("div", {
    className: Prompt.buttonR,
    onClick: KingdeeCloud
  }, intlApi_getLangMsg('login.key105')));
  var returnQRBtn = /*#__PURE__*/react.createElement("div", {
    className: Prompt.msgButton
  }, /*#__PURE__*/react.createElement("div", {
    className: Prompt.button,
    onClick: returnQR
  }, intlApi_getLangMsg('login.key104')));
  var style = isDetails ? {} : {
    height: '100px'
  };
  return /*#__PURE__*/react.createElement("div", {
    className: Prompt.prompt
  }, /*#__PURE__*/react.createElement("div", {
    className: Prompt.header
  }, /*#__PURE__*/react.createElement("div", {
    className: Prompt.logo,
    style: logoStyle
  })), /*#__PURE__*/react.createElement("div", {
    className: Prompt.content
  }, /*#__PURE__*/react.createElement("div", {
    className: Prompt.msgImage
  }, /*#__PURE__*/react.createElement("img", {
    src: (default_default_default())
  })), /*#__PURE__*/react.createElement("div", {
    className: Prompt.msgText
  }, /*#__PURE__*/react.createElement("div", {
    className: Prompt.text
  }, text)), /*#__PURE__*/react.createElement("div", {
    style: style
  }), /*#__PURE__*/react.createElement(Details, {
    errormsg: errormsg,
    flag: isDetails
  }), button));
}

function Details(props) {
  if (!props.flag) {
    return null;
  }

  var _useState7 = (0,react.useState)(true),
      _useState8 = Prompt_slicedToArray(_useState7, 2),
      fold = _useState8[0],
      setFold = _useState8[1];

  var foldBtn = function foldBtn() {
    setFold(true);
  };

  var unFoldBtn = function unFoldBtn() {
    setFold(false);
  };

  return fold ? /*#__PURE__*/react.createElement("div", {
    className: Prompt.fold,
    onClick: unFoldBtn
  }, /*#__PURE__*/react.createElement("div", {
    className: Prompt.foldBtn
  }, intlApi_getLangMsg('login.key102'))) : /*#__PURE__*/react.createElement("div", {
    className: Prompt.unFold
  }, /*#__PURE__*/react.createElement("div", {
    className: Prompt.content
  }, /*#__PURE__*/react.createElement("div", {
    className: Prompt.errormsg
  }, props.errormsg), /*#__PURE__*/react.createElement("div", {
    className: Prompt.unFoldBtn,
    onClick: foldBtn
  }, intlApi_getLangMsg('login.key103'))));
}
;// CONCATENATED MODULE: ./src/page/web/WeChat.jsx
function WeChat_typeof(obj) { "@babel/helpers - typeof"; return WeChat_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, WeChat_typeof(obj); }

function WeChat_slicedToArray(arr, i) { return WeChat_arrayWithHoles(arr) || WeChat_iterableToArrayLimit(arr, i) || WeChat_unsupportedIterableToArray(arr, i) || WeChat_nonIterableRest(); }

function WeChat_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function WeChat_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return WeChat_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return WeChat_arrayLikeToArray(o, minLen); }

function WeChat_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function WeChat_iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function WeChat_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

function WeChat_extends() { WeChat_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return WeChat_extends.apply(this, arguments); }
























function WeChat_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function WeChat_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function WeChat_createClass(Constructor, protoProps, staticProps) { if (protoProps) WeChat_defineProperties(Constructor.prototype, protoProps); if (staticProps) WeChat_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }

function WeChat_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) WeChat_setPrototypeOf(subClass, superClass); }

function WeChat_setPrototypeOf(o, p) { WeChat_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return WeChat_setPrototypeOf(o, p); }

function WeChat_createSuper(Derived) { var hasNativeReflectConstruct = WeChat_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = WeChat_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = WeChat_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return WeChat_possibleConstructorReturn(this, result); }; }

function WeChat_possibleConstructorReturn(self, call) { if (call && (WeChat_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return WeChat_assertThisInitialized(self); }

function WeChat_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function WeChat_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }

function WeChat_getPrototypeOf(o) { WeChat_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return WeChat_getPrototypeOf(o); }













var WeChat = /*#__PURE__*/function (_Component) {
  WeChat_inherits(WeChat, _Component);

  var _super = WeChat_createSuper(WeChat);

  function WeChat(props) {
    var _this;

    WeChat_classCallCheck(this, WeChat);

    var currentAccountIdKey = getNameWithCurrentEnvrionment(CURRENT_ACCOUNDID);
    var currentAccountId = window.localStorage.getItem(currentAccountIdKey);
    _this = _super.call(this, props);
    _this.state = {
      accountId: currentAccountId,
      lang: '',
      list: []
    };
    _this.handleChangeDataCenter = _this.handleChangeDataCenter.bind(WeChat_assertThisInitialized(_this));
    _this.changeLang = _this.changeLang.bind(WeChat_assertThisInitialized(_this));
    _this.showDropdownList = _this.showDropdownList.bind(WeChat_assertThisInitialized(_this));
    _this.ListenerFilterDataCenter = _this.ListenerFilterDataCenter.bind(WeChat_assertThisInitialized(_this));
    _this.include = true;
    return _this;
  }

  WeChat_createClass(WeChat, [{
    key: "showDropdownList",
    value: function showDropdownList(_ref) {
      var data = _ref.data;
      var list = this.state.list;
      var isLoad = list.some(function (item) {
        return item.value === data.value;
      });
      if (isLoad) return;

      if (!this.include && list.length !== 0) {
        this.handleChangeDataCenter(list[0].value);
        this.include = true;
      }

      list.push(data);
      this.setState({
        list: list
      });
    }
  }, {
    key: "shouldComponentUpdate",
    value: function shouldComponentUpdate(nextProps, nextState) {
      var accountId = nextProps.currentAccountId;

      if (nextProps.currentAccountId !== this.props.currentAccountId) {
        this.setState({
          accountId: accountId
        });
      }

      if (nextProps.dataCenter.length !== 0 && this.props.dataCenter.length === 0) {
        this.ListenerFilterDataCenter(nextProps.dataCenter, accountId);
      }

      return true;
    }
  }, {
    key: "componentDidMount",
    value: function componentDidMount() {
      var dataCenter = this.props.dataCenter;

      if (dataCenter.length !== 0) {
        this.ListenerFilterDataCenter(this.props.dataCenter, this.props.currentAccountId);
      }
    }
  }, {
    key: "ListenerFilterDataCenter",
    value: function ListenerFilterDataCenter(dataCenter, accountId) {
      var _this2 = this;

      var index;
      dataCenter.some(function (item, i) {
        if (item.value === accountId) {
          index = i;
          return true;
        }
      });
      dataUtil_queryParameters(accountId, dataCenter, index, this.props.dataPipeModel).then(function (data) {
        var _data$userSourceType;

        if (!(data !== null && data !== void 0 && (_data$userSourceType = data.userSourceType) !== null && _data$userSourceType !== void 0 && _data$userSourceType.includes(6))) _this2.include = false;
        var key = 'weChatDataCenterList';
        var types = [6];
        var dataPipeModel = _this2.props.dataPipeModel;
        dataPipeModel && dataPipeModel.registerCallback(key, _this2.showDropdownList);
        filterDataCenter(key, dataCenter, types, dataPipeModel);
      });
    }
  }, {
    key: "componentWillMount",
    value: function componentWillMount() {
      var accountId = this.props.currentAccountId;
      accountId && this.props.handleChangeDataCenter(accountId);
    }
  }, {
    key: "handleChangeDataCenter",
    value: function handleChangeDataCenter(key) {
      src_store.setValue('toggleDataCenter', true);
      this.props.handleChangeDataCenter(key);
      this.setState({
        accountId: key
      });
    }
  }, {
    key: "changeLang",
    value: function changeLang(lang) {
      this.setState({
        lang: lang
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this$props = this.props,
          dataCenter = _this$props.dataCenter,
          QrCodeType = _this$props.QrCodeType,
          currentAccountId = _this$props.currentAccountId;
      return /*#__PURE__*/react.createElement(common_LoginWrapper, WeChat_extends({
        selectType: "WeChat",
        changeLang: this.changeLang
      }, this.props), /*#__PURE__*/react.createElement("div", {
        className: web_CloudHub.formContainer
      }, /*#__PURE__*/react.createElement("div", {
        className: web_CloudHub.content
      }, /*#__PURE__*/react.createElement(web_base_Notification, {
        dataPipeModel: this.props.dataPipeModel
      }), this.state.list && /*#__PURE__*/react.createElement(web_base_DropdownList, {
        name: "accountId",
        list: this.state.list,
        oldDataCenter: dataCenter,
        selectItem: currentAccountId,
        style: web_CloudHub.dropdownList,
        onItemClick: this.handleChangeDataCenter,
        dataPipeModel: this.props.dataPipeModel
      }), /*#__PURE__*/react.createElement(WeChat_PublicQrcode, {
        QrCodeType: QrCodeType,
        accountId: this.state.accountId,
        dataPipeModel: this.props.dataPipeModel,
        lang: this.state.lang
      }))));
    }
  }]);

  return WeChat;
}(react.Component);

function WeChat_PublicQrcode(props) {
  var _useState = (0,react.useState)(''),
      _useState2 = WeChat_slicedToArray(_useState, 2),
      qrCodeUrl = _useState2[0],
      setQrCodeUrl = _useState2[1];

  var lang = props.lang,
      accountId = props.accountId,
      QrCodeType = props.QrCodeType;
  (0,react.useEffect)(function () {
    if (accountId || src_store.accountId) {
      loadYzjQrcode();
    }
  }, [lang, accountId]);

  var loadYzjQrcode = function loadYzjQrcode() {
    var token = uid(false, 15);
    var data = {
      accountId: accountId || src_store.accountId,
      token: token,
      language: lang || src_store.lang
    };

    if (QrCodeType === 'WeChat') {
      Object.assign(data, {
        scantype: 'wxWork'
      });
    } else {
      Object.assign(data, {
        scantype: 'cloudHub'
      });
    }

    getYzjQrcode(data).then(function (data) {
      if (data && data.errorcode) {
        var error = {
          message: data.description || data.description_cn,
          level: data.level || 1,
          time: data.time
        };
        props.dataPipeModel && props.dataPipeModel.sendData({
          type: 'ShowNotification',
          error: error
        });
      }

      setQrCodeUrl(data.redirectUrl);
    });
  };

  return /*#__PURE__*/react.createElement("div", {
    className: web_CloudHub.publicQrcode
  }, qrCodeUrl ? /*#__PURE__*/react.createElement("iframe", {
    frameBorder: "0",
    scrolling: "no",
    style: {
      height: '400px'
    },
    src: qrCodeUrl
  }) : null);
}
/* harmony default export */ var web_WeChat = (WeChat);
;// CONCATENATED MODULE: ./src/page/web/ShortMessageLogin.less
// extracted by mini-css-extract-plugin
/* harmony default export */ var ShortMessageLogin = ({"formContainer":"aaged7ya","title":"vKcjSRXf","content":"mtcyk1Tf","graphicContainer":"_23RtWpjC","graphicCode":"_1Af0fJJL","phoneCodeContainer":"_2OKvHj4b","btn":"_2IWgbFS9","disable":"_31AdAIj0","showPhoneCode":"zelracga","successPanel":"iQba7fyk","successImage":"_1PrHSgxL","text":"_1HsnkvFp","count":"_1-fAaEHL","successSendEmailPanel":"xGQtq1eV"});
;// CONCATENATED MODULE: ./src/page/web/ShortMessageLogin.jsx
function ShortMessageLogin_typeof(obj) { "@babel/helpers - typeof"; return ShortMessageLogin_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, ShortMessageLogin_typeof(obj); }

function ShortMessageLogin_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function ShortMessageLogin_extends() { ShortMessageLogin_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return ShortMessageLogin_extends.apply(this, arguments); }






















function ShortMessageLogin_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function ShortMessageLogin_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function ShortMessageLogin_createClass(Constructor, protoProps, staticProps) { if (protoProps) ShortMessageLogin_defineProperties(Constructor.prototype, protoProps); if (staticProps) ShortMessageLogin_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }

function ShortMessageLogin_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) ShortMessageLogin_setPrototypeOf(subClass, superClass); }

function ShortMessageLogin_setPrototypeOf(o, p) { ShortMessageLogin_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return ShortMessageLogin_setPrototypeOf(o, p); }

function ShortMessageLogin_createSuper(Derived) { var hasNativeReflectConstruct = ShortMessageLogin_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = ShortMessageLogin_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = ShortMessageLogin_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return ShortMessageLogin_possibleConstructorReturn(this, result); }; }

function ShortMessageLogin_possibleConstructorReturn(self, call) { if (call && (ShortMessageLogin_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return ShortMessageLogin_assertThisInitialized(self); }

function ShortMessageLogin_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function ShortMessageLogin_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }

function ShortMessageLogin_getPrototypeOf(o) { ShortMessageLogin_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return ShortMessageLogin_getPrototypeOf(o); }















var ShortMessageLogin_ShortMessageLogin = /*#__PURE__*/function (_Component) {
  ShortMessageLogin_inherits(ShortMessageLogin, _Component);

  var _super = ShortMessageLogin_createSuper(ShortMessageLogin);

  function ShortMessageLogin() {
    ShortMessageLogin_classCallCheck(this, ShortMessageLogin);

    return _super.apply(this, arguments);
  }

  ShortMessageLogin_createClass(ShortMessageLogin, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      var _this = this;

      setTimeout(function () {
        _this.props.dataPipeModel && _this.props.dataPipeModel.sendData({
          type: 'FocusInput',
          name: 'account'
        });
      }, 0);
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      resetStore(src_store);
    }
  }, {
    key: "render",
    value: function render() {
      return /*#__PURE__*/react.createElement(common_LoginWrapper, ShortMessageLogin_extends({
        selectType: "shortMessage"
      }, this.props), /*#__PURE__*/react.createElement(ShortMessage, this.props));
    }
  }]);

  return ShortMessageLogin;
}(react.Component);

var ShortMessage = /*#__PURE__*/function (_Component2) {
  ShortMessageLogin_inherits(ShortMessage, _Component2);

  var _super2 = ShortMessageLogin_createSuper(ShortMessage);

  function ShortMessage(props) {
    var _this2;

    ShortMessageLogin_classCallCheck(this, ShortMessage);

    _this2 = _super2.call(this, props);
    _this2._isMounted = false;
    _this2.state = {
      verifyCodeImg: (loading_default()),
      vCodeTime: 0,
      list: [],
      isLoading: false
    };
    _this2.oldAccount = src_store.account;
    _this2.getVerifyCode = _this2.getVerifyCode.bind(ShortMessageLogin_assertThisInitialized(_this2));
    _this2.handleNextBtnClick = _this2.handleNextBtnClick.bind(ShortMessageLogin_assertThisInitialized(_this2));
    _this2.sendMessage = _this2.sendMessage.bind(ShortMessageLogin_assertThisInitialized(_this2));
    _this2.handleReSendPhoneCode = _this2.handleReSendPhoneCode.bind(ShortMessageLogin_assertThisInitialized(_this2));
    _this2.validateFormData = _this2.validateFormData.bind(ShortMessageLogin_assertThisInitialized(_this2));
    _this2.resetPhoneCodeState = _this2.resetPhoneCodeState.bind(ShortMessageLogin_assertThisInitialized(_this2));
    _this2.showDropdownList = _this2.showDropdownList.bind(ShortMessageLogin_assertThisInitialized(_this2));
    _this2.ListenerFilterDataCenter = _this2.ListenerFilterDataCenter.bind(ShortMessageLogin_assertThisInitialized(_this2));
    _this2.handleEnterKeyDown = _this2.handleEnterKeyDown.bind(ShortMessageLogin_assertThisInitialized(_this2));
    _this2.handleAccountInputBlur = _this2.handleAccountInputBlur.bind(ShortMessageLogin_assertThisInitialized(_this2));
    _this2.handleChangeDataCenter = _this2.handleChangeDataCenter.bind(ShortMessageLogin_assertThisInitialized(_this2));
    _this2.isInitAccount = validateEmail(src_store.account) || isPhoneNumber(src_store.account) || isAdministrator(src_store.account);
    return _this2;
  }

  ShortMessageLogin_createClass(ShortMessage, [{
    key: "showDropdownList",
    value: function showDropdownList(_ref) {
      var data = _ref.data;
      var list = this.state.list || [];
      var isLoad = list.some(function (item) {
        return item.value === data.value;
      });
      if (isLoad) return;

      if (!this.include && list.length !== 0) {
        // this.handleChangeDataCenter(list[0].value)
        this.props.handleChangeDataCenter(list[0].value);
        this.include = true;
      }

      var newList = list.concat(data);
      this.setState({
        list: newList
      });
    }
  }, {
    key: "componentDidMount",
    value: function componentDidMount() {
      var dataCenter = this.props.dataCenter;

      if (dataCenter.length !== 0) {
        this.ListenerFilterDataCenter(this.props.dataCenter, this.props.currentAccountId);
      }

      this._isMounted = true;
      this.getVerifyCode();
      document.addEventListener('keydown', this.handleEnterKeyDown);

      if (!this.isInitAccount) {
        src_store.setValue('account', '');
      }

      resetStore(src_store);
    }
  }, {
    key: "shouldComponentUpdate",
    value: function shouldComponentUpdate(nextProps, nextState) {
      var accountId = nextProps.currentAccountId;

      if (nextProps.dataCenter.length !== 0 && this.props.dataCenter.length === 0) {
        this.ListenerFilterDataCenter(nextProps.dataCenter, accountId);
      }

      return true;
    }
  }, {
    key: "ListenerFilterDataCenter",
    value: function ListenerFilterDataCenter(dataCenter, accountId) {
      var _this3 = this;

      var index = dataCenter.findIndex(function (_ref2) {
        var value = _ref2.value;
        return value === accountId;
      });
      dataUtil_queryParameters(accountId, dataCenter, index, this.props.dataPipeModel).then(function (data) {
        var _data$userSourceType;

        if (!(data !== null && data !== void 0 && (_data$userSourceType = data.userSourceType) !== null && _data$userSourceType !== void 0 && _data$userSourceType.includes(7))) _this3.include = false;

        var _ref3 = data || {},
            userSourceType = _ref3.userSourceType,
            defaultUserSourceType = _ref3.defaultUserSourceType;

        _this3.props.dataPipeModel.sendData({
          type: 'currentAccountIdChange',
          data: {
            userSourceType: userSourceType,
            defaultUserSourceType: defaultUserSourceType
          }
        });
      });
      src_store.setValue('accountId', accountId);
      var key = 'shortMsgDataCenterList';
      var types = [7];
      var dataPipeModel = this.props.dataPipeModel;
      dataPipeModel && dataPipeModel.registerCallback(key, this.showDropdownList);
      filterDataCenter(key, dataCenter, types, dataPipeModel, accountId);
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      this._isMounted = false;
      clearInterval(this.vCodeTimer);
      document.removeEventListener('keydown', this.handleEnterKeyDown);
    }
  }, {
    key: "handleEnterKeyDown",
    value: function handleEnterKeyDown(e) {
      if (e.keyCode === 13) {
        this.handleNextBtnClick();
      }
    }
  }, {
    key: "validateFormData",
    value: function validateFormData() {
      var account = src_store.account,
          verifyCode = src_store.verifyCode,
          phoneCode = src_store.phoneCode;

      if (util_validate.isEmpty(account)) {
        var title = 'accountError';
        var data = intlApi_getLangMsg('login.key051');
        this.props.dataPipeModel && this.props.dataPipeModel.sendData({
          type: title,
          data: data
        });
        return false;
      } else if (util_validate.isEmpty(verifyCode)) {
        var _title = 'verifyCodeError';

        var _data = intlApi_getLangMsg('login.key046');

        this.props.dataPipeModel && this.props.dataPipeModel.sendData({
          type: _title,
          data: _data
        });
        return false;
      } else if (util_validate.isEmpty(phoneCode)) {
        var _title2 = 'phoneCodeError';

        var _data2 = intlApi_getLangMsg('login.key047');

        this.props.dataPipeModel && this.props.dataPipeModel.sendData({
          type: _title2,
          data: _data2
        });
        return false;
      }

      return true;
    }
  }, {
    key: "handleNextBtnClick",
    value: function handleNextBtnClick() {
      if (!this.validateFormData() || this.state.isLoading) return false;
      this.setState({
        isLoading: true
      });
      this.login();
    } // 获取图形验证码

  }, {
    key: "getVerifyCode",
    value: function getVerifyCode() {
      var _this4 = this;

      this.setState({
        verifyCodeImg: (loading_default())
      });
      this.props.dataPipeModel && this.props.dataPipeModel.sendData({
        type: 'FocusInput',
        name: 'verifyCode'
      });
      service_getVerifyCode({
        phone: src_store.account,
        v: uid(false, 8),
        language: src_store.lang
      }).then(function (data) {
        var message = data.description_cn || data.description;

        if (message) {
          var error = {
            message: message,
            level: 1
          };
          _this4.props.dataPipeModel && _this4.props.dataPipeModel.sendData({
            type: 'ShowNotification',
            error: error
          });
          return false;
        }

        _this4.setState({
          verifyCodeImg: data.content || (loading_default())
        });

        _this4.verifyCodeToken = data.loginId;
      });
    } // 发送短信验证码

  }, {
    key: "sendMessage",
    value: function sendMessage() {
      var _this5 = this;

      service_sendMessage({
        useraccount: src_store.account,
        accountId: src_store.accountId,
        verifycode: src_store.verifyCode,
        loginid: this.verifyCodeToken,
        language: src_store.lang,
        isNew: true
      }).then(function (data) {
        _this5.setState({
          isLoading: false
        });

        if (!data.success) {
          var error = {
            message: data.msg || data.description,
            level: data.level || 1
          };
          _this5.props.dataPipeModel && _this5.props.dataPipeModel.sendData({
            type: 'ShowNotification',
            error: error
          });

          _this5.getVerifyCode();
        } else {
          var vCodeTime = data.timeout || 60;
          _this5.vCodeTimer = setInterval(function () {
            if (vCodeTime <= 0) {
              clearInterval(_this5.vCodeTimer);
            } else {
              _this5.setState({
                vCodeTime: --vCodeTime
              });
            }
          }, 1000);
        }
      });
    } // 登录

  }, {
    key: "login",
    value: function login() {
      var _this6 = this;

      var account = src_store.account,
          accountId = src_store.accountId,
          phoneCode = src_store.phoneCode;
      var redirect = getRedirect();

      if (redirect) {
        redirect = decodeURIComponent(redirect);
      }

      smsLogin({
        useraccount: account,
        accountId: accountId,
        smsCode: phoneCode,
        redirect: redirect || 'index.html?formId=pc_main_console',
        loginid: this.verifyCodeToken,
        verifycode: src_store.verifyCode,
        isNew: true,
        language: src_store.lang
      }).then(function (data) {
        var errorcode = data.errorcode;

        _this6.setState({
          isLoading: false
        });

        var msg = data.msg,
            message = data.message,
            description = data.description;
        var errorMessage = msg || message || data.description_cn || description;

        if (errorcode !== 0) {
          var error = {
            message: errorMessage,
            level: data.level || 1
          };
          _this6.props.dataPipeModel && _this6.props.dataPipeModel.sendData({
            type: 'ShowNotification',
            error: error
          });
          return false;
        } else {
          var hashString = window.location.hash !== '#shortMessage' ? window.location.hash : '';

          if (isScript(data.RedirectURL)) {
            var _error = {
              message: intlApi_getLangMsg('login.key101'),
              level: data.level || 1
            };
            _this6.props.dataPipeModel && _this6.props.dataPipeModel.sendData({
              type: 'ShowNotification',
              error: _error
            });
            return false;
          }

          window.location.href = data.RedirectURL + hashString;
        }

        _this6.setState({
          isLoading: false
        });
      })["catch"](function (e) {
        _this6.setState({
          isLoading: false
        });
      });
    }
  }, {
    key: "resetPhoneCodeState",
    value: function resetPhoneCodeState() {
      clearInterval(this.vCodeTimer);
      this.setState({
        vCodeTime: 0
      });
    }
  }, {
    key: "handleReSendPhoneCode",
    value: function handleReSendPhoneCode() {
      var account = src_store.account,
          verifyCode = src_store.verifyCode;

      if (util_validate.isEmpty(account)) {
        var title = 'accountError';
        var data = intlApi_getLangMsg('login.key051');
        this.props.dataPipeModel && this.props.dataPipeModel.sendData({
          type: title,
          data: data
        });
        return false;
      } else if (util_validate.isEmpty(verifyCode)) {
        var _title3 = 'verifyCodeError';

        var _data3 = intlApi_getLangMsg('login.key046');

        this.props.dataPipeModel && this.props.dataPipeModel.sendData({
          type: _title3,
          data: _data3
        });
        return false;
      }

      var vCodeTime = this.state.vCodeTime;
      if (vCodeTime !== 0) return false;
      this.sendMessage();
    } // 账号输入框失去焦点后重新获取图形验证码，隐藏手机验证码输入框

  }, {
    key: "handleAccountInputBlur",
    value: function handleAccountInputBlur() {
      var account = src_store.account;

      if (account !== this.oldAccount) {
        this.oldAccount = account;
        this.props.dataPipeModel.sendData({
          type: 'FocusInput',
          name: 'verifyCode',
          emptyValue: true
        });
        this.getVerifyCode();
        this.resetPhoneCodeState();
      }
    }
  }, {
    key: "handleChangeDataCenter",
    value: function handleChangeDataCenter(key) {
      src_store.setValue('toggleDataCenter', true);
      this.props.handleChangeDataCenter(key);
    }
  }, {
    key: "render",
    value: function render() {
      var _classname, _classname2;

      var _this$state$vCodeTime = this.state.vCodeTime,
          vCodeTime = _this$state$vCodeTime === void 0 ? 0 : _this$state$vCodeTime;
      var _this$props = this.props,
          dataCenter = _this$props.dataCenter,
          currentAccountId = _this$props.currentAccountId;
      var phoneCodeClass = classnames_default()((_classname = {}, ShortMessageLogin_defineProperty(_classname, ShortMessageLogin.phoneCodeContainer, true), ShortMessageLogin_defineProperty(_classname, ShortMessageLogin.showPhoneCode, true), _classname));
      var btnClass = classnames_default()((_classname2 = {}, ShortMessageLogin_defineProperty(_classname2, ShortMessageLogin.btn, true), ShortMessageLogin_defineProperty(_classname2, ShortMessageLogin.disable, vCodeTime !== 0), _classname2));
      var reSendtext = intlApi_getLangMsg('login.key119');
      var btnText = vCodeTime === 0 ? reSendtext : "".concat(reSendtext, "(").concat(vCodeTime, "s)");
      return /*#__PURE__*/react.createElement("div", {
        className: ShortMessageLogin.formContainer
      }, /*#__PURE__*/react.createElement("div", {
        className: ShortMessageLogin.title
      }, intlApi_getLangMsg('login.key109')), /*#__PURE__*/react.createElement(web_base_Notification, {
        dataPipeModel: this.props.dataPipeModel
      }), this.state.list.length > 1 && /*#__PURE__*/react.createElement(web_base_DropdownList, {
        list: this.state.list,
        oldDataCenter: dataCenter,
        selectItem: currentAccountId,
        style: ShortMessageLogin.dropdownList,
        name: "accountId",
        onItemClick: this.handleChangeDataCenter,
        dataPipeModel: this.props.dataPipeModel
      }), /*#__PURE__*/react.createElement("div", {
        className: ShortMessageLogin.content
      }, /*#__PURE__*/react.createElement(StoreContext.Provider, {
        value: src_store
      }, /*#__PURE__*/react.createElement(Input2, {
        dataPipeModel: this.props.dataPipeModel,
        name: "account",
        type: "text",
        placeholder: intlApi_getLangMsg('login.key108'),
        defaultValue: this.isInitAccount ? src_store.account : '',
        onBlur: this.handleAccountInputBlur
      }), /*#__PURE__*/react.createElement("div", {
        className: ShortMessageLogin.graphicContainer
      }, /*#__PURE__*/react.createElement(Input2, {
        dataPipeModel: this.props.dataPipeModel,
        name: "verifyCode",
        type: "text",
        placeholder: intlApi_getLangMsg('login.key024')
      }), /*#__PURE__*/react.createElement("div", {
        className: ShortMessageLogin.graphicCode,
        onClick: this.getVerifyCode
      }, /*#__PURE__*/react.createElement("img", {
        src: this.state.verifyCodeImg
      }))), /*#__PURE__*/react.createElement("div", {
        className: phoneCodeClass
      }, /*#__PURE__*/react.createElement(Input2, {
        dataPipeModel: this.props.dataPipeModel,
        name: "phoneCode",
        type: "text",
        placeholder: intlApi_getLangMsg('login.key025')
      }), /*#__PURE__*/react.createElement("div", {
        className: btnClass,
        onClick: this.handleReSendPhoneCode
      }, btnText)), /*#__PURE__*/react.createElement(base_Button, {
        text: intlApi_getLangMsg('login.key005'),
        dataPipeModel: this.props.dataPipeModel,
        onClick: debounce(this.handleNextBtnClick, 200),
        style: {
          height: '30px',
          width: '30px',
          borderLeftColor: '#FFFFFF'
        },
        isLoading: this.state.isLoading
      }))));
    }
  }]);

  return ShortMessage;
}(react.Component);
/* harmony default export */ var web_ShortMessageLogin = (ShortMessageLogin_ShortMessageLogin);
;// CONCATENATED MODULE: ./src/page/web/index.js




















;// CONCATENATED MODULE: ./src/App.jsx
/* provided dependency */ var App_console = __webpack_require__(3716);
function App_typeof(obj) { "@babel/helpers - typeof"; return App_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, App_typeof(obj); }

function App_extends() { App_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return App_extends.apply(this, arguments); }

function App_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }


















function App_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function App_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function App_createClass(Constructor, protoProps, staticProps) { if (protoProps) App_defineProperties(Constructor.prototype, protoProps); if (staticProps) App_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }

function App_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) App_setPrototypeOf(subClass, superClass); }

function App_setPrototypeOf(o, p) { App_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return App_setPrototypeOf(o, p); }

function App_createSuper(Derived) { var hasNativeReflectConstruct = App_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = App_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = App_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return App_possibleConstructorReturn(this, result); }; }

function App_possibleConstructorReturn(self, call) { if (call && (App_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return App_assertThisInitialized(self); }

function App_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function App_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }

function App_getPrototypeOf(o) { App_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return App_getPrototypeOf(o); }












var App = /*#__PURE__*/function (_Component) {
  App_inherits(App, _Component);

  var _super = App_createSuper(App);

  function App(props) {
    var _this;

    App_classCallCheck(this, App);

    _this = _super.call(this, props);
    _this.state = {
      type: _this.getLoginType(),
      configuration: _this.getConfigCache(),
      dataCenter: [],
      currentAccountId: '',
      languages: [],
      currentLang: '',
      isComplete: '',
      userSourceType: [],
      hasLDAP: true
    };

    _this.loadConfiguration();

    _this.loadDataCenter = _this.loadDataCenter.bind(App_assertThisInitialized(_this));
    _this.loadConfiguration = _this.loadConfiguration.bind(App_assertThisInitialized(_this));
    _this.handleChangeLang = _this.handleChangeLang.bind(App_assertThisInitialized(_this));
    _this.handleChangeDataCenter = _this.handleChangeDataCenter.bind(App_assertThisInitialized(_this));
    _this.dataPipeModel = new src_DataPipeModel();
    _this.getSourceType = _this.getSourceType.bind(App_assertThisInitialized(_this));
    _this.hasLDAP = _this.hasLDAP.bind(App_assertThisInitialized(_this));
    return _this;
  }

  App_createClass(App, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      var _this2 = this;

      this.dataPipeModel.registerCallback('currentAccountIdChange', this.getSourceType);
      this.dataPipeModel.registerCallback('hasLDAP', this.hasLDAP);

      window.onhashchange = function () {
        var type = _this2.getLoginType();

        _this2.setState({
          type: type
        });
      };

      this.loadDataCenter();
      this.initBrowserTab(this.state.configuration);

      try {
        window.loginAfterLoad && window.loginAfterLoad('other') && window.loginAfterLoad('other')();
      } catch (error) {
        App_console.log(error);
      }
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      try {
        window.loginAfterLoad && window.loginAfterLoad('destroy') && window.loginAfterLoad('destroy')();
      } catch (error) {
        App_console.log(error);
      }
    }
  }, {
    key: "hasLDAP",
    value: function hasLDAP(_ref) {
      var _hasLDAP = _ref.hasLDAP;
      this.setState({
        hasLDAP: _hasLDAP
      });
    }
  }, {
    key: "getConfigCache",
    value: function getConfigCache() {
      var configKey = getNameWithCurrentEnvrionment(CONFIG);
      return JSON.parse(window.localStorage.getItem(configKey)) || {};
    }
  }, {
    key: "getLoginType",
    value: function getLoginType() {
      var name = getNameWithCurrentEnvrionment('defaultLoginType');
      var defaultLoginType = window.localStorage.getItem(name); // url参数中指定的登录方式 > 缓存中的登录方式 > 默认登录方式（kingdeeCloud）

      return window.location.hash.slice(1) || defaultLoginType || 'kingdeeCloud';
    }
  }, {
    key: "getSourceType",
    value: function getSourceType(_ref2) {
      var data = _ref2.data;
      var userSourceType = data.userSourceType,
          defaultUserSourceType = data.defaultUserSourceType;
      this.setState({
        userSourceType: userSourceType
      });

      if (window.location.hash.slice(1) === '') {
        var defaultLoginType = getDefaultLoginType(defaultUserSourceType);
        this.setState({
          type: defaultLoginType
        });
        var name = getNameWithCurrentEnvrionment('defaultLoginType');
        window.localStorage.setItem(name, defaultLoginType);
      }
    }
  }, {
    key: "loadDataCenter",
    value: function loadDataCenter() {
      var _this3 = this;

      getAllDataCenter().then(function (data) {
        if (data && data.errorcode) {
          var error = {
            message: data.description || data.description_cn,
            level: data.level || 1
          };
          _this3.dataPipeModel && _this3.dataPipeModel.sendData({
            type: 'ShowNotification',
            error: error
          });
        } else if (!data || !Array.isArray(data) || data.length < 1) {
          var _error = {
            message: intlApi_getLangMsg('login.key107'),
            level: 2
          };
          _this3.dataPipeModel && _this3.dataPipeModel.sendData({
            type: 'ShowNotification',
            error: _error
          });
        }

        var currentAccountId = getCurrentAccountId(data);
        var defaultLanguageKey = getNameWithCurrentEnvrionment(DEFAULT_LANG);
        var oldDefaultLang = window.localStorage.getItem(defaultLanguageKey);
        var oldAccountId = window.localStorage.getItem(getNameWithCurrentEnvrionment(CURRENT_ACCOUNDID)); // oldAccountId && oldAccountId !== currentAccountId 缓存的数据中心与返回的数据中心不一致

        if (src_store.isLazyLoadDefaultLang || oldAccountId && oldAccountId !== currentAccountId) {
          getUserLanguage({
            accountId: currentAccountId
          }).then(function (data) {
            var currentLangInfo = src_store.currentLangInfo;
            var defaultLang = data.defaultLang || 'zh_CN';
            var lang = currentLangInfo.lang,
                exist = currentLangInfo.exist; // store.lang === lang && exist === false 当前语言不存在
            // oldDefaultLang !== defaultLang || store.defaultLang !== defaultLang 缓存的默认语言与返回的默认语言不一致

            if (src_store.lang === lang && exist === false && (oldDefaultLang !== defaultLang || src_store.defaultLang !== defaultLang)) {
              _this3.handleChangeLang(defaultLang);
            } // store.setValue('defaultLang', { [currentAccountId]: defaultLang })


            src_store.setValue('defaultLang', Object.assign({}, src_store.defaultLang, App_defineProperty({}, currentAccountId, defaultLang)));
          });
        }

        var dataCenter = convertDataCenter(data);
        src_store.setValue('dataCenter', dataCenter);

        _this3.setState({
          dataCenter: dataCenter,
          currentAccountId: currentAccountId
        });

        _this3.dataPipeModel.sendData({
          type: 'ValidateLicense',
          currentAccountId: currentAccountId,
          language: src_store.lang
        });

        _this3.dataPipeModel.sendData({
          type: 'dataCenterLoad',
          currentAccountId: currentAccountId
        });
      })["catch"](function (error) {
        _this3.dataPipeModel.sendData({
          type: 'dataCenterLoad',
          currentAccountId: ''
        });

        App_console.log(error);
      });
    }
  }, {
    key: "loadConfiguration",
    value: function loadConfiguration() {
      var _this4 = this;

      var currentAccountIdKey = getNameWithCurrentEnvrionment(CURRENT_ACCOUNDID);
      var currentAccountId = window.localStorage.getItem(currentAccountIdKey);
      var formData = {
        language: src_store.lang
      };

      if (currentAccountId) {
        formData.accountId = currentAccountId;
      }

      service_loadConfiguration(formData).then(function (config) {
        src_store.setValue('isCompleteLoadConfig', true);

        if (config !== '') {
          var kdbrand = config.kdbrand,
              showviewpwdbtn = config.showviewpwdbtn;
          src_store.setValueArr({
            iskdbrand: kdbrand,
            showviewpwdbtn: showviewpwdbtn
          });
          var languages = convertLangData(config.languages);
          var currentLang = getCurrentLang(languages);

          _this4.setState({
            languages: languages,
            currentLang: currentLang
          });

          _this4.handleChangeLang(currentLang);

          var configKey = getNameWithCurrentEnvrionment(CONFIG); // 语言列表数据暂时不需要缓存

          delete config.languages;

          _this4.initBrowserTab(config);

          _this4.setState({
            configuration: config
          });

          window.localStorage.setItem(configKey, JSON.stringify(config));
        }
      }).then(function () {
        _this4.setState({
          isComplete: true
        });
      })["catch"](function () {
        _this4.setState({
          isComplete: true
        });
      });
    } // 通过判断请求加载完毕, 区别返回document默认title

  }, {
    key: "getDefaultDocTitle",
    value: function getDefaultDocTitle() {
      var title = src_store.iskdbrand === '2' ? intlApi_getLangMsg('login.key095') : intlApi_getLangMsg('login.key000');
      return src_store.isCompleteLoadConfig ? title : src_store.loadingText;
    }
  }, {
    key: "initBrowserTab",
    value: function initBrowserTab(config) {
      if (config === undefined) config = {};
      var defaultIcon = './login/img/favicon.ico';
      var tabword = config.tabword;
      document.title = getMultilinguaText(tabword, src_store.lang, this.getDefaultDocTitle());

      try {
        var faviconElement = getFaviconElement();
        var href = getImgFullPath(config.tabimg) || src_store.isCompleteLoadConfig && defaultIcon;

        if (href) {
          faviconElement.href = href;
        }
      } catch (e) {
        App_console.log(e);
      }
    }
  }, {
    key: "handleChangeLang",
    value: function handleChangeLang(lang) {
      var _this5 = this;

      // eventBus.pub_validatelicense({ currentAccountId: store.accountId, language: lang })
      this.dataPipeModel && this.dataPipeModel.sendData({
        type: 'ValidateLicense',
        currentAccountId: src_store.accountId,
        language: lang
      });
      i18n_IntlUniversal.init(lang, function () {
        _this5.setState({
          currentLang: lang
        });

        var tabword = _this5.state.configuration.tabword;
        document.title = getMultilinguaText(tabword, src_store.lang, _this5.getDefaultDocTitle());
      });
      var currentLangKey = getNameWithCurrentEnvrionment(CURRENT_LANG);
      window.localStorage.setItem(currentLangKey, lang);
    }
  }, {
    key: "handleChangeDataCenter",
    value: function handleChangeDataCenter(accountId) {
      var _this6 = this;

      if (!accountId) return;
      if (this.state.currentAccountId === accountId) return;
      this.setState({
        currentAccountId: accountId
      });
      this.dataPipeModel && this.dataPipeModel.sendData({
        type: 'ValidateLicense',
        currentAccountId: accountId,
        language: src_store.lang
      });
      var currentAccountIdKey = getNameWithCurrentEnvrionment(CURRENT_ACCOUNDID);
      window.localStorage.setItem(currentAccountIdKey, accountId);
      service_loadConfiguration({
        accountId: accountId,
        language: src_store.lang
      }).then(function (config) {
        if (config !== '') {
          var kdbrand = config.kdbrand,
              showviewpwdbtn = config.showviewpwdbtn;
          src_store.setValueArr({
            iskdbrand: kdbrand,
            showviewpwdbtn: showviewpwdbtn
          });
          var languages = convertLangData(config.languages);
          var currentLang = getCurrentLang(languages);

          _this6.setState({
            languages: languages,
            currentLang: currentLang
          });

          _this6.handleChangeLang(currentLang);

          var configKey = getNameWithCurrentEnvrionment(CONFIG);

          _this6.initBrowserTab(config);

          _this6.setState({
            configuration: config
          });

          window.localStorage.setItem(configKey, JSON.stringify(config));
        }
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this$state = this.state,
          type = _this$state.type,
          configuration = _this$state.configuration,
          dataCenter = _this$state.dataCenter,
          currentAccountId = _this$state.currentAccountId,
          languages = _this$state.languages,
          currentLang = _this$state.currentLang;
      var props = {
        configuration: configuration,
        currentLang: currentLang,
        languages: languages,
        userSourceType: this.state.userSourceType,
        dataPipeModel: this.dataPipeModel
      };

      if (type === 'cloudHub') {
        return /*#__PURE__*/react.createElement(page_web_CloudHub, App_extends({
          dataCenter: dataCenter,
          currentAccountId: currentAccountId,
          handleChangeDataCenter: this.handleChangeDataCenter
        }, props));
      } else if (type === 'WeChat') {
        return /*#__PURE__*/react.createElement(web_WeChat, App_extends({
          QrCodeType: "WeChat",
          dataCenter: dataCenter,
          currentAccountId: currentAccountId,
          handleChangeDataCenter: this.handleChangeDataCenter,
          languages: languages,
          handleChangeLang: this.handleChangeLang
        }, props));
      } else if (type === 'prompt') {
        return /*#__PURE__*/react.createElement(Prompt_Prompt, App_extends({
          dataCenter: dataCenter,
          currentAccountId: currentAccountId,
          handleChangeDataCenter: this.handleChangeDataCenter,
          languages: languages,
          handleChangeLang: this.handleChangeLang
        }, props));
      } else if (type === 'face') {
        return /*#__PURE__*/react.createElement(page_web_Face, props);
      } else if (type === 'voice') {
        return /*#__PURE__*/react.createElement(page_web_Voice, props);
      } else if (type === 'findPassword') {
        return /*#__PURE__*/react.createElement(web_FindPassword, props);
      } else if (type === 'activeUser') {
        return /*#__PURE__*/react.createElement(ActiveUser, props);
      } else if (type === 'demo') {
        return /*#__PURE__*/react.createElement(Demo_Demo, App_extends({
          dataCenter: dataCenter,
          currentAccountId: currentAccountId,
          handleChangeDataCenter: this.handleChangeDataCenter,
          languages: languages,
          handleChangeLang: this.handleChangeLang
        }, props));
      } else if (type === 'shortMessage') {
        return /*#__PURE__*/react.createElement(web_ShortMessageLogin, App_extends({
          dataCenter: dataCenter,
          currentAccountId: currentAccountId,
          handleChangeDataCenter: this.handleChangeDataCenter,
          languages: languages,
          handleChangeLang: this.handleChangeLang
        }, props));
      } else {
        return /*#__PURE__*/react.createElement(page_web_KingdeeCloud, App_extends({
          dataCenter: dataCenter,
          currentAccountId: currentAccountId,
          handleChangeDataCenter: this.handleChangeDataCenter,
          languages: languages,
          handleChangeLang: this.handleChangeLang,
          isComplete: this.state.isComplete,
          hasLDAP: this.state.hasLDAP
        }, props));
      }
    }
  }]);

  return App;
}(react.Component);

/* harmony default export */ var src_App = (App);
// EXTERNAL MODULE: ../../node_modules/whatwg-fetch/fetch.js
var fetch = __webpack_require__(6168);
;// CONCATENATED MODULE: ./src/util/clientEnv.js



var UNKNOWN = 'unknown'; // 未知类型

var YZJ = 'yzj'; // 云之家移动端

var DESKTOP = 'desktop'; // 云之家桌面端

var OLDDESKTOP = 'isOldClient'; // 老云之家客户端

var WX = 'wx';
var DD = 'dd';
var WELINK = 'welink'; // welink客户端

var WXWORK = 'wxwork'; // 企业微信
// 获取客户端app类型（云之家，微信，v+,unknown)

function getAppType() {
  var agent = navigator.userAgent;

  if (agent.match(/Qing\/.*;(iOS|iPhone|Android).*/)) {
    return YZJ;
  }

  if (agent.match(/App\/cloudhub/)) {
    return DESKTOP;
  }

  if (agent.match(/clientId:10204/)) {
    return OLDDESKTOP;
  }

  if (agent.indexOf('MicroMessenger') > -1) {
    if (agent.indexOf('wxwork') > -1) {
      // 企业微信
      return WXWORK;
    } else {
      // 微信
      return WX;
    }
  } // 钉钉 ding-talk-win/1.0.0 nw(0.14.7) DingTalk(4.79-Release.43) -PC端


  if (agent.indexOf('DingTalk') > -1) {
    // agent.indexOf('dingtalk') > -1 ||
    return DD;
  }

  if (agent.indexOf('welink') > -1 || agent.indexOf('cloudlink') > -1) {
    return WELINK;
  } // todo：其他支持的app类型


  return UNKNOWN;
}
function isDesktop() {
  // return !!navigator.userAgent.match(/App\/cloudhub/)
  return {
    result: !!navigator.userAgent.match(/App\/cloudhub/),
    isOldClient: navigator.userAgent.match(/clientId:10204/)
  };
}
var appType = getAppType();
/* harmony default export */ var clientEnv = ({
  isYzj: appType === YZJ,
  isDesktop: appType === DESKTOP,
  isOldClient: appType === OLDDESKTOP,
  isUnknown: appType === UNKNOWN,
  isVPlus: window.isVPlus === true,
  // 维加
  isWx: appType === WX,
  // 微信
  isDd: appType === DD,
  // 钉钉,
  isWelink: appType === WELINK,
  isWxWork: appType === WXWORK,
  appType: appType
});
;// CONCATENATED MODULE: ./src/util/thirdpartyUtil.js
/* provided dependency */ var thirdpartyUtil_console = __webpack_require__(3716);







 // 是否免登

function isFreeLogin() {
  try {
    var appType = getRedirectQueryString('apptype'); // 钉钉 或 welink

    if (appType === 'dd') return true;
    if (appType === 'wl' && clientEnv.isWelink) return true;
    return false;
  } catch (error) {
    thirdpartyUtil_console.log(error);
    return false;
  }
}
function initThirdparty() {
  var appType = getRedirectQueryString('apptype');

  switch (appType) {
    case 'dd':
      initDD();
      break;

    case 'wl':
      initWL();
      break;

    default:
      break;
  }
}

function initDD() {
  var script = document.createElement('script');
  script.type = 'text/javascript';
  script.src = '//g.alicdn.com/dingding/dingtalk-jsapi/2.6.41/dingtalk.open.js';
  var head = document.getElementsByTagName('head')[0];
  head.appendChild(script);

  script.onload = function () {
    try {
      // 如果能从url参数或者hash里面拿到code,则说明前端发送到后端后端登录失败，直接返回
      // 钉钉免登相关逻辑
      window.dd.ready(function () {
        // 钉钉 corpid
        var corpId = getRedirectQueryString('corpid');
        window.dd.runtime.permission.requestAuthCode({
          corpId: corpId,
          // 企业id
          onSuccess: function onSuccess(_ref) {
            var code = _ref.code;
            // 通过该免登授权码可以获取用户身份
            // const hash = window.location.hash
            // 获取回调url 解码 redirect
            var redirect = getQueryString('redirect');

            if (redirect) {
              redirect = decodeURIComponent(redirect);
              var hasCode = redirect.indexOf('&code=') > -1;

              if (hasCode) {
                // code有时候会验证失败，需要多次获取，直到浏览器报431
                redirect = redirect.replace(/&code=/g, '&errorCode=');
              } // 考虑 hash 的情况


              var hash = window.location.hash;

              if (hash) {
                // const [url, hash] = redirect.split('#')
                redirect = "".concat(redirect).concat(redirect.includes('?') ? '&' : '?', "code=").concat(code).concat(hash);
              } else {
                redirect = "".concat(redirect).concat(redirect.includes('?') ? '&' : '?', "code=").concat(code);
              } // 免登之后的跳转url


              window.location.href = redirect;
            }
          }
        });
      });
    } catch (error) {
      thirdpartyUtil_console.log(error);
    }
  };
}

function initWL() {
  var script = document.createElement('script');
  script.type = 'text/javascript';
  script.src = 'https://open-doc.welink.huaweicloud.com/docs/jsapi/2.0.2/hwh5-cloudonline.js';
  var head = document.getElementsByTagName('head')[0];
  head.appendChild(script);

  script.onload = function () {
    window.HWH5.getAuthCode().then(function (data) {
      var code = data.code; // 用于免登的code

      thirdpartyUtil_console.log('code:', code);
      var redirect = getQueryString('redirect');

      if (redirect) {
        redirect = decodeURIComponent(redirect);
        var hasCode = redirect.indexOf('&code=') > -1;

        if (hasCode) {
          // code有时候会验证失败，需要多次获取，直到浏览器报431
          redirect = redirect.replace(/&code=/g, '&errorCode=');
        } // 考虑 hash 的情况


        var hash = window.location.hash;

        if (hash) {
          redirect = "".concat(redirect).concat(redirect.includes('?') ? '&' : '?', "code=").concat(code).concat(hash);
        } else {
          redirect = "".concat(redirect).concat(redirect.includes('?') ? '&' : '?', "code=").concat(code);
        } // 免登之后的跳转url


        window.location.href = redirect;
      }
    })["catch"](function (error) {
      thirdpartyUtil_console.log(error);
    });
  };
}
;// CONCATENATED MODULE: ./src/index.js
/* provided dependency */ var src_console = __webpack_require__(3716);








window.Promise = (__webpack_require__(9706).Promise);

if (window.loginBeforeLoad) {
  try {
    window.loginBeforeLoad(PCLogin);
  } catch (error) {
    src_console.log(error);
  }
} else {
  PCLogin();
}

function PCLogin() {
  if (isFreeLogin()) {
    // 是否免登, 免登不渲染登录界面
    initThirdparty();
  } else {
    initI18n(function () {
      react_dom.render( /*#__PURE__*/react.createElement(src_App, null), document.getElementById('root'));
    });
  }
}

/***/ }),

/***/ 7421:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

__webpack_require__(5094);

__webpack_require__(4083);

__webpack_require__(8995);

__webpack_require__(9120);

__webpack_require__(8188);

__webpack_require__(8233);

__webpack_require__(4033);

module.exports = Long;
/**
 * wasm optimizations, to do native i64 multiplication and divide
 */

var wasm = null;
/*
try {
  wasm = new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([
    0, 97, 115, 109, 1, 0, 0, 0, 1, 13, 2, 96, 0, 1, 127, 96, 4, 127, 127, 127, 127, 1, 127, 3, 7, 6, 0, 1, 1, 1, 1, 1, 6, 6, 1, 127, 1, 65, 0, 11, 7, 50, 6, 3, 109, 117, 108, 0, 1, 5, 100, 105, 118, 95, 115, 0, 2, 5, 100, 105, 118, 95, 117, 0, 3, 5, 114, 101, 109, 95, 115, 0, 4, 5, 114, 101, 109, 95, 117, 0, 5, 8, 103, 101, 116, 95, 104, 105, 103, 104, 0, 0, 10, 191, 1, 6, 4, 0, 35, 0, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 126, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 127, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 128, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 129, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 130, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11
  ])), {}).exports;
} catch (e) {
  // no wasm support :(
}
*/

/**
 * Constructs a 64 bit two's-complement integer, given its low and high 32 bit values as *signed* integers.
 *  See the from* functions below for more convenient ways of constructing Longs.
 * @exports Long
 * @class A Long class for representing a 64 bit two's-complement integer value.
 * @param {number} low The low (signed) 32 bits of the long
 * @param {number} high The high (signed) 32 bits of the long
 * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
 * @constructor
 */

function Long(low, high, unsigned) {
  /**
     * The low 32 bits as a signed value.
     * @type {number}
     */
  this.low = low | 0;
  /**
     * The high 32 bits as a signed value.
     * @type {number}
     */

  this.high = high | 0;
  /**
     * Whether unsigned or not.
     * @type {boolean}
     */

  this.unsigned = !!unsigned;
} // The internal representation of a long is the two given signed, 32-bit values.
// We use 32-bit pieces because these are the size of integers on which
// Javascript performs bit-operations.  For operations like addition and
// multiplication, we split each number into 16 bit pieces, which can easily be
// multiplied within Javascript's floating-point representation without overflow
// or change in sign.
//
// In the algorithms below, we frequently reduce the negative case to the
// positive case by negating the input(s) and then post-processing the result.
// Note that we must ALWAYS check specially whether those values are MIN_VALUE
// (-2^63) because -MIN_VALUE == MIN_VALUE (since 2^63 cannot be represented as
// a positive number, it overflows back into a negative).  Not handling this
// case would often result in infinite recursion.
//
// Common constant values ZERO, ONE, NEG_ONE, etc. are defined below the from*
// methods on which they depend.

/**
 * An indicator used to reliably determine if an object is a Long or not.
 * @type {boolean}
 * @const
 * @private
 */
// Long.prototype.__isLong__


Object.defineProperty(Long.prototype, '__isLong__', {
  value: true
});
/**
 * @function
 * @param {*} obj Object
 * @returns {boolean}
 * @inner
 */

function isLong(obj) {
  return (obj && obj.__isLong__) === true;
}
/**
 * Tests if the specified object is a Long.
 * @function
 * @param {*} obj Object
 * @returns {boolean}
 */


Long.isLong = isLong;
/**
 * A cache of the Long representations of small integer values.
 * @type {!Object}
 * @inner
 */

var INT_CACHE = {};
/**
 * A cache of the Long representations of small unsigned integer values.
 * @type {!Object}
 * @inner
 */

var UINT_CACHE = {};
/**
 * @param {number} value
 * @param {boolean=} unsigned
 * @returns {!Long}
 * @inner
 */

function fromInt(value, unsigned) {
  var obj, cachedObj, cache;

  if (unsigned) {
    value >>>= 0;

    if (cache = value >= 0 && value < 256) {
      cachedObj = UINT_CACHE[value];

      if (cachedObj) {
        return cachedObj;
      }
    }

    obj = fromBits(value, (value | 0) < 0 ? -1 : 0, true);

    if (cache) {
      UINT_CACHE[value] = obj;
    }

    return obj;
  } else {
    value |= 0;

    if (cache = value >= -128 && value < 128) {
      cachedObj = INT_CACHE[value];

      if (cachedObj) {
        return cachedObj;
      }
    }

    obj = fromBits(value, value < 0 ? -1 : 0, false);

    if (cache) {
      INT_CACHE[value] = obj;
    }

    return obj;
  }
}
/**
 * Returns a Long representing the given 32 bit integer value.
 * @function
 * @param {number} value The 32 bit integer in question
 * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
 * @returns {!Long} The corresponding Long value
 */


Long.fromInt = fromInt;
/**
 * @param {number} value
 * @param {boolean=} unsigned
 * @returns {!Long}
 * @inner
 */

function fromNumber(value, unsigned) {
  if (isNaN(value)) {
    return unsigned ? UZERO : ZERO;
  }

  if (unsigned) {
    if (value < 0) {
      return UZERO;
    }

    if (value >= TWO_PWR_64_DBL) {
      return MAX_UNSIGNED_VALUE;
    }
  } else {
    if (value <= -TWO_PWR_63_DBL) {
      return MIN_VALUE;
    }

    if (value + 1 >= TWO_PWR_63_DBL) {
      return MAX_VALUE;
    }
  }

  if (value < 0) {
    return fromNumber(-value, unsigned).neg();
  }

  return fromBits(value % TWO_PWR_32_DBL | 0, value / TWO_PWR_32_DBL | 0, unsigned);
}
/**
 * Returns a Long representing the given value, provided that it is a finite number. Otherwise, zero is returned.
 * @function
 * @param {number} value The number in question
 * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
 * @returns {!Long} The corresponding Long value
 */


Long.fromNumber = fromNumber;
/**
 * @param {number} lowBits
 * @param {number} highBits
 * @param {boolean=} unsigned
 * @returns {!Long}
 * @inner
 */

function fromBits(lowBits, highBits, unsigned) {
  return new Long(lowBits, highBits, unsigned);
}
/**
 * Returns a Long representing the 64 bit integer that comes by concatenating the given low and high bits. Each is
 *  assumed to use 32 bits.
 * @function
 * @param {number} lowBits The low 32 bits
 * @param {number} highBits The high 32 bits
 * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
 * @returns {!Long} The corresponding Long value
 */


Long.fromBits = fromBits;
/**
 * @function
 * @param {number} base
 * @param {number} exponent
 * @returns {number}
 * @inner
 */

var pow_dbl = Math.pow; // Used 4 times (4*8 to 15+4)

/**
 * @param {string} str
 * @param {(boolean|number)=} unsigned
 * @param {number=} radix
 * @returns {!Long}
 * @inner
 */

function fromString(str, unsigned, radix) {
  if (str.length === 0) {
    throw Error('empty string');
  }

  if (str === 'NaN' || str === 'Infinity' || str === '+Infinity' || str === '-Infinity') {
    return ZERO;
  }

  if (typeof unsigned === 'number') {
    // For goog.math.long compatibility
    radix = unsigned;
    unsigned = false;
  } else {
    unsigned = !!unsigned;
  }

  radix = radix || 10;

  if (radix < 2 || radix > 36) {
    throw RangeError('radix');
  }

  var p;

  if ((p = str.indexOf('-')) > 0) {
    throw Error('interior hyphen');
  } else if (p === 0) {
    return fromString(str.substring(1), unsigned, radix).neg();
  } // Do several (8) digits each time through the loop, so as to
  // minimize the calls to the very expensive emulated div.


  var radixToPower = fromNumber(pow_dbl(radix, 8));
  var result = ZERO;

  for (var i = 0; i < str.length; i += 8) {
    var size = Math.min(8, str.length - i);
    var value = parseInt(str.substring(i, i + size), radix);

    if (size < 8) {
      var power = fromNumber(pow_dbl(radix, size));
      result = result.mul(power).add(fromNumber(value));
    } else {
      result = result.mul(radixToPower);
      result = result.add(fromNumber(value));
    }
  }

  result.unsigned = unsigned;
  return result;
}
/**
 * Returns a Long representation of the given string, written using the specified radix.
 * @function
 * @param {string} str The textual representation of the Long
 * @param {(boolean|number)=} unsigned Whether unsigned or not, defaults to signed
 * @param {number=} radix The radix in which the text is written (2-36), defaults to 10
 * @returns {!Long} The corresponding Long value
 */


Long.fromString = fromString;
/**
 * @function
 * @param {!Long|number|string|!{low: number, high: number, unsigned: boolean}} val
 * @param {boolean=} unsigned
 * @returns {!Long}
 * @inner
 */

function fromValue(val, unsigned) {
  if (typeof val === 'number') {
    return fromNumber(val, unsigned);
  }

  if (typeof val === 'string') {
    return fromString(val, unsigned);
  } // Throws for non-objects, converts non-instanceof Long:


  return fromBits(val.low, val.high, typeof unsigned === 'boolean' ? unsigned : val.unsigned);
}
/**
 * Converts the specified value to a Long using the appropriate from* function for its type.
 * @function
 * @param {!Long|number|string|!{low: number, high: number, unsigned: boolean}} val Value
 * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
 * @returns {!Long}
 */


Long.fromValue = fromValue; // NOTE: the compiler should inline these constant values below and then remove these variables, so there should be
// no runtime penalty for these.

/**
 * @type {number}
 * @const
 * @inner
 */

var TWO_PWR_16_DBL = 1 << 16;
/**
 * @type {number}
 * @const
 * @inner
 */

var TWO_PWR_24_DBL = 1 << 24;
/**
 * @type {number}
 * @const
 * @inner
 */

var TWO_PWR_32_DBL = TWO_PWR_16_DBL * TWO_PWR_16_DBL;
/**
 * @type {number}
 * @const
 * @inner
 */

var TWO_PWR_64_DBL = TWO_PWR_32_DBL * TWO_PWR_32_DBL;
/**
 * @type {number}
 * @const
 * @inner
 */

var TWO_PWR_63_DBL = TWO_PWR_64_DBL / 2;
/**
 * @type {!Long}
 * @const
 * @inner
 */

var TWO_PWR_24 = fromInt(TWO_PWR_24_DBL);
/**
 * @type {!Long}
 * @inner
 */

var ZERO = fromInt(0);
/**
 * Signed zero.
 * @type {!Long}
 */

Long.ZERO = ZERO;
/**
 * @type {!Long}
 * @inner
 */

var UZERO = fromInt(0, true);
/**
 * Unsigned zero.
 * @type {!Long}
 */

Long.UZERO = UZERO;
/**
 * @type {!Long}
 * @inner
 */

var ONE = fromInt(1);
/**
 * Signed one.
 * @type {!Long}
 */

Long.ONE = ONE;
/**
 * @type {!Long}
 * @inner
 */

var UONE = fromInt(1, true);
/**
 * Unsigned one.
 * @type {!Long}
 */

Long.UONE = UONE;
/**
 * @type {!Long}
 * @inner
 */

var NEG_ONE = fromInt(-1);
/**
 * Signed negative one.
 * @type {!Long}
 */

Long.NEG_ONE = NEG_ONE;
/**
 * @type {!Long}
 * @inner
 */

var MAX_VALUE = fromBits(0xFFFFFFFF | 0, 0x7FFFFFFF | 0, false);
/**
 * Maximum signed value.
 * @type {!Long}
 */

Long.MAX_VALUE = MAX_VALUE;
/**
 * @type {!Long}
 * @inner
 */

var MAX_UNSIGNED_VALUE = fromBits(0xFFFFFFFF | 0, 0xFFFFFFFF | 0, true);
/**
 * Maximum unsigned value.
 * @type {!Long}
 */

Long.MAX_UNSIGNED_VALUE = MAX_UNSIGNED_VALUE;
/**
 * @type {!Long}
 * @inner
 */

var MIN_VALUE = fromBits(0, 0x80000000 | 0, false);
/**
 * Minimum signed value.
 * @type {!Long}
 */

Long.MIN_VALUE = MIN_VALUE;
/**
 * @alias Long.prototype
 * @inner
 */

var LongPrototype = Long.prototype;
/**
 * Converts the Long to a 32 bit integer, assuming it is a 32 bit integer.
 * @this {!Long}
 * @returns {number}
 */

LongPrototype.toInt = function toInt() {
  return this.unsigned ? this.low >>> 0 : this.low;
};
/**
 * Converts the Long to a the nearest floating-point representation of this value (double, 53 bit mantissa).
 * @this {!Long}
 * @returns {number}
 */


LongPrototype.toNumber = function toNumber() {
  if (this.unsigned) {
    return (this.high >>> 0) * TWO_PWR_32_DBL + (this.low >>> 0);
  }

  return this.high * TWO_PWR_32_DBL + (this.low >>> 0);
};
/**
 * Converts the Long to a string written in the specified radix.
 * @this {!Long}
 * @param {number=} radix Radix (2-36), defaults to 10
 * @returns {string}
 * @override
 * @throws {RangeError} If `radix` is out of range
 */


LongPrototype.toString = function toString(radix) {
  radix = radix || 10;

  if (radix < 2 || radix > 36) {
    throw RangeError('radix');
  }

  if (this.isZero()) {
    return '0';
  }

  if (this.isNegative()) {
    // Unsigned Longs are never negative
    if (this.eq(MIN_VALUE)) {
      // We need to change the Long value before it can be negated, so we remove
      // the bottom-most digit in this base and then recurse to do the rest.
      var radixLong = fromNumber(radix);
      var div = this.div(radixLong);
      var rem1 = div.mul(radixLong).sub(this);
      return div.toString(radix) + rem1.toInt().toString(radix);
    } else {
      return '-' + this.neg().toString(radix);
    }
  } // Do several (6) digits each time through the loop, so as to
  // minimize the calls to the very expensive emulated div.


  var radixToPower = fromNumber(pow_dbl(radix, 6), this.unsigned);
  var rem = this;
  var result = '';

  while (true) {
    var remDiv = rem.div(radixToPower);
    var intval = rem.sub(remDiv.mul(radixToPower)).toInt() >>> 0;
    var digits = intval.toString(radix);
    rem = remDiv;

    if (rem.isZero()) {
      return digits + result;
    } else {
      while (digits.length < 6) {
        digits = '0' + digits;
      }

      result = '' + digits + result;
    }
  }
};
/**
 * Gets the high 32 bits as a signed integer.
 * @this {!Long}
 * @returns {number} Signed high bits
 */


LongPrototype.getHighBits = function getHighBits() {
  return this.high;
};
/**
 * Gets the high 32 bits as an unsigned integer.
 * @this {!Long}
 * @returns {number} Unsigned high bits
 */


LongPrototype.getHighBitsUnsigned = function getHighBitsUnsigned() {
  return this.high >>> 0;
};
/**
 * Gets the low 32 bits as a signed integer.
 * @this {!Long}
 * @returns {number} Signed low bits
 */


LongPrototype.getLowBits = function getLowBits() {
  return this.low;
};
/**
 * Gets the low 32 bits as an unsigned integer.
 * @this {!Long}
 * @returns {number} Unsigned low bits
 */


LongPrototype.getLowBitsUnsigned = function getLowBitsUnsigned() {
  return this.low >>> 0;
};
/**
 * Gets the number of bits needed to represent the absolute value of this Long.
 * @this {!Long}
 * @returns {number}
 */


LongPrototype.getNumBitsAbs = function getNumBitsAbs() {
  if (this.isNegative()) // Unsigned Longs are never negative
    {
      return this.eq(MIN_VALUE) ? 64 : this.neg().getNumBitsAbs();
    }

  var val = this.high != 0 ? this.high : this.low;

  for (var bit = 31; bit > 0; bit--) {
    if ((val & 1 << bit) != 0) {
      break;
    }
  }

  return this.high != 0 ? bit + 33 : bit + 1;
};
/**
 * Tests if this Long's value equals zero.
 * @this {!Long}
 * @returns {boolean}
 */


LongPrototype.isZero = function isZero() {
  return this.high === 0 && this.low === 0;
};
/**
 * Tests if this Long's value equals zero. This is an alias of {@link Long#isZero}.
 * @returns {boolean}
 */


LongPrototype.eqz = LongPrototype.isZero;
/**
 * Tests if this Long's value is negative.
 * @this {!Long}
 * @returns {boolean}
 */

LongPrototype.isNegative = function isNegative() {
  return !this.unsigned && this.high < 0;
};
/**
 * Tests if this Long's value is positive.
 * @this {!Long}
 * @returns {boolean}
 */


LongPrototype.isPositive = function isPositive() {
  return this.unsigned || this.high >= 0;
};
/**
 * Tests if this Long's value is odd.
 * @this {!Long}
 * @returns {boolean}
 */


LongPrototype.isOdd = function isOdd() {
  return (this.low & 1) === 1;
};
/**
 * Tests if this Long's value is even.
 * @this {!Long}
 * @returns {boolean}
 */


LongPrototype.isEven = function isEven() {
  return (this.low & 1) === 0;
};
/**
 * Tests if this Long's value equals the specified's.
 * @this {!Long}
 * @param {!Long|number|string} other Other value
 * @returns {boolean}
 */


LongPrototype.equals = function equals(other) {
  if (!isLong(other)) {
    other = fromValue(other);
  }

  if (this.unsigned !== other.unsigned && this.high >>> 31 === 1 && other.high >>> 31 === 1) {
    return false;
  }

  return this.high === other.high && this.low === other.low;
};
/**
 * Tests if this Long's value equals the specified's. This is an alias of {@link Long#equals}.
 * @function
 * @param {!Long|number|string} other Other value
 * @returns {boolean}
 */


LongPrototype.eq = LongPrototype.equals;
/**
 * Tests if this Long's value differs from the specified's.
 * @this {!Long}
 * @param {!Long|number|string} other Other value
 * @returns {boolean}
 */

LongPrototype.notEquals = function notEquals(other) {
  return !this.eq(
  /* validates */
  other);
};
/**
 * Tests if this Long's value differs from the specified's. This is an alias of {@link Long#notEquals}.
 * @function
 * @param {!Long|number|string} other Other value
 * @returns {boolean}
 */


LongPrototype.neq = LongPrototype.notEquals;
/**
 * Tests if this Long's value differs from the specified's. This is an alias of {@link Long#notEquals}.
 * @function
 * @param {!Long|number|string} other Other value
 * @returns {boolean}
 */

LongPrototype.ne = LongPrototype.notEquals;
/**
 * Tests if this Long's value is less than the specified's.
 * @this {!Long}
 * @param {!Long|number|string} other Other value
 * @returns {boolean}
 */

LongPrototype.lessThan = function lessThan(other) {
  return this.comp(
  /* validates */
  other) < 0;
};
/**
 * Tests if this Long's value is less than the specified's. This is an alias of {@link Long#lessThan}.
 * @function
 * @param {!Long|number|string} other Other value
 * @returns {boolean}
 */


LongPrototype.lt = LongPrototype.lessThan;
/**
 * Tests if this Long's value is less than or equal the specified's.
 * @this {!Long}
 * @param {!Long|number|string} other Other value
 * @returns {boolean}
 */

LongPrototype.lessThanOrEqual = function lessThanOrEqual(other) {
  return this.comp(
  /* validates */
  other) <= 0;
};
/**
 * Tests if this Long's value is less than or equal the specified's. This is an alias of {@link Long#lessThanOrEqual}.
 * @function
 * @param {!Long|number|string} other Other value
 * @returns {boolean}
 */


LongPrototype.lte = LongPrototype.lessThanOrEqual;
/**
 * Tests if this Long's value is less than or equal the specified's. This is an alias of {@link Long#lessThanOrEqual}.
 * @function
 * @param {!Long|number|string} other Other value
 * @returns {boolean}
 */

LongPrototype.le = LongPrototype.lessThanOrEqual;
/**
 * Tests if this Long's value is greater than the specified's.
 * @this {!Long}
 * @param {!Long|number|string} other Other value
 * @returns {boolean}
 */

LongPrototype.greaterThan = function greaterThan(other) {
  return this.comp(
  /* validates */
  other) > 0;
};
/**
 * Tests if this Long's value is greater than the specified's. This is an alias of {@link Long#greaterThan}.
 * @function
 * @param {!Long|number|string} other Other value
 * @returns {boolean}
 */


LongPrototype.gt = LongPrototype.greaterThan;
/**
 * Tests if this Long's value is greater than or equal the specified's.
 * @this {!Long}
 * @param {!Long|number|string} other Other value
 * @returns {boolean}
 */

LongPrototype.greaterThanOrEqual = function greaterThanOrEqual(other) {
  return this.comp(
  /* validates */
  other) >= 0;
};
/**
 * Tests if this Long's value is greater than or equal the specified's. This is an alias of {@link Long#greaterThanOrEqual}.
 * @function
 * @param {!Long|number|string} other Other value
 * @returns {boolean}
 */


LongPrototype.gte = LongPrototype.greaterThanOrEqual;
/**
 * Tests if this Long's value is greater than or equal the specified's. This is an alias of {@link Long#greaterThanOrEqual}.
 * @function
 * @param {!Long|number|string} other Other value
 * @returns {boolean}
 */

LongPrototype.ge = LongPrototype.greaterThanOrEqual;
/**
 * Compares this Long's value with the specified's.
 * @this {!Long}
 * @param {!Long|number|string} other Other value
 * @returns {number} 0 if they are the same, 1 if the this is greater and -1
 *  if the given one is greater
 */

LongPrototype.compare = function compare(other) {
  if (!isLong(other)) {
    other = fromValue(other);
  }

  if (this.eq(other)) {
    return 0;
  }

  var thisNeg = this.isNegative();
  var otherNeg = other.isNegative();

  if (thisNeg && !otherNeg) {
    return -1;
  }

  if (!thisNeg && otherNeg) {
    return 1;
  } // At this point the sign bits are the same


  if (!this.unsigned) {
    return this.sub(other).isNegative() ? -1 : 1;
  } // Both are positive if at least one is unsigned


  return other.high >>> 0 > this.high >>> 0 || other.high === this.high && other.low >>> 0 > this.low >>> 0 ? -1 : 1;
};
/**
 * Compares this Long's value with the specified's. This is an alias of {@link Long#compare}.
 * @function
 * @param {!Long|number|string} other Other value
 * @returns {number} 0 if they are the same, 1 if the this is greater and -1
 *  if the given one is greater
 */


LongPrototype.comp = LongPrototype.compare;
/**
 * Negates this Long's value.
 * @this {!Long}
 * @returns {!Long} Negated Long
 */

LongPrototype.negate = function negate() {
  if (!this.unsigned && this.eq(MIN_VALUE)) {
    return MIN_VALUE;
  }

  return this.not().add(ONE);
};
/**
 * Negates this Long's value. This is an alias of {@link Long#negate}.
 * @function
 * @returns {!Long} Negated Long
 */


LongPrototype.neg = LongPrototype.negate;
/**
 * Returns the sum of this and the specified Long.
 * @this {!Long}
 * @param {!Long|number|string} addend Addend
 * @returns {!Long} Sum
 */

LongPrototype.add = function add(addend) {
  if (!isLong(addend)) {
    addend = fromValue(addend);
  } // Divide each number into 4 chunks of 16 bits, and then sum the chunks.


  var a48 = this.high >>> 16;
  var a32 = this.high & 0xFFFF;
  var a16 = this.low >>> 16;
  var a00 = this.low & 0xFFFF;
  var b48 = addend.high >>> 16;
  var b32 = addend.high & 0xFFFF;
  var b16 = addend.low >>> 16;
  var b00 = addend.low & 0xFFFF;
  var c48 = 0;
  var c32 = 0;
  var c16 = 0;
  var c00 = 0;
  c00 += a00 + b00;
  c16 += c00 >>> 16;
  c00 &= 0xFFFF;
  c16 += a16 + b16;
  c32 += c16 >>> 16;
  c16 &= 0xFFFF;
  c32 += a32 + b32;
  c48 += c32 >>> 16;
  c32 &= 0xFFFF;
  c48 += a48 + b48;
  c48 &= 0xFFFF;
  return fromBits(c16 << 16 | c00, c48 << 16 | c32, this.unsigned);
};
/**
 * Returns the difference of this and the specified Long.
 * @this {!Long}
 * @param {!Long|number|string} subtrahend Subtrahend
 * @returns {!Long} Difference
 */


LongPrototype.subtract = function subtract(subtrahend) {
  if (!isLong(subtrahend)) {
    subtrahend = fromValue(subtrahend);
  }

  return this.add(subtrahend.neg());
};
/**
 * Returns the difference of this and the specified Long. This is an alias of {@link Long#subtract}.
 * @function
 * @param {!Long|number|string} subtrahend Subtrahend
 * @returns {!Long} Difference
 */


LongPrototype.sub = LongPrototype.subtract;
/**
 * Returns the product of this and the specified Long.
 * @this {!Long}
 * @param {!Long|number|string} multiplier Multiplier
 * @returns {!Long} Product
 */

LongPrototype.multiply = function multiply(multiplier) {
  if (this.isZero()) {
    return ZERO;
  }

  if (!isLong(multiplier)) {
    multiplier = fromValue(multiplier);
  } // use wasm support if present


  if (wasm) {
    var low = wasm.mul(this.low, this.high, multiplier.low, multiplier.high);
    return fromBits(low, wasm.get_high(), this.unsigned);
  }

  if (multiplier.isZero()) {
    return ZERO;
  }

  if (this.eq(MIN_VALUE)) {
    return multiplier.isOdd() ? MIN_VALUE : ZERO;
  }

  if (multiplier.eq(MIN_VALUE)) {
    return this.isOdd() ? MIN_VALUE : ZERO;
  }

  if (this.isNegative()) {
    if (multiplier.isNegative()) {
      return this.neg().mul(multiplier.neg());
    } else {
      return this.neg().mul(multiplier).neg();
    }
  } else if (multiplier.isNegative()) {
    return this.mul(multiplier.neg()).neg();
  } // If both longs are small, use float multiplication


  if (this.lt(TWO_PWR_24) && multiplier.lt(TWO_PWR_24)) {
    return fromNumber(this.toNumber() * multiplier.toNumber(), this.unsigned);
  } // Divide each long into 4 chunks of 16 bits, and then add up 4x4 products.
  // We can skip products that would overflow.


  var a48 = this.high >>> 16;
  var a32 = this.high & 0xFFFF;
  var a16 = this.low >>> 16;
  var a00 = this.low & 0xFFFF;
  var b48 = multiplier.high >>> 16;
  var b32 = multiplier.high & 0xFFFF;
  var b16 = multiplier.low >>> 16;
  var b00 = multiplier.low & 0xFFFF;
  var c48 = 0;
  var c32 = 0;
  var c16 = 0;
  var c00 = 0;
  c00 += a00 * b00;
  c16 += c00 >>> 16;
  c00 &= 0xFFFF;
  c16 += a16 * b00;
  c32 += c16 >>> 16;
  c16 &= 0xFFFF;
  c16 += a00 * b16;
  c32 += c16 >>> 16;
  c16 &= 0xFFFF;
  c32 += a32 * b00;
  c48 += c32 >>> 16;
  c32 &= 0xFFFF;
  c32 += a16 * b16;
  c48 += c32 >>> 16;
  c32 &= 0xFFFF;
  c32 += a00 * b32;
  c48 += c32 >>> 16;
  c32 &= 0xFFFF;
  c48 += a48 * b00 + a32 * b16 + a16 * b32 + a00 * b48;
  c48 &= 0xFFFF;
  return fromBits(c16 << 16 | c00, c48 << 16 | c32, this.unsigned);
};
/**
 * Returns the product of this and the specified Long. This is an alias of {@link Long#multiply}.
 * @function
 * @param {!Long|number|string} multiplier Multiplier
 * @returns {!Long} Product
 */


LongPrototype.mul = LongPrototype.multiply;
/**
 * Returns this Long divided by the specified. The result is signed if this Long is signed or
 *  unsigned if this Long is unsigned.
 * @this {!Long}
 * @param {!Long|number|string} divisor Divisor
 * @returns {!Long} Quotient
 */

LongPrototype.divide = function divide(divisor) {
  if (!isLong(divisor)) {
    divisor = fromValue(divisor);
  }

  if (divisor.isZero()) {
    throw Error('division by zero');
  } // use wasm support if present


  if (wasm) {
    // guard against signed division overflow: the largest
    // negative number / -1 would be 1 larger than the largest
    // positive number, due to two's complement.
    if (!this.unsigned && this.high === -0x80000000 && divisor.low === -1 && divisor.high === -1) {
      // be consistent with non-wasm code path
      return this;
    }

    var low = (this.unsigned ? wasm.div_u : wasm.div_s)(this.low, this.high, divisor.low, divisor.high);
    return fromBits(low, wasm.get_high(), this.unsigned);
  }

  if (this.isZero()) {
    return this.unsigned ? UZERO : ZERO;
  }

  var approx, rem, res;

  if (!this.unsigned) {
    // This section is only relevant for signed longs and is derived from the
    // closure library as a whole.
    if (this.eq(MIN_VALUE)) {
      if (divisor.eq(ONE) || divisor.eq(NEG_ONE)) {
        return MIN_VALUE;
      } // recall that -MIN_VALUE == MIN_VALUE
      else if (divisor.eq(MIN_VALUE)) {
        return ONE;
      } else {
        // At this point, we have |other| >= 2, so |this/other| < |MIN_VALUE|.
        var halfThis = this.shr(1);
        approx = halfThis.div(divisor).shl(1);

        if (approx.eq(ZERO)) {
          return divisor.isNegative() ? ONE : NEG_ONE;
        } else {
          rem = this.sub(divisor.mul(approx));
          res = approx.add(rem.div(divisor));
          return res;
        }
      }
    } else if (divisor.eq(MIN_VALUE)) {
      return this.unsigned ? UZERO : ZERO;
    }

    if (this.isNegative()) {
      if (divisor.isNegative()) {
        return this.neg().div(divisor.neg());
      }

      return this.neg().div(divisor).neg();
    } else if (divisor.isNegative()) {
      return this.div(divisor.neg()).neg();
    }

    res = ZERO;
  } else {
    // The algorithm below has not been made for unsigned longs. It's therefore
    // required to take special care of the MSB prior to running it.
    if (!divisor.unsigned) {
      divisor = divisor.toUnsigned();
    }

    if (divisor.gt(this)) {
      return UZERO;
    }

    if (divisor.gt(this.shru(1))) // 15 >>> 1 = 7 ; with divisor = 8 ; true
      {
        return UONE;
      }

    res = UZERO;
  } // Repeat the following until the remainder is less than other:  find a
  // floating-point that approximates remainder / other *from below*, add this
  // into the result, and subtract it from the remainder.  It is critical that
  // the approximate value is less than or equal to the real value so that the
  // remainder never becomes negative.


  rem = this;

  while (rem.gte(divisor)) {
    // Approximate the result of division. This may be a little greater or
    // smaller than the actual value.
    approx = Math.max(1, Math.floor(rem.toNumber() / divisor.toNumber())); // We will tweak the approximate result by changing it in the 48-th digit or
    // the smallest non-fractional digit, whichever is larger.

    var log2 = Math.ceil(Math.log(approx) / Math.LN2);
    var delta = log2 <= 48 ? 1 : pow_dbl(2, log2 - 48); // Decrease the approximation until it is smaller than the remainder.  Note
    // that if it is too large, the product overflows and is negative.

    var approxRes = fromNumber(approx);
    var approxRem = approxRes.mul(divisor);

    while (approxRem.isNegative() || approxRem.gt(rem)) {
      approx -= delta;
      approxRes = fromNumber(approx, this.unsigned);
      approxRem = approxRes.mul(divisor);
    } // We know the answer can't be zero... and actually, zero would cause
    // infinite recursion since we would make no progress.


    if (approxRes.isZero()) {
      approxRes = ONE;
    }

    res = res.add(approxRes);
    rem = rem.sub(approxRem);
  }

  return res;
};
/**
 * Returns this Long divided by the specified. This is an alias of {@link Long#divide}.
 * @function
 * @param {!Long|number|string} divisor Divisor
 * @returns {!Long} Quotient
 */


LongPrototype.div = LongPrototype.divide;
/**
 * Returns this Long modulo the specified.
 * @this {!Long}
 * @param {!Long|number|string} divisor Divisor
 * @returns {!Long} Remainder
 */

LongPrototype.modulo = function modulo(divisor) {
  if (!isLong(divisor)) {
    divisor = fromValue(divisor);
  } // use wasm support if present


  if (wasm) {
    var low = (this.unsigned ? wasm.rem_u : wasm.rem_s)(this.low, this.high, divisor.low, divisor.high);
    return fromBits(low, wasm.get_high(), this.unsigned);
  }

  return this.sub(this.div(divisor).mul(divisor));
};
/**
 * Returns this Long modulo the specified. This is an alias of {@link Long#modulo}.
 * @function
 * @param {!Long|number|string} divisor Divisor
 * @returns {!Long} Remainder
 */


LongPrototype.mod = LongPrototype.modulo;
/**
 * Returns this Long modulo the specified. This is an alias of {@link Long#modulo}.
 * @function
 * @param {!Long|number|string} divisor Divisor
 * @returns {!Long} Remainder
 */

LongPrototype.rem = LongPrototype.modulo;
/**
 * Returns the bitwise NOT of this Long.
 * @this {!Long}
 * @returns {!Long}
 */

LongPrototype.not = function not() {
  return fromBits(~this.low, ~this.high, this.unsigned);
};
/**
 * Returns the bitwise AND of this Long and the specified.
 * @this {!Long}
 * @param {!Long|number|string} other Other Long
 * @returns {!Long}
 */


LongPrototype.and = function and(other) {
  if (!isLong(other)) {
    other = fromValue(other);
  }

  return fromBits(this.low & other.low, this.high & other.high, this.unsigned);
};
/**
 * Returns the bitwise OR of this Long and the specified.
 * @this {!Long}
 * @param {!Long|number|string} other Other Long
 * @returns {!Long}
 */


LongPrototype.or = function or(other) {
  if (!isLong(other)) {
    other = fromValue(other);
  }

  return fromBits(this.low | other.low, this.high | other.high, this.unsigned);
};
/**
 * Returns the bitwise XOR of this Long and the given one.
 * @this {!Long}
 * @param {!Long|number|string} other Other Long
 * @returns {!Long}
 */


LongPrototype.xor = function xor(other) {
  if (!isLong(other)) {
    other = fromValue(other);
  }

  return fromBits(this.low ^ other.low, this.high ^ other.high, this.unsigned);
};
/**
 * Returns this Long with bits shifted to the left by the given amount.
 * @this {!Long}
 * @param {number|!Long} numBits Number of bits
 * @returns {!Long} Shifted Long
 */


LongPrototype.shiftLeft = function shiftLeft(numBits) {
  if (isLong(numBits)) {
    numBits = numBits.toInt();
  }

  if ((numBits &= 63) === 0) {
    return this;
  } else if (numBits < 32) {
    return fromBits(this.low << numBits, this.high << numBits | this.low >>> 32 - numBits, this.unsigned);
  } else {
    return fromBits(0, this.low << numBits - 32, this.unsigned);
  }
};
/**
 * Returns this Long with bits shifted to the left by the given amount. This is an alias of {@link Long#shiftLeft}.
 * @function
 * @param {number|!Long} numBits Number of bits
 * @returns {!Long} Shifted Long
 */


LongPrototype.shl = LongPrototype.shiftLeft;
/**
 * Returns this Long with bits arithmetically shifted to the right by the given amount.
 * @this {!Long}
 * @param {number|!Long} numBits Number of bits
 * @returns {!Long} Shifted Long
 */

LongPrototype.shiftRight = function shiftRight(numBits) {
  if (isLong(numBits)) {
    numBits = numBits.toInt();
  }

  if ((numBits &= 63) === 0) {
    return this;
  } else if (numBits < 32) {
    return fromBits(this.low >>> numBits | this.high << 32 - numBits, this.high >> numBits, this.unsigned);
  } else {
    return fromBits(this.high >> numBits - 32, this.high >= 0 ? 0 : -1, this.unsigned);
  }
};
/**
 * Returns this Long with bits arithmetically shifted to the right by the given amount. This is an alias of {@link Long#shiftRight}.
 * @function
 * @param {number|!Long} numBits Number of bits
 * @returns {!Long} Shifted Long
 */


LongPrototype.shr = LongPrototype.shiftRight;
/**
 * Returns this Long with bits logically shifted to the right by the given amount.
 * @this {!Long}
 * @param {number|!Long} numBits Number of bits
 * @returns {!Long} Shifted Long
 */

LongPrototype.shiftRightUnsigned = function shiftRightUnsigned(numBits) {
  if (isLong(numBits)) numBits = numBits.toInt();
  if ((numBits &= 63) === 0) return this;
  if (numBits < 32) return fromBits(this.low >>> numBits | this.high << 32 - numBits, this.high >>> numBits, this.unsigned);
  if (numBits === 32) return fromBits(this.high, 0, this.unsigned);
  return fromBits(this.high >>> numBits - 32, 0, this.unsigned);
};
/**
 * Returns this Long with bits logically shifted to the right by the given amount. This is an alias of {@link Long#shiftRightUnsigned}.
 * @function
 * @param {number|!Long} numBits Number of bits
 * @returns {!Long} Shifted Long
 */


LongPrototype.shru = LongPrototype.shiftRightUnsigned;
/**
 * Returns this Long with bits logically shifted to the right by the given amount. This is an alias of {@link Long#shiftRightUnsigned}.
 * @function
 * @param {number|!Long} numBits Number of bits
 * @returns {!Long} Shifted Long
 */

LongPrototype.shr_u = LongPrototype.shiftRightUnsigned;
/**
 * Returns this Long with bits rotated to the left by the given amount.
 * @this {!Long}
 * @param {number|!Long} numBits Number of bits
 * @returns {!Long} Rotated Long
 */

LongPrototype.rotateLeft = function rotateLeft(numBits) {
  var b;
  if (isLong(numBits)) numBits = numBits.toInt();
  if ((numBits &= 63) === 0) return this;
  if (numBits === 32) return fromBits(this.high, this.low, this.unsigned);

  if (numBits < 32) {
    b = 32 - numBits;
    return fromBits(this.low << numBits | this.high >>> b, this.high << numBits | this.low >>> b, this.unsigned);
  }

  numBits -= 32;
  b = 32 - numBits;
  return fromBits(this.high << numBits | this.low >>> b, this.low << numBits | this.high >>> b, this.unsigned);
};
/**
 * Returns this Long with bits rotated to the left by the given amount. This is an alias of {@link Long#rotateLeft}.
 * @function
 * @param {number|!Long} numBits Number of bits
 * @returns {!Long} Rotated Long
 */


LongPrototype.rotl = LongPrototype.rotateLeft;
/**
 * Returns this Long with bits rotated to the right by the given amount.
 * @this {!Long}
 * @param {number|!Long} numBits Number of bits
 * @returns {!Long} Rotated Long
 */

LongPrototype.rotateRight = function rotateRight(numBits) {
  var b;
  if (isLong(numBits)) numBits = numBits.toInt();
  if ((numBits &= 63) === 0) return this;
  if (numBits === 32) return fromBits(this.high, this.low, this.unsigned);

  if (numBits < 32) {
    b = 32 - numBits;
    return fromBits(this.high << b | this.low >>> numBits, this.low << b | this.high >>> numBits, this.unsigned);
  }

  numBits -= 32;
  b = 32 - numBits;
  return fromBits(this.low << b | this.high >>> numBits, this.high << b | this.low >>> numBits, this.unsigned);
};
/**
 * Returns this Long with bits rotated to the right by the given amount. This is an alias of {@link Long#rotateRight}.
 * @function
 * @param {number|!Long} numBits Number of bits
 * @returns {!Long} Rotated Long
 */


LongPrototype.rotr = LongPrototype.rotateRight;
/**
 * Converts this Long to signed.
 * @this {!Long}
 * @returns {!Long} Signed long
 */

LongPrototype.toSigned = function toSigned() {
  if (!this.unsigned) {
    return this;
  }

  return fromBits(this.low, this.high, false);
};
/**
 * Converts this Long to unsigned.
 * @this {!Long}
 * @returns {!Long} Unsigned long
 */


LongPrototype.toUnsigned = function toUnsigned() {
  if (this.unsigned) {
    return this;
  }

  return fromBits(this.low, this.high, true);
};
/**
 * Converts this Long to its byte representation.
 * @param {boolean=} le Whether little or big endian, defaults to big endian
 * @this {!Long}
 * @returns {!Array.<number>} Byte representation
 */


LongPrototype.toBytes = function toBytes(le) {
  return le ? this.toBytesLE() : this.toBytesBE();
};
/**
 * Converts this Long to its little endian byte representation.
 * @this {!Long}
 * @returns {!Array.<number>} Little endian byte representation
 */


LongPrototype.toBytesLE = function toBytesLE() {
  var hi = this.high;
  var lo = this.low;
  return [lo & 0xff, lo >>> 8 & 0xff, lo >>> 16 & 0xff, lo >>> 24, hi & 0xff, hi >>> 8 & 0xff, hi >>> 16 & 0xff, hi >>> 24];
};
/**
 * Converts this Long to its big endian byte representation.
 * @this {!Long}
 * @returns {!Array.<number>} Big endian byte representation
 */


LongPrototype.toBytesBE = function toBytesBE() {
  var hi = this.high;
  var lo = this.low;
  return [hi >>> 24, hi >>> 16 & 0xff, hi >>> 8 & 0xff, hi & 0xff, lo >>> 24, lo >>> 16 & 0xff, lo >>> 8 & 0xff, lo & 0xff];
};
/**
 * Creates a Long from its byte representation.
 * @param {!Array.<number>} bytes Byte representation
 * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
 * @param {boolean=} le Whether little or big endian, defaults to big endian
 * @returns {Long} The corresponding Long value
 */


Long.fromBytes = function fromBytes(bytes, unsigned, le) {
  return le ? Long.fromBytesLE(bytes, unsigned) : Long.fromBytesBE(bytes, unsigned);
};
/**
 * Creates a Long from its little endian byte representation.
 * @param {!Array.<number>} bytes Little endian byte representation
 * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
 * @returns {Long} The corresponding Long value
 */


Long.fromBytesLE = function fromBytesLE(bytes, unsigned) {
  return new Long(bytes[0] | bytes[1] << 8 | bytes[2] << 16 | bytes[3] << 24, bytes[4] | bytes[5] << 8 | bytes[6] << 16 | bytes[7] << 24, unsigned);
};
/**
 * Creates a Long from its big endian byte representation.
 * @param {!Array.<number>} bytes Big endian byte representation
 * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
 * @returns {Long} The corresponding Long value
 */


Long.fromBytesBE = function fromBytesBE(bytes, unsigned) {
  return new Long(bytes[4] << 24 | bytes[5] << 16 | bytes[6] << 8 | bytes[7], bytes[0] << 24 | bytes[1] << 16 | bytes[2] << 8 | bytes[3], unsigned);
};

/***/ }),

/***/ 8485:
/***/ (function(module) {

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAMAAAANmfvwAAAAgVBMVEUAAADm6vHl6fLl6vLm6vLm6fLm6fHm6vLn6/Lm6fPn6vHq6vXm7/fo///l6fGAk7ybqsvh5u/X3urT2uifrszk6PHQ1ubCy9+7xtuyvteuutWVpcfa4OvL0+S+x92jsM+LnMKFmL/c4eyRosWHmsDe4u7Gz+GntdG3wtmrt9OqttK0CazhAAAADnRSTlMA8vfZv6+knHNSSTEfC4D6l18AAAFPSURBVDjLlZTZtoIwDEWLTOKQlBmZFRz//wMvNqXARVeX+ykPZzXJSVI24+i5lmkYpuV6R/aJvb0BxcberwQHB/7hHJaKnQErjN1csYWPbBcKjWYHX5G5DqoOP73zroge4VQP1eyMgtMZW95EBSJXIkf4AUTQIU9EdB20GUje/tgUlm1bwcg1Uhp7cF16yvsAJnyOofT5yDyKKqxhjt83QHjMpeDex7DghD4FLrMoKDgsCfMLBRYzpaSBL5hM+tZ0sKTua+neKMmog4kI25gkYyL/vCzmktzxJhNZQKT4nHoK8mhQZXEpynWnLnmp5PSC8Ngl66QmKesqTFJ4YCveQjwBeGIARI4RCoI4Dd7zehZpPAxAjJEo8JwHyS0R6bKuvlY0xmkZ4EV+jh0imblXK7UixxetlFrMNSEtpn699UeiPzX9werP/ofPQ/8F/QEEBzeJHmxPAQAAAABJRU5ErkJggg=="

/***/ }),

/***/ 3086:
/***/ (function(module) {

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAMAAAANmfvwAAAAolBMVEUAAABEkPxEkPxEj/xEj/tEkPxEj/xFkPxFkP1Ej/xGj/xJkv9KlP9Gov9FkPxEkPxEj/z///9anPtIkvv7/P6QvPxxqvxkovten/tOlfvL4P2lyf2Muvz1+f7y9/7g7P7F3P3A2f2qzP2BtPxppftUmfvt9f7p8f7P4v2x0P2hx/2Gt/x6sPzb6f7Y5/7S5P7I3v3G3f271v2z0f2awvy10/2agZH4AAAAEHRSTlMA9/Pw2b+knHNSSTEfC66vEyWHyQAAAWBJREFUOMuFlOmygjAMhSuCiIgm7DsIuO/Lff9Xu0JLtaLD9+sMc4akp0nJG4amKrIkyYqqGeQb+mwAnMFM7ximI/hgNBUdkyF0GE7eHWP4ylhw9Hgm8BNWa8r7CPZ/m+yUP7xXP7Tn9ixWlOAqvOVHG0NuGjV5AMXPMKzoz3aJ7QCjzmdOpbleHYBXzLH1zJ6ps0zD1IcX1sb2WM4G0ahyMYZ3gtWCKY2oVNxTCwQim31QiULF+QIiXrSkQiEyFccF/EAmEhWLDETilDUntRYHPRC44JpZ2kJBEgqOZXWzS1ZIAcoet8Axo/zpcsBs2lX5KXFjMlkiNklf0akPrUHLDl0zdr2qhAftw0fc1dEZfKgLvNpY41ul6QLA9ry36gsgc2CcMCn86uA25ZwsDlx2jXwYYFssgWOlSMPU+Uh1KPBOR4oPZhefD2b/ePcvSf+q9S9s/9qL6PNfj0f/E/QPsCFANYuejh0AAAAASUVORK5CYII="

/***/ }),

/***/ 5319:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

module.exports = __webpack_require__.p + "img/52e0a617.banner.jpg";

/***/ }),

/***/ 5841:
/***/ (function(module) {

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAMAAAANmfvwAAAAe1BMVEUAAADm6vDl6fHl6vHm6vDm6fDm6fHm6vDn6/Lm6fPn6vHq6vXm7/fo///l6fCbq8qJm8GAlL3b4eyruNKntdGmtNG8xtvi5u/T2+fN1eSwvdXf5e2GmcDW3enFzt+1wNijsc6ercyWp8iPoMSDlr7Cy963wtmRo8WQocW2fWrpAAAADnRSTlMA8vfZv6+knHNSSTEfC4D6l18AAAEMSURBVDjLlZTploIwDIVbtlqk6SooMo7bLO//hHOEVCoDVr8/cHpuk/Q2KQkQnGUppWnGuCBzrPME7iT5mkypCphQVI+KksI/aBkqVjDLKqYINSUsgrkqCovQoeYCnlD0fsBTbv7kEFBLdf1tDYzkhIjA00bqzdehVWob+CwIh5H9967/yC6IwwkDZGdPFnc3FztKGMnw71MrqXSNJWl7ACQjKcbQLUBz1EMcIy/6vIeelKBvUg6xzD1v59A9L1E1TGg7lPhExy1MsMonymCeD+V8uexh/SSR8/XH+ENzCDDWObe54erGW4cXsEwi8BqXyV9phnhLxRsz3t7xIYmPWnxg42P/xuMRf4L+AO/aNDRf2eP9AAAAAElFTkSuQmCC"

/***/ }),

/***/ 4401:
/***/ (function(module) {

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAMAAAANmfvwAAAAjVBMVEUAAABDkPtDkPtEj/tEj/pEkPtEj/pDkPpFkPtEj/xGj/xEkv9KlP9Gov9DkPtDkPtEj/rL4P220/1Dj/vu9f79/v+PvPzh7f5jovpSmPr5+/6szvyhx/yaw/yAtPtWmvpJkvry9/7o8f7P4v3G3f2+2P2w0Pyvz/xsqPten/pNlfrW5v3S5P1zq/txqvv32+QdAAAAEHRSTlMA9/Pw2b+knHNSSTEfC66vEyWHyQAAARZJREFUOMuVlNl2gyAQQHEPKgYUNC5Rs7fp8v+f16YMCcYQmvugc/QKOMyANAiOAt91/SDCBD0iyRx6xcmSmZCGBZ1QhOnUiD06w4t1Y0EfsrAZuhNTIzBX6pkVT645pE8I//JRPFOKS36WVKPcbZuqq7UnGUJEy+nIRN73Hd+utDwThOmNev19uZ3ZRhsHo0iFb+3+BF+P1fGmRCiAaC0446KEJTVtr5QA+TL4Et3v9SDkOAOrxMdZvvGRKwO2k2MN13k3uQxcpfCS3tFyUNREh9W9cgLFh+XOeee5Wm40eb5nwGdT1eqnsa4Mx1xRjip1sAFmHALbaCb7TzHYS8pemPbytjeJvdXsDftK2wPJ0nR42I+gHy7+O/KIyh3OAAAAAElFTkSuQmCC"

/***/ }),

/***/ 7962:
/***/ (function(module) {

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKgAAABgCAMAAAC+LslfAAAB4FBMVEUAAAD29v/+/v/x9fn2+Pjz9fvx9Pnx9vzz9vvy9fzz9/vw8fj////y9frx9vry9frz9fr7+/zz9vr09vrz8/ny9vrz9fvx9Pny9vrw9vry8/jy9Prz8//y9fny9fzy9fry9frw9Pfy9vry9vvy9fry9frz9vry9vry9fzz8/Py9fvy9vr09/vx9Prz9frz9vrx9fr0+vry9vvz9fuVp/Xy9fv09vvy9vvx9frz+fnz8/Py9fv09/ry9Prz8//r7vPw8/ibvPgnb/Umb/Xy9fry9fvz9vry9fry9vv6///y9fvx9vr09PoocPfz9vsncPX09vsocPgpb/knb/ImZvJvnfEnb/Xz9fry9vsnb/UmcPbz9fomb/fq7fN0ovcnb/crcvVakPNun/bs7vM5evXx8fotaf88ffbd5/sxdvXU4vmkw/iOs/hGhPeyyvjy9ft0pPje5/t9qPmcu/duoPfP3vqNtPeAqPPy9fonb/Xe4ebq7fL////t8PXj5uvJ2/xdk/dAgPUwdfXX5Ps0ePUqcfWpxflZkPfr8fvk6/nF2Pl2o/e+1PuRtfeIsPmxyvh9qPdJhvbP2Ofw9f7b5/2iwfre5/mBq/hqm/dhlfbCz+g3efWPr+ykvOq5yujZ3ubaiv+uAAAAeHRSTlMAHANID4JWL2JPPCMJdjaJjwx7bymvfFw/NyZpFllQjGpD28ec4qiiSRS1YUK81ZRpLpaEA+lybs8pFu9cwhXwwf7q3tC2pZ1yBvPDLhz38HZtNCcU/PvQybWWfFbPvJ53+OfiqDYR8+vm3dO7tbOwraufhHtkQSxPHo8FAAAEc0lEQVRo3u3ZeVsSQRzA8RHDbisrsqgoybLTSoqMioguqCztMM3K7vu+ZnIrufE2u++32uwCK+5vdocR6llqP8/D7Mpf32d2d4QBWSwWi8VisVj+eyHnXn+PPr89hEyh4nwPhx2ZQQh0An5kBs4ePmQGe8sl1G+FltiVcgmtL5fQFn+ZhGKfv0xCcUv9FX9ZhJaYb04IUeYPxXgOosoh1IeocgjFiLJC/7/QlhNTEGX+0BNIYf7QPzGfi2ev3m/+0Ap7XTgcbjH7pV/r2uZTYGzqh2n5pm1ZOOf1S9krrHqlvPEaF6CvPxkYGgok+/tKuzzZmupVoAuUc6RHBiJEFRkYSeOSdTbWjQNhYhMaG40TjfjosRJ1ujblAZdad0JfQmOnE4ThzMWSpNbs2NHeviMHgykF2bqh36NEx/FWVLRKd85Zyo3BlMJqdujYJWKg4xQqzpR1u2VHKOWI4ZSCaGbo1wgxFDyJiuLdOBGGU6ppZof+jBOOfW2oCHserJsIs6ZUTdYN/Qo7YWkxc7proQZmTCl/De2LkAIEi7hPt67WwKwp5a6hX0hBLh1pqg2hyZi5RguzppQ3oQECDKfTwwQIhH113nlIXMMqLWy4UmKmj3D9/CxRn4lW9Cb9OLGpsvA1qXZFU+Ncu7N2/tasRko5TiZ0gAAfJOoDAU7Xyxy2wjKrXHN1TSI0liDAJ4n6RIDE7TpZQXsSC+xzDGBAL1GtP02gxKAkDSYIdHm/4gTiWmw3JB76K05Y3r4lLPHzbsUMxLGkxpFz7lwN/UN+KaPyjkM89AcRcmevYuEsZGje/NnGCr9HmVee7/KBjCpkaIPX652f5ZXPNbzioRGiI0pYbizMWGUznFDnZqdi82b5pY5UdhQOHWPfocOD7/oJ06ODGUcNn/hpPJx7FGLkRAbfSdQbwnT/UEaV4ZXftWuRasI5pRyFQ5MESEmSQejdxgzHMofL5Vi2BLFMr+IRDg0QIJHq7Y3phl5wTeRcywrlEg4dIkxv9EObZHZ7ZqTHmgoEVDbkqVSNnzf8hdAarcNwL2XluA0blJGio0J5R/zSi4Y+3H6Y2q6i5/C5msEl/jCJhj5eAYGLX11dfe1atRHx5Uk09Mm09Ypp9JgD/vNPZduiUE6FQ/tEQ58tgxrAgt/cvEDVTGnPm7GwiFjoreUM08F3JC4sbEAs9F4lC9hW5sLCRsRCn9ayII2dS/PspOhIX3kjFpaOi4QeX8wEvi5xYXGjBIim3kvS+1SUAFenHqUyT+4WKnMEn6RmcWFxsYSmMhmTsmJJTeuZ50uYkIbHZvPQVz4PlXcWxkU/ThEpT0QzoRVsSJgbi4IbEKleVUpzh75Yq9hDyUd1RMK8eBICpEDd83QgYaF2zFHEJlmHTQ8SVyFQWsy2Y/FCXncYi4p9K2gj1wTa9hWwNW4KJ4Oc626K+ZSd6uD8fGMerccNfhAzlWMXz+j9xGg2xzr3gYeo03yZMk9XZ5Cogp1dHmRe19u6Wru7W7variOLxWL5J/wGtajiT94m3P8AAAAASUVORK5CYII="

/***/ }),

/***/ 7777:
/***/ (function(module) {

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKgAAABgCAMAAAC+LslfAAAC5VBMVEUAAADx9vrx9fnz9vbw9fv29v/y9fn////y9fry9/vy9fzy9frw8Pjx9Pny9Pny9vr////z9fvz8/n7+/vx9fn29v/z8//z8/j////09vrz9fvy8vjz9fvz9Pry9fzy9vry9fvy9fry9Pnx9fzx9Prz9/vy9fny9frz9vrx9fry9vvz9fnz9/uqsezz9fvy9fvx9frx9Pny9fvy9Pr09vry9frz9vrz9fry9fvy9vvy9vrr7fP09vvy9vrz9vry9vvy9fny9fvz+fnx9fny9vry9frx9Pry9fvz8/Py9vvz9fnx9fry9vrz9vrz9vkpcPbx9fnz9vrx9fry9Prx9fry9vrz9fr09/nz9vkob/by9frz9vv0+vry9vvw+Pgmb/UydvUmb/Ynb/Umb/Ynb/b09/zz9fnx8fr0+v+z1f/y9fkncfYnb/Ynb/Yscva+0fUnb/Xu8/ny9vgocflzpfcfdf////9PifYvdfYkXNdAf/ZglfeVufg2efZhlvd5oe8nb/by9Pg/f/dViu/U4Pcmb/b09vumyPxZkvcqcvWjxvz09vsncvjy8vIcWNVYkPY5e/Zjl/ddk/eau/lDc9vU4voxZ9iLsvhelPcudfVyoPd1muWovu2GrfcrY9jD1vnC0fKTrurz9fpQivfT3vTr8fo/f/VgieArcfVJeNyyy/g9ffafuOzM2/iUt/g8ffXl7PjP3vnz9vq01v9hlfft8vqErfeXufgob/ZZkPeevflJhveyx/BDgfcmb/fe6vlekffQ3vomZvKq1f/y9fonb/Xe4eYQTMzq7fKz1f8ZVdQmbfQjaO0eYeUcXuEka/AhZuofY+gaXN8ZWdwXV9kVVNYUUtMST9AQTc1unvdbkvYtc/W52P3t8/rj7frH2viZuvg+f/ZFg/XK3PHH3/3b6fzX5vvO3fm/2Pi4zviuyPihwPiLsfeFrfd8p/fT3uzm7/rf6Pnc5/mzy/g2efXY3+nc4OdIKLbzAAAAxHRSTlMANkgPLxxCCWk8T5wjVolhBHwpDFwdFhUDb+kmgo9QorWMdkm8P6/VlM+We2IChIJqWe/CLuKo0K912H9yb6Vj3LYp4tu/qXIWyHzIx49ZSED29fLJwmpcVvjhey+II/386OPbh1xNNi/n5eLNvJ9zZkcmJR8IBvvy6+bW0s7DsKqcmpqWeHZuYVdJOjMU/ffz8vDt7ezs6uno5+Tf3drZ2dfW1tbV1dTRzsG/v7m4uLGwrq2mnpuYjoeDgWRjXlVBNhQSm78RdgAABjRJREFUaN7tm1WQ2zAQQJ0yM3PKlKbMKTMzMzMzMzMzMzNzncKVmZmZ+92VrUiG1JKbZJLp+M1EWmt/3vjk1SaeEywsLCwsLAzo1zS3yE0RIXg0FU1wLoimuU2JBtFUNCXKbxp0UV7T4ItymoaAKJ9pKIhymYaEKI9paIhymIaIKNs0VESZpiEjyjINHVGGaQiJMkwDI3rGgylvwQBL1BK1RC1RSzQkRQmW6H8r6rCN21UgWc2ayQqUS2tz+CL6+NUjIWBEdJapVROoBcBY2Bnx30S/vn55/vz5h6eFwDDVniy3hmR205KPXr18eF5mvOCheqtW1f3mmWpVMg+dkhFweeLj95cnIEnYLXjo7Ha3dPhHM06OfKVL5wPQSCnNL/rlxdvzajoSt5Zut3uKXzyTZC6DKaEArvhEf1FJrewkARgBomP98rDbM/0FLtEXVExvKgA9QLSrP0SzZclSoEAWb7BEW7h5adjXd8+eFRGVgTpA5coVK6JZWmOJPndz4/tzHz5NHkRdAM0wEuqKDO7zi7bxWdSV/u+wRD/zSbaGTxdfPRMXTPN3WKIf+UQPNHe7m5/yUbRtRkTBgjDgiJKRJfqBT/RYFxgm+liasubPn79cufyYchh8xRJ9x/kgtYFhcJ5OtWp1qpujRr9/Em2W2giW6Bs+0d7VYXhWG1PGFV8wT7roOkaOJKFxeYJuDpvcPXv27AUpOgtIwQUI7uL08bUPYJybzEOmnvw1qUbOHJlTOnPWSJoVkxlAMxrJGktUBAHEHbC6oha9AsEdOduiUaPpMM1uBJSWievg04xpT4moWlWa5BjQrTFFccW/DVYX1aIXIbgtZ/sXLjwfppmFFTTlMY3njMUJQ5RU/FtgdVUtehWCW3J2VoECy9GNXbFkTQHCOLanzel0ptAAK3SkeaboPVnlJlhdU4teg+CmnF1UpUpl1BXcCAtbXLlyFcxklmfyxnE9VAJghI9qpHmGKKn4N8Dqklr0EgQ35OzSsmXLLkBLYWFhK8t6yBjZ2DO+Ky2mUCFpBGDESAmaFzkr/nWwuqwWvQzBdTk7pGTJkkPQtgXROSUJMY1FI7lcrqQYlyL2tuYSeSo+taKi1B3YBAfeVlSxQHTaDnIERo9jeEOjmEHkqfj070xF6W4AdhYDZiB5MN1SjJDX8ImPHTt79uJAdiA2gCISA6o8+/u7mz45VJQ+XxJ7owOD8SZdH50Q0/AvX79+AkLbtjSuD6BZlReZPKC1iIhqKtaAzIhteJPOy0yIWy2u3R43Vy+vou1iYhoAMb1D82zR57S6E1HNGTDIjhgjbVJgjF1LlKneRKOZgS16n56XRFRzqq7OITEIPXQgOjyHjNMpjzA3TqgXDZdOQTgCidV5tug92oEQUU2fMiybxDC0l0F0o3TVuDEZgfLh9XvUFGzRT26qRUWpOjC8fPmiRcuX34/uPIgOlK5gjQCx/rmKagq26FNl+4RFNc3TvpxAvXo5G6JaAKbdcxLqSaAoou6gt9nat7cZoMqzRX8o2ycsqmmeDsWWWYc3aXeoexIwE3Qnf4QIETp0iKCjiQQE6jxb9ImyfcKimuape65c1arlypVrD1oOC1sGIV7BMxrb6Qp+qVLxCKUATazOs0W/qdonKkqPgIapMOOlAjXwCIR6dKIxEM2axTCC5kU2D+iBSURVh+pCUk8GwNXonuG8o/tZ2RQim2e0BSGiqjZlaI0MmM1IFK6U1ACkQCtaIZGCCgCM8CGjOi9yVXzqRUVp87Td5uEg0rb9Bd3XJVOIbO7R9omIqpqnUfBQ5pWYhHbsSc9VBEAxa0Ujm0Jk84m2T0RU1TwdTk7oDJcTkqvo1QsHWlFHkiQO+ChxACRS50U2T2n7REVpvQKzhIRu6AYn9E7AX4i9p+0TEVU1TycSE47C5YbE3gm46BPaPhFRVfPUJz6hD/pVD19rCbjod9o+EVFll9IwjgLpV704Xgm46CPWj7iCgjaw0E0IACJXxTdA8zqkOjYPimh/A0vtDeyLWr3eEARD9J6ZlwxdYaUHzEEQZbxw0GiNhZURgv/JzVfx+d8vTYGVloL/acpV8Q3Q7kgHvMDtLDAI0D+1vP5pWJ3oq0X67t7CwsLCwuIPzJz0BtifiVkAAAAASUVORK5CYII="

/***/ }),

/***/ 7462:
/***/ (function(module) {

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKgAAABgCAMAAAC+LslfAAAAwFBMVEUAAADy9Pn39//y9frx9vry9fzx8vjy9frz8/v29/fy9vz29v/z9fv+/v/x9Pnz9fn09vry9fnz9/vy9fry9fry9fry9vvy9fry9fry9fvy9fry9vvz9/vy9fvy9vrz9vrz9fvx9Prz9Pry9fry9vry9vry9fry9fnz9vr09vvy9fvy9Prz9fvy9vry9vvz9/ry9vb39//x9Prz9vombvX19vgncPUmcPXy9fonb/Xe4eaz1f8QTMzq7fI7ffSpwOryTRFYAAAAOHRSTlMAfANINk8kaRUOLxyCCVYpb0I8dlyJla+ctdDIYsGi1um8j+I/3IxZp3LwYYT2Yy4TH6mPfxviSRHm9FgAAAKcSURBVGje7dvrcppAGIBhEI0horExHiORGEVCtTFaDfaQ3v9dFeIKdpY9fOZz2Gb2xZEV/jwzusDsjIZOp9PpdJzq7TCSzjSKqx0B+l2gNARBC5RGIKi8tHCorLR4qKRUAaicVAWolFQJqIxUDaiEVBGoWKoKVChVBiqSqgMVSBWCAqR40B+HQG6Dk4ZqqIZqqIYqCU3T0M8LLbe6A2+x8AarVrmkLLTmTBdHTZ2NktCl74Uk77D3FYRWRl5O5PIE7IzQ0vwxNzH0z9su7hfpJ6Nd3HcMZ2eanxgaO2WgONKSPzpukA3F0J0cFEdqDlihQVGk1h2zj0P3R3cYUrvvMouESUIxpM0HdohQ0unOy26fnUrQ2y4nlaCdIAhWq4C0IpFP+FB3Pqmf5Ly454UPDcNw2jyFavV48S9Pp0C9pJEl7bMn1fl67FQnzQ4vMJRRBn3c55TkmA1/nLRej9PWcdQxfOiI1JZxXjttyfChg0MtsbPsSIcPvUu7Ec5zUz4JKDDXfXjfXLcrmPt2syVfJAgO7Wc1+NAvTUD40G5Wjzvz61VI+NDgPt2CZ+6MH8Z9ixuS0lF2PDuPD+0d1eB+87eQ8KGdo8yZ6fvm7DoXWmlAwof6OVWXeVBQ+FDHmZP2Iydubr7QUAsUPtTM7WlJ/0ZB4UOf8qPn1Q0ofGiV0Ya60YPCh36NGw6Td7InUXf+K1D40Bkji7rgg8KHVlhRz06g8KEWK2pZOWmzqfHKzuNDJ6yo9QZQ+NAyK+px1LaX5JWUfSK7f8/jQ6/int8jo8OeeswDhQ+9YEUt2oLCh9ZeGJvxofChl6xUg9qsVIOWWKkGNVhpqIZ+bmgIWHEWdVZo+3+Biv/U8gaDbo2iet1CoNtXQ6fT6XRn7S8uynrNe+VQuwAAAABJRU5ErkJggg=="

/***/ }),

/***/ 5695:
/***/ (function(module) {

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKgAAABgCAMAAAC+LslfAAABqlBMVEUAAAD29v/+/v7x9fny9fry9vzz9fvy9fvz9fry9frz9/vx9Pny9fry9fzy9vnz9/vy9fry9fry9fry9fnx9vrw8fj////y9fzy9vry9vvx9vry8/nz9vr7+/zy9frz8/Pz9fvz9fvx9fr09P/09vrz8/nz9vrz9Prz9fvz9fvv8fHy9fry9vry9frz9vvz9fry9Pvy9fvy9vry9fv09/ny9fvy9vvy9vr09vvy9vvy9Prm5vj9///y9fvz8//y9frz9vry9vrz9vsncPXz+fnx9Pr09/ry9vvy9vvy9vvy9fvz9vvz9vomcPXz9/vz9vvz9vry9fvz9f3w9frz//+01f/e4ebz9fvG3/6z1v/Z6f292v+01f/f4efu8vrz9fq21//y9fW52P7H4P7w9fq82f7y9vq42P/G3v3N5P3L4v/y9fre4eaz1f8nb/Xw8/jg4+jk5+zp7PG41/2WwP1Ih/ft8PWx1P+rz/7i7fu92Ps0efY6fPTF3v3D2vXW3+ykyv57rPvr8fptovponvpQjfg/gPfb4OjK4f2hyP1ZlPnN3O+pwOrX5/ssdUlTAAAAa3RSTlMAHARInS+CtnvQYVZqT0I8jHZpWTYjCVA/xzcmlAyJFel8XBZvKaWPwoQP4dyvotW8v65JLu+W2HJyYQIP8xXiqG9j4impXPbJQevAj0mW+OOua2MW7e7q4dHRtp+IemteGPjt3djLsJRwT7agOpUAAATkSURBVGje7dn3W9NAGAfws9AC4ihuBS1LASmiICCUImVVhixx7z0u10kBi2wQ5//sC0mT0EvS6z1tGp8nn4dcrscv3+eu72UU2Ww2m81ms2lyNk7hLE01OpHpPGOYw5gHmW0AcxlAZpvEXCaR2cYxl3FktjHMZQyZ7DXm9BqZaxRzGkXmmsWcZpE5jIs+HItGBEGIRGNhq5S9VtEvRAVFdMEaZU8XfViKqUQNW6Ds5+icESFdRHNS55CJ6KJfELQsFLzsZ+n51BQudNl3suQEETppJzINXfQxQU+sgGVPF31Y0BcuaNnPsU4otfubWfZ00UcEY5FYocr+JcPK627+L5F5Oqk9lCmp+WU/zvwVVZIWpOwfsgelr1IPUf74LlS0lVUHg9VlwxWnfKgOK8Qbu6ymtA7lySGX1x8EfgBtl6uWuiSxCOe57D3u6o40fuZ6//MtlMHgXZQbZ1urKUG2DRTQOemkKBccTbebm28DaOFPMiVXkVWCOqq8WsJYFBUssvQ+d6uWLmXlWRADKDdKyzR5sUSwSNCi8yl3gHJuttiM9pY0apvGkqg1ggau6+jAkpglgva1lOiYom5EeYPeRzkw0qKjhLoTNZaERIkQJQHDj3OxNU329/cPD/dLhiXQvUE9fhpbhUTbdNBtGH4GW3V7Q+O03z/d2HTOgXicvqbnDgbsd0+RNUg0Twedh+FXV180w51OB4DWG7jIEbS9WE8rzs4mAQl65UFP2o1EaxH7nnTuSFNVg+vIaH2npAqI5044g2mcpR/ilNIT+qiZUuNji1nubtgzMdEgmwAHxoI4S18J2DqYc4uAd120SyxJL7suZVaFMc+ULu6oc+4swtDbMi0VKKMLLhbXcNbCcYi19F3J+X0JBt6c13YcZVBZWpNSCqCFQ9VKWjDgWfyfy6mcyz8JeHJDW9sZZOhioILJeczhL1EX1Px+zhI95cjQsUAgUC8JqPrpY17M4wcBG2LODQIezczMtGmaKXYYTugJRn7MZYWAbfGSBN5fMXDTsOIPgwFwWHLvnjgitqlPA/WYz2Zyr/QTsNPvFXzyRbGBcsOVHxmplR3oA9VYE+ZNulf68+IXNL5ZXGWg5mSN211zshJpOVrOphiLOEs/FCLgK77uZnDCoxWUUQnmtpIKuoLxBxdokrmA0pdHSg8hSlG7SpFM6beLynIT1FvKpLuX/o4y6sjN0vtvge5uOCTKp1sy6NN1dZyRwGstrgSNrwlHGFGLf4qRwGk3TuSgkHS3p+ewpAeILfUJUFd+JyOBU5IoQUGy9iSbdmrDHxq6LBsC6X1pROCzStRBwdOzbI5Sz0iMBC6/iRJU8qmIDfVamRFfIRE6KPl8jglK46lT8QBo4VC1ImEfVlGP6BcSHfT+6AUWKM1VRW/vfguglcj/5Am6Suig4KnTeVPmBEpPdUZpzjDiCLpGqKCiL5UMUBqfw+GDQ80H5F7q/xxBV/WCfjzEAHHKPuguoYKmVPb1eUAf8AB1X27NC/pbP+iri5khTrx7PVja2FmGR9CdjSUieebIDHHivngubimPy1uLBLC9djQvqJhpPRFSSawzvsjl94Av6HraD07fxKQof55zBVXe5yhvdfIc1PH8AUfQXyHKr/2gVkJ02EF53B1k+NHWCgZZfga3gv8m6H+z9DabzXL+AWYcdtLL+XaIAAAAAElFTkSuQmCC"

/***/ }),

/***/ 3131:
/***/ (function(module) {

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKgAAABgCAMAAAC+LslfAAACH1BMVEUAAAD29v/z9fny8v7////w8Pj////z9fvx9Pnz9vvx9vrv8fHy9vry9fzz9vr6/v/y9frv9Pry9vry9vvy9fr09vr+///y9vrz9fvy9vrw9fry8/jy9fvy9fmwsOrx9fry9fz////y9vvz9Pry9frw9Pf09vvx9fnx9fjz9vry9vry9fry9Pnz9vvy9fz09/vy9Pjy9fry9frx9Prz9/vz8/Pz9frz9fvz9fvz9frx9fry9vry9vry9vvz9frz8//z9vr0+vonb/Xz9vrr6/Hr7vIqcff0+v8ocPeVt/YncPXy9fsnb/Xy9vry9vonb/Lw+PgmZvInb/Xz9vonb/UmcPbq7vLz9flunPLe4efy9Pry9fknb/fy9vopcPrv7+9akPPf4ecmb/WGrfhvn/c5evXf4ubs7/Te4OYocPQnb/fz9vkmcPXe4+gpbfYtaf8qf/88ffbd5/tzovYxdvVom/bU4vmkw/jr8frx9fpGhPeyyvjy9ft0pPje5/t9qPmcu/duoPfx8/rP3vqNtPeAqPPy9fonb/Xe4ebq7fL////J2/zh5Onv8/jp7PHx9fpdk/czd/Xi6vk/fvUqcfVZkPcvdPXZ5v1Eg/bl6e+2zvrV4fmlw/mbvPh/qvjr7/SmwPHj5uvC1vyIsPl4pPfp8P2rx/rF1/hzofdqm/dhlvY3efWNsfO+0fJ3ovHE0ejO1+dPivbc5PKPr+zZ3uYQrAv3AAAAhnRSTlMAHCkWCSMDglY8Ng9cT3sEiTBhlZxvD698PzcmtUgCaVALyI9qQ3JZSaiijHZ1SUIu4sG8YhXVhOlpz2/bY9AVjy/qpQzvbi4c/vDt39jCJyMU+/W1lohN+/bw3J6NMhT43du8vKimn4V5XFlQTTgRBvPr6+bi3dPJw7WzsK2rn4R7amRBLN31vhsAAASpSURBVGje7dkHV9NAAMDxc1FcYEERHHVvUVQUtYqotFr3Agci7r333npH6aALWvZy7/EBvSQlbXOXcW3w5Wl+73G5l77X939p78JLgclkMplMJpPpP5db7ajXlaM6FwyE6nrdVYOB4NA/1AEGAn7j17rCbwgwM9QMNUPNUDPU6KF+nwchj89v9FCvB/E8XmOH+j0ozuM3dKgPiXzJ55EGfzXUg0QeQ4eiJGbof/XRG3Ix2SYUzys3/vY0yLJmL2b0Db9uwcpDWzkGv4VOXbEyjriivm4utNvHckWD79raXa72tndBfUNzy5aIUkO9MSSKaUv1tvRFoSja1xXTLTQrf01cTU1NSmgnStGpntnaEYASga+bdVrsC1YkSQ71IQmfyo0g+D4MKfYc1iU1Z/Xq8vLV/ZJCOxGhUynU3x6AMrY4QcYmT0+RCPUiCq98aPAjVLBvN8hMwaSlnB0Yf0yExhBFTDa0NQQVbdsJMmJflkoM9SIqr0xowyeoYsMRkIF1DyelEkN9iMpHD20lO8nSTK7pqPESYmg3ouqm7/AhqMG29L+ntvx5EmKoB1F5aJ3+j1CTo/fKinJBOnbNlxJDkQxaaDsk9L550wsJrkOH1tgrAbtFY6W4UFZBcv/84MY+QKnAdfzvxIrJ2vekopllFTMsz4vG5UulE/oeEtrcWBskHFjCKbRpy8yuncGpqJghqsD4YxqhrWFI6HBjHZAQvr2dM0ZL6WDLGAVphOIeMqjH7e4JQ9KNcl4xUDXBoog91BuANNEopAncnc4bDlRMzCnsl4NxI54mRvbQFsjkzlLeeJW1X2lfGFdczI8YHnn8GfbQPsjk1iRBNlC02G63j4uzc3MJO3toFMpogjTXxgvGKu7806ZgqzBuFObiGQFzaBDS/Oht8fdAqscbBSWKKz4vr7R0LVaK5WHcTJxjefWsvkBCqMXvxhog1YOxgmzFT36UGubQLkiI4Er50BP5gsI5hbW1hXMmApr92WqYQ12QEI40NjbLhy5INaWOFjpaDXPoZ0jVIBt6soxjsQgjPuYMAoS5i5LMFSXmi/5CaI7U7AIidFbC4sX8iOGRx59hDnWxhj6aTSDX1XBVDtbQLtbQJzNJxIc/QtUZ1tAvrKFPS/N4eE8UEXd+q9W6fr2VsJ7HT0ecYbymP1lDX8yRunBhP7HhpwnEIYoQW+jNqRRE6DDOrl3D5NFfB4IsRHGALfT+ZBrisXKagGAIouhiC31WRAMkhqQJCC4hit8BltAtE6iAxMiEggJ+xISRn8m9DgSnEc1XSGiK4Ftoc6QJEk5ZS3ibMOFo5c4AiaFpArwSRPUtLKl8iysFzW8lrXteTqQCErasLBv+S2bDxJnc64BTdwxh6ssp5E4SklxQuUWgoxLcSfddctkijaKI5Bv6ajlvHcYdxRHoxDbk0mkk7xfUyDmtX2XltOQ50MfZg0jZUajJvlw5QB9qnei7Lo8d9b+ipG8BTQ9yDeDIBg2Pxg1h5zaVz90Q15Oze5/KzzfG4dyi8IOYoWw+vEfuJ0aj2Vy1gVhEVcbL5Fy9WHUcio5XXbwKjOvK5fPOc+ec5y9fASaTyfRP+AMAMscG5o5S/gAAAABJRU5ErkJggg=="

/***/ }),

/***/ 4407:
/***/ (function(module) {

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAMAAABF0y+mAAAAzFBMVEUAAAD/m4j/k4T/hHv/j4D/gnv/g3r/nof/gHn/moX/oIj/n4n/l4T/fHf/iX//hHv/nYf/f3j/pYn/kID/joD/eXf/gnn/fXn/o4j/eXf/o4n/l4P/hn3/e3f/oIj/pYr/koL/in7/kIH/joD/pIj/lIL/e3f/oor/nor/kYD/hob/koH/gXv/jYD/jH7/iX3/i4D/k4P/iYP/jo7/k4L/fHf/mIP/in3/gnr/nob/m4X/hXz/h33/lYL/jH//f3n/oYf/kID/j4D+jX/4i4ReAAAANHRSTlMAHCE+2lQw7Me2VDHHvoH7+vrz8/Pz7OzZ2djY2NjHvr6+sZqBgYE/PyUS75yEbWpWQicJ9vp+hgAAAS5JREFUKM91zodugzAUBdDLppC9997dbQJuIKa1//+f6iSAIVGOnuR3fSXLSJmrYrfZ7BZXJm4Zw0NqaCBLtQ85tio7rR0dolzb1tKuGt2pxq3aIlFEIkJIUdm9xHvUur5sk4QJfJeTYF/+SQISiCEk2AIoxzsJDACDIKUBO5kGgBleBGEQhAbwFUomSr4f+qEYcb4DWhjv4q6EqS+VgI9MnEKn1Ke+GErpHHijko7GdWGUMT4DXjnnlFMxnDdQF5eMi2GMFYA5k+rQ/yQdmOXiZJ/xuX3OpAmW+4eWcE8PuUDfSz0pypM4Tt5JjNcH4MhSARSZHAiFY+Jcxqt3LOBMtZLy/GyyWyouNpWfO5UNYmvrtrPWSKmj35yRiiynJ6ueg1vuYtyp1TrjhYvEP6ICeWeacgqHAAAAAElFTkSuQmCC"

/***/ }),

/***/ 2609:
/***/ (function(module) {

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADEAAAAxCAYAAABznEEcAAAAAXNSR0IArs4c6QAABXFJREFUaEPVml1sFFUUx///u0vLZ412C9EHisYE0Rp4aCgoKiBRIwYfGowfjcEQGjozCxqKRg2kYkgEI5HO7hSIkRoVwSKCotFggYiaGCMfERT0BYyQ2kCAWvlod+4xs6UrtNvubne2Ye/j7D3/c35z7pyZe+4SORgyb95Q3Di0GJ3BUWBnIVDQDqANtn2agPjtktkKCkAYRrkOcKZouV+REwRSCkAl0f4XwO8A9itiD1w003Faso1hwBCyaNFYiLtAtFQJMW6AgbgkmrWo9wKh0Mesq4sNRCdjCHl+4TjtqmUEq0SkYCBOk9mQOE5Rq3D48DvcuzcjmLQhZO7cAj2mZCmBVwQY7lfwPXUIHqISg/XOD+n6SAtCXqi5TTrVFoGUpyuczTwCrpArVUvrCjY1uam0UkJIODxLa3criBtSifn9O8FdHH6xkqvf/ac/7X4hZJH5hNb6fYC+rf1MQQkcYEw/wnXrWvuy7RMiZllzCP0JgGCmjv2eT+AgGXiAtt2WtCgkuyiLzQrtyh4Aw/wOaKB6BHfz8JGHk1WuXpmQ+fNv0sMKDgAcO1CHObR7IxBxXu5d0Xpc0VbNVgErcxhINtJaKcxiveOtksS4JhNimo9qyhfZeLnGdvZj4NR7gFMnIY0bgQsXspYmeJR/t05kU1NHt1gCQqZPD+qyO38DcHvWnjyB4mKouhUJKb39U6D5G1+kQdQGbOet3hCWVaXhlVOfRmkpVO2LCTHZtQvy2XZfxAm0sP3CrWxsvOQJJjKhLeMXAcp88eKJ5BDCk1fEQtrO+gSEWFa5hv7JN4BBgBDgx2DEmZKAcC3jbQCL8wnC21xRueNZv/6P+HJyTeMoiPH5BBGPlQgHbCdCsaxbBPqv+A7Nz5HjZ+LKMtqmIk4lY1bNHII7/Iw/rjUIEAD/DESipXTD5lKIrM5HCAKaHbFRdMM1DoQ1+QjRVWoDd9ENGx9A8Ez+QshUasvcIZA5+QqhhQ8xZ1+tg/Jge80tNYOuaWwEMS9fM6GUlNO1jDcB1OYthHAcJWws0IINvkOMLYVampuv2O5YCVxkaPRIimFM0wr7fIcoKgJfXwmqrpas3rIZ+M5vN3IoEGmYRK+DrUcMPwtiqO8gFVPAigrIqVOAtymKZdSdTBmOIiK0nXD8eylmGrtJzEhpdZ1NEKIyaDvb4hASNiwtsK+zGPsNh0A7NW6m47R3QSxZEpKOSyf97HInIigpAc6dAzo7fb1HinyfdvTZK1+zXdquZWwC8JRvnkiweiFYVgZpOw9ZswY4c9o3eaVwb3fnPLGHuGxV3z0EwYOS/IQnc+ejx0AtW56w0zs/B77+KnOdJBYk9ijbmXlVqf1/lhs2NkF8ykZhIbi8DiwqgohA1jUAvx7JHkJEFAP3MRL5PimEt8vT0F7vqSh7bwBCIWByBXDiOHDEB4D4A8DGgB197ur4evdic/UG9+Wu4KTqiE3ihg3XPFxJ99WuVfMRwCf98euPCoEYhQ8yGv22p2JSCKmtHSGXL+4Wkcn+hJC9iiIN2tGGZEp9djikujokBUP2CeSO7EPIWqEuEHFe60ul/+OucLhExP1SgEE5cOwVpFeJlHqJdtTbLvQ5UvaaxDBGimKjQAb7zKJdKS5gfXRzqjymhOgWcMOGBcEq5PAM+6q6v58BeZprG46lAohX3XQmdc8R0ywVyFohHs/ELoO55xW5HC2t0XTOr5O+7NJ1JqZZIUpeFcHsPv6Ikq5U97wzEKlXGjYbGs5mapxRJnqKe5nRlCoClQJMzBCojUAzoT8Eh+ykbV/ONPisMpHMmZhmsQtMC1AmaMF4EqMBjNRAoSLaIWgTygkIjikG96Ol5edMlkx/gP8BRAI7YCbJbUsAAAAASUVORK5CYII="

/***/ }),

/***/ 6782:
/***/ (function(module) {

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAjCAMAAAApB0NrAAAAV1BMVEUAAADm6vHn6vHm6vDl6fHm6fHm6fDl6vHm6vHo7PHq6vTs7Pbt7f/////m6vHl6fB/k7zH0OHh5u7J0uOVpseercyEl7+So8aMnsPc4ezN1eTByt6isc7mRKRZAAAAD3RSTlMA5oHM+Ovgsm83LxsOBstaBFOyAAAA/ElEQVQ4y5WU3RaCIBCEFzQxTQlF7O/9nzMlSMaste/CA8uwZx1YKKWSKhO5yJSsaJOTLPRCIU+0pikPGjmUDUrqVn/S1qnkKPQW4phIcr1N/hbVkAUz1aHcTH+nfRVe6l+U3pfw08N5IizMwyFYMPskY9zAfhP1koiKqAHJMi+IKowZ66zBPRVJ0JhL3/UXAxpJKg67+WP76dPbOPcoQnNcN686iGWEHo8+z4he03JUWM9CDnmCkwOGxKqeh711N/tY1aPS6X30NY/3NKjQH2uCkeAP+uyufnh16DN/XvvOnb8/O+8hNS1/n/m+4PuL71O+3/l346/3h3/HnnhtOLYKZJXfAAAAAElFTkSuQmCC"

/***/ }),

/***/ 1611:
/***/ (function(module) {

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAjCAMAAAApB0NrAAAAWlBMVEUAAABDj/tEkPtEkPtDkPtDj/pDj/tFkfpGkPpGkf9Ml/9Jkv9Vqv9Dj/r///96sPt2rftLlPr2+f7d6/7Y6P3U5f3I3v3o8f7l7/7C2v291/2FtvtvqftTmPqIxo4KAAAADXRSTlMA6MyB+OCybzcvGw4GbdBp5wAAAP5JREFUOMuVVNkWgiAUZFFMi66itvf/vxkqFEOers0Dh2WAOXMXkaLWRslCKqNrsYq9Lu0Hpd6LHIdKWoSsDkhplP2GalLKTto1yF1CKew6ijepgVcAsglyUQtCLcIr+wvV7Ev46XT0CAfT9BR+m3zScZ/gPkW+9pwycmwErksfI9yjwQ2Ed2qhgUPntmvPBBwtTJx20zC0fmiHZR1gBJrjuunUoUUCPe7nd3r0WmCo6OL1XAiDlr1jr969axazTM9tfHSP8ZbpMeny3i+q7ummQX9GWlSN4A/67J7z9OnQZz5eG+PO5w+fh5vzma8Lvr74OuXrne8bf/Ufvo+9AEhNMVDN4T/vAAAAAElFTkSuQmCC"

/***/ }),

/***/ 2934:
/***/ (function(module) {

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAC9FBMVEUAAAD/8bnsz5Pr0p7t3rbs263hrlv94q/kw3Lvy2HYoF2Xb0/alEfoyGzlumTu257tz3/mwHrlu3j256CZknrsz2z20Gfhr1ncmUjkpUtmTFfv2HDerWblvmXs1ZDewHrx2ZP44JvUtXngrGvetYH47bPxvVOmZDSFW0uKg3aZdlznv2TowFidknfkr1Tmslecdl7pz32ohGjhtW3kvHbmvXDqxof15YnBi2HBimT26Kr798/TkEd8WlbhnUjeo0/qs1ToxV+ld2Hv232qgVrnxGagfmjpo0jz4Xniunqxjnndp1Ly4IbLpH3uzW7In2fBooHIoW/v2pbnw3XPj0rduXzoyJDq0Jn16qz48Mt4d4R7QlKmflBNKz1RM024aTnamlBdPEtfPFDlulZ9YF/4zV/cpV7erFH22W/bp2L1qkXZo0vXnk7144fbok/buYb7v1nnvnTqv1vsw1zouVgODXDiqUvVJRfrt1HmsU/hn0jflEPWMRvryGfmuVznu1csCVfqvFXUh0DbdDbnai7VHxXQDQmllngQEXgdGHDux1z+11rmtVXeolHjrFDrsUrfm0TfiT7JVSjPRSXWQSPTFxF7gIhtcH40NXZBPnXMtWvivGWfhl7al1HSdjfXYi/UVynYUCjoWiXZRiXKRSDWNx3WKxrbGA8fNo8NFIOnooI8O3vJtnm/qHVXVHMoJGxeVWvvxGSxmGSFcmLHpmFxVFpHJlT8yVM5FFP4u07opknjoERLBkTmnEHckT/GbzmKWDnaazTTazHcXSzpZCnAQSbzQx3bOx3DJBXoJxHNGQ3WDg1Ya5AWJYhmZYJMTIJCRYC8rn63qnmyo3lqYnHt1m4XE2v/5mfFnmYiEGIYBGHYt2DbqliJa1dpPlX0wVI3B1L6sktxGD9kDD3agTzldzj4iTLDXzHMNByqCBfQHRS6DxDDDA+GjYsmLHqhkW37yFlYMVfCkVGJaUm8ekfviz3tfjmqLzGHCibfTiSSBCPiRh9lyfZEAAAAcnRSTlMABC4eFgndDv7+/v7+++BtTkM+Of7+/v39+vny59GIgnVeXkg3Iv79/Pv7+Pbx7ubRysXEwrWklW1USyn78+7t7Ono5uPf3dvY1c3KuLGuqaeWk5KQdGhWUzL+/v7+/f3y7u3s5+bW0tHLw7y4rKKckEu3JeHdAAADmklEQVQ4y2WTU3RcYRSFO+hkPJNOnIZNartNbdu2ee/YthHbtm3Wtm3zpXPb6Wranpf/4Xxrn7P2v0+PboUMCVi2YMGygBBkj/8L5oQImjB++cg5c0YuHz8hCIGE/QP0pKxZPAPXr77+PW7TwBmLSRN7/gMglw7f3r/f1seP68TFhQN3DF/6twQM4Tzr5ub6fub4xOaHMVeit/Sf5Yzo3kf6j/bywsUm2hjWhBTbpxuZF7zGBsD+yMNXDp/s1V/c1GZjpCRx5SkNUQPyd430gzs5gOC1vUvK83GP2p7JUrlWru3Fk7uKsNLJ88lIx4DgwCERyqIPzWldXIbMJuPKO6VXXC5FDAlEOBwg+w3JUt6sS0zrSmUwZIxUeedXbCYtfIDfRCcY5ADimI9LFg1X9z2tS8a1JqUw5PI27Dk7MGJcCOQGIvCApyJLOXCSNE1uaXxgNDUwZInY87RwF8I+EgICVs+tPH8mo+jdI26nObaWzjZZkz5iX9MiMsHdK+B2AH50SlX26Yz86IrGluT4BolE8oCtKSyhnc5mThsLAb1GTalBnzqZdytWEmexJMTFJUhMnJK8jFMEg+eoXnagT288hxeaTitvkUoTLMlx8UnNUnMpLX2DW5UHqs9PQCy+qzihvPO8o7XJbG6UPGzteFFNO6EoM+KJzhCwZ1JtRc7Lk8JvzzqsycnxTdLW1Kd3lKE5bzynjoZGBI2ZSndDn01XVX95+ry9vf2JpeXz/auvzqHdqMRfS47eZtQWEELPXBMKhdX37t0vFwqvRYQRMIB+6AhIwXk+Fq9jAmdDw/NUqtJbG99evaRSXVCo++rp7iOgHcho95gYTk0BOju6KMylsDg6Nzc3LAeorDLS+TPJkFEriO46j1pOZUHU9cjrWtaN4sjISB2HY6QLZvsGQ3FZN2an3gMfa6rQaDRltw19NZcvl9WY8Drt9CUUp5/fPdF3+mCWWMwBMACTRQUxbmq2R0wUYbY/xRHt9STiYIGOzRaoAQEVANWggO7O5w0iroHDfiVmPan3IAwIaEWgvTCgiE6n8lx5g1CrKY7I+S/yvngxik+lCrR8AGCx2XoqAPBcvQ+THAoB4+Z5u/L5VJGIRbVv4am3P6Cr97xx62COs4P7+gxmitS3+xqYTIMBAEERyJu5yB8B9R3E8cBVRw7uRc0dOnTaMJSPz5KVfmRKMKz77SInjF91aOFC1LBhqP2jxviuDfrd/QEDKmsdWtYlLwAAAABJRU5ErkJggg=="

/***/ }),

/***/ 2749:
/***/ (function(module) {

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAsCAMAAABFXPg2AAAC+lBMVEUAAABGRkZRUUn023g7PT3123nzznffRSvxx2AdHR0/Pz8qKirsulfww1PwyV9SUlKAgIDmY1Lzxz3RSCbstEfss0k0NDRSUlI8PDxQUFAcHBxERETzz2FHR0dXV1f13pbmokPyw1TwwVftt00zMzM9PT3vwFQhISH01ng2Njbz3XvtulPjnUn02XxJSUlcXFx4eHgtLS3x2I/yz2DprEvlaCHhTSbnpUHrrDUkJCRTU1PyzWc0NDQgICBLS0tAQEDqlTFKSkrxx0laWlpmY2P35pPopFbwxWvoa13iUTnfWSzuwV3mpj701GnmblT01WbyzF7zxVXprkU6OjrolSrjkjLrtEXuulfnmjvwx145OTnjfzFSUlLxwVDx03Drl0LwuUH37400NDTxyGDss0LvwmHooT3tulvqsUziWkTmnjngmEHobT/vuDjmaCjiXSMjIyPxyFHprlvz0nPtu1HwznHneSjof1XusS3y03zsnmbllzzxsjXpqEbuvVxPT08VFRWBgYESEhIxMTHjoUzcJCbpqUbqpj7qsEvnnj3RHSTss0rvs0Tvr0PeOivodVTvvFDgXTPgOzDKGyLvpoLsmXTzz2zvv1/yx1fqs0/kV0Tsq0PiWDrhRjbXRjLikifYNCfpqCbZGyXrj2nlbkvwtUfqo0TtsDrgfjreMCnRMCfKOiHvqY3ulHvtqXbpnWrsvGjpgGLvvlXst1LwwUzldkrxuknlY0frr0bxvEPlhUPkkTrwvznkmDnrpDjgbzffYzLikzHcVTDSOyzhTynegSbTVSXHKyXbHyXPPiPSKSPvtIvvroTvnYPpiGXpdGTnq2Dph17pr1XofFXXY1PjfkjZcUbjakDvtzvfdjrhZjfePyfZcibcLCXijCPcfCLFFiLqhXHijmvni1fnm1TmkE/lhE7kXUrlpEnyy0fjkkTUaUHiizTqkizlbizmeyvUXyfWZSbvtyXgXSTvvXzz1XjslW7Ze2rnnlDlfDrmmyzXPyzywSrnnySHi9Y7AAAAhXRSTlMACAQGDB0N/f6VcxP19KZGEf7+/fzqiXVfTkc5MSEX/vjSsrCplZJ0Zk5DQz88MC0fGxb9/fnu6NLSysW/t7GsnJNaWTcoEf78+/n48+3h3dzZ1dLS0MXDwr22saajj4uBfHl3cmVjI/v49vDv7uzs7N/T0MbAvbm3tbKlpaGIh4VdU0MbrfYZzAAABBRJREFUOMtiIAUwO0U4MeOU1FUy7TOtcGLFlGLTTlCu8vMUfPicPT+kJkGGDVVaJtorU/D82ilTpm6cNZfdzEEbRdY1Puf8mjWnT09Zt379xSWzJuU5yDDD7UyJL/fbeHbN6TNTp667ePnxszlz+8zKHNKgClgtzDzWnp1y5szUxee+9Pcv2XVrUmvrKuFoN4i0Ru4Rj7VTzk6Zem7xxsVLts65fquvdVHXyVCI/WzWQp8FH66dum5xf//l7UvmTDqyHyh9SthcDWJ2wEvTWecXf1t3UfA5UHpSa98KdqD0MR8lqDQAUAGv/hLvnRGxzq+Pmpq1tdepyI7ZB4WiqvFMIgAAAAADLSGn7Z2aj4/j5te10NDknI6RkanIisncalccAAAAMjsNi74Hnbe31fjk5dXl1bq67MKFoooTxYkMDgMAABwNtJi8xJJJnJy/2dqR6pGRv8CgioqTxsGGFFEyAABFDZaWEu7bkp2SB8LAqLuowML7ioqTx9ynlkchMgAAMnEfH+ntxN2pqQeRkcC7v8JKnoqT4KvstB8fVgMAAAAjDJuM2O6FyMiFqd2goKCqqoqTk5PGwYeLDHsAAABheUuNmwim26KFhQeOnp6eqsOT4OAT3MGJpxRZYQAATZiWlrOwR/ndoNuew8rDnsMT8KvH38GJhrm5uU0AAHOMuJAICPWX78qg87qvrOKoxsnH8f2nkLK2tpBZAAAoDYizl4y2lgjexZ+o1NTU2d7fxaGnvom4mLIMZQLGCB/v9AlLl27i2DJ/9clrj66tXn3v06feZXuXGfPysYHCXImHo6O9s23Gll/3X39/fXThwhude3e/mM5Rkg4KdKZk0embZpp0zG7fs/DD8Ws7Fs5v73hxacN00TqwZjXFjJkdbd0Tutt27ln46sLe9valE2ZeumQiEhirBZQu9e7oaGvr3tbb03vjT8/efbNnt/dsntkxYYaxP1CaTcOaZyZQemlvb/tsoc3ze9p7O/fN7OgGysaxgiJcKy7cXGHH0l6g84Q2zO9etmx3p4iIqCKfBis0lafWRgSJiiootO3ZML/HRCHbPCgsNlmXGZGHWnTS1PiUQy2KQiyU+dRSdNLZMLOgm46OtpauG648ygQmcUkCSp9yXQdhIOi13NgUduVTdgVCNBwliEMI/iBdlCpf8P7gXT+eRSRF6oy0h3Y0o1nVPpezA5DXQrGz/ZvhBVjMcLDGOXaw4EQRIEmxjvPKOiFsvqnMl/yyHXR7+8priM5c+rmhf5OuSs9iybVWp/sS0DwTw22RxE/9xD1Twd4LeYj/7/11MW1XrsMgidFG5J5Rm3OuMUNtq7rZG9UJU8yO/EaQo02huPIfXh1JgSIIpLSNkqAgVbuqQ8wQb59DB+ekhGJ9jAdoJZ/yAFl99QAAAABJRU5ErkJggg=="

/***/ }),

/***/ 9372:
/***/ (function(module) {

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAMAAAANmfvwAAAAXVBMVEUAAADm6vDl6fHl6vHm6vDm6fDm6fHm6vDn6/Lm6fPn6vHq6vXm7/fo///l6fB/k7zI0eK0wNevvNXa3+rN1eSEl7+ls8+Wpsjf5O3Byt65xNqcq8qLncKsudOottF0G4f3AAAADnRSTlMA8vfZv6+knHNSSTEfC4D6l18AAAD+SURBVDjLlZRtj4MgEIQBtVQsu4Kgfbv7/z/zWu64XZGE9Pm0MZMwjLMIhh1130nZ9Xq0osY0KPhHDZMouZyg4HTZK4yEA9JwxRmqnFsKrjH0LWxxC0CYP6fkY4mIGBfm59czu4vDN47fK+UBhE8SD4x3PgMQIUkClwxCWAUMl87hKCvGPF+du74MzwvsGYXO4wPxARW06PMYEWNN0osujyviWpN0gnK73aCGfEkayHQQw2/+cFAPnDsi3ku7GjgrHkzrFB0xI+JcRmfVXuMLhbLsN9YZeBnqTFQpzvI9U6WomJwvfFIxqd6c8Mz5mfaStFetvbDttf/g8Wg/QT9AsjJYrn/d1QAAAABJRU5ErkJggg=="

/***/ }),

/***/ 1547:
/***/ (function(module) {

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAMAAAANmfvwAAAAZlBMVEUAAABDkPtDkPtEj/tEj/pEkPtDkPtEj/pDkPpFkPtEj/xGj/xEkv9KlP9Gov9Dj/v///+myvydxfxzrPv2+f7V5v210/16sPtZnPrJ3/281/2Uv/yGtvtrp/tWmvpOlfrq8v7p8v5QKhTOAAAAD3RSTlMA9/Pw2b+vpJxzUkkxHwuoavzRAAABAUlEQVQ4y5XU646DIBAFYLSK1tsZQK29777/Sy51SxkpKen3C81JGGBAMENTl0WeF2XdDCKmkxleMtmJUF8hUPXbRLvDm13LE3tE7VMJnmn9v+s0Tld4z7l6X8cyEtG4sHr+a2Zr0fSg+brW/YCn1ogC89gfyb7NGjFgpN31DIxe5+GyQTRufNf6DtzMDVuNqN3wSHRERC1KNxztchFRisINT0QnRBQih3O5ICa3kYTcTeSoSb1NVII7E9E5LLcGN9vIHC66AXewkUOwdcEBwCiD8ACExEeSN0Nc51uKW+ZXPRVrTE7Rz7YxRYuA+VWuvdOXJH3V0hc2fe2/eDzST9AfQ0c2KkRqmD8AAAAASUVORK5CYII="

/***/ }),

/***/ 6433:
/***/ (function(module) {

module.exports = "data:image/gif;base64,R0lGODlhEAAQAKIHADZmvyRl1FZ5upOjxHWOv7G5yb2/w////yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAAHACwAAAAAEAAQAAADQ3i6B8CQORdXCG0eIeC92cZ11seMZBlxjGFUC0EcrgvLcv1W+GzDB1lrxxgMILqi8bhIFgqHJbP5ej6j04gVClxcIwkAIfkEBQAABwAsAAAAABAAEAAAAz94uifCkDkXFwBtHkLgvdnGddbHjGQZcUwQVMswHK4Ly3L9VvhswwcZcFEoDIlFI8xgOCSVESbTCY1Kj4ppJAEAIfkEBQAABwAsAAAAABAADgAAAzt4ukfEkDkXlxBtnjHgvdnGddbHjGQZcQwAVEtRHK4Ly3L9VvhswwcZIxCIGAwQIpFxPA6VzGayCHEqEgAh+QQFAAAHACwAAAAAEAAQAAADPni6N8OQORcXIW2eUuC92cZ11seMZBlxjCBUi2EcrgvLcv1W+GzDBxkDAAAOiUXjAVkMBIzEg9OplE6r1koCACH5BAUAAAcALAAAAAAOABAAAAM8eLpXxVA5F88YbR5j1r3ZxnXWx4xkGXEKQVSM68KtTNc3IwhRECy7HcPnUwR5AMCB+DMik8piBKq8JSEJACH5BAUAAAcALAAAAAAQABAAAAM+eLpnxpA5F1cpbdZzb95cBzLeeAzDGAQnmlbr6r5RzKIquxBEBAAQHo/x+zGEPYHgUAQek8qlcRNdmg7KSgIAIfkEBQAABwAsAAACABAADgAAAz54aqZ+IbzD2Ivx1eaw1Nz1KUUxTQBwlOWppClrurDauq/qDMMpCBMe7/H7PYQ9AuFQBB6TyqURF13iHkpXAgAh+QQFAAAHACwAAAAAEAAQAAADPni6F8GQORfjfADURXPejKeBy7cYBikIB4pu6+qmVcy+4MoURUQQEB6P8fvthIfB4FAEHpPKpXETXZIUykoCADs="

/***/ }),

/***/ 5053:
/***/ (function(module) {

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAAAqCAMAAAAtf4EzAAAArlBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8tivQqAAAAOXRSTlMA/bcEgU0rCInxEwvYzr8Y+aFCJSBzM5drMMl4Vjo3xJJiHALt3dKwnOGOSfXpWVHls6unZQ9dfD4tFdE6AAAGJklEQVRYw9WY5brbMAyGvzAnDRQCZUgZT9v5/m9skQPrsNue7Wx9fyS1nWPJsiTLB49k7mxr6xZeCDNnnFWA10FkFdsQr8IbaxjiVZizT/TxGpjsgTZeg5A9IOM1sAT2iTe8CEPWIER4EQYCqxnhZdBZhf1KZ+LYYIR/xSvhtf2z3v+qV1EU3tkpfmzKl/RTsb0pvpziOZIaxD+/u5oGePmWHds/mPvCGLvQRrCCHqQtY62fUjotvp/hKaFPOywMBwD67nPlXRHmjhFdfBe7GE4BRSgTuFq8FvgZzsWXLp7RaxnrTbyRZ0JWNLZ4ynyJJSuJfpjAN+hvq6VF7Xb7w08XBuunOrOkFG3a2wn05+aYttKm5NjgO/Rp1FNnxfP8Aye6DrJx7+226Uh8y5XxG3enG4kJld6tYzVSO/vePtbAUbe5hJIBk3ER8YyI7TFjJYfvm4KxXXSkrSZBmrNaLQB3tXIGeu76B74QZdhk+StM/chqVEhjmxHGnautyaXEXZtmk5KZh5qZiIS7aZbbC1+ldaxiEOpqAEjt4WoxigI2aKroDr4D+Y9j04ML7VDp+njo64Dks4Y5PsxYQ0uy3KZhm4DnNM3EApTHikFRcEwB8yyIcndubIA980AcWITQMfL78jhbF339Urzz3Z13apEeiDF37T5rEK640Hvhj4bkQuGWzHq59xakGE40dOtkNI0PiV5u1tnb5XIvgokHNGEPiLuAQsk1LNy34LQFSbMXIQDPZtS3N8h2341DqcU4s+qLEa+nevy0H7TpNTiQlkF1pqa0dSKpQkov96S5BsAsxGw1yoI52Scqpj0Cq+SLUrOPMQtAqKyHpV0JXUFuhSAyxvu0SWjiu6i1Qfuf6qoBllXuJudVyQGC+sK2F4oFXrnVKK3TmMBhBX37s2aofVHmBGwC54wSuwtRBCd3seuCc2UinnIjM5I2tgbCKKRacKoo2JHbFl0roGwxMu0JBQOupcEeObDP6JiP54OmhOPW1BNuKHF8zKvhIiyZAo709ZEyiSV8zpqcZ2JwFyyISH3uM7Nped1x6JHwP2bFljdK9xgtjxx8LVfcJ9Qn16SaxZZo2LNAniNgKkqOa0rJxNSQb1VIwvzyWqWsCsOtNTzi8lL1jaQN6BOKNZ5CRNpOcltawdarxk4xK1pRlXVsOPURcFVVNeJ7EXPZRXMCHBdoEOfwXXxgce2XG49lVQYfj2ulM+p7YMw4Lh6Z8cBD7SD34n3HW2X4NrktVy8JTJNiVJ46PAl3eG67ICXrK9r1jdQd8zC2P0hmj7xsQyvrNxYTUrg+1OIrjj/TCr2r4A/2dU4WP0/OpvGNy1ZU5fDaQXJuuW7xzGhiHpXRjjUoGBiPF2Qp4elaIPv3AGveNI09gFgYXsGJDVfCXAYSRytjaQ+vdIVAYJHZWtchZuKBJkryLzoFjbahdBASOkFSFSuLcjC2WY0HqMOmFQBWt8qZjsotcxGq/YxAyMymfi1tzU1MW2Ng03I3k2DJ88rQOEz6ujAXJFyEngXzLhwNPNJmnM9ruEwURR2ETr+kkygugTM9C/JqUDp0iwFWZxG1vb6IBSduFO9tmfvpoNm73vLkpzEq7i3m5ElL6F6BCc+c/RVNpPBvaf3z/WgFaDkTVsy4XRZ4ZMMqLvgt1vys/GWi9JS4a+6oVmCBUD+EqPD64RQlH9ppZiGO8ci1LnMy/AZSKvDM8N4ord8y9Nr19dGZV0k+3p/OsMXmPfwiBqsRLfwLpOvv/z9tJk/xF7H/5OwTeZm77mmdafibSB/wP6KM0hCQxl1KJcHI70kID4N1asX6yEOkALGu9/FDDvIB78n63Lkdr5Yjq9mukzl9dSij57Rjt6t3fB9vXWRJEMx/qHWXZ933I7Yl4BDpIwD6eikD5hVrH2gngHKC3pZ2E6D/I6UnjJjg3bjrIOgGi3Q08ZNzBpw2KLQFmfl8CIZPF17ddt+NUUouqc1CAKc9FTSLHuyilZeKO2p2AhD8yI6STae+hHdjPJQwdpDLQLYIdhqmyW26lQC6z54VGFY48xDvPPyAUNyJId4PSU+cswfPF/OuB9nJ3RSTBYCdBCSqOad1JcMBCj4Cc7Ik4Rwvs18AAAAASUVORK5CYII="

/***/ }),

/***/ 2533:
/***/ (function(module) {

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAAA2CAMAAABQgOOpAAAAq1BMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////Nr6iZAAAAOHRSTlMAuvN4PRUFzcj5TjkRjy+hbubjs5NlUu0emokJqEbKD781Md2GGvXo19JzXH4lDYNqKV9BIayvV9A2C6YAAAUGSURBVGje7dnpsppAEAXgIyowboioBJcbFcV93877P1kYBHWu5MZUKhWtyvcHKRGa6aaHKfGJ3i07vdO6iDeRm/Cid8A7mAsm3D5eX1Hwxh7h5U15z8Kry1FVwotbU7XHi+tQtcOLc6ja4MVZVM3x4rJU5fDi+lSIFV5dj/fKeHlbjTeT73h9e5cJf/lF7RxPp9MOn3RJL7rtzaaEKTNAhlP8ZcsML6wvprldkNpE1uQmbuftEtkCNHaeTq44Q2prGzzI+c0vQm6sy4vzCD+l10lqghTNhzZeDDcDn/ZgRy4GBbI+WF5yUnigPtJzbiEN0npTV50S8mVDM8p5PKc4IWkszwzNcFVpNm1y1yzMqToipAd8kATctSSDnWjb41FuPHnKeqJDM/nYAvZjSuM9nlAqM9TSgYZaOBNeTMtUVaOE88EEscWHpGkfETeINjLgITMP3A/kx7wY538d7lqTl+pC2gj5o7kOqc2YpW/Igm7wQ9cd2nr89bcHKyhqFnDYb5FxkMjUIB0q0crtcrztofx03y16Gkm7oSdVMGHIr+ajOedYEexbnKFOjnRBD22XGTxp5e8wF+43mFUkzLpcYU6ikzSEyGxGKPlnGEwY+Ep8YOCVrzxByZEnZPVAHw67MOmiQvZaBrnG89YMOFMe/6oTiF71cEnuzhE0Z+GOxoSGL0RJ7zlUOWWXZhtAnbkmj6gxD40ZzBmplfCsrUkvb3Ko42rqds7f77MwPwVDPD3C+XFribomCZKBJs3DpEVBmSytuSjRxpJsYTSQKm1IpWyq2X0sC+HOwyN7NCq3Kw5qn3TbwNM1rOtIzEjRhkLzcWKhSwdN0uhcydazY6opEt8XLr18dJE1eewjNmoqOpTVoXSJJ1nkBIoljYLN7JRDrB/eUKvGhUsK4yaLiN61NB4HiFUcctKqIEXHhfR8H95emyHpJp/zkJqMFVDIhhbDYVaq6rgqavHcqJpQ8/aNamKT73taMtvppTvf7MxvznQzPtLU5aujJ1G4+GTgpi9hWvN2uxbYsTEbQLuPSCNQr7XH78maFxOSU/Oijsih3w8o+kssT45Eak6kcE2PSzaQrstrReRuH7EKFrk7xRJ+W36H+CGK8hEGePWNnI5m/RlV3aTIbbIKqT8cbqCaBTpiC01HIscV/sxM4+zSV8bRpTXhIVEgrQKzheFwaFFyh6FFO76dGplFpO3L21BYBpB8ecLVxs6ptkjVMDXNTM1eixT9aCGVkQPgykFLLMKdAT2Z4DEjHq5GPjm8DRxr6mJmasneFr5x7kzugUGce4+ftJBi1GOkN8ID3ST9NtzopzNxm3kPxaZJTuUqY+SR3pRiQXbySSVNlSZfJz3ltELmrcqQf5a5+oZI+7tix/OX69AeFHo+VBTylZzk5myQIpsP6cCcCX8YUFR1wSks0r28J60M8pi/OdhqUWyjvdVoNIoK6NhDqhZHafXAK7UqOvyJSlTUgW+evIVN0qygQlrQyySPn87JtOHoKuHnROMnrwYGUpi8MnHPZzqhA9ttCZEMXXm1+WUtUqh9REPWD/igjJsK/UU1lrW0iQ7FoSFlJ6KAFJo6J9wUf2KpZG0dRV4mi1ERrhBZVT47qA2+JhgTNa8E1ZHS2NnjlwG/A6Uk3oHy0L2FHmMZvIfrxPEG/yHdT81vUg///fffv6a3bLul4320GGrhfdgM2Xgfbxfw25XECz50PwD/YjZW7SzRcAAAAABJRU5ErkJggg=="

/***/ }),

/***/ 9024:
/***/ (function(module) {

module.exports = "data:image/png;base64, "

/***/ }),

/***/ 9063:
/***/ (function(module) {

module.exports = "data:image/png;base64, "

/***/ }),

/***/ 5001:
/***/ (function(module) {

module.exports = "data:image/png;base64, "

/***/ }),

/***/ 3175:
/***/ (function(module) {

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAAwCAYAAACPDl2NAAAJwElEQVR4Xu2aC2wc1RWG/3NnZt8PG5MENikhAQdoTIHgppCHlIACJamqlgSSBlAFhZYKBbUIGpVHiULSItIqCISIWpG2qtSGV3mXVxsTTJpSXglFCiUhwcE2ARO8b+96Hqe6szv2rrPrXdvr2FQerTSzc889995vzj3n3DtDmDhqSoBqqm1CGSaA1tgIJoBOAK0xgRqrm7DQCaA1JlBjdaNioQcPdp7OhOVEpNa4vzVRx8wGMR6fMSPyfk0UFigZHaBtnR8yMLPWna2lPgIOzJgeOaWWOqWuUQF6oK2Ta93RkeoTQiAcDttqYrEYLMvCzOmRmo+/5gplh8cjUK/XC7/fbwNNpVLo6emZADoSK52w0JHQq7Lul2bKH+6KjjsfWorxCZPqau7yhqwwGo3WC7e/KeTVWssZQjzV+6UAGvK7hjz+SsZftUJmVhJp/RqA7yQSx1mmtSkcdN9ZqoEJoBWwx9P6AjD/CsBXc6IEMIOEuC7oU/9aWD2RNi5lth6v9CTHQ/mYWGgq1TvHBD8FBjlZK0EwwyIGsgTqBGOyDUjgM2aOEGhcJ/XOwxwToPFMZhYs8WyfRVk2OGDg2RGQ9wmN48ECK/VhTIDaK4tkdpsgOr1UB5mZiKSx9h8MnFVK1jRNZLNZuN1uKIpScry1kpHKDctEe7oL3b1xu616VwjTfJOgilzbYwl0NRGtqfTEC8rPGyjLzDAMw172hcIhaKoGouKYWAsZ3TLwfOcuvPzJm9jZ9S56zGxRV7yKG/MnfQ1LTmzGlXu2uHH5o71DGFdF0YpRvqWF1Tlz9fsF0SypjW1nmgtMbDGRGGidLIUuKGzZAamqKnRdh6ZpNly5tpb3bGvKwx6JzHMdu3Dv+w+jPf1ZxYHbAowDTLitc9Vj26qrUFmqItBYOvs9YrFaBiFHmBkoNq5ckOpXRssKm9Z1A+l0yobpHBKqz+eHpuWAjkRG87iwYe8f8cTHr1YecQmJxtC0Vx5b+MtGTYgfhv2evxWKxFLGJYL4d2A81JPq3jR58uTkYI0MCpSZPYm0/iAR/JYMNpCusgAb+G1iPBsIuPbL0mSy91Qm8S2QnWIVHdI3RqNRyGktp3pdXd1RfnQ4Mv5QAD964x78+8jeYcF0KjU3nKZvPf+2DtVUV1kKMvK+MA0Pqco2ZgraoyYcBvj2kN/9ZLnGjgIqIWazmK7rxlSLzDOJxDky8Nj68sEnF4iUx0J+9ZlSiksl9qlkEj2ZDEKhEOLxOLweD/yBQFH14cjc/eGf8dxn/xoRTKfysqnzkpvm3PB5zmj646zzL+/qUiG/q6lqoLFEdgMENZSrYGdMFt4LB10PlJMpBdQJOHKqy6kvfWW5oFStzNOHWrF2z4M1gekouevs6z5e8ZXF0bJKmZ8PBdxrqwYaT+u/cYLNwKDTd1+YD4Y9HnuaV2uhNR219LmWgaUtN1cfgKrswBTvcZmXFm/e7VI1q8/DFSSFzNZd4YDnhaqBxlLZDZXaDvlc64mobLpxLNbyT7e3Yu07w7fOc45rxMIpZ+K+vUUrZ3voP5991X++P3Npp8UWCRIszw4TIjoU9Gk3lBv/UT403qPf2rcKklos+bNIQOSekwAOedRfN40x0DVvbMbfD79R6dmXLP/uSQuwae6PseOT3fjBzk1HyUzy1u/YseSBnwnGORbzBUQoWIUImThuDfvVomygD/hAbbFk709z60oJT+Qv8//tNSegCe1Rn4/ax2rKyxXQ3BeuPSppr0RXbkbccuZKrDnjUrz66bu4uvVu9FpGqWqpjimf12HxK8YXiWyTKugnQD9UhpVQhPq6buidPYnu1yORSHoQoNkrBFFx+B3QJDG1BQJaWT8y2lP+o+RhXNJyUyV+ReU+xY17z1uDpdO+gde79uLKHRsHfSBk8qz2Kx7fJ5VEE9mViqD5TvC3ABL5NMBkeqYuoL1cFuibzNrpKTRYWm+d1WtFVFWbapo5H6Iogp1rofHbQbf7vbEISu988QFW71xXEugdZ12FJ9pew3vRg33lEW8Dti5ci6b6GdjzxX6sbFmPpNEz+AMRNK/j8kd3SaFEInsGhLiSHV9KIpdHAjDZ2F4X8P6jLNDCVphZTaR7lxEpWr56vli6FBO6YX6ikflBIBDolgXJZLJeUTyNBvPOIZnPEIUHA/rUhRtxSjCCVa+st6HK4PPQglsw2VuP96NtWNGyDtHeQRc7eXfXDzSWyTSSQSv6u+lst9lusTXk016rCqgU6opnZvlc6qmGafQFMBUqGyj4r6hcWE4o2O4bIqxqxAeb8hLmixdvQsboxW//+wxunL0cHsWFA4lOLN/+C3RlYtU0gcIp353QF6kKN5XasRSMXX6/662qgcpVUSytn6sICtqVpA+Xy+/Cs7zvfHRjACx4e1W9HqZQpaB0/Wnfxu1nX9WnvT3VhUu334HO9JFqW+wLSqlU6kSDtSWkgGACcufPNDhLimgj04oGAq4PC1OoipsjsgepFJ9okH6SvM7P/aM65mx7yHKDUZu14CDDHyxtEiA8ceEGnHv8LHza023DbEt+Wi1MeFXP87u/+adrAP0ES/AMy4SwY7yZU0Gaa0/YQyUXNlUBlT7ENMgrlbkAyIxenuXhXDtZvrxvEe2puvfDFKyU2Mup/5dFd+CKHRuxL142wyvZ+kWRufdsnnNjPtAUkLRdppIKetVdROTkkkU6KgJlZlc8mz0JcMMNIAtnw9YNZLMEt1u+WkJhOZnCTjdG86hm6ekSark8s2zX3ELteGHRfatPCNT37zUWSJOZ2R8MBrvKKagIdN++fe76+qnHw5dTIU8yi5VnZi+nOGVRDwl5w+vzmZSGYkLvGE2Yjm65oXzz2/fXtKnmhjNu+f35t7+oyZ30wimZv1ZcrqiPyi9qKgKVephZ6+7u9glRn1sqySMMdO3fn25sbCx6xyAfwJTIdPnd5ck1HWkZZbfu3jLsjeWBKkMu/yP/XLzF3knyeDxF78kymYzNyu1my+fzHRq2hRZWlHmpzO8/+gh05MhbZnNzc8lpkUhkZ1sCy2XsFxB5Vz46eJNGGvNfuv6irKnPG0kLmqK2PtB80+VLT/66TAUcmBSPx4PyLWQwGORYDBwOI01ExS+qCl3CSDoxbuo+cplrqsVbAFw9vD7RH65tumzNutmXSVhFwYaZ5ayUhmQRUcmFf2GbVU354XXy2NeKbFuxihgbQVV+PT0WL+mOPZYRtiit1cRKEH8HwMUAcl/Z9h8pAC+C6ckOBQ8f89fIIxze2FZvWaRO62yYwZo4XnaEdOvz9siRg3JbbrQ69n815UcL0lD0TgAdCq0qZCeAVgFpKCL/A0iQbG3k3LpRAAAAAElFTkSuQmCC"

/***/ }),

/***/ 5831:
/***/ (function(module) {

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAMAAAAOusbgAAAA7VBMVEUAAACJlsSImcWIlMKHlcSNmMrGz+6HlcOHlsOeqM/HzvGJlcOHlMSLlb+IlMSJlsT29/2HlMPFzu7/kID/in3/lYP/mIP/f3n/koH/h3z/gnr/moT/hXv/////nYb/jH7/n4f/lIP/jX//fXj/e3f/ooj/nIX/iH7x8/v+k4L/gXr/9PL+tqW/xuD/jn/9pZr64eD+rpz9nZTn6/j/9/b37O736Oz35uf34OT42dz42tb40NL8zsX6w779raL9mJb+p4//7Or/sar9mJD+5uP/19T/xL36uLn/urL+o479jYv9i4r/jID++fiVoMqhB9amAAAAEHRSTlMAXx1P6BjjpnehSULXDL84KqFvIgAAAjdJREFUaN7t2Wlv2kAQgGGX2ECTpjUYMIcn5QilGBcD4YZw5k7a//9zOsT4kKJWBHsckcyjlXfXX16EhITXAmOMMcYYY+ydicTERDDEWOQ1XTEuCcGQ4uIryrG4EJx4TNiZKAUYlkRhZwkhSImDCR9Hk/5Ej/cLRy9kfy6i+4WTsl9JDnN4j/Dwdv6oqo/z22Go4cnDueNhElq4P7ejlfMKmvfDCY9qakWteNVGYYRHuvqCPqIP9590DKm6rq+63dV2rT71ycOdvK0L0HA2HerwJK/lNRz5vPYboKtZa7xMiMNrLaflcGBxCbDULHhjTRse5lxXAC3PdkgavkylaqkaDpyvAa5r2zXeuyQNmynXFGDq2Zqk4c531w3AjWe7Jg2Xys+a5WazfAdwV3aVaMOK0lSaOBRFWQHMFBdtuKMoWSWLA2cTwMTZ1iENz7Ku9PKq5NnOaH9O9XqpXnLgBln3aH9Og/Q/DQjDyMw4jEbDwCmdSePImDJtePzcLGQKhUwDoLFd42VMGkbtgm0TdjYzmTrcu/+xtfmq7fV9jziMWsWzF4otmTyM5UXRdoYfAi8L7JKHUc8oomqxuoGT0QvtD/24XXW0x6E+wgymRnuxaBvTwUd5aOMwh63wgZ1zBXCydzBnmQEfGx/AQTnBqwGKlyF/dn0Z4l9C9vj1Wfg/DnP4IMI/PfyEvyRCIJ46pa92+ORTCI7c0jeBsbd0cmQ5tdY7EvyTIhZrvSNJYIwxxhhjjL1rfwEO+gRvcSFuyQAAAABJRU5ErkJggg=="

/***/ }),

/***/ 2879:
/***/ (function(module) {

module.exports = "data:image/png;base64, "

/***/ }),

/***/ 5961:
/***/ (function(module) {

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIqADAAQAAAABAAAAIgAAAAACeqFUAAADg0lEQVRYCc1YzWsTQRR/s9mksS0JFU1N/Kha8aCg1IKCivSgaIsHr1Vv/gmKF7EHxYvoP+DBk1YU9KSt4kHxJlilFA8VinowtVFsU5ombT7G95tkt0md3U3arfpg2Zl5X799M/PmzQpqgL5L2VJKzZ0kUexjtU5JIiFIJmCC20luJ7k5QTIwZMRaX2wSIgNePSTqEUqlMl0Fmb/KznrZZbgeHSKRY2DDpghej8VaPnjpuAJJTmc7aHHxBgk6K6V0lXVyJISQHK5BCoWuJNrWfXWUc2JMptK9bOGBlBR1kmlkXAhKCxL98Vh0WKdn6AYnf8xelERP/QIBH7AFm7Ct8/lHuCFYKpVu6YT9GjMM41J8Y+R2tb0aIOXpQCSkNlLViqtp87opsePT1dNkA1ELM78w6ud0uIHFmqFg035rAS99Oe+OvwUCAJUv7MgKqYioPEGFEactOpdZoNFPUxQw7ABa+q7vXzNZOtLdQdHWJq0ctrZJZjfyjIoIJ6sBJxCwMPhsjPL5IjWHgw09ZjBAD4fGtCAwCJ9IlGibSNvF1OwpHkbfkXoO7nDkOTH2MePOo3dObDWObA0Mhjo76k7brjZXyJRhYDAqB9gKjfikxoco1khnI+a+pWYJj0VefUvO491p4Cj3EKphv377mfBY5NW35NzewGCinnBfprUmeg7VLlqvfq22vgcMpp7lPLo5FqlhevVrhF06mBpUVf+UgIFzpSrv/ikQYMCumagHRaFY0orlC0XtOAaddDQKEyYKXaLiBQ3THtq+pY3uPn5P4VCAdm5dT0f5/ACNjk/S2HjKMSdnc3naFq+jwGMMopLif3KKdy2K5+YXKTOfpzcjX6jv2G56xVuYCyg6ftg5DZVKklqbQ/YH6RsiF4hFNpgo+ZNTM895C5/RC5ZHYTCbK9B0OktPXn6kvbvaqWtPnOvq1RGvj2FgUKcvl/zXVLXtYbMtUg7aCY7CAT9AoAzg6wbc2h+UnErf46r9nAcWX9lc1d9PtEfPw6iKiLLO9w5VvvnqytmY8sU+LQkbCGpH3DtQ2FrMtXqXi2fRb9Wr8GMDQQdVNQtdRnstCT6qK3j4stdItWN1wZLypt/XChUJgFh2p3EEAsZ/ceUEEBU6vndgZfOXNFIpQN0m6MIG7jDLp8MW4oZ2aqoF0K78lhjgUxJFtmsGXtL18bfEktFyay1/1PwGmgRzv09fDAIAAAAASUVORK5CYII="

/***/ }),

/***/ 5219:
/***/ (function(module) {

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIqADAAQAAAABAAAAIgAAAAACeqFUAAADi0lEQVRYCc1Y3UsUURQ/Z3ZmqUwiNR8kCAp67cM/oc1UeoioSIsIfOilQiuikKSSIKJwkeiplyLt0R5E0+zjoZeCyB6DJITyIXL7ohJ3Z27nzO4Md3bn3tldR2xgmXvP52/OPffccxehgqflvqhx5u09Ap12BNwCQjQJxCY2gULMAeKcADGDwhgz6hMTk8fwd7nmsRzB1KDYIZzcJZJtI+erytEhUAskN46G2T91Gt9G6WiBtN8Wmxaz2Wv01Z0EQCurdIQoKFrDScvqHTuJsyo5pfGWgVybA+IhhXqdSrkSOi3lDwOwY7LHHA/TM8KIu9PZswRiNC4Q7INtsU22HeazJCIuCCFuhgnHRTMQzz3ptm7J9gJACsvBkQiNlKy4lDEtk0PLtFdeJh9IPjFz7+JcDh1YzpmkZW7zEtj/cnd3xJSYOgAejz+YfXpzNyKFOvFGtUUbawEONhuQsz218t6bNyAMPrPh83eFPG9tw2zmOuNGhIpVnwoEmxjusmBNEmGe6mQlv7+LAPeOWwoURKbaVCiUgFy27UzuKxGVFXOq24JUOqs2qOFE6lIFTtSZDSafHQRNCULjIx4WBYAxGHyAxWOxeiuMwXBP0QpsbN+IwD/viZp7cro3YzApN9xjXCco8y60Jtzp4bs59x01l3WVY8Jguv2EEEqZYsb1x8E9HDUv1g+bMwYzjKGjTX8Kgo6a62zJPMPtrGTKCowZA509OLcCvoMuCYNBNX8mSA2fWfkcLWGu1hROlU6xEcZgcqMrwOkqZsrzlx8cGD9lwc8FAS/eOzD43HHZh+j8ObCTgioLS+P1NQivPuZlJXLJkDGY3G3bGbGgK/GXR21orLWhYS3CmVQC6mscuEjbOEEn1Ymh/DYusU4EjsiXX2EciUYl3qhLTLgfsyudHSEg+yR26HBrI8KdThO+/RHwaNqB4dfU/IVKVkBEHHnabe13T186iq9S0kbanM3kRa5QhIbiAcFtQD/D9pc3NbD4gNwcqeBblixKzoemepJH2ZDfofG9g9u3JVsv00C+VbR6PXEfCPeOlP8dJBCd5p52lW/2wb68fpXN+EB4wl01Ipzn8XI+7EPu4NmXnyOyY77b0Dl4gwpNAKgsU82YI8Egiu80bCsUCDP+iysnA+HQ8b2DM7ucrc06oQ936mSDbRUvhyyvjIgsVLhu9BGtVVeBZZ1Y/5YIGKbJcv5R8w/7j4r85JJy/gAAAABJRU5ErkJggg=="

/***/ }),

/***/ 3284:
/***/ (function(module) {

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAjCAMAAAApB0NrAAAAYFBMVEUAAADm6vHn6vHm6vDl6fHm6fHm6fDl6vHm6vHo7PHs7Pbt7f/////m6vHp6fTq6vTl6fB/k7zQ1+aUpceDlr6drcvh5e7CzN62wtjX3umZqcmLncPJ0uKxvdWpttGIm8Df6D3ZAAAAEHRSTlMA5oHM+Ovgsm83Gw4Gyy8wgNRPjwAAARBJREFUOMuFVFmugzAMdBZKSlnSLKSULve/5dMLVToWqJkfC2uw7Bk7hBhlq4QWqpUjHeIiT/aLk7zsGL1pLEdjek7pBrvH0CHlLOwRxBko2h5DF1KHVThE92lXQfLmg79hT1vjBlL36GYX75AxWZcGqsQcIlRq/nWS8JN3OTgPOUlEqG6Yc5gDKk40WcC1RMBIssqR1FY5LakqR5EABnCAJUjjVIWDk2mss7oyu1uhDvYTU9EwRegH50q+eOETzMWtSB9PEzdjhC/3fuTdeLwd6sz9SuG5zMszJO4XN2N5rWF9LdwK3B/UmO8PmZ8cs+3z8IMz9Lu7uG7Y3UX1vup3Wr/3+rtRf38OMZV3bML0H2tuPO5s+UEdAAAAAElFTkSuQmCC"

/***/ }),

/***/ 5674:
/***/ (function(module) {

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAjCAMAAAApB0NrAAAAZlBMVEUAAABEj/tEkPtEkPtDj/tDj/pDj/tFkfpGkPpGkf9Ml/9Jkv9Ej/tDkPtDj/r////H3v1ppftJkvrZ6P6Zw/z6/P6Ctfv1+f7q8v7W5v3P4v1cnvru9f6x0PyiyPyJuPt2rfttqPseMqeDAAAADnRSTlMA5syB6+CybzcvGw7592qD5KkAAAELSURBVDjLlVTtDoIwDOw2ZII4N5AB4ge8/0saJ85rIC7enybLUdq7toQoVC5FJWSuCtrEQe3MFzt1WFN0ZjgyTRylNGvIEil7YbYg9kA5mm0cI6nELBzi8zus5dx0zRlrWjqCp4t1tbMXeNFBlwyy2BAsZMpeOin4qHEhuAbeFBGhum0dQt2i4kSFAZxiBBSkkhxFeZKTk0xyJAlgAAdYgirsKnKwswrz9C727nrIg/XYR9TwYaEe7MsP0YvBY1+oz+AXT/2A+jCd5+sUZmO6zqgz98t397Ee753nfnEzxlvf9reRW4Hzgxrz+SH9k6Nxnrc5cr0Xpzf4XqT3K72n6X1P343/7k/6jj0BsAs11Axx7MQAAAAASUVORK5CYII="

/***/ }),

/***/ 244:
/***/ (function(module) {

module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAMAAABF0y+mAAAAt1BMVEUAAAD3rlz8pFL4q1n5qFX/m0n0t2b1sWD9olD1tGL2sF75pVP+oE3+nkv1tmT3rl/7rVv0sWD1tWTzuWf0tWP1sV/5qVf1tmT+n03/n0z8n0/4o1X4q1n8pFP3rVv+nkzyuGj5qFf/mUf4qlj+oE3/nkr/mkj3r17/mkn4q1n8ok//nEjzuGn4rVz7plX/mUf5qVn5qVf/n0z5qFXyt2n/mUj4pVP5pVT7o1H2t2f2t2L6pFL8pVPaOeBsAAAAPXRSTlMA5ubm5ubm5ubm5ubm5uYZHi3VxLSldUxMOS0QxMTi4tzc3NvV1cTDw7q0tKysrKynlJSBdXVuW0g5OTUiw87lZgAAASBJREFUKM910YmugjAQBdDbZxFFhbIICu77vu/6/9/1WoS2mngyCffOJIQESPF5OxkMJttzjG+NmSHNGtCxpfFhySA1xzWjZujGTXnr1t4OSXLIYje7slE14wBOnkcMwqLEVUt8kQBJNc18FuAaJekFvFQT39z+k57AU7U2EP8pN+Cm1Rih1q7AVashNhXlAly0ukGL0gqt8KGUHoEjVdroa20P7LXax7Cg7ICdVodoaW0OzLXawpqQAinwIYR0XLdDlDVC8lMIl/zkAlNLqjtOXbUpgMgyLTNliV/GM1+IXQQuMMvmmziauQAC88oZ8do8ewypR9btsi3wB88PZO6eXbSLKR5E9u6QWFD8EDDoIl+d/Ajf3NPK7/X81clF7h8z5BvFKFM1PAAAAABJRU5ErkJggg=="

/***/ })

/******/ 	});
/************************************************************************/
/******/ 	// The module cache
/******/ 	var __webpack_module_cache__ = {};
/******/ 	
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/ 		// Check if module is in cache
/******/ 		var cachedModule = __webpack_module_cache__[moduleId];
/******/ 		if (cachedModule !== undefined) {
/******/ 			return cachedModule.exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = __webpack_module_cache__[moduleId] = {
/******/ 			// no module.id needed
/******/ 			// no module.loaded needed
/******/ 			exports: {}
/******/ 		};
/******/ 	
/******/ 		// Execute the module function
/******/ 		__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ 	
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/ 	
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = __webpack_modules__;
/******/ 	
/************************************************************************/
/******/ 	/* webpack/runtime/chunk loaded */
/******/ 	!function() {
/******/ 		var deferred = [];
/******/ 		__webpack_require__.O = function(result, chunkIds, fn, priority) {
/******/ 			if(chunkIds) {
/******/ 				priority = priority || 0;
/******/ 				for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
/******/ 				deferred[i] = [chunkIds, fn, priority];
/******/ 				return;
/******/ 			}
/******/ 			var notFulfilled = Infinity;
/******/ 			for (var i = 0; i < deferred.length; i++) {
/******/ 				var chunkIds = deferred[i][0];
/******/ 				var fn = deferred[i][1];
/******/ 				var priority = deferred[i][2];
/******/ 				var fulfilled = true;
/******/ 				for (var j = 0; j < chunkIds.length; j++) {
/******/ 					if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {
/******/ 						chunkIds.splice(j--, 1);
/******/ 					} else {
/******/ 						fulfilled = false;
/******/ 						if(priority < notFulfilled) notFulfilled = priority;
/******/ 					}
/******/ 				}
/******/ 				if(fulfilled) {
/******/ 					deferred.splice(i--, 1)
/******/ 					var r = fn();
/******/ 					if (r !== undefined) result = r;
/******/ 				}
/******/ 			}
/******/ 			return result;
/******/ 		};
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/compat get default export */
/******/ 	!function() {
/******/ 		// getDefaultExport function for compatibility with non-harmony modules
/******/ 		__webpack_require__.n = function(module) {
/******/ 			var getter = module && module.__esModule ?
/******/ 				function() { return module['default']; } :
/******/ 				function() { return module; };
/******/ 			__webpack_require__.d(getter, { a: getter });
/******/ 			return getter;
/******/ 		};
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/define property getters */
/******/ 	!function() {
/******/ 		// define getter functions for harmony exports
/******/ 		__webpack_require__.d = function(exports, definition) {
/******/ 			for(var key in definition) {
/******/ 				if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ 					Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ 				}
/******/ 			}
/******/ 		};
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/global */
/******/ 	!function() {
/******/ 		__webpack_require__.g = (function() {
/******/ 			if (typeof globalThis === 'object') return globalThis;
/******/ 			try {
/******/ 				return this || new Function('return this')();
/******/ 			} catch (e) {
/******/ 				if (typeof window === 'object') return window;
/******/ 			}
/******/ 		})();
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/hasOwnProperty shorthand */
/******/ 	!function() {
/******/ 		__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/publicPath */
/******/ 	!function() {
/******/ 		__webpack_require__.p = "./login/";
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/jsonp chunk loading */
/******/ 	!function() {
/******/ 		// no baseURI
/******/ 		
/******/ 		// object to store loaded and loading chunks
/******/ 		// undefined = chunk not loaded, null = chunk preloaded/prefetched
/******/ 		// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
/******/ 		var installedChunks = {
/******/ 			826: 0
/******/ 		};
/******/ 		
/******/ 		// no chunk on demand loading
/******/ 		
/******/ 		// no prefetching
/******/ 		
/******/ 		// no preloaded
/******/ 		
/******/ 		// no HMR
/******/ 		
/******/ 		// no HMR manifest
/******/ 		
/******/ 		__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };
/******/ 		
/******/ 		// install a JSONP callback for chunk loading
/******/ 		var webpackJsonpCallback = function(parentChunkLoadingFunction, data) {
/******/ 			var chunkIds = data[0];
/******/ 			var moreModules = data[1];
/******/ 			var runtime = data[2];
/******/ 			// add "moreModules" to the modules object,
/******/ 			// then flag all "chunkIds" as loaded and fire callback
/******/ 			var moduleId, chunkId, i = 0;
/******/ 			if(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {
/******/ 				for(moduleId in moreModules) {
/******/ 					if(__webpack_require__.o(moreModules, moduleId)) {
/******/ 						__webpack_require__.m[moduleId] = moreModules[moduleId];
/******/ 					}
/******/ 				}
/******/ 				if(runtime) var result = runtime(__webpack_require__);
/******/ 			}
/******/ 			if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
/******/ 			for(;i < chunkIds.length; i++) {
/******/ 				chunkId = chunkIds[i];
/******/ 				if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ 					installedChunks[chunkId][0]();
/******/ 				}
/******/ 				installedChunks[chunkId] = 0;
/******/ 			}
/******/ 			return __webpack_require__.O(result);
/******/ 		}
/******/ 		
/******/ 		var chunkLoadingGlobal = self["webpackChunkkd_login"] = self["webpackChunkkd_login"] || [];
/******/ 		chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
/******/ 		chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
/******/ 	}();
/******/ 	
/************************************************************************/
/******/ 	
/******/ 	// startup
/******/ 	// Load entry module and return exports
/******/ 	// This entry module depends on other loaded chunks and execution need to be delayed
/******/ 	var __webpack_exports__ = __webpack_require__.O(undefined, [216], function() { return __webpack_require__(7016); })
/******/ 	__webpack_exports__ = __webpack_require__.O(__webpack_exports__);
/******/ 	
/******/ })()
;